/* =========================================================
   XPLOZ — charte « Néon de minuit »
   Fond #06060A · rose #FF4FA3 · violet #B467FF · cyan #4FD8FF
   orange #FF9A4F · jaune #FFE14F (chiffres)
   Titres Syne · textes Inter · labels JetBrains Mono
   ========================================================= */
:root {
  --bg: #06060a;
  --surface: #12121a;
  --glass: rgba(18, 18, 26, 0.58);
  --glass-strong: rgba(14, 14, 20, 0.82);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f2f8;
  --dim: #9c98a8;
  --pink: #ff4fa3;
  --violet: #b467ff;
  --cyan: #4fd8ff;
  --orange: #ff9a4f;
  --yellow: #ffe14f;
  --grad: linear-gradient(90deg, var(--pink), var(--violet) 28%, var(--cyan) 55%, var(--orange) 78%, var(--yellow));
  --font-display: "Syne", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  --radius: 22px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --player-h: 78px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
::selection { background: rgba(180, 103, 255, 0.45); color: #fff; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Film en fond (fixe) ---------- */
#film {
  position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; z-index: 0;
}
.film-poster {
  position: fixed; inset: 0; z-index: 0; display: none;
  background: var(--bg) url("../assets/film-poster.jpg") 70% center / cover no-repeat;
}
.shade {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(6, 6, 10, 0.82) 0%, rgba(6, 6, 10, 0.4) 40%, rgba(6, 6, 10, 0) 64%);
  transition: background 0.8s ease;
}
body[data-page="videos"] .shade,
body[data-page="bio"] .shade { background: rgba(6, 6, 10, 0.72); }
.grain {
  position: fixed; inset: -50%; z-index: 9000; pointer-events: none; opacity: 0.045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 9s steps(9) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); } 20% { transform: translate(-6%, 4%); }
  40% { transform: translate(5%, -7%); } 60% { transform: translate(-3%, 8%); } 80% { transform: translate(7%, 3%); }
}

/* logo fixe, semi-transparent, centré en haut (apparaît à « Qui je suis ») */
.top-logo {
  position: fixed; top: 64px; left: 50%; z-index: 40; pointer-events: none;
  width: clamp(150px, 17vw, 240px); height: auto;
  opacity: 0; transform: translateX(-50%) translateY(-12px) scale(0.92);
  transition: opacity 0.9s ease, transform 0.9s var(--ease);
  filter: drop-shadow(0 8px 30px rgba(180, 103, 255, 0.45));
}
body.logo-on .top-logo {
  opacity: 0.55;
  transform: translateX(-50%) scale(calc(1 + var(--beat, 0) * 0.08));
  transition: opacity 0.9s ease, transform 0.12s linear;
}
body.logo-on .nav-logo { opacity: 0; pointer-events: none; }
.nav-logo { transition: opacity 0.6s ease; }
@media (max-width: 780px) { .top-logo { top: 12px; width: 120px; } body.logo-on .nav-logo { opacity: 0; } }

/* sur écran tactile : image fixe au lieu de la scène 3D */
/* (l'image fixe ne sert plus que si la 3D est indisponible : voir .no-webgl) */

/* ---------- Intro : « Entrer dans le studio » ---------- */
.gate {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 34px;
  transition: opacity 1s ease, visibility 0s 1s;
}
.gate::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse at center, #0e0b17 0%, #050507 70%);
  transition: opacity 1.4s ease;
}
.gate.opening::before { opacity: 0; }
.gate.opening .gate-enter, .gate.opening .gate-hint, .gate.opening .gate-skip {
  opacity: 0; transform: translateY(10px); transition: opacity 0.4s ease, transform 0.4s ease; animation: none;
}
.gate.opening { pointer-events: none; }
.gate.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.gate-open, .gate-open body { overflow: hidden; }
.no-webgl #film { display: none; }
.no-webgl .film-poster { display: block; }
.gate-logo {
  width: min(640px, 78vw); aspect-ratio: 900 / 417; position: relative;
  animation: gate-in 1.4s var(--ease) both;
  filter: drop-shadow(0 20px 60px rgba(180, 103, 255, 0.45));
  transform-origin: center center; will-change: transform;
}
.gate-logo img { width: 100%; height: 100%; object-fit: contain; }
.gate-logo .sheen {
  position: absolute; inset: 0; pointer-events: none;
  -webkit-mask: url("../assets/logo.png") center / contain no-repeat;
          mask: url("../assets/logo.png") center / contain no-repeat;
  background: linear-gradient(110deg, transparent 38%, rgba(255, 255, 255, 0.85) 50%, transparent 62%);
  background-size: 300% 100%; background-position: 150% 0; mix-blend-mode: overlay;
  animation: sheen 4.5s ease-in-out 1s infinite;
}
@keyframes sheen { 0% { background-position: 150% 0; } 45%, 100% { background-position: -50% 0; } }
@keyframes gate-in {
  from { opacity: 0; transform: scale(0.88); filter: blur(16px) drop-shadow(0 20px 60px rgba(180, 103, 255, 0)); }
  to { opacity: 1; transform: none; }
}
.gate-enter {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 34px; border-radius: 999px; border: none; cursor: pointer;
  background: var(--grad); color: #0b0610; font-weight: 700; font-size: 1rem; letter-spacing: 0.02em;
  box-shadow: 0 14px 50px -10px rgba(255, 79, 163, 0.65);
  animation: fade-up 1s var(--ease) 0.6s both;
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease;
}
.gate-enter:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 18px 60px -10px rgba(180, 103, 255, 0.8); }
.gate-hint {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--dim); animation: fade-up 1s var(--ease) 0.9s both;
}
.gate-skip {
  position: absolute; bottom: 28px; background: none; border: none; cursor: pointer;
  color: var(--dim); font-size: 0.8rem; text-decoration: underline; text-underline-offset: 4px;
  animation: fade-up 1s var(--ease) 1.1s both;
}
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- Barre du haut ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background 0.35s ease, border-color 0.35s ease, transform 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
.topbar.scrolled, .topbar.nav-open {
  background: rgba(8, 8, 11, 0.72); border-bottom-color: var(--line);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
}
.topbar-inner {
  max-width: 1320px; margin: 0 auto; padding: 14px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.nav-logo img { height: 40px; width: auto; filter: drop-shadow(0 4px 16px rgba(180, 103, 255, 0.35)); transition: transform 0.08s linear; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  position: relative; padding: 6px 0; font-size: 0.92rem; font-weight: 500; color: var(--dim);
  transition: color 0.2s;
}
.nav a:hover, .nav a.active { color: var(--text); }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px;
  background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease);
}
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.sound-toggle, .nav-toggle {
  width: 42px; height: 42px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04);
  display: inline-flex; align-items: center; justify-content: center;
}
.sound-toggle .bars { display: flex; align-items: flex-end; gap: 2px; height: 14px; }
.sound-toggle .bars span { width: 3px; height: 4px; border-radius: 1px; background: var(--grad); background-size: 400% 100%; }
.sound-toggle.on .bars span { animation: bars 1s ease-in-out infinite; }
.sound-toggle.on .bars span:nth-child(2) { animation-delay: -0.3s; background-position: 33% 0; }
.sound-toggle.on .bars span:nth-child(3) { animation-delay: -0.6s; background-position: 66% 0; }
.sound-toggle.on .bars span:nth-child(4) { animation-delay: -0.15s; background-position: 100% 0; }
@keyframes bars { 0%, 100% { height: 4px; } 50% { height: 14px; } }
.nav-toggle { display: none; flex-direction: column; gap: 5px; }
.nav-toggle span { width: 18px; height: 2px; border-radius: 2px; background: var(--text); transition: transform 0.3s, opacity 0.3s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 780px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: calc(100% + 8px); left: 12px; right: 12px;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 12px;
    border-radius: 20px; background: rgba(12, 12, 16, 0.96); border: 1px solid var(--line);
    opacity: 0; transform: translateY(-10px); pointer-events: none; transition: opacity 0.25s, transform 0.25s;
  }
  .topbar.nav-open .nav { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: 13px 12px; font-size: 1.05rem; border-radius: 12px; }
  .nav a::after { display: none; }
  .nav-logo img { height: 34px; }
  .topbar-inner { padding: 12px 16px; }
}

/* ---------- Contenu ---------- */
main { position: relative; z-index: 2; transition: opacity 0.35s ease; }
main.leaving { opacity: 0; }
.scene {
  min-height: 100vh; display: flex; align-items: center;
  padding: 120px clamp(16px, 6vw, 96px) 80px;
}
.scene.tall { min-height: auto; padding-top: 140px; padding-bottom: 120px; }
.panel {
  width: 100%; max-width: 520px; padding: clamp(26px, 3.4vw, 40px); border-radius: var(--radius);
  background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
}
.panel.wide { max-width: 760px; }
.panel.bare { background: none; border: none; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 0; }
.label {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--dim);
}
.label::before { content: ""; width: 26px; height: 1px; background: var(--grad); }
h1, h2 {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -0.025em; line-height: 1.03; margin-top: 14px;
}
h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
/* le panneau tient toujours dans l'écran, même sur un portable peu haut */
.scene .panel { max-height: calc(100vh - 170px); overflow: auto; scrollbar-width: none; }
.scene .panel::-webkit-scrollbar { display: none; }
.scene.tall .panel { max-height: none; overflow: visible; }
@media (max-height: 760px) {
  .lead { font-size: 0.96rem; line-height: 1.65; }
  .stat b { font-size: 2.2rem; }
}
.lead { color: var(--dim); margin-top: 16px; font-size: 1.04rem; line-height: 1.75; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 999px;
  font-weight: 600; cursor: pointer; border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease, background 0.25s, border-color 0.25s;
}
.btn-main {
  background: var(--grad); background-size: 200% 100%; color: #0b0610; font-weight: 700;
  box-shadow: 0 10px 40px -10px rgba(255, 79, 163, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-main:hover { transform: translateY(-2px); background-position: 100% 0; }
.btn-ghost { border-color: var(--line-strong); background: rgba(255, 255, 255, 0.04); color: var(--text); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.35); transform: translateY(-2px); }
.link-arrow { display: inline-flex; margin-top: 22px; color: var(--text); font-weight: 600; border-bottom: 1px solid var(--line-strong); padding-bottom: 3px; }
.link-arrow:hover { border-color: var(--pink); }
.stats { display: flex; flex-wrap: wrap; gap: 34px; margin-top: 26px; }
.stat b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 2.8rem; line-height: 1; color: var(--yellow); }
.stat span { font-size: 0.86rem; color: var(--dim); }
.loading { color: var(--dim); font-size: 0.9rem; }

/* 1er écran : le logo est dans le film, on invite à défiler */
.scene-logo { min-height: 100vh; position: relative; }
.scroll-cue {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--dim);
}
.scroll-cue i { width: 22px; height: 36px; border: 1.5px solid rgba(255, 255, 255, 0.3); border-radius: 12px; position: relative; }
.scroll-cue i::after {
  content: ""; position: absolute; top: 7px; left: 50%; width: 3px; height: 7px; margin-left: -1.5px;
  border-radius: 2px; background: var(--text); animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* apparitions au scroll */
.js .reveal { opacity: 0; transform: translateY(40px); }

/* ---------- Instrus : nuage de boutons 3D ---------- */
.instru-stage {
  position: relative; margin-top: 30px; padding: clamp(10px, 3vw, 30px);
  border-radius: 28px; background: rgba(6, 6, 10, 0.45); border: 1px solid var(--line);
}
.instru-square { position: relative; width: 100%; max-width: 620px; aspect-ratio: 1 / 1; margin: 0 auto; perspective: 1100px; }
.instru-square.fallback-list {
  display: flex; flex-wrap: wrap; align-content: flex-start; gap: 12px;
  aspect-ratio: auto; max-width: none; perspective: none;
}
.instru-square .loading { position: absolute; top: 0; left: 0; }
.instru-slot { position: absolute; transform: translate(-50%, -50%); }
.instru-square.fallback-list .instru-slot { position: static; transform: none; }
.instru-hint { margin-top: 14px; text-align: center; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); }

.track-pill {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px 12px 14px; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  background: var(--grad); overflow: hidden; isolation: isolate; white-space: nowrap;
  transform-style: preserve-3d; transition: transform 0.12s ease, box-shadow 0.2s ease;
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.track-pill.playing { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.7), 0 0 34px rgba(255, 79, 163, 0.55); }
.track-pill-vu {
  position: absolute; inset: 0; z-index: 0; display: flex; align-items: flex-end; gap: 2px;
  padding: 6px 14px; mix-blend-mode: soft-light;
}
.vu-meter { display: contents; }
.vu-bar { flex: 1; min-height: 4px; height: 4px; border-radius: 1px; opacity: 0.95; transition: height 0.09s linear; }
.track-pill-icon {
  position: relative; z-index: 1; width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  background: rgba(10, 10, 12, 0.88); color: var(--text); font-size: 0.72rem;
  display: flex; align-items: center; justify-content: center;
}
.track-pill-title { position: relative; z-index: 1; font-weight: 600; font-size: 0.92rem; color: #0a0a0c; }

/* ---------- Collaborations ---------- */
.collabs-list { display: flex; flex-direction: column; gap: 16px; margin-top: 28px; }
.collab-card {
  display: grid; grid-template-columns: minmax(0, 220px) 1fr; gap: 20px; align-items: center;
  padding: 16px; border-radius: 18px; background: rgba(6, 6, 10, 0.45); border: 1px solid var(--line);
  transition: border-color 0.3s, transform 0.35s var(--ease);
}
.collab-card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.collab-media { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #1c1c22; cursor: pointer; }
.collab-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.collab-card:hover .collab-media img { transform: scale(1.05); }
.collab-artist {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.collab-title { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; margin-top: 4px; }
.collab-desc { color: var(--dim); font-size: 0.9rem; margin-top: 6px; }
@media (max-width: 620px) { .collab-card { grid-template-columns: 1fr; } }

/* ---------- Vignettes vidéo (accueil + page Mix) ---------- */
.video-card-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent 60%);
}
.video-card-play span {
  width: 46px; height: 46px; border-radius: 50%; background: var(--grad); color: #0a0a0c;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 30px rgba(255, 79, 163, 0.5);
  transition: transform 0.3s var(--ease);
}
.mix-teaser { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; }
.mix-card { display: block; border-radius: 16px; overflow: hidden; background: rgba(6, 6, 10, 0.45); border: 1px solid var(--line); transition: transform 0.35s var(--ease), border-color 0.3s; }
.mix-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.mix-card:hover .video-card-play span { transform: scale(1.12); }
.mix-thumb { position: relative; aspect-ratio: 16 / 9; background: #1c1c22; overflow: hidden; }
.mix-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mix-card p { padding: 10px 12px 12px; font-size: 0.84rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 720px) { .mix-teaser { grid-template-columns: 1fr 1fr; } .mix-teaser .mix-card:nth-child(3) { display: none; } }

.page-head { padding: 150px clamp(16px, 6vw, 96px) 30px; position: relative; z-index: 2; }
.page-head h1 { background: var(--grad); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: pan 8s ease-in-out infinite alternate; }
@keyframes pan { to { background-position: 100% 0; } }
.videos-wrap { padding: 0 clamp(16px, 6vw, 96px) 140px; position: relative; z-index: 2; }
.video-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.filter-chip {
  padding: 9px 17px; border-radius: 999px; border: 1px solid var(--line); cursor: pointer;
  background: var(--glass); color: var(--dim); font-size: 0.84rem; font-weight: 500;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: border-color 0.2s, color 0.2s;
}
.filter-chip:hover { border-color: var(--cyan); color: var(--text); }
.filter-chip.active { background: var(--grad); color: #0a0a0c; border-color: transparent; font-weight: 600; }
.filter-chip.sort-chip { margin-left: auto; }
.videos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.video-card {
  position: relative; border-radius: 18px; overflow: hidden; background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: border-color 0.3s, transform 0.35s var(--ease), box-shadow 0.35s;
}
.video-card:hover { transform: translateY(-4px); border-color: rgba(79, 216, 255, 0.5); box-shadow: 0 24px 60px -20px rgba(79, 216, 255, 0.35); }
.video-card.playing { border-color: var(--pink); }
.video-card-thumb-wrap { position: relative; aspect-ratio: 16 / 9; background: #1c1c22; cursor: pointer; overflow: hidden; }
.video-card-thumb-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.video-card:hover .video-card-thumb-wrap img { transform: scale(1.05); }
.video-card-thumb-wrap iframe { width: 100%; height: 100%; border: none; display: block; }
.video-card-expand {
  position: absolute; top: 8px; right: 8px; z-index: 2; width: 32px; height: 32px; border-radius: 50%;
  border: none; background: rgba(10, 10, 12, 0.72); cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.video-card-expand:hover { background: var(--violet); }
.video-card-title { padding: 12px 14px 2px; font-weight: 600; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.video-card-meta { padding: 0 14px 12px; font-size: 0.76rem; color: var(--dim); }

/* ---------- Bio + contact ---------- */
.bio-grid { display: grid; grid-template-columns: 260px 1fr; gap: clamp(24px, 5vw, 60px); align-items: start; margin-top: 30px; }
.bio-stats { display: grid; gap: 12px; }
.bio-stats .stat { padding: 20px 22px; border-radius: 18px; background: rgba(6, 6, 10, 0.45); border: 1px solid var(--line); }
.bio-stats .stat b { font-size: 2.4rem; }
.bio-text p { color: var(--dim); font-size: 1.05rem; line-height: 1.85; margin-bottom: 18px; }
.bio-text strong { color: var(--text); }
.bio-text .signoff { color: var(--text); font-style: italic; }
@media (max-width: 820px) { .bio-grid { grid-template-columns: 1fr; } .bio-stats { grid-template-columns: repeat(3, 1fr); } }

.contact-form { display: grid; gap: 12px; margin-top: 24px; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line);
  background: rgba(6, 6, 10, 0.55); color: var(--text); font-family: var(--font-body); font-size: 0.95rem;
  transition: border-color 0.2s;
}
.contact-form textarea { min-height: 130px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--violet); }
.form-note { font-size: 0.85rem; color: var(--dim); min-height: 1.3em; }
.form-note.ok { color: var(--cyan); }
.form-note.err { color: var(--pink); }
.mail-direct { margin-top: 18px; font-size: 0.9rem; color: var(--dim); }
.mail-direct a { color: var(--text); border-bottom: 1px solid var(--line-strong); }
@media (max-width: 560px) { .contact-form .row { grid-template-columns: 1fr; } }

/* ---------- Footer : fondu au noir ---------- */
.footer {
  position: relative; z-index: 2; padding: 180px 24px calc(var(--player-h) + 50px);
  background: linear-gradient(to bottom, transparent, #000 55%);
  display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center;
}
.footer img { width: 130px; filter: drop-shadow(0 6px 24px rgba(180, 103, 255, 0.35)); }
.footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; }
.footer nav a { color: var(--dim); font-size: 0.88rem; }
.footer nav a:hover { color: var(--text); }
.footer small { color: rgba(255, 255, 255, 0.35); font-size: 0.78rem; }

/* ---------- Lecteur ---------- */
.player-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100; min-height: var(--player-h);
  display: grid; grid-template-columns: minmax(170px, 280px) auto 1fr auto; align-items: center; gap: 20px;
  padding: 12px 22px; background: rgba(10, 10, 14, 0.78);
  backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4);
  border-top: 1px solid var(--line); transform: translateY(100%); transition: transform 0.4s var(--ease);
}
.player-bar::before { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 1px; background: var(--grad); opacity: 0.6; }
.player-bar.visible { transform: none; }
.player-track-info { display: flex; align-items: center; gap: 12px; min-width: 0; }
.player-media-slot { width: 46px; height: 46px; border-radius: 10px; overflow: hidden; background: #0d0d12; flex-shrink: 0; }
.player-media-slot.video-mode { width: 76px; }
.player-cover { width: 100%; height: 100%; object-fit: cover; }
.player-cover.is-logo { object-fit: contain; padding: 4px; }
.player-text { min-width: 0; display: flex; flex-direction: column; }
.player-title { font-weight: 600; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-meta { color: var(--dim); font-size: 0.76rem; font-family: var(--font-mono); }
.player-controls { display: flex; align-items: center; gap: 8px; }
.ctrl-btn {
  width: 36px; height: 36px; border-radius: 50%; border: none; background: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 1rem; transition: opacity 0.2s, transform 0.2s;
}
.ctrl-btn:hover { opacity: 0.7; }
.play-btn { width: 42px; height: 42px; background: var(--grad); color: #0b0610; box-shadow: 0 6px 20px -6px rgba(255, 79, 163, 0.7); }
.play-btn:hover { opacity: 1; transform: scale(1.08); }
#expandBtn { background: var(--grad); color: #0b0610; border-radius: 10px; }
.queue-btn { border: 1px solid var(--line) !important; border-radius: 10px !important; font-size: 0.9rem !important; }
.player-progress { display: flex; align-items: center; gap: 10px; min-width: 0; }
.time { font-family: var(--font-mono); font-size: 0.72rem; color: var(--dim); width: 38px; text-align: center; flex-shrink: 0; }
.seek-bar, .volume-bar {
  -webkit-appearance: none; appearance: none; height: 4px; border-radius: 2px; outline: none; cursor: pointer;
  background: linear-gradient(90deg, #ff4fa3, #b467ff, #4fd8ff, #ffe14f) 0 0 / var(--p, 0%) 100% no-repeat, rgba(255, 255, 255, 0.12);
}
.seek-bar { width: 100%; min-width: 100px; }
.volume-bar { width: 84px; }
.seek-bar::-webkit-slider-thumb, .volume-bar::-webkit-slider-thumb {
  -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px rgba(180, 103, 255, 0.8);
}
.player-volume { display: flex; align-items: center; gap: 8px; color: var(--dim); font-size: 0.85rem; }
.player-bar.video-mode-bar #prevBtn, .player-bar.video-mode-bar #playBtn, .player-bar.video-mode-bar #nextBtn,
.player-bar.video-mode-bar .player-progress, .player-bar.video-mode-bar .player-volume, .player-bar.video-mode-bar .queue-btn { display: none; }
@media (max-width: 800px) {
  .player-bar { grid-template-columns: 1fr auto; grid-template-areas: "info controls" "progress progress"; row-gap: 6px; padding: 10px 14px; }
  .player-track-info { grid-area: info; } .player-controls { grid-area: controls; } .player-progress { grid-area: progress; }
  .player-volume { display: none; }
}

/* playlist dépliable */
.queue-panel {
  position: fixed; right: 18px; bottom: calc(var(--player-h) + 14px); z-index: 110;
  width: min(360px, calc(100vw - 36px)); max-height: 58vh; overflow: auto;
  padding: 14px; border-radius: 18px; background: rgba(12, 12, 16, 0.92); border: 1px solid var(--line);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity 0.25s, transform 0.25s;
}
.queue-panel.open { opacity: 1; transform: none; pointer-events: auto; }
.queue-panel h3 { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim); font-weight: 500; margin: 2px 6px 10px; }
.queue-item {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; border-radius: 12px;
  border: none; background: none; cursor: pointer; text-align: left; font-size: 0.9rem;
}
.queue-item:hover { background: rgba(255, 255, 255, 0.05); }
.queue-item.current { background: rgba(180, 103, 255, 0.16); }
.queue-item .n { font-family: var(--font-mono); font-size: 0.72rem; color: var(--dim); width: 20px; }

/* vidéo agrandie */
.video-floating {
  position: fixed; right: 20px; bottom: calc(var(--player-h) + 18px); z-index: 200; width: 380px;
  border-radius: 18px; overflow: hidden; background: rgba(12, 12, 16, 0.9); border: 1px solid var(--line);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8);
  opacity: 0; transform: translateY(24px); pointer-events: none; transition: opacity 0.25s, transform 0.25s;
}
.video-floating.open { opacity: 1; transform: none; pointer-events: auto; }
.video-floating-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; }
.video-floating-title { font-size: 0.82rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.video-floating-actions { display: flex; gap: 4px; }
.vp-btn { width: 26px; height: 26px; border-radius: 8px; border: none; background: none; color: var(--dim); cursor: pointer; }
.vp-btn:hover { background: var(--line); color: var(--text); }
.video-floating-frame { aspect-ratio: 16 / 9; background: #000; }
.video-floating-frame iframe { width: 100%; height: 100%; border: none; display: block; }
@media (max-width: 640px) { .video-floating { right: 12px; width: calc(100vw - 24px); } }

/* ---------- Curseur personnalisé ---------- */
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none; border-radius: 50%; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: #fff; }
.cursor-ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1.5px solid rgba(255, 255, 255, 0.45);
  transition: width 0.25s var(--ease), height 0.25s var(--ease), margin 0.25s var(--ease), border-color 0.25s, background 0.25s;
}
.cursor-ring.hover { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: var(--pink); background: rgba(255, 79, 163, 0.08); }
@media (hover: none) { .cursor-dot, .cursor-ring { display: none; } }
@media (hover: hover) { .has-cursor, .has-cursor a, .has-cursor button { cursor: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .grain { display: none; }
}


/* ---- v2 : pas d'écran d'entrée ; barre du haut cachée jusqu'à la fin du défilement ---- */
.topbar { transform: translateY(-120%); opacity: 0; pointer-events: none; transition: transform 0.7s var(--ease), opacity 0.7s ease, background 0.35s ease, border-color 0.35s ease; }
body.nav-ready .topbar { transform: none; opacity: 1; pointer-events: auto; }
.sound-toggle { position: fixed; top: 14px; right: 16px; z-index: 60; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
body.nav-ready .sound-toggle { top: 14px; right: 72px; }
@media (min-width: 781px) { body.nav-ready .sound-toggle { right: 28px; } }
@media (min-width: 781px) { body.nav-ready .nav { margin-right: 56px; } }

/* le guide « Défile » de l'ouverture disparaît avec le fondu */
.gate-cue { z-index: 1; }
.gate.opening .gate-cue { opacity: 0; transition: opacity 0.4s ease; }
.gate-open .scene-logo .scroll-cue { opacity: 0; }

/* ---- v3 : la page s'arrête juste sur la dernière fenêtre ---- */
.footer { padding: 0 24px calc(var(--player-h) + 14px); background: none; gap: 0; }
.footer img, .footer nav { display: none; }
.footer small { padding-top: 6px; }
#contact.scene { padding-bottom: 40px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
