/* =========================================================
   Ouverture commune des histoires « immersives » (V4.2.5)
   Texte en bas à gauche, image libre au-dessus, accroche en grand, bouton « Commencer ».
   Chargé APRÈS le CSS du thème : il remplace l'ancien bloc (titre énorme, crédit décalé, pas de bouton).
   ========================================================= */
.story-hero { min-height: 100svh; display: grid; align-items: end; overflow: hidden; background: var(--bg); }
.story-hero::before {
  filter: saturate(.82) contrast(1.05);
  background:
    linear-gradient(180deg, rgb(0 0 0 / .45), transparent 28%),
    linear-gradient(0deg, var(--bg) 3%, rgb(0 0 0 / .62) 36%, transparent 72%),
    var(--hero) center 28% / cover no-repeat;
}
.story-hero::after { background: radial-gradient(120% 90% at 50% 38%, transparent 40%, rgb(0 0 0 / .5) 100%); }
.story-hero > div {
  position: relative; z-index: 1; box-sizing: border-box;
  width: min(100%, 76rem); margin-inline: auto;
  padding: 7rem var(--gutter) clamp(2.4rem, 7vh, 4.4rem);
  display: flex; flex-direction: column; align-items: flex-start; gap: .8rem;
}
.story-hero .story-kicker { order: 1; margin: 0; color: var(--ink-muted); }
.story-hero h1 {
  order: 2; margin: 0; max-width: 14ch;
  font-size: clamp(2.8rem, 1.3rem + 6.2vw, 6.6rem); line-height: .95; text-wrap: balance;
  text-shadow: 0 2px 30px rgb(0 0 0 / .8);
}
.story-hero .hero-hook {
  order: 3; margin: .5rem 0 0; max-width: 26ch;
  font-size: clamp(1.25rem, 1rem + 1.5vw, 2.1rem); line-height: 1.25; text-shadow: 0 2px 22px rgb(0 0 0 / .85);
}
.story-hero .hero__start {
  order: 4; display: inline-block; margin-top: 1.1rem; padding: .8rem 1.35rem; border-radius: 2px;
  background: var(--accent); color: #000; text-decoration: none;
  font-family: var(--font-ui); font-size: .95rem; font-weight: 700; letter-spacing: .02em;
  transition: transform .25s var(--ease-out), box-shadow .25s;
}
.story-hero .hero__start:hover, .story-hero .hero__start:focus-visible {
  transform: translateY(-2px); box-shadow: 0 0 2.2rem color-mix(in srgb, var(--accent) 45%, transparent);
}
.story-hero > div > p:not([class]) {                /* « 5 pages, environ 4 minutes de lecture. » */
  order: 5; margin: .6rem 0 0; font-family: var(--font-ui); font-size: .8rem; letter-spacing: .06em; color: var(--ink-muted);
}
.story-hero .story-credit {                         /* était centré par la classe du pied de page */
  order: 6; margin: 0; max-width: 38rem; padding: 0; text-align: left;
  font-family: var(--font-ui); font-size: .78rem; line-height: 1.5; color: var(--ink-muted);
}
@media (max-width: 640px) {
  .story-hero > div { padding-top: 5.5rem; }
  .story-hero h1 { font-size: clamp(2.6rem, 14vw, 4.6rem); }
}

/* Phrase finale : apparaît lentement (posée par les scripts des histoires) */
.js-fx .sting { opacity: 0; transform: translateY(.3em); transition: opacity 3.2s ease, transform 3.2s ease; }
.js-fx .sting.is-seen { opacity: 1; transform: none; }
.sting { margin-top: 2.2em !important; font-style: italic; font-size: var(--step-1); line-height: 1.4; }

/* Les moments se posent derrière le texte, jamais dessus */
.nfx main.story, .nfx .toc, .nfx .story-end { position: relative; z-index: 3; }
.nfx .chapter { position: relative; }
