/* =========================================================
   Les souvenirs du voyage posés sur le sable autour de la carte,
   dessinés façon risographie (choix d'Amélie, 23/11/2026, D23) :
   aplats d'encres de la palette (marine, piscine, sable, chili, melon),
   superpositions, ombres franches décalées comme un second passage d'encre,
   trames et pointillés, grain d'impression. Aucun dégradé ni flou.
   Tout est décoratif (aria-hidden), en CSS et SVG ; les SVG marqués data-gen
   sont produits par outils/decor_riso.py.
   ========================================================= */

/* Bandeau bleu en haut, avec « Amélie et Sélim », dès l'arrivée (avant le film) */
.verrou .topbar {
  display: block; position: fixed; background: rgba(44, 69, 98, .94); border-bottom: 1px solid var(--line-dark);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.verrou .brand { color: var(--sand); }
.verrou .table { padding-top: calc(var(--topbar) + 12px); }

.decor { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.decor__defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.table > .carte, .table > p { position: relative; z-index: 1; }

:root {
  /* Encres */
  --ri-papier: #FBF7EE; --ri-marine: #3D5A78; --ri-nuit: #2C4562; --ri-piscine: #8BB5D1;
  --ri-sable: #F2D28B; --ri-chili: #D2491E; --ri-melon: #F38E40;
  /* Ombre franche, comme un second passage d'encre légèrement décalé */
  --ombre-objet: 6px 8px 0 rgba(44, 69, 98, .2);
  --ombre-filtre: drop-shadow(6px 8px 0 rgba(44, 69, 98, .2));
  /* Sable : une teinte de sable à plat, des grains en pointillé (melon, chili, marine) */
  --ri-grains: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><g fill='%23E0893F' opacity='.55'><circle cx='12' cy='20' r='1.1'/><circle cx='71' cy='9' r='.9'/><circle cx='133' cy='31' r='1.2'/><circle cx='40' cy='88' r='1'/><circle cx='101' cy='70' r='.8'/><circle cx='166' cy='97' r='1.1'/><circle cx='21' cy='146' r='.9'/><circle cx='88' cy='133' r='1.2'/><circle cx='150' cy='160' r='.9'/><circle cx='120' cy='112' r='.7'/></g><g fill='%23D2491E' opacity='.35'><circle cx='55' cy='45' r='.9'/><circle cx='158' cy='58' r='.8'/><circle cx='70' cy='170' r='.9'/><circle cx='5' cy='110' r='.8'/><circle cx='118' cy='150' r='.7'/></g><g fill='%233D5A78' opacity='.3'><circle cx='95' cy='25' r='.7'/><circle cx='30' cy='60' r='.6'/><circle cx='140' cy='130' r='.7'/><circle cx='60' cy='115' r='.6'/></g><g fill='%23FFFCF5' opacity='.8'><circle cx='80' cy='52' r='1'/><circle cx='170' cy='15' r='.9'/><circle cx='10' cy='175' r='1'/><circle cx='125' cy='92' r='.9'/></g></svg>");
  /* Grain d'impression : petites lacunes d'encre (claires) et poussière de toner (foncée) */
  --ri-lacunes: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='r' x='0' y='0' width='100%25' height='100%25'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='4' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .99 0 0 0 0 .97 0 0 0 0 .93 9 0 0 0 -5.6'/></filter><rect width='100%25' height='100%25' filter='url(%23r)'/></svg>");
  --ri-toner: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='t' x='0' y='0' width='100%25' height='100%25'><feTurbulence type='fractalNoise' baseFrequency='1.3' numOctaves='1' seed='9' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .17 0 0 0 0 .27 0 0 0 0 .38 8 0 0 0 -5.4'/></filter><rect width='100%25' height='100%25' filter='url(%23t)'/></svg>");
}
.table { background: var(--ri-grains), #F5DFAE; }
/* Le grain recouvre tout le décor (pas la carte, posée au-dessus) */
.decor::before, .decor::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.decor::before { background: var(--ri-toner); opacity: .3; mix-blend-mode: multiply; }
.decor::after { background: var(--ri-lacunes); opacity: .45; }

/* Sous un bord en vague, tout le reste de la page passe en bleu nuit (générique, suite, réponse, pied de page) */
.table::after {
  content: ""; display: block; position: absolute; left: 0; right: 0; bottom: -1px; height: 21px; z-index: 2; pointer-events: none;
  background: var(--night);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='20'><path d='M0 10 C15 2 45 2 60 10 S105 18 120 10 V20 H0 Z'/></svg>") 0 0 / 120px 100% repeat-x;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='20'><path d='M0 10 C15 2 45 2 60 10 S105 18 120 10 V20 H0 Z'/></svg>") 0 0 / 120px 100% repeat-x;
}
.verrou .table::after { display: none; }

.table .film__note, .table .lien-discret { color: var(--ri-nuit); }
/* Avant le film, la page doit passer pour un simple carnet de voyage : la mention « réservée à nos invités » n'apparaît qu'une fois le film vu */
.verrou .film__note { display: none; }
/* La mention YouTube tient sur une seule ligne dès que l'écran le permet (la phrase fait ≈ 48 em de large) */
@media (min-width: 720px) {
  .table .film__note { max-width: none; white-space: nowrap; font-size: min(.9375rem, calc((100vw - 40px) / 48.5)); }
}

.objet { position: absolute; margin: 0; box-shadow: var(--ombre-objet); }
svg.objet { box-shadow: none; filter: var(--ombre-filtre); }

/* ---------- Trace de tasse : un anneau d'encre melon ---------- */
.tache-cafe {
  width: 150px; height: 150px; border-radius: 50%; box-shadow: none; mix-blend-mode: multiply;
  background: radial-gradient(circle, transparent 61%, rgba(243, 142, 64, .42) 62% 66%, transparent 67%);
}

/* ---------- Passeport ---------- */
.passeport {
  display: grid; justify-items: center; align-content: center; gap: 14px; width: 150px; height: 208px; border-radius: 6px 9px 9px 6px;
  background: linear-gradient(90deg, var(--ri-marine) 0 9px, var(--ri-nuit) 9px);
  color: var(--ri-sable); text-transform: uppercase; font-weight: 700; letter-spacing: .2em;
}
.passeport__titre { font-size: 15px; }
.passeport__sous { font-size: 10px; letter-spacing: .3em; }
.passeport__embleme {
  width: 58px; height: 58px; border-radius: 50%; border: 2px solid var(--ri-sable);
  box-shadow: inset 0 0 0 6px var(--ri-nuit), inset 0 0 0 7.5px var(--ri-sable);
  background: radial-gradient(circle, var(--ri-sable) 0 3px, transparent 3.5px);
}

/* ---------- Carte d'embarquement ---------- */
.billet-avion { display: flex; width: 430px; height: 168px; border-radius: 9px; overflow: hidden; background: var(--ri-papier); color: var(--ri-nuit); }
.billet-avion__bande { width: 16px; background: repeating-linear-gradient(-45deg, var(--ri-marine) 0 8px, var(--ri-chili) 8px 16px); }
.billet-avion__corps { flex: 1; display: grid; align-content: start; gap: 2px; padding: 12px 16px; }
.billet-avion__entete { display: flex; justify-content: space-between; margin: 0 0 2px; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ri-marine); }
.billet-avion__entete span { color: var(--ri-piscine); font-weight: 500; }
.billet-avion__trajet { display: flex; align-items: center; gap: 14px; margin: 0; font-size: 36px; font-weight: 700; line-height: 1.05; letter-spacing: .02em; }
.billet-avion__avion { font-size: 20px; color: var(--ri-chili); }
.billet-avion__villes { display: flex; justify-content: space-between; width: 180px; margin: 0; font-size: 11px; color: var(--ri-marine); }
.billet-avion__infos { display: flex; gap: 16px; margin: 10px 0 0; }
.billet-avion__infos dt { font-size: 8.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ri-marine); opacity: .75; }
.billet-avion__infos dd { margin: 1px 0 0; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.billet-avion__talon { width: 112px; display: grid; align-content: space-between; padding: 12px; border-left: 2px dashed rgba(44, 69, 98, .35); background: var(--ri-sable); }
.billet-avion__talon p { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.billet-avion__siege { font-size: 26px !important; color: var(--ri-chili); }
.code-barres {
  display: block; height: 44px;
  background: repeating-linear-gradient(90deg, var(--ri-nuit) 0 2px, transparent 2px 4px, var(--ri-nuit) 4px 5px, transparent 5px 8px, var(--ri-nuit) 8px 11px, transparent 11px 12px, var(--ri-nuit) 12px 13px, transparent 13px 16px);
}
.code-barres--vertical { width: 30px; height: 70px; background: repeating-linear-gradient(0deg, var(--ri-nuit) 0 2px, transparent 2px 4px, var(--ri-nuit) 4px 5px, transparent 5px 8px, var(--ri-nuit) 8px 11px, transparent 11px 12px); }

/* ---------- Étiquette à bagage ---------- */
.etiquette {
  display: grid; justify-items: center; align-content: start; gap: 6px; width: 96px; height: 214px; padding: 34px 10px 12px;
  border-radius: 6px 6px 10px 10px; background: var(--ri-papier); color: var(--ri-nuit); box-shadow: none; filter: var(--ombre-filtre);
  clip-path: polygon(16% 0, 84% 0, 100% 9%, 100% 100%, 0 100%, 0 9%);
}
.etiquette__oeillet { position: absolute; top: 10px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: #F5DFAE; box-shadow: 0 0 0 3px var(--ri-sable); }
.etiquette__bande { width: 100%; height: 8px; background: repeating-linear-gradient(90deg, var(--ri-chili) 0 10px, var(--ri-papier) 10px 20px); }
.etiquette__code { font-size: 30px; font-weight: 700; letter-spacing: .04em; line-height: 1; }
.etiquette__ville { font-size: 9px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ri-marine); }
.etiquette__num { font-size: 8.5px; font-weight: 700; letter-spacing: .08em; color: var(--ri-marine); }

/* ---------- Tickets : encoches, poinçon, tampon ---------- */
.ticket { width: 256px; height: 114px; box-shadow: none; filter: var(--ombre-filtre); }
.ticket__papier {
  position: relative; display: flex; height: 100%; color: var(--ri-nuit);
  -webkit-mask: radial-gradient(circle 7px at 44px 0, #0000 96%, #000) top / 100% 51% no-repeat, radial-gradient(circle 7px at 44px 100%, #0000 96%, #000) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle 7px at 44px 0, #0000 96%, #000) top / 100% 51% no-repeat, radial-gradient(circle 7px at 44px 100%, #0000 96%, #000) bottom / 100% 51% no-repeat;
}
.ticket__talon { width: 44px; display: grid; place-items: center; border-right: 2px dashed rgba(44, 69, 98, .4); }
.ticket__talon span { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.ticket__corps { flex: 1; display: grid; align-content: center; gap: 1px; padding: 10px 14px; box-shadow: inset 0 0 0 5px rgba(255, 252, 245, .35), inset 0 0 0 6px rgba(44, 69, 98, .35); }
.ticket__thai { margin: 0; font-family: "Thonburi", "Sukhumvit Set", "Noto Sans Thai", "Leelawadee UI", sans-serif; font-size: 24px; font-weight: 700; line-height: 1.25; }
.ticket__lieu { margin: 0; font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.ticket__type { margin: 0; font-size: 10.5px; opacity: .85; }
.ticket__num { margin: 4px 0 0; font-size: 10px; font-weight: 700; letter-spacing: .12em; color: var(--ri-chili); }
.ticket__trou { position: absolute; top: 16px; right: 18px; width: 11px; height: 11px; border-radius: 50%; background: #F5DFAE; }
.ticket__tampon {
  position: absolute; right: 12px; bottom: 12px; padding: 2px 8px; rotate: -14deg;
  border: 2px solid var(--ri-chili); border-radius: 4px; color: var(--ri-chili); opacity: .8;
  font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; mix-blend-mode: multiply;
}
.ticket__tampon--bleu { border-color: var(--ri-nuit); color: var(--ri-nuit); rotate: 9deg; }
.ticket--temple .ticket__papier { background: var(--ri-sable); }
.ticket--wat .ticket__papier { background: var(--ri-melon); }
.ticket--ferry .ticket__papier { background: var(--ri-piscine); }
.ticket--ferry .ticket__num { color: var(--ri-nuit); }

/* ---------- Ticket de caisse thermique (encre qui pâlit) ---------- */
.recu {
  width: 162px; padding: 14px 12px 22px; color: var(--ri-nuit); font: 600 10.5px/1.55 "Courier New", ui-monospace, monospace; letter-spacing: .02em;
  background: var(--ri-papier); box-shadow: none; filter: var(--ombre-filtre);
  -webkit-mask: linear-gradient(#000, #000) top / 100% calc(100% - 8px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 12px 8px repeat-x;
          mask: linear-gradient(#000, #000) top / 100% calc(100% - 8px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 12px 8px repeat-x;
}
.recu p { margin: 0; white-space: pre; }
.recu__enseigne { text-align: center; font-size: 15px !important; font-weight: 700; letter-spacing: .12em; color: var(--ri-chili); }
.recu__thai { text-align: center; font-family: "Thonburi", "Noto Sans Thai", sans-serif; margin-bottom: 4px !important; }
.recu__ligne { opacity: .5; }
.recu__efface { opacity: .45; }
.recu__efface--fort { opacity: .25; text-align: center; margin-top: 6px !important; }

/* ---------- Polaroïds scotchés : paysages thaïs dessinés en riso ---------- */
.polaroid { width: 168px; padding: 10px 10px 0; background: var(--ri-papier); }
.polaroid[hidden] { display: none; }
.polaroid__img { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--ri-piscine); }
.polaroid__img svg { display: block; width: 100%; height: 100%; }
/* Une vraie photo, si on en remet une, passe en bichromie */
.polaroid__img img, .polaroid__img .scene { display: block; width: 100%; height: 100%; object-fit: cover; filter: url(#ri-duo); }
.polaroid__legende { padding: 6px 0 12px; font-family: var(--font-script); font-size: 24px; line-height: 1; text-align: center; color: var(--ri-nuit); }
.polaroid::before {
  content: ""; position: absolute; top: -11px; left: 50%; width: 78px; height: 24px; margin-left: -39px; rotate: -4deg; z-index: 1;
  background: var(--ri-sable); opacity: .85; mix-blend-mode: multiply;
  clip-path: polygon(0 8%, 6% 0, 12% 10%, 18% 0, 24% 6%, 76% 4%, 82% 0, 88% 8%, 94% 0, 100% 10%, 100% 92%, 94% 100%, 88% 90%, 82% 100%, 76% 94%, 24% 96%, 18% 100%, 12% 90%, 6% 100%, 0 92%);
}
.polaroid--2::before { background: var(--ri-piscine); rotate: 3deg; }
.polaroid--3::before { background: var(--ri-melon); }
.polaroid--4::before { background: var(--ri-chili); opacity: .7; rotate: 5deg; }

/* ---------- Timbres à collectionner, dans l'esprit des timbres de supérette thaïlandaise (personnages originaux) ---------- */
.timbre-libre {
  width: 96px; padding: 6px; box-shadow: none; filter: var(--ombre-filtre);
  background: radial-gradient(circle at center, transparent 3px, var(--ri-papier) 3.5px) -5px -5px / 10px 10px;
}
.timbre-libre__img { aspect-ratio: 4 / 5; overflow: hidden; }
.timbre-libre__img svg { display: block; width: 100%; height: 100%; }

/* ---------- Fleurs, feuille, coquillages, tongs, maillot, lunettes, grains ---------- */
.frangipanier { width: 124px; height: 124px; }
.frangipanier--2 { width: 104px; height: 104px; }
.frangipanier--3 { width: 92px; height: 92px; }
.feuille { width: 220px; height: 80px; }
.coquillage { width: 56px; height: 54px; }
.coquillage--2 { width: 40px; height: 39px; }
.coquillage--3 { width: 50px; height: 48px; }
.frangipanier--4 { width: 96px; height: 96px; }
.frangipanier--5 { width: 78px; height: 78px; }
.coquillage--5 { width: 44px; height: 42px; }
.frangipanier--6 { width: 70px; height: 70px; }
.etoile { width: 78px; height: 78px; }
.coquillage--6 { width: 46px; height: 44px; }
.tongs { width: 196px; height: 222px; }
.maillot { width: 270px; height: 150px; }
.lunettes { width: 230px; height: 92px; }
.sable { width: 300px; height: 120px; filter: none; }
/* Empreintes à l'échelle des tongs (un pied ≈ 190 px) */
.traces { width: 1600px; max-width: none; height: 220px; filter: none; }

/* ---------- Serviette de plage rayée ---------- */
.serviette {
  width: 600px; height: 420px; border-radius: 4px;
  background: repeating-linear-gradient(90deg, var(--ri-chili) 0 46px, var(--ri-papier) 46px 92px, var(--ri-melon) 92px 104px, var(--ri-papier) 104px 138px);
}
.serviette__franges {
  position: absolute; left: 0; right: 0; top: -14px; height: 14px;
  background: repeating-linear-gradient(90deg, var(--ri-papier) 0 3px, transparent 3px 6px);
}

/* ---------- Bahts (stylisés : ni portrait royal, ni mention de banque) ---------- */
.billet { width: 236px; height: 108px; border-radius: 3px; overflow: hidden; }
.billet--1000 {
  background: repeating-linear-gradient(115deg, rgba(210, 73, 30, .16) 0 1px, transparent 1px 6px), linear-gradient(100deg, var(--ri-sable) 0 44%, var(--ri-melon) 44%);
  color: var(--ri-nuit);
}
.billet--100 {
  background: repeating-linear-gradient(115deg, rgba(255, 252, 245, .25) 0 1px, transparent 1px 6px), linear-gradient(100deg, #F9D9C4 0 40%, var(--ri-chili) 40%);
  color: var(--ri-nuit);
}
.billet::after { content: ""; position: absolute; inset: 5px; border: 1px solid currentColor; opacity: .35; pointer-events: none; }
.billet__filigrane { position: absolute; left: 14px; top: 16px; width: 58px; height: 74px; border-radius: 50%; background: rgba(255, 252, 245, .55); }
.billet__valeur { position: absolute; right: 12px; top: 6px; font-family: var(--font-titre); font-size: 34px; line-height: 1; color: var(--ri-papier); }
.billet__symbole { position: absolute; right: 14px; bottom: 8px; font-size: 18px; font-weight: 700; color: var(--ri-papier); }
.billet__thai { position: absolute; left: 86px; bottom: 10px; font-family: "Thonburi", "Noto Sans Thai", sans-serif; font-size: 13px; font-weight: 700; }
.billet__rosace {
  position: absolute; left: 96px; top: 14px; width: 62px; height: 62px; border-radius: 50%; opacity: .5;
  background: repeating-radial-gradient(circle, currentColor 0 1px, transparent 1px 4px), repeating-conic-gradient(currentColor 0 4deg, transparent 4deg 12deg);
  -webkit-mask: radial-gradient(circle, #000 60%, transparent 61%); mask: radial-gradient(circle, #000 60%, transparent 61%);
}
.piece { display: grid; place-items: center; border-radius: 50%; background: var(--ri-piscine); box-shadow: inset 0 0 0 3px rgba(255, 252, 245, .55), 3px 4px 0 rgba(44, 69, 98, .25); }
.piece span { position: relative; z-index: 1; font-weight: 700; color: var(--ri-nuit); }
.piece--10 { width: 44px; height: 44px; }
.piece--10::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--ri-sable); }
.piece--10 span { font-size: 13px; }
.piece--5 { width: 38px; height: 38px; }
.piece--5 span { font-size: 13px; }
.piece--1 { width: 30px; height: 30px; }
.piece--1 span { font-size: 11px; }

/* ---------- Ombres du parasol et des palmes : aplats d'encre marine translucides, bords nets ---------- */
.ombre { position: absolute; pointer-events: none; mix-blend-mode: multiply; opacity: .13; }
.ombre--parasol {
  top: -26%; right: -18%; width: min(78vw, 980px); aspect-ratio: 1.25; border-radius: 50%; opacity: .08;
  background: var(--ri-marine);
}
.ombre--palmes { left: -6%; bottom: -14%; width: min(62vw, 860px); rotate: -8deg; }
.ombre--palmes2 { top: -16%; left: -16%; width: min(56vw, 780px); rotate: 158deg; scale: -1 1; }
.ombre--feuilles { top: 26%; right: -7%; width: 440px; rotate: 18deg; }

/* ---------- Disposition sur ordinateur : tout autour de la carte ---------- */
@media (min-width: 720px) {
  .tache-cafe { top: 58%; left: calc(50% - 690px); }
  .passeport { top: 34%; left: calc(50% - 760px); rotate: 11deg; }
  .billet-avion { top: 10%; left: calc(50% - 680px); rotate: -9deg; }
  .polaroid--2 { top: 30%; left: calc(50% - 620px); rotate: 6deg; }
  .etiquette { bottom: 21%; left: calc(50% - 740px); rotate: -22deg; }
  /* Coquillages et fleurs dans les trous à gauche (là où étaient le fil rouge et le tampon de visa) */
  .coquillage--3 { bottom: 37%; left: calc(50% - 712px); rotate: -24deg; }
  .frangipanier--4 { top: 69%; left: calc(50% - 650px); rotate: 50deg; }
  .frangipanier--5 { top: 53%; left: calc(50% - 760px); rotate: -40deg; }
  .ticket--ferry { bottom: 14%; left: calc(50% - 650px); rotate: 9deg; }
  .polaroid--1 { bottom: 3%; left: calc(50% - 560px); rotate: -7deg; }
  .feuille { top: 1%; left: calc(50% - 470px); rotate: -18deg; }
  .frangipanier--1 { top: 0; left: calc(50% - 380px); rotate: 15deg; }
  .polaroid--4 { top: 1%; left: calc(50% + 70px); rotate: -5deg; }
  .timbre-libre--1 { top: 56%; left: calc(50% - 600px); rotate: -9deg; }
  .timbre-libre--2 { top: 4%; right: calc(50% - 600px); rotate: 11deg; }
  .ticket--temple { top: 13%; right: calc(50% - 650px); rotate: 13deg; }
  .billet--1000 { top: 21%; right: calc(50% - 640px); rotate: 9deg; }
  .billet--100 { top: 25%; right: calc(50% - 610px); rotate: -4deg; }
  .recu { top: 30%; right: calc(50% - 720px); rotate: -6deg; }
  .piece--1 { top: 45%; right: calc(50% - 495px); }
  .piece--10 { top: 47%; right: calc(50% - 545px); }
  .piece--5 { top: 52%; right: calc(50% - 505px); }
  .ticket--wat { top: 50%; right: calc(50% - 690px); rotate: -14deg; }
  .lunettes { bottom: 31%; right: calc(50% - 790px); rotate: 22deg; }
  .serviette { bottom: -150px; right: calc(50% - 900px); rotate: -14deg; }
  .maillot { bottom: 9%; right: calc(50% - 870px); rotate: -14deg; }
  .polaroid--3 { bottom: 3%; right: calc(50% - 520px); rotate: 8deg; }
  .frangipanier--2 { bottom: 26%; right: calc(50% - 570px); rotate: -10deg; }
  /* Le bas, sous la mention : traces, tongs, grains, coquillages, fleur */
  .traces { bottom: -34px; left: 50%; margin-left: -660px; }
  .tongs { bottom: -78px; left: calc(50% - 380px); rotate: -14deg; }
  .coquillage--1 { bottom: 1%; left: calc(50% - 700px); rotate: 20deg; }
  /* Les vides du bas : entre le petit coquillage et le polaroïd de Krabi, et le coin gauche */
  .frangipanier--6 { bottom: -1%; left: calc(50% + 258px); rotate: 12deg; }
  /* Au-dessus du milieu de la carte : une étoile de mer et un coquillage qui dépassent */
  .etoile { top: 66px; left: calc(50% - 170px); rotate: 14deg; }
  .coquillage--6 { top: 70px; left: calc(50% - 8px); rotate: -28deg; }
  .coquillage--5 { bottom: 1.5%; left: calc(50% - 624px); rotate: -12deg; }
  .sable { bottom: 0; left: calc(50% - 210px); }
  .frangipanier--3 { bottom: 1%; left: calc(50% + 30px); rotate: 40deg; }
  .coquillage--2 { bottom: 4%; left: calc(50% + 190px); rotate: -30deg; }
}

/* ---------- Disposition sur téléphone : quelques objets dépassent en haut et en bas ---------- */
@media (max-width: 719px) {
  .table, .verrou .table { padding-top: 96px; padding-bottom: 168px; }
  .decor .objet { scale: .7; }
  .billet-avion { top: 30px; right: -190px; rotate: 9deg; }
  .ticket--temple { top: 42px; left: -60px; rotate: -11deg; }
  .feuille { top: 30px; left: 34%; rotate: -12deg; }
  .frangipanier--1 { top: 36px; left: 46%; rotate: 20deg; }
  .billet--1000 { top: 74px; right: -150px; rotate: -7deg; }
  .piece--10 { top: 58px; left: 40%; }
  .polaroid--1 { bottom: 4px; left: -10px; rotate: -8deg; }
  .polaroid--3 { bottom: 14px; right: -18px; rotate: 9deg; }
  .frangipanier--2 { bottom: 104px; right: 30%; rotate: -10deg; }
  .coquillage--1 { bottom: 20px; left: 46%; }
  .maillot { bottom: 70px; right: -110px; rotate: -14deg; }
  .lunettes { bottom: 66px; right: 18%; rotate: -16deg; }
  .sable { bottom: 6px; left: 32%; scale: .8; }
  .serviette { bottom: -200px; left: -230px; rotate: 12deg; }
  .tongs { bottom: -36px; left: -44px; rotate: 24deg; }
  .traces { bottom: 70px; left: -200px; scale: .7; transform-origin: left center; }
  .ombre--parasol { top: -10%; right: -40%; width: 120vw; }
  .ombre--palmes { left: -30%; bottom: -6%; width: 110vw; }
  .ombre--palmes2 { width: 110vw; top: -8%; left: -40%; }
  .ombre--feuilles { width: 260px; top: 34%; right: -30%; }
  .passeport, .etiquette, .recu, .ticket--wat, .ticket--ferry, .polaroid--2, .polaroid--4,
  .timbre-libre, .tache-cafe, .frangipanier--3, .frangipanier--4, .frangipanier--5, .coquillage--2, .coquillage--3, .coquillage--5, .frangipanier--6, .etoile, .coquillage--6, .billet--100, .piece--5, .piece--1 { display: none; }
}

/* ---------- Carte : timbre riso, cadre fin au verso ---------- */
.timbre__img svg { display: block; width: 100%; height: 100%; }
.timbre__pays { color: var(--ri-papier); text-shadow: none; }
.timbre__valeur { color: var(--ri-nuit); text-shadow: none; }
.carte__verso::before { content: ""; position: absolute; inset: 9px; border: 1px solid rgba(44, 69, 98, .35); border-radius: 2px; pointer-events: none; }

/* Téléphone : verso resserré pour que la carte (et « Lancer le film ») tienne dans l'écran */
@media (max-width: 719px) {
  .carte__verso { padding: 14px 16px 16px; gap: 10px; }
  .verso__salut { font-size: 1.35rem; margin-top: 2px; }
  .verso__texte p { font-size: 1.2rem; line-height: 1.16; margin-bottom: 4px; }
  .verso__dest { font-size: 1.6rem; }
  .verso__ligne + .verso__ligne { display: none; }
}

/* =========================================================
   Générique : les polices de l'accueil (rôles au pinceau, noms en Tenor Sans), mise en page resserrée
   ========================================================= */
.credits { padding-top: clamp(56px, 8vh, 88px); }
/* « Générique » à la même taille que « La suite » ; sur téléphone, les deux réduisent ensemble pour que « Générique » tienne sur une ligne */
.credits__title, .sequel__title, #reponse .sec-head h2 { font-size: min(clamp(2.25rem, 1.5rem + 3.4vw, 4.25rem), calc((100vw - 40px) / 6.6)); line-height: .95; letter-spacing: .04em; }
.credits__title { margin-bottom: clamp(28px, 4vh, 44px); }
.credits__list { gap: 12px; max-width: 40rem; }
.credits__list > div { gap: 0; }
.credits__list dt { font-family: var(--font-script); font-weight: 400; font-stretch: normal; font-size: 1.55rem; line-height: 1.15; color: var(--sand-dim); }
.credits__list dd { font-family: var(--font-titre); font-weight: 400; font-stretch: normal; font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem); line-height: 1.25; letter-spacing: .01em; font-synthesis: none; }
.credits__list dd .et-script { font-size: 1.15em; }
.credits__aside { display: inline; margin: 0 0 0 .35em; font-family: var(--font); font-size: .875rem; letter-spacing: 0; }
/* Plus de bêtisier après le générique : une marge en bas à la place */
.credits { padding-bottom: clamp(56px, 8vh, 88px); }
@media (min-width: 720px) { .credits__list > div { gap: 22px; } }

/* =========================================================
   Harmonisation typographique (choix d'Amélie, 23/11/2026) : toutes les sections reprennent les polices de l'accueil.
   - Tenor Sans : titres, noms, valeurs mises en avant, boutons, menu (une seule graisse : jamais de faux gras) ;
   - Mr Dafoe : petites touches au pinceau (surtitres, numéros de jour) ;
   - Clear Sans : texte courant et petits libellés, sans gras appuyé ni texte étiré.
   ========================================================= */
h1, h2, h3, h4,
.billing, .billing__n, .billing__r, .billing__tail, .sequel__when, .fact__v, .person__name, .sum__name, .rsvp-hello, .livret__name,
.footer__end, .footer__billing, .footer__billing .billing__n, .footer__h,
.dates-card .field-legend, .field-group legend, .field-label, .fold-extras > summary, .fold-extras .field-group legend {
  font-family: var(--font-titre); font-weight: 400; font-stretch: normal; font-synthesis: none;
}
h2, h3, h4, .field-group legend, .field-label, .fold-extras > summary { letter-spacing: .02em; }
.btn, .menu a, .menu-btn, .livret__toc a, .skip {
  font-family: var(--font-titre); font-weight: 400; font-stretch: normal; font-synthesis: none;
  text-transform: uppercase; letter-spacing: .1em;
}
.btn { font-size: .875rem; }
.menu-btn { font-size: .875rem; }
@media (min-width: 720px) { .menu a { font-size: .8125rem; } }
.billing { letter-spacing: .04em; }
.billing__n { letter-spacing: .03em; }
/* Les petites touches au pinceau */
.sequel__soon, .days--suite .day__n, .day__n {
  font-family: var(--font-script); font-weight: 400; font-stretch: normal; text-transform: none; letter-spacing: 0;
}
.sequel__soon { font-size: 1.75rem; line-height: 1; color: var(--coral); }
.days--suite .day__n { font-size: 1.45rem; line-height: 1; }
.day__n { font-size: 2.4rem; }
/* Les petits libellés : Clear Sans, graisse moyenne, largeur normale */
.st, .fact dt, .day__when, .days--suite .day__when, .suite__status, .sum__more dt, .sum__week dd, .person__tag,
.opt:has(input:checked) .opt__label, .rsvp-intro .lead, .rsvp-status strong, .credits__aside, .player__meta, .poster__caption {
  font-weight: 500; font-stretch: normal;
}
/* Le casting comme le programme : « Le casting » à la taille du générique et du programme, puis la phrase d'accueil
   au pinceau, comme « Le déroulé de notre séjour ensemble… » */
.rsvp-intro .lead {
  font-family: var(--font-script); font-weight: 400; font-stretch: normal; letter-spacing: 0;
  font-size: clamp(1.6rem, 1.4rem + .8vw, 2.05rem); line-height: 1.15; margin-bottom: 18px; color: var(--ri-nuit);
}

/* =========================================================
   Le programme : un grand billet d'avion (choix d'Amélie, 23/11/2026), puis les trois jours, puis le sondage
   ========================================================= */
/* En relief, comme la carte postale : légèrement de travers, ombre douce en plusieurs couches.
   L'ombre est portée par l'enveloppe (filter) pour suivre les encoches découpées par le masque du billet. */
/* Une fleur de frangipanier, centrée, à la fin du générique (sur le bleu nuit) */
.separateur-fleur { display: flex; justify-content: center; margin-top: clamp(36px, 6vh, 56px); }
.separateur-fleur svg { display: block; width: 84px; height: 84px; filter: drop-shadow(2px 4px 4px rgba(0, 0, 0, .3)); }
/* La fleur est un bouton : un clic la fait tourbillonner sur elle-même (deux tours, avec un petit rebond) */
.fleur-tourbillon { display: block; margin: 0; padding: 6px; border: 0; border-radius: 50%; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.fleur-tourbillon:focus-visible { outline: 2px solid var(--ri-sable); outline-offset: 4px; }
.fleur-tourbillon:hover svg { scale: 1.06; }
.fleur-tourbillon svg { transition: scale .25s ease; }
.fleur-tourbillon.tourbillonne svg { animation: fleur-tourbillon 1.4s cubic-bezier(.2, .7, .25, 1); }
@keyframes fleur-tourbillon {
  0% { rotate: 0deg; scale: 1; }
  25% { scale: 1.18; }
  100% { rotate: 720deg; scale: 1; }
}
@media (prefers-reduced-motion: reduce) { .fleur-tourbillon.tourbillonne svg { animation-duration: .01s; } }
.credits { padding-bottom: clamp(36px, 6vh, 56px); }

/* La section « Le programme » sur un fond à elle (bleu piscine), séparée du générique par une bande rayée rouge et jaune */
#suite {
  --fg: var(--ri-nuit); --fg-2: var(--ri-marine);
  --line: rgba(44, 69, 98, .2); --line-strong: rgba(44, 69, 98, .45);
  --link: var(--ri-nuit); --focus: var(--ri-nuit); --ico-on: var(--ri-papier);
  --st-conf: #A0521A; --st-env: #3D5A78; --st-ok: var(--ri-nuit);
  background: var(--ri-grains), var(--ri-piscine); color: var(--ri-nuit);
}
.bande-rayee { height: 14px; background: repeating-linear-gradient(-45deg, var(--ri-chili) 0 10px, var(--ri-sable) 10px 20px); }
/* La même bande en bas de la section, collée au casting (sous la marge du bas de la section) */
.bande-rayee--bas { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; }
.suite .sequel { padding-top: clamp(36px, 6vh, 60px); }
#suite .sequel__title, #suite .suite__h { color: var(--ri-nuit); }
/* « Le déroulé de notre séjour ensemble » au pinceau, comme les titres des journées */
#suite .suite__h { font-family: var(--font-script); font-weight: 400; font-stretch: normal; letter-spacing: 0; font-size: clamp(1.9rem, 1.55rem + 1.1vw, 2.5rem); line-height: 1.1; }
#suite .suite__status { background: rgba(251, 247, 238, .8); color: var(--ri-nuit); box-shadow: none; }
#suite .suite__status .ico { color: #A0521A; }
/* La frise sur fond clair : trait pointillé bleu nuit, pastilles cerclées du bleu piscine */
#suite .days--suite::before { border-top-color: rgba(44, 69, 98, .45); border-left-color: rgba(44, 69, 98, .45); }
#suite .days--suite .day::before { box-shadow: 0 0 0 4px var(--ri-piscine); }

/* Le billet d'avion, comme un ticket illustré (24/11/2026, d'après un modèle choisi par Amélie) : coins coupés,
   encoches sur les côtés et sur la ligne de découpe, avion au trait, ligne de code en rouge, cases bordées,
   passagers écrits à la main, bandeau « Destination » en bas ; mêmes couleurs, bandeau rayé jaune et rouge à gauche. */
.billet-prog__relief {
  max-width: 880px; margin: 0 auto clamp(24px, 3.5vw, 36px); rotate: -.6deg;
  filter: drop-shadow(0 0 .5px rgba(0, 0, 0, .25)) drop-shadow(2px 3px 3px rgba(0, 0, 0, .3)) drop-shadow(12px 20px 22px rgba(0, 0, 0, .35)) drop-shadow(26px 44px 50px rgba(0, 0, 0, .3));
}
.billet-prog {
  --coin: 14px;
  position: relative; display: flex; color: var(--ri-nuit);
  background: linear-gradient(160deg, rgba(255, 255, 255, .35), rgba(255, 255, 255, 0) 45%), var(--tx-grain), var(--ri-papier);
  /* Les coins coupés */
  clip-path: polygon(var(--coin) 0, calc(100% - var(--coin)) 0, 100% var(--coin), 100% calc(100% - var(--coin)), calc(100% - var(--coin)) 100%, var(--coin) 100%, 0 calc(100% - var(--coin)), 0 var(--coin));
  /* Les encoches : deux sur la ligne de découpe, une de chaque côté à mi-hauteur */
  -webkit-mask: radial-gradient(circle 11px at calc(100% - 250px) 0, #0000 98%, #000), radial-gradient(circle 11px at calc(100% - 250px) 100%, #0000 98%, #000), radial-gradient(circle 12px at 0 50%, #0000 98%, #000), radial-gradient(circle 12px at 100% 50%, #0000 98%, #000);
  -webkit-mask-composite: source-in;
          mask: radial-gradient(circle 11px at calc(100% - 250px) 0, #0000 98%, #000), radial-gradient(circle 11px at calc(100% - 250px) 100%, #0000 98%, #000), radial-gradient(circle 12px at 0 50%, #0000 98%, #000), radial-gradient(circle 12px at 100% 50%, #0000 98%, #000);
          mask-composite: intersect;
}
/* À gauche : une barre bleu nuit, puis le bandeau rayé jaune et rouge */
.billet-prog__bande {
  width: 30px; flex: none;
  background: linear-gradient(var(--ri-nuit), var(--ri-nuit)) 0 0 / 9px 100% no-repeat, repeating-linear-gradient(-45deg, var(--ri-sable) 0 9px, var(--ri-chili) 9px 18px);
}
.billet-prog__corps { flex: 1; min-width: 0; display: grid; align-content: start; gap: 12px; padding: 22px 26px 20px 22px; }
/* L'en-tête : avion au trait, « Carte d'embarquement · Boarding pass », le trajet souligné */
.billet-prog__tete { display: flex; align-items: center; gap: 18px; padding-bottom: 12px; border-bottom: 1.5px solid rgba(44, 69, 98, .55); }
.billet-prog__picto { flex: none; width: 76px; height: 38px; color: var(--ri-marine); }
.billet-prog__titres { display: grid; gap: 4px; min-width: 0; }
.billet-prog__entete { margin: 0; font-family: var(--font); font-size: .75rem; font-weight: 500; font-style: italic; letter-spacing: .16em; text-transform: uppercase; color: var(--ri-marine); }
.billet-prog__trajet {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .35em; margin: 0;
  font-family: var(--font-titre); font-weight: 400; font-size: clamp(1.5rem, 1.1rem + 1.3vw, 2.1rem); line-height: 1.05; letter-spacing: .06em; text-transform: uppercase; font-synthesis: none;
}
.billet-prog__fleche { color: var(--ri-chili); }
/* La ligne de code, en rouge, chiffres alignés */
.billet-prog__code { margin: 0; font-family: var(--font); font-weight: 500; font-size: .95rem; letter-spacing: .2em; color: var(--ri-chili); font-variant-numeric: tabular-nums; }
.billet-prog__avion { font-size: .9em; }
/* Les cases du ticket : date et durée à gauche, les passagers à droite, dans la même écriture que les autres valeurs */
.billet-prog__infos {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "date passagers" "duree passagers";
  margin: 2px 0 0;
}
.billet-prog__case { display: flex; align-items: center; gap: 12px; margin: 0; padding: 9px 12px; }
.billet-prog__case dt { font-size: .72rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ri-marine); white-space: nowrap; }
.billet-prog__case dt::after { content: " :"; }
.billet-prog__case dd { margin: 0; font-family: var(--font-titre); font-size: 1.15rem; line-height: 1.2; font-synthesis: none; }
.billet-prog__case--date { grid-area: date; border: 1.5px solid var(--ri-nuit); border-right-width: 0; }
.billet-prog__case--duree { grid-area: duree; border: 1.5px solid var(--ri-nuit); border-top: 0; border-right-width: 0; }
/* La case des passagers suit les deux lignes de gauche (sous-grille) : le trait sous « Passagers » prolonge celui sous « Date » */
.billet-prog__case--passagers { grid-area: passagers; display: grid; grid-template-rows: subgrid; align-items: stretch; gap: 0; padding: 0; border: 1.5px solid var(--ri-nuit); }
.billet-prog__case--passagers dt { display: flex; align-items: center; padding: 0 12px; border-bottom: 1.5px solid var(--ri-nuit); }
.billet-prog .billet-prog__case--passagers dd { display: flex; align-items: center; padding: 6px 12px; }
/* Le bandeau du bas, sur fond jaune : un globe, « Destination », la valeur dans une case */
.billet-prog__bas { display: flex; align-items: center; gap: 12px; margin: 2px 0 0; padding: 7px 12px; background: var(--ri-sable); }
.billet-prog__globe { flex: none; width: 22px; height: 22px; color: var(--ri-nuit); }
.billet-prog__bas-lib { font-size: .72rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.billet-prog__bas-lib::after { content: " :"; }
.billet-prog__bas-val { flex: 1; padding: 3px 12px; background: var(--ri-papier); font-family: var(--font-titre); font-size: 1rem; letter-spacing: .04em; text-align: center; font-synthesis: none; }
/* Le talon : le cadre du vol, la date en grand, le statut, le bouton, la petite mention */
.billet-prog__talon {
  width: 250px; flex: none; display: grid; align-content: space-between; justify-items: center; gap: 12px; padding: 24px 22px 20px; text-align: center;
  border-left: 2px dashed rgba(44, 69, 98, .4); background: var(--ri-sable);
}
.billet-prog__vol { width: 100%; padding: 8px 10px 10px; text-align: left; background: var(--tx-grain), var(--ri-papier); box-shadow: inset 0 0 0 1.5px var(--ri-nuit); }
.billet-prog__vol-titre { margin: 0 0 8px; font-family: var(--font); font-weight: 500; font-size: .95rem; letter-spacing: .14em; font-variant-numeric: tabular-nums; }
.billet-prog__vol-titre span { margin-right: 4px; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ri-marine); }
.billet-prog__vol-cases { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.billet-prog__vol-cases p {
  display: grid; gap: 3px; margin: 0; padding: 5px 8px 7px; box-shadow: inset 0 0 0 1.5px var(--ri-nuit);
  font-family: var(--font-titre); font-size: 1.5rem; line-height: 1; letter-spacing: .04em; color: var(--ri-chili); font-synthesis: none;
}
.billet-prog__vol-cases p > span:first-child { font-family: var(--font); font-size: .65rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ri-marine); }
.billet-prog__ete { margin: 0; font-family: var(--font-titre); font-size: 2.1rem; line-height: 1; letter-spacing: .04em; color: var(--ri-chili); white-space: nowrap; font-synthesis: none; }
.billet-prog__statut { margin: 0; }
.billet-prog__statut .st { color: var(--ri-nuit); white-space: normal; justify-content: center; text-align: left; font-size: .8125rem; padding: 4px 12px 4px 8px; }
.billet-prog__retenir { margin: 0; font-size: .7rem; font-style: italic; letter-spacing: .06em; color: var(--ri-marine); }
/* « Donner ma réponse » sur le talon : le bouton orange du verso, en plus compact pour tenir dans le talon */
.billet-prog__cta { min-height: 44px; padding: 10px 14px; font-size: .78rem; letter-spacing: .08em; white-space: nowrap; box-shadow: inset 0 0 0 2px var(--ri-nuit); }
/* Le talon qui s'envole quand on composte le billet (copie animée par app.js) : ses coins coupés sont dans son découpage,
   ses encoches (ligne de découpe, côté droit) dans son masque */
.billet-prog__talon--envol {
  z-index: 2; pointer-events: none; will-change: transform, opacity;
  -webkit-mask: radial-gradient(circle 11px at 0 0, #0000 98%, #000), radial-gradient(circle 11px at 0 100%, #0000 98%, #000), radial-gradient(circle 12px at 100% 50%, #0000 98%, #000);
  -webkit-mask-composite: source-in;
          mask: radial-gradient(circle 11px at 0 0, #0000 98%, #000), radial-gradient(circle 11px at 0 100%, #0000 98%, #000), radial-gradient(circle 12px at 100% 50%, #0000 98%, #000);
          mask-composite: intersect;
}
/* Le talon qui tombe ne doit pas élargir la page */
#suite { overflow-x: clip; }
.suite__body > .suite__status { max-width: 880px; margin-inline: auto; }
.suite__body > .suite__h, .suite__body > .days { max-width: 880px; margin-inline: auto; }

/* Téléphone : le talon passe sous le billet, la découpe devient horizontale, les cases s'empilent */
@media (max-width: 719px) {
  .billet-prog { flex-direction: column; -webkit-mask: none; mask: none; }
  .billet-prog__bande { width: auto; height: 22px; background: linear-gradient(var(--ri-nuit), var(--ri-nuit)) 0 0 / 100% 7px no-repeat, repeating-linear-gradient(-45deg, var(--ri-sable) 0 9px, var(--ri-chili) 9px 18px); }
  .billet-prog__corps { padding: 16px 16px 18px; }
  .billet-prog__tete { gap: 12px; }
  .billet-prog__picto { width: 56px; height: 28px; }
  .billet-prog__code { font-size: .8125rem; letter-spacing: .14em; }
  .billet-prog__infos { grid-template-columns: minmax(0, 1fr); grid-template-areas: "passagers" "date" "duree"; }
  .billet-prog__case--date { border-top: 0; border-right-width: 1.5px; }
  .billet-prog__case--duree { border-right-width: 1.5px; }
  .billet-prog__case--passagers { display: flex; flex-direction: column; }
  .billet-prog__case--passagers dt { padding: 7px 12px; }
  .billet-prog__bas { flex-wrap: wrap; gap: 8px 12px; }
  .billet-prog__bas-val { flex: 1 1 100%; }
  .billet-prog__talon { width: auto; border-left: 0; border-top: 2px dashed rgba(44, 69, 98, .4); padding: 20px 20px 22px; }
  .billet-prog__vol { max-width: 280px; }
  .billet-prog__talon--envol { -webkit-mask: none; mask: none; }
}

/* =========================================================
   Les trois jours : une frise (trait pointillé et pastilles) et trois feuillets de calendrier
   aux couleurs chaudes (melon, chili pour le grand jour, sable), le corps en papier clair
   ========================================================= */
.days--suite { position: relative; display: grid; gap: 22px; margin: 0; padding: 40px 0 0; list-style: none; }
@media (min-width: 720px) { .days--suite { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; } }
.days--suite::before { content: ""; position: absolute; left: 12%; right: 12%; top: 14px; border-top: 2px dashed rgba(242, 210, 139, .6); }
.days--suite .day {
  position: relative; display: flex; flex-direction: column; gap: 0; justify-items: normal; padding: 0; border-radius: 10px; background: none; box-shadow: none; color: var(--ri-nuit);
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .25)) drop-shadow(8px 14px 16px rgba(0, 0, 0, .3));
}
/* La pastille sur la frise, au-dessus de chaque feuillet (plus grosse et rouge pour le grand jour) */
.days--suite .day::before {
  content: ""; position: absolute; top: -33px; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%;
  background: var(--ri-melon); box-shadow: 0 0 0 4px var(--night);
}
.days--suite .day--2::before { width: 22px; height: 22px; margin-left: -11px; top: -36px; background: var(--ri-chili); }
/* Chaque pastille prend la couleur de l'en-tête de son jour */
.days--suite .day--3::before { background: #E2A53C; }
/* (centre des pastilles : 25 px au-dessus du feuillet, sur le trait pointillé) */
/* L'en-tête du feuillet */
.day__haut {
  position: relative; display: flex; align-items: center; justify-content: center; min-height: 58px; padding: 16px 12px 10px;
  border-radius: 10px 10px 0 0; background: var(--ri-melon);
}
.day--2 .day__haut { background: var(--ri-chili); }
.day--3 .day__haut { background: #E2A53C; } /* jaune doré, assez soutenu pour le texte blanc */
/* « Jour 1, 2, 3 » en Tenor Sans capitales, les titres des journées au pinceau (choix d'Amélie) */
.days--suite .day__n { font-family: var(--font-titre); font-size: 1.05rem; line-height: 1; letter-spacing: .2em; text-transform: uppercase; font-synthesis: none; color: #fff; }
/* Sur l'en-tête jaune, un léger voile sous les lettres blanches pour qu'elles restent lisibles */
.days--suite .day--3 .day__n { text-shadow: 0 1px 1px rgba(140, 72, 20, .35); }
/* Le corps : titre, moments de la journée en mini-frise verticale, statut */
.day__corps { flex: 1; display: flex; flex-direction: column; gap: 14px; padding: 18px 18px 20px; border-radius: 0 0 10px 10px; background: var(--tx-grain), var(--ri-papier); }
.days--suite .day .day__titre { display: block; margin: 0; font-family: var(--font-script); font-weight: 400; font-size: 2rem; line-height: 1.05; letter-spacing: 0; text-align: center; color: var(--ri-nuit); }
.days--suite .day__items { display: grid; gap: 0; margin: 0; padding: 0; border: 0; list-style: none; }
.days--suite .day__items li { position: relative; display: grid; gap: 2px; padding: 0 0 12px 22px; border: 0; line-height: 1.4; }
.days--suite .day__items li::before { content: ""; position: absolute; left: 3px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--ri-melon); }
.days--suite .day--2 .day__items li::before { background: var(--ri-chili); }
.days--suite .day--3 .day__items li::before { background: #E2A53C; }
.days--suite .day__items li::after { content: ""; position: absolute; left: 7.5px; top: 17px; bottom: 2px; border-left: 1.5px dotted rgba(44, 69, 98, .4); }
.days--suite .day__items li:last-child { padding-bottom: 0; }
.days--suite .day__items li:last-child::after { display: none; }
.days--suite .day__when { display: block; font-size: .75rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ri-marine); }
.days--suite .day__what { color: var(--ri-nuit); font-weight: 400; }
.day__statut { margin: auto 0 0; text-align: center; }
.days--suite .st { margin: 0; color: #4F5866; }


/* Téléphone : la frise devient verticale, à gauche des feuillets */
@media (max-width: 719px) {
  .days--suite { padding: 0 0 0 30px; gap: 26px; }
  .days--suite::before { left: 9px; right: auto; top: 12px; bottom: 12px; border-top: 0; border-left: 2px dashed rgba(242, 210, 139, .6); }
  .days--suite .day::before { top: 21px; left: -29px; margin-left: 0; }
  .days--suite .day--2::before { top: 18px; left: -32px; margin-left: 0; }
}

/* Ordinateur : la frise devient une trajectoire de vol. Un arc en pointillés (comme une route aérienne)
   passe par les trois pastilles, la plus haute pour le grand jour, et un petit avion vole vers le jour 3.
   Arc : M0 44 Q300 -12 600 44 dans une bande de 56 px ; pastilles 1 et 3 à ≈ 29 px du haut, pastille 2 à 16 px. */
@media (min-width: 720px) {
  #suite .days--suite { padding-top: 76px; }
  #suite .days--suite::before {
    left: 0; right: 0; top: 0; height: 56px; border: 0;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 56' preserveAspectRatio='none'><path d='M0 44 Q300 -12 600 44' fill='none' stroke='%232C4562' stroke-opacity='.5' stroke-width='2' stroke-dasharray='7 7' vector-effect='non-scaling-stroke'/></svg>") 0 0 / 100% 100% no-repeat;
  }
  #suite .days--suite .day::before { top: -55px; }
  #suite .days--suite .day--2::before { top: -71px; }
  /* Le petit avion, sur l'arc entre le jour 2 et le jour 3, légèrement penché vers la descente */
  /* (avion bleu nuit, retourné pour voler vers la droite, dans le sens du trajet) */
  #suite .days--suite::after {
    content: ""; position: absolute; left: 75%; top: 23px; width: 30px; height: 30px; translate: -50% -50%; rotate: 8deg; scale: -1 1;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M2.5 10.6 9 11.2 13.3 3.5h2l-2.4 7.9 5.3.5 2-2.6h1.5l-1 3.7 1 3.7h-1.5l-2-2.6-5.3.5 2.4 7.9h-2L9 12.8l-6.5.6Z' fill='%232C4562'/></svg>") center / contain no-repeat;
  }
}

/* Ordinateur : la parabole dessinée par app.js, du bord gauche de la page jusqu'à l'avion, remplace l'arc simple
   (gardé seulement si le script ne tourne pas). Elle passe sous les feuillets, au-dessus du fond bleu piscine. */
#suite { position: relative; }
.trajet { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.trajet__ligne { fill: none; stroke: var(--ri-nuit); stroke-opacity: .55; stroke-width: 2; stroke-dasharray: 7 7; stroke-linecap: round; }
.trajet__avion { fill: var(--ri-nuit); }
#suite .billet-prog__relief, #suite .suite__status, #suite .suite__h, #suite .days--suite { position: relative; z-index: 1; }
#suite.trajet-actif .days--suite::before, #suite.trajet-actif .days--suite::after { display: none; }

/* =========================================================
   Le casting, comme un plateau de tournage (proposé le 24/11/2026) : en-tête centré, une fiche de casting
   par personne (« dans son propre rôle »), les réponses avec un petit dessin, les semaines en feuillets de calendrier,
   la note de la fête à la maison pour ceux qui hésitent, le petit mot sur papier ligné avec l'écriture du verso.
   ========================================================= */
#reponse { position: relative; overflow: hidden; border-radius: inherit; background: var(--tx-grain), var(--sand); }
/* La section prend toute la largeur : plus de bords bleus de part et d'autre (choix d'Amélie) */
@media (min-width: 1000px) { .livret { margin-inline: 0; border-radius: 0; box-shadow: none; } }
/* De petits dessins au trait en fond (motif répété, dessiné dans index.html) : bien visibles sur les côtés,
   plus discrets au milieu, derrière le texte */
.casting-fond {
  position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; opacity: .3;
  /* (et ils s'effacent en bas de la section, pour une liaison douce avec le sable de la fin) */
  -webkit-mask-image: linear-gradient(90deg, #000 0 14%, rgba(0, 0, 0, .45) 30% 70%, #000 86% 100%), linear-gradient(to bottom, #000 calc(100% - 180px), transparent);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(90deg, #000 0 14%, rgba(0, 0, 0, .45) 30% 70%, #000 86% 100%), linear-gradient(to bottom, #000 calc(100% - 180px), transparent);
          mask-composite: intersect;
}
#reponse > .wrap { position: relative; z-index: 1; }
#reponse .wrap--narrow { width: min(100% - 2 * var(--gutter), 880px); }
.casting-head { max-width: none; text-align: center; }
#reponse .rsvp-hello, #reponse .rsvp-intro { text-align: center; }
#reponse .rsvp-intro { margin-bottom: 40px; }
#reponse .rsvp-intro p { max-width: 36em; margin-inline: auto; }
#reponse .rsvp-form { gap: 34px; }
#reponse .field-group legend, #reponse .field-label, #reponse .dates-card .field-legend { width: 100%; text-align: center; }
/* « Un petit mot doux pour nous » à la taille des autres titres de fiche (« Pour nous aider à anticiper », la semaine) */
#reponse .field-label { margin-bottom: 14px; font-size: 1.5rem; line-height: 1.2; }

/* Les fiches de casting, posées de travers avec un morceau de scotch */
.casting-people { display: grid; gap: 30px 26px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); padding-top: 8px; container-type: inline-size; }
.casting-people--seul { width: 100%; max-width: 460px; margin-inline: auto; }
/* Deux colonnes dès 626 px (2 × 300 + 26) : une fiche seule sur la dernière ligne (3, 5 personnes…) est centrée, à la largeur des autres */
@container (min-width: 626px) {
  #reponse .person:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 13px); }
}
#reponse .person {
  position: relative; padding: 28px 20px 22px; border-radius: 4px; rotate: -.8deg;
  background: var(--tx-grain), var(--ri-papier); box-shadow: none;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .16)) drop-shadow(6px 12px 14px rgba(0, 0, 0, .14));
}
#reponse .person:nth-child(even) { rotate: .9deg; }
#reponse .person::before {
  content: ""; position: absolute; top: -12px; left: 50%; width: 92px; height: 24px; translate: -50% 0; rotate: -3deg;
  background: rgba(242, 210, 139, .8); box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
}
#reponse .person:nth-child(even)::before { rotate: 4deg; }
#reponse .person__legend { display: grid; justify-items: center; gap: 2px; margin-bottom: 18px; text-align: center; }
#reponse .person__name { font-size: 1.75rem; line-height: 1.1; letter-spacing: .02em; }
.person__role { font-family: var(--font-script); font-size: 1.4rem; line-height: 1.05; color: var(--ri-marine); }
#reponse .person__tag { margin-top: 6px; }

/* Les réponses : le bouton entier se colore, le rond du formulaire reste invisible (mais utilisable au clavier) */
.opts--intention { gap: 10px; }
.opts--intention .opt, .opts--semaines .opt { transition: background-color .2s ease, box-shadow .2s ease, color .2s ease; }
.opts--intention .opt { gap: 12px; min-height: 54px; padding: 10px 44px 10px 12px; background: rgba(242, 210, 139, .3); box-shadow: inset 0 0 0 1.5px rgba(44, 69, 98, .16); }
.opts--intention .opt:hover, .opts--semaines .opt:hover { box-shadow: inset 0 0 0 1.5px rgba(44, 69, 98, .5); }
.opts--intention .opt input[type="radio"], .opts--semaines .opt input[type="radio"] {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; border: 0; border-radius: inherit; opacity: 0; cursor: pointer;
}
.opts--intention .opt:has(input:focus-visible), .opts--semaines .opt:has(input:focus-visible) { outline: 3px solid var(--coral-ink); outline-offset: 2px; }
.opt__ico { flex: none; display: grid; place-items: center; width: 30px; height: 30px; }
.opt__ico svg { width: 30px; height: 30px; }
.opts--intention .opt:has(input:checked) { box-shadow: inset 0 0 0 2.5px var(--ri-nuit); }
.opt--partant:has(input:checked) { background: rgba(243, 142, 64, .34); }
.opt--peutetre:has(input:checked) { background: rgba(242, 210, 139, .85); }
.opt--non:has(input:checked) { background: rgba(139, 181, 209, .5); }
/* Une coche ronde bleu nuit à droite de la réponse choisie, et le petit dessin qui rebondit */
.opts--intention .opt::after {
  content: ""; position: absolute; right: 12px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; scale: 0;
  background: var(--ri-nuit) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'><path d='m6.5 11.3 3 3 6-6.3' fill='none' stroke='%23FBF7EE' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / 100% no-repeat;
  transition: scale .2s ease;
}
.opts--intention .opt:has(input:checked)::after { scale: 1; }
.opts--intention .opt:has(input:checked) .opt__ico { animation: casting-tampon .4s ease-out; }
@keyframes casting-tampon { 0% { scale: .6; } 60% { scale: 1.18; } 100% { scale: 1; } }

/* La question des semaines, sur une fiche comme les autres */
#reponse .dates-card {
  padding: 26px 22px 22px; border-radius: 4px; rotate: .4deg;
  background: var(--tx-grain), var(--ri-papier); box-shadow: none;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .16)) drop-shadow(6px 12px 14px rgba(0, 0, 0, .14));
}
#reponse .dates-card .field-legend { font-size: 1.5rem; letter-spacing: .02em; }
#reponse .dates-card__hint { text-align: center; margin-bottom: 18px; }
.opts--semaines { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 560px; margin-inline: auto; }
.opts--semaines .opt { justify-content: center; text-align: center; }
/* Les deux semaines : un feuillet de calendrier, l'en-tête passe au rouge quand on le choisit */
.opt--semaine { flex-direction: column; align-items: stretch; gap: 0; min-height: 0; padding: 0; border-radius: 10px; overflow: hidden; background: #fff; box-shadow: inset 0 0 0 1.5px rgba(44, 69, 98, .2); }
.semaine__haut {
  display: block; padding: 9px 10px 8px; background: var(--ri-sable); color: var(--ri-nuit);
  font-family: var(--font-titre); font-size: .8125rem; line-height: 1.2; letter-spacing: .14em; text-transform: uppercase; font-synthesis: none;
  transition: background-color .2s ease, color .2s ease;
}
.semaine__jours {
  display: flex; align-items: baseline; justify-content: center; gap: .3em; padding: 16px 10px 18px;
  font-family: var(--font-titre); font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.4rem); line-height: 1; color: var(--ri-nuit); font-synthesis: none;
}
.semaine__fleche { font-size: .55em; color: var(--ri-chili); }
.semaine__jours sup { font-size: .42em; line-height: 0; vertical-align: .95em; margin-left: .04em; }
.opt--semaine:has(input:checked) { box-shadow: inset 0 0 0 2.5px var(--ri-nuit); }
.opt--semaine:has(input:checked) .semaine__haut { background: var(--ri-chili); color: #fff; }
/* « Les deux me conviennent », « Aucune des deux » : des pastilles */
.opt--pastille { min-height: 48px; padding: 10px 16px; border-radius: 999px; background: rgba(242, 210, 139, .3); box-shadow: inset 0 0 0 1.5px rgba(44, 69, 98, .2); }
.opt--pastille:has(input:checked) { background: var(--ri-nuit); color: var(--ri-papier); box-shadow: none; }

/* La fête à la maison : une petite note manuscrite (écriture du verso) sur un papier jaune scotché, qui apparaît sous les
   fiches dès qu'une personne répond « peut-être » ou « non ». Sans note, la zone ne laisse pas de trou dans le formulaire. */
.casting-fete-zone:not(:empty) { margin-top: 36px; }
.casting-fete {
  position: relative; max-width: 560px; margin: 0 auto; padding: 18px 26px 16px; rotate: -1.2deg; text-align: center;
  background: var(--tx-grain), #F7E3AE; color: var(--ri-nuit);
  font-family: var(--font-main); font-weight: 500; font-size: 1.55rem; line-height: 1.25;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .14)) drop-shadow(5px 10px 12px rgba(0, 0, 0, .12));
  animation: casting-fete .5s ease-out;
}
.casting-fete::before {
  content: ""; position: absolute; top: -11px; left: 50%; width: 80px; height: 22px; translate: -50% 0; rotate: 3deg;
  background: rgba(139, 181, 209, .55);
}
@keyframes casting-fete { from { opacity: 0; translate: 0 -10px; rotate: -4deg; } }
#reponse .summary .casting-fete { margin-top: 26px; }

/* Le petit mot : du papier ligné et l'écriture manuscrite du verso de la carte */
#reponse .textarea {
  min-height: 152px; padding: 4px 18px 8px; border-radius: 4px; color: var(--ri-nuit);
  font-family: var(--font-main); font-size: 1.5rem; font-weight: 500; line-height: 36px;
  background: repeating-linear-gradient(to bottom, transparent 0 35px, rgba(61, 90, 120, .22) 35px 36px) 0 4px / 100% 36px local, var(--tx-grain), var(--ri-papier);
  box-shadow: inset 0 0 0 1.5px rgba(44, 69, 98, .2);
}

/* « Pour nous aider à anticiper » : une fiche toujours ouverte, ses choix en pastilles comme ceux des semaines */
#reponse .fold-extras {
  border-radius: 4px; rotate: -.4deg; background: var(--tx-grain), var(--ri-papier); box-shadow: none;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .16)) drop-shadow(6px 12px 14px rgba(0, 0, 0, .14));
}
.fold-extras__titre {
  margin: 0; padding: 26px 20px 0; text-align: center;
  font-family: var(--font-titre); font-weight: 400; font-size: 1.5rem; line-height: 1.2; letter-spacing: .02em; font-synthesis: none;
}
#reponse .fold-extras__in { gap: 24px; padding: 18px 20px 24px; }
#reponse .extra-opts { justify-content: center; gap: 10px; }
#reponse .extra-opts .opt {
  min-height: 44px; padding: 9px 16px; border-radius: 999px;
  background: rgba(242, 210, 139, .3); box-shadow: inset 0 0 0 1.5px rgba(44, 69, 98, .2);
  transition: background-color .2s ease, box-shadow .2s ease, color .2s ease;
}
#reponse .extra-opts .opt:hover { box-shadow: inset 0 0 0 1.5px rgba(44, 69, 98, .5); }
#reponse .extra-opts .opt input[type="radio"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; border: 0; border-radius: inherit; opacity: 0; cursor: pointer; }
#reponse .extra-opts .opt:has(input:checked) { background: var(--ri-nuit); color: var(--ri-papier); box-shadow: none; }
#reponse .extra-opts .opt:has(input:focus-visible) { outline: 3px solid var(--coral-ink); outline-offset: 2px; }
#reponse .rsvp-actions { justify-items: center; }
/* Le message d'erreur sous le bouton : la police du texte courant, sans gras appuyé, sur une fiche comme le reste */
#reponse .form-error {
  align-items: center; padding: 10px 16px; border-radius: 4px; text-align: left;
  background: linear-gradient(rgba(210, 73, 30, .1), rgba(210, 73, 30, .1)), var(--ri-papier); box-shadow: inset 0 0 0 1.5px rgba(210, 73, 30, .35);
  font-family: var(--font); font-weight: 400; font-stretch: normal; font-size: 1rem; line-height: 1.4; color: var(--ri-nuit);
}
#reponse .form-error .ico { margin-top: 0; color: var(--ri-chili); }
#reponse .rsvp-actions__row { justify-content: center; }
#reponse .summary, #reponse .rsvp-msg { max-width: 640px; margin-inline: auto; border-radius: 4px; background: var(--tx-grain), var(--ri-papier); box-shadow: none; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .16)) drop-shadow(6px 12px 14px rgba(0, 0, 0, .14)); }
#reponse .rsvp-status { max-width: 640px; margin-inline: auto; }

@media (max-width: 559px) {
  .opts--semaines { gap: 10px; }
  .opt--pastille { padding-inline: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .opts--intention .opt:has(input:checked) .opt__ico { animation: none; }
  .opts--intention .opt::after, .opts--intention .opt, .opts--semaines .opt, .semaine__haut { transition: none; }
  .casting-fete { animation: none; }
}

/* =========================================================
   La fin du film (24/11/2026) : retour sur la plage de l'accueil. Le même sable riso, les ombres de palmes et de feuillage,
   et des copies des objets de la page principale (polaroïd de Koh Samui, frangipaniers, coquillages, étoile de mer,
   lunettes, tongs) posés autour de « Fin ». Le jaune de « Votre réponse » se fond dans le sable, et la mer arrive en bas.
   ========================================================= */
.footer {
  position: relative; overflow: hidden; padding: 0; border-top: 0;
  background: var(--ri-grains), #F5DFAE; color: var(--ri-nuit);
}
/* Liaison douce avec « Votre réponse » : son jaune se fond dans le sable sur les premiers centimètres
   (sous les objets du décor, qui restent nets) */
.footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 200px; z-index: 0; pointer-events: none;
  /* la même surface que « Votre réponse » (jaune et grain), qui s'efface peu à peu */
  background: var(--tx-grain), var(--sand);
  -webkit-mask-image: linear-gradient(to bottom, #000 0, rgba(0, 0, 0, .82) 30%, rgba(0, 0, 0, .35) 65%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 0, rgba(0, 0, 0, .82) 30%, rgba(0, 0, 0, .35) 65%, transparent 100%);
}
.decor-fin { z-index: 1; }
.footer .footer__in { position: relative; z-index: 5; gap: 0; }
.footer .footer__end {
  margin: 0; font-family: var(--font-script); font-weight: 400; font-stretch: normal; text-transform: none; letter-spacing: 0;
  /* « La suite au prochain épisode » : grand, au pinceau, sur deux lignes équilibrées */
  max-width: 9em; font-size: clamp(2.75rem, 2rem + 2.6vw, 4.25rem); line-height: 1.05; color: var(--ri-nuit); text-wrap: balance;
  text-shadow: .035em .035em 0 rgba(210, 73, 30, .45);
}
.fin__suite {
  margin: 14px 0 0; font-family: var(--font-titre); font-weight: 400; font-size: .875rem; line-height: 1.4;
  letter-spacing: .32em; text-transform: uppercase; color: var(--ri-marine); font-synthesis: none;
}
/* Le clin d'œil, en petites capitales espacées entre deux filets, comme un dernier carton */
.footer .footer__billing {
  margin: 40px 0 0; max-width: 30rem; padding: 16px 8px; border-block: 1px solid rgba(44, 69, 98, .25);
  font-family: var(--font-titre); font-weight: 400; font-stretch: normal; font-size: .8125rem; line-height: 1.8;
  letter-spacing: .22em; color: var(--ri-nuit);
}
.footer .footer__billing .billing__n { font-weight: 400; letter-spacing: inherit; }
.footer .footer__privacy { margin-top: 30px; max-width: 34rem; padding-top: 0; border-top: 0; }
.footer .footer__h { margin-bottom: 8px; font-size: .75rem; letter-spacing: .26em; text-transform: uppercase; color: var(--ri-chili); }
.footer .footer__privacy p { font-size: .875rem; line-height: 1.6; color: var(--ri-marine); }

/* La mer qui arrive en bas de la page, en risographie : sable mouillé, vague bleu piscine bordée d'écume,
   eau plus profonde (bleu plus soutenu, comme deux passages d'encre). La vague avance et recule lentement. */
.vague-fin { position: absolute; left: 0; right: 0; bottom: 0; height: 150px; z-index: 2; pointer-events: none; overflow: hidden; }
.vague-fin::after { content: ""; position: absolute; inset: 0; background: var(--ri-lacunes); opacity: .35; pointer-events: none; }
.vague-fin > div { position: absolute; left: 0; right: 0; bottom: 0; }
.vague-fin__mouille {
  height: 138px;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='30'><path d='M0 18 C40 8 80 8 120 18 S200 28 240 18 V30 H0Z' fill='%23E2BD7A' fill-opacity='.5'/></svg>") 0 0 / 240px 30px repeat-x,
    linear-gradient(rgba(226, 189, 122, .5), rgba(226, 189, 122, .5)) 0 29px / 100% 100% no-repeat;
}
.vague-fin__eau {
  height: 104px; filter: drop-shadow(5px 4px 0 rgba(61, 90, 120, .3));
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='30'><path d='M0 14 C40 2 80 2 120 14 S200 26 240 14' fill='none' stroke='%23FBF7EE' stroke-width='3.5' stroke-linecap='round'/><g fill='%23FBF7EE'><circle cx='34' cy='5' r='1.8'/><circle cx='58' cy='3' r='1.3'/><circle cx='148' cy='21' r='1.6'/><circle cx='176' cy='24' r='2'/><circle cx='206' cy='20' r='1.3'/></g></svg>") 0 0 / 240px 30px repeat-x,
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='30'><path d='M0 16 C40 4 80 4 120 16 S200 28 240 16 V30 H0Z' fill='%238BB5D1'/></svg>") 0 0 / 240px 30px repeat-x,
    linear-gradient(var(--ri-piscine), var(--ri-piscine)) 0 29px / 100% 100% no-repeat;
  animation: vague-va-vient 7s ease-in-out infinite, vague-derive 26s linear infinite;
}
.vague-fin__fond {
  height: 46px;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='20'><path d='M0 10 C40 18 80 18 120 10 S200 2 240 10 V20 H0Z' fill='%236E9CC0'/></svg>") 0 0 / 240px 20px repeat-x,
    linear-gradient(#6E9CC0, #6E9CC0) 0 19px / 100% 100% no-repeat;
  animation: vague-derive-inverse 34s linear infinite;
}
@keyframes vague-va-vient { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
@keyframes vague-derive { from { background-position: 0 0, 0 0, 0 29px; } to { background-position: 240px 0, 240px 0, 0 29px; } }
@keyframes vague-derive-inverse { from { background-position: 0 0, 0 19px; } to { background-position: -240px 0, 0 19px; } }
@media (prefers-reduced-motion: reduce) { .vague-fin__eau, .vague-fin__fond { animation: none; } }
/* Le texte reste au-dessus de la mer */
footer.footer .footer__in { padding-bottom: calc(var(--e-section) + 110px); }

/* Le décor de la fin : les objets copiés de l'accueil, reposés autour de « Fin » (les positions de l'accueil sont remises à zéro) */
.decor-fin .objet { top: auto; right: auto; bottom: auto; left: auto; margin: 0; }
.fin-ombre--palmes { left: -8%; bottom: -30%; width: min(60vw, 820px); rotate: -14deg; }
/* À droite, une seconde ombre de palme (à la place de l'ombre de feuillage, choix d'Amélie) : pas en miroir de celle de gauche,
   plus petite, elle entre par le bord droit en biais, juste au-dessus de la mer */
.fin-ombre--palmes2 { right: -14%; bottom: 8%; width: min(36vw, 500px); scale: -1 1; rotate: -52deg; }
@media (min-width: 1100px) {
  .decor-fin .polaroid--4 { top: 16%; left: calc(50% - 560px); rotate: -8deg; }
  .decor-fin .frangipanier--1 { top: 32%; left: calc(50% + 560px); rotate: 30deg; }
  .decor-fin .frangipanier--5 { top: 58%; left: calc(50% - 690px); rotate: -24deg; }
  .decor-fin .coquillage--3 { bottom: 150px; left: calc(50% - 300px); rotate: 18deg; }
  .decor-fin .tongs { bottom: 46px; left: calc(50% - 470px); rotate: 16deg; }
  .decor-fin .feuille { bottom: 120px; left: calc(50% - 790px); rotate: 22deg; }
  .decor-fin .lunettes { top: 14%; left: calc(50% + 330px); rotate: -16deg; }
  .decor-fin .etoile { top: 54%; left: calc(50% + 460px); rotate: -12deg; }
  .decor-fin .frangipanier--2 { bottom: 54px; left: calc(50% + 330px); rotate: 14deg; }
  .decor-fin .coquillage--1 { top: 14%; left: calc(50% + 620px); rotate: -20deg; }
  .decor-fin .coquillage--6 { bottom: 150px; left: calc(50% + 600px); rotate: 26deg; }
}
/* Téléphone et écran moyen : quelques objets dépassent en haut et en bas, le texte reste dégagé au milieu */
@media (max-width: 1099px) {
  .decor-fin .objet { scale: .62; }
  .decor-fin .polaroid--4, .decor-fin .feuille, .decor-fin .lunettes, .decor-fin .frangipanier--5, .decor-fin .coquillage--6 { display: none; }
  /* (l'étoile et ce coquillage sont masqués sur l'accueil en téléphone : on les garde ici) */
  .decor-fin .etoile, .decor-fin .coquillage--3 { display: block; }
  .decor-fin .frangipanier--1 { top: -30px; left: -34px; rotate: 30deg; }
  .decor-fin .etoile { top: 34px; right: -6px; rotate: -12deg; }
  .decor-fin .tongs { bottom: 30px; left: -40px; rotate: 22deg; }
  .decor-fin .coquillage--3 { bottom: 140px; right: 30%; rotate: 18deg; }
  .decor-fin .frangipanier--2 { bottom: 40px; right: -14px; rotate: 14deg; }
  .decor-fin .coquillage--1 { bottom: 150px; right: 14px; rotate: -20deg; }
  footer.footer .footer__in { padding-bottom: calc(var(--e-section) + 130px); }
  .fin-ombre--palmes { width: 88vw; left: -36%; bottom: -10%; }
  .fin-ombre--palmes2 { width: 62vw; right: -30%; bottom: 13%; }
}

/* =========================================================
   Harmonisation des tailles et des marges (24/11/2026, demande d'Amélie) : une seule échelle pour tout le site,
   selon le rôle de chaque texte. La carte postale et les objets du décor gardent leurs tailles d'objets.
   ========================================================= */
:root {
  /* Tailles de texte, du plus grand au plus petit */
  --t-titre: min(clamp(2.25rem, 1.5rem + 3.4vw, 4.25rem), calc((100vw - 40px) / 6.6)); /* titre de section, Tenor capitales */
  --t-sous-titre: clamp(1.6rem, 1.35rem + 1vw, 2.1rem);   /* sous-titre en Tenor (« Salut Thomas et Julie ! ») */
  --t-pinceau: clamp(1.75rem, 1.45rem + 1.1vw, 2.25rem);  /* sous-titre au pinceau (« Le déroulé… », « On aimerait… ») */
  --t-pinceau-titre: 2rem;                                /* titre de feuillet au pinceau (les jours) */
  --t-nom: clamp(1.35rem, 1.2rem + .6vw, 1.6rem);         /* prénoms et noms en Tenor */
  --t-intertitre: 1.5rem;                                 /* titre de fiche en Tenor (« Quelle semaine… ») */
  --t-touche: 1.5rem;                                     /* petite touche au pinceau (rôles, « dans son propre rôle ») */
  --t-question: 1.125rem;                                 /* question dans une fiche, valeur du billet */
  --t-corps: 1.0625rem;                                   /* texte courant */
  --t-petit: .875rem;                                     /* texte secondaire : aides, notes, confidentialité */
  --t-mention: .8125rem;                                  /* mention en Tenor capitales espacées */
  --t-libelle: .75rem;                                    /* petit libellé en capitales espacées */
  /* Marges */
  --e-section: clamp(64px, 4vw + 40px, 104px);            /* en haut et en bas de chaque section */
  --e-titre: clamp(28px, 2vw + 16px, 44px);               /* sous le titre de section */
  --e-bloc: clamp(28px, 1.2vw + 20px, 40px);              /* entre deux blocs */
  --e-serre: 14px;                                        /* entre un sous-titre et son texte */
}
/* Le texte courant : une seule graisse (Clear Sans légère), partout */
body { font-weight: 300; }
.days--suite .day__what, #suite .suite__status, .credits__aside, .rsvp-intro p:not(.lead), .opt__label { font-weight: 300; }
.opt:has(input:checked) .opt__label { font-weight: 500; }

/* Titres de section */
.credits__title, .sequel__title, #reponse .sec-head h2 { font-size: var(--t-titre); }
/* Sous-titres */
#reponse .rsvp-hello { font-size: var(--t-sous-titre); line-height: 1.15; margin-bottom: var(--e-serre); }
#suite .suite__h, #reponse .rsvp-intro .lead { font-size: var(--t-pinceau); line-height: 1.15; }
#reponse .rsvp-intro .lead { margin-bottom: var(--e-serre); }
.days--suite .day .day__titre { font-size: var(--t-pinceau-titre); }
/* Noms */
.credits__list dd, #reponse .person__name { font-size: var(--t-nom); line-height: 1.2; }
/* Titres de fiche, touches au pinceau, questions */
#reponse .dates-card .field-legend, #reponse .fold-extras__titre, #reponse .field-label { font-size: var(--t-intertitre); }
.credits__list dt, .person__role { font-size: var(--t-touche); }
#reponse .fold-extras .field-group legend { font-size: var(--t-question); }
/* Texte courant et texte secondaire */
.days--suite .day__what, #suite .suite__status, .rsvp-intro p:not(.lead), .opts--intention .opt__label, #reponse .form-error { font-size: var(--t-corps); }
#reponse .dates-card__hint, .footer .footer__privacy p, .credits__aside, .days--suite .st, .opt--pastille .opt__label, #reponse .extra-opts .opt__label { font-size: var(--t-petit); }
/* Mentions et petits libellés en capitales espacées */
.fin__suite, .footer .footer__h, .footer .footer__billing { font-size: var(--t-mention); letter-spacing: .24em; }
.days--suite .day__when { font-size: var(--t-libelle); letter-spacing: .16em; }

/* Marges : le même souffle en haut et en bas de chaque section, sous chaque titre et entre les blocs */
.credits { padding-top: var(--e-section); padding-bottom: var(--e-section); }
.credits__title { margin-bottom: var(--e-titre); }
.separateur-fleur { margin-top: var(--e-bloc); }
.suite .sequel { padding-top: var(--e-section); padding-bottom: var(--e-titre); }
#suite { padding-bottom: calc(var(--e-section) + 14px); }
.billet-prog__relief { margin-bottom: var(--e-bloc); }
.suite__body > .suite__status { margin-bottom: var(--e-bloc); }
#reponse.sec { padding-block: var(--e-section); }
#reponse .sec-head { margin-bottom: var(--e-titre); }
#reponse .rsvp-intro { margin-bottom: var(--e-bloc); }
#reponse .rsvp-form { gap: var(--e-bloc); }
.footer .footer__in { padding-block: var(--e-section); }
.footer .footer__billing, .footer .footer__privacy { margin-top: var(--e-bloc); }

/* Le décalage d'encre rouge de « La suite au prochain épisode », repris sous les titres de section
   (choix d'Amélie, 24/11/2026 ; pas sous les sous-titres au pinceau) */
.credits__title, .sequel__title, #reponse .sec-head h2 {
  text-shadow: .035em .035em 0 rgba(210, 73, 30, .45);
}

/* =========================================================
   L'envoi de la réponse (24/11/2026, demande d'Amélie) : le formulaire se replie, une lettre lignée glisse dans une
   enveloppe riso, le rabat se ferme et un cachet de cire rouge à la fleur de frangipanier la scelle ; « C'est posté ! »
   s'écrit à la main dessous. Puis le récapitulatif prend la place (app.js, posterEnveloppe).
   ========================================================= */
.enveloppe-scene { display: grid; justify-items: center; gap: 22px; padding: 130px 0 30px; }
.enveloppe {
  position: relative; width: min(320px, 78vw); aspect-ratio: 16 / 10; perspective: 900px;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .16)) drop-shadow(6px 12px 14px rgba(0, 0, 0, .14));
}
.enveloppe > div { position: absolute; }
/* Le dos et l'intérieur de l'enveloppe */
.enveloppe__dos { inset: 0; border-radius: 6px; background: var(--tx-grain), #E6C17D; }
/* La lettre : du papier ligné qui descend dans l'enveloppe */
.enveloppe__lettre {
  left: 8%; right: 8%; top: 7%; height: 84%; z-index: 2; border-radius: 3px;
  background: repeating-linear-gradient(to bottom, transparent 0 15px, rgba(61, 90, 120, .22) 15px 16px) 0 18px / 100% 100% no-repeat, var(--tx-grain), var(--ri-papier);
  animation: enveloppe-lettre .8s cubic-bezier(.3, .7, .3, 1) .1s both;
}
@keyframes enveloppe-lettre { 0% { translate: 0 -72%; opacity: 0; } 25% { opacity: 1; } 100% { translate: 0 0; opacity: 1; } }
/* La poche de devant, en trois pans (gauche, droite, bas) qui se rejoignent au milieu */
.enveloppe__poche {
  inset: 0; z-index: 3; border-radius: 6px;
  background: linear-gradient(to top, rgba(44, 69, 98, .06), transparent 60%), var(--tx-grain), var(--ri-sable);
  clip-path: polygon(0 0, 50% 56%, 100% 0, 100% 100%, 0 100%);
}
/* Le rabat : ouvert vers le haut, il se rabat sur la poche (et passe devant la lettre à mi-course) */
.enveloppe__rabat {
  left: 0; right: 0; top: 0; height: 58%; z-index: 1; transform-origin: top center; transform: rotateX(180deg);
  background: var(--tx-grain), #E9B868; clip-path: polygon(0 0, 100% 0, 50% 100%);
  animation: enveloppe-rabat .55s ease-in-out .95s forwards;
}
@keyframes enveloppe-rabat {
  0% { transform: rotateX(180deg); z-index: 1; }
  49% { z-index: 1; }
  50% { z-index: 5; }
  100% { transform: rotateX(0deg); z-index: 5; }
}
/* Le cachet de cire rouge, avec la fleur de frangipanier en relief */
.enveloppe__sceau {
  left: 50%; top: 58%; z-index: 6; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%;
  display: grid; place-items: center; scale: 0;
  background: radial-gradient(circle at 38% 32%, #E7693F, var(--ri-chili) 62%, #A9381A);
  box-shadow: 0 0 0 4px rgba(210, 73, 30, .35), 2px 3px 0 rgba(44, 69, 98, .25);
  animation: enveloppe-sceau .5s cubic-bezier(.3, 1.6, .5, 1) 1.55s forwards;
}
.enveloppe__sceau svg { width: 38px; height: 38px; opacity: .92; }
@keyframes enveloppe-sceau { from { scale: 0; rotate: -40deg; } to { scale: 1; rotate: 0deg; } }
.enveloppe__legende {
  margin: 0; font-family: var(--font-main); font-weight: 500; font-size: 1.75rem; line-height: 1; color: var(--ri-nuit);
  opacity: 0; animation: enveloppe-legende .5s ease 2s forwards;
}
@keyframes enveloppe-legende { from { opacity: 0; translate: 0 6px; } to { opacity: 1; translate: 0 0; } }
