/* ==========================================================================
   Jonathan Guernon — site perso
   Mobile d'abord · parallaxe · « mondes » de couleur par section
   ========================================================================== */

/* Couleurs d'ambiance animables (changent selon la section visible) */
@property --c1 { syntax: '<color>'; inherits: true; initial-value: #6d3bff; }
@property --c2 { syntax: '<color>'; inherits: true; initial-value: #00d5ff; }
@property --c3 { syntax: '<color>'; inherits: true; initial-value: #ff2e8a; }
@property --accent { syntax: '<color>'; inherits: true; initial-value: #c8ff3e; }

:root {
  --bg: #07060b;
  --bg-2: #0e0c16;
  --surface: rgba(255, 255, 255, .045);
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --text: #f4f1ff;
  --muted: #aaa5c0;
  --dim: #6f6a86;

  --acid: #c8ff3e;
  --cyan: #36e7ff;
  --blood: #ff2f55;
  --violet: #8a5cff;
  --amber: #ffb547;

  --f-display: 'Unbounded', system-ui, sans-serif;
  --f-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;
  --f-serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;

  --gutter: clamp(16px, 5vw, 64px);
  --maxw: 1320px;
  --radius: 26px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.77, 0, .18, 1);
  --dock-h: 64px;

  color-scheme: dark;
}

body[data-world="hero"]  { --c1: #6d3bff; --c2: #00d5ff; --c3: #ff2e8a; --accent: #c8ff3e; }
body[data-world="book"]  { --c1: #ff1f45; --c2: #4b0a24; --c3: #7a3cff; --accent: #ff3d5e; }
body[data-world="games"] { --c1: #00d5ff; --c2: #9dff3a; --c3: #5b2cff; --accent: #36e7ff; }
body[data-world="apps"]  { --c1: #8a5cff; --c2: #2ad4ff; --c3: #ff4fa3; --accent: #b18cff; }
body[data-world="about"] { --c1: #ffb547; --c2: #ff3d5e; --c3: #7a3cff; --accent: #ffc35c; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; overflow-x: clip; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  transition: --c1 1.4s ease, --c2 1.4s ease, --c3 1.4s ease, --accent 1s ease;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, figure, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
::selection { background: var(--acid); color: #0b0b0b; }
:focus-visible { outline: 2px solid var(--acid); outline-offset: 3px; border-radius: 8px; }
main { position: relative; z-index: 1; }

.skip {
  position: fixed; left: 12px; top: 12px; z-index: 200;
  padding: 10px 16px; border-radius: 999px; background: var(--acid); color: #000;
  font-weight: 700; text-decoration: none; transform: translateY(-160%);
}
.skip:focus { transform: none; }

/* ---------- Rideau d'intro ---------- */
.curtain {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center;
  background: var(--bg);
  transition: clip-path 1s var(--ease-io) .15s, visibility 0s linear 1.2s;
  clip-path: inset(0 0 0 0);
}
html:not(.is-loading) .curtain { clip-path: inset(0 0 100% 0); visibility: hidden; }
/* Filet de sécurité : le rideau se lève seul même si le JS échoue */
html.is-loading .curtain { animation: curtainFailsafe .9s var(--ease-io) 3.5s forwards; }
@keyframes curtainFailsafe { to { clip-path: inset(0 0 100% 0); visibility: hidden; } }
.curtain__logo { width: 76px; animation: pulse 1.2s ease-in-out infinite alternate; }
.curtain__logo svg { width: 100%; height: auto; }
@keyframes pulse { from { transform: scale(.92); opacity: .6; } to { transform: scale(1.04); opacity: 1; } }

/* ---------- Décor fixe ---------- */
.stars { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -3; }
.aurora { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.aurora i {
  position: absolute; width: 90vmax; height: 90vmax; border-radius: 50%;
  opacity: .34; will-change: transform;
}
.aurora i:nth-child(1) { background: radial-gradient(closest-side, var(--c1), transparent); left: -35vmax; top: -30vmax; animation: drift1 22s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { background: radial-gradient(closest-side, var(--c2), transparent); right: -40vmax; top: 10vh; opacity: .22; animation: drift2 26s ease-in-out infinite alternate; }
.aurora i:nth-child(3) { background: radial-gradient(closest-side, var(--c3), transparent); left: 10vw; bottom: -55vmax; opacity: .26; animation: drift3 30s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate3d(18vw, 12vh, 0) scale(1.15); } }
@keyframes drift2 { to { transform: translate3d(-22vw, 20vh, 0) scale(.9); } }
@keyframes drift3 { to { transform: translate3d(14vw, -18vh, 0) scale(1.2); } }

.grain {
  position: fixed; inset: -50%; z-index: -1; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

.progress {
  position: fixed; left: 0; top: 0; z-index: 120; height: 2px; width: 100%;
  background: linear-gradient(90deg, var(--acid), var(--cyan), var(--accent));
  transform-origin: 0 50%; transform: scaleX(var(--scroll, 0));
}

/* ---------- Barre du haut ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 80;
  display: flex; align-items: center; justify-content: space-between;
  padding: max(12px, env(safe-area-inset-top)) var(--gutter) 12px;
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.topbar::before {
  content: ''; position: absolute; inset: 0 0 -24px 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 6, 11, .92), rgba(7, 6, 11, .6) 60%, transparent);
  opacity: 0; transition: opacity .4s;
}
.topbar.is-scrolled::before { opacity: 1; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand svg { width: 38px; height: 38px; }
.brand__name {
  font-family: var(--f-mono); font-size: .66rem; line-height: 1.25; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
}
.lang {
  position: relative; display: flex; align-items: center;
  padding: 4px; border-radius: 999px;
  background: rgba(14, 12, 22, .6); border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  font-family: var(--f-mono); font-size: .72rem; font-weight: 700; letter-spacing: .08em;
}
.lang span { position: relative; z-index: 1; width: 40px; padding: 7px 0; text-align: center; color: var(--muted); transition: color .3s; }
.lang i {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: 40px; border-radius: 999px;
  background: var(--text); transition: transform .45s var(--ease);
}
html[lang="en"] .lang i { transform: translateX(40px); }
html[lang="fr"] .lang [data-lang="fr"], html[lang="en"] .lang [data-lang="en"] { color: #0b0b0b; }

/* ---------- Dock ---------- */
.dock {
  position: fixed; z-index: 90; left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom));
  display: flex; gap: 2px; padding: 6px;
  border-radius: 999px;
  background: rgba(14, 12, 22, .66);
  border: 1px solid rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: 0 24px 60px -16px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .06);
  transform: translate(-50%, 0);
  transition: transform .6s var(--ease), opacity .4s;
}
.dock.is-hidden { transform: translate(-50%, calc(100% + 40px)); opacity: 0; }
.dock a {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  min-width: 58px; padding: 8px 9px 6px;
  border-radius: 999px; text-decoration: none;
  font-size: .64rem; font-weight: 700; letter-spacing: .01em; color: var(--muted);
  transition: color .35s;
}
.dock a svg { width: 21px; height: 21px; }
.dock a.is-active { color: #0b0b0b; }
.dock__pill {
  position: absolute; top: 6px; bottom: 6px; left: 0; width: 0;
  border-radius: 999px; background: var(--accent);
  box-shadow: 0 0 30px -4px var(--accent);
  transform: translateX(var(--pill-x, 0)); width: var(--pill-w, 0); opacity: var(--pill-o, 0);
  transition: transform .55s var(--ease), width .55s var(--ease), opacity .3s;
}

/* ---------- Boutons ---------- */
.btn {
  --mgx: 0px; --mgy: 0px;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: .95em 1.45em; border-radius: 999px;
  font-weight: 800; font-size: .95rem; letter-spacing: .01em; text-decoration: none; white-space: nowrap;
  transform: translate3d(var(--mgx), var(--mgy), 0);
  transition: transform .35s var(--ease), background-color .3s, box-shadow .3s, color .3s, border-color .3s;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .35s var(--ease); }
.btn:hover svg:last-child { transform: translateX(3px); }
.btn--acid { background: var(--acid); color: #0b0b0b; box-shadow: 0 14px 40px -14px rgba(200, 255, 62, .8); }
.btn--acid:hover { box-shadow: 0 18px 50px -10px rgba(200, 255, 62, .9); }
.btn--ghost {
  color: var(--text); border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.btn--ghost:hover { border-color: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .08); }
.btn--blood { background: var(--blood); color: #fff; box-shadow: 0 14px 44px -12px rgba(255, 47, 85, .8); }
.btn--blood:hover { background: #ff4768; }
.btn--xl { min-height: 64px; font-size: 1.1rem; padding: 1.1em 2em; }

/* ---------- Apparitions au scroll ---------- */
[data-reveal] {
  opacity: 0; transform: translate3d(0, 40px, 0);
  transition: opacity .9s ease, transform 1.1s var(--ease);
  transition-delay: var(--delay, 0s);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  --hp: 0;
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center;
  padding: 110px var(--gutter) 120px;
  overflow: clip;
  isolation: isolate;
}
.hero__inner {
  position: relative; z-index: 2; text-align: center;
  display: flex; flex-direction: column; align-items: center;
  transform: translate3d(0, calc(var(--hp) * 26vh), 0) scale(calc(1 - var(--hp) * .08));
  opacity: calc(1 - var(--hp) * 1.35);
}
.announce {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px;
  padding: 6px 14px 6px 6px; border-radius: 999px; text-decoration: none;
  background: linear-gradient(180deg, rgba(232, 191, 106, .16), rgba(232, 191, 106, .06));
  border: 1px solid rgba(232, 191, 106, .5); color: #f6dc9c;
  font-family: var(--f-fell); font-style: italic; font-size: .98rem; line-height: 1.2;
  box-shadow: 0 10px 40px -12px rgba(232, 168, 70, .6);
  animation: fadeUp 1s var(--ease) .1s both;
  transition: background-color .3s, transform .35s var(--ease), box-shadow .3s;
}
.announce b {
  padding: 4px 10px; border-radius: 999px; background: linear-gradient(180deg, #f6dc9c, #d9a646 55%, #b07a2a); color: #1d1206;
  font-family: var(--f-mono); font-style: normal; font-size: .6rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.announce { max-width: 100%; }
.announce span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.announce svg { width: 15px; height: 15px; flex: none; transition: transform .35s var(--ease); }
@media (max-width: 400px) {
  .announce { gap: 8px; padding-right: 12px; font-size: .9rem; }
  .announce b { padding: 4px 8px; }
}
.announce:hover { transform: translateY(-2px); box-shadow: 0 16px 50px -12px rgba(232, 168, 70, .85); }
.announce:hover svg { transform: translateX(3px); }
html.is-loading .announce { animation-play-state: paused; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-family: var(--f-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  animation: fadeUp 1s var(--ease) .2s both;
}
.kicker__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 0 0 rgba(200, 255, 62, .6); animation: ping 2s infinite; flex: none; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(200, 255, 62, .6); } 70%, 100% { box-shadow: 0 0 0 10px rgba(200, 255, 62, 0); } }

.hero__title {
  margin: 22px 0 18px;
  display: flex; flex-direction: column; align-items: center;
  font-family: var(--f-display); font-weight: 900;
  font-size: clamp(2.5rem, 11.6vw, 10.5rem);
  line-height: .9; letter-spacing: -.035em;
  perspective: 800px;
}
.hero__line { display: block; white-space: nowrap; }
.ch { display: inline-block; transform-origin: 50% 100%; animation: chIn 1.2s var(--ease) both; animation-delay: calc(var(--i) * 55ms + .45s); }
.ch__in {
  display: inline-block;
  transform: translate3d(0, calc(var(--hp) * var(--r) * -160px), 0) rotate(calc(var(--hp) * var(--r) * 28deg));
}
.hero__line:first-child .ch__in {
  background: linear-gradient(180deg, #fff 30%, #c9c2ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 30px rgba(140, 110, 255, .35));
}
.hero__line--outline { font-family: 'Unbounded Outline', var(--f-display); }
.hero__line--outline .ch__in {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(244, 241, 255, .9);
  animation: charge 7s infinite;
  animation-delay: calc(var(--i) * 90ms + 2.4s);
}
@keyframes chIn {
  from { opacity: 0; transform: translate3d(0, 55%, 0) rotateX(-85deg); filter: blur(10px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes charge {
  0%, 60%, 100% { color: transparent; -webkit-text-stroke-color: rgba(244, 241, 255, .9); text-shadow: none; }
  66%, 80% { color: var(--acid); -webkit-text-stroke-color: var(--acid); text-shadow: 0 0 40px rgba(200, 255, 62, .55); }
}
html.is-loading .ch, html.is-loading .kicker, html.is-loading .hero__lead, html.is-loading .hero__cta { animation-play-state: paused; }

.hero__lead {
  font-size: clamp(1.25rem, 4.8vw, 2.1rem); font-weight: 600; letter-spacing: -.01em; color: var(--muted);
  animation: fadeUp 1s var(--ease) 1s both;
}
.rotator { display: inline-grid; vertical-align: bottom; overflow: hidden; padding: 0 .08em; }
.rotator__word {
  grid-area: 1 / 1; display: inline-block;
  font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: 1.28em; line-height: 1.1;
  color: var(--acid);
}
.rotator__word.is-out { animation: wordOut .5s var(--ease-io) forwards; }
.rotator__word.is-in { animation: wordIn .7s var(--ease) both; }
@keyframes wordOut { to { transform: translateY(-100%) rotate(-4deg); opacity: 0; } }
@keyframes wordIn { from { transform: translateY(100%) rotate(4deg); opacity: 0; } }
.hero__dot { color: var(--acid); }

.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; animation: fadeUp 1s var(--ease) 1.2s both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } }

/* Objets flottants en orbite (parallaxe de profondeur) */
.hero__orbit { --px: 0; --py: 0; position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.float {
  --d: .5; --rot: 0deg; --w: 60px;
  position: absolute; left: var(--x); top: var(--y); width: var(--w);
  transform:
    translate3d(calc(var(--px) * var(--d) * 36px), calc(var(--py) * var(--d) * 36px + var(--hp) * var(--d) * -55vh), 0)
    scale(calc(1 + var(--hp) * var(--d) * .35))
    rotate(var(--rot));
  animation: floatIn 1.4s var(--ease) both;
  animation-delay: calc(.6s + var(--d) * .35s);
}
.float img {
  width: 100%; height: auto; border-radius: 24%;
  box-shadow: 0 30px 60px -18px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .1);
  animation: bob 6s ease-in-out infinite alternate;
  animation-delay: calc(var(--d) * -4s);
}
.float.is-pixel img { image-rendering: pixelated; }
.float.f-book img { border-radius: 3px 8px 8px 3px; box-shadow: 0 40px 70px -20px rgba(255, 30, 70, .45), 0 0 0 1px rgba(255, 255, 255, .08); }
@keyframes bob { from { transform: translateY(-8px) rotate(-2deg); } to { transform: translateY(8px) rotate(2deg); } }
@keyframes floatIn { from { opacity: 0; scale: .6; } }
html.is-loading .float { animation-play-state: paused; }

/* positions — mobile */
.f-book { --x: 6%;  --y: 65%; --w: 64px; --rot: -9deg; }
.f-1    { --x: 76%; --y: 12%; --w: 58px; --rot: 11deg; }
.f-2    { --x: 70%; --y: 75%; --w: 84px; --rot: -7deg; }
.f-3    { --x: 12%; --y: 85%; --w: 50px; --rot: 8deg; }
.f-4    { --x: 12%; --y: 13%; --w: 42px; --rot: -13deg; }
.f-5    { --x: 44%; --y: 89%; --w: 40px; --rot: 9deg; }
.f-6    { --x: 86%; --y: 46%; --w: 40px; --rot: 15deg; opacity: .8; }
.f-7    { --x: 1%;  --y: 46%; --w: 36px; --rot: -8deg; opacity: .8; }
.f-8    { display: none; }

.scrollcue {
  position: absolute; left: 50%; bottom: 28px; z-index: 2; transform: translateX(-50%);
  display: none; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: .62rem; letter-spacing: .3em; text-transform: uppercase; color: var(--dim); text-decoration: none;
  opacity: calc(1 - var(--hp) * 4);
}
.scrollcue i { width: 1px; height: 46px; background: linear-gradient(var(--text), transparent); animation: cue 2.2s var(--ease-io) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ==========================================================================
   RUBANS
   ========================================================================== */
.tapes { position: relative; z-index: 3; height: 150px; margin: -30px 0 -10px; pointer-events: none; overflow-x: clip; }
.tape {
  position: absolute; left: -10%; width: 120%; top: 50%;
  padding: 13px 0; overflow: hidden;
}
.tape--a { background: var(--acid); color: #0b0b0b; top: 40%; transform: translateY(-50%) rotate(-4deg); box-shadow: 0 20px 60px -20px rgba(200, 255, 62, .5); z-index: 2; }
.tape--b { background: #100e19; border-block: 1px solid var(--line-2); color: var(--text); top: 64%; transform: translateY(-50%) rotate(3deg); }
.tape__track {
  display: flex; width: max-content; will-change: transform;
  font-family: var(--f-display); font-weight: 800; font-size: clamp(1rem, 3.4vw, 1.7rem);
  text-transform: uppercase; letter-spacing: -.01em; line-height: 1;
}
.tape__track span { display: inline-flex; align-items: center; gap: .7em; padding-right: .7em; }
.tape__track span::after { content: '✦'; font-size: .8em; }
.tape--b .tape__track { font-family: 'Unbounded Outline', var(--f-display); font-weight: 900; }
.tape--b .tape__track span { color: transparent; -webkit-text-stroke: 1px rgba(244, 241, 255, .8); }
.tape--b .tape__track span::after { color: var(--cyan); -webkit-text-stroke: 0; }

/* ==========================================================================
   SECTIONS — en-têtes
   ========================================================================== */
.section {
  position: relative;
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(84px, 13vw, 170px) var(--gutter);
}
.sec-kicker {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}
.sec-num { color: var(--accent); display: inline-flex; align-items: center; gap: 12px; }
.sec-num::after { content: ''; width: 34px; height: 1px; background: currentColor; }
.sec-title {
  margin-top: .4em;
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(2.35rem, 9.6vw, 6.2rem);
  line-height: .98; letter-spacing: -.04em;
}
.sec-title em {
  font-family: var(--f-serif); font-style: italic; font-weight: 400;
  font-size: 1.14em; letter-spacing: -.01em; color: var(--accent);
  padding-right: .04em;
}
.sec-lead { color: var(--muted); font-size: 1.05rem; max-width: 34ch; }
.sec-head--split { display: grid; gap: 22px; }
.sec-aside { display: grid; gap: 14px; }
.counter { font-family: var(--f-mono); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.counter b { font-family: var(--f-display); font-size: 2.2rem; letter-spacing: -.03em; color: var(--text); margin-right: 6px; vertical-align: -4px; }

/* ==========================================================================
   LIVRES
   ========================================================================== */
.books { overflow: clip; }
.books__ghost {
  position: absolute; top: 90px; left: 0; right: 0; z-index: -1;
  pointer-events: none; overflow: hidden;
}
.books__ghost span {
  display: block; white-space: nowrap;
  font-family: 'Unbounded Outline', var(--f-display); font-weight: 900; font-size: 34vw; line-height: .8; letter-spacing: -.05em;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 61, 94, .16);
  transform: translateX(calc(10% - var(--bp, 0) * 18%));
}

.book-stage { display: grid; gap: 40px; margin-top: 40px; align-items: center; }
.book-scene {
  --bp: 0; --tx: 0; --ty: 0;
  position: relative; display: grid; place-items: center;
  min-height: 440px; perspective: 1500px;
}
.book-scene::before {
  content: ''; position: absolute; width: 130%; aspect-ratio: 1; left: 50%; top: 50%;
  translate: -50% -50%;
  background: radial-gradient(closest-side, rgba(255, 31, 69, .42), rgba(255, 31, 69, .08) 55%, transparent);
  animation: heartbeat 2.4s ease-in-out infinite;
}
@keyframes heartbeat { 0%, 40%, 100% { scale: 1; opacity: .8; } 12% { scale: 1.07; opacity: 1; } 24% { scale: 1.02; } 30% { scale: 1.09; opacity: 1; } }

.book3d {
  --w: min(58vw, 290px); --h: calc(var(--w) * 1.5); --t: calc(var(--w) * .1);
  position: relative; width: var(--w); height: var(--h);
  transform-style: preserve-3d;
  transform:
    translate3d(0, calc(var(--bp) * -30px), 0)
    rotateX(calc(7deg - var(--bp) * 5deg + var(--ty) * -10deg))
    rotateY(calc(26deg - var(--bp) * 42deg + var(--tx) * 16deg));
}
.book3d > * { position: absolute; }
.book3d__front, .book3d__back { inset: 0; border-radius: 2px 6px 6px 2px; overflow: hidden; backface-visibility: hidden; }
.book3d__front { transform: translateZ(calc(var(--t) / 2)); background: #111; }
.book3d__front img, .book3d__back img { width: 100%; height: 100%; object-fit: cover; }
.book3d__front::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .5) 0, rgba(255, 255, 255, .16) 2.5%, rgba(0, 0, 0, .15) 5%, transparent 9%),
    linear-gradient(calc(100deg + var(--bp) * 40deg), transparent 30%, rgba(255, 255, 255, .16) 48%, transparent 62%);
}
.book3d__back { transform: rotateY(180deg) translateZ(calc(var(--t) / 2)); background: #1a1a1d; }
.book3d__spine {
  top: 0; height: 100%; width: var(--t); left: calc(50% - var(--t) / 2);
  transform: rotateY(-90deg) translateZ(calc(var(--w) / 2));
  background: linear-gradient(90deg, #0b0b0e, #26232d 45%, #0b0b0e);
  display: flex; align-items: center; justify-content: center;
}
.book3d__spine span {
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-family: var(--f-mono); font-size: clamp(.5rem, 1.8vw, .66rem); letter-spacing: .14em; color: #e9e4f5; white-space: nowrap;
}
.book3d__spine::before { content: ''; position: absolute; top: 12%; left: 20%; right: 20%; height: 2px; background: var(--blood); }
.book3d__pages {
  top: 1.5%; height: 97%; width: calc(var(--t) - 2px); left: calc(50% - var(--t) / 2);
  transform: rotateY(90deg) translateZ(calc(var(--w) / 2 - 3px));
  background: repeating-linear-gradient(90deg, #f1ebdd 0 1px, #cfc6b3 1px 2px);
  box-shadow: inset 0 0 12px rgba(0, 0, 0, .35);
}
.book3d__top {
  left: 1%; width: 97%; height: calc(var(--t) - 2px); top: calc(50% - var(--t) / 2);
  transform: rotateX(90deg) translateZ(calc(var(--h) / 2 - 3px));
  background: repeating-linear-gradient(0deg, #f1ebdd 0 1px, #cfc6b3 1px 2px);
}
.book-shadow {
  position: absolute; bottom: 4%; left: 50%; width: 70%; height: 30px; translate: -50% 0;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .8), transparent); filter: blur(6px);
}

.book-info { display: grid; gap: 18px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2);
  font-family: var(--f-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.tag--hot { border-color: rgba(255, 61, 94, .5); color: #ff8aa0; background: rgba(255, 47, 85, .08); }
.book-title { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.8rem, 6.4vw, 3.3rem); line-height: 1.02; letter-spacing: -.035em; }
.book-hook { font-family: var(--f-serif); font-style: italic; font-size: clamp(1.35rem, 4.6vw, 1.9rem); line-height: 1.2; color: #ffc2cd; }
.book-syn { color: var(--muted); font-size: 1.02rem; max-width: 58ch; }
.book-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; border-radius: 18px; overflow: hidden; background: var(--line); border: 1px solid var(--line); }
.book-meta div { background: rgba(10, 8, 16, .75); padding: 12px 10px; }
.book-meta dt { font-family: var(--f-mono); font-size: .58rem; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.book-meta dd { font-weight: 800; font-size: .95rem; margin-top: 2px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }

.shelf { margin-top: 80px; display: grid; gap: 22px; }
.shelf__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 22px; }
.shelf__title { font-family: var(--f-display); font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; display: flex; align-items: center; gap: 10px; }
.shelf__title::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--blood); box-shadow: 0 0 14px var(--blood); animation: ping 2s infinite; }
.shelf__text { color: var(--muted); font-size: .95rem; }
.shelf__row { display: flex; gap: 16px; overflow-x: auto; padding: 6px 2px 14px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.shelf__row::-webkit-scrollbar { display: none; }
.ghost-book { flex: none; width: 124px; scroll-snap-align: start; display: grid; gap: 10px; }
.ghost-book__cover {
  position: relative; aspect-ratio: 2 / 3; border-radius: 3px 10px 10px 3px; overflow: hidden;
  border: 1.5px dashed rgba(255, 255, 255, .22);
  background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .03) 0 8px, transparent 8px 16px), rgba(255, 255, 255, .02);
  display: grid; place-items: center;
}
.ghost-book__cover::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .09) 50%, transparent 70%);
  transform: translateX(-100%); animation: shimmer 2.8s ease-in-out infinite;
}
.ghost-book:nth-child(2) .ghost-book__cover::after { animation-delay: .5s; }
@keyframes shimmer { to { transform: translateX(100%); } }
.ghost-book__cover b { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: 3.4rem; color: rgba(255, 255, 255, .3); }
.ghost-book__name { font-weight: 800; font-size: .9rem; line-height: 1.2; }
.ghost-book__state { font-family: var(--f-mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.ghost-book__state::after { content: '▍'; margin-left: 3px; color: var(--blood); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ==========================================================================
   JEUX
   ========================================================================== */
.filters {
  display: flex; gap: 8px; margin-top: 34px;
  overflow-x: auto; scrollbar-width: none; padding: 4px 2px 8px;
  margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
}
.filters::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 7px;
  min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03);
  font-weight: 700; font-size: .88rem; color: var(--muted);
  transition: background-color .3s, color .3s, border-color .3s, transform .3s var(--ease);
}
.chip svg { width: 17px; height: 17px; }
.chip b { font-family: var(--f-mono); font-size: .7rem; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: var(--text); }
.chip:hover { border-color: rgba(255, 255, 255, .35); color: var(--text); }
.chip.is-active { background: var(--text); color: #0b0b0b; border-color: var(--text); }
.chip.is-active b { background: rgba(0, 0, 0, .12); color: #0b0b0b; }
.chip[data-empty] { opacity: .45; }

.games__grid { display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: 22px; }
.games__empty { margin-top: 30px; padding: 40px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--radius); font-family: var(--f-serif); font-style: italic; font-size: 1.4rem; }

.gcard { --ca: var(--acid); position: relative; perspective: 1000px; }
.gcard[data-reveal] { transform: translate3d(0, 60px, 0) rotateX(16deg) scale(.96); transform-origin: 50% 100%; }
.gcard[data-reveal].is-in { transform: none; }
.gcard__inner {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%; --holo: 0;
  position: relative; height: 100%;
  display: flex; flex-direction: column;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .065), rgba(255, 255, 255, .02));
  border: 1px solid var(--line);
  overflow: hidden; isolation: isolate;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .6s var(--ease), border-color .4s, box-shadow .4s;
}
.gcard:hover .gcard__inner { border-color: color-mix(in srgb, var(--ca) 45%, transparent); box-shadow: 0 30px 80px -30px color-mix(in srgb, var(--ca) 55%, transparent); }
.gcard.is-tilting .gcard__inner { transition: transform .12s linear, border-color .4s, box-shadow .4s; }

.gcard__art {
  position: relative; display: grid; place-items: center;
  aspect-ratio: 16 / 10; overflow: hidden; isolation: isolate; text-decoration: none;
}
.gcard__bg { position: absolute; inset: -25%; width: 150%; height: 150%; max-width: none; object-fit: cover; filter: blur(34px) saturate(1.7); opacity: .6; z-index: -2; }
.gcard__shot {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1;
  transform: scale(1.14) translate3d(calc(var(--mxn, 0) * -8px), calc((var(--sp, .5) - .5) * -34px + var(--myn, 0) * -8px), 0);
  transition: transform .8s var(--ease), filter .6s;
}
.gcard__art::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 40%, rgba(7, 6, 11, .75)); }
.gcard__icon {
  width: 40%; max-width: 150px; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 24%;
  box-shadow: 0 26px 50px -14px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255, 255, 255, .12);
  transform: translate3d(calc(var(--mxn, 0) * 12px), calc(var(--myn, 0) * 12px), 0);
  transition: transform .6s var(--ease), scale .6s var(--ease);
}
.gcard:hover .gcard__icon { scale: 1.07; }
.gcard:hover .gcard__shot { filter: saturate(1.15) brightness(1.06); }
.gcard.is-tilting .gcard__shot { transition: transform .12s linear, filter .6s; }

/* Carte avec vraie capture : visuel plein cadre, icône en badge */
.gcard.has-shot .gcard__bg { display: none; }
.gcard.has-shot .gcard__art::after {
  background: linear-gradient(180deg, rgba(7, 6, 11, .45) 0%, transparent 28%, transparent 58%, rgba(7, 6, 11, .8) 100%);
}
.gcard.has-shot .gcard__icon {
  position: absolute; left: 14px; bottom: 14px;
  width: 62px; max-width: none; border-radius: 17px;
  box-shadow: 0 14px 30px -8px rgba(0, 0, 0, .85), 0 0 0 2px rgba(255, 255, 255, .2);
  transform: translate3d(calc(var(--mxn, 0) * 6px), calc(var(--myn, 0) * 6px), 0);
}

/* Carte vedette (le jeu mis en avant) : plus grande, halo, badge qui pulse */
.gcard--featured .gcard__inner {
  border-color: color-mix(in srgb, var(--ca) 45%, transparent);
  box-shadow: 0 40px 100px -40px color-mix(in srgb, var(--ca) 70%, transparent);
}
.gcard--featured .gcard__art { aspect-ratio: 4 / 3; }
.gcard--featured.has-shot .gcard__icon { width: 78px; border-radius: 21px; }
.gcard--featured .gcard__title { font-size: 1.9rem; }
.gcard--featured .gcard__tag { font-size: 1.45rem; }
.gcard--featured .gcard__badge { animation: badgePulse 2s ease-in-out infinite; }
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(200, 255, 62, .7), 0 0 24px -2px rgba(200, 255, 62, .7); }
  50% { box-shadow: 0 0 0 8px rgba(200, 255, 62, 0), 0 0 34px 2px rgba(200, 255, 62, .8); }
}
.gcard.is-pixel .gcard__icon, .gcard.is-pixel .gcard__bg { image-rendering: pixelated; }
.gcard__genre {
  position: absolute; left: 14px; top: 14px;
  padding: 6px 11px; border-radius: 999px;
  background: rgba(8, 7, 14, .55); border: 1px solid rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-family: var(--f-mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: #e8e4f6;
}
.gcard__badge {
  position: absolute; right: 14px; top: 14px;
  padding: 6px 11px; border-radius: 999px;
  background: var(--acid); color: #0b0b0b;
  font-family: var(--f-mono); font-size: .62rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  box-shadow: 0 0 24px -2px rgba(200, 255, 62, .7);
}
.gcard__body { display: flex; flex-direction: column; gap: 8px; padding: 20px 18px 18px; flex: 1; }
.gcard__title { font-family: var(--f-display); font-weight: 800; font-size: 1.4rem; line-height: 1.1; letter-spacing: -.025em; }
.gcard__tag { font-family: var(--f-serif); font-style: italic; font-size: 1.22rem; line-height: 1.2; color: var(--ca); }
.gcard__desc { color: var(--muted); font-size: .94rem; line-height: 1.55; flex: 1; }

.plats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; }
.plat {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-height: 58px; padding: 8px 2px; border-radius: 16px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .035);
  font-size: .7rem; font-weight: 800; letter-spacing: .01em; line-height: 1.1; text-decoration: none; color: var(--text);
  transition: background-color .3s, color .3s, transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.plat svg { width: 20px; height: 20px; }
.plat small { font-family: var(--f-mono); font-size: .52rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.plat.is-on {
  border-color: color-mix(in srgb, var(--ca) 50%, transparent);
  background: color-mix(in srgb, var(--ca) 14%, transparent);
}
.plat.is-on:hover, .plat.is-on:focus-visible {
  background: var(--ca); color: #0b0b0b; border-color: var(--ca);
  transform: translateY(-3px); box-shadow: 0 12px 30px -10px var(--ca);
}
.plat.is-off {
  color: #8d88a3; border-style: dashed; border-color: rgba(255, 255, 255, .14);
  background: transparent; cursor: not-allowed; filter: grayscale(1); opacity: .6;
}

.gcard__holo {
  position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, .22), transparent 42%),
    linear-gradient(115deg, transparent 18%, rgba(54, 231, 255, .16) 36%, rgba(255, 79, 163, .16) 50%, rgba(200, 255, 62, .16) 64%, transparent 82%);
  background-size: 100% 100%, 260% 260%;
  background-position: 0 0, var(--mx) var(--my);
  mix-blend-mode: overlay;
  opacity: var(--holo);
  transition: opacity .5s;
}

.store-link {
  --mgx: 0px; --mgy: 0px;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin-top: 26px; padding: 20px 24px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03);
  font-weight: 800; text-decoration: none; text-align: center;
  transform: translate3d(var(--mgx), var(--mgy), 0);
  transition: transform .35s var(--ease), background-color .3s, color .3s, border-color .3s;
}
.store-link svg { width: 22px; height: 22px; flex: none; }
.store-link:hover { background: #3ddc84; color: #0b0b0b; border-color: #3ddc84; }
.store-link:hover .store-link__arrow { transform: translateX(4px); }
.store-link__arrow { transition: transform .35s var(--ease); }

/* ==========================================================================
   APPS
   ========================================================================== */
.apps__list { display: grid; gap: 16px; margin-top: 44px; }
.acard {
  --ca: var(--violet);
  position: relative; display: grid; gap: 14px; padding: 20px;
  border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(160deg, color-mix(in srgb, var(--ca) 12%, transparent), rgba(255, 255, 255, .02) 55%);
  overflow: hidden;
  transition: border-color .4s, transform .5s var(--ease);
}
.acard:hover { border-color: color-mix(in srgb, var(--ca) 50%, transparent); transform: translateY(-4px); }
.acard__head { display: flex; align-items: center; gap: 14px; }
.acard__icon { width: 60px; height: 60px; border-radius: 18px; object-fit: cover; flex: none; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .1); background: #fff; }
.acard__name { font-family: var(--f-display); font-weight: 800; font-size: 1.15rem; line-height: 1.15; letter-spacing: -.02em; }
.acard__genre { font-family: var(--f-mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ca); margin-top: 3px; }
.acard__desc { color: var(--muted); font-size: .93rem; }
.acard .plats { margin-top: 0; }
/* Applis : seulement les plateformes disponibles, qui se partagent toute la largeur (Web seul = pleine largeur) */
.plats--only { grid-template-columns: repeat(var(--n, 1), 1fr); }
.plats--only .plat { flex-direction: row; gap: 10px; min-height: 52px; font-size: .9rem; }

/* ==========================================================================
   MOI
   ========================================================================== */
.about__grid { display: grid; gap: 44px; align-items: center; }
.about__photo { position: relative; width: min(100%, 460px); margin-inline: auto; }
.about__frame {
  position: relative; aspect-ratio: 1; overflow: hidden;
  border-radius: 42% 58% 55% 45% / 45% 42% 58% 55%;
  animation: morph 16s ease-in-out infinite alternate;
  box-shadow: 0 0 0 1px var(--line-2), 0 50px 120px -40px var(--c1);
}
.about__frame::after { content: ''; position: absolute; inset: 0; background: linear-gradient(200deg, transparent 50%, color-mix(in srgb, var(--c1) 35%, transparent)); mix-blend-mode: soft-light; }
.about__frame img { width: 100%; height: 118%; max-width: none; object-fit: cover; margin-top: -9%; transform: translate3d(0, var(--py, 0px), 0); }
@keyframes morph {
  0%   { border-radius: 42% 58% 55% 45% / 45% 42% 58% 55%; }
  50%  { border-radius: 58% 42% 40% 60% / 55% 60% 40% 45%; }
  100% { border-radius: 48% 52% 62% 38% / 38% 55% 45% 62%; }
}
.about__sticker {
  position: absolute; right: -2%; bottom: 2%; width: 118px; aspect-ratio: 1;
  display: grid; place-items: center;
  border-radius: 50%; background: var(--acid); color: #0b0b0b;
  box-shadow: 0 20px 50px -14px rgba(200, 255, 62, .6);
}
.about__sticker svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 18s linear infinite; }
.about__sticker text { font-family: var(--f-mono); font-size: 9.2px; font-weight: 700; letter-spacing: 2.2px; fill: #0b0b0b; text-transform: uppercase; }
.about__sticker b { font-family: var(--f-display); font-weight: 900; font-size: 1.5rem; letter-spacing: -.04em; }
@keyframes spin { to { transform: rotate(360deg); } }

.about__body { display: grid; gap: 20px; }
.about__text { color: var(--muted); font-size: 1.1rem; max-width: 52ch; }
.traits { display: flex; flex-wrap: wrap; gap: 8px; }
.traits li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px 9px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line);
  font-weight: 700; font-size: .9rem;
  animation: bob2 5s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -.8s);
}
.traits li span { font-size: 1.15rem; line-height: 1; }
@keyframes bob2 { from { transform: translateY(-2px); } to { transform: translateY(3px); } }

.socials__title { margin-top: 12px; font-family: var(--f-mono); font-size: .72rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.socials { display: grid; gap: 8px; }
.social {
  position: relative; display: flex; align-items: center; gap: 14px;
  padding: 12px 18px 12px 12px; border-radius: 20px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .03);
  text-decoration: none; overflow: hidden; isolation: isolate;
  transition: border-color .3s, color .3s;
}
.social::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--sc, var(--accent)); transform: scaleX(0); transform-origin: left;
  transition: transform .55s var(--ease);
}
.social:hover::before, .social:focus-visible::before { transform: scaleX(1); }
.social:hover, .social:focus-visible { color: #0b0b0b; border-color: transparent; }
.social__ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, .07); flex: none; transition: background-color .3s; }
.social:hover .social__ico { background: rgba(0, 0, 0, .12); }
.social__ico svg { width: 21px; height: 21px; }
.social__txt { display: grid; line-height: 1.25; min-width: 0; }
.social__txt b { font-size: .98rem; }
.social__txt small { font-family: var(--f-mono); font-size: .7rem; opacity: .7; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.social__arrow { width: 18px; height: 18px; margin-left: auto; flex: none; transition: transform .35s var(--ease); }
.social:hover .social__arrow { transform: translateX(3px) rotate(-45deg); }

/* ==========================================================================
   PIED DE PAGE
   ========================================================================== */
.footer { position: relative; z-index: 1; padding: clamp(60px, 10vw, 120px) var(--gutter) 0; overflow: clip; }
.footer__cta { display: grid; justify-items: center; gap: 28px; text-align: center; }
.footer__q { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.7rem, 7vw, 4.6rem); line-height: 1.02; letter-spacing: -.04em; }
.footer__giant { margin: clamp(50px, 9vw, 110px) calc(var(--gutter) * -1) 0; text-align: center; pointer-events: none; }
.footer__giant span {
  display: block;
  font-family: var(--f-display); font-weight: 900; font-size: 15.4vw; line-height: .8; letter-spacing: -.06em;
  background: linear-gradient(180deg, rgba(244, 241, 255, .22), rgba(244, 241, 255, 0) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transform: translate3d(0, var(--py, 0px), 0);
}
.footer__bar {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px;
  padding: 22px 0 calc(var(--dock-h) + 40px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  font-family: var(--f-mono); font-size: .7rem; letter-spacing: .06em; color: var(--dim);
}
.footer__top { text-decoration: none; color: var(--muted); }
.footer__top:hover { color: var(--acid); }

/* ==========================================================================
   HISTOIRES INTERACTIVES — Ecstaquest, la salle du musée
   ========================================================================== */
:root {
  --gold: #e8bf6a; --gold-2: #f6dc9c; --gold-3: #9c6b22; --parch: #efe3c8;
  --f-fell: 'IM Fell English', Georgia, 'Times New Roman', serif;
  --f-fell-sc: 'IM Fell English SC', Georgia, 'Times New Roman', serif;
  --gold-text: linear-gradient(180deg, #fff6d8 8%, #e8bf6a 55%, #a8742a 96%);
}
body[data-world="tale"] { --c1: #c98a2b; --c2: #5a1a14; --c3: #243a6b; --accent: #e8bf6a; }

.tales { --ca: var(--gold); }
.tales::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(70% 30% at 50% 12%, rgba(232, 191, 106, .12), transparent 70%);
}
.tales .sec-title em { font-family: var(--f-fell); font-style: italic; font-size: 1.1em; letter-spacing: 0; }

/* Titre doré */
.eq-head { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; align-items: center; margin-top: 46px; }
.eq-head__name { grid-column: 1 / -1; }
.eq-head__icon {
  width: 72px; height: 72px; border-radius: 14px;
  box-shadow: 0 0 0 1px rgba(232, 191, 106, .45), 0 20px 50px -14px rgba(232, 191, 106, .6);
}
.eq-head__genre { font-family: var(--f-mono); font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.eq-head__name {
  font-family: var(--f-fell-sc); font-weight: 400;
  font-size: clamp(2.7rem, 12.5vw, 6.6rem); line-height: .92; letter-spacing: .01em;
  background: var(--gold-text); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 26px rgba(232, 191, 106, .35));
}
.eq-head__tag { grid-column: 1 / -1; margin-top: 8px; font-family: var(--f-fell); font-style: italic; font-size: clamp(1.25rem, 4.4vw, 1.75rem); line-height: 1.3; color: var(--parch); }

/* La pile de tableaux 3D (images promo entières, jamais recadrées ni zoomées) */
.eq-stack { --spread: 1; position: relative; margin-top: 30px; padding-top: 10%; }
.eq-stack::before {
  content: ''; position: absolute; left: 50%; top: 52%; width: 125%; height: 140%; translate: -50% -50%;
  z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(232, 160, 70, .36), rgba(232, 160, 70, .08) 55%, transparent);
  animation: flicker 3.4s infinite;
}
@keyframes flicker { 0%, 100% { opacity: .85; } 11% { opacity: 1; } 19% { opacity: .74; } 33% { opacity: .96; } 47% { opacity: .8; } 62% { opacity: 1; } 78% { opacity: .86; } }
.eq-deck {
  position: relative; aspect-ratio: var(--ratio, 16 / 9); perspective: 1600px;
  touch-action: pan-y; user-select: none; -webkit-user-select: none; outline-offset: 10px;
}
.eq-card {
  --x: 0%; --y: 0%; --r: 0deg; --s: 1; --sh: 0; --dx: 0px; --dr: 0deg;
  position: absolute; inset: 0; margin: 0; border-radius: 3px; background: #0b0806;
  transform:
    translate3d(calc(var(--x) * var(--spread) + var(--dx)), calc(var(--y) * var(--spread)), 0)
    rotate(calc(var(--r) * var(--spread) + var(--dr)))
    scale(calc(1 - (1 - var(--s)) * var(--spread)));
  transition: transform .75s var(--ease), opacity .5s ease;
  /* tranche dorée du cadre (épaisseur) + ombre portée */
  box-shadow:
    1px 1px 0 #b88a3a, 2px 2px 0 #9c6b22, 3px 3px 0 #7a5418, 4px 4px 0 #5e3c10, 5px 6px 0 #4a2f0c,
    0 44px 80px -30px rgba(0, 0, 0, .95);
  will-change: transform;
}
.eq-card img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: inherit; pointer-events: none; -webkit-user-drag: none; }
.eq-card::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: #07050a; opacity: var(--sh); transition: opacity .6s ease;
}
.eq-card.is-top { cursor: grab; }
.eq-card.is-hidden { opacity: 0; }
.eq-card.is-dragging { transition: none; cursor: grabbing; }
.eq-card.is-flying { transition: transform .45s cubic-bezier(.5, 0, .75, .2), opacity .45s ease; }
.eq-card.no-anim { transition: none; }

.eq-stack__ui { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.eq-arrow {
  flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(12, 8, 4, .6); border: 1px solid rgba(232, 191, 106, .5); color: var(--gold-2);
  transition: transform .3s var(--ease), background-color .3s, color .3s;
}
.eq-arrow svg { width: 19px; height: 19px; }
.eq-arrow--prev svg { transform: rotate(180deg); }
.eq-arrow:hover { transform: scale(1.08); background: var(--gold); color: #1d1206; }
.eq-bars { flex: 1; display: flex; gap: 6px; }
.eq-bars button { flex: 1; height: 24px; display: flex; align-items: center; }
.eq-bars button span { display: block; width: 100%; height: 3px; border-radius: 3px; overflow: hidden; background: rgba(232, 191, 106, .22); }
.eq-bars i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-3), var(--gold-2)); transform-origin: left; transform: scaleX(0); }
.eq-bars .is-done i { transform: scaleX(1); }
.eq-bars .is-active i { animation: barFill 6.5s linear forwards; }
.eq-stack.is-paused .eq-bars .is-active i { animation-play-state: paused; }
@keyframes barFill { to { transform: scaleX(1); } }
.eq-caption { min-height: 1.5em; margin-top: 6px; text-align: center; font-family: var(--f-fell); font-style: italic; font-size: 1.1rem; color: var(--parch); }

/* Appel à jouer */
.eq-cta { display: grid; justify-items: center; gap: 16px; margin-top: 30px; text-align: center; }
.btn--gold {
  background: linear-gradient(180deg, #f6dc9c, #d9a646 55%, #b07a2a); color: #1d1206;
  box-shadow: 0 16px 44px -12px rgba(232, 168, 70, .85), inset 0 1px 0 rgba(255, 255, 255, .55);
}
.btn--gold:hover { box-shadow: 0 22px 60px -10px rgba(232, 168, 70, 1), inset 0 1px 0 rgba(255, 255, 255, .55); }
.eq-cta .plats { width: min(100%, 440px); margin-top: 0; }
.eq-promise { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* L'histoire, avec lettrine enluminée */
.eq-story { max-width: 780px; margin: clamp(80px, 13vw, 150px) auto 0; }
.eq-story p { font-family: var(--f-fell); font-size: clamp(1.3rem, 4vw, 1.8rem); line-height: 1.5; color: var(--parch); }
.eq-story p + p { margin-top: .9em; }
.eq-lettrine::first-letter {
  float: left; margin: .08em .16em 0 0; padding: .1em .16em .02em;
  font-family: var(--f-fell-sc); font-size: 3.7em; line-height: .8; color: var(--gold-2);
  border: 1px solid rgba(232, 191, 106, .6);
  background: radial-gradient(circle at 50% 40%, rgba(122, 30, 42, .65), rgba(38, 12, 8, .85));
  text-shadow: 0 0 20px rgba(232, 191, 106, .55);
}

/* Jour / nuit */
.eq-dn { margin-top: clamp(80px, 13vw, 150px); }
.eq-dn__view {
  --split: 82%;
  position: relative; aspect-ratio: var(--ratio, 2 / 1); overflow: hidden; border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(232, 191, 106, .32), 0 50px 100px -40px rgba(0, 0, 0, .9);
  touch-action: pan-y; cursor: ew-resize; user-select: none; -webkit-user-select: none;
}
.eq-dn__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.eq-dn__img--night { clip-path: inset(0 0 0 var(--split)); }
.eq-dn__line {
  position: absolute; top: 0; bottom: 0; left: var(--split); width: 2px; margin-left: -1px; pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--gold-2) 18%, var(--gold-2) 82%, transparent);
  box-shadow: 0 0 18px rgba(246, 220, 156, .85);
}
.eq-dn__knob {
  position: absolute; top: 50%; left: var(--split); z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 2px;
  width: 64px; height: 40px; padding: 0 9px; translate: -50% -50%; border-radius: 999px;
  background: linear-gradient(180deg, #f6dc9c, #d9a646 55%, #a8742a); color: #2a1a08;
  box-shadow: 0 10px 30px -6px rgba(0, 0, 0, .85), 0 0 0 4px rgba(246, 220, 156, .25);
  cursor: grab;
}
.eq-dn__knob svg { width: 17px; height: 17px; }
.eq-dn__tag {
  position: absolute; top: 12px; z-index: 1; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px; pointer-events: none;
  background: rgba(12, 8, 4, .6); border: 1px solid rgba(232, 191, 106, .38);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-family: var(--f-fell-sc); font-size: .95rem; color: var(--parch);
}
.eq-dn__tag svg { width: 15px; height: 15px; color: var(--gold-2); }
.eq-dn__tag--day { left: 12px; } .eq-dn__tag--night { right: 12px; }
.eq-dn__cols { display: grid; gap: 24px; margin-top: 28px; }
.eq-dn__cols h2, .eq-dn__cols h4 {
  display: flex; align-items: center; gap: 10px; margin: 0 0 6px;
  font-family: var(--f-fell-sc); font-weight: 400; font-size: clamp(1.55rem, 5.2vw, 2.2rem); color: var(--gold-2);
}
.eq-dn__cols h2 svg, .eq-dn__cols h4 svg { width: 22px; height: 22px; flex: none; }
.eq-dn__cols p { color: var(--muted); font-size: 1.02rem; }

/* Les chiffres en dorure */
.eq-stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: clamp(80px, 13vw, 150px);
  overflow: hidden; border-radius: 18px; background: rgba(232, 191, 106, .24); border: 1px solid rgba(232, 191, 106, .24);
}
.eq-stats li { padding: 24px 14px; text-align: center; background: rgba(14, 9, 5, .84); }
.eq-stats li:last-child { grid-column: 1 / -1; }
.eq-stats b {
  display: block; font-family: var(--f-fell-sc); font-weight: 400; font-size: clamp(2.7rem, 10vw, 4.6rem); line-height: 1;
  background: var(--gold-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eq-stats span { display: block; margin-top: 8px; font-family: var(--f-mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* Le mystère, question par question */
.eq-mystery { margin-top: clamp(90px, 14vw, 170px); text-align: center; }
.eq-mystery__kicker { font-weight: 500; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.eq-q { display: grid; gap: .3em; margin-top: 20px; padding: 0; list-style: none; counter-reset: q; }
.eq-q li {
  font-family: var(--f-fell); font-style: italic; font-size: clamp(1.75rem, 6.6vw, 3.7rem); line-height: 1.15;
  color: rgba(239, 227, 200, .16); transform: scale(.96);
  transition: color .9s ease, text-shadow .9s ease, transform .9s var(--ease);
}
.eq-q li::before {
  counter-increment: q; content: counter(q, upper-roman) '\00a0·\00a0';
  font-family: var(--f-fell-sc); font-style: normal; font-size: .48em; vertical-align: .35em; color: rgba(232, 191, 106, .4);
}
.eq-q li.is-lit { color: var(--gold-2); text-shadow: 0 0 34px rgba(232, 160, 70, .6); transform: none; }

/* La galerie : on longe un mur de tableaux */
.eq-wall { position: relative; width: 100vw; margin-left: calc(50% - 50vw); margin-top: clamp(70px, 11vw, 130px); }
.eq-wall__sticky { padding: 30px 0; }
.eq-wall__title { font-weight: 400; padding: 0 16px; text-align: center; font-family: var(--f-fell-sc); font-size: clamp(1.7rem, 6.4vw, 3.2rem); color: var(--gold-2); }
.eq-wall__track {
  display: flex; align-items: flex-start; gap: clamp(28px, 6vw, 90px);
  margin-top: clamp(22px, 5vh, 54px); padding: 10px max(8vw, calc(50vw - 300px)) 26px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.eq-wall__track::-webkit-scrollbar { display: none; }
.eq-art { flex: none; width: min(84vw, 620px); margin: 0; scroll-snap-align: center; transform: perspective(1200px) rotateY(var(--ry, 0deg)) scale(var(--as, 1)); }
.eq-art__frame {
  position: relative; padding: clamp(10px, 1.6vw, 18px); border-radius: 4px;
  background: linear-gradient(135deg, #6b4512 0%, #f3d58a 18%, #a8742a 34%, #f6dc9c 50%, #8a5a1c 68%, #e8bf6a 84%, #5e3c10 100%);
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .35), inset 0 0 0 5px rgba(255, 236, 180, .35), 0 40px 70px -24px rgba(0, 0, 0, .95);
}
.eq-art__frame::before {
  content: ''; position: absolute; left: 50%; top: -55%; z-index: -1; width: 150%; height: 110%; translate: -50% 0; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 226, 160, .3), transparent);
}
.eq-art__frame img { display: block; width: 100%; height: auto; aspect-ratio: var(--ratio, 2 / 1); object-fit: cover; outline: 1px solid rgba(0, 0, 0, .65); }
.eq-art figcaption {
  width: max-content; max-width: 92%; margin: 16px auto 0; padding: 8px 16px; text-align: center; border-radius: 3px;
  background: linear-gradient(180deg, #f0d28a, #b88a3a); color: #2a1a08;
  box-shadow: 0 6px 14px -4px rgba(0, 0, 0, .75), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.eq-art figcaption b { display: block; font-family: var(--f-fell); font-style: italic; font-weight: 400; font-size: 1.08rem; line-height: 1.2; }
.eq-art figcaption span { display: block; font-family: var(--f-fell-sc); font-size: .8rem; letter-spacing: .03em; opacity: .8; }
.eq-wall__hint { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; padding: 0 16px; text-align: center; font-family: var(--f-mono); font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.eq-wall__hint i { position: relative; width: 120px; height: 2px; border-radius: 2px; overflow: hidden; background: rgba(232, 191, 106, .2); }
.eq-wall__hint i::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--gold-3), var(--gold-2)); transform-origin: left; transform: scaleX(var(--wp, 0)); }
/* Mode « épinglé » : le défilement vertical fait avancer la galerie */
.eq-wall.is-pinned { height: var(--wall-h, 300vh); }
.eq-wall.is-pinned .eq-wall__sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh; padding: 56px 0 calc(var(--dock-h) + 30px); overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
}
.eq-wall.is-pinned .eq-wall__track { width: max-content; overflow: visible; scroll-snap-type: none; transform: translate3d(var(--wx, 0px), 0, 0); will-change: transform; }

/* Fin */
.eq-end { display: grid; justify-items: center; gap: 20px; margin-top: clamp(40px, 8vw, 90px); text-align: center; }
.eq-end p { font-family: var(--f-fell); font-style: italic; font-size: clamp(1.7rem, 6.4vw, 3.2rem); line-height: 1.15; color: var(--parch); }


/* Aperçu d'une histoire sur l'accueil + emplacement « prochaine histoire » */
.eq-teaser + .eq-teaser { margin-top: clamp(80px, 12vw, 140px); }
.eq-cta--teaser { margin-top: 34px; grid-template-columns: 1fr !important; justify-items: center; }
/* Grands boutons des histoires (« Explorer … », « Jouer … », bouton de fin) :
   même boîte pour toutes les histoires, quel que soit le thème, sur l'accueil comme sur leurs sites */
.eq-cta .btn--xl, .eq-end .btn--xl {
  box-sizing: border-box; width: 330px; max-width: 100%; height: 64px; min-height: 0; padding: 0 22px;
  justify-content: center; white-space: nowrap; font-size: 1.1rem;
}
.theme-neon .eq-cta .btn--xl, .theme-neon .eq-end .btn--xl { font-size: 1.5rem; }
.eq-soon {
  display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center;
  margin-top: clamp(70px, 11vw, 120px); padding: 22px; border-radius: 22px;
  border: 1px dashed rgba(232, 191, 106, .35); background: rgba(232, 191, 106, .04);
}
.eq-soon__frame {
  position: relative; width: 108px; aspect-ratio: 16 / 11; display: grid; place-items: center; overflow: hidden;
  border-radius: 4px; padding: 8px;
  background: linear-gradient(135deg, rgba(107, 69, 18, .5), rgba(243, 213, 138, .35) 30%, rgba(122, 84, 24, .5) 60%, rgba(232, 191, 106, .35));
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .35);
}
.eq-soon__frame::before { content: ''; position: absolute; inset: 8px; background: #0e0a06; }
.eq-soon__frame::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 236, 180, .18) 50%, transparent 70%);
  transform: translateX(-100%); animation: shimmer 3s ease-in-out infinite;
}
.eq-soon__frame b { position: relative; z-index: 1; font-family: var(--f-fell); font-style: italic; font-weight: 400; font-size: 2.6rem; color: rgba(246, 220, 156, .55); }
.eq-soon__kicker { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.eq-soon__kicker::after { content: '▍'; margin-left: 4px; color: var(--gold); animation: blink 1s steps(1) infinite; }
.eq-soon__title { margin-top: 4px; font-family: var(--f-fell); font-style: italic; font-weight: 400; font-size: clamp(1.35rem, 4.6vw, 2rem); line-height: 1.2; color: var(--parch); }
.eq-soon__text { margin-top: 4px; color: var(--muted); font-size: .95rem; }

/* Page dédiée d'une histoire (/ecstaquest/) */
.tales--page { padding-top: clamp(96px, 14vw, 150px); }
.tales--page .sec-kicker a { color: inherit; text-decoration: none; }
.tales--page .sec-kicker a:hover { color: var(--gold-2); }
.tales--page .eq-head { margin-top: 18px; }
.dock--back { padding: 5px; width: max-content; max-width: calc(100vw - 32px); }
.dock__back { white-space: nowrap; box-sizing: border-box; height: 46px; width: 300px; max-width: calc(100vw - 42px); justify-content: center; }
.dock__back {
  display: inline-flex !important; flex-direction: row !important; align-items: center; gap: 10px;
  min-width: 0 !important; padding: 12px 22px !important; border-radius: 999px;
  background: linear-gradient(180deg, #f6dc9c, #d9a646 55%, #b07a2a); color: #1d1206 !important;
  font-size: .9rem !important; font-weight: 800; text-decoration: none;
  box-shadow: 0 10px 30px -10px rgba(232, 168, 70, .8);
}
.dock__back svg, .i-back { width: 18px !important; height: 18px !important; transform: rotate(180deg); }
.dock__back--out svg { transform: none; }
/* Site dédié d'une histoire (ex. ecstaquest.net) : pas de menu, seulement la langue */
.topbar--story { justify-content: flex-end; }
.topbar--story::before { display: none; }
.curtain__logo img { width: 100%; height: auto; border-radius: 14%; }
.footer__giant--story span {
  font-family: var(--f-fell-sc); font-weight: 400; font-size: 13vw; letter-spacing: 0;
  background: linear-gradient(180deg, rgba(246, 220, 156, .28), rgba(246, 220, 156, 0) 90%);
  -webkit-background-clip: text; background-clip: text;
}


/* ==========================================================================
   Thème NÉON (Outrunner) — cassette VHS de 1989, magenta et cyan
   ========================================================================== */
body[data-world="neon"] { --c1: #ff3d9a; --c2: #48e8ff; --c3: #7a3cff; --accent: #48e8ff; }
.theme-neon {
  --pink: #ff3d9a; --cyan: #48e8ff; --violet: #8a5cff; --ca: #48e8ff;
  --f-vt: 'VT323', ui-monospace, 'SFMono-Regular', monospace;
  --neon-frame: 0 0 0 2px var(--cyan), 0 0 0 5px #0b0718, 0 0 0 7px var(--pink), 0 0 26px rgba(255, 61, 154, .55), 0 0 60px rgba(72, 232, 255, .22);
  position: relative;
}
.tales--neon::before { background: radial-gradient(70% 30% at 50% 10%, rgba(255, 61, 154, .14), transparent 70%); }

/* Titre au néon qui grésille */
.theme-neon .eq-head__icon { border-radius: 12px; box-shadow: var(--neon-frame); }
.theme-neon .eq-head__genre { font-family: var(--f-vt); font-size: 1rem; letter-spacing: .1em; color: var(--pink); }
.theme-neon .eq-head__name {
  font-family: var(--f-vt); font-weight: 400; letter-spacing: .05em; text-transform: uppercase;
  font-size: clamp(3.6rem, 17vw, 8.6rem); line-height: .82;
  background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--cyan); filter: none;
  text-shadow: 0 0 6px rgba(72, 232, 255, .95), 0 0 26px rgba(72, 232, 255, .55), 4px 0 0 rgba(255, 61, 154, .8);
  animation: neonFlicker 7s infinite;
}
@keyframes neonFlicker { 0%, 17%, 21%, 61%, 64%, 100% { opacity: 1; } 19%, 62.5% { opacity: .5; } }
.theme-neon .eq-head__tag { font-family: var(--f-vt); font-style: normal; font-size: clamp(1.6rem, 5.6vw, 2.3rem); line-height: 1.1; color: #ffe3f3; }

/* Pile d'écrans cathodiques au cadre néon, sur un sol quadrillé */
.theme-neon .eq-stack::before {
  background: radial-gradient(closest-side, rgba(255, 61, 154, .34), rgba(72, 232, 255, .1) 55%, transparent);
  animation: flicker 2.6s infinite;
}
.theme-neon .eq-stack::after {
  content: ''; position: absolute; left: -12%; right: -12%; bottom: 8%; height: 42%; z-index: -1; pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(72, 232, 255, .4) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(0deg, rgba(255, 61, 154, .38) 0 1px, transparent 1px 30px);
  transform: perspective(380px) rotateX(64deg); transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, #000 20%, transparent 95%); mask-image: linear-gradient(to top, #000 20%, transparent 95%);
}
.theme-neon .eq-card { border-radius: 10px; background: #05040a; box-shadow: var(--neon-frame), 0 44px 80px -30px rgba(0, 0, 0, .95); }
.theme-neon .eq-card::before {
  content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .16) 0 1px, transparent 1px 3px), radial-gradient(125% 95% at 50% 45%, transparent 62%, rgba(0, 0, 0, .42));
}
.theme-neon .eq-card::after { z-index: 2; }
.theme-neon .eq-arrow { border-color: var(--cyan); color: var(--cyan); background: rgba(7, 6, 13, .75); box-shadow: 0 0 14px rgba(72, 232, 255, .45); }
.theme-neon .eq-arrow:hover { background: var(--pink); border-color: var(--pink); color: #0b0718; }
.theme-neon .eq-bars button span { background: rgba(72, 232, 255, .18); }
.theme-neon .eq-bars i { background: linear-gradient(90deg, var(--pink), var(--cyan)); box-shadow: 0 0 8px var(--cyan); }
.theme-neon .eq-caption { font-family: var(--f-vt); font-style: normal; font-size: 1.5rem; letter-spacing: .04em; color: var(--cyan); text-shadow: 0 0 10px rgba(72, 232, 255, .6); }

/* Boutons néon */
.theme-neon .btn--gold, body[data-theme="neon"] .dock__back {
  background: linear-gradient(90deg, var(--pink, #ff3d9a), var(--violet, #8a5cff)); color: #fff !important;
  font-family: 'VT323', ui-monospace, monospace; font-weight: 400; letter-spacing: .08em; text-transform: uppercase;
  box-shadow: 0 0 0 2px rgba(72, 232, 255, .9), 0 0 26px rgba(255, 61, 154, .75), 0 0 60px rgba(138, 92, 255, .35);
  text-shadow: 0 0 8px rgba(255, 255, 255, .55);
}
.theme-neon .btn--gold { font-size: 1.6rem; }
body[data-theme="neon"] .dock__back { font-size: 1.1rem !important; }
.theme-neon .btn--gold:hover { box-shadow: 0 0 0 2px #fff, 0 0 34px rgba(255, 61, 154, .95), 0 0 80px rgba(72, 232, 255, .45); }
.theme-neon .eq-promise { font-family: var(--f-vt); font-size: 1.05rem; letter-spacing: .06em; color: #c9b6ea; }

/* L'histoire, en texte de terminal */
.theme-neon .eq-story {
  padding: clamp(20px, 4vw, 36px); border-radius: 12px;
  background: rgba(7, 6, 13, .75); box-shadow: 0 0 0 1px rgba(72, 232, 255, .4), 0 0 50px rgba(255, 61, 154, .12) inset;
}
.theme-neon .eq-story p { font-family: var(--f-vt); font-size: clamp(1.4rem, 4.6vw, 1.85rem); line-height: 1.32; color: #e4f6ff; }
.theme-neon .eq-lettrine::first-letter {
  font-family: var(--f-vt); font-size: 3.2em; line-height: .8; padding: .08em .14em 0;
  color: var(--pink); border-color: var(--cyan); background: #140a28; text-shadow: 0 0 14px var(--pink);
}
.theme-neon .eq-story p:last-child::after { content: '█'; margin-left: 6px; color: var(--cyan); animation: blink 1s steps(1) infinite; }

/* L'équipage : la séance d'identification */
.or-crew { margin-top: clamp(80px, 13vw, 150px); }
.or-crew__title {
  font-family: var(--f-vt); font-weight: 400; text-align: center; text-transform: uppercase; letter-spacing: .08em;
  font-size: clamp(2.6rem, 10vw, 4.6rem); color: var(--pink); text-shadow: 0 0 12px rgba(255, 61, 154, .85), 0 0 40px rgba(255, 61, 154, .4);
}
.or-crew__list {
  display: flex; gap: 14px; margin: 26px calc(var(--gutter) * -1) 0; padding: 10px var(--gutter) 18px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; list-style: none;
}
.or-crew__list::-webkit-scrollbar { display: none; }
.or-card {
  flex: 0 0 min(64vw, 260px); scroll-snap-align: center;
  padding: 12px 12px 16px; border-radius: 14px; background: rgba(9, 6, 18, .88);
  box-shadow: 0 0 0 1px rgba(72, 232, 255, .32), 0 20px 40px -20px rgba(0, 0, 0, .9);
}
.or-card__stage {
  position: relative; aspect-ratio: 3 / 4; display: flex; align-items: flex-end; justify-content: center;
  overflow: hidden; isolation: isolate; border-radius: 8px; background: #06040c;
}
/* vignette de flou : le fond est l'image elle-même, floutée ; le portrait net s'y fond sans arête */
.or-card__stage::before {
  content: ''; position: absolute; inset: -14%; z-index: -1;
  background: var(--img) center bottom / cover no-repeat;
  filter: blur(18px) saturate(1.3) brightness(.7);
}
.or-card__stage::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse 85% 80% at 50% 55%, transparent 55%, rgba(6, 4, 12, .8));
}
.or-card__stage img {
  width: auto; max-width: 100%; object-fit: contain; object-position: bottom;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18%, #000 82%, transparent 100%), linear-gradient(180deg, transparent 0, #000 8%, #000 86%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 18%, #000 82%, transparent 100%), linear-gradient(180deg, transparent 0, #000 8%, #000 86%, transparent 100%);
  mask-composite: intersect;
}
.or-card__name { margin-top: 10px; font-family: var(--f-vt); font-weight: 400; font-size: 2.1rem; line-height: 1; color: #fff; text-shadow: 0 0 10px rgba(255, 61, 154, .85); }
.or-card__role { font-family: var(--f-vt); font-size: 1.2rem; letter-spacing: .06em; text-transform: uppercase; color: var(--pink); }
.or-card__line { margin-top: 6px; font-size: .92rem; line-height: 1.45; color: var(--muted); }

/* Le film de LyLy : « Découvre l'équipage » */
.or-video { margin-top: clamp(80px, 13vw, 150px); }
.or-video__title {
  font-family: var(--f-vt); font-weight: 400; text-align: center; text-transform: uppercase; letter-spacing: .08em;
  font-size: clamp(2.4rem, 9vw, 4.4rem); color: var(--cyan); text-shadow: 0 0 12px rgba(72, 232, 255, .85), 0 0 40px rgba(72, 232, 255, .4);
}
.or-video__screen {
  position: relative; margin-top: 26px; aspect-ratio: var(--ratio, 16 / 9); overflow: hidden;
  border-radius: 10px; background: #000; box-shadow: var(--neon-frame), 0 50px 100px -40px rgba(0, 0, 0, .95);
}
.or-video__screen video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.or-video__play {
  position: absolute; left: 50%; top: 82%; translate: -50% -50%; z-index: 2;
  display: inline-flex; align-items: center; gap: 12px; padding: 14px 26px; border-radius: 999px;
  background: linear-gradient(90deg, var(--pink), var(--violet)); color: #fff;
  font-family: var(--f-vt); font-size: clamp(1.3rem, 4.6vw, 1.7rem); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
  box-shadow: 0 0 0 2px rgba(72, 232, 255, .9), 0 0 30px rgba(255, 61, 154, .8);
  transition: transform .3s var(--ease), opacity .3s;
}
.or-video__play svg { width: 22px; height: 22px; flex: none; }
@media (max-width: 600px) { .or-video__play { top: 84%; gap: 8px; padding: 8px 16px; font-size: 1.15rem; } .or-video__play svg { width: 16px; height: 16px; } }
.or-video__play:hover { transform: scale(1.05); }
.or-video.is-playing .or-video__play { opacity: 0; pointer-events: none; }

/* VHS 89 ↔ HD */
.theme-neon .eq-dn__view { border-radius: 10px; box-shadow: var(--neon-frame); }
.theme-neon .eq-dn__line { background: linear-gradient(180deg, transparent, var(--cyan) 14%, var(--pink) 86%, transparent); box-shadow: 0 0 16px var(--cyan); }
.theme-neon .eq-dn__knob { background: linear-gradient(90deg, var(--pink), var(--violet)); color: #fff; box-shadow: 0 0 0 2px var(--cyan), 0 0 20px rgba(255, 61, 154, .85); }
.theme-neon .eq-dn__tag { font-family: var(--f-vt); font-size: 1.2rem; letter-spacing: .06em; border-color: var(--cyan); color: var(--cyan); background: rgba(7, 6, 13, .75); }
.theme-neon .eq-dn__tag svg, .theme-neon .eq-dn__cols h2 svg { color: var(--pink); }
.theme-neon .eq-dn__cols h2 { font-family: var(--f-vt); font-size: clamp(2rem, 6.4vw, 2.7rem); letter-spacing: .03em; color: var(--cyan); text-shadow: 0 0 14px rgba(72, 232, 255, .6); }

/* Les chiffres, en afficheur néon */
.theme-neon .eq-stats { background: rgba(255, 61, 154, .38); border-color: rgba(255, 61, 154, .5); box-shadow: 0 0 34px rgba(255, 61, 154, .18); }
.theme-neon .eq-stats li { background: rgba(9, 6, 18, .92); }
.theme-neon .eq-stats b {
  font-family: var(--f-vt); font-size: clamp(3.6rem, 13vw, 5.8rem);
  background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--cyan);
  text-shadow: 0 0 10px rgba(72, 232, 255, .85), 0 0 32px rgba(72, 232, 255, .4);
}
.theme-neon .eq-stats span { color: #d9c7f2; }

/* Galerie : des enseignes lumineuses */
.theme-neon .eq-wall__title { font-family: var(--f-vt); font-size: clamp(2.4rem, 9vw, 4.4rem); letter-spacing: .06em; text-transform: uppercase; color: var(--cyan); text-shadow: 0 0 12px rgba(72, 232, 255, .85), 0 0 40px rgba(72, 232, 255, .4); }
.theme-neon .eq-art__frame { padding: 6px; border-radius: 10px; background: #0b0718; box-shadow: var(--neon-frame), 0 40px 70px -24px rgba(0, 0, 0, .95); }
.theme-neon .eq-art__frame::before { background: radial-gradient(closest-side, rgba(255, 61, 154, .3), transparent); }
.theme-neon .eq-art__frame img { border-radius: 6px; outline: 0; }
.theme-neon .eq-art figcaption { border-radius: 6px; background: rgba(7, 6, 13, .88); color: #fff; box-shadow: 0 0 0 1px var(--pink), 0 0 18px rgba(255, 61, 154, .45); }
.theme-neon .eq-art figcaption b { font-family: var(--f-vt); font-style: normal; font-size: 1.55rem; letter-spacing: .03em; color: var(--cyan); text-shadow: 0 0 8px rgba(72, 232, 255, .7); }
.theme-neon .eq-art figcaption span { font-family: var(--f-vt); font-size: 1.1rem; color: var(--pink); opacity: 1; }
.theme-neon .eq-wall__hint { font-family: var(--f-vt); font-size: 1.05rem; }
.theme-neon .eq-wall__hint i { background: rgba(72, 232, 255, .2); }
.theme-neon .eq-wall__hint i::after { background: linear-gradient(90deg, var(--pink), var(--cyan)); }
.theme-neon .eq-end p { font-family: var(--f-vt); font-style: normal; font-size: clamp(2.3rem, 8.4vw, 4.2rem); letter-spacing: .04em; color: var(--cyan); text-shadow: 0 0 14px rgba(72, 232, 255, .75); }
body[data-theme="neon"] .footer__giant--story span {
  font-family: 'VT323', ui-monospace, monospace; font-size: 17vw; letter-spacing: .04em; text-transform: uppercase;
  background: linear-gradient(180deg, rgba(72, 232, 255, .3), rgba(255, 61, 154, 0) 90%); -webkit-background-clip: text; background-clip: text;
}
@media (min-width: 900px) {
  .or-crew__list { display: grid; grid-template-columns: repeat(5, 1fr); overflow: visible; margin-inline: 0; padding-inline: 0; }
}

/* Flottant Ecstaquest dans l'accueil */
.float.is-frame img { border-radius: 12%; box-shadow: 0 30px 60px -18px rgba(232, 160, 70, .55), 0 0 0 1px rgba(232, 191, 106, .35); }
.f-9 { --x: 43%; --y: 6%; --w: 50px; --rot: 6deg; }

@media (min-width: 900px) {
  .eq-head { grid-template-columns: auto 1fr; gap: 4px 26px; margin-top: 60px; }
  .eq-head__icon { width: 118px; height: 118px; border-radius: 22px; grid-row: 1 / span 3; }
  .eq-head__genre { grid-column: 2; align-self: end; }
  .eq-head__name { grid-column: 2; }
  .eq-head__tag { grid-column: 2; margin-top: 0; align-self: start; }
  .eq-stack { max-width: 1060px; margin: 44px auto 0; padding-top: 7%; }
  .eq-cta { grid-template-columns: auto minmax(0, 440px); justify-content: center; align-items: center; gap: 18px 28px; }
  .eq-promise { grid-column: 1 / -1; }
  .eq-dn__cols { grid-template-columns: 1fr 1fr; gap: 48px; }
  .eq-dn__cols > div:last-child { text-align: right; }
  .eq-dn__cols > div:last-child h2, .eq-dn__cols > div:last-child h4 { justify-content: flex-end; }
  .eq-stats { grid-template-columns: repeat(5, 1fr); }
  .eq-stats li:last-child { grid-column: auto; }
  .eq-dn__knob { width: 76px; height: 46px; }
  .f-9 { --x: 58%; --y: 6%; --w: 92px; --rot: 5deg; }
  .f-7 { --x: 40%; --y: 85%; --w: 50px; }
}

/* ==========================================================================
   TABLETTE
   ========================================================================== */
@media (min-width: 640px) {
  .games__grid { grid-template-columns: repeat(2, 1fr); }
  .apps__list { grid-template-columns: repeat(2, 1fr); }
  .socials { grid-template-columns: repeat(2, 1fr); }
  .ghost-book { width: 140px; }
  .gcard__title { font-size: 1.3rem; }
  .gcard--featured { grid-column: 1 / -1; }
  .gcard--featured .gcard__art { aspect-ratio: 16 / 9; }
  .gcard--featured .gcard__title { font-size: 2.2rem; }
}

@media (min-width: 900px) {
  :root { --dock-h: 0px; }
  .brand svg { width: 42px; height: 42px; }
  .brand__name { font-size: .7rem; }

  .dock { top: 14px; bottom: auto; transform: translate(-50%, 0); padding: 5px; }
  .dock.is-hidden { transform: translate(-50%, 0); opacity: 1; }
  .dock a { flex-direction: row; gap: 8px; min-width: 0; padding: 10px 16px; font-size: .82rem; }
  .dock a svg { width: 17px; height: 17px; }
  .dock__pill { top: 5px; bottom: 5px; }

  .hero { padding-top: 140px; }
  .kicker { font-size: .72rem; }
  .scrollcue { display: flex; }

  .f-book { --x: 6%;  --y: 57%; --w: 118px; --rot: -10deg; }
  .f-1    { --x: 84%; --y: 10%; --w: 104px; --rot: 12deg; }
  .f-2    { --x: 83%; --y: 62%; --w: 140px; --rot: -7deg; }
  .f-3    { --x: 5%;  --y: 14%; --w: 84px;  --rot: 9deg; }
  .f-4    { --x: 27%; --y: 9%;  --w: 62px;  --rot: -14deg; }
  .f-5    { --x: 68%; --y: 80%; --w: 68px;  --rot: 10deg; }
  .f-6    { --x: 2%;  --y: 40%; --w: 56px;  --rot: 16deg; opacity: 1; }
  .f-7    { --x: 68%; --y: 8%;  --w: 54px;  --rot: -8deg; opacity: 1; }
  .f-8    { display: block; --x: 27%; --y: 80%; --w: 70px; --rot: 6deg; }

  .sec-head--split { grid-template-columns: 1.3fr 1fr; align-items: end; }
  .sec-aside { justify-items: end; text-align: right; }
  .sec-head--split > .sec-lead { justify-self: end; text-align: right; }

  .book-stage { grid-template-columns: 1fr 1.05fr; gap: 60px; margin-top: 30px; }
  .book-scene { min-height: 620px; }
  .book3d { --w: min(28vw, 330px); }
  .shelf__row { overflow: visible; }

  .filters { margin-inline: 0; padding-inline: 2px; flex-wrap: wrap; overflow: visible; }

  .games__grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .gcard--featured { grid-column: 1 / -1; }
  .gcard--featured .gcard__inner { flex-direction: row; }
  .gcard--featured .gcard__art { aspect-ratio: 16 / 9; flex: 1.6; }
  .gcard--featured .gcard__icon { width: 46%; max-width: 220px; }
  .gcard--featured.has-shot .gcard__icon { width: 96px; left: 24px; bottom: 24px; border-radius: 26px; }
  .gcard--featured .gcard__genre { left: 20px; top: 20px; }
  .gcard--featured .gcard__badge { right: 20px; top: 20px; font-size: .72rem; padding: 8px 14px; }
  .gcard--featured .gcard__body { flex: 1; padding: 36px 34px 30px; justify-content: center; gap: 12px; }
  .gcard--featured .gcard__title { font-size: 2.8rem; }
  .gcard--featured .gcard__tag { font-size: 1.8rem; }
  .gcard--featured .gcard__desc { flex: 0; font-size: 1.05rem; }
  .gcard--featured .plat { min-height: 64px; }

  .apps__list { grid-template-columns: repeat(3, 1fr); gap: 20px; }

  .about__grid { grid-template-columns: .9fr 1.1fr; gap: 80px; }
  .about__sticker { width: 138px; }

  .footer__bar { padding-bottom: 30px; }
}

@media (min-width: 1200px) {
  .hero__title { font-size: min(10.5rem, 11vw); }
}

/* Hover uniquement sur appareils à pointeur fin */
@media (hover: none) {
  .gcard:hover .gcard__icon { scale: 1; }
  .btn:hover svg:last-child { transform: none; }
}

/* ==========================================================================
   Mouvement réduit
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .grain, .aurora i { animation: none !important; }
  [data-reveal], .gcard[data-reveal] { opacity: 1; transform: none; }
  .hero__inner, .ch__in, .float { transform: none !important; opacity: 1 !important; }
  .eq-art { transform: none !important; }
  .eq-q li { color: var(--gold-2); transform: none; }
}


/* ---------- PC : choix Windows / Linux (main.js ouvrirTelechargement) ---------- */
.dl-choix {
  width: min(460px, calc(100vw - 32px)); padding: 28px 24px 22px; border: 1px solid color-mix(in srgb, var(--ca) 45%, var(--line-2));
  border-radius: var(--radius); background: var(--bg-2); color: var(--text); box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}
.dl-choix::backdrop { background: rgba(4, 3, 8, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.dl-choix h2 { margin: 0 0 4px; font-family: var(--f-display); font-size: 1.25rem; font-weight: 700; }
.dl-sous { margin: 0 0 18px; color: var(--muted); }
.dl-liste { display: grid; gap: 10px; }
.dl-os {
  position: relative; display: grid; gap: 3px; padding: 14px 16px; border-radius: 16px; text-decoration: none; color: var(--text);
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .035); transition: background-color .3s, border-color .3s, transform .3s var(--ease);
}
.dl-os strong { font-size: 1.05rem; font-weight: 800; }
.dl-os span { font-size: .8rem; color: var(--muted); }
.dl-os em { position: absolute; top: 12px; right: 14px; font-style: normal; font-family: var(--f-mono); font-size: .58rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ca); }
.dl-os.is-rec { border-color: color-mix(in srgb, var(--ca) 60%, transparent); background: color-mix(in srgb, var(--ca) 14%, transparent); }
.dl-os:hover, .dl-os:focus-visible { border-color: var(--ca); background: color-mix(in srgb, var(--ca) 22%, transparent); transform: translateY(-1px); outline: none; }
.dl-note { margin: 16px 0 0; font-size: .8rem; line-height: 1.45; color: var(--muted); }
.dl-fermer {
  position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent;
  color: var(--muted); font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.dl-fermer:hover, .dl-fermer:focus-visible { color: var(--text); background: rgba(255, 255, 255, .08); outline: none; }
