/* 🌑 BLACKOUT - site officiel.
   Une seule longue nuit : des scènes plein cadre empilées sur du noir, le texte dans une colonne étroite,
   et une lampe torche sous le pointeur. Couleurs et polices reprises du jeu et de la bande-annonce. */

:root {
  color-scheme: dark;
  --void: #07070a;      /* fond de page */
  --soot: #111117;      /* panneaux */
  --line: #26252d;      /* filets, bordures */
  --ash: #ece6db;       /* texte */
  --fog: #a39c91;       /* texte secondaire */
  --blood: #e3241b;     /* accent, boutons */
  --blood-hi: #ff4434;
  --bulb: #fff0c8;      /* lumière de la lampe */
  --ok: #5be37a;        /* réussite (mini-jeux) */
  --brass: #f2c14e;     /* clés */

  --f-display: "Bebas Neue", "Oswald", Impact, "Arial Narrow", sans-serif;
  --f-ui: "Oswald", "Arial Narrow", "Helvetica Neue", sans-serif;
  --f-body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --f-type: "Special Elite", "Courier New", monospace;

  --gutter: clamp(16px, 4.5vw, 56px);
  --col: 36rem;
  --bar-h: 76px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--void);
  color: var(--ash);
  font: 400 1.0625rem/1.6 var(--f-body);
  overflow-x: hidden;
}
img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--bulb); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ash); color: var(--void); font: 600 .9rem var(--f-ui); text-decoration: none; border-radius: 4px; }
.skip:focus { top: 12px; }

/* grain de pellicule (texture générée par site.js) */
.grain {
  position: fixed; inset: -50%; z-index: 60; pointer-events: none;
  background-image: var(--noise, none); opacity: .075;
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 17% { transform: translate(-6%, 4%); } 33% { transform: translate(5%, -7%); }
  50% { transform: translate(-3%, 8%); } 67% { transform: translate(8%, 2%); } 83% { transform: translate(-7%, -4%); }
}

/* ------------------------------------------------------------------ textes communs */
.kicker {
  display: inline-flex; align-items: center; gap: .6em;
  font: 500 .8125rem/1 var(--f-ui); letter-spacing: .22em; text-transform: uppercase; color: var(--fog);
}
.kicker::before { /* le point rouge d'une caméra qui enregistre */
  content: ""; width: .55em; height: .55em; border-radius: 50%; background: var(--blood);
  box-shadow: 0 0 10px var(--blood); animation: rec 2.4s steps(1) infinite;
}
@keyframes rec { 0%, 60% { opacity: 1; } 61%, 100% { opacity: .25; } }
.h2 { font: 400 clamp(3rem, 8vw, 6.5rem)/.9 var(--f-display); letter-spacing: .01em; }
.section-head { display: grid; gap: 18px; max-width: var(--col); }
.section-intro { color: var(--fog); font-size: 1.125rem; max-width: 34rem; }
.type { font-family: var(--f-type); }
.muted { color: var(--fog); }

/* les textes "s'allument" quand on arrive dessus (état de repos : déjà lisible) */
.js .glow { opacity: .42; filter: brightness(.7); transition: opacity .9s var(--ease), filter .9s var(--ease); }
.js .glow.is-lit { opacity: 1; filter: none; }

/* ------------------------------------------------------------------ boutons */
.btn {
  --b: var(--blood);
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px; padding: 0 26px; border: 1px solid transparent; border-radius: 10px;
  background: var(--b); color: #fff; cursor: pointer; text-decoration: none;
  font: 500 1rem/1 var(--f-ui); letter-spacing: .12em; text-transform: uppercase;
  transition: transform .2s var(--ease), box-shadow .3s var(--ease), background-color .2s;
}
.btn:hover { background: var(--blood-hi); box-shadow: 0 0 0 1px rgba(255, 80, 60, .4), 0 10px 40px -8px rgba(227, 36, 27, .8); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn svg { width: 1em; height: 1em; flex: none; }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: .875rem; }
.btn--xl { min-height: 64px; padding: 0 40px; font-size: 1.25rem; }
.btn--ghost { background: transparent; border-color: rgba(236, 230, 219, .28); color: var(--ash); }
.btn--ghost:hover { background: rgba(236, 230, 219, .08); border-color: rgba(236, 230, 219, .6); box-shadow: none; }
.btn--play { box-shadow: 0 0 0 1px rgba(255, 80, 60, .35), 0 12px 50px -12px rgba(227, 36, 27, .9); }
.btn[disabled] { opacity: .45; cursor: default; }

.icon-btn {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(236, 230, 219, .22); background: transparent; cursor: pointer;
}
.icon-btn:hover { border-color: rgba(236, 230, 219, .6); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn .on { display: none; }
.icon-btn[aria-pressed="true"] .on { display: block; }
.icon-btn[aria-pressed="true"] .off { display: none; }
.icon-btn[aria-pressed="true"] { border-color: var(--blood); color: #fff; box-shadow: 0 0 18px -4px var(--blood); }

/* ------------------------------------------------------------------ barre du haut */
.bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; gap: 24px;
  height: calc(var(--bar-h) + env(safe-area-inset-top, 0px)); padding: env(safe-area-inset-top, 0px) var(--gutter) 0;
  transition: background-color .4s, backdrop-filter .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.bar--simple .bar__actions { margin-left: auto; }
.bar.is-solid, .bar--simple { background: rgba(7, 7, 10, .82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-color: var(--line); }
.bar__logo img { display: block; height: 64px; width: auto; }
@media (max-width: 760px) { .bar__logo img { height: 40px !important; } }
.bar__logo {
  font: 400 1.75rem/1 var(--f-display); letter-spacing: .08em; text-decoration: none; color: #fbeae4;
  text-shadow: 0 0 12px rgba(227, 36, 27, .9);
}
.bar__nav { display: flex; gap: 26px; margin-left: auto; }
.bar__nav a {
  font: 500 .8125rem/1 var(--f-ui); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: var(--fog);
  padding: 8px 0; transition: color .2s;
}
.bar__nav a:hover { color: var(--ash); }
.bar__actions { display: flex; align-items: center; gap: 12px; }
.bar__lang {
  font: 500 .8125rem/1 var(--f-ui); letter-spacing: .14em; text-decoration: none; color: var(--fog);
  padding: 12px 6px;
}
.bar__lang:hover { color: var(--ash); }
@media (max-width: 960px) {
  .bar__nav { display: none; }
  .bar__actions { margin-left: auto; }
}

/* ------------------------------------------------------------------ héros : la lampe torche */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(600px, 94svh, 1000px);
  display: grid; align-items: end;
  padding: calc(var(--bar-h) + 40px) var(--gutter) clamp(36px, 6vw, 72px);
  --lx: 52%; --ly: 40%; --r: 240px;
}
.hero__scene { position: absolute; inset: 0; z-index: -1; background: #000; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero__img--lit {
  -webkit-mask-image: radial-gradient(circle var(--r) at var(--lx) var(--ly), #000 0%, rgba(0, 0, 0, .9) 38%, transparent 100%);
  mask-image: radial-gradient(circle var(--r) at var(--lx) var(--ly), #000 0%, rgba(0, 0, 0, .9) 38%, transparent 100%);
}
.hero__beam {
  position: absolute; inset: 0; mix-blend-mode: screen; pointer-events: none;
  background: radial-gradient(circle calc(var(--r) * 1.15) at var(--lx) var(--ly), rgba(255, 236, 190, .14), rgba(255, 236, 190, 0) 70%);
}
.hero.is-off .hero__img--lit, .hero.is-off .hero__beam { opacity: 0; }
.hero__eyes {
  position: absolute; left: 0; top: 0; width: 26px; height: 8px; translate: -50% -50%;
  background:
    radial-gradient(circle at 25% 50%, #ff2a1a 0 2px, rgba(255, 42, 26, .5) 3px, transparent 6px),
    radial-gradient(circle at 75% 50%, #ff2a1a 0 2px, rgba(255, 42, 26, .5) 3px, transparent 6px);
  filter: drop-shadow(0 0 8px rgba(255, 30, 20, .9));
  animation: eyes 7s infinite;
}
@keyframes eyes { 0%, 46%, 50%, 100% { opacity: .95; } 47%, 49% { opacity: 0; } }
.hero__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7, 7, 10, .92) 0%, rgba(7, 7, 10, .55) 36%, rgba(7, 7, 10, 0) 62%),
    linear-gradient(0deg, var(--void) 0%, rgba(7, 7, 10, 0) 30%);
}
.hero__content { position: relative; display: grid; gap: 22px; max-width: 44rem; min-width: 0; }
.hero__title { display: grid; gap: 6px; }
.hero__title .kicker { color: var(--ash); }
.neon {
  display: block; font: 400 clamp(4.2rem, 21vw, 11rem)/.82 var(--f-display); letter-spacing: .05em; white-space: nowrap;
  color: #fde9e2; margin-left: -.04em;
  text-shadow: 0 0 .02em #fff, 0 0 .1em rgba(255, 70, 50, .95), 0 0 .35em rgba(227, 36, 27, .7), 0 0 .9em rgba(227, 36, 27, .35);
}
.neon span { display: inline-block; }
.neon .f1 { animation: flick1 7s infinite; }
.neon .f2 { animation: flick2 9s infinite; }
@keyframes flick1 { 0%, 18%, 21%, 23%, 100% { opacity: 1; } 19%, 22% { opacity: .12; text-shadow: none; } }
@keyframes flick2 { 0%, 61%, 64%, 100% { opacity: 1; } 62%, 63% { opacity: .1; text-shadow: none; } }
.hero__tagline { font: 400 clamp(1.15rem, 2.4vw, 1.5rem)/1.3 var(--f-type); color: #f1e4cf; }
.hero__lede { color: #cfc8bc; max-width: 34rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.facts {
  display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 6px 0 0; padding: 0; list-style: none;
  font: 500 .8125rem/1.2 var(--f-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--fog);
}
.facts b { font-weight: 700; color: var(--ash); }
.hero__aside {
  position: absolute; right: var(--gutter); bottom: clamp(36px, 6vw, 72px);
  display: grid; justify-items: end; gap: 12px;
}
.hero__hint {
  display: flex; align-items: center; gap: 10px;
  font: 500 .75rem/1 var(--f-ui); letter-spacing: .2em; text-transform: uppercase; color: rgba(236, 230, 219, .7);
}
.hero__hint::before { content: ""; width: 34px; height: 1px; background: currentColor; }
@media (hover: none) { [data-hint-mouse] { display: none; } }
@media (hover: hover) { [data-hint-touch] { display: none; } }
.toggle {
  display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 14px 0 10px;
  border: 1px solid rgba(236, 230, 219, .22); border-radius: 999px; background: rgba(7, 7, 10, .6); cursor: pointer;
  font: 500 .75rem/1 var(--f-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--fog);
}
.toggle__dot { width: 26px; height: 14px; border-radius: 99px; background: #2a2930; position: relative; transition: background .2s; }
.toggle__dot::after { content: ""; position: absolute; left: 2px; top: 2px; width: 10px; height: 10px; border-radius: 50%; background: var(--fog); transition: transform .2s var(--ease), background .2s; }
.toggle[aria-pressed="true"] { color: var(--ash); border-color: var(--blood); }
.toggle[aria-pressed="true"] .toggle__dot { background: rgba(227, 36, 27, .5); }
.toggle[aria-pressed="true"] .toggle__dot::after { transform: translateX(12px); background: #fff; }
.toggle .state-on { display: none; }
.toggle[aria-pressed="true"] .state-on { display: inline; }
.toggle[aria-pressed="true"] .state-off { display: none; }
@media (max-width: 760px) {
  /* téléphone : la scène occupe le haut de l'écran, le texte passe dessous */
  .hero { display: block; min-height: 0; padding-top: 50svh; }
  .hero__scene { bottom: auto; height: 66svh; }
  .hero__shade { background: linear-gradient(0deg, var(--void) 0%, rgba(7, 7, 10, .75) 26%, rgba(7, 7, 10, 0) 60%); }
  .hero__img { object-position: 50% 40%; }
  .hero__aside { position: static; justify-items: start; margin-top: 28px; }
}

/* ------------------------------------------------------------------ le couloir (séquence au scroll) */
.walk { position: relative; height: 380vh; background: #000; }
.walk__sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.walk__still, .walk__canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.walk__canvas { opacity: 0; transition: opacity .4s; }
.walk.is-live .walk__canvas { opacity: 1; }
.walk__vignette { position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, .75) 100%); pointer-events: none; }
.walk__words {
  position: relative; z-index: 2; padding: 0 var(--gutter); text-align: center;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 0 .28em;
  font: 400 clamp(2.6rem, 7.2vw, 7rem)/.95 var(--f-display); letter-spacing: .02em;
  text-shadow: 0 4px 40px rgba(0, 0, 0, .9);
}
.walk__words span { display: inline-block; }
.walk__words .last { flex-basis: 100%; color: var(--blood); font-size: 1.9em; text-shadow: 0 0 .25em rgba(227, 36, 27, .6); }
.walk.is-live .walk__words span { opacity: 0; transform: translateY(.25em) scale(1.25); transition: opacity .25s, transform .45s var(--ease); }
.walk.is-live .walk__words span.on { opacity: 1; transform: none; }
.walk__caption {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(24px, 5vh, 56px); z-index: 2; max-width: 44rem;
  font-size: clamp(.9rem, 1.6vw, 1.05rem); color: #e8e0cf; text-shadow: 0 2px 10px #000;
}
.walk__end {
  position: absolute; z-index: 3; font: 400 clamp(2.4rem, 7vw, 5rem)/1 var(--f-type); color: #ff3b2f;
  text-shadow: 0 0 30px rgba(255, 40, 30, .8); opacity: 0; transition: opacity .2s;
}
.walk__end.on { opacity: 1; }

/* ------------------------------------------------------------------ sections */
.section { position: relative; padding: clamp(96px, 13vw, 180px) var(--gutter); }
.wrap { max-width: 1240px; margin: 0 auto; }

/* ------------------------------------------------------------------ les 5 règles */
.rule-list { list-style: none; margin: clamp(56px, 8vw, 110px) 0 0; padding: 0; display: grid; gap: clamp(80px, 11vw, 150px); }
.rule { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.rule__text { display: grid; gap: 16px; align-content: center; }
.rule__num {
  font: 400 clamp(5rem, 11vw, 8.5rem)/.8 var(--f-display); color: transparent;
  -webkit-text-stroke: 2px var(--blood); letter-spacing: .02em;
}
.rule h3 { font: 400 clamp(2.3rem, 5vw, 3.6rem)/.95 var(--f-display); letter-spacing: .02em; }
.rule p { color: #cbc4b8; max-width: 30rem; }
.rule__media { display: grid; gap: 14px; min-width: 0; }
.panel {
  position: relative; overflow: hidden; border-radius: 6px; background: #000; aspect-ratio: 16 / 10;
  border: 1px solid var(--line); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9);
}
.panel > img, .panel > canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.panel__hud { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px; display: grid; justify-items: center; gap: 12px; background: linear-gradient(0deg, rgba(0, 0, 0, .7), transparent); }
.pill {
  display: inline-flex; align-items: center; min-height: 30px; padding: 0 16px; border-radius: 999px;
  border: 2px solid currentColor; background: rgba(10, 10, 14, .88); color: var(--ash);
  font: 700 .8125rem/1 var(--f-ui); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
}
.pill--ok { color: var(--ok); }
.pill--gold { color: var(--brass); }
.pill--red { color: var(--blood-hi); }
.panel__flash {
  position: absolute; left: 50%; top: 18%; translate: -50% 0; z-index: 3; pointer-events: none;
  font: 400 clamp(1.8rem, 4vw, 2.8rem)/1 var(--f-display); letter-spacing: .04em; white-space: nowrap;
  text-shadow: 0 3px 20px #000; opacity: 0;
}
.panel__flash.show { animation: pop 1.1s var(--ease) forwards; }
@keyframes pop { 0% { opacity: 0; transform: scale(1.5); } 15% { opacity: 1; transform: scale(1); } 75% { opacity: 1; } 100% { opacity: 0; transform: translateY(-8px); } }
.controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.hint { flex-basis: 100%; font-size: .875rem; color: var(--fog); }
.shake { animation: shake .4s; }
@keyframes shake { 20% { transform: translateX(-8px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }

/* règle 1 : test d'adresse */
.gen > .panel > img { filter: brightness(.55) saturate(.8); transition: filter 1.2s var(--ease); }
.gen.is-powered > .panel > img { filter: none; animation: powerup 1.1s steps(1); }
@keyframes powerup { 0% { filter: brightness(.55); } 15% { filter: brightness(1.3); } 25% { filter: brightness(.4); } 40% { filter: brightness(1.2); } 55% { filter: brightness(.6); } 70% { filter: none; } }
.skill { position: relative; width: min(100%, 420px); height: 22px; border-radius: 99px; background: #2c2c34; cursor: pointer; touch-action: manipulation; }
.skill__zone { position: absolute; top: 0; bottom: 0; left: var(--z, 62%); width: var(--zw, 14%); background: #eeeae2; transition: left .25s var(--ease), background .2s; }
.skill.hit .skill__zone { background: var(--ok); }
.skill__needle { position: absolute; top: -10px; bottom: -10px; left: var(--n, 0%); width: 6px; margin-left: -3px; border-radius: 3px; background: var(--blood-hi); box-shadow: 0 0 10px var(--blood); }
.dots { display: flex; gap: 14px; }
.dots span { width: 18px; height: 18px; border-radius: 50%; background: #18181d; border: 3px solid #77777f; transition: all .3s var(--ease); }
.dots span.on { background: var(--ok); border-color: #c8ffd5; box-shadow: 0 0 16px var(--ok); transform: scale(1.15); }

/* règle 2 : la clé */
.keys > .panel { perspective: 900px; }
.keys > .panel > img { transform: rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg)) scale(1.06); transition: transform .5s var(--ease); }
.keys__glint { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; background: radial-gradient(circle 160px at var(--gx, 60%) var(--gy, 40%), rgba(255, 220, 140, .28), transparent 70%); }
.spark { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: #fff3cf; box-shadow: 0 0 8px var(--brass); animation: spark 2.6s linear infinite; opacity: 0; }
@keyframes spark { 0% { opacity: 0; transform: translate(0, 0) scale(.6); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1.2); } }

/* règle 3 : se cacher */
.hide > .panel { background: #02030a; }
.hide.is-holding > .panel { box-shadow: 0 0 0 1px rgba(120, 150, 255, .25), 0 30px 80px -30px rgba(0, 0, 0, .9); }
.breath { width: min(100%, 320px); display: grid; gap: 6px; font: 500 .75rem/1 var(--f-ui); letter-spacing: .16em; text-transform: uppercase; color: #b9c4ff; }
.breath__bar { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.breath__bar i { display: block; height: 100%; width: calc(var(--b, 1) * 100%); background: linear-gradient(90deg, #6d86ff, #b9c4ff); }
.waves { position: absolute; right: 18px; top: 18px; display: flex; align-items: center; gap: 5px; height: 40px; }
.waves i { width: 5px; border-radius: 3px; background: var(--ash); height: calc(10px + var(--h, 0) * 30px); transition: height .12s; }
.btn--hold { position: relative; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.btn--hold::before { content: ""; position: absolute; inset: 0; transform-origin: left; transform: scaleX(var(--p, 0)); background: rgba(255, 255, 255, .16); }

/* règle 4 : la poursuite */
.run > .panel { aspect-ratio: 16 / 9; }
.stripes { position: absolute; left: 0; right: 0; height: 16px; z-index: 2; background: repeating-linear-gradient(-45deg, var(--blood) 0 16px, #140808 16px 32px); animation: stripes 1s linear infinite; }
.stripes--top { top: 0; } .stripes--bottom { bottom: 0; animation-direction: reverse; }
@keyframes stripes { to { background-position: 45px 0; } }
.run__word {
  position: absolute; inset: 0; display: grid; place-items: center; z-index: 2; pointer-events: none;
  font: 400 clamp(5rem, 16vw, 11rem)/1 var(--f-display); color: var(--blood); letter-spacing: .04em;
  text-shadow: 0 0 40px rgba(227, 36, 27, .8); animation: runpulse .5s steps(2) infinite; opacity: .92;
}
@keyframes runpulse { 50% { opacity: .55; } }
.run .pill { position: absolute; top: 30px; left: 50%; translate: -50% 0; z-index: 3; }

/* règle 5 : réanimer */
.revive__ring { position: absolute; width: 22%; aspect-ratio: 1; left: 50.8%; top: 76%; translate: -50% -50%; z-index: 2; }
.revive__ring circle { fill: none; stroke-width: 12; }
.revive__ring .track { stroke: rgba(255, 255, 255, .25); }
.revive__ring .arc { stroke: var(--brass); stroke-linecap: round; stroke-dasharray: 540.35; stroke-dashoffset: calc(540.35 * (1 - var(--p, 0))); transition: stroke .2s; }
.revive.is-done .revive__ring .arc { stroke: var(--ok); }
.revive .panel__hud .pill { margin-top: auto; }

/* ------------------------------------------------------------------ survivant / tueur */
.modes__split { margin-top: clamp(48px, 7vw, 90px); display: flex; gap: 14px; min-height: 560px; }
.mode {
  position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; border-radius: 6px; isolation: isolate;
  display: flex; align-items: flex-end; padding: clamp(24px, 3.5vw, 44px); border: 1px solid var(--line);
  transition: flex-grow .7s var(--ease);
}
.mode:hover, .mode:focus-within { flex-grow: 1.45; }
.mode > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease), filter .7s; filter: brightness(.6); }
.mode:hover > img { transform: scale(1.05); filter: brightness(.8); }
.mode::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(5, 5, 8, .95) 10%, rgba(5, 5, 8, .1) 70%); }
.mode--killer::after { background: linear-gradient(0deg, rgba(30, 2, 2, .95) 10%, rgba(80, 0, 0, .25) 70%); }
.mode__body { display: grid; gap: 14px; max-width: 30rem; }
.mode h3 { font: 400 clamp(2.8rem, 6vw, 4.6rem)/.9 var(--f-display); }
.mode--killer h3 { color: #ff5b4d; text-shadow: 0 0 30px rgba(227, 36, 27, .6); }
.mode p { color: #d6cfc3; }
.mode blockquote { margin: 4px 0 0; font-size: .95rem; color: #e9dcc5; border-left: 0; }
@media (max-width: 860px) { .modes__split { flex-direction: column; min-height: 0; } .mode { min-height: 440px; } .mode:hover, .mode:focus-within { flex-grow: 1; } }

/* ------------------------------------------------------------------ chapitres (défilement horizontal) */
.chapters { position: relative; }
.chapters__pin { min-width: 0; display: grid; gap: clamp(32px, 5vw, 56px); padding: clamp(96px, 13vw, 160px) 0 clamp(64px, 8vw, 100px); overflow: hidden; }
.chapters .section-head { padding: 0 var(--gutter); max-width: calc(var(--col) + 2 * var(--gutter)); }
.chapters__viewport { min-width: 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0 var(--gutter) 8px; }
.chapters__viewport::-webkit-scrollbar { display: none; }
.chapters__track { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; width: max-content; }
.chapter {
  position: relative; scroll-snap-align: start; width: min(78vw, 440px); aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: 6px; border: 1px solid var(--line); background: var(--soot); isolation: isolate;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 26px;
}
.chapter > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: brightness(.7) saturate(.85); transition: transform 1.2s var(--ease); }
.chapter:hover > img { transform: scale(1.06); }
.chapter::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(5, 5, 8, .96) 12%, rgba(5, 5, 8, 0) 62%); }
.chapter__num { position: absolute; top: 18px; left: 22px; font: 400 4.5rem/1 var(--f-display); color: transparent; -webkit-text-stroke: 1.5px rgba(236, 230, 219, .55); }
.chapter__label { font: 500 .75rem/1 var(--f-ui); letter-spacing: .2em; text-transform: uppercase; color: var(--blood-hi); }
.chapter h3 { font: 400 2.4rem/.95 var(--f-display); letter-spacing: .02em; }
.chapter p { color: #cbc4b8; font-size: .95rem; }
.chapter--paper { background: #d9d0bd; color: #24201a; }
.chapter--paper::after { display: none; }
.chapter--paper .chapter__num { -webkit-text-stroke-color: rgba(40, 30, 20, .35); }
.chapter--paper .chapter__label { color: #9b1b13; }
.chapter--paper p { color: #3a332a; }
.paper { margin: 56px 0 auto; padding: 22px; font: 400 1rem/1.5 var(--f-type); color: #2a241c; background: #efe7d6; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .5); rotate: -1.5deg; }
.paper b { display: block; margin-bottom: 10px; font-weight: 400; letter-spacing: .08em; color: #8f1a12; }
.paper--doc { rotate: 1.2deg; background: #f4f1ea; }
.paper--doc .stamp { display: inline-block; margin-top: 14px; padding: 4px 10px; border: 3px solid #b3241b; color: #b3241b; rotate: -6deg; letter-spacing: .14em; font-family: var(--f-ui); font-weight: 700; font-size: .8rem; }
.chapters__bar { margin: 0 var(--gutter); height: 2px; background: var(--line); }
.chapters__bar i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: var(--blood); box-shadow: 0 0 10px var(--blood); }
/* bureau : la section s'épingle et l'histoire défile de côté au scroll */
.chapters.is-pinned .chapters__pin { position: sticky; top: 0; min-height: 100svh; align-content: center; gap: 28px; padding-block: calc(var(--bar-h) + 16px) 28px; }
.chapters.is-pinned .chapter { width: clamp(300px, 42svh, 420px); }
.chapters.is-pinned .chapters__viewport { overflow: visible; scroll-snap-type: none; }
.chapters.is-pinned .chapters__track { transform: translate3d(var(--tx, 0px), 0, 0); will-change: transform; }

/* ------------------------------------------------------------------ ensemble autour du feu */
.together { overflow: hidden; text-align: center; }
.together__inner { display: grid; justify-items: center; gap: 22px; max-width: 46rem; margin: 0 auto; position: relative; z-index: 1; }
.together__count { display: flex; align-items: baseline; gap: 14px; }
.together__count .num { font: 400 clamp(7rem, 22vw, 15rem)/.8 var(--f-display); color: var(--blood); text-shadow: 0 0 .25em rgba(227, 36, 27, .55); font-variant-numeric: tabular-nums; min-width: 1.1em; }
.together__count .lbl { font: 500 clamp(1.4rem, 3vw, 2rem)/1 var(--f-ui); letter-spacing: .12em; text-transform: uppercase; }
.fire { position: absolute; left: 50%; top: 58%; width: min(120vw, 1200px); aspect-ratio: 2; translate: -50% -50%; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 60%, rgba(255, 140, 50, .22), rgba(227, 36, 27, .1) 35%, transparent 65%); animation: fire 2.2s ease-in-out infinite alternate; }
@keyframes fire { 0% { opacity: .75; transform: scale(1); } 40% { opacity: 1; } 100% { opacity: .85; transform: scale(1.04); } }
.heads { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; list-style: none; margin: 0; padding: 0; max-width: 520px; }
.heads li { width: 34px; height: 34px; border-radius: 8px; background: #f2c79a; border: 4px solid var(--c); box-shadow: 0 6px 18px -6px var(--c); transform: scale(var(--s, 1)); transition: transform .4s var(--ease); }
.heads li::before { content: ""; display: block; width: 100%; height: 100%; background: radial-gradient(circle at 34% 45%, #222 0 2px, transparent 2.5px), radial-gradient(circle at 66% 45%, #222 0 2px, transparent 2.5px); }

/* ------------------------------------------------------------------ vidéos */
.videos__grid { margin-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 22px; }
.video { margin: 0; display: grid; gap: 14px; }
.video__frame { position: relative; overflow: hidden; border-radius: 6px; border: 1px solid var(--line); background: #000; aspect-ratio: 16 / 9; }
.video__frame video { width: 100%; height: 100%; object-fit: cover; }
.video__play {
  position: absolute; inset: 0; display: grid; place-items: center; border: 0; padding: 0; cursor: pointer;
  background: radial-gradient(circle at center, rgba(0, 0, 0, .15), rgba(0, 0, 0, .55));
}
.video__play span { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--blood); box-shadow: 0 0 40px rgba(227, 36, 27, .7); transition: transform .3s var(--ease); }
.video__play:hover span { transform: scale(1.08); }
.video__play svg { width: 28px; height: 28px; margin-left: 4px; }
.video.is-playing .video__play { display: none; }
.video figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.video figcaption b { font: 400 1.9rem/1 var(--f-display); font-weight: 400; letter-spacing: .02em; }
.video figcaption span { color: var(--fog); font-size: .9375rem; }

/* ------------------------------------------------------------------ boutique */
.passes { list-style: none; margin: clamp(40px, 6vw, 72px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 18px; }
.pass { display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: 6px; background: var(--soot); border: 1px solid var(--line); }
.pass h3 { font: 400 2.4rem/.95 var(--f-display); letter-spacing: .02em; }
.price { display: flex; align-items: baseline; gap: 8px; font: 700 1.6rem/1 var(--f-ui); font-variant-numeric: tabular-nums; }
.price small { font: 500 .75rem/1 var(--f-ui); letter-spacing: .18em; text-transform: uppercase; color: var(--fog); }
.pass p { color: #cbc4b8; }
.pass .btn { margin-top: auto; align-self: flex-start; }
.pass--killer { background: linear-gradient(160deg, #2a0b09, var(--soot) 60%); border-color: #4a1612; }
.pass--killer h3 { color: #ff5b4d; }
.coins { margin-top: 22px; color: var(--fog); font-size: .95rem; }

/* ------------------------------------------------------------------ FAQ */
.faq__list { margin-top: clamp(36px, 5vw, 56px); max-width: 52rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font: 500 clamp(1.1rem, 2vw, 1.3rem)/1.3 var(--f-ui); letter-spacing: .02em; }
.faq summary::after { content: "+"; font: 400 2rem/1 var(--f-display); color: var(--blood); transition: transform .3s var(--ease); flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 24px; color: #cbc4b8; max-width: 44rem; }

/* ------------------------------------------------------------------ dernier appel */
.final { position: relative; overflow: hidden; isolation: isolate; text-align: center; padding-block: clamp(140px, 20vw, 260px); }
.final > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: brightness(.55); }
.final::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--void) 0%, rgba(7, 7, 10, .2) 40%, rgba(7, 7, 10, .5) 75%, var(--void) 100%); }
.final__inner { display: grid; justify-items: center; gap: 20px; }
.final h2 { font: 400 clamp(3.2rem, 9vw, 7.5rem)/.9 var(--f-display); }
.final p { font: 400 clamp(1.2rem, 2.6vw, 1.6rem)/1.3 var(--f-type); color: #f1e4cf; }
.final .btn { margin-top: 10px; }

/* ------------------------------------------------------------------ pied de page */
.foot { padding: 56px var(--gutter) calc(40px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); display: grid; gap: 26px; }
.foot__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; }
.foot__logo { font: 400 2.6rem/1 var(--f-display); letter-spacing: .08em; color: #fbeae4; text-shadow: 0 0 14px rgba(227, 36, 27, .8); }
.foot__links { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.foot__links a { font: 500 .8125rem/1 var(--f-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--fog); text-decoration: none; padding: 8px 0; }
.foot__links a:hover { color: var(--ash); }
.foot__legal { font-size: .8125rem; color: #7d776e; max-width: 52rem; }

.foot__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; }
.foot__links--small a { letter-spacing: .08em; text-transform: none; font-size: .8125rem; }

/* ------------------------------------------------------------------ message cookies */
.cookie {
  position: fixed; left: var(--gutter); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 70;
  display: grid; gap: 12px; width: min(380px, calc(100% - 2 * var(--gutter))); padding: 18px 20px;
  border-radius: 10px; border: 1px solid var(--line); background: rgba(14, 14, 19, .96);
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, .9); font-size: .9375rem; color: #cfc8bc;
}
.cookie b { color: var(--ash); font-family: var(--f-ui); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; font-size: .8125rem; margin-right: 6px; }
.cookie__actions { display: flex; align-items: center; gap: 18px; }
.cookie__actions a { color: var(--fog); font-size: .875rem; }
.cookie__actions a:hover { color: var(--ash); }

/* ------------------------------------------------------------------ page mentions légales */
.legal { max-width: 46rem; margin: 0 auto; padding: calc(var(--bar-h) + 64px) var(--gutter) 96px; }
.legal h1 { font: 400 clamp(3rem, 8vw, 5rem)/.9 var(--f-display); margin-bottom: 12px; }
.legal .updated { color: var(--fog); font-size: .875rem; margin-bottom: 40px; }
.legal h2 { font: 400 clamp(1.8rem, 4vw, 2.4rem)/1 var(--f-display); letter-spacing: .02em; margin: 44px 0 14px; scroll-margin-top: calc(var(--bar-h) + 20px); }
.legal p, .legal li { color: #cfc8bc; }
.legal p + p, .legal ul + p { margin-top: 12px; }
.legal ul { margin: 0; padding-left: 1.2em; display: grid; gap: 10px; }
.legal a { color: var(--ash); text-decoration-color: var(--blood); text-underline-offset: 3px; }
.legal b { color: var(--ash); font-weight: 600; }

/* ------------------------------------------------------------------ screamer (seulement si activé) */
.scare { position: fixed; inset: 0; z-index: 90; background: #000; display: grid; place-items: center; }
.scare img { width: 100%; height: 100%; object-fit: cover; animation: scare .7s steps(8) forwards; }
@keyframes scare { 0% { transform: scale(1.6) rotate(-3deg); filter: contrast(1.6) saturate(1.4); } 30% { transform: scale(1.25) rotate(2deg); } 60% { transform: scale(1.12) rotate(-1deg); } 100% { transform: scale(1.05); filter: contrast(1.2); } }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 860px) {
  .rule { grid-template-columns: minmax(0, 1fr); }
  .rule__num { font-size: 4.6rem; }
}

/* ------------------------------------------------------------------ mouvement réduit */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain, .neon span, .hero__eyes, .kicker::before, .stripes, .run__word, .fire, .spark { animation: none !important; }
  .js .glow { opacity: 1; filter: none; }
}
