/* ==========================================================================
   La Maison de l'Évasion — design system
   Sombre, cinématographique, à la lueur de la bougie.
   Chaque univers (data-theme sur <body> ou sur une section) change l'accent.
   ========================================================================== */

:root {
  --bg: #060606;
  --bg-2: #0d0d0d;
  --bg-3: #151515;
  --text: #f3f1ee;
  --text-dim: #a8a5a0;
  --text-mute: #6f6c68;
  --accent: #e01b22;
  --accent-2: #ff4040;
  --accent-ink: #ffffff;
  --accent-rgb: 224, 27, 34;
  --blood: #7a0a0e;
  --line: rgba(243, 241, 238, .11);
  --line-strong: rgba(243, 241, 238, .24);

  --f-display: 'Bebas Neue', 'Oswald', Impact, sans-serif;
  --f-label: 'Bebas Neue', 'Oswald', Impact, sans-serif;
  --f-type: 'Special Elite', 'Courier New', monospace;
  --f-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --grunge: url('/assets/img/grunge.webp');

  --container: 1320px;
  --gutter: clamp(16px, 4.2vw, 64px);
  --section: clamp(96px, 13vw, 200px);
  --header-h: 84px;
  --radius: 3px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.77, 0, .18, 1);
}

/* Direction artistique : affiche de film d'horreur — noir, blanc, rouge sang sur tout le site */
[data-theme] { --accent: #e01b22; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  transition: background-color .8s var(--ease), color .8s var(--ease);
}
img, video, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
strong, b { color: var(--text); font-weight: 700; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.i { width: 1.15em; height: 1.15em; flex: none; }
.muted { color: var(--text-mute); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 300; background: var(--accent); color: var(--accent-ink); padding: .6em 1em; font-weight: 700; }
.skip-link:focus { top: 16px; }

/* ---------- Typographie ---------- */
h1, h2, h3, h4, .h1, .h2, .h3, .display {
  font-family: var(--f-display);
  font-weight: 400;
  line-height: .9;
  letter-spacing: .01em;
  text-transform: uppercase;
  margin: 0 0 .45em;
  text-wrap: balance;
}
/* aspect d'encre usée, comme le logo */
h1, h2, h3, .display, .grunge, .footer-cta__title, .stamp, .trailer__word, .num, .stat__num { -webkit-mask-image: var(--grunge); mask-image: var(--grunge); -webkit-mask-size: 360px auto; mask-size: 360px auto; }
.display { font-size: clamp(3.6rem, 1.6rem + 9vw, 13rem); line-height: .84; }
h1, .h1 { font-size: clamp(3rem, 1.4rem + 6.4vw, 8.6rem); line-height: .86; }
h2, .h2 { font-size: clamp(2.8rem, 1.4rem + 5vw, 7rem); line-height: .86; }
h3, .h3 { font-size: clamp(1.8rem, 1.2rem + 1.8vw, 3rem); line-height: .92; }
h4 { font-family: var(--f-label); font-weight: 400; font-size: 1.25rem; letter-spacing: .12em; line-height: 1.2; }
h1 em, h2 em, h3 em, .display em, .h2 em, .footer-cta__title em { font-style: normal; color: var(--accent); }
/* Titre long d'origine : une partie énorme, le reste en petit texte machine à écrire */
.t-small { display: block; margin-top: .7em; font-family: var(--f-type); font-size: clamp(.95rem, .85rem + .4vw, 1.25rem); line-height: 1.35; letter-spacing: .04em; text-transform: none; color: var(--text-dim); -webkit-mask-image: none; mask-image: none; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .9em;
  font-family: var(--f-type); font-size: .92rem; letter-spacing: .22em; line-height: 1.3;
  color: var(--accent); text-transform: uppercase; margin: 0 0 1.4rem;
}
.eyebrow::before { content: ''; width: 2.6rem; height: 1px; background: currentColor; opacity: .7; }
.eyebrow--center { justify-content: center; }
.eyebrow--center::after { content: ''; width: 2.6rem; height: 1px; background: currentColor; opacity: .7; }
.lead { font-size: clamp(1.1rem, 1rem + .5vw, 1.4rem); line-height: 1.6; color: var(--text-dim); max-width: 58ch; }
.lead strong { color: var(--text); }
.prose p, .prose li { color: var(--text-dim); max-width: 66ch; }
.prose h2 { margin-top: 1.4em; }
.prose h3 { margin-top: 1.3em; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.prose ul { margin: 0 0 1.2em 1.2em; }
.quote { font-family: var(--f-type); font-size: clamp(1.2rem, 1rem + 1vw, 1.9rem); line-height: 1.35; color: var(--text); }
.label { font-family: var(--f-label); letter-spacing: .16em; font-size: 1.05rem; color: var(--text-mute); }
.num { font-family: var(--f-label); font-weight: 400; line-height: .85; letter-spacing: .01em; }

/* ---------- Layout ---------- */
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container--narrow { width: min(100% - 2 * var(--gutter), 920px); margin-inline: auto; }
.container--wide { width: min(100% - 2 * var(--gutter), 1560px); margin-inline: auto; }
.section { position: relative; padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * .6); }
.section--flush-top { padding-top: 0; }
.section--alt { background: var(--bg-2); }
.section--bordered { border-top: 1px solid var(--line); }
.stack > * + * { margin-top: 1.2rem; }
.center { text-align: center; }
.center .lead, .center p { margin-inline: auto; }
.section-head { max-width: 860px; margin-bottom: clamp(48px, 6vw, 88px); }
.section-head.center { margin-inline: auto; }
.grid { display: grid; gap: clamp(20px, 2.4vw, 36px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 120px); align-items: center; }
.split--reverse > :first-child { order: 2; }
.split--wide-media { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.split--wide-text { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2.2rem; }
.center .actions { justify-content: center; }
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .split--wide-media, .split--wide-text { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 0; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Boutons ---------- */
.btn {
  --b-bg: transparent; --b-fg: var(--accent); --b-bd: var(--accent); --b-fill: var(--accent); --b-fill-fg: var(--accent-ink);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .75em;
  padding: 1.02em 1.7em .95em;
  font-family: var(--f-label); font-size: 1.12rem; letter-spacing: .14em; line-height: 1;
  color: var(--b-fg); background: var(--b-bg); border: 1px solid var(--b-bd); border-radius: var(--radius);
  transition: color .45s var(--ease), border-color .45s var(--ease), transform .3s var(--ease);
  white-space: nowrap;
}
.btn::before {
  content: ''; position: absolute; inset: -1px; z-index: -1; background: var(--b-fill);
  transform: translateY(102%); transition: transform .55s var(--ease); border-radius: inherit;
}
.btn:hover { color: var(--b-fill-fg); border-color: var(--b-fill); }
.btn:hover::before { transform: translateY(0); }
.btn .i { transition: transform .45s var(--ease); }
.btn:hover .i { transform: translateX(4px); }
.btn--primary { --b-bg: var(--accent); --b-fg: #fff; --b-bd: var(--accent); --b-fill: #fff; --b-fill-fg: #060606; box-shadow: 0 0 0 0 rgba(var(--accent-rgb), .0), 0 10px 40px -12px rgba(var(--accent-rgb), .55); }
.btn--ghost { --b-fg: var(--text); --b-bd: rgba(243, 241, 238, .5); --b-fill: var(--accent); --b-fill-fg: #fff; }
.btn--sm { padding: .78em 1.2em .72em; font-size: 1rem; }
.btn--lg { padding: 1.2em 2.1em 1.12em; font-size: 1.25rem; }
.link-arrow { display: inline-flex; align-items: center; gap: .55em; font-family: var(--f-label); letter-spacing: .14em; font-size: 1.08rem; color: var(--accent); }
.link-arrow .i { transition: transform .4s var(--ease); }
.link-arrow:hover .i { transform: translateX(4px); }
@media (max-width: 560px) { .actions .btn { width: 100%; } }

/* ---------- Effets globaux ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .075;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 7s steps(8) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); } 12% { transform: translate(-4%, -6%); } 25% { transform: translate(-9%, 3%); }
  37% { transform: translate(6%, -9%); } 50% { transform: translate(-3%, 9%); } 62% { transform: translate(-9%, 5%); }
  75% { transform: translate(8%, 0); } 87% { transform: translate(2%, 7%); }
}
.torch {
  position: fixed; inset: 0; z-index: 2; pointer-events: none; opacity: 0;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--accent-rgb), .075), transparent 62%);
  transition: opacity .6s var(--ease);
}
.has-pointer .torch { opacity: 1; }
.progress { position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 70; pointer-events: none; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--blood), var(--accent), var(--accent-2)); transform-origin: 0 50%; transform: scaleX(0); }

/* Rideau / portes : transitions de page */
.curtain { position: fixed; inset: 0; z-index: 200; pointer-events: none; display: none; }
.js .curtain { display: block; }
.no-anim .curtain { display: none; }
.curtain__door { position: absolute; top: 0; bottom: 0; width: 50.5%; background: #070605; }
.curtain__door--l { left: 0; box-shadow: inset -1px 0 0 rgba(var(--accent-rgb), .25); }
.curtain__door--r { right: 0; box-shadow: inset 1px 0 0 rgba(var(--accent-rgb), .25); }
.curtain__mark { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 22px; }
.curtain__mark img { width: clamp(90px, 12vw, 150px); filter: drop-shadow(0 0 40px rgba(var(--accent-rgb), .35)); }
.curtain__count { font-family: var(--f-label); font-size: 1.1rem; letter-spacing: .3em; color: var(--accent); min-width: 4ch; text-align: center; opacity: 0; }
.is-first-visit .curtain__count { opacity: 1; }

/* ---------- Animations : états initiaux (gérés par main.js) ---------- */
.js:not(.no-anim) [data-reveal] { opacity: 0; }
.js:not(.no-anim) [data-reveal-stagger] > * { opacity: 0; }
.js:not(.no-anim) [data-split] { visibility: hidden; }
.split-line { overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.no-anim [data-reveal], .no-anim [data-reveal-stagger] > *, .no-anim [data-split] { opacity: 1 !important; visibility: visible !important; transform: none !important; clip-path: none !important; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  transition: transform .6s var(--ease), background-color .5s var(--ease), border-color .5s var(--ease), backdrop-filter .5s;
  border-bottom: 1px solid transparent;
}
.site-header__inner {
  width: min(100% - 2 * var(--gutter), 1560px); margin-inline: auto; height: var(--header-h);
  display: flex; align-items: center; gap: 28px;
}
.site-header.is-scrolled { background: rgba(8, 7, 6, .72); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-color: var(--line); }
[data-theme="eclipse"] .site-header.is-scrolled, [data-theme="vr"] .site-header.is-scrolled { background: rgba(6, 6, 12, .72); }
[data-theme="ascenders"] .site-header.is-scrolled { background: rgba(4, 9, 8, .72); }
.site-header.is-hidden { transform: translateY(-101%); }
.menu-open .site-header { transform: none; background: transparent; border-color: transparent; backdrop-filter: none; }
.brand { flex: none; display: block; }
.brand img { height: 58px; width: auto; transition: transform .5s var(--ease); }
.brand:hover img { transform: rotate(-4deg) scale(1.04); }
.nav { margin-left: auto; }
.nav__list { list-style: none; display: flex; align-items: center; gap: clamp(14px, 1.6vw, 30px); }
.nav__link { position: relative; display: block; padding: 10px 0; font-family: var(--f-label); font-size: 1.04rem; letter-spacing: .14em; color: var(--text-dim); transition: color .3s; }
.nav__link::after { content: ''; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav__link:hover, .nav__link[aria-current] { color: var(--text); }
.nav__link:hover::after, .nav__link[aria-current]::after { transform: scaleX(1); transform-origin: left; }
.nav__item--sub { position: relative; }
.nav__sub {
  position: absolute; top: 100%; left: 50%; min-width: 250px; padding: 10px;
  background: rgba(12, 11, 10, .94); backdrop-filter: blur(16px); border: 1px solid var(--line); border-radius: var(--radius);
  opacity: 0; visibility: hidden; transform: translate(-50%, 8px); transition: all .35s var(--ease);
}
.nav__item--sub:hover .nav__sub, .nav__item--sub:focus-within .nav__sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav__sub a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 14px; border-radius: 2px; transition: background .3s; }
.nav__sub a:hover { background: rgba(var(--accent-rgb), .1); }
.nav__sub span { font-family: var(--f-display); font-size: 1.5rem; font-weight: 400; text-transform: uppercase; }
.nav__sub small { font-family: var(--f-label); letter-spacing: .12em; color: var(--text-mute); font-size: .9rem; }
.site-header__actions { display: flex; align-items: center; gap: 14px; }
.burger { display: inline-flex; align-items: center; gap: 12px; padding: 10px 2px 10px 8px; font-family: var(--f-label); letter-spacing: .18em; font-size: 1.02rem; }
.burger__lines { position: relative; width: 28px; height: 12px; }
.burger__lines i { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .5s var(--ease), top .5s var(--ease); }
.burger__lines i:first-child { top: 1px; }
.burger__lines i:last-child { top: 9px; }
.menu-open .burger__lines i:first-child { top: 5px; transform: rotate(45deg); }
.menu-open .burger__lines i:last-child { top: 5px; transform: rotate(-45deg); }
@media (min-width: 960px) { .burger__label { display: none; } }
@media (max-width: 959px) { .nav { display: none; } .site-header__actions { margin-left: auto; } }
@media (max-width: 560px) {
  :root { --header-h: 70px; }
  .brand img { height: 46px; }
  .site-header__actions .btn { padding: .7em .95em .64em; font-size: .95rem; }
  .burger__label { display: none; }
}

/* Menu plein écran */
.menu {
  position: fixed; inset: 0; z-index: 55; background: var(--bg);
  clip-path: circle(0% at calc(100% - 60px) 42px); visibility: hidden;
  transition: clip-path .9s var(--ease-in-out), visibility 0s linear .9s;
}
.menu-open .menu { clip-path: circle(150% at calc(100% - 60px) 42px); visibility: visible; transition: clip-path .9s var(--ease-in-out), visibility 0s; }
.menu__inner { height: 100%; overflow-y: auto; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 6vw; padding: calc(var(--header-h) + 3vh) var(--gutter) 5vh; width: min(100%, 1560px); margin-inline: auto; }
.menu__list { list-style: none; counter-reset: m; }
.menu__list a { display: flex; align-items: baseline; gap: 18px; padding: .08em 0; font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: clamp(2.4rem, 1.4rem + 3.8vw, 5.4rem); line-height: .95; color: var(--text); transition: color .35s, transform .5s var(--ease); }
.menu__list a:hover, .menu__list a[aria-current] { color: var(--accent); transform: translateX(10px); }
.menu__list .menu__sub a { font-size: clamp(1.6rem, 1rem + 1.8vw, 2.8rem); padding-left: clamp(16px, 4vw, 70px); color: var(--text-dim); }
.menu__num { font-family: var(--f-label); font-size: .95rem; letter-spacing: .16em; color: var(--accent); min-width: 3.2em; font-style: normal; }
.menu__list li { overflow: hidden; }
.menu__list li a { transform: translateY(105%); transition: transform .8s var(--ease), color .35s; }
.menu-open .menu__list li a { transform: translateY(0); }
.menu-open .menu__list li:nth-child(1) a { transition-delay: .18s; } .menu-open .menu__list li:nth-child(2) a { transition-delay: .22s; }
.menu-open .menu__list li:nth-child(3) a { transition-delay: .26s; } .menu-open .menu__list li:nth-child(4) a { transition-delay: .30s; }
.menu-open .menu__list li:nth-child(5) a { transition-delay: .34s; } .menu-open .menu__list li:nth-child(6) a { transition-delay: .38s; }
.menu-open .menu__list li:nth-child(7) a { transition-delay: .42s; } .menu-open .menu__list li:nth-child(8) a { transition-delay: .46s; }
.menu-open .menu__list li:nth-child(9) a { transition-delay: .50s; } .menu-open .menu__list li:nth-child(10) a { transition-delay: .54s; }
.menu-open .menu__list li a:hover { transition-delay: 0s; }
.menu__aside { display: flex; flex-direction: column; gap: 32px; justify-content: flex-end; }
.menu__preview { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); position: relative; }
.menu__preview::after { content: ''; position: absolute; inset: 12px; border: 1px solid rgba(var(--accent-rgb), .35); pointer-events: none; }
.menu__preview img { width: 100%; height: 100%; object-fit: cover; transition: opacity .4s, transform 1.4s var(--ease); }
.menu__infos { display: grid; gap: 18px; color: var(--text-dim); }
.menu__infos .eyebrow { margin: 0; }
@media (max-width: 900px) {
  .menu__inner { grid-template-columns: 1fr; gap: 40px; }
  .menu__preview { display: none; }
}

/* ---------- Médias ---------- */
.frame { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--bg-3); margin: 0; }
.frame > img, .frame > picture img { width: 100%; height: 100%; object-fit: cover; }
.frame--ornate::after { content: ''; position: absolute; inset: clamp(8px, 1.2vw, 16px); border: 1px solid rgba(var(--accent-rgb), .38); pointer-events: none; z-index: 2; }
.frame--portrait { aspect-ratio: 4 / 5; }
.frame--tall { aspect-ratio: 3 / 4; }
.frame--landscape { aspect-ratio: 16 / 10; }
.frame--wide { aspect-ratio: 21 / 9; }
.frame--square { aspect-ratio: 1; }
.frame--contain { background: transparent; }
.frame--contain > img { object-fit: contain; }
.frame figcaption { position: absolute; left: 20px; bottom: 16px; z-index: 3; font-family: var(--f-label); letter-spacing: .16em; font-size: .95rem; color: var(--text); }
.parallax-img { will-change: transform; transform: scale(1.14); }
.no-anim .parallax-img { transform: none; }
.glow { box-shadow: 0 40px 120px -40px rgba(var(--accent-rgb), .45); }
.ornament { display: flex; align-items: center; gap: 14px; color: var(--accent); margin: 0 0 1.6rem; }
.ornament::before, .ornament::after { content: ''; height: 1px; width: 56px; background: linear-gradient(90deg, transparent, currentColor); }
.ornament::after { transform: scaleX(-1); }
.ornament .i { width: 10px; height: 10px; }
.center .ornament { justify-content: center; }
.motif { width: 180px; opacity: .75; margin: 0 0 1.6rem; }
.center .motif { margin-inline: auto; }

/* Vidéo YouTube en façade (chargée au clic) */
.yt { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: #000; cursor: pointer; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .72; transition: transform 1.2s var(--ease), opacity .5s; }
.yt:hover img { transform: scale(1.05); opacity: .9; }
.yt__play { position: absolute; inset: 0; margin: auto; width: clamp(70px, 8vw, 104px); height: clamp(70px, 8vw, 104px); border-radius: 50%; display: grid; place-items: center; background: rgba(var(--accent-rgb), .92); color: var(--accent-ink); box-shadow: 0 0 0 0 rgba(var(--accent-rgb), .5); animation: pulse 2.4s infinite; }
.yt__play .i { width: 34%; height: 34%; margin-left: 6%; }
.yt__title { position: absolute; left: 20px; bottom: 18px; right: 20px; font-family: var(--f-label); letter-spacing: .14em; font-size: 1.05rem; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), .55); } 70% { box-shadow: 0 0 0 26px rgba(var(--accent-rgb), 0); } 100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0); } }

/* ---------- Héros ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; padding: calc(var(--header-h) + 60px) 0 clamp(56px, 9vh, 110px); }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after { content: ''; position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.15) 35%, rgba(0,0,0,.35) 60%, var(--bg) 100%),
  radial-gradient(120% 90% at 20% 100%, rgba(0,0,0,.7), transparent 60%); }
.hero__content { position: relative; z-index: 3; }
.hero h1 { max-width: 15ch; }
.hero .lead { margin-top: 1.6rem; }
.hero--page { min-height: min(92svh, 980px); }
.hero--short { min-height: 70svh; }
.hero__scroll { position: absolute; right: var(--gutter); bottom: clamp(40px, 8vh, 90px); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 16px; font-family: var(--f-label); letter-spacing: .3em; font-size: .9rem; color: var(--text-dim); writing-mode: vertical-rl; }
.hero__scroll::after { content: ''; width: 1px; height: 80px; background: linear-gradient(var(--accent), transparent); animation: drip 2.2s var(--ease) infinite; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (max-width: 760px) { .hero__scroll { display: none; } }
.hero__meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 2rem; }

/* Fil d'Ariane */
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; font-family: var(--f-label); letter-spacing: .16em; font-size: .95rem; color: var(--text-mute); margin-bottom: 1.6rem; list-style: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs li + li::before { content: '/'; margin-right: 10px; opacity: .5; }

/* Lanterne : le curseur éclaire l'image */
.lantern { --lx: 50%; --ly: 45%; --lr: clamp(220px, 30vmax, 520px); }
.lantern__dark { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(circle var(--lr) at var(--lx) var(--ly), rgba(6,5,4,0) 0%, rgba(6,5,4,.35) 35%, rgba(6,5,4,.88) 72%, rgba(6,5,4,.96) 100%); }
.lantern__glow { position: absolute; inset: 0; z-index: 1; pointer-events: none; mix-blend-mode: soft-light;
  background: radial-gradient(circle calc(var(--lr) * .8) at var(--lx) var(--ly), rgba(255, 190, 110, .55), transparent 70%); }
.no-anim .lantern__dark { background: linear-gradient(180deg, rgba(6,5,4,.5), rgba(6,5,4,.75)); }

/* Particules (braises, étoiles, poussière) */
.particles { position: absolute; inset: 0; z-index: 2; pointer-events: none; width: 100%; height: 100%; }

/* Brume animée */
.fog { position: absolute; inset: -20% -10%; z-index: 1; pointer-events: none; opacity: .5;
  background: radial-gradient(40% 30% at 20% 70%, rgba(200, 190, 170, .16), transparent 70%), radial-gradient(35% 25% at 75% 60%, rgba(200, 190, 170, .12), transparent 70%), radial-gradient(50% 30% at 50% 90%, rgba(200, 190, 170, .18), transparent 70%);
  filter: blur(20px); animation: fog 26s ease-in-out infinite alternate; }
@keyframes fog { from { transform: translate3d(-4%, 0, 0) scale(1); } to { transform: translate3d(5%, -3%, 0) scale(1.08); } }

/* ---------- Composants ---------- */
.chip { display: inline-flex; align-items: center; gap: .55em; padding: .55em 1em .5em; border: 1px solid var(--line-strong); border-radius: 999px; font-family: var(--f-label); letter-spacing: .12em; font-size: 1rem; line-height: 1; color: var(--text); background: rgba(0,0,0,.25); backdrop-filter: blur(6px); }
.chip .i { color: var(--accent); width: 1.05em; height: 1.05em; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }

.card { position: relative; padding: clamp(26px, 3vw, 44px); background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01)); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .5s var(--ease), transform .6s var(--ease), background .5s; overflow: hidden; }
.card:hover { border-color: rgba(var(--accent-rgb), .45); }
.card h3 { margin-bottom: .55em; }
.card p { color: var(--text-dim); }
.card__icon { width: 54px; height: 54px; display: grid; place-items: center; border: 1px solid rgba(var(--accent-rgb), .4); border-radius: 50%; color: var(--accent); margin-bottom: 1.6rem; }
.card__icon .i { width: 24px; height: 24px; }
.card__num { position: absolute; top: 18px; right: 22px; font-family: var(--f-label); font-size: 3.2rem; line-height: 1; color: rgba(var(--accent-rgb), .16); }
.card--glow::before { content: ''; position: absolute; inset: 0; background: radial-gradient(400px circle at var(--cx, 50%) var(--cy, 0%), rgba(var(--accent-rgb), .12), transparent 60%); opacity: 0; transition: opacity .5s; pointer-events: none; }
.card--glow:hover::before { opacity: 1; }

/* Carte d'univers (Manoir, Eclipse, Ascenders) */
.ucard { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: clamp(460px, 62vh, 680px); padding: clamp(24px, 3vw, 44px); overflow: hidden; border-radius: var(--radius); isolation: isolate; border: 1px solid var(--line); }
.ucard__img { position: absolute; inset: 0; z-index: -2; }
.ucard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.ucard::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.1) 20%, rgba(0,0,0,.88) 100%); transition: background .6s; }
.ucard:hover .ucard__img img { transform: scale(1.07); }
.ucard__tag { position: absolute; top: clamp(20px, 2.5vw, 34px); left: clamp(24px, 3vw, 44px); }
.ucard h3 { font-size: clamp(2.2rem, 1.6rem + 2vw, 3.6rem); margin-bottom: .3em; }
.ucard p { color: var(--text-dim); max-width: 44ch; }
.ucard .link-arrow { margin-top: 1.2rem; }

/* Liste à puces stylisée */
.list { list-style: none; display: grid; gap: 14px; margin: 1.4rem 0; }
.list li { position: relative; padding-left: 2.1em; color: var(--text-dim); }
.list li::before { content: ''; position: absolute; left: 0; top: .62em; width: 9px; height: 9px; background: var(--accent); transform: rotate(45deg); box-shadow: 0 0 14px rgba(var(--accent-rgb), .7); }
.list li strong { color: var(--text); }
.list--lines li { padding: 16px 0 16px 2.1em; border-bottom: 1px solid var(--line); }
.list--lines li::before { top: calc(16px + .62em); }

/* Tarifs */
.price { position: relative; padding: clamp(28px, 3.4vw, 52px); border: 1px solid var(--line); border-radius: var(--radius); background: radial-gradient(120% 80% at 100% 0%, rgba(var(--accent-rgb), .10), transparent 60%), var(--bg-2); overflow: hidden; }
.price::after { content: ''; position: absolute; inset: 10px; border: 1px solid rgba(var(--accent-rgb), .18); pointer-events: none; border-radius: 2px; }
.price__title { font-family: var(--f-display); font-size: clamp(2.2rem, 1.4rem + 2vw, 3.4rem); font-weight: 400; text-transform: uppercase; line-height: 1; margin-bottom: .4em; }
.price__sub { color: var(--text-dim); }
.price__rows { list-style: none; margin: 1.8rem 0; }
.price__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px dashed var(--line-strong); }
.price__row span:first-child { color: var(--text-dim); }
.price__row strong { font-family: var(--f-label); font-weight: 400; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.3rem); color: var(--accent); letter-spacing: .02em; line-height: 1; white-space: nowrap; }
.price__note { font-size: .92rem; color: var(--text-mute); }
.price--featured { border-color: rgba(var(--accent-rgb), .5); }

/* Statistiques / distinctions */
.stat { position: relative; padding: clamp(28px, 3vw, 44px) 0 0; border-top: 1px solid var(--line-strong); }
.stat__num { display: block; font-family: var(--f-label); font-size: clamp(4.4rem, 3rem + 5vw, 9rem); line-height: .82; color: var(--accent); }
.stat__num sup { font-size: .38em; vertical-align: top; margin-left: .08em; }
.stat__label { display: block; margin-top: 1rem; font-family: var(--f-type); font-size: clamp(1rem, .9rem + .4vw, 1.2rem); line-height: 1.4; color: var(--text-dim); }
.stat p { color: var(--text-dim); margin-top: .6rem; }

/* Bandeau défilant */
.marquee { position: relative; overflow: hidden; border-block: 1px solid var(--line); padding-block: clamp(18px, 2.4vw, 30px); user-select: none; }
.marquee__track { display: flex; width: max-content; gap: 3rem; animation: marquee 38s linear infinite; }
.marquee__track > * { display: inline-flex; align-items: center; gap: 3rem; font-family: var(--f-display); text-transform: uppercase; font-size: clamp(1.8rem, 1.2rem + 2.6vw, 4rem); line-height: 1; white-space: nowrap; color: var(--text); }
.marquee__track .i { width: .32em; height: .32em; color: var(--accent); }
.marquee--outline .marquee__track > * { color: transparent; -webkit-text-stroke: 1px rgba(var(--accent-rgb), .7); font-style: normal; font-family: var(--f-label); letter-spacing: .04em; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.no-anim .marquee__track { animation: none; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: clamp(20px, 2.4vw, 30px) 0; cursor: pointer; font-family: var(--f-display); font-weight: 400; text-transform: uppercase; letter-spacing: .02em; font-size: clamp(1.4rem, 1.1rem + 1vw, 2.1rem); line-height: 1; transition: color .3s; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--accent); }
.faq__icon { flex: none; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 50%; display: grid; place-items: center; color: var(--accent); transition: transform .5s var(--ease), background .4s, border-color .4s; }
.faq__item[open] .faq__icon { transform: rotate(45deg); background: rgba(var(--accent-rgb), .12); border-color: rgba(var(--accent-rgb), .5); }
.faq__body { overflow: hidden; }
.faq__body > div { padding: 0 0 clamp(22px, 2.4vw, 30px); color: var(--text-dim); max-width: 72ch; }

/* Bandeau image plein cadre */
.band { position: relative; min-height: 88svh; display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.band__bg { position: absolute; inset: -8% 0; z-index: -2; }
.band__bg img { width: 100%; height: 100%; object-fit: cover; }
.band::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.55) 50%, rgba(0,0,0,.15) 100%); }
.band--center::before { background: radial-gradient(80% 80% at 50% 50%, rgba(0,0,0,.45), rgba(0,0,0,.85)); }
.band--right::before { background: linear-gradient(270deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.55) 50%, rgba(0,0,0,.15) 100%); }
.band__content { max-width: 680px; }
@media (max-width: 760px) { .band::before, .band--right::before { background: linear-gradient(180deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,.86) 45%, rgba(0,0,0,.92) 100%); } }
.band--right .band__content { margin-left: auto; }

/* Récit en scrollytelling : média collant + étapes */
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 110px); }
.story__media { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; }
.story__frames { position: relative; width: 100%; aspect-ratio: 4 / 5; max-height: 78svh; border-radius: var(--radius); overflow: hidden; background: var(--bg-3); }
.story__frames::after { content: ''; position: absolute; inset: 14px; border: 1px solid rgba(var(--accent-rgb), .35); pointer-events: none; z-index: 3; }
.story__frame { position: absolute; inset: 0; margin: 0; opacity: 0; transform: scale(1.08); transition: opacity 1.1s var(--ease), transform 2.2s var(--ease); }
.story__frame.is-active { opacity: 1; transform: scale(1); }
.story__frame img { width: 100%; height: 100%; object-fit: cover; }
.story__steps { padding-block: 10svh; }
.story__step { min-height: 88svh; display: flex; flex-direction: column; justify-content: center; padding-block: 6vh; opacity: .28; transition: opacity .8s var(--ease); }
.story__step.is-active { opacity: 1; }
.no-anim .story__step { opacity: 1; }
.no-anim .story__frame:first-child { opacity: 1; transform: none; }
.story__chapter { font-family: var(--f-label); letter-spacing: .3em; color: var(--accent); font-size: 1rem; margin-bottom: 1.2rem; display: flex; align-items: center; gap: 14px; }
.story__chapter b { font-weight: 400; font-size: 3.4rem; line-height: .8; letter-spacing: 0; color: rgba(var(--accent-rgb), .9); }
.story__progress { position: absolute; left: -26px; top: 50%; transform: translateY(-50%); display: grid; gap: 10px; }
.story__progress i { width: 2px; height: 26px; background: var(--line-strong); transition: background .4s, height .4s; }
.story__progress i.is-active { background: var(--accent); height: 46px; }
@media (max-width: 960px) {
  .story { grid-template-columns: 1fr; gap: 0; }
  .story__media { top: var(--header-h); height: auto; z-index: 0; padding-top: 12px; }
  .story__frames { aspect-ratio: 16 / 11; max-height: 44svh; }
  .story__progress { display: none; }
  .story__steps { position: relative; z-index: 1; padding-block: 0; }
  .story__step { min-height: 70svh; padding: 34px 22px; margin-inline: -6px; background: linear-gradient(180deg, transparent, var(--bg) 14%); }
}

/* Défilement horizontal (univers) */
.hscroll { position: relative; overflow: hidden; }
.hscroll__track { display: flex; gap: clamp(16px, 2vw, 30px); padding-inline: var(--gutter); width: max-content; }
.hscroll__panel { width: min(78vw, 1080px); flex: none; }
@media (max-width: 900px) {
  .hscroll__track { width: auto; flex-direction: column; padding-inline: 0; }
  .hscroll__panel { width: 100%; }
}

/* Panneaux d'univers (accueil) */
.uni { position: relative; min-height: min(80svh, 760px); border-radius: var(--radius); overflow: hidden; isolation: isolate; display: grid; align-items: end; padding: clamp(26px, 4vw, 64px); border: 1px solid var(--line); }
.uni__bg { position: absolute; inset: 0; z-index: -2; }
.uni__bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 2s var(--ease); }
.uni:hover .uni__bg img { transform: scale(1.12); }
.uni::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(200deg, rgba(0,0,0,.05) 10%, rgba(0,0,0,.65) 55%, rgba(0,0,0,.94) 100%); }
.uni__index { position: absolute; top: clamp(22px, 3vw, 40px); right: clamp(22px, 3vw, 44px); font-family: var(--f-label); font-size: clamp(4rem, 8vw, 8.5rem); line-height: .8; color: transparent; -webkit-text-stroke: 1px rgba(var(--accent-rgb), .55); }
.uni__body { max-width: 640px; }
.uni h3 { font-size: clamp(2.2rem, 1.4rem + 2.2vw, 3.8rem); line-height: .98; }
.uni p { color: var(--text-dim); }
.uni .list { margin: 1rem 0 1.6rem; gap: 8px; }
@media (max-width: 900px) { .uni { min-height: 78svh; } }
.no-anim .hscroll { overflow-x: auto; }

/* Horloge animée */
.clock { position: relative; width: min(100%, 420px); aspect-ratio: 1; margin-inline: auto; }
.clock img { position: absolute; inset: 0; width: 100%; height: 100%; }
.clock__ring { filter: drop-shadow(0 0 30px rgba(var(--accent-rgb), .25)); }
.clock__hand { will-change: transform; }
.clock__face { position: absolute; inset: 22%; border-radius: 50%; background: radial-gradient(circle, rgba(var(--accent-rgb), .12), transparent 70%); }

/* Témoignages & widgets externes */
.reviews { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 48px); }
.widget { padding: clamp(20px, 2.4vw, 34px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); min-height: 260px; }
.widget__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 1.4rem; }
.widget__head h3 { margin: 0; }
.stars { display: inline-flex; gap: 3px; color: var(--accent); }
.stars .i { width: 18px; height: 18px; }
@media (max-width: 960px) { .reviews { grid-template-columns: 1fr; } }

/* Distinctions */
.awards { position: relative; overflow: hidden; }
.laurel { width: clamp(140px, 16vw, 220px); margin: 0 auto 1.6rem; color: var(--accent); }

/* Carte (Leaflet) */
.map { position: relative; min-height: 460px; height: 100%; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--bg-3); }
.map .leaflet-container { position: absolute; inset: 0; background: #0d0c0b; font-family: var(--f-body); }
.map .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) grayscale(.75) sepia(.35) brightness(.78) contrast(1.1); }
.map-marker { width: 46px; height: 46px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(var(--accent-rgb), .18), 0 0 40px rgba(var(--accent-rgb), .7); }
.map-marker { color: var(--accent-ink); }
.map-marker svg { width: 18px; height: 18px; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--bg-2) !important; color: var(--text) !important; border: 1px solid var(--line); }
.leaflet-control-attribution { background: rgba(0,0,0,.6) !important; color: var(--text-mute) !important; }
.leaflet-control-attribution a { color: var(--text-dim) !important; }
.info-list { list-style: none; display: grid; gap: 0; }
.info-list li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.info-list .i { width: 26px; height: 26px; color: var(--accent); margin-top: 2px; }
.info-list strong { display: block; font-family: var(--f-label); font-weight: 400; letter-spacing: .14em; font-size: 1.05rem; color: var(--text); }
.info-list span { color: var(--text-dim); }

/* Formulaire */
.form { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { position: relative; }
.field input, .field textarea { width: 100%; padding: 22px 18px 10px; background: rgba(255,255,255,.03); border: 1px solid var(--line-strong); border-radius: var(--radius); color: var(--text); font: inherit; transition: border-color .3s, background .3s; }
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: rgba(var(--accent-rgb), .05); }
.field label { position: absolute; left: 18px; top: 17px; color: var(--text-mute); pointer-events: none; transition: all .25s var(--ease); }
.field input:focus + label, .field input:not(:placeholder-shown) + label, .field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { top: 7px; font-size: .74rem; letter-spacing: .08em; color: var(--accent); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--text-dim); }
.check input { margin-top: .3em; accent-color: var(--accent); width: 18px; height: 18px; flex: none; }
.check a { color: var(--accent); text-decoration: underline; }
.form__status { font-family: var(--f-label); letter-spacing: .12em; color: var(--accent); min-height: 1.5em; }
.hp { position: absolute; left: -9999px; }
@media (max-width: 640px) { .form__row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--bg); border-top: 1px solid var(--line); overflow: hidden; }
.footer-cta { padding-block: clamp(90px, 12vw, 180px); text-align: center; position: relative; }
.footer-cta::before { content: ''; position: absolute; left: 50%; top: 50%; width: 70vmax; height: 70vmax; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(var(--accent-rgb), .12), transparent 60%); pointer-events: none; }
.footer-cta .eyebrow { justify-content: center; }
.footer-cta__title { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: clamp(4rem, 1.6rem + 10vw, 15rem); line-height: .84; letter-spacing: .005em; margin: 0 auto .5em; max-width: 12ch; }
.footer-cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; position: relative; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr 1.8fr; gap: clamp(28px, 3vw, 48px); padding-block: clamp(56px, 6vw, 90px); border-top: 1px solid var(--line); }
.footer-brand__logo img { width: 92px; margin-bottom: 1.2rem; }
.footer-brand p { color: var(--text-dim); max-width: 30ch; font-size: .95rem; }
.socials { display: flex; gap: 10px; margin-top: 1.4rem; }
.socials a { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--text-dim); transition: all .4s var(--ease); }
.socials a:hover { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); transform: translateY(-3px); }
.socials .i { width: 19px; height: 19px; }
.footer-col__title { font-family: var(--f-label); letter-spacing: .2em; color: var(--accent); font-size: 1.02rem; margin-bottom: 1.1rem; }
.footer-col p, .footer-col li { font-size: .95rem; color: var(--text-dim); }
.footer-col ul { list-style: none; display: grid; gap: 8px; }
.footer-col a { transition: color .3s; }
.footer-col a:hover { color: var(--accent); }
.footer-tags { display: flex !important; flex-wrap: wrap; gap: 8px !important; }
.footer-tags a { display: inline-block; padding: .38em .8em; border: 1px solid var(--line); border-radius: 999px; font-size: .84rem; color: var(--text-dim); }
.footer-tags a:hover { border-color: rgba(var(--accent-rgb), .6); color: var(--text); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-block: 26px; border-top: 1px solid var(--line); font-size: .86rem; color: var(--text-mute); }
.footer-bottom p { margin: 0; }
.footer-bottom a:hover { color: var(--accent); }
.footer-top { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-label); letter-spacing: .2em; }
.footer-top .i { transform: rotate(-90deg); }
.footer-giant { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: clamp(3rem, 11.6vw, 15rem); line-height: .8; letter-spacing: -.035em; white-space: nowrap; text-align: center; color: transparent; -webkit-text-stroke: 1px rgba(var(--accent-rgb), .16); margin-bottom: -.12em; user-select: none; }
@media (max-width: 1100px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } .footer-brand, .footer-col--wide { grid-column: 1 / -1; } }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-col--wide { grid-column: 1 / -1; } .footer-cta__actions .btn { width: 100%; } }

/* ---------- Curseur personnalisé ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 250; pointer-events: none; width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1px solid rgba(var(--accent-rgb), .7); border-radius: 50%; transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .35s, border-color .35s, opacity .3s; opacity: 0; }
.cursor::after { content: ''; position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px; border-radius: 50%; background: var(--accent); }
.has-pointer .cursor { opacity: 1; }
.cursor.is-hover { width: 70px; height: 70px; margin: -35px 0 0 -35px; background: rgba(var(--accent-rgb), .12); border-color: rgba(var(--accent-rgb), .9); }
.cursor.is-hidden { opacity: 0; }
@media (hover: none) { .cursor, .torch { display: none; } }

/* Utilitaires */
.mt-0 { margin-top: 0 !important; } .mb-0 { margin-bottom: 0 !important; }
.mt-s { margin-top: 1.2rem; } .mt-m { margin-top: 2.4rem; } .mt-l { margin-top: 4rem; }
.max-40 { max-width: 40ch; } .max-60 { max-width: 60ch; }
.accent { color: var(--accent); }
.hide-mobile { } @media (max-width: 760px) { .hide-mobile { display: none !important; } }
.show-mobile { display: none !important; } @media (max-width: 760px) { .show-mobile { display: initial !important; } }

/* ==========================================================================
   SCÈNES — grandes séquences animées au défilement (pilotées par scenes.js)
   ========================================================================== */

/* ---------- HUD : chrono d'escape game + clés trouvées ---------- */
.hud { position: fixed; left: clamp(12px, 2vw, 28px); bottom: clamp(12px, 2vw, 28px); z-index: 65; display: flex; align-items: center; gap: 14px; padding: 10px 18px 10px 16px; border: 1px solid rgba(var(--accent-rgb), .38); border-radius: 999px; background: rgba(8, 7, 6, .74); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-family: var(--f-label); letter-spacing: .14em; color: var(--text-dim); transform: translateY(160%); transition: transform .8s var(--ease), border-color .4s; }
.hud.is-visible { transform: none; }
.hud__label { font-size: .74rem; line-height: 1.05; }
.hud__time { font-size: 1.75rem; line-height: 1; color: var(--accent); min-width: 3.2ch; text-shadow: 0 0 18px rgba(var(--accent-rgb), .65); font-variant-numeric: tabular-nums; letter-spacing: .06em; }
.hud.is-urgent { border-color: rgba(230, 50, 50, .7); }
.hud.is-urgent .hud__time { color: #ff5148; text-shadow: 0 0 18px rgba(255, 50, 40, .8); animation: hud-blink 1s steps(2) infinite; }
.hud__keys { display: flex; gap: 6px; padding-left: 14px; border-left: 1px solid var(--line-strong); }
.hud__key { width: 22px; height: 22px; color: rgba(238, 229, 211, .22); transition: color .5s, transform .6s var(--ease), filter .5s; }
.hud__key svg { width: 100%; height: 100%; }
.hud__key.is-found { color: var(--accent); filter: drop-shadow(0 0 6px rgba(var(--accent-rgb), .9)); transform: rotate(-24deg) scale(1.12); }
@keyframes hud-blink { 50% { opacity: .45; } }
@media (max-width: 560px) { .hud { padding: 8px 13px; gap: 10px; } .hud__label { display: none; } .hud__time { font-size: 1.35rem; } .hud__key { width: 18px; height: 18px; } .hud__keys { padding-left: 10px; } }
.hud-toast { position: fixed; left: clamp(12px, 2vw, 28px); bottom: calc(clamp(12px, 2vw, 28px) + 64px); z-index: 65; max-width: min(340px, calc(100vw - 24px)); padding: 14px 18px; border: 1px solid rgba(var(--accent-rgb), .4); border-radius: 6px; background: rgba(8, 7, 6, .9); backdrop-filter: blur(10px); font-size: .92rem; color: var(--text-dim); opacity: 0; transform: translateY(12px); transition: opacity .5s, transform .6s var(--ease); pointer-events: none; }
.hud-toast.is-visible { opacity: 1; transform: none; }
.hud-toast strong { color: var(--accent); font-family: var(--f-label); letter-spacing: .14em; font-weight: 400; display: block; font-size: 1rem; }

/* Clés cachées dans les pages */
.hidden-key { position: absolute; z-index: 8; width: 52px; height: 52px; display: grid; place-items: center; color: var(--accent); opacity: .55; transition: opacity .4s, transform .6s var(--ease); }
.hidden-key svg { width: 26px; height: 26px; animation: key-glint 4.6s ease-in-out infinite; }
.hidden-key:hover, .hidden-key:focus-visible { opacity: 1; transform: scale(1.3) rotate(-18deg); }
.hidden-key.is-found { opacity: 0 !important; pointer-events: none; }
@keyframes key-glint { 0%, 82%, 100% { filter: drop-shadow(0 0 3px rgba(var(--accent-rgb), .35)); transform: rotate(0); } 88% { filter: drop-shadow(0 0 14px rgba(255, 232, 170, 1)) brightness(1.9); transform: rotate(-14deg); } 94% { transform: rotate(8deg); } }
.key-fly { position: fixed; z-index: 220; width: 26px; height: 26px; color: var(--accent); pointer-events: none; filter: drop-shadow(0 0 12px rgba(var(--accent-rgb), 1)); }
.keys-modal { position: fixed; inset: 0; z-index: 230; display: grid; place-items: center; padding: 20px; background: rgba(0, 0, 0, .78); backdrop-filter: blur(8px); opacity: 0; visibility: hidden; transition: opacity .5s, visibility 0s linear .5s; }
.keys-modal.is-open { opacity: 1; visibility: visible; transition: opacity .5s; }
.keys-modal__box { position: relative; width: min(600px, 100%); text-align: center; padding: clamp(34px, 5vw, 64px) clamp(22px, 4vw, 56px); border: 1px solid rgba(var(--accent-rgb), .5); border-radius: 6px; background: radial-gradient(circle at 50% 0, rgba(var(--accent-rgb), .2), transparent 62%), var(--bg-2); box-shadow: 0 40px 140px rgba(0, 0, 0, .8), 0 0 90px -20px rgba(var(--accent-rgb), .5); transform: scale(.92); transition: transform .7s var(--ease); }
.keys-modal.is-open .keys-modal__box { transform: none; }
.keys-modal__keys { display: flex; justify-content: center; gap: 18px; color: var(--accent); margin-bottom: 1.4rem; }
.keys-modal__keys svg { width: 40px; height: 40px; filter: drop-shadow(0 0 12px rgba(var(--accent-rgb), .9)); }
.keys-modal__title { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: clamp(2rem, 1.4rem + 2.4vw, 3.4rem); line-height: 1; margin-bottom: .5em; }
.keys-modal__title em { color: var(--accent); }
.keys-modal p { color: var(--text-dim); }
.keys-modal .actions { justify-content: center; }

/* Sommaire des chapitres (bord droit) */
.chapters { position: fixed; right: clamp(10px, 1.4vw, 24px); top: 50%; transform: translateY(-50%); z-index: 58; display: grid; gap: 2px; transition: opacity .4s; }
.chapters a { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 5px 0; font-family: var(--f-label); letter-spacing: .16em; font-size: .8rem; color: var(--text-mute); }
.chapters a span { opacity: 0; transform: translateX(8px); transition: opacity .4s, transform .5s var(--ease); white-space: nowrap; text-shadow: 0 2px 10px #000; }
.chapters a i { width: 16px; height: 1px; background: currentColor; transition: width .5s var(--ease), background .4s; }
.chapters:hover a span { opacity: 1; transform: none; }
.chapters a.is-active { color: var(--accent); }
.chapters a.is-active i { width: 38px; background: var(--accent); box-shadow: 0 0 10px rgba(var(--accent-rgb), .8); }
.menu-open .chapters { opacity: 0; pointer-events: none; }
@media (max-width: 1180px) { .chapters { display: none; } }

/* Curseur avec libellé */
.cursor.has-label { width: 88px; height: 88px; margin: -44px 0 0 -44px; background: var(--accent); border-color: var(--accent); }
.cursor.has-label::after { display: none; }
.cursor[data-label]::before { content: attr(data-label); position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-label); font-size: .82rem; letter-spacing: .16em; color: var(--accent-ink); }

/* ---------- Entrée cinématique (accueil) ---------- */
.intro { position: relative; height: 100svh; min-height: 560px; overflow: hidden; background: radial-gradient(38% 42% at 50% 30%, rgba(var(--accent-rgb), .13), transparent 70%), radial-gradient(90% 60% at 50% 100%, rgba(60, 30, 15, .35), transparent 70%), #040303; isolation: isolate; }
.intro__layer { position: absolute; inset: 0; overflow: hidden; }
.intro__layer img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.intro__outside::after { content: ''; position: absolute; inset: 0; background: radial-gradient(70% 60% at var(--door-x, 50%) var(--door-y, 58%), transparent 0%, rgba(0, 0, 0, .55) 70%, rgba(0, 0, 0, .9) 100%), linear-gradient(180deg, rgba(0, 0, 0, .55), transparent 30%, transparent 70%, rgba(0, 0, 0, .7)); }
.intro__inside { z-index: 2; }
.intro__inside::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, transparent 30%, rgba(10, 9, 8, .35) 70%, var(--bg) 100%); }
.intro__light { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; mix-blend-mode: screen; background: radial-gradient(circle at var(--door-x, 50%) var(--door-y, 58%), rgba(255, 226, 170, .95) 0%, rgba(255, 170, 80, .35) 14%, rgba(255, 140, 60, 0) 42%); }
.intro__fog { position: absolute; inset: -25%; z-index: 3; pointer-events: none; opacity: 0; filter: blur(24px); background: radial-gradient(38% 26% at 22% 62%, rgba(210, 200, 180, .42), transparent 70%), radial-gradient(34% 24% at 78% 48%, rgba(210, 200, 180, .34), transparent 70%), radial-gradient(48% 30% at 50% 86%, rgba(210, 200, 180, .45), transparent 72%); }
.intro__fog--b { background: radial-gradient(30% 22% at 35% 30%, rgba(220, 210, 190, .32), transparent 70%), radial-gradient(40% 28% at 70% 75%, rgba(220, 210, 190, .4), transparent 70%); }
.intro__emblem { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; pointer-events: none; }
.intro__title { position: absolute; left: 0; right: 0; bottom: clamp(70px, 13vh, 140px); z-index: 6; text-align: center; padding-inline: var(--gutter); }
.intro__title .eyebrow { justify-content: center; }
.intro__title .eyebrow::after { content: ''; width: 2.6rem; height: 1px; background: currentColor; opacity: .7; }
.intro__title h1 { font-size: clamp(2.6rem, 1rem + 4.4vw, 6.2rem); line-height: .86; max-width: 14ch; margin: 0 auto .1em; text-shadow: 0 8px 50px rgba(0, 0, 0, .8); }
.intro__title h1 .intro__sub { display: block; margin-top: .9em; font-family: var(--f-type); font-size: clamp(.9rem, .8rem + .4vw, 1.2rem); letter-spacing: .14em; text-transform: none; color: var(--text-dim); }
.intro__title .actions { justify-content: center; margin-top: 1.8rem; }
.intro__caption { position: absolute; left: 50%; top: 46%; z-index: 6; width: min(94vw, 1300px); transform: translate(-50%, -50%); text-align: center; font-family: var(--f-display); text-transform: uppercase; font-size: clamp(3.2rem, 1.2rem + 8vw, 11rem); line-height: .86; -webkit-mask-image: var(--grunge); mask-image: var(--grunge); -webkit-mask-size: 360px auto; mask-size: 360px auto; color: var(--text); text-shadow: 0 6px 40px #000, 0 0 80px rgba(0, 0, 0, .9); opacity: 0; pointer-events: none; margin: 0; }
.intro__caption small { display: block; font-family: var(--f-type); font-size: clamp(.85rem, .8rem + .3vw, 1.1rem); letter-spacing: .3em; color: var(--accent); margin-bottom: 1rem; }
.intro__hint { position: absolute; left: 50%; bottom: 16px; z-index: 6; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; font-family: var(--f-label); letter-spacing: .32em; font-size: .82rem; color: var(--text-dim); }
.intro__hint::after { content: ''; width: 1px; height: 46px; background: linear-gradient(var(--accent), transparent); animation: drip 2.2s var(--ease) infinite; }
.js:not(.no-anim) .intro__outside { opacity: 0; }
.js:not(.no-anim) .intro__inside { clip-path: inset(50% 50% 50% 50%); }
.no-anim .intro__inside, .no-anim .intro__emblem, .no-anim .intro__caption, .no-anim .intro__fog, .no-anim .intro__light { display: none; }
@media (max-width: 700px) { .intro__title { bottom: clamp(40px, 8vh, 80px); } .intro__title .actions .btn { width: auto; } .intro__hint { display: none; } }

/* ---------- Couloir des portes ---------- */
.corridor { position: relative; overflow: hidden; background: var(--bg); }
.corridor__track { display: flex; width: max-content; }
.corridor__intro { flex: none; width: min(46vw, 660px); height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: var(--header-h) 3vw 0 var(--gutter); }
.corridor__intro .display { font-size: clamp(3rem, 1.6rem + 4.6vw, 7rem); }
.corridor__hint { display: inline-flex; align-items: center; gap: 12px; margin-top: 2rem; font-family: var(--f-label); letter-spacing: .26em; color: var(--accent); }
.corridor__hint .i { animation: nudge 1.6s var(--ease) infinite; }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(10px); } }
.corridor__room { position: relative; flex: none; width: 100vw; height: 100svh; display: grid; grid-template-columns: auto minmax(0, 560px); align-items: center; justify-content: center; gap: clamp(40px, 6vw, 120px); padding: calc(var(--header-h) + 10px) 6vw 30px; }
.corridor__room::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 40%; pointer-events: none; background: radial-gradient(50% 60% at 32% 100%, rgba(var(--accent-rgb), .16), transparent 70%); }
.corridor__num { position: absolute; top: calc(var(--header-h) + 8px); right: 6vw; font-family: var(--f-label); font-size: clamp(5rem, 11vw, 12rem); line-height: .8; color: transparent; -webkit-text-stroke: 1px rgba(var(--accent-rgb), .4); pointer-events: none; }
.corridor__info { position: relative; z-index: 2; }
.corridor__info h3 { font-size: clamp(2.8rem, 1.6rem + 3.4vw, 5.6rem); line-height: .86; margin-top: 1rem; }
.corridor__info p { color: var(--text-dim); }
.corridor__info .quote { color: var(--text); font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.4rem); }
.corridor__info .list { gap: 8px; margin: .8rem 0 1.6rem; }
.corridor__info .btn { margin-top: .4rem; }
@media (max-width: 900px) {
  .corridor__track { width: auto; flex-direction: column; }
  .corridor__intro { width: auto; height: auto; padding: var(--section) var(--gutter) 10px; }
  .corridor__room { width: 100%; height: auto; grid-template-columns: 1fr; justify-items: center; gap: 34px; padding: 70px var(--gutter); }
  .corridor__info { justify-self: stretch; }
  .corridor__num { top: 30px; right: var(--gutter); font-size: 6rem; }
}

/* La porte (trois variantes : bois, sas spatial, pierre) */
.gate { position: relative; display: block; flex: none; height: min(70svh, 680px); aspect-ratio: 3 / 5; perspective: 1500px; border-radius: 50% 50% 4px 4px / 30% 30% 4px 4px; overflow: hidden; isolation: isolate; background: #000; box-shadow: 0 0 0 10px #140d08, 0 0 0 11px rgba(var(--accent-rgb), .55), 0 0 0 22px rgba(20, 13, 8, .6), 0 50px 120px -20px rgba(0, 0, 0, .95), 0 0 160px -40px rgba(var(--accent-rgb), .55); }
.gate__world { position: absolute; inset: 0; z-index: 0; }
.gate__world img { width: 100%; height: 100%; object-fit: cover; }
.gate__light { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; mix-blend-mode: screen; background: radial-gradient(60% 50% at 50% 60%, rgba(var(--accent-rgb), .55), transparent 70%); }
.gate__leaf { position: absolute; top: 0; bottom: 0; width: 50.2%; z-index: 3; transform-style: preserve-3d; backface-visibility: visible; will-change: transform; }
.gate__leaf--l { left: 0; transform-origin: 0 50%; }
.gate__leaf--r { right: 0; transform-origin: 100% 50%; }
.gate__knob { position: absolute; top: 55%; width: 15px; height: 15px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fae3a8, #b4843a 55%, #4a3210); box-shadow: 0 3px 8px rgba(0, 0, 0, .8); }
.gate__leaf--l .gate__knob { right: 9%; }
.gate__leaf--r .gate__knob { left: 9%; }
.gate--wood .gate__leaf { background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .2) 0 1px, transparent 1px 7px), repeating-linear-gradient(90deg, rgba(255, 255, 255, .03) 0 2px, transparent 2px 13px), linear-gradient(180deg, #43291a, #2c1a0f 55%, #1c1009); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .7), inset -14px 0 30px rgba(0, 0, 0, .55); }
.gate--wood .gate__leaf--r { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .7), inset 14px 0 30px rgba(0, 0, 0, .55); }
.gate--wood .gate__leaf::before, .gate--wood .gate__leaf::after { content: ''; position: absolute; left: 17%; right: 17%; border: 1px solid rgba(0, 0, 0, .6); box-shadow: inset 0 0 0 5px rgba(255, 255, 255, .03), inset 0 0 26px rgba(0, 0, 0, .75), 0 0 0 1px rgba(var(--accent-rgb), .14); }
.gate--wood .gate__leaf::before { top: 24%; height: 28%; }
.gate--wood .gate__leaf::after { top: 62%; height: 28%; }
.gate--airlock { border-radius: 40px; box-shadow: 0 0 0 10px #10121a, 0 0 0 11px rgba(var(--accent-rgb), .6), 0 0 0 22px rgba(16, 18, 26, .6), 0 50px 120px -20px rgba(0, 0, 0, .95), 0 0 160px -40px rgba(var(--accent-rgb), .55); }
.gate--airlock .gate__leaf { background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 22px), linear-gradient(90deg, #171922, #2d313d 45%, #1b1d26); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .7), inset 0 0 40px rgba(0, 0, 0, .6); }
.gate--airlock .gate__leaf::before { content: ''; position: absolute; left: 0; right: 0; top: 47%; height: 7%; background: repeating-linear-gradient(-45deg, var(--accent) 0 12px, #121319 12px 24px); opacity: .85; }
.gate--airlock .gate__leaf::after { content: ''; position: absolute; top: 6%; bottom: 6%; right: 0; width: 3px; background: var(--accent); box-shadow: 0 0 18px 2px var(--accent); }
.gate--airlock .gate__leaf--r::after { right: auto; left: 0; }
.gate--airlock .gate__knob { top: 18%; width: 46%; height: 8px; border-radius: 4px; background: rgba(var(--accent-rgb), .3); box-shadow: 0 0 12px rgba(var(--accent-rgb), .5); }
.gate--stone { border-radius: 50% 50% 6px 6px / 22% 22% 6px 6px; box-shadow: 0 0 0 10px #0c1210, 0 0 0 11px rgba(var(--accent-rgb), .5), 0 0 0 22px rgba(12, 18, 16, .6), 0 50px 120px -20px rgba(0, 0, 0, .95), 0 0 160px -40px rgba(var(--accent-rgb), .5); }
.gate--stone .gate__leaf { background: radial-gradient(120% 60% at 30% 20%, rgba(255, 255, 255, .07), transparent 60%), repeating-radial-gradient(circle at 70% 80%, rgba(0, 0, 0, .22) 0 2px, transparent 2px 9px), linear-gradient(180deg, #3d433c, #252a26 65%, #171b18); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .7), inset 0 0 40px rgba(0, 0, 0, .55); }
.gate--stone .gate__leaf::before { content: 'ᚨᛊᚲᛖᚾ'; position: absolute; top: 22%; right: 12%; writing-mode: vertical-rl; font-size: clamp(1rem, 1.6vw, 1.6rem); letter-spacing: .5em; color: var(--accent); text-shadow: 0 0 12px var(--accent), 0 0 30px var(--accent); opacity: .8; }
.gate--stone .gate__leaf--r::before { content: 'ᛞᛖᚱᛊᛟ'; right: auto; left: 12%; }
.gate--stone .gate__knob { display: none; }
.no-anim .gate__leaf { display: none; }
@media (max-width: 900px) { .gate { height: auto; width: min(70vw, 340px); } }

/* ---------- Rideaux de théâtre ---------- */
.curtains { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.drape { position: absolute; top: 0; bottom: 0; width: 51%; z-index: 4; background: repeating-linear-gradient(90deg, #3e080c 0, #741319 1.6%, #a8222b 2.8%, #6a1016 4.2%, #36070a 5.6%), #5c0d13; box-shadow: inset 0 -120px 140px rgba(0, 0, 0, .65), inset 0 90px 90px rgba(0, 0, 0, .5); will-change: transform; }
.drape::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .3), transparent 22%, transparent 75%, rgba(0, 0, 0, .55)); }
.drape--l { left: 0; transform-origin: 0 50%; box-shadow: inset -30px 0 60px rgba(0, 0, 0, .6), inset 0 -120px 140px rgba(0, 0, 0, .65); }
.drape--r { right: 0; transform-origin: 100% 50%; box-shadow: inset 30px 0 60px rgba(0, 0, 0, .6), inset 0 -120px 140px rgba(0, 0, 0, .65); }
.curtains__valance { position: absolute; top: 0; left: 0; right: 0; height: clamp(50px, 9vh, 90px); z-index: 5; background: repeating-linear-gradient(90deg, #4a0a0f 0, #7d151c 3%, #4a0a0f 6%); border-bottom: 2px solid rgba(var(--accent-rgb), .7); box-shadow: 0 14px 40px rgba(0, 0, 0, .7); }
.curtains__valance::after { content: ''; position: absolute; left: 0; right: 0; bottom: -10px; height: 10px; background: repeating-linear-gradient(90deg, rgba(var(--accent-rgb), .85) 0 2px, transparent 2px 7px); }
.spot { position: absolute; top: -12%; width: 46vw; height: 140%; z-index: 2; pointer-events: none; mix-blend-mode: screen; transform-origin: 50% 0; opacity: 0; background: conic-gradient(from 180deg at 50% 0, transparent 166deg, rgba(255, 236, 190, .2) 180deg, transparent 194deg); filter: blur(6px); }
.spot--1 { left: 2%; } .spot--2 { right: 2%; }
.no-anim .drape, .no-anim .spot { display: none; }

/* ---------- Portail réalité virtuelle ---------- */
.vr-floor { position: absolute; left: -50%; right: -50%; bottom: -4%; height: 58%; z-index: 0; pointer-events: none; opacity: .5; background-image: linear-gradient(rgba(var(--accent-rgb), .6) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--accent-rgb), .6) 1px, transparent 1px); background-size: 74px 74px; transform: perspective(620px) rotateX(72deg); transform-origin: 50% 100%; -webkit-mask-image: linear-gradient(to top, #000 5%, transparent 85%); mask-image: linear-gradient(to top, #000 5%, transparent 85%); animation: grid-run 1.4s linear infinite; }
@keyframes grid-run { to { background-position: 0 74px, 0 0; } }
.scanlines { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .04) 0 1px, transparent 1px 4px); mix-blend-mode: overlay; }
.corners { --c: rgba(var(--accent-rgb), .85); background: linear-gradient(var(--c), var(--c)) top left / 26px 1px, linear-gradient(var(--c), var(--c)) top left / 1px 26px, linear-gradient(var(--c), var(--c)) top right / 26px 1px, linear-gradient(var(--c), var(--c)) top right / 1px 26px, linear-gradient(var(--c), var(--c)) bottom left / 26px 1px, linear-gradient(var(--c), var(--c)) bottom left / 1px 26px, linear-gradient(var(--c), var(--c)) bottom right / 26px 1px, linear-gradient(var(--c), var(--c)) bottom right / 1px 26px; background-repeat: no-repeat; padding: 18px; }
.is-glitching { animation: glitch .9s steps(2, end) 1; }
@keyframes glitch {
  0% { text-shadow: 3px 0 #ff2bd6, -3px 0 #2bf3ff; clip-path: inset(0 0 62% 0); transform: translateX(-5px); }
  14% { clip-path: inset(38% 0 22% 0); transform: translateX(5px); }
  28% { clip-path: inset(8% 0 70% 0); text-shadow: -4px 0 #ff2bd6, 4px 0 #2bf3ff; transform: translateX(-3px); }
  42% { clip-path: inset(70% 0 4% 0); transform: translateX(3px); }
  56% { clip-path: inset(0 0 0 0); text-shadow: 2px 0 #ff2bd6, -2px 0 #2bf3ff; transform: none; }
  100% { text-shadow: none; clip-path: none; transform: none; }
}
.hologram { animation: holo 5s ease-in-out infinite; }
@keyframes holo { 0%, 100% { filter: grayscale(1) contrast(1.3) drop-shadow(0 0 30px rgba(var(--accent-rgb), .45)); } 47% { filter: grayscale(1) contrast(1.3) drop-shadow(0 0 30px rgba(var(--accent-rgb), .45)); } 50% { filter: grayscale(.4) contrast(1.5) brightness(1.5) drop-shadow(0 0 40px rgba(var(--accent-rgb), .9)); } 53% { filter: grayscale(1) contrast(1.3) drop-shadow(0 0 30px rgba(var(--accent-rgb), .45)); } }

/* ---------- Gravure qui se dessine ---------- */
.etch { --p: 1; }
.js:not(.no-anim) .etch { --p: 0; }
.etch img { -webkit-mask-image: linear-gradient(180deg, #000 calc(var(--p) * 125% - 25%), transparent calc(var(--p) * 125%)); mask-image: linear-gradient(180deg, #000 calc(var(--p) * 125% - 25%), transparent calc(var(--p) * 125%)); }
.etch__scan { position: absolute; left: 0; right: 0; z-index: 4; height: 2px; top: calc(var(--p) * 125% - 12%); background: linear-gradient(90deg, transparent, var(--accent-2), transparent); box-shadow: 0 0 26px 8px rgba(var(--accent-rgb), .55); opacity: calc((1 - var(--p)) * 3); pointer-events: none; }

/* ---------- Émergence depuis la brume ---------- */
.js:not(.no-anim) [data-emerge] { opacity: 0; }

/* ---------- Carte 3D ---------- */
.card3d { transform-style: preserve-3d; will-change: transform; }

/* ---------- Bandeau défilant piloté par le défilement ---------- */
.marquee.is-js .marquee__track { animation: none; }

/* ---------- Titre géant du pied de page qui se remplit d'or ---------- */
.footer-giant { background: linear-gradient(90deg, rgba(var(--accent-rgb), .85) var(--fill, 0%), transparent var(--fill, 0%)); -webkit-background-clip: text; background-clip: text; }

/* Garde-fou : aucune section ne doit élargir la page horizontalement */
main > section, main > div, .site-footer { overflow-x: clip; }
.clock { contain: layout paint; }

/* Texte doré scintillant */
.shimmer { background: linear-gradient(100deg, var(--accent) 30%, #fff3d1 45%, var(--accent) 60%) 0 0 / 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 4.5s ease-in-out infinite; }
.shimmer sup, .shimmer span { color: inherit; }
@keyframes shimmer { 0% { background-position: 120% 0; } 60%, 100% { background-position: -120% 0; } }
/* Rayons lumineux qui tournent lentement (fond de section) */
.rays { position: absolute; left: 50%; top: 2%; width: 150vmax; height: 150vmax; margin-left: -75vmax; margin-top: -75vmax; background: repeating-conic-gradient(from 0deg, rgba(var(--accent-rgb), .07) 0deg 4deg, transparent 4deg 14deg); -webkit-mask-image: radial-gradient(circle, #000 0%, transparent 55%); mask-image: radial-gradient(circle, #000 0%, transparent 55%); animation: rays 80s linear infinite; pointer-events: none; }
@keyframes rays { to { transform: rotate(360deg); } }
.no-anim .rays, .no-anim .shimmer { animation: none; }

/* ==========================================================================
   v3 — affiche d'horreur : peu de texte, beaucoup d'images qui bougent
   ========================================================================== */

/* Texte d'origine replié (« En savoir plus ») : lu par Google, discret à l'écran */
.more { margin-top: 1.6rem; max-width: 70ch; border-top: 1px solid var(--line); }
.more summary { list-style: none; display: inline-flex; align-items: center; gap: 12px; padding: 14px 0; cursor: pointer; font-family: var(--f-type); font-size: .88rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-dim); transition: color .3s; }
.more summary::-webkit-details-marker { display: none; }
.more summary::before { content: '+'; display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid currentColor; border-radius: 50%; font-family: var(--f-body); font-size: 1rem; letter-spacing: 0; transition: transform .5s var(--ease), background .3s, color .3s; }
.more summary:hover { color: var(--accent); }
.more[open] summary::before { transform: rotate(45deg); background: var(--accent); border-color: var(--accent); color: #fff; }
.more__body { overflow: hidden; }
.more__body > div { padding: 4px 0 22px; color: var(--text-dim); font-size: .98rem; }
.more__body h2, .more__body h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.2rem); margin: 1.2em 0 .5em; -webkit-mask-image: none; mask-image: none; }
.more__body p, .more__body li { color: var(--text-dim); }
.more__body ul { margin: 0 0 1em 1.2em; }
.center .more { margin-inline: auto; text-align: left; }

/* Images en noir et blanc qui reprennent leurs couleurs à l'écran */
.js:not(.no-anim) [data-colorize] { filter: grayscale(1) contrast(1.15) brightness(.85); transition: filter 1.4s var(--ease); }
.js:not(.no-anim) [data-colorize].is-colored { filter: none; }
.bw { filter: grayscale(1) contrast(1.2) brightness(.9); }

/* Phrase choc */
.punch { font-family: var(--f-type); font-size: clamp(1.15rem, 1rem + .7vw, 1.6rem); line-height: 1.4; color: var(--text); max-width: 34ch; }
.punch strong { color: var(--accent); font-weight: 400; }
.giant { font-family: var(--f-display); text-transform: uppercase; font-size: clamp(5rem, 2rem + 14vw, 20rem); line-height: .8; letter-spacing: .005em; -webkit-mask-image: var(--grunge); mask-image: var(--grunge); -webkit-mask-size: 360px auto; mask-size: 360px auto; }
.giant em { color: var(--accent); font-style: normal; }
.red { color: var(--accent); }
.outline { color: transparent; -webkit-text-stroke: 1.5px var(--text); }

/* Bandes rouges « scène de crime » */
.tape { position: absolute; left: -10%; right: -10%; z-index: 5; height: 46px; display: flex; align-items: center; overflow: hidden; background: var(--accent); color: #fff; transform: rotate(-4deg); box-shadow: 0 10px 30px rgba(0, 0, 0, .6); pointer-events: none; }
.tape__track { display: flex; gap: 2.4rem; white-space: nowrap; font-family: var(--f-display); font-size: 1.6rem; letter-spacing: .08em; animation: marquee 22s linear infinite; }
.no-anim .tape__track { animation: none; }

/* Tampons (distinctions) */
.stamps { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(20px, 3vw, 48px); }
.stamp { display: inline-grid; justify-items: center; gap: 6px; padding: 22px 28px 18px; border: 4px solid var(--accent); border-radius: 6px; color: var(--accent); text-align: center; transform: rotate(var(--r, -6deg)); box-shadow: inset 0 0 0 3px rgba(224, 27, 34, .25); background: rgba(224, 27, 34, .04); }
.stamp__big { font-family: var(--f-display); font-size: clamp(3.4rem, 2rem + 5vw, 7rem); line-height: .82; }
.stamp__big sup { font-size: .4em; vertical-align: top; }
.stamp__small { font-family: var(--f-type); font-size: clamp(.8rem, .75rem + .25vw, .98rem); letter-spacing: .12em; text-transform: uppercase; color: var(--text); max-width: 22ch; line-height: 1.35; }
.js:not(.no-anim) [data-stamp] { opacity: 0; }

/* Bande-annonce : plans successifs épinglés */
.trailer { position: relative; height: 100svh; min-height: 560px; overflow: hidden; background: #000; isolation: isolate; }
.trailer__shot { position: absolute; inset: 0; opacity: 0; }
.trailer__shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.25) brightness(.7); }
.trailer__shot::after { content: ''; position: absolute; inset: 0; background: radial-gradient(70% 70% at 50% 50%, transparent 30%, rgba(0, 0, 0, .85) 100%), linear-gradient(180deg, rgba(0, 0, 0, .6), transparent 25%, transparent 75%, rgba(0, 0, 0, .7)); }
.trailer__card { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; align-content: center; text-align: center; padding: 0 var(--gutter); pointer-events: none; }
.trailer__small { font-family: var(--f-type); font-size: clamp(.9rem, .8rem + .4vw, 1.2rem); letter-spacing: .3em; text-transform: uppercase; color: var(--accent); margin: 0 0 .8rem; }
.trailer__word { font-family: var(--f-display); text-transform: uppercase; font-size: clamp(4rem, 1.4rem + 11vw, 15rem); line-height: .82; margin: 0; color: #fff; text-shadow: 0 10px 60px rgba(0, 0, 0, .8); }
.trailer__word em { color: var(--accent); font-style: normal; }
.trailer__flash { position: absolute; inset: 0; z-index: 4; background: var(--accent); mix-blend-mode: multiply; opacity: 0; pointer-events: none; }
.trailer__bars::before, .trailer__bars::after { content: ''; position: absolute; left: 0; right: 0; height: 9vh; z-index: 5; background: #000; }
.trailer__bars::before { top: 0; } .trailer__bars::after { bottom: 0; }
.trailer__count { position: absolute; right: var(--gutter); bottom: calc(9vh + 18px); z-index: 6; font-family: var(--f-type); letter-spacing: .2em; color: var(--text-dim); font-size: .85rem; }
.no-anim .trailer { height: auto; }
.no-anim .trailer__shot { position: relative; opacity: 1; height: 70svh; }
.no-anim .trailer__flash, .no-anim .trailer__bars { display: none; }

/* Le cadenas du Professeur (énigme optionnelle) */
.lock-scene { position: relative; text-align: center; overflow: hidden; }
.lock { position: relative; width: min(340px, 78vw); margin: 0 auto; padding-top: 120px; }
.lock__shackle { position: absolute; left: 50%; top: 0; width: 62%; height: 170px; margin-left: -31%; border: 22px solid #b9b6b0; border-bottom: 0; border-radius: 120px 120px 0 0; background: none; box-shadow: inset 0 6px 10px rgba(255, 255, 255, .25), 0 6px 18px rgba(0, 0, 0, .7); transition: transform .9s var(--ease); z-index: 0; }
.lock.is-open .lock__shackle { transform: translateY(-56px) rotateY(180deg); transform-origin: 85% 100%; }
.lock__body { position: relative; z-index: 1; padding: 34px 26px 30px; border-radius: 26px; background: linear-gradient(160deg, #2b2a28, #121110 60%, #0a0a09); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .12), inset 0 -10px 30px rgba(0, 0, 0, .7), 0 40px 80px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .06); }
.lock__body::before { content: ''; position: absolute; left: 50%; top: 14px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: #333; box-shadow: 0 0 0 3px #1a1a1a; }
.lock.is-open .lock__body::before { background: var(--accent); box-shadow: 0 0 0 3px #1a1a1a, 0 0 18px var(--accent); }
.lock__wheels { display: flex; justify-content: center; gap: 12px; margin-top: 16px; }
.lock__wheel { display: grid; justify-items: center; gap: 6px; }
.lock__wheel button { width: 56px; height: 34px; display: grid; place-items: center; color: var(--text-dim); border-radius: 8px; transition: color .2s, background .2s; }
.lock__wheel button:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.lock__wheel button svg { width: 18px; height: 18px; }
.lock__digit { width: 64px; height: 84px; overflow: hidden; border-radius: 10px; background: linear-gradient(180deg, #050505, #1d1c1a 50%, #050505); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), inset 0 10px 20px rgba(0, 0, 0, .8), inset 0 -10px 20px rgba(0, 0, 0, .8); }
.lock__strip { display: grid; transition: transform .45s var(--ease); }
.lock__strip span { height: 84px; display: grid; place-items: center; font-family: var(--f-display); font-size: 3.6rem; color: #f3f1ee; line-height: 1; }
.lock.is-open .lock__strip span { color: var(--accent); text-shadow: 0 0 18px rgba(224, 27, 34, .8); }
.lock.is-wrong { animation: shake .45s; }
@keyframes shake { 20%, 60% { transform: translateX(-10px); } 40%, 80% { transform: translateX(10px); } }
.lock__hint { margin-top: 2rem; font-family: var(--f-type); color: var(--text-dim); letter-spacing: .08em; }
.lock__reward { max-width: 860px; margin: clamp(40px, 5vw, 70px) auto 0; }
.lock__reward[hidden] { display: none; }

/* Écran d'entrée : son ou pas son (première visite) */
.curtain__gate { display: none; gap: 14px; justify-items: center; margin-top: 10px; }
.curtain.is-gate { pointer-events: auto; }
.curtain.is-gate .curtain__gate { display: grid; }
.curtain__gate p { margin: 0 0 6px; font-family: var(--f-type); font-size: .9rem; letter-spacing: .16em; color: var(--text-dim); text-align: center; max-width: 30ch; }
.curtain__gate .btn { min-width: 260px; }
.curtain__gate button.link { font-family: var(--f-type); font-size: .85rem; letter-spacing: .16em; color: var(--text-dim); text-decoration: underline; text-underline-offset: 4px; padding: 6px; }
.curtain__gate button.link:hover { color: #fff; }

/* Chiffres gravés sur les clés du chrono */
.hud__key { position: relative; }
.hud__key b { position: absolute; right: -6px; bottom: -6px; font-family: var(--f-display); font-weight: 400; font-size: .9rem; line-height: 1; color: #fff; text-shadow: 0 0 6px var(--accent); }

/* Variante rouge de la lueur et des particules */
.torch { background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 50%), rgba(224, 27, 34, .06), transparent 62%); }
