/* =========================================================
   Amélie & Sélim — v0, direction B « Le Film »
   La salle (sombre) : l'affiche, le film, le générique, la suite.
   Le livret (sable) : le programme, votre réponse.
   Une seule famille : Archivo, axe de largeur 62–125 %.
   ========================================================= */

:root {
  --night: #2C4562;
  --night-bar: #1E2F44;
  --deep: #3D5A78;
  --sand: #F7EBD0;
  --sand-dim: #D7CBB0;
  --paper: #FFF9EC;
  --coral: #F38E40;
  --coral-ink: #B8411A;
  --lagoon: #8BB5D1;
  --lagoon-ink: #3D5A78;
  --yellow: #F2D28B;
  --ink: #1E2A3A;
  --ink-2: #4A5462;
  --amber: #F2D28B;
  --amber-ink: #A0521A;

  --line-dark: rgba(247, 235, 208, .18);
  --line-dark-strong: rgba(247, 235, 208, .36);
  --line-light: rgba(29, 27, 25, .14);
  --line-light-strong: rgba(29, 27, 25, .42);

  /* Illustrations : étalonnage coucher de soleil, sarcelle et orangé */
  --sc-sky1: #3D5A78;
  --sc-sky2: #F38E40;
  --sc-sun: #F2D28B;
  --sc-far: #8BB5D1;
  --sc-mid: #5E7C9A;
  --sc-near: #2C4562;
  --sc-sea: #8BB5D1;
  --sc-sea2: #3D5A78;
  --sc-sand: #EFCB86;
  --sc-ink: #1E2F44;

  --font: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --fs-body: 1.0625rem;
  --fs-small: .9375rem;
  --fs-lead: clamp(1.1875rem, 1.05rem + .55vw, 1.4rem);
  --fs-h3: clamp(1.25rem, 1.12rem + .5vw, 1.5rem);
  --fs-h2: clamp(2.125rem, 1.35rem + 3.6vw, 4rem);

  --topbar: 56px;
  --radius: 8px;
  --gutter: 16px;
}

/* Contextes : la salle et le livret */
.salle {
  --fg: var(--sand); --fg-2: var(--sand-dim);
  --line: var(--line-dark); --line-strong: var(--line-dark-strong);
  --link: var(--lagoon); --focus: var(--coral); --ico-on: var(--night);
  --st-conf: var(--amber); --st-env: var(--sand-dim); --st-ok: var(--lagoon);
}
.livret {
  --fg: var(--ink); --fg-2: var(--ink-2);
  --line: var(--line-light); --line-strong: var(--line-light-strong);
  --link: var(--lagoon-ink); --focus: var(--ink); --ico-on: var(--paper);
  --st-conf: var(--amber-ink); --st-env: var(--ink-2); --st-ok: var(--lagoon-ink);
}

/* Couleurs des illustrations (scenes.js), en classes : aucune dépendance aux styles inline */
.scf-sky1 { fill: var(--sc-sky1); } .scf-sky2 { fill: var(--sc-sky2); } .scf-sun { fill: var(--sc-sun); }
.scf-far { fill: var(--sc-far); } .scf-mid { fill: var(--sc-mid); } .scf-near { fill: var(--sc-near); }
.scf-sea { fill: var(--sc-sea); } .scf-sea2 { fill: var(--sc-sea2); } .scf-sand { fill: var(--sc-sand); } .scf-ink { fill: var(--sc-ink); }
.scs-far { stroke: var(--sc-far); } .scs-ink { stroke: var(--sc-ink); } .scs-mid { stroke: var(--sc-mid); }
.scg-sky1 { stop-color: var(--sc-sky1); } .scg-sky2 { stop-color: var(--sc-sky2); }
.scg-sea { stop-color: var(--sc-sea); } .scg-sea2 { stop-color: var(--sc-sea2); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar) + 12px);
  background: var(--night);
}
body {
  margin: 0; background: var(--night); color: var(--sand);
  font-family: var(--font); font-size: var(--fs-body); font-stretch: 100%; line-height: 1.55;
  overflow-x: clip; -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; font-stretch: 125%; line-height: 1.04; letter-spacing: -.012em; text-wrap: balance; }
h3 { font-size: var(--fs-h3); font-stretch: 115%; font-weight: 750; line-height: 1.15; }
h4 { font-size: 1.0625rem; font-stretch: 110%; font-weight: 700; line-height: 1.25; }
a { color: var(--link, var(--lagoon)); text-underline-offset: .18em; text-decoration-thickness: 1.5px; }
a:hover { text-decoration-thickness: 2.5px; }
button { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
:focus-visible { outline: 3px solid var(--focus, var(--coral)); outline-offset: 3px; border-radius: 2px; }
[tabindex="-1"]:focus { outline: none; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--coral); color: var(--ink); padding: 10px 16px; border-radius: var(--radius);
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 8px; }
.noscript, .load-error {
  margin: calc(var(--topbar) + 12px) var(--gutter) 0; padding: 14px 16px; border-radius: var(--radius);
  background: rgba(242, 210, 139, .14); box-shadow: inset 3px 0 0 var(--amber); color: var(--sand);
}

.wrap { width: min(100% - 2 * var(--gutter), 1180px); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2 * var(--gutter), 46rem); }
.wrap--film { width: min(100% - 2 * var(--gutter), 980px); }

.salle { background: var(--night); color: var(--sand); }
.sec { padding-block: clamp(64px, 6vw + 40px, 120px); }
.sec-head { max-width: 44rem; margin-bottom: clamp(24px, 4vw, 44px); }
.sec-head h2 { font-size: var(--fs-h2); }
.sec-head__lead { margin-top: 14px; font-size: var(--fs-lead); line-height: 1.45; color: var(--fg-2); }

.ico-on { stroke: var(--ico-on, #fff); }
.ico { width: 1.15em; height: 1.15em; max-width: none; flex: none; display: inline-block; vertical-align: -.2em; }
[data-icon] { display: inline-flex; flex: none; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 12px 22px; border: 0; border-radius: 6px;
  font-weight: 700; font-stretch: 110%; font-size: 1rem; line-height: 1.2;
  text-decoration: none; text-align: center; cursor: pointer;
}
.btn--primary { background: var(--coral); color: var(--ink); }
.btn--primary:hover { background: #F59E58; }
.livret .btn--primary { box-shadow: inset 0 0 0 2px var(--ink); }
.btn--ghost { background: transparent; color: var(--fg, var(--sand)); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn--ghost:hover { box-shadow: inset 0 0 0 2px currentColor; }
.btn--big { min-height: 56px; padding: 14px 28px; font-size: 1.0625rem; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Letterbox ---------- */
.lb { position: relative; overflow: hidden; }
.lb::before, .lb::after {
  content: ""; position: absolute; left: 0; right: 0; height: var(--lb, 7%);
  background: var(--night-bar); z-index: 1; pointer-events: none;
}
.lb::before { top: 0; }
.lb::after { bottom: 0; }
.scene { display: block; width: 100%; height: 100%; }

/* ---------- Statuts : icône + libellé ---------- */
.st {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px 3px 6px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px currentColor;
  font-size: var(--fs-small); font-weight: 650; line-height: 1.25; white-space: nowrap;
}
.st--a-confirmer { color: var(--st-conf); }
.st--envisage { color: var(--st-env); }
.st--confirme { color: var(--st-ok); }

/* =========================================================
   Barre du haut : le menu du DVD
   ========================================================= */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--topbar);
  background: rgba(44, 69, 98, .88);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-dark); color: var(--sand);
  --focus: var(--coral);
}
.topbar__in {
  height: 100%; width: min(100% - 2 * var(--gutter), 1180px); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand {
  color: var(--sand); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center;
  font-stretch: 62%; font-weight: 750; font-size: 1.25rem; text-transform: uppercase; letter-spacing: .01em;
}
.menu-btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; min-width: 44px;
  padding: 0 12px; margin-right: -12px; background: none; border: 0; cursor: pointer;
  font-weight: 700; font-stretch: 110%;
}
.menu-btn__ico { display: grid; gap: 5px; width: 18px; }
.menu-btn__ico i { display: block; height: 2px; background: currentColor; border-radius: 1px; transition: transform .2s; }
.topbar[data-open="true"] .menu-btn__ico i:first-child { transform: translateY(3.5px) rotate(45deg); }
.topbar[data-open="true"] .menu-btn__ico i:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.menu {
  display: none; position: fixed; top: var(--topbar); left: 0; right: 0;
  max-height: calc(100dvh - var(--topbar)); overflow: auto;
  background: var(--night); border-bottom: 1px solid var(--line-dark);
  padding: 12px var(--gutter) 28px; box-shadow: 0 24px 48px rgba(0, 0, 0, .4);
}
.topbar[data-open="true"] .menu { display: block; }
.menu a {
  position: relative; display: flex; align-items: center; min-height: 56px; padding: 6px 0 6px 26px;
  color: var(--sand); text-decoration: none; font-size: 1.5rem; font-weight: 750; font-stretch: 118%;
  border-bottom: 1px solid var(--line-dark);
}
/* Le curseur du menu DVD */
.menu a::before {
  content: ""; position: absolute; left: 2px; top: 50%; translate: 0 -50%;
  border-left: 11px solid var(--coral); border-block: 7px solid transparent; opacity: 0;
}
.menu a:hover::before { opacity: .5; }
.menu a[aria-current]::before, .menu a:focus-visible::before { opacity: 1; }
.menu a[aria-current] { color: var(--coral); }
@media (min-width: 900px) {
  .menu-btn { display: none; }
  .menu { display: block; position: static; max-height: none; overflow: visible; background: none; border: 0; padding: 0; box-shadow: none; }
  .menu ul { display: flex; gap: 4px; }
  .menu a { min-height: 44px; padding: 0 12px 0 24px; border: 0; font-size: 1rem; font-stretch: 108%; font-weight: 650; }
  .menu a::before { left: 8px; border-left-width: 8px; border-block-width: 5px; }
}

/* =========================================================
   1. L'affiche
   ========================================================= */
.opening { padding-top: var(--topbar); }
.poster { position: relative; isolation: isolate; overflow: hidden; min-height: calc(92svh - var(--topbar)); display: flex; }
.poster__art { position: absolute; inset: 0; z-index: -2; }
.poster::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to bottom, rgba(44, 69, 98, .6) 0%, rgba(44, 69, 98, .12) 26%, rgba(44, 69, 98, 0) 36%),
    linear-gradient(to top, var(--night) 0%, rgba(44, 69, 98, .9) 24%, rgba(44, 69, 98, .78) 37%, rgba(44, 69, 98, 0) 48%);
}
.poster__in {
  width: min(100% - 2 * var(--gutter), 1180px); margin-inline: auto;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  padding: 22px 0 28px; text-align: center;
}
.poster__top { display: grid; justify-items: center; gap: 16px; }
.poster__private {
  display: inline-block; margin: 0; padding: 7px 14px; border: 1.5px solid var(--sand); border-radius: 3px;
  font-stretch: 75%; font-weight: 600; font-size: 1rem; line-height: 1.2; background: rgba(44, 69, 98, .5);
}
.poster__private strong { font-weight: 800; }
.poster__tagline {
  margin: 0 auto; max-width: 22ch; min-height: 2.6em;
  font-size: clamp(1.1875rem, 1rem + 1.1vw, 1.75rem); font-weight: 600; line-height: 1.3;
  text-shadow: 0 1px 12px rgba(30, 47, 68, .5);
}
.poster__title { font-weight: 800; font-stretch: 125%; text-transform: uppercase; line-height: .92; letter-spacing: -.02em; }
.poster__title .t1 { display: block; font-size: clamp(2.75rem, 13.2vw, 7.25rem); }
.poster__title .t2 { display: block; margin-top: .45em; font-size: clamp(1.25rem, 5.4vw, 2.75rem); font-weight: 700; letter-spacing: .01em; }
.poster__caption { position: absolute; right: 12px; bottom: 8px; margin: 0; font-size: .8125rem; font-stretch: 85%; color: var(--sand-dim); opacity: .8; }

/* Le billing block : crédits serrés, très condensés */
.billing {
  margin: 26px auto 0; max-width: 34rem;
  font-stretch: 62%; font-weight: 600; text-transform: uppercase;
  font-size: clamp(1.3rem, 5.4vw, 2rem); line-height: 1.04; letter-spacing: .005em;
  color: var(--sand); text-align: center; text-wrap: balance;
}
.billing__v { display: block; }
.billing__r {
  display: inline-flex; flex-direction: column; vertical-align: middle;
  margin: 0 .16em 0 .3em; font-size: .46em; line-height: 1.02; font-weight: 600; letter-spacing: .02em;
}
.billing__n { font-weight: 750; white-space: nowrap; }
.billing__tail { display: block; margin-top: .55em; font-size: .52em; letter-spacing: .06em; font-weight: 600; }

.prologue { padding: 40px 0 clamp(56px, 8vw, 96px); max-width: 40rem; }
.pretext { margin: 0 0 24px; }
.pretext blockquote { margin: 0; }
.pretext blockquote p { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.125rem); font-weight: 550; line-height: 1.25; text-wrap: pretty; }
.pretext blockquote p:not(:empty)::before { content: "« "; }
.pretext blockquote p:not(:empty)::after { content: " »"; }
.pretext figcaption { margin-top: 10px; color: var(--sand-dim); font-stretch: 85%; font-weight: 600; }
.prologue__intro { color: var(--sand-dim); font-size: var(--fs-lead); line-height: 1.5; }
.prologue__note { padding: 12px 14px; border-radius: var(--radius); background: rgba(242, 210, 139, .12); box-shadow: inset 3px 0 0 var(--amber); }
.prologue__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* =========================================================
   2. Le film
   ========================================================= */
.film { border-top: 1px solid var(--line-dark); }
.player { position: relative; display: grid; border-radius: 10px; overflow: hidden; background: var(--night-bar); box-shadow: 0 0 0 1px var(--line-dark), 0 30px 80px rgba(0, 0, 0, .35); }
.player__screen { grid-area: 1 / 1; aspect-ratio: 16 / 9; --lb: 6%; }
.player__poster { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Sur mobile, le bouton passe sous l'image : le film reste visible */
.player__ui {
  grid-area: 2 / 1; position: relative; z-index: 2;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px;
  padding: 16px; text-align: center;
}
@media (min-width: 640px) {
  .player__ui {
    grid-area: 1 / 1; align-content: flex-end; padding: 22px 18px calc(6% + 22px);
    background: linear-gradient(to top, rgba(30, 47, 68, .75), rgba(30, 47, 68, 0) 55%);
  }
  .player__ui:has(.player__box) { align-content: center; background: rgba(30, 47, 68, .45); }
}
.player__ui:focus { outline: none; }
.player.is-playing .player__ui { display: none; }
.player__play {
  display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 22px 8px 10px;
  border-radius: 999px; border: 0; cursor: pointer;
  background: var(--coral); color: var(--ink); font-weight: 750; font-stretch: 110%; font-size: 1.0625rem;
  box-shadow: 0 8px 30px rgba(30, 47, 68, .45);
}
.player__play:hover { background: #F59E58; }
.player__play-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--coral); }
.player__play-ico svg { width: 20px; height: 20px; margin-left: 3px; }
.player__meta { margin: 0; font-size: var(--fs-small); font-weight: 600; color: var(--sand); text-shadow: 0 1px 6px rgba(0, 0, 0, .8); }
.player__box { max-width: 30rem; padding: 18px; border-radius: var(--radius); background: rgba(44, 69, 98, .95); box-shadow: 0 0 0 1px var(--line-dark); }
.player__box:focus { outline: none; }
.player__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; }
.player__iframe, .player__video { grid-area: 1 / 1; display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; background: #000; }

.note {
  display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; padding: 14px 16px; border-radius: var(--radius);
  background: rgba(61, 90, 120, .55); box-shadow: inset 0 0 0 1px var(--line-dark);
}
.note__ico { color: var(--lagoon); margin-top: 2px; }

/* =========================================================
   3. Générique et scène post-générique
   ========================================================= */
.credits { padding-top: clamp(88px, 14vh, 160px); text-align: center; }
.credits__in { display: grid; justify-items: center; }
.credits__title { font-size: clamp(1.25rem, 1rem + 1vw, 1.625rem); margin-bottom: clamp(48px, 9vh, 96px); }
.credits__list { display: grid; gap: clamp(36px, 6vh, 60px); width: 100%; max-width: 44rem; }
.credits__list > div { display: grid; gap: 6px; }
.credits__list dt { color: var(--sand-dim); font-stretch: 80%; font-weight: 500; font-size: 1.0625rem; }
.credits__list dd { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem); font-weight: 700; font-stretch: 112%; line-height: 1.2; }
.credits__aside { display: block; font-size: 1rem; font-weight: 500; font-stretch: 85%; color: var(--sand-dim); margin-top: 4px; }
.credits__stay {
  margin: clamp(80px, 16vh, 160px) 0 clamp(28px, 5vh, 48px);
  font-size: clamp(1.375rem, 1.1rem + 1.2vw, 2rem); font-weight: 700; font-stretch: 112%;
}
@media (min-width: 720px) {
  .credits__list > div { grid-template-columns: 1fr 1fr; gap: 28px; align-items: baseline; }
  .credits__list dt { text-align: right; }
  .credits__list dd { text-align: left; }
}

/* La dernière image du film, sous-titrée : le seul moment animé de la page */
.postcredit { position: relative; margin: 0; isolation: isolate; }
.postcredit__frame { aspect-ratio: 4 / 5; max-height: 84svh; width: 100%; --lb: 9%; }
.postcredit__shade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: var(--night-bar); opacity: .78; transition: opacity 2.6s ease;
}
.postcredit.is-vu .postcredit__shade { opacity: .22; }
.postcredit__sub {
  position: absolute; left: 0; right: 0; bottom: calc(9% + 4%); z-index: 2;
  margin: 0 auto; padding: 0 20px; max-width: 30ch; text-align: center;
  color: var(--yellow); font-weight: 600; font-stretch: 100%;
  font-size: clamp(1.375rem, 1rem + 2.2vw, 2.375rem); line-height: 1.28;
  text-shadow: 0 0 1px #000, 0 1px 0 #000, 1px 0 0 #000, 0 -1px 0 #000, -1px 0 0 #000, 0 2px 6px rgba(0, 0, 0, .9), 0 0 18px rgba(0, 0, 0, .6);
  opacity: 0; transition: opacity 1s ease .9s;
}
.postcredit.is-vu .postcredit__sub { opacity: 1; }
@media (min-width: 760px) {
  .postcredit__frame { aspect-ratio: 21 / 9; --lb: 8%; }
}

/* =========================================================
   4. La suite
   ========================================================= */
.suite { background: linear-gradient(to bottom, var(--night) 0, var(--deep) 420px, var(--deep) 100%); padding-bottom: clamp(64px, 6vw + 40px, 120px); }
.sequel { display: grid; justify-items: center; text-align: center; padding: clamp(64px, 10vh, 120px) 0 clamp(48px, 8vh, 88px); }
.sequel__soon { margin: 0 0 10px; font-stretch: 75%; font-weight: 600; font-size: 1.0625rem; color: var(--sand-dim); }
.sequel__title { font-size: clamp(3.5rem, 2rem + 9vw, 8.5rem); text-transform: uppercase; line-height: .9; letter-spacing: -.02em; }
.sequel__title:focus { outline: none; }
.sequel__when { margin: 14px 0 0; font-size: clamp(1.375rem, 1.1rem + 1.6vw, 2.25rem); font-weight: 700; font-stretch: 118%; }
.sequel__status { margin: 12px 0 0; }
.sequel__status .st { color: var(--amber); }
.sequel__billing { margin-top: 30px; font-size: clamp(1.5rem, 6.2vw, 2.25rem); }
.sequel .btn { margin-top: 30px; }

.suite__status {
  display: flex; gap: 10px; align-items: flex-start; max-width: 44rem; margin: 0 0 28px; padding: 14px 16px; border-radius: var(--radius);
  background: rgba(44, 69, 98, .55); box-shadow: inset 3px 0 0 var(--amber); font-weight: 600; font-size: 1.0625rem;
}
.suite__status .ico { color: var(--amber); margin-top: 2px; }
.facts { display: grid; gap: 12px; }
.fact { display: grid; gap: 8px; align-content: start; padding: 18px; border-radius: 10px; background: rgba(44, 69, 98, .5); box-shadow: inset 0 0 0 1px var(--line-dark); }
.fact dt { color: var(--sand-dim); font-weight: 600; font-stretch: 90%; }
.fact dd { display: grid; gap: 10px; justify-items: start; }
.fact__v { font-size: 1.3125rem; font-weight: 700; font-stretch: 105%; line-height: 1.3; }
.fact__note { color: var(--sand-dim); font-size: var(--fs-small); }
.suite__cols { display: grid; gap: 28px; margin-top: 44px; }
.vision h3, .season h3 { margin-bottom: 14px; }
.vision ul { display: grid; gap: 10px; }
.vision li { position: relative; padding-left: 22px; }
.vision li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }
.season { padding: 20px; border-radius: 10px; background: rgba(44, 69, 98, .5); box-shadow: inset 0 0 0 1px var(--line-dark); }
.season__caveat { display: flex; gap: 8px; align-items: flex-start; color: var(--sand-dim); font-size: var(--fs-small); }
.season__caveat .ico { margin-top: 2px; }
@media (min-width: 640px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .suite__cols { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; } }

/* =========================================================
   Le livret
   ========================================================= */
.livret { background: var(--sand); color: var(--ink); }
.livret__cover {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px;
  padding: 18px 0 14px; border-bottom: 2px solid var(--ink);
}
.livret__name { margin: 0; font-size: 1.125rem; font-weight: 800; font-stretch: 125%; }
.livret__toc { display: flex; flex-wrap: wrap; gap: 0 18px; }
.livret__toc a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-weight: 600; font-stretch: 95%; }
.livret .page + .page { border-top: 1px solid var(--line-light); }
@media (min-width: 1000px) {
  .livret { margin-inline: 24px; border-radius: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
}

/* 5. Le programme */
.days { display: grid; gap: 16px; }
.day { padding: 22px 20px; border-radius: 12px; background: var(--paper); box-shadow: 0 0 0 1px var(--line-light); }
.day h3 { display: grid; gap: 4px; font-size: 1.5rem; }
.day__n { font-size: 2.5rem; font-stretch: 125%; font-weight: 800; line-height: 1; color: var(--coral-ink); }
.day__items { display: grid; margin-top: 16px; border-top: 1px solid var(--line-light); }
.day__items li { display: grid; gap: 6px; justify-items: start; padding: 14px 0; border-bottom: 1px solid var(--line-light); }
.day__items li:last-child { border-bottom: 0; padding-bottom: 0; }
.day__when { margin: 0; font-weight: 700; font-stretch: 90%; }
.day__what { margin: 0; }
@media (min-width: 980px) { .days { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* =========================================================
   6. Votre réponse
   ========================================================= */
.rsvp-status:empty { display: none; }
.rsvp-status {
  display: flex; gap: 12px; align-items: flex-start; margin-bottom: 20px; padding: 16px 18px; border-radius: 10px;
  background: rgba(61, 90, 120, .12); box-shadow: inset 4px 0 0 var(--lagoon-ink); font-size: 1.0625rem;
}
.rsvp-status p { margin: 0; }
.rsvp-status strong { font-stretch: 112%; }
.rsvp-status .ico { color: var(--lagoon-ink); margin-top: 2px; --ico-on: var(--sand); }
.rsvp-status--info { background: rgba(138, 90, 18, .09); box-shadow: inset 4px 0 0 var(--amber-ink); }
.rsvp-status--info .ico { color: var(--amber-ink); }
.rsvp-hello { font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem); font-stretch: 120%; margin-bottom: 16px; }
.rsvp-intro { margin-bottom: 28px; }
.rsvp-intro p { color: var(--ink-2); }
.rsvp-intro .lead { font-size: var(--fs-lead); font-weight: 600; line-height: 1.4; color: var(--ink); }
.rsvp-wait { display: flex; align-items: center; gap: 12px; color: var(--ink-2); }
.reel { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--line-light-strong); border-top-color: var(--coral-ink); animation: reel 1s linear infinite; }
@keyframes reel { to { transform: rotate(1turn); } }

.rsvp-form { display: grid; gap: 22px; }
.person, .dates-card {
  margin: 0; padding: 18px 16px 16px; border: 0; border-radius: 12px; min-width: 0;
  background: var(--paper); box-shadow: 0 0 0 1px var(--line-light);
}
.person__legend { float: left; width: 100%; padding: 0; margin-bottom: 12px; display: flex; align-items: baseline; gap: 10px; }
.person__legend + * { clear: both; }
.person__name { font-size: 1.5rem; font-weight: 800; font-stretch: 118%; }
.person__tag { font-size: var(--fs-small); color: var(--ink-2); font-weight: 600; padding: 0 8px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-strong); }
.opts { display: grid; gap: 8px; }
.opt {
  position: relative; display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 12px 14px; border-radius: 10px;
  background: var(--sand); box-shadow: inset 0 0 0 1.5px var(--line-light); cursor: pointer; line-height: 1.3;
}
.opt:hover { box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.opt input[type="radio"], .check input[type="checkbox"] {
  -webkit-appearance: none; appearance: none; flex: none; margin: 0; width: 24px; height: 24px;
  display: grid; place-content: center; background: var(--paper); border: 2px solid var(--ink); cursor: pointer;
}
.opt input[type="radio"] { border-radius: 50%; }
.opt input[type="radio"]::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); transform: scale(0); transition: transform .12s ease; }
.opt input[type="radio"]:checked::before { transform: scale(1); }
.opt:has(input:checked) { background: var(--paper); box-shadow: inset 0 0 0 2.5px var(--ink); }
.opt:has(input:checked) .opt__label { font-weight: 700; }
.opt input:focus-visible, .check input:focus-visible { outline: 3px solid var(--coral-ink); outline-offset: 3px; }

/* La question des dates : mise en avant, c'est elle qui tranche la semaine */
.dates-card { box-shadow: inset 0 0 0 2px var(--coral-ink); background: var(--paper); }
.dates-card .field-legend { float: left; width: 100%; margin-bottom: 4px; font-size: 1.375rem; font-weight: 800; font-stretch: 115%; line-height: 1.2; }
.dates-card .field-legend + * { clear: both; }
.dates-card__hint { margin: 0 0 14px; color: var(--ink-2); }
.dates-card .opts { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .dates-card .opts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.field-group { margin: 0; padding: 0; border: 0; min-width: 0; }
.field-group legend, .field-label { padding: 0; margin-bottom: 12px; font-weight: 750; font-stretch: 108%; font-size: 1.125rem; display: block; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.check {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 16px 10px 12px; border-radius: 10px;
  background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line-light); cursor: pointer;
}
.check input[type="checkbox"] { border-radius: 5px; width: 22px; height: 22px; }
.check input[type="checkbox"]::before {
  content: ""; width: 11px; height: 6px; margin-top: -3px;
  border-left: 2.5px solid var(--paper); border-bottom: 2.5px solid var(--paper);
  transform: rotate(-45deg) scale(0); transition: transform .12s ease;
}
.check input[type="checkbox"]:checked { background: var(--ink); }
.check input[type="checkbox"]:checked::before { transform: rotate(-45deg) scale(1); }
.check:has(input:checked) { box-shadow: inset 0 0 0 2.5px var(--ink); }

.textarea {
  display: block; width: 100%; min-height: 104px; padding: 12px 14px; resize: vertical; border: 0; border-radius: 10px;
  background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-strong);
  font: inherit; font-size: 1.0625rem; line-height: 1.45;
}
.textarea:focus-visible { outline: 3px solid var(--coral-ink); outline-offset: 2px; }
.field-count { margin: 6px 0 0; color: var(--ink-2); font-size: var(--fs-small); text-align: right; }

.fold-extras { border-radius: 12px; box-shadow: 0 0 0 1px var(--line-light); background: var(--paper); }
.fold-extras > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 12px 16px;
  cursor: pointer; list-style: none; font-weight: 750; font-stretch: 108%;
}
.fold-extras > summary::-webkit-details-marker { display: none; }
.fold-extras > summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px;
  border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor;
  transform: translateY(-3px) rotate(45deg); transition: transform .15s;
}
.fold-extras[open] > summary::after { transform: translateY(3px) rotate(225deg); }
.fold-extras__in { display: grid; gap: 22px; padding: 4px 16px 20px; }
.fold-extras .field-group legend { font-size: 1.0625rem; font-weight: 650; font-stretch: 100%; }
.extra-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.extra-opts .opt { min-height: 48px; padding: 10px 14px 10px 12px; }
.extra-opts .opt input[type="radio"] { width: 22px; height: 22px; }

.rsvp-actions { display: grid; gap: 12px; justify-items: start; }
.rsvp-actions__row { display: flex; flex-wrap: wrap; gap: 12px; }
.form-error:empty { display: none; }
.form-error {
  display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 12px 14px; border-radius: var(--radius);
  background: rgba(166, 63, 36, .1); box-shadow: inset 3px 0 0 var(--coral-ink); color: var(--ink); font-weight: 600;
}
.form-error .ico { color: var(--coral-ink); margin-top: 2px; }

.summary { padding: 22px 18px; border-radius: 12px; background: var(--paper); box-shadow: 0 0 0 1px var(--line-light); }
.summary h3 { font-size: 1.25rem; margin-bottom: 14px; }
.sum__people { display: grid; border-top: 1px solid var(--line-light); }
.sum__people li { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--line-light); }
.sum__name { font-weight: 800; font-stretch: 115%; font-size: 1.1875rem; }
.sum__ans--none { color: var(--ink-2); }
.sum__more { display: grid; gap: 14px; margin-top: 18px; }
.sum__more dt { font-weight: 650; color: var(--ink-2); font-size: var(--fs-small); }
.sum__more dd { margin-top: 2px; }
.sum__week dd { font-weight: 700; }
.sum__date { margin-top: 18px; color: var(--ink-2); font-size: var(--fs-small); }
.summary .btn { margin-top: 8px; }

.rsvp-msg { display: flex; gap: 14px; align-items: flex-start; padding: 22px 20px; border-radius: 12px; background: var(--paper); box-shadow: 0 0 0 1px var(--line-light); }
.rsvp-msg p { margin: 0; font-size: 1.0625rem; }
.rsvp-msg > .ico { width: 26px; height: 26px; color: var(--ink-2); margin-top: 1px; }
.rsvp-msg--warn > .ico { color: var(--amber-ink); }

@media (min-width: 640px) {
  .person, .dates-card { padding: 22px 22px 20px; }
  .summary { padding: 28px; }
  .sum__people li { grid-template-columns: 9rem minmax(0, 1fr); align-items: baseline; gap: 16px; }
}

/* =========================================================
   7. Pied de page
   ========================================================= */
.footer { padding: 72px 0 72px; border-top: 1px solid var(--line-dark); }
.footer__in { display: grid; gap: 28px; justify-items: center; text-align: center; }
.footer__end { margin: 0; font-size: clamp(2.5rem, 2rem + 3vw, 4.5rem); font-weight: 800; font-stretch: 125%; line-height: 1; }
.footer__billing { margin: 0; max-width: 26rem; font-size: clamp(1.25rem, 4.6vw, 1.75rem); color: var(--sand-dim); }
.footer__billing .billing__n { white-space: normal; font-weight: 650; }
.footer__privacy { max-width: 36rem; padding-top: 24px; border-top: 1px solid var(--line-dark); }
.footer__h { font-size: 1.0625rem; font-stretch: 110%; margin-bottom: 8px; }
.footer__privacy p { color: var(--sand-dim); }

/* =========================================================
   Mouvement réduit : pas de fondu
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .reel { animation: none; }
}

/* =========================================================
   Retours d'Amélie (v0.1) : affiche épurée, film seul, bêtisier,
   menu caché jusqu'à la fin du film, suite et programme réunis
   ========================================================= */
.menu-btn[hidden], .menu[hidden] { display: none !important; }
.topbar.is-revealed .menu-btn, .topbar.is-revealed .menu ul { animation: menu-in .5s ease-out both; }
@keyframes menu-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .topbar.is-revealed .menu-btn, .topbar.is-revealed .menu ul { animation: none; } }

.poster__note {
  max-width: 30rem; margin: 0; padding: 12px 14px; border-radius: var(--radius); text-align: left;
  background: rgba(44, 69, 98, .82); box-shadow: inset 3px 0 0 var(--amber);
}

/* Le film, sans titre ni boutons autour */
.film { padding-block: clamp(32px, 6vw, 72px) clamp(48px, 8vw, 96px); border-top: 0; }
.film__note { margin: 14px auto 0; max-width: 40rem; text-align: center; color: var(--sand-dim); font-size: var(--fs-small); line-height: 1.5; }

/* Le bêtisier en bonus, après le générique */
.credits .credits__stay { margin-bottom: clamp(24px, 4vh, 40px); }
.bonus {
  display: grid; justify-items: center; gap: 22px; width: min(100%, 34rem);
  margin: 0 auto clamp(64px, 10vh, 120px); padding: 28px 20px 26px; border-radius: 14px;
  color: var(--sand); text-decoration: none; background: rgba(61, 90, 120, .45); box-shadow: inset 0 0 0 1px var(--line-dark);
}
.bonus:hover { background: rgba(61, 90, 120, .7); }
.bonus[hidden] { display: none; }
.bonus__stack { position: relative; width: 220px; height: 150px; }
.bonus__photo {
  position: absolute; top: 10px; left: 50%; width: 150px; height: 112px; margin-left: -75px; overflow: hidden;
  border: 5px solid var(--sand); border-bottom-width: 18px; border-radius: 3px; background: var(--deep);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .45);
}
.bonus__photo img, .bonus__photo .scene { display: block; width: 100%; height: 100%; object-fit: cover; }
.bonus__photo--1 { transform: translateX(-46px) rotate(-9deg); }
.bonus__photo--2 { transform: translateX(46px) rotate(8deg); }
.bonus__photo--3 { transform: translateY(-6px) rotate(-1deg); z-index: 1; }
.bonus__txt { display: grid; justify-items: center; gap: 6px; text-align: center; }
.bonus__kicker { color: var(--sand-dim); font-stretch: 80%; font-weight: 600; }
.bonus__title { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem); font-weight: 800; font-stretch: 122%; line-height: 1.05; }
.bonus__lead { color: var(--sand-dim); max-width: 26rem; }
.bonus__btn { margin-top: 12px; }

/* La suite et le programme réunis */
.suite__h { margin: clamp(40px, 6vw, 60px) 0 16px; font-size: var(--fs-h3); }
.days--suite { gap: 12px; }
.days--suite .day { padding: 18px; display: grid; gap: 10px; justify-items: start; background: rgba(44, 69, 98, .5); box-shadow: inset 0 0 0 1px var(--line-dark); color: var(--sand); }
.days--suite .day h4 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: 1.25rem; font-stretch: 112%; }
.days--suite .day__n { font-size: 1rem; font-stretch: 85%; font-weight: 700; color: var(--coral); }
.days--suite .day__items { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; list-style: none; }
.days--suite .day__items li { display: block; padding: 0; border: 0; line-height: 1.45; }
.days--suite .day__when { display: block; font-size: var(--fs-small); font-weight: 700; font-stretch: 92%; color: var(--sand-dim); }
.days--suite .st { margin-left: 4px; }
.suite__body .season { margin-top: clamp(28px, 5vw, 44px); max-width: 44rem; }

/* Un rôle reste collé à son nom dans les génériques */
.billing__pair { display: inline-block; white-space: nowrap; }
/* Sans phrase d'accroche, l'affiche laisse voir le film dès l'arrivée */
.poster { min-height: calc(76svh - var(--topbar)); }
/* Faits du projet en un seul encadré compact */
.suite .facts { gap: 0; padding: 4px 18px; border-radius: 12px; background: rgba(44, 69, 98, .5); box-shadow: inset 0 0 0 1px var(--line-dark); }
.suite .fact { padding: 14px 0; gap: 4px; border-radius: 0; background: none; box-shadow: none; border-bottom: 1px solid var(--line-dark); }
.suite .fact:last-child { border-bottom: 0; }
.suite .fact dt { font-size: var(--fs-small); }
.suite .fact dd { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.suite .fact__v { font-size: 1.125rem; }
.suite .fact__note { flex-basis: 100%; }
@media (min-width: 640px) {
  .suite .facts { column-gap: 32px; }
  .suite .fact:nth-last-child(2) { border-bottom: 0; }
}

/* Verrou : tant que le film n'a pas été vu en entier, rien après la vidéo (pas de spoiler en défilant) */
.verrou #generique, .verrou #suite, .verrou #livret, .verrou .footer, .verrou .skip { display: none !important; }
.verrou .film { min-height: calc(100svh - 76svh); }
.film__aide { margin: 18px 0 0; text-align: center; }
.lien-discret {
  min-height: 44px; padding: 8px 12px; border: 0; background: none; cursor: pointer;
  color: var(--sand-dim); font: inherit; font-size: var(--fs-small); text-decoration: underline; text-underline-offset: 3px;
}
.lien-discret:hover { color: var(--sand); }
