/* ===========================================================
   ethone.eu — biolink
   Palette : noir total / blanc / gris, accents de statut Discord
   =========================================================== */

:root {
  --bg: #000000;
  --card: #0a0a0a;
  --card-border: rgba(255, 255, 255, 0.08);
  --text-main: #ffffff;
  --text-dim: #6b6b6b;
  --text-dimmer: #444444;

  --status-online: #23a55a;
  --status-idle: #f0b232;
  --status-dnd: #f23f43;
  --status-offline: #80848e;

  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;

  --font-display: "Baloo 2", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  background: transparent;
  color: var(--text-main);
  font-family: var(--font-display);
  overflow-x: hidden;
  min-height: 100vh;
  scroll-behavior: smooth;
}

button {
  font-family: inherit;
}

::selection {
  background: rgba(255, 255, 255, 0.18);
}

/* scrollbar discrète */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-thumb {
  background: #222;
  border-radius: 4px;
}
::-webkit-scrollbar-track {
  background: transparent;
}

/* =========== FOND =========== */
html {
  background: var(--bg);
}
#bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: url("/background.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(0.55);
}

/* =========== BOUTON MUTE =========== */
.mute-btn {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 50;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.7);
  border: 1px solid var(--card-border);
  color: var(--text-dim);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition:
    opacity 0.5s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}
.mute-btn.visible {
  opacity: 1;
}
.mute-btn.hidden {
  display: none;
}
.mute-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(20, 20, 20, 0.85);
}

/* =========== ÉCRAN D'INTRO =========== */
#intro-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  transition: opacity 0.7s ease;
}
#intro-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

#intro-text {
  position: relative;
  font-size: clamp(28px, 6vw, 46px);
  font-weight: 600;
  letter-spacing: 1px;
  color: #3a3a3a;
  background: linear-gradient(100deg, #3a3a3a 35%, #ffffff 50%, #3a3a3a 65%);
  background-size: 250% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: sweep 2.6s ease-in-out infinite;
  transition: opacity 0.5s ease;
}
#intro-text.fading {
  opacity: 0;
}

@keyframes sweep {
  0% {
    background-position: 160% 0;
  }
  60% {
    background-position: -60% 0;
  }
  100% {
    background-position: -60% 0;
  }
}

#enter-btn {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text-dim);
  font-size: 14px;
  letter-spacing: 0.5px;
  padding: 10px 22px;
  border-radius: 999px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition:
    opacity 0.6s ease,
    transform 0.6s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}
#enter-btn.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
#enter-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}
#enter-btn.fade-out {
  opacity: 0;
  transform: translateY(-6px);
}

/* =========== DOTS LATÉRAUX =========== */
#side-dots {
  position: fixed;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 20;
}
#side-dots .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  transition:
    background 0.25s ease,
    transform 0.25s ease;
}
#side-dots .dot.active {
  background: #fff;
  transform: scale(1.4);
}

/* =========== CONTENEUR SNAP-SCROLL =========== */
#snap-container {
  position: relative;
  z-index: 2;
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  opacity: 0;
  transition: opacity 0.9s ease;
}
#snap-container::-webkit-scrollbar {
  display: none;
}
#snap-container.visible {
  opacity: 1;
}
#snap-container.hidden {
  display: none;
}

.snap-page {
  height: 100vh;
  width: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* =========== CONTENU PRINCIPAL (page 1) =========== */
#main-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 100px 16px 60px;
  width: 100%;
}

.stagger-item {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
#snap-container.visible .stagger-item {
  opacity: 1;
  transform: translateY(0);
}
#snap-container.visible .stagger-item:nth-child(1) {
  transition-delay: 0.05s;
}
#snap-container.visible .stagger-item:nth-child(2) {
  transition-delay: 0.25s;
}
#snap-container.visible .stagger-item:nth-child(3) {
  transition-delay: 0.45s;
}

.card {
  width: min(92vw, 520px);
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(10px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 28px 26px 20px;
  position: relative;
}

/* --------- carte profil --------- */
.profile-card {
  padding-top: 64px;
}

.pfp-wrap {
  position: absolute;
  top: -52px;
  left: 26px;
  width: 104px;
  height: 104px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow:
    0 0 0 4px var(--card),
    0 0 26px rgba(255, 255, 255, 0.12);
}
.pfp-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.display-name {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.35);
}

.bio-line {
  margin-top: 8px;
  min-height: 22px;
  font-size: 14.5px;
  color: var(--text-dim);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}
.bio-line i {
  color: var(--text-dim);
}
.bio-icon-fade {
  opacity: 0;
  transform: translateY(2px);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}
.bio-icon-fade.bio-icon-visible {
  opacity: 1;
  transform: translateY(0);
}
.caret {
  display: inline-block;
  color: #fff;
  animation: blink 1s step-end infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}

.card-footer {
  margin-top: 26px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.badges-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.tech-badge {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #888;
  background: #161616;
  border: 1px solid #222;
  border-radius: 5px;
  padding: 5px 8px;
}

.views-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.views-label {
  font-size: 9.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-dimmer);
}
.views-counter {
  display: flex;
  gap: 2px;
}
.views-counter img {
  width: 22px;
  height: 30px;
  object-fit: contain;
  image-rendering: pixelated;
}

/* --------- carte discord --------- */
.discord-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
  padding: 18px 22px;
}

.discord-avatar-wrap {
  position: relative;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}
.discord-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: #111;
}
.discord-decoration {
  position: absolute;
  inset: -6px;
  width: 64px;
  height: 64px;
  pointer-events: none;
}
.status-dot {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid var(--card);
}
.status-online {
  background: var(--status-online);
}
.status-idle {
  background: var(--status-idle);
}
.status-dnd {
  background: var(--status-dnd);
}
.status-offline {
  background: var(--status-offline);
}
.status-mobile {
  background: var(--status-online);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.status-mobile i {
  font-size: 9px;
  color: #000;
}

.discord-info {
  flex: 1;
  min-width: 160px;
}

.discord-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.discord-name {
  font-size: 17px;
  font-weight: 700;
}
.discord-badges {
  display: inline-flex;
  gap: 4px;
}
.discord-badges img {
  width: 16px;
  height: 16px;
}

.discord-activity {
  margin-top: 2px;
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 500;
}

/* --------- bandeau spotify --------- */
.spotify-bar {
  width: 100%;
  display: flex;
  gap: 12px;
  overflow: hidden;
  max-height: 0;
  margin-top: 0;
  padding-top: 0;
  border-top: 1px solid transparent;
  opacity: 0;
  transform: translateY(-14px);
  transition:
    max-height 0.5s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 0.4s ease,
    margin-top 0.5s ease,
    padding-top 0.5s ease,
    border-color 0.4s ease;
}
.spotify-bar.spotify-visible {
  max-height: 140px;
  margin-top: 14px;
  padding-top: 14px;
  border-top-color: var(--card-border);
  opacity: 1;
  transform: translateY(0);
}
.spotify-cover {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.spotify-meta {
  flex: 1;
  min-width: 0;
}

.spotify-track-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
}
.spotify-icon {
  color: #1ed760;
  font-size: 13px;
}
.spotify-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lyrics-line {
  margin-top: 6px;
  font-size: 12px;
  min-height: 56px;
  position: relative;
  overflow: hidden;
  color: var(--text-dim);
  text-align: center;
  padding: 0 4px;
  transition: height 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.lyrics-track {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.lyrics-track .lyrics-row {
  min-height: 18.5px;
  line-height: 1.35;
  overflow: visible;
  white-space: normal;
  word-break: break-word;
  padding: 1px 0;
  transition:
    color 0.4s ease,
    opacity 0.4s ease,
    text-shadow 0.6s ease,
    font-size 0.3s ease;
  opacity: 0.4;
}
.lyrics-track .lyrics-row.is-current {
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  opacity: 1;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.45);
}

.spotify-progress-row {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.spotify-time {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-dimmer);
  min-width: 30px;
}
.progress-track {
  flex: 1;
  height: 3px;
  border-radius: 999px;
  background: #222;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: #fff;
  border-radius: 999px;
  transition: width 0.3s linear;
}

.icon-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 13px;
  padding: 2px 4px;
  transition: color 0.2s ease;
}
.icon-btn:hover {
  color: #fff;
}

/* =========== PAGE 3 : FEATURED PROJECTS =========== */
#projects-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 60px 16px 50px;
  width: 100%;
  max-height: 100vh;
  overflow-y: auto;
  scrollbar-width: none;
}
#projects-content::-webkit-scrollbar {
  display: none;
}

.project-card {
  padding: 0;
  overflow: hidden;
}
.project-banner {
  width: 100%;
  height: 160px;
  background-size: cover;
  background-position: center;
  background-color: #161028;
  position: relative;
}
.project-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 10, 0) 40%,
    rgba(10, 10, 10, 0.92) 100%
  );
}
.project-body {
  padding: 16px 22px 20px;
  text-align: left;
}
.project-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}
.project-text {
  font-size: 13px;
  line-height: 1.6;
  color: #c9c9c9;
  font-weight: 500;
}

/* =========== DRIFT DOWN =========== */
.drift-down {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-dimmer);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: lowercase;
}
.drift-arrow {
  animation: drift 2.2s ease-in-out infinite;
}
@keyframes drift {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.5;
  }
  50% {
    transform: translateY(6px);
    opacity: 1;
  }
}

/* =========== PAGE 2 : ABOUT ME =========== */
#about-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 60px 16px 50px;
  width: 100%;
  max-height: 100vh;
  overflow-y: auto;
  scrollbar-width: none;
}
#about-content::-webkit-scrollbar {
  display: none;
}

.about-title {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 4px;
}
.title-spark {
  font-size: 13px;
  color: var(--text-dimmer);
}

.about-card {
  text-align: left;
}
.about-line {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 14px;
  margin-bottom: 4px;
}
.about-line:first-child {
  margin-top: 0;
}
.about-line strong {
  color: #fff;
  font-weight: 700;
}
.about-text {
  font-size: 13.5px;
  line-height: 1.6;
  color: #c9c9c9;
  font-weight: 500;
}

.card-tag {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 10.5px;
  color: var(--text-dimmer);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ----- météo ----- */
.weather-card {
  border: 1px solid var(--card-border);
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  padding-bottom: 18px;
  position: relative;
}
.weather-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.weather-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
.weather-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.weather-temp {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}
.weather-sub {
  font-size: 12px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 5px;
}
.weather-sub i:nth-of-type(2) {
  margin-left: 8px;
}

.weather-card .card-tag {
  top: 18px;
  right: 18px;
}

.weather-forecast {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.45s cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 0.3s ease,
    margin-top 0.45s ease;
  opacity: 0;
  margin-top: 0;
}
.weather-card.expanded .weather-forecast {
  max-height: 260px;
  opacity: 1;
  margin-top: 14px;
}
.forecast-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid var(--card-border);
  font-size: 12.5px;
  color: var(--text-dim);
}
.forecast-day {
  width: 42px;
  flex-shrink: 0;
}
.forecast-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.forecast-label {
  flex: 1;
}
.forecast-temps {
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
}

/* ----- horloge ----- */
.clock-card {
  position: relative;
}
.clock-row {
  display: flex;
  align-items: center;
  gap: 18px;
}
.clock-svg-wrap {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}
.clock-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.clock-time {
  font-size: 19px;
  font-weight: 700;
}
.clock-date {
  font-size: 12.5px;
  color: var(--text-dim);
}
.clock-visitor {
  font-size: 11.5px;
  color: var(--text-dimmer);
}
.card-tag-floating {
  top: 18px;
  right: 18px;
}

/* =========== LYRICS PLEIN ÉCRAN =========== */
.lyrics-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.lyrics-fullscreen.hidden {
  display: none;
}
.lyrics-fullscreen.visible {
  opacity: 1;
}

.lyrics-close {
  position: absolute;
  top: 24px;
  right: 26px;
  font-size: 22px;
}
.lyrics-fs-cover {
  width: 120px;
  height: 120px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.1);
}
.lyrics-fs-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dim);
}
.lyrics-fs-lines {
  max-width: 640px;
  width: 100%;
  text-align: center;
  padding: 0 20px;
  position: relative;
  overflow: hidden;
  min-height: 130px;
  transition: height 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.lyrics-fs-track {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.lyrics-fs-row {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-dim);
  opacity: 0.4;
  line-height: 1.5;
  padding: 6px 0;
  transition:
    color 0.4s ease,
    opacity 0.4s ease,
    text-shadow 0.6s ease,
    font-size 0.3s ease;
}
.lyrics-fs-row.is-current {
  font-size: 24px;
  color: #fff;
  opacity: 1;
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.45);
}

/* =========== RESPONSIVE =========== */
@media (max-width: 480px) {
  .card {
    padding: 22px 18px 16px;
  }
  .profile-card {
    padding-top: 58px;
  }
  .pfp-wrap {
    width: 88px;
    height: 88px;
    top: -46px;
    left: 18px;
  }
  .display-name {
    font-size: 22px;
  }
  #side-dots {
    right: 12px;
  }
  .lyrics-fs-lines {
    font-size: 18px;
  }
}

/* =========== ACCESSIBILITÉ MOTION =========== */
@media (prefers-reduced-motion: reduce) {
  #intro-text,
  .drift-arrow,
  .caret {
    animation: none !important;
  }
}

/* focus visible clavier */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
