/* Socle de la landing (à charger après base.css). La scène est fixe en fond ; chaque texte est un panneau fixe
   que la scène fait apparaître à son étape.
   --bg et --ink suivent l'éclairage de la scène (vitrine.js). */
html { background: var(--bg); }
body { color: var(--ink); }
#scene { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; background: var(--bg); }
/* Une affiche par écran : la page ne défile pas, les gestes passent d'une affiche à l'autre (vitrine.js). */
html.paged, html.paged body { height: 100%; overflow: hidden; overscroll-behavior: none; }
html.paged body { touch-action: none; }

.top {
  position: fixed; inset: 0 0 auto; z-index: 3;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: max(20px, env(safe-area-inset-top)) var(--gutter) 20px;
}
.top a { text-decoration: none; }
/* Un voile du fond derrière l'en-tête : la nav reste lisible quand un symbole déborde en haut de l'affiche. */
.top::before { content: ""; position: absolute; inset: 0 0 -48px; z-index: -1; pointer-events: none; background: linear-gradient(color-mix(in oklab, var(--bg) 92%, transparent) 30%, transparent); }
.mark { font: 800 22px/1 var(--f-head); letter-spacing: var(--track-head); }
/* La nav est posée comme une mention d'affiche : du texte, sans pastille ni bouton. */
.nav { display: flex; align-items: baseline; gap: clamp(18px, 2.4vw, 34px); font: 500 15px/1 var(--f-body); }
.nav a { color: color-mix(in oklab, var(--ink) 62%, var(--bg)); padding: 6px 0; border-bottom: 1px solid transparent; transition: color .3s cubic-bezier(.16, 1, .3, 1), border-color .3s; }
.nav a:hover, .nav a.on { color: var(--ink); }
.nav a.on { border-color: currentColor; }
.nav .cta { color: var(--ink); }
.nav .cta::after { content: " →"; content: " →" / ""; }

.panel { position: fixed; z-index: 2; opacity: 0; will-change: opacity, transform; }
.panel[inert] { pointer-events: none; }
body:not(.ready) .panel[data-stage="0"] { opacity: 1; }   /* avant la scène, le premier texte est déjà là */

.lede { font-size: clamp(19px, 1.6vw, 24px); line-height: 1.42; letter-spacing: -.005em; margin: 0 0 18px; text-wrap: pretty; }
.muted { color: color-mix(in oklab, var(--ink) 64%, var(--bg)); }
.meta { font-size: 14px; color: color-mix(in oklab, var(--ink) 62%, var(--bg)); margin: 0 0 6px; }
.go { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 4px; }
.go::after { content: "→"; content: "→" / ""; transition: transform .25s cubic-bezier(.16, 1, .3, 1); }
.go:hover::after { transform: translateX(4px); }
.offers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin: 0 0 22px; }
.offers dt { font: 600 clamp(18px, 1.4vw, 21px)/1.2 var(--f-body); margin: 0 0 8px; }
.offers dd { margin: 0; color: color-mix(in oklab, var(--ink) 70%, var(--bg)); line-height: 1.5; }
.hint { position: fixed; z-index: 2; left: 50%; transform: translateX(-50%); bottom: max(26px, env(safe-area-inset-bottom)); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: color-mix(in oklab, var(--ink) 55%, var(--bg)); pointer-events: none; }
.hint::after { content: ""; display: block; width: 1px; height: 34px; margin: 10px auto 0; background: currentColor; transform-origin: top; animation: hint 2.2s cubic-bezier(.65, 0, .35, 1) infinite; }
@keyframes hint { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

@media (max-width: 760px) {
  .nav { gap: 14px; font-size: 13px; }
  .nav .opt { display: none; }
  .offers { grid-template-columns: 1fr; gap: 16px; }
  .hint { display: none; }   /* sur téléphone, on défile d'instinct ; l'indication gênerait le texte */
}
@media (prefers-reduced-motion: reduce) { .hint::after { animation: none; } }

/* Sans WebGL : pas de scène, les panneaux redeviennent une page qui se lit de haut en bas. */
.no-gl #scene, .no-gl .hint { display: none; }
.no-gl .panel { position: static; opacity: 1 !important; transform: none !important; inset: auto !important; width: auto !important; max-width: 40rem; margin: 0 auto; padding: 120px var(--gutter) 40px; }
/* Les noms sont dessinés par la scène ; dans le texte, ils restent pour les lecteurs d'écran et sans WebGL. */
.panel .name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.no-gl .panel .name { position: static; width: auto; height: auto; clip: auto; white-space: normal; font: 800 clamp(48px, 9vw, 96px)/1 var(--f-head); letter-spacing: -.04em; margin: 0 0 16px; }
