/* ==========================================================================
   Présence — Écran-Titre Intégral (Nocturne-Solaire · Bulles BD Crème · Tactile)
   Zéro bande beige d’article · Zéro icône SaaS · 100 % Diorama RPG Indé
   Mobile-first (320px -> 390px iPhone -> 768px -> 1440px) · WCAG AA strict
   ========================================================================== */

:root {
  --night-950: #090713;
  --night-900: #0D0B1A;
  --night-850: #141028;
  --night-800: #191530;
  --twilight-700: #292047;

  --ink-espresso: #2B1E18;
  --ink-espresso-soft: #4A362C;
  --cream: #FAF3DD;
  --cream-bright: #FFFBF0;
  --brass: #C9A46A;

  --gold-bright: #FFDE7D;
  --gold-400: #F4A261;
  --gold-button: #F0B446;
  --gold-shadow: #A86F1B;

  --teal-600: #1A7469;
  --teal-500: #2A9D8F;
  --teal-300: #72E4D6;

  --ink-light: #FAF3DD;
  --ink-light-muted: #D8DFEA;

  --danger-bg: #3D1924;
  --danger-border: #F28B82;
  --danger-text: #FFDAD6;

  --info-bg: #1B2740;
  --info-border: #F0B446;
  --info-text: #FAF3DD;

  --success-bg: #123632;
  --success-border: #72E4D6;
  --success-text: #E6FBF8;

  --font-display: "Fraunces", "Lora", Georgia, "Times New Roman", serif;
  --font-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 20px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--night-900);
}

section[id] {
  scroll-margin-top: 72px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.58;
  color: var(--ink-light);
  background:
    radial-gradient(circle at 20% 0%, rgba(244, 162, 97, 0.12), transparent 36%),
    radial-gradient(circle at 84% 38%, rgba(42, 157, 143, 0.12), transparent 40%),
    linear-gradient(180deg, var(--night-900) 0%, var(--night-800) 48%, var(--night-950) 100%);
  overflow-x: clip;
}

img,
picture,
svg,
canvas {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

.sprite-pixel {
  image-rendering: -moz-crisp-edges;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

:focus-visible {
  outline: 3px solid var(--gold-bright);
  outline-offset: 3px;
}

.bubble-cream :focus-visible {
  outline-color: var(--ink-espresso);
}

.skip-link {
  position: absolute;
  top: -120px;
  left: 1rem;
  z-index: 1000;
  padding: 0.72rem 1.1rem;
  background: var(--gold-button);
  color: var(--ink-espresso);
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--ink-espresso);
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 0.75rem;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: 1rem;
}

/* ==========================================================================
   HEADER ULTRA-ÉPURÉ FAÇON ÉCRAN-TITRE
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 11, 26, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1.5px solid rgba(255, 222, 125, 0.28);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  min-height: 58px;
  padding-block: 0.42rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  color: var(--ink-light);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 2px;
  border-radius: 999px;
  background: rgba(41, 32, 71, 0.88);
  border: 1px solid rgba(255, 222, 125, 0.40);
  flex-shrink: 0;
}

.lang-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  padding: 0.24rem 0.46rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--ink-light-muted);
  transition: background-color 0.16s ease, color 0.16s ease;
}

.lang-pill:hover {
  color: var(--ink-light);
}

.lang-pill.is-current {
  background: var(--gold-button);
  color: var(--ink-espresso);
}

.btn-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.44rem 0.82rem;
  border-radius: 10px;
  background: linear-gradient(180deg, #FBD175 0%, #F0B446 100%);
  border: 2px solid var(--ink-espresso);
  box-shadow: 0 3px 0 rgba(43, 30, 24, 0.75);
  color: var(--ink-espresso);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.btn-header-cta:hover {
  filter: brightness(1.06);
}

.btn-header-cta:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 rgba(43, 30, 24, 0.75);
}

/* ==========================================================================
   BOUTONS TACTILES MENU START & BULLES BD CRÈME DU JEU
   ========================================================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 54px;
  padding: 0.92rem 1.75rem;
  border: 2.5px solid var(--ink-espresso);
  border-radius: 14px;
  background: linear-gradient(180deg, #FFE08A 0%, #F0B446 48%, #DE922B 100%);
  color: var(--ink-espresso);
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  box-shadow:
    inset 0 2px 0 rgba(255, 252, 238, 0.75),
    inset 0 -2px 0 rgba(168, 111, 27, 0.48),
    0 5px 0 var(--ink-espresso),
    0 14px 32px rgba(0, 0, 0, 0.46);
  transition: transform 0.12s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.12s ease, filter 0.14s ease;
}

.btn-primary:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow:
    inset 0 2px 0 rgba(255, 252, 238, 0.82),
    inset 0 -2px 0 rgba(168, 111, 27, 0.48),
    0 6px 0 var(--ink-espresso),
    0 18px 36px rgba(0, 0, 0, 0.52);
}

.btn-primary:active {
  transform: translateY(3px) scale(0.99, 0.96);
  box-shadow:
    inset 0 1px 0 rgba(255, 252, 238, 0.55),
    0 2px 0 var(--ink-espresso),
    0 5px 12px rgba(0, 0, 0, 0.36);
}

.btn-primary:disabled {
  opacity: 0.72;
  cursor: wait;
  transform: none;
}

.btn-primary--full {
  width: 100%;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.58rem 1.05rem;
  border: 2px solid var(--gold-bright);
  border-radius: 11px;
  background: rgba(25, 21, 48, 0.92);
  color: var(--ink-light);
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.52);
  transition: transform 0.12s ease, background-color 0.15s ease;
}

.btn-secondary:hover {
  background: rgba(41, 32, 71, 0.98);
}

.btn-secondary:active {
  transform: translateY(2px);
}

/* Bulle / cartouche BD crème authentique du jeu */
.bubble-cream {
  border-radius: 14px;
  background: var(--cream);
  color: var(--ink-espresso);
  border: 2.5px solid var(--ink-espresso);
  box-shadow:
    inset 0 0 0 2px rgba(201, 164, 106, 0.42),
    0 5px 0 rgba(12, 8, 22, 0.65);
}

/* Plaque sombre dorée d’Écran-Titre */
.title-plaque {
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(41, 32, 71, 0.84) 0%, rgba(18, 14, 34, 0.90) 100%);
  border: 2px solid rgba(255, 222, 125, 0.74);
  box-shadow:
    inset 0 1px 0 rgba(255, 250, 232, 0.22),
    0 14px 36px rgba(0, 0, 0, 0.55);
}

/* Cadre diorama illustré façon Écran-Titre */
.diorama-frame {
  border-radius: 18px;
  overflow: hidden;
  border: 2.2px solid rgba(255, 222, 125, 0.62);
  background: var(--night-950);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.58);
}

.chapter-eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.scene-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 5.2vw, 2.85rem);
  font-weight: 700;
  line-height: 1.12;
  color: var(--cream-bright);
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.58);
}

.scene-band {
  position: relative;
  padding-block: 3.5rem;
  border-top: 1px solid rgba(255, 222, 125, 0.16);
}

/* ==========================================================================
   ÉCRAN 1 — ÉCRAN-TITRE PLEIN CADRE (min-height: 94svh)
   ========================================================================== */
.screen-title {
  position: relative;
  min-height: 94svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-block: 2rem 3rem;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-backdrop-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transition: opacity 0.65s ease;
}

.hero-backdrop-img--dawn {
  opacity: 0.78;
}

.hero-backdrop-img--night {
  opacity: 0;
}

.screen-title[data-hero-mood="twilight"] .hero-backdrop-img--dawn {
  opacity: 0;
}

.screen-title[data-hero-mood="twilight"] .hero-backdrop-img--night {
  opacity: 0.84;
}

.hero-backdrop-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 206, 120, 0.18), transparent 52%),
    linear-gradient(180deg, rgba(13, 11, 26, 0.56) 0%, rgba(16, 13, 34, 0.52) 44%, rgba(13, 11, 26, 0.94) 100%);
}

.screen-title[data-hero-mood="twilight"] .hero-backdrop-scrim {
  background:
    radial-gradient(circle at 75% 24%, rgba(154, 196, 255, 0.14), transparent 46%),
    linear-gradient(180deg, rgba(9, 8, 22, 0.60) 0%, rgba(13, 12, 32, 0.56) 46%, rgba(13, 11, 26, 0.96) 100%);
}

/* Particules dorées flottantes */
.hero-motes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.hero-mote {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 12px rgba(255, 222, 125, 0.9);
  opacity: 0.72;
  animation: moteDrift 8.5s ease-in-out infinite;
}

.hero-mote:nth-child(1) { top: 16%; left: 14%; animation-delay: 0s; }
.hero-mote:nth-child(2) { top: 28%; left: 78%; width: 4px; height: 4px; animation-delay: -2.1s; }
.hero-mote:nth-child(3) { top: 54%; left: 20%; width: 3.5px; height: 3.5px; animation-delay: -4.2s; }
.hero-mote:nth-child(4) { top: 38%; left: 88%; animation-delay: -1.4s; }
.hero-mote:nth-child(5) { top: 68%; left: 72%; width: 4px; height: 4px; animation-delay: -5.4s; }
.hero-mote:nth-child(6) { top: 22%; left: 48%; width: 3.5px; height: 3.5px; animation-delay: -3.3s; }

@keyframes moteDrift {
  0%, 100% { transform: translate(0, 0); opacity: 0.45; }
  50% { transform: translate(10px, -18px); opacity: 0.95; }
}

.hero-stage {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.1rem;
  max-width: 760px;
  margin-inline: auto;
}

.hero-mood-switch {
  display: inline-flex;
  padding: 2px;
  border-radius: 999px;
  background: rgba(13, 11, 26, 0.72);
  border: 1px solid rgba(255, 222, 125, 0.46);
}

.mood-chip {
  padding: 0.28rem 0.72rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-light-muted);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.mood-chip.is-active {
  background: var(--gold-button);
  color: var(--ink-espresso);
}

.title-emblem {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 1.85rem 0.9rem;
  max-width: 100%;
}

.title-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.65rem, 11vw, 4.75rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-bright);
  text-shadow: 0 4px 0 rgba(43, 30, 24, 0.85), 0 10px 28px rgba(0, 0, 0, 0.65);
}

.hero-hook {
  margin: 0.15rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.42rem, 5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.22;
  color: var(--gold-bright);
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.72);
}

.hero-epic {
  margin: 0;
  max-width: 50ch;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--cream-bright);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

.hero-cast-duo {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 1.25rem;
  margin-block: 0.2rem;
}

.hero-sprite-traveler {
  width: 104px;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.65));
}

.hero-sprite-nimbo {
  width: 78px;
  margin-bottom: 2.2rem;
  filter: drop-shadow(0 0 16px rgba(255, 222, 125, 0.72));
}

.hero-cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  max-width: 400px;
}

.hero-subline {
  margin: 0;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(13, 11, 26, 0.72);
  border: 1px solid rgba(255, 222, 125, 0.26);
  font-size: 0.84rem;
  color: var(--ink-light);
}

/* ==========================================================================
   ÉCRAN 2 — L’HISTOIRE : L’OMBRE DE L’USURPATEUR
   ========================================================================== */
.story-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 1.75rem;
}

.story-diorama-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 1.35rem;
}

.diorama-wide {
  aspect-ratio: 3 / 2;
}

.diorama-wide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.diorama-concept {
  aspect-ratio: 9 / 11;
}

.diorama-concept img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.story-bubble {
  padding: 1.2rem 1.35rem;
  margin: 0 auto 1.35rem;
  max-width: 780px;
  font-size: 1.05rem;
  line-height: 1.56;
  text-align: center;
}

.story-bubble p {
  margin: 0;
}

.cast-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.cast-pill {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 0.95rem;
  align-items: center;
  padding: 0.9rem 1.1rem;
}

.cast-medal {
  width: 82px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem;
  border-radius: 12px;
  background: radial-gradient(circle at 50% 42%, #314766 0%, #171530 100%);
  border: 2px solid var(--brass);
}

.cast-medal img {
  max-height: 76px;
  width: auto;
}

.cast-copy h3 {
  margin: 0 0 0.2rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--ink-espresso);
}

.cast-copy p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.45;
  color: var(--ink-espresso-soft);
}

.mystery-hook {
  margin: 0 auto;
  max-width: 680px;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.16rem, 3.5vw, 1.45rem);
  line-height: 1.4;
  color: var(--gold-bright);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.65);
}

/* ==========================================================================
   ÉCRAN 3 — COMMENT ON JOUE : SCÈNE 2.5D EN DIRECT + SOUFFLE YEUX FERMÉS
   ========================================================================== */
.gameplay-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}

.stage25d-shell {
  padding: 0.9rem;
}

.stage25d-viewport-wrap {
  position: relative;
  width: 100%;
  max-width: 390px;
  margin-inline: auto;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid rgba(255, 222, 125, 0.72);
  background: #15121F;
  aspect-ratio: 9 / 13.6;
}

.stage25d-canvas {
  width: 100%;
  height: 100%;
  cursor: pointer;
  touch-action: manipulation;
}

.stage25d-hud-top {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  right: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  pointer-events: none;
}

.stage25d-pill {
  padding: 0.24rem 0.56rem;
  border-radius: 999px;
  background: rgba(13, 11, 26, 0.86);
  border: 1px solid rgba(255, 222, 125, 0.56);
  color: var(--ink-light);
  font-size: 0.69rem;
  font-weight: 700;
  line-height: 1.25;
}

.stage25d-pill[data-stage25d-fps] {
  white-space: nowrap;
  flex-shrink: 0;
}

.stage25d-iframe-host {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: #15121F;
}

.stage25d-iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.stage25d-close-engine {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 12;
  padding: 0.34rem 0.7rem;
  border-radius: 999px;
  border: 1.5px solid var(--gold-bright);
  background: rgba(13, 11, 26, 0.94);
  color: var(--ink-light);
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
}

.stage25d-bar {
  margin-top: 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  text-align: center;
}

.stage25d-hint {
  margin: 0;
  font-size: 0.84rem;
  color: var(--ink-light-muted);
}

.view-switcher {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.26rem;
  border-radius: 999px;
  background: rgba(13, 11, 26, 0.78);
  border: 1.5px solid rgba(255, 222, 125, 0.38);
}

.switcher-btn {
  padding: 0.38rem 0.78rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-light-muted);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.switcher-btn:hover {
  color: var(--ink-light);
}

.switcher-btn.is-active {
  background: var(--gold-button);
  color: var(--ink-espresso);
}

.gameplay-right {
  display: grid;
  gap: 1.1rem;
}

.gameplay-bubbles {
  display: grid;
  gap: 0.85rem;
}

.rule-bubble {
  padding: 1rem 1.2rem;
}

.rule-bubble h3 {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.16rem;
  color: var(--ink-espresso);
}

.rule-bubble p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.48;
  color: var(--ink-espresso-soft);
}

/* ==========================================================================
   ÉCRAN 4 — LE MONDE 1 : SEPT JOURS JUSQU’AU BEFFROI
   ========================================================================== */
.mantra-plaque {
  margin: 0 auto 2rem;
  max-width: 760px;
  padding: 1.3rem 1.4rem;
  text-align: center;
}

.mantra-quote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.22;
  color: var(--gold-bright);
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.65);
}

.fountain-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  text-align: center;
}

.fountain-pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
  margin-bottom: 1.5rem;
}

.fountain-showcase[data-fountain-view="dry"] .fountain-card--alive,
.fountain-showcase[data-fountain-view="alive"] .fountain-card--dry {
  display: none;
}

.fountain-showcase[data-fountain-view="dry"] .fountain-pair,
.fountain-showcase[data-fountain-view="alive"] .fountain-pair {
  grid-template-columns: minmax(0, 420px);
  justify-content: center;
}

.art-plate {
  position: relative;
  margin: 0;
  aspect-ratio: 9 / 13.4;
}

.art-plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 52%;
}

.state-pill {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.3rem 0.72rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.42);
}

.state-pill--dry {
  background: rgba(13, 11, 26, 0.90);
  color: var(--gold-bright);
  border: 1.5px solid rgba(255, 222, 125, 0.60);
}

.state-pill--alive {
  background: var(--teal-600);
  color: var(--cream-bright);
  border: 1.5px solid rgba(250, 243, 221, 0.62);
}

.world1-bottom-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.35rem;
  align-items: center;
}

.map-plate {
  max-width: 390px;
  width: 100%;
  margin-inline: auto;
  aspect-ratio: 9 / 13.8;
}

.map-plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}

.world1-cta-col {
  display: grid;
  gap: 1.15rem;
}

.world1-summary {
  padding: 1.25rem 1.35rem;
}

.world1-summary h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--ink-espresso);
}

.world1-summary p {
  margin: 0 0 1.1rem;
  font-size: 0.98rem;
  color: var(--ink-espresso-soft);
}

/* ==========================================================================
   ÉCRAN 5 — INSCRIPTION (#inscription · CARTOUCHE PUR & MAGNÉTIQUE)
   ========================================================================== */
.signup-container {
  max-width: 600px;
}

.signup-card {
  padding: 1.85rem 1.35rem;
  text-align: center;
}

.signup-card .scene-title {
  margin-bottom: 0.65rem;
}

.signup-intro {
  margin: 0 auto 1.4rem;
  max-width: 46ch;
  color: var(--ink-light-muted);
}

.signup-form {
  display: grid;
  gap: 0.95rem;
  text-align: left;
}

.sr-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.form-field {
  display: grid;
  gap: 0.4rem;
}

.field-label {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink-light);
}

.field-input {
  width: 100%;
  min-height: 52px;
  padding: 0.78rem 1rem;
  border-radius: 12px;
  border: 2.5px solid var(--ink-espresso);
  background: var(--cream-bright);
  color: var(--ink-espresso);
  font-family: var(--font-body);
  font-size: 1rem;
  box-shadow: inset 0 2px 0 rgba(43, 30, 24, 0.08);
}

.field-input::placeholder {
  color: #61544D;
}

.field-input[aria-invalid="true"] {
  border-color: var(--danger-border);
  box-shadow: 0 0 0 3px rgba(242, 139, 130, 0.28);
}

.form-checkbox {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 0.65rem;
  align-items: start;
}

.checkbox-input {
  width: 18px;
  height: 18px;
  margin-top: 0.16rem;
  accent-color: var(--gold-button);
  cursor: pointer;
}

.checkbox-label {
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--ink-light-muted);
  cursor: pointer;
}

.form-feedback {
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  line-height: 1.48;
  font-weight: 500;
}

.form-feedback--error {
  background: var(--danger-bg);
  border: 1.5px solid var(--danger-border);
  color: var(--danger-text);
}

.form-feedback--unconfigured {
  background: var(--info-bg);
  border: 1.5px solid var(--info-border);
  color: var(--info-text);
}

.form-feedback--success {
  background: var(--success-bg);
  border: 1.5px solid var(--success-border);
  color: var(--success-text);
}

.privacy-note {
  margin: 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--ink-light-muted);
}

.privacy-note a {
  color: var(--gold-bright);
}

/* ==========================================================================
   ÉCRAN 6 — FAQ EXPRESS (5 QUESTIONS COMPACTES)
   ========================================================================== */
.faq-container {
  max-width: 740px;
}

.faq-list {
  display: grid;
  gap: 0.72rem;
}

.faq-item {
  overflow: hidden;
}

.faq-question {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.95rem 1.15rem;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--ink-espresso);
  cursor: pointer;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(43, 30, 24, 0.12);
  color: var(--ink-espresso);
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
}

.faq-item[open] .faq-question::after {
  content: "−";
  background: var(--ink-espresso);
  color: var(--cream-bright);
}

.faq-answer {
  padding: 0 1.15rem 1rem;
  border-top: 1px solid rgba(43, 30, 24, 0.14);
}

.faq-answer p {
  margin: 0.72rem 0 0;
  font-size: 0.95rem;
  color: var(--ink-espresso-soft);
}

/* ==========================================================================
   ÉCRAN 7 — DERNIER APPEL NOCTURNE & FOOTER SOBRE
   ========================================================================== */
.screen-closing {
  position: relative;
  overflow: hidden;
  padding-block: 4.5rem 4.75rem;
  text-align: center;
  border-top: 2px solid rgba(255, 222, 125, 0.34);
}

.closing-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.closing-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  opacity: 0.44;
}

.closing-bg-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 11, 26, 0.72) 0%, rgba(13, 11, 26, 0.68) 55%, rgba(9, 7, 19, 0.96) 100%);
}

.closing-inner {
  position: relative;
  z-index: 1;
  max-width: 660px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.15rem;
}

.closing-nimbo {
  width: 88px;
  filter: drop-shadow(0 0 18px rgba(255, 222, 125, 0.65));
}

.closing-quote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 5vw, 2.35rem);
  font-weight: 700;
  line-height: 1.24;
  color: var(--cream-bright);
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.72);
}

.site-footer {
  background: var(--night-950);
  color: var(--ink-light-muted);
  border-top: 1px solid rgba(255, 222, 125, 0.16);
  padding-block: 1.35rem 1.75rem;
}

.footer-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  text-align: center;
}

.footer-line {
  margin: 0;
  font-size: 0.84rem;
  color: var(--ink-light-muted);
}

.footer-line strong {
  color: var(--ink-light);
}

.footer-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.btn-motion {
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
  padding: 0.34rem 0.66rem;
  border-radius: 999px;
  border: 1px solid rgba(250, 243, 221, 0.30);
  background: rgba(25, 21, 48, 0.86);
  color: var(--ink-light);
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-motion[aria-pressed="true"] {
  background: var(--cream);
  color: var(--ink-espresso);
}

.btn-motion-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-button);
}

.btn-motion[aria-pressed="true"] .btn-motion-dot {
  background: var(--teal-600);
}

.footer-privacy {
  margin: 0;
  font-size: 0.82rem;
}

.footer-privacy a {
  color: var(--gold-bright);
}

/* ==========================================================================
   ANIMATIONS & RÉDUCTION DES ANIMATIONS
   ========================================================================== */
@keyframes nimboFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

.float-gentle {
  animation: nimboFloat 4.6s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

html[data-reduced-motion="true"] { scroll-behavior: auto; }
html[data-reduced-motion="true"] *,
html[data-reduced-motion="true"] *::before,
html[data-reduced-motion="true"] *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 360px) {
  .container { padding-inline: 0.72rem; }
  .header-inner { gap: 0.32rem; }
  .brand { font-size: 0.9rem; letter-spacing: 0.05em; gap: 0.32rem; }
  .brand svg { width: 20px; height: 20px; }
  .lang-pill { min-width: 24px; padding: 0.18rem 0.34rem; font-size: 0.68rem; }
  .btn-header-cta { padding: 0.34rem 0.52rem; font-size: 0.72rem; }
  .title-emblem { padding: 0.75rem 0.9rem; }
  .hero-title { font-size: 2.15rem; letter-spacing: 0.09em; }
  .cast-pill { grid-template-columns: 70px 1fr; gap: 0.75rem; }
  .cast-medal { width: 70px; height: 76px; }
}

@media (min-width: 640px) {
  .container { padding-inline: 1.5rem; }
  .cast-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fountain-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .signup-card { padding: 2.35rem 2.25rem; }
}

@media (min-width: 860px) {
  .scene-band { padding-block: 4.75rem; }

  .story-diorama-grid {
    grid-template-columns: minmax(0, 1.38fr) minmax(0, 0.62fr);
    align-items: stretch;
  }

  .diorama-concept {
    aspect-ratio: auto;
    height: 100%;
  }

  .gameplay-grid {
    grid-template-columns: minmax(0, 410px) minmax(0, 1fr);
    gap: 2rem;
    align-items: center;
  }

  .world1-bottom-grid {
    grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
    gap: 2rem;
  }

  .footer-row {
    flex-direction: row;
    text-align: left;
  }
}
