/* ==========================================================================
   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: 68px; padding: 8px 12px 6px;
  border-radius: 999px; text-decoration: none;
  font-size: .68rem; font-weight: 700; letter-spacing: .02em; 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);
}
.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);
}
.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__badge--feat { background: var(--text); box-shadow: none; }
.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; }

/* ==========================================================================
   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); }

/* ==========================================================================
   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; }
}

@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 18px; 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: span 2; }
  .gcard--featured .gcard__inner { flex-direction: row; }
  .gcard--featured .gcard__art { aspect-ratio: auto; flex: 1.1; }
  .gcard--featured .gcard__icon { width: 46%; max-width: 220px; }
  .gcard--featured.has-shot .gcard__icon { width: 84px; left: 20px; bottom: 20px; border-radius: 22px; }
  .gcard--featured .gcard__body { flex: 1; padding: 30px 26px 24px; justify-content: center; }
  .gcard--featured .gcard__title { font-size: 2.1rem; }
  .gcard--featured .gcard__tag { font-size: 1.6rem; }
  .gcard--featured .gcard__desc { flex: 0; font-size: 1rem; }

  .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; }
}
