/* D1 · Le Voyage — one continuous painted world (Paris → Gammos → Baya'ar) */

/* v3 palette (retours du 17.11.2026, « trop bordeaux »): palette 22 + the charter's ink. The shared tokens.css still
   defines the old Désert en Fleurs colours for the other prototypes; D1 overrides --ink / --olive here and never
   uses the old raspberry / burgundy / coral / lilac / peach / gold variables. */
:root {
  --ink: #302D29;            /* charter text-primary */
  --ink-2: #625E57;          /* charter text-secondary */
  --terre: #A7685B;          /* terre cuite: the logo, names, titles */
  --rose-pale: #DAB4B4;
  --rose-poudre: #B46C72;
  --herbe: #9CA469;          /* herbe sèche */
  --olive-seche: #848543;
  --olive: #5E6623;          /* small labels on cream (AA) */
  --citron: #D4D994;         /* citron pâle (accents on the dark glass) */
  --border-subtle: #DDD8D1;
  --ui: var(--ink);
  --ui-accent: var(--terre);
  --ui-soft: rgba(48, 45, 41, .6);
  --hair: rgba(167, 104, 91, .36);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --gutter: clamp(16px, 3.2vw, 44px);
  --rail-bottom: 76px;
  color-scheme: light;
}
.theme-night { --ui: var(--creme); --ui-accent: var(--rose-pale); --ui-soft: rgba(255, 248, 236, .74); --hair: rgba(218, 180, 180, .5); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--creme); overscroll-behavior: none; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }
body {
  margin: 0; min-height: 100%; background: var(--creme); color: var(--ink);
  font-family: var(--font-serif); font-size: 18px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img { display: block; max-width: none; -webkit-user-select: none; user-select: none; -webkit-user-drag: none; -webkit-touch-callout: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 2px; }
.theme-night :focus-visible { outline-color: var(--creme); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; z-index: 100; left: 12px; top: 12px; padding: 10px 14px; background: var(--creme); color: var(--ink);
  font: 500 11px/1 var(--font-ui); letter-spacing: .2em; text-transform: uppercase; transform: translateY(-160%); transition: transform .3s var(--ease); }
.skip:focus { transform: none; }

/* ------------------------------------------------------------------ scroll track */
.track { height: 1000vh; height: 1000lvh; pointer-events: none; }

/* ------------------------------------------------------------------ stage */
.stage {
  position: fixed; left: 0; top: 0; width: 100%; height: 100vh; height: 100lvh;
  overflow: hidden; z-index: 0; background: var(--creme); contain: strict;
  pointer-events: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
.paper { position: absolute; inset: 0; background: var(--creme) url("../assets/img/paper.webp") center / cover; }
.world { position: absolute; inset: 0; }
.cam { position: absolute; inset: 0; transform-origin: 50% 50%; }
/* the hearts: the paper is drawn on a canvas with a heart-shaped hole (no animated CSS mask: compositor-friendly on iOS) */
.heartveil { position: absolute; left: 0; top: 0; width: 100%; height: 100%; visibility: hidden; }

/* layers are laid out & moved by js (px boxes, transform-origin 0 0) */
.L, .plate, .spr, .edge, .sun, .chand, .cloud, .veil { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.scene, .clouds { position: absolute; inset: 0; visibility: hidden; }
/* the desert and the forest get their own ground colour under their plates (always covered): if a phone is ever late
   painting a layer, what shows for that instant is the scene's tone, never the pink morning sky inside the night
   (Paris has none: its sky gradient must show above the town while the camera rises) */
.scene--desert { background: #C4876F; }
.scene--forest { background: #2A1530; }
.plate { overflow: hidden; }
.plate > img, .veil > img { width: 100%; height: 100%; object-fit: cover; }
.spr > img, .edge > img, .sun > img, .cloud > img, .chand > img { position: absolute; inset: 0; width: 100%; height: 100%; }
.blr, .nit { opacity: 0; }

/* sky: 4 stacked gradients cross-faded by js (morning, gold, dusk, night) */
.sky { position: absolute; inset: 0; }
.sky > i { position: absolute; inset: 0; opacity: 0; }
.sky__a { opacity: 1 !important; background: linear-gradient(180deg, #F2C4CF 0%, #F7D0C2 38%, #FBDCC0 70%, #FFE6C4 100%); }
.sky__b { background: linear-gradient(180deg, #FFC98E 0%, #FFD49B 40%, #FFDFA6 70%, #FFE7B3 100%); }
.sky__c { background: linear-gradient(180deg, #B46C72 0%, #CB7885 45%, #E0A089 80%, #EBC2A0 100%); }
.sky__d { background: linear-gradient(180deg, #1E1022 0%, #2C1530 50%, #3E1D3A 100%); }

.sun { mix-blend-mode: normal; }
.sun__halo { position: absolute; left: -60%; top: -60%; width: 220%; height: 220%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 214, 140, .75), rgba(255, 176, 120, .32) 45%, rgba(255, 150, 120, 0) 100%);
  mix-blend-mode: screen; }

.grade { position: absolute; inset: -2%; opacity: 0; pointer-events: none; }
/* v3: a light rose evening (the dusk sky itself is rose now), never a deep plum / bordeaux veil */
.grade--dusk { background: linear-gradient(180deg, rgba(218, 180, 180, .22), rgba(203, 120, 133, .26) 60%, rgba(167, 104, 91, .34)); mix-blend-mode: multiply; }
.grade--night { background: radial-gradient(120% 90% at 50% 62%, rgba(70, 34, 66, .55), rgba(30, 14, 34, .92) 75%); mix-blend-mode: multiply; }

.tent-glow { mix-blend-mode: screen; pointer-events: none; }
.lantern-glow { position: absolute; inset: 0; pointer-events: none; }
.lantern-glow > b { position: absolute; width: 22%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255, 225, 150, .95), rgba(255, 170, 90, .45) 40%, rgba(255, 140, 80, 0) 100%); }

.houppah__night { opacity: 0; }

.clouds .cloud > img { object-fit: contain; }
.veil { overflow: hidden; }
/* the veil parts in two: the halves overlap (one stays opaque across the seam) so the closed veil has no gap */
/* each half = straight body + a column of billowing cloud silhouettes along its seam (mask union) */
.veil--l, .veil--r { -webkit-mask-repeat: no-repeat, repeat-y; mask-repeat: no-repeat, repeat-y; -webkit-mask-composite: source-over; mask-composite: add; }
.veil--l {
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 50%, transparent 55%), url("../assets/img/cloud-2.webp");
  mask-image: linear-gradient(90deg, #000 0, #000 50%, transparent 55%), url("../assets/img/cloud-2.webp");
  -webkit-mask-size: 100% 100%, 19% 31%; mask-size: 100% 100%, 19% 31%;
  -webkit-mask-position: 0 0, 53% 8%; mask-position: 0 0, 53% 8%;
}
.veil--r {
  -webkit-mask-image: linear-gradient(90deg, transparent 45%, #000 50%), url("../assets/img/cloud-2.webp");
  mask-image: linear-gradient(90deg, transparent 45%, #000 50%), url("../assets/img/cloud-2.webp");
  -webkit-mask-size: 100% 100%, 19% 31%; mask-size: 100% 100%, 19% 31%;
  -webkit-mask-position: 0 0, 45% 24%; mask-position: 0 0, 45% 24%;
}

.fx, .glow { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }
.glow { mix-blend-mode: screen; }
.lights { position: absolute; inset: 0; pointer-events: none; }
.chand__sway { position: absolute; inset: 0; transform-origin: 50% 0; }
.chand__sway img { position: absolute; inset: 0; width: 100%; height: 100%; }
/* layers cut by the top of their painting: feather that edge so it never reads as a line when they move */
.paris-mid > img, .desert-palms > img, .edge > img { -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 8%); mask-image: linear-gradient(180deg, transparent 0, #000 8%); }
/* back plates sink while the camera rises: feather their top edge into the sky gradient */
.paris-back > img { -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 9%); mask-image: linear-gradient(180deg, transparent 0, #000 9%); }

.tint { position: absolute; inset: 0; pointer-events: none; opacity: 0; }
.tint--warm { background: radial-gradient(120% 100% at 60% 30%, rgba(255, 200, 120, .55), rgba(255, 150, 110, .25) 60%, rgba(255, 120, 120, .15));
  mix-blend-mode: soft-light; }
.vignette { position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background: radial-gradient(125% 95% at 50% 46%, rgba(64, 50, 40, 0) 58%, rgba(64, 50, 40, .3) 88%, rgba(64, 50, 40, .46) 100%); mix-blend-mode: multiply; }

.grain { position: absolute; left: -50%; top: -50%; width: 200%; height: 200%; pointer-events: none;
  background: url("../assets/img/grain.png") repeat; opacity: .085; mix-blend-mode: overlay; animation: grain 1s steps(8) infinite; }
@keyframes grain {
  0% { transform: translate(0, 0); } 12% { transform: translate(-7%, 4%); } 25% { transform: translate(5%, -9%); }
  37% { transform: translate(-11%, -3%); } 50% { transform: translate(9%, 7%); } 62% { transform: translate(-3%, 11%); }
  75% { transform: translate(12%, -5%); } 87% { transform: translate(-9%, -10%); } 100% { transform: translate(0, 0); }
}

/* ------------------------------------------------------------------ intro / loader logo */
.intro { position: absolute; inset: 0; pointer-events: none; }
.intro__logo { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.intro__logo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.intro__fill { opacity: 0; }
.intro__paint { position: absolute; inset: 0; width: 100%; height: 100%; visibility: hidden; }
/* the line written on the paper while the heart holds, between the desert and Baya'ar */
.passage {
  position: absolute; left: 0; right: 0; top: var(--names-top, 62%); margin: 0; padding: 0 var(--gutter);
  text-align: center; font: italic 400 clamp(20px, 1.75vw, 26px)/1.4 var(--font-serif); color: var(--terre);
  letter-spacing: .01em; opacity: 0; pointer-events: none; text-wrap: balance;
}

/* ------------------------------------------------------------------ chrome: header */
.top {
  position: fixed; z-index: 30; left: 0; right: 0; top: 0; display: flex; align-items: center; justify-content: space-between;
  padding: calc(18px + env(safe-area-inset-top, 0px)) var(--gutter) 0; pointer-events: none;
}
.top > * { pointer-events: auto; }
.brand { position: relative; display: block; width: 58px; aspect-ratio: 2000 / 1672; opacity: 0; visibility: hidden; transition: opacity .8s var(--ease), visibility .8s; }
.brand img { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .8s var(--ease); pointer-events: none; }
.brand__light { opacity: 0; }
.brand__ink { filter: drop-shadow(0 0 10px rgba(255, 248, 236, .85)) drop-shadow(0 0 2px rgba(255, 248, 236, .6)); }
/* v3: the terre cuite heart sits on a soft cream halo so it reads over the pink blossoms (Paris) and the
   bougainvillea (Gammos) — a static gradient disc, no filter, no blend */
.brand::before { content: ""; position: absolute; inset: -16px -20px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 248, 236, .95), rgba(255, 248, 236, .78) 52%, rgba(255, 248, 236, 0)); }
.brand__light { filter: drop-shadow(0 0 10px rgba(48, 45, 41, .55)); }
.theme-night .brand__ink { opacity: 0; }
.theme-night .brand__light { opacity: 1; }
.show-chrome .brand { opacity: 1; visibility: visible; }
.cta {
  position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px;
  font: 500 11px/1 var(--font-ui); letter-spacing: .26em; text-transform: uppercase; text-decoration: none; color: var(--ui);
  border: 1px solid color-mix(in srgb, var(--ui-accent) 55%, transparent);
  background: color-mix(in srgb, var(--creme) 38%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: color .6s var(--ease), border-color .6s var(--ease), background-color .6s var(--ease);
}
.theme-night .cta { background: rgba(48, 45, 41, .3); }
/* the couple's sun as the button's mark (was a dot) */
.cta::before { content: ""; width: 15px; aspect-ratio: 1; margin: -2px 0 -2px -3px; background: url("../assets/img/soleil-cartes.webp") center / contain no-repeat; transition: transform .6s var(--ease); }
.cta:hover { background: var(--terre); border-color: var(--terre); color: var(--creme); }
.cta:hover::before { transform: rotate(40deg); }

/* ------------------------------------------------------------------ opening text */
main { position: relative; z-index: 10; }
.opening, .card, .finale { position: fixed; }
.opening { left: 0; right: 0; top: var(--names-top, 62%); text-align: center; color: var(--ink); pointer-events: none; padding: 0 var(--gutter); }
.opening__names {
  margin: 0; font: 400 clamp(17px, 5.3vw, calc(28px + .9vw))/1.1 var(--font-display); letter-spacing: .2em; text-transform: uppercase;
  color: var(--terre); padding-left: .2em; white-space: nowrap;
}
.opening__names .amp, .finale__names em {
  font-family: var(--font-serif); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: 0;
  color: var(--rose-poudre); font-size: 1.12em; margin: 0 .12em 0 -.05em;
}
.opening__dates { margin: 10px 0 0; font: italic 400 clamp(18px, 1.5vw, 22px)/1.2 var(--font-serif); color: var(--ink); letter-spacing: .02em; }
/* the scroll cue: shown after the names, and again whenever the guest idles (js: ui.js); a tap travels to the next stop */
.opening__cue {
  position: fixed; z-index: 31; left: 50%; bottom: calc(var(--rail-bottom) + 10px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 0; padding: 9px 16px 8px;
  transform: translate(-50%, 6px); border-radius: 999px;
  font: 500 11px/1 var(--font-ui); letter-spacing: .32em; text-transform: uppercase; color: var(--ui); white-space: nowrap;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .7s var(--ease), transform .7s var(--ease), visibility 0s linear .7s, color .6s var(--ease);
}
.opening__cue span { padding-left: .32em; text-shadow: 0 0 12px rgba(255, 248, 236, .9), 0 0 3px rgba(255, 248, 236, .8); }
/* a soft cloud of paper behind it, so it reads on the busiest painting (no hard pill, no backdrop blur) */
.opening__cue::before { content: ""; position: absolute; inset: -16px -30px; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 248, 236, .66), rgba(255, 248, 236, .3) 58%, rgba(255, 248, 236, 0)); }
.theme-night .opening__cue::before { background: radial-gradient(closest-side, rgba(48, 45, 41, .55), rgba(48, 45, 41, .24) 58%, rgba(48, 45, 41, 0)); }
.theme-night .opening__cue span { text-shadow: 0 0 12px rgba(48, 45, 41, .8), 0 0 3px rgba(48, 45, 41, .65); }
.opening__cue.is-on { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); transition-delay: 0s; }
.opening__cue i { position: relative; display: block; width: 1px; height: 34px; background: color-mix(in srgb, var(--ui) 22%, transparent); overflow: hidden; }
.opening__cue i::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 14px; background: var(--ui-accent);
  animation: cue 2.2s cubic-bezier(.65, 0, .35, 1) infinite; }
.opening__chev { display: block; width: 9px; height: 9px; margin-top: -9px; border-right: 1px solid var(--ui-accent); border-bottom: 1px solid var(--ui-accent);
  transform: rotate(45deg); animation: cue-chev 2.2s cubic-bezier(.65, 0, .35, 1) infinite; }
/* once the rail is on screen the cue sits just above it */
.show-chrome .opening__cue { bottom: calc(var(--rail-bottom) + var(--rail-h, 56px) + 10px + env(safe-area-inset-bottom, 0px)); }
.opening__cue:not(.is-on) i::after, .opening__cue:not(.is-on) .opening__chev { animation-play-state: paused; }
/* compact form (a card is docked at the bottom on phones): one line, text + chevron */
.opening__cue.is-compact { flex-direction: row; gap: 12px; padding: 7px 14px; }
.opening__cue.is-compact i { display: none; }
.opening__cue.is-compact .opening__chev { margin-top: -5px; }
@keyframes cue { 0% { transform: translateY(-16px); } 70%, 100% { transform: translateY(40px); } }
@keyframes cue-chev { 0%, 35% { opacity: .35; transform: translateY(-3px) rotate(45deg); } 70% { opacity: 1; transform: translateY(2px) rotate(45deg); } 100% { opacity: .35; transform: translateY(-3px) rotate(45deg); } }

/* ------------------------------------------------------------------ info cards */
.card {
  --pad: clamp(26px, 2.6vw, 40px);
  left: clamp(20px, 6vw, 96px); top: 0; bottom: 0; margin: auto 0; height: fit-content; width: min(400px, calc(100vw - 2 * var(--gutter)));
  padding: var(--pad) var(--pad) calc(var(--pad) - 4px); color: var(--ink);
  background: rgba(255, 250, 243, .86); border: 1px solid var(--hair); border-radius: 24px;
  -webkit-backdrop-filter: blur(14px) saturate(1.15); backdrop-filter: blur(14px) saturate(1.15);
  box-shadow: 0 30px 80px -30px rgba(72, 54, 42, .34);
  visibility: hidden; opacity: 0;
}
.card::before { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(167, 104, 91, .2); border-radius: 18px; pointer-events: none; }
.emblem {
  position: absolute; right: calc(var(--pad) - 4px); top: calc(var(--pad) - 6px); width: clamp(52px, 4.4vw, 64px); aspect-ratio: 2000 / 1672;
  background: center / 118% auto no-repeat;
  -webkit-mask: url("../../shared/logo/ms-heart-sans-barre-terre.png") center / contain no-repeat; mask: url("../../shared/logo/ms-heart-sans-barre-terre.png") center / contain no-repeat;
  animation: emblem-drift 16s ease-in-out infinite alternate;
}
.emblem--paris { background-image: url("../assets/img/emblem-paris.webp"); }
.emblem--desert { background-image: url("../assets/img/emblem-desert.webp"); }
.emblem--forest { background-image: url("../assets/img/emblem-forest.webp"); }
@keyframes emblem-drift { from { background-position: 42% 46%; } to { background-position: 58% 54%; } }
.card__eyebrow, .card__title { padding-right: clamp(54px, 4.6vw, 68px); }
.card--night { color: var(--creme); background: rgba(48, 45, 41, .52); border-color: rgba(218, 180, 180, .45);
  box-shadow: 0 30px 90px -30px rgba(48, 45, 41, .6); }
.card--night::before { border-color: rgba(218, 180, 180, .2); }
.card__eyebrow { margin: 0 0 14px; font: 500 10.5px/1.3 var(--font-ui); letter-spacing: .3em; text-transform: uppercase; color: var(--olive); }
.card__eyebrow span { font-family: var(--font-display); letter-spacing: .1em; margin-right: .7em; }
.card--night .card__eyebrow { color: var(--citron); }
.card__title { margin: 0; font: 400 clamp(27px, 2.5vw, 38px)/1.08 var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--terre); }
.card--night .card__title { color: var(--creme); }
.card__date { margin: 16px 0 0; font: italic 500 clamp(19px, 1.5vw, 22px)/1.25 var(--font-serif); color: var(--terre); }
.card--night .card__date { color: var(--rose-pale); }
.card__place { margin: 10px 0 0; font: 400 17.5px/1.42 var(--font-serif); text-wrap: pretty; }
.card__place sup { font-size: .62em; }
.card__text { margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--hair); font: italic 400 17px/1.5 var(--font-serif); color: color-mix(in srgb, currentColor 78%, transparent); }
.card__more {
  margin-top: 18px; display: inline-flex; align-items: center; gap: 12px; padding: 6px 0;
  font: 500 10.5px/1 var(--font-ui); letter-spacing: .28em; text-transform: uppercase; color: var(--olive);
}
.card--night .card__more { color: var(--citron); }
.card__more i { position: relative; width: 26px; height: 1px; background: currentColor; transition: width .5s var(--ease); }
.card__more i::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }
.card__more:hover i { width: 40px; }
/* line masks from SplitText */
.card .ln-mask, .finale .ln-mask { display: block; overflow: clip; overflow-clip-margin: 6px; padding-bottom: .04em; }
.card .ln, .finale .ln { display: block; will-change: transform, opacity, filter; }

/* ------------------------------------------------------------------ finale */
.finale {
  left: 0; right: 0; margin: 0 auto; top: var(--names-top, 62%); width: min(560px, calc(100vw - 2 * var(--gutter)));
  text-align: center; color: var(--ink); visibility: hidden; opacity: 0;
}
.finale__names { margin: 0; font: 400 clamp(17px, 5.1vw, calc(24px + .8vw))/1.15 var(--font-display); letter-spacing: .2em; text-transform: uppercase; color: var(--terre); padding-left: .2em; white-space: nowrap; }
.finale__line { margin: 6px auto 0; max-width: 26em; font: italic 400 clamp(19px, 1.6vw, 23px)/1.45 var(--font-serif); text-wrap: balance; }
.finale__cta {
  margin-top: 28px; display: inline-flex; align-items: center; justify-content: center; min-width: 190px; padding: 17px 34px; border-radius: 999px;
  font: 500 11.5px/1 var(--font-ui); letter-spacing: .3em; text-transform: uppercase; padding-left: calc(34px + .3em);
  color: var(--creme); background: var(--ink); box-shadow: 0 16px 40px -18px rgba(48, 45, 41, .55);
  transition: background .5s var(--ease), transform .5s var(--ease), box-shadow .5s var(--ease);
}
.finale__cta:hover { background: var(--terre); transform: translateY(-2px); box-shadow: 0 22px 46px -18px rgba(167, 104, 91, .6); }
.finale__dates { margin: 22px 0 0; font: 500 10.5px/1 var(--font-ui); letter-spacing: .32em; text-transform: uppercase; color: var(--ui-soft); padding-left: .32em; }

/* ------------------------------------------------------------------ rail */
.rail {
  position: fixed; z-index: 30; left: 0; right: 0; margin: 0 auto; bottom: calc(var(--rail-bottom) + env(safe-area-inset-bottom, 0px));
  width: min(470px, calc(100vw - 2 * var(--gutter)));
  padding: 15px 22px 4px; border-radius: 999px;
  background: color-mix(in srgb, var(--creme) 52%, transparent);
  -webkit-backdrop-filter: blur(12px) saturate(1.15); backdrop-filter: blur(12px) saturate(1.15);
  box-shadow: 0 10px 30px -18px rgba(48, 45, 41, .42), inset 0 0 0 1px rgba(167, 104, 91, .2);
  opacity: 0; visibility: hidden; transition: opacity .8s var(--ease), visibility .8s, background-color .8s var(--ease);
}
.theme-night .rail { background: rgba(48, 45, 41, .38); box-shadow: 0 10px 30px -18px rgba(48, 45, 41, .6), inset 0 0 0 1px rgba(218, 180, 180, .25); }
.show-chrome .rail { opacity: 1; visibility: visible; }
.rail__track { position: relative; height: 1px; margin: 0 4px; background: color-mix(in srgb, var(--ui) 22%, transparent); transition: background .6s var(--ease); }
.rail__fill { position: absolute; left: 0; top: 0; height: 1px; width: 100%; transform-origin: 0 0; transform: scaleX(0); background: var(--hair); }
.rail__dot { position: absolute; left: 0; top: 0; width: 26px; aspect-ratio: 2000 / 1672; margin: -11px 0 0 -13px;
  filter: drop-shadow(0 1px 1.5px rgba(48, 45, 41, .35)); }
.rail__dot .rh {
  position: absolute; inset: 0; background: center / 125% auto no-repeat; opacity: 0;
  -webkit-mask: url("../../shared/logo/ms-heart-sans-barre-terre.png") center / contain no-repeat; mask: url("../../shared/logo/ms-heart-sans-barre-terre.png") center / contain no-repeat;
}
.rail__dot .rh--paris { background-image: url("../assets/img/emblem-paris.webp"); opacity: 1; }
.rail__dot .rh--desert { background-image: url("../assets/img/emblem-desert.webp"); }
.rail__dot .rh--forest { background-image: url("../assets/img/emblem-forest.webp"); }
.theme-night .rail__dot { filter: drop-shadow(0 0 5px rgba(255, 238, 220, .6)); }
/* the stop markers are the couple's sun (small, soft until reached) */
.rail__mark { position: absolute; top: -6px; width: 13px; aspect-ratio: 1; margin-left: -6.5px;
  background: url("../assets/img/soleil-cartes.webp") center / contain no-repeat; opacity: .5; transform: scale(.85); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.rail[data-on="0"] .rail__mark:nth-of-type(1), .rail[data-on="1"] .rail__mark:nth-of-type(2), .rail[data-on="2"] .rail__mark:nth-of-type(3) { opacity: 1; transform: scale(1); }
.rail__stops { list-style: none; margin: 0 -10px; padding: 0; display: grid; grid-template-columns: 1fr 1fr 1fr; }
.rail__stops li { display: flex; }
.rail__stops li:nth-child(2) { justify-content: center; }
.rail__stops li:nth-child(3) { justify-content: flex-end; }
/* per-guest journeys: two stops only (a single event has no rail) */
.rail[data-n="2"] .rail__stops { grid-template-columns: 1fr 1fr; }
.rail[data-n="2"] .rail__stops li:nth-child(2) { justify-content: flex-end; }
.rail[hidden] { display: none !important; }
.rail__stops button {
  margin-top: 8px; padding: 8px 10px; white-space: nowrap; border-radius: 999px;
  font: 500 10.5px/1 var(--font-ui); letter-spacing: .3em; text-transform: uppercase; color: var(--ui-soft); transition: color .5s var(--ease);
}
.rail__stops button:hover { color: var(--ui); }
.rail__stops li.is-on button { color: var(--olive); }
.theme-night .rail__stops li.is-on button { color: var(--ui-accent); }

/* ------------------------------------------------------------------ dialogs */
.sheet {
  width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); padding: 0; border: 1px solid var(--hair); border-radius: 24px;
  background: var(--creme) url("../assets/img/paper.webp") center / cover; color: var(--ink); box-shadow: 0 40px 120px -40px rgba(48, 45, 41, .5);
}
.sheet::backdrop { background: rgba(48, 45, 41, .42); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.sheet[open] { animation: sheet-in .7s var(--ease); }
.sheet[open]::backdrop { animation: fade-in .6s var(--ease); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(18px) scale(.985); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes fade-in { from { opacity: 0; } }
.sheet__inner { position: relative; padding: clamp(28px, 4vw, 48px); }
.sheet__inner::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(167, 104, 91, .2); border-radius: 17px; pointer-events: none; }
.sheet__close { position: absolute; z-index: 1; right: 14px; top: 12px; width: 40px; height: 40px; font: 300 26px/1 var(--font-ui); color: var(--ink); border-radius: 50%; }
.sheet__close:hover { background: rgba(218, 180, 180, .35); }
.sheet__eyebrow { margin: 0 0 12px; font: 500 10.5px/1.3 var(--font-ui); letter-spacing: .3em; text-transform: uppercase; color: var(--olive); }
.sheet__title { margin: 0 0 6px; font: 400 clamp(26px, 3vw, 34px)/1.1 var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--terre); }
.sheet__list { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 22px; font-size: 18px; }
.sheet__list dt { font: 500 10px/2.3 var(--font-ui); letter-spacing: .26em; text-transform: uppercase; color: var(--ink-2); }
.sheet__list dd { margin: 0; }
.sheet__note { margin: 22px 0 0; font: italic 400 17px/1.45 var(--font-serif); color: var(--ink-2); text-wrap: pretty; }
.sheet__actions { margin: 22px 0 0; }
.sheet__actions a { font: 500 10.5px/1 var(--font-ui); letter-spacing: .26em; text-transform: uppercase; color: var(--olive); text-underline-offset: 6px; text-decoration-color: rgba(94, 102, 35, .45); }
.field { display: block; margin: 0 0 16px; border: 0; padding: 0; }
.field > span, .field legend { display: block; margin-bottom: 8px; font: 500 10px/1.3 var(--font-ui); letter-spacing: .24em; text-transform: uppercase; color: var(--ink-2); }
.field i { text-transform: none; letter-spacing: .02em; font-style: italic; }
.field input:not([type=checkbox]), .field textarea {
  width: 100%; padding: 12px 16px; border: 1px solid var(--border-subtle); background: rgba(255, 255, 255, .72); border-radius: 16px;
  font: 400 19px/1.3 var(--font-serif); color: var(--ink); transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--terre); box-shadow: 0 0 0 3px rgba(167, 104, 91, .2); }
.field--short input { max-width: 120px; }
.finale__cta--solid { margin-top: 10px; }
.rsvp__merci { margin: 8px 0 0; font: italic 400 40px/1.1 var(--font-serif); color: var(--terre); }

/* ------------------------------------------------------------------ QA (?t=…): states are rendered instantly */
html.qa *, html.qa *::before, html.qa *::after { transition-duration: 0s !important; transition-delay: 0s !important; }

/* hide the native scrollbar: the rail is the progress indicator */
html { scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }

/* ------------------------------------------------------------------ before js / loading */
html:not(.js) .stage { display: none; }
.is-booting .opening__names, .is-booting .opening__sun, .is-booting .opening__dates { opacity: 0; }
/* the reply button and the scroll cue appear once the journey can start (names written, world decoded) */
html:not(.is-ready) .top .cta, html:not(.is-ready) .opening__cue { opacity: 0; pointer-events: none; }
html:not(.is-ready) .top .cta { pointer-events: none; }
/* the ritual covers the page from the very first paint (no flash of the cream page before the linen) */
html.ritual-on #ritual { display: block; }

/* ------------------------------------------------------------------ responsive */
/* portrait screens (phones and tablets): cards dock above or below the subject, like the stage composition */
@media (max-aspect-ratio: 41/50) {
  .card { left: var(--gutter); right: auto; width: min(470px, calc(100vw - 2 * var(--gutter))); height: auto; margin: 0; }
  .card[data-m="top"] { top: calc(86px + env(safe-area-inset-top, 0px)); bottom: auto; }
  .card[data-m="bottom"] { top: auto; bottom: calc(var(--rail-bottom) + var(--rail-h, 56px) + 44px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 760px) {
  :root { --rail-bottom: 72px; }
  .brand { width: 46px; }
  .cta { padding: 11px 16px; letter-spacing: .22em; }
  .card { left: 16px; right: 16px; width: auto; height: auto; margin: 0; --pad: 22px; }
  .card[data-m="top"] { top: calc(84px + env(safe-area-inset-top, 0px)); bottom: auto; }
  .card[data-m="bottom"] { top: auto; bottom: calc(var(--rail-bottom) + var(--rail-h, 52px) + 42px + env(safe-area-inset-bottom, 0px)); }
  .card__title { font-size: 25px; }
  .card__date { margin-top: 10px; font-size: 19px; }
  .card__place { margin-top: 6px; font-size: 16.5px; line-height: 1.38; }
  .card__text { display: none; }
  .emblem { width: 46px; }
  .card__more { margin-top: 10px; }
  .rail__stops button { font-size: 10px; letter-spacing: .24em; }
  .rail { padding: 13px 18px 3px; }
  .sheet__list { grid-template-columns: 1fr; gap: 2px 0; }
  .sheet__list dd { margin-bottom: 10px; }
}
@media (max-height: 560px) and (orientation: landscape) {
  .card { top: 62px; bottom: auto; margin: 0; height: auto; --pad: 18px; width: min(340px, 44vw); }
  .card__text { display: none; }
  .emblem { width: 46px; }
  .card__eyebrow { margin-bottom: 8px; }
  .card__title { font-size: 22px; }
  .card__date { margin-top: 8px; font-size: 17px; }
  .card__place { margin-top: 4px; font-size: 15px; line-height: 1.35; }
  .card__more { margin-top: 8px; }
  .opening__dates { margin-top: 8px; }
  .opening__cue i { display: none; }
  .opening__chev { margin-top: -5px; }
  /* short landscape: one line, bottom right (the card is docked on the left) */
  .opening__cue { left: auto; right: var(--gutter); flex-direction: row; gap: 12px; transform: translate(0, 6px); }
  .opening__cue.is-on { transform: translate(0, 0); }
  .finale__line { margin-top: 10px; }
  .finale__cta { margin-top: 14px; padding-top: 13px; padding-bottom: 13px; }
  .finale__dates { display: none; }
}

/* ------------------------------------------------------------------ touch devices: same art, cheaper pixels
   iOS Safari flashes ("things break and come back") when it runs out of layer memory or has to re-render big
   offscreen groups every frame. So on touch: no mix-blend-mode on large layers (normal blending with tuned alpha),
   no backdrop-filter (solid glass instead), no animated grain, no blur filters. The moving layers keep
   will-change: transform (WebKit then never re-rasterises them while they scale); hidden scenes have no backing store. */
html.touch .grain { display: none; }
/* overlays whose opacity is scrubbed get their own compositor layer (no repaint of the scene under them each frame) */
html.touch .sky__b, html.touch .grade, html.touch .tint, html.touch .vignette { will-change: opacity; }
html.touch .vignette { mix-blend-mode: normal; background: radial-gradient(125% 95% at 50% 46%, rgba(64, 50, 40, 0) 60%, rgba(64, 50, 40, .18) 88%, rgba(64, 50, 40, .3) 100%); }
html.touch .tint--warm { mix-blend-mode: normal; background: radial-gradient(120% 100% at 60% 30%, rgba(255, 196, 130, .26), rgba(255, 160, 120, .1) 60%, rgba(255, 130, 120, .05)); }
html.touch .grade--dusk { mix-blend-mode: normal; background: linear-gradient(180deg, rgba(203, 120, 133, .1), rgba(180, 108, 114, .14) 60%, rgba(167, 104, 91, .22)); }
html.touch .grade--night { mix-blend-mode: normal; background: radial-gradient(120% 90% at 50% 62%, rgba(64, 50, 40, .2), rgba(48, 45, 41, .6) 75%); }
html.touch .sun__halo, html.touch .tent-glow, html.touch .glow { mix-blend-mode: normal; }
html.touch .emblem { animation: none; background-position: 50% 50%; }
html.touch .card, html.touch .rail, html.touch .cta { -webkit-backdrop-filter: none; backdrop-filter: none; }
html.touch .card { background: rgba(255, 250, 243, .95); }
html.touch .card--night { background: rgba(48, 45, 41, .88); }
html.touch .rail { background: rgba(255, 248, 236, .9); }
html.touch .theme-night .rail { background: rgba(48, 45, 41, .8); }
html.touch .cta { background: rgba(255, 248, 236, .86); }
html.touch .theme-night .cta { background: rgba(48, 45, 41, .66); }
html.touch .card .ln, html.touch .finale .ln { will-change: auto; }
html.touch .sheet::backdrop { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(48, 45, 41, .6); }
html.touch .sheet[open] { animation-name: sheet-in-touch; }
@keyframes sheet-in-touch { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }
/* texts over the paintings never get selected by a long press (the cards' own text stays selectable) */
.top, .rail, .opening, .opening__cue, .finale__names, .finale__dates { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
html.touch .opening__cue { font-size: 13px; letter-spacing: .22em; }
html.touch .opening__cue span { padding-left: .22em; }
html.touch .opening__cue i, html.touch .opening__cue i::after { width: 1.5px; }
html.touch .opening__chev { width: 11px; height: 11px; border-right-width: 1.5px; border-bottom-width: 1.5px; margin-top: -10px; }
/* bigger tap targets on the rail, same look */
html.touch .rail__stops button { position: relative; font-size: 11px; }
html.touch .rail__stops button::after { content: ""; position: absolute; left: -6px; right: -6px; top: -12px; bottom: -10px; }

/* ------------------------------------------------------------------ reduced motion */
.rm .grain, .rm .emblem, .rm .soleil--spin { animation: none; }
.rm .opening__cue i::after, .rm .opening__chev { animation: none; }
.rm .opening__cue i::after { transform: translateY(12px); }
@media (prefers-reduced-motion: reduce) {
  .sheet[open], .sheet[open]::backdrop { animation: none; }
}

/* v3 soleil -------------------------------------------------------------------------------------------------------
   Retours du 17.11.2026, « mettre le soleil logo un peu partout »: the couple's sun sign (F03, assets/img/soleil-cartes.webp,
   never redrawn) as a recurring mark: under the names (opening and finale), on each card (bottom-right corner), as the
   rail's stop markers, the header button's mark, and the dividers of the details / reply sheets. CSS backgrounds only
   (no <img>: nothing to long-press or drag). The spin is a transform on a small element; static under reduced motion,
   and the card suns stay still on touch (like the emblems). */
.soleil { display: block; width: 24px; aspect-ratio: 1; background: url("../assets/img/soleil-cartes.webp") center / contain no-repeat; }
.soleil--spin { animation: soleil-spin 90s linear infinite; }
@keyframes soleil-spin { to { transform: rotate(360deg); } }
.soleil-rule { display: flex; align-items: center; justify-content: center; gap: 14px; width: min(230px, 62%); margin: 14px auto 0; }
.soleil-rule::before, .soleil-rule::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(167, 104, 91, 0), rgba(167, 104, 91, .45)); }
.soleil-rule::after { background: linear-gradient(270deg, rgba(167, 104, 91, 0), rgba(167, 104, 91, .45)); }
.soleil-rule .soleil { flex: none; }
.opening__sun { margin-top: 14px; }
.finale__sun { margin-top: 16px; }
.finale__sun .soleil { width: 26px; }
/* sheets: left-aligned, sun then a line fading out */
.sheet__sun { justify-content: flex-start; width: 190px; margin: 14px 0 22px; }
.sheet__sun::before { display: none; }
.sheet__sun .soleil { width: 22px; }
.rsvp__sun { width: 40px; margin: 4px 0 0; }
/* cards: a small sun in the bottom-right corner, on the line of « Détails » (the heart emblem holds the top-right) */
.card__sun { position: absolute; right: calc(var(--pad) - 4px); bottom: calc(var(--pad) - 8px); width: 30px; pointer-events: none; }
html.touch .card__sun { animation: none; }
@media (max-width: 760px) { .card__sun { width: 26px; bottom: calc(var(--pad) - 6px); } }
@media (max-height: 560px) and (orientation: landscape) {
  .opening__sun { margin-top: 6px; }
  .opening__sun .soleil { width: 18px; }
  .finale__sun { margin-top: 8px; }
  .finale__sun .soleil { width: 20px; }
  .finale__line { margin-top: 6px; }
  .card__sun { width: 20px; }
}
@media (prefers-reduced-motion: reduce) { .soleil--spin { animation: none; } }
/* /v3 soleil */

/* v3 houppah ------------------------------------------------------------------------------------------------------
   Retours du 17.11.2026, « houppa trop sombre ». Baya'ar is no longer a near-black night but a luminous golden-hour
   clearing (the plates themselves were re-graded, see _source/golden_v3.py). Here: the forest's ground colour, the
   forest grade, the (always covered) night sky gradient and the "night" chrome tints move from plum/black to the
   palette's warm neutrals (ink #302D29, terre cuite, olive sèche). No blend mode added; touch keeps normal blending. */
.scene--forest { background: #9A8A5E; }
.sky__d { background: linear-gradient(180deg, #C99A8C 0%, #DAB4B4 50%, #E9C9A6 100%); }
/* the grade only deepens the outer frame a little (warm terre / olive), the clearing stays clear */
.grade--night { background: radial-gradient(125% 100% at 50% 56%, rgba(255, 246, 232, 0) 46%, rgba(167, 104, 91, .26) 82%, rgba(132, 133, 67, .42) 100%); mix-blend-mode: multiply; }
html.touch .grade--night { mix-blend-mode: normal; background: radial-gradient(125% 100% at 50% 56%, rgba(96, 72, 48, 0) 50%, rgba(96, 72, 48, .14) 84%, rgba(80, 70, 40, .26) 100%); }
/* "night" chrome over the bright forest: warm ink glass instead of plum */
.theme-night .cta { background: rgba(48, 45, 41, .3); }
.theme-night .rail { background: rgba(48, 45, 41, .38); box-shadow: 0 10px 30px -18px rgba(48, 45, 41, .6), inset 0 0 0 1px rgba(218, 180, 180, .25); }
.theme-night .brand__light { filter: drop-shadow(0 0 10px rgba(48, 45, 41, .55)); }
.theme-night .opening__cue::before { background: radial-gradient(closest-side, rgba(48, 45, 41, .55), rgba(48, 45, 41, .24) 58%, rgba(48, 45, 41, 0)); }
.theme-night .opening__cue span { text-shadow: 0 0 12px rgba(48, 45, 41, .8), 0 0 3px rgba(48, 45, 41, .65); }
.card--night { background: rgba(48, 45, 41, .5); box-shadow: 0 30px 90px -30px rgba(48, 45, 41, .55); }
html.touch .card--night { background: rgba(48, 45, 41, .88); }
html.touch .theme-night .rail { background: rgba(48, 45, 41, .8); }
html.touch .theme-night .cta { background: rgba(48, 45, 41, .66); }
/* /v3 houppah */

/* ================================================================== v4 — retours du 19.11.2026
   Event facts read first: date, then the time as its own line, then the place (larger, full ink).
   RSVP: one « Oui / Non » per event; « Oui » opens a − n + guest counter for that event. */
.card__date { margin-top: 18px; }
.card__time { margin: 8px 0 0; font: 400 clamp(22px, 1.9vw, 27px)/1.1 var(--font-display); letter-spacing: .06em; color: var(--ink); }
.card__time--tbc { font: italic 400 clamp(18px, 1.5vw, 21px)/1.2 var(--font-serif); letter-spacing: 0; color: var(--ink-2); }
.card__place { margin-top: 12px; font-size: 19px; line-height: 1.4; color: var(--ink); }
.card--night .card__time, .card--night .card__place { color: inherit; }
@media (max-width: 760px) {
  .card__date { margin-top: 10px; }
  .card__time { margin-top: 6px; font-size: 21px; }
  .card__place { margin-top: 6px; font-size: 17px; }
}
@media (max-height: 560px) and (orientation: landscape) {
  .card__time { margin-top: 4px; font-size: 18px; }
}

.field--events legend i { margin-left: .4em; color: var(--ink-2); }

/* ================================================================== v5 typographie — 19.11.2026
   Choix du couple : « Inter + italique Newsreader ». Everything is Inter (variable 100–900, optical size 14–32),
   except the « & », the dates, the time placeholder and the sentences, which use Newsreader italic.
   Names and titles drop the tracked Bodoni capitals for sentence case, light weight and tight tracking. */
:root {
  --font-display: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-ui: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Newsreader", Georgia, serif;          /* only ever used in italic from here on */
  --font-text: "Inter", "Helvetica Neue", Arial, sans-serif;
}
html { font-optical-sizing: auto; }
body { font-family: var(--font-text); font-size: 16.5px; }
.opening__names {
  font: 200 clamp(36px, 10vw, calc(46px + 2.2vw))/1 var(--font-display); letter-spacing: -.045em; text-transform: none; padding-left: 0;
}
.finale__names { font: 200 clamp(34px, 9.4vw, calc(40px + 1.8vw))/1.02 var(--font-display); letter-spacing: -.045em; text-transform: none; padding-left: 0; }
.opening__names .amp, .finale__names em { font-weight: 300; font-size: 1.04em; margin: 0 .06em; letter-spacing: 0; }
.opening__dates, .card__date, .card__text, .finale__line, .sheet__note, .rsvp__merci, .card__time--tbc { font-weight: 300; }
.card__date { font-weight: 400; }
.card__eyebrow span { font-family: var(--font-display); font-weight: 600; letter-spacing: .04em; }
.card__title { font: 500 clamp(30px, 2.7vw, 40px)/1.02 var(--font-display); letter-spacing: -.035em; text-transform: none; }
.card__time { font: 500 clamp(22px, 1.9vw, 27px)/1.1 var(--font-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.card__time--tbc { font: italic 300 clamp(19px, 1.6vw, 22px)/1.2 var(--font-serif); letter-spacing: 0; color: var(--ink-2); }
.card__place { font: 400 17px/1.45 var(--font-text); letter-spacing: -.005em; }
.sheet__title { font: 500 clamp(30px, 3.2vw, 38px)/1.05 var(--font-display); letter-spacing: -.035em; text-transform: none; }
.field input:not([type=checkbox]):not([type=radio]), .field textarea { font: 400 17px/1.35 var(--font-text); }
.ev__name { font: 500 18px/1.2 var(--font-text); letter-spacing: -.015em; }
.sheet__list dd { font-family: var(--font-text); }
@media (max-width: 760px) {
  .card__title { font-size: 29px; }
  .card__place { font-size: 16px; }
}
@media (max-height: 560px) and (orientation: landscape) {
  .card__title { font-size: 24px; }
}

/* ================================================================== RSVP sbevent26 (sb-connect) — 19.11.2026
   The script sets the state (sb-allow-<type> on the root, sb-on / sb-yes, hidden, disabled); this only styles it.
   An event block shows only when the root allows it; counters and names only after « Oui ». */
.rsvp [hidden] { display: none !important; }
.rsvp__status { margin: 18px 0 0; font: italic 300 18px/1.45 var(--font-serif); color: var(--ink-2); }
.rsvp__hello { margin: 16px 0 4px; font: italic 300 20px/1.4 var(--font-serif); color: var(--ink); text-wrap: pretty; }
.rsvp__hello span { font-style: normal; font-family: var(--font-text); font-weight: 500; letter-spacing: -.01em; }
.rsvp__body { margin-top: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 380px) { .field-row { grid-template-columns: 1fr; } }
.field--events { margin-top: 4px; }
[data-sb-event] { display: none; padding: 16px 0; border-top: 1px solid var(--border-subtle); }
.rsvp.sb-allow-mairie [data-sb-event="mairie"], .rsvp.sb-allow-henne [data-sb-event="henne"], .rsvp.sb-allow-houppa [data-sb-event="houppa"] { display: block; }
.field--events [data-sb-event]:last-of-type { border-bottom: 1px solid var(--border-subtle); }
.ev__name { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; margin: 0 0 12px; color: var(--ink); }
.ev__name span { font: italic 300 16px/1.3 var(--font-serif); letter-spacing: 0; text-transform: none; color: var(--ink-2); }
.ev__choice { display: inline-flex; padding: 3px; border: 1px solid var(--border-subtle); border-radius: 999px; background: rgba(255, 255, 255, .6); }
.ev__choice button { min-width: 72px; min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: none; font: 500 11px/1 var(--font-ui); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); cursor: pointer; transition: background-color .25s var(--ease), color .25s var(--ease); }
.ev__choice button.sb-on { background: var(--terre); color: #FFF8EC; }
.ev__choice button[data-sb-answer="no"].sb-on { background: var(--ink-2); }
.ev__choice button:focus-visible, .ev__nb button:focus-visible, .ev__member:focus-visible { outline: 2px solid var(--terre); outline-offset: 2px; }
.ev__steps, .ev__members { display: none; }
[data-sb-event].sb-yes .ev__steps:not([hidden]) { display: grid; gap: 6px; margin-top: 14px; animation: ev-in .35s var(--ease) both; }
[data-sb-event].sb-yes .ev__members:not([hidden]) { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; animation: ev-in .35s var(--ease) both; }
@keyframes ev-in { from { opacity: 0; transform: translateY(-4px); } }
.ev__count { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.ev__label { font: 400 16px/1.3 var(--font-text); color: var(--ink); }
.ev__max { font: italic 300 15px/1 var(--font-serif); color: var(--ink-2); }
.ev__nb { display: inline-flex; align-items: center; gap: 6px; }
.ev__nb button { width: 38px; height: 38px; border: 1px solid var(--border-subtle); border-radius: 50%; background: rgba(255, 255, 255, .72); font: 300 20px/1 var(--font-ui); color: var(--terre); cursor: pointer; transition: opacity .2s; }
.ev__nb button:disabled { opacity: .35; cursor: default; }
.ev__nb b { min-width: 2ch; text-align: center; font: 500 21px/1 var(--font-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--ink); }
.ev__member { display: inline-flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 16px 0 12px; border: 1px solid var(--border-subtle); border-radius: 999px; background: rgba(255, 255, 255, .6); font: 400 15.5px/1 var(--font-text); color: var(--ink-2); cursor: pointer; transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease); }
.ev__tick { width: 18px; height: 18px; border: 1px solid currentColor; border-radius: 50%; display: grid; place-items: center; }
.ev__member.sb-on { border-color: var(--terre); background: rgba(167, 104, 91, .1); color: var(--ink); }
.ev__member.sb-on .ev__tick { border-color: var(--terre); background: var(--terre); }
.ev__member.sb-on .ev__tick::after { content: ""; width: 7px; height: 4px; margin-top: -2px; border: solid #FFF8EC; border-width: 0 0 1.6px 1.6px; transform: rotate(-45deg); }
.rsvp__error { min-height: 1.4em; margin: 4px 0 0; font: italic 300 16px/1.4 var(--font-serif); color: var(--rose-profond, #893941); }
.rsvp__error:empty { min-height: 0; }
[data-sb-submit].sb-busy { opacity: .55; pointer-events: none; }
.ev__choice button, .ev__nb button, .ev__member { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
@media (max-width: 380px) { .ev__choice button { min-width: 60px; padding: 0 14px; } }
@media (prefers-reduced-motion: reduce) { .ev__steps, .ev__members { animation: none !important; } }


/* ================================================================== v6 typographie « Manuscrit » — 22.11.2026
   Choix du couple (planche typographies/modernes.html, piste E) + hiérarchie simplifiée. FOUR styles, no more:
     1. hand  — Nothing You Could Do, terre cuite: the personal voice only (the names, each event's date, the
                greeting / thanks of the form, the passage line)
     2. title — Hanken Grotesk 300, ink (card and sheet titles)
     3. text  — Hanken Grotesk 400, ink (secondary: ink-2); time and place share ONE line of it
     4. label — Hanken Grotesk 500, small tracked capitals, ink-2 (buttons, field labels, rail, cue)
   No italics, no second accent colour, no « III · La cérémonie » line. */
:root {
  --font-hand: "Nothing You Could Do", "Bradley Hand", cursive;
  --font-display: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-ui: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-text: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif; /* (the old italic serif role is gone) */
}
/* 1 · hand */
.opening__names, .finale__names { font: 400 min(9.4vw, 58px)/1.5 var(--font-hand); letter-spacing: 0; text-transform: none; padding: 0 .2em; color: var(--terre); rotate: -3deg; }
.finale__names { font-size: min(8.6vw, 50px); }
.opening__names .amp, .finale__names em { font: inherit; font-style: normal; color: inherit; margin: 0 .05em; }
.card__date { margin: 6px 0 0; font: 400 clamp(22px, 1.9vw, 27px)/1.5 var(--font-hand); letter-spacing: 0; color: var(--terre); }
.passage { font: 400 clamp(21px, 1.9vw, 28px)/1.5 var(--font-hand); font-style: normal; color: var(--terre); }
.rsvp__hello { font: 400 22px/1.5 var(--font-hand); font-style: normal; color: var(--terre); }
.rsvp__hello span { font: inherit; letter-spacing: 0; }
.rsvp__merci { font: 400 40px/1.3 var(--font-hand); font-style: normal; }
/* 2 · title */
.card__title, .sheet__title { font: 300 clamp(32px, 2.9vw, 42px)/1.04 var(--font-display); letter-spacing: -.035em; text-transform: none; color: var(--ink); }
/* 3 · text */
.card__place { margin: 8px 0 0; font: 400 17px/1.45 var(--font-text); letter-spacing: -.005em; color: var(--ink); }
.finale__line { font: 400 clamp(17px, 1.4vw, 19px)/1.5 var(--font-text); font-style: normal; color: var(--ink); }
.sheet__note, .rsvp__status, .rsvp__error, .ev__name span, .ev__max, .field i { font-family: var(--font-text); font-style: normal; font-weight: 400; }
.sheet__note, .rsvp__status { font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.ev__name { font: 400 19px/1.25 var(--font-text); letter-spacing: -.015em; }
.ev__name span { font-size: 15px; }
.ev__nb b { font: 400 19px/1 var(--font-text); }
/* 4 · label */
.opening__dates { margin-top: 14px; font: 500 11px/1.3 var(--font-ui); letter-spacing: .28em; text-transform: uppercase; color: var(--ink-2); padding-left: .28em; }
.card__more, .sheet__eyebrow, .sheet__actions a { color: var(--ink-2); }
.sheet__eyebrow:empty { display: none; }
@media (max-width: 760px) {
  .card__title { font-size: 30px; }
  .card__date { margin-top: 4px; font-size: 21px; }
  .card__place { margin-top: 6px; font-size: 16px; }
}
@media (max-height: 560px) and (orientation: landscape) {
  .card__title { font-size: 24px; } .card__date { font-size: 18px; margin-top: 2px; } .card__place { font-size: 15px; margin-top: 4px; }
}


/* ================================================================== sound switch of the header — 23.11.2026
   Same glass pill as « Répondre »; four bars that dance while the music plays (js/music.js). */
.top__right { display: flex; align-items: center; gap: 8px; }
.snd { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--ui);
  border: 1px solid color-mix(in srgb, var(--ui-accent) 55%, transparent); background: color-mix(in srgb, var(--creme) 38%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: opacity .8s var(--ease); }
html:not(.is-ready) .snd { opacity: 0; pointer-events: none; }
.snd__bars { display: inline-flex; align-items: flex-end; gap: 2.5px; height: 13px; }
.snd__bars i { width: 1.5px; height: 100%; background: currentColor; transform-origin: 50% 100%; transform: scaleY(.25); }
.snd[aria-pressed="true"] .snd__bars i { animation: snd-bar 1.2s ease-in-out infinite; }
.snd[aria-pressed="true"] .snd__bars i:nth-child(2) { animation-delay: -.35s; }
.snd[aria-pressed="true"] .snd__bars i:nth-child(3) { animation-delay: -.7s; }
.snd[aria-pressed="true"] .snd__bars i:nth-child(4) { animation-delay: -.95s; }
@keyframes snd-bar { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .snd[aria-pressed="true"] .snd__bars i { animation: none; transform: scaleY(.7); } }

/* sheets scroll by themselves on phones (24.11.2026): contained, with momentum; svh so the iOS toolbar never hides the end */
.sheet { max-height: calc(100svh - 32px); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; touch-action: pan-y; }

/* ---------------------------------------------- infos pratiques (24.11.2026): navettes, hôtels, cadeaux
   Same four styles as the rest: hand (none here), light title, text, small label. */
.snd--infos span { font: 500 15px/1 var(--font-text); }
.finale__more { margin: 18px 0 0; }
.finale__more button { padding: 8px 4px; font: 500 10.5px/1 var(--font-ui); letter-spacing: .3em; text-transform: uppercase; color: var(--ink);
  text-decoration: underline; text-underline-offset: 6px; text-decoration-color: color-mix(in srgb, var(--terre) 60%, transparent); }
.finale__dates { margin-top: 16px; }
.infos [hidden] { display: none !important; }
.infos__sec { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--hair); }
.sheet__sun + .infos__sec { margin-top: 0; padding-top: 0; border-top: 0; }
.infos__label { margin: 0 0 12px; font: 500 10.5px/1.3 var(--font-ui); letter-spacing: .3em; text-transform: uppercase; color: var(--ink-2); }
.infos__text { margin: 0; font: 400 16px/1.55 var(--font-text); color: var(--ink); text-wrap: pretty; }
.hotel + .hotel { margin-top: 26px; }
.hotel__name { margin: 0; font: 300 24px/1.15 var(--font-display); letter-spacing: -.03em; color: var(--ink); }
.hotel__addr { margin: 6px 0 10px; font: 500 10px/1.4 var(--font-ui); letter-spacing: .22em; text-transform: uppercase; color: var(--ink-2); }
.hotel__promo { display: inline-block; margin: 14px 0 0; padding: 9px 14px; border: 1px dashed color-mix(in srgb, var(--terre) 70%, transparent); border-radius: 10px;
  font: 500 10px/1 var(--font-ui); letter-spacing: .22em; text-transform: uppercase; color: var(--ink-2); }
.hotel__promo b { margin-left: .5em; font: 500 14px/1 var(--font-text); letter-spacing: .08em; color: var(--terre); -webkit-user-select: all; user-select: all; }
.hotel__links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 14px 0 0; }
.hotel__links a { font: 500 10.5px/1.6 var(--font-ui); letter-spacing: .26em; text-transform: uppercase; color: var(--ink); text-underline-offset: 6px; text-decoration-color: color-mix(in srgb, var(--terre) 60%, transparent); }
.hotel__links a + a { letter-spacing: .12em; color: var(--ink-2); text-decoration: none; }
.infos__actions { margin: 18px 0 0; }
.infos__actions .finale__cta { margin-top: 0; text-decoration: none; }
@media (max-width: 760px) { .top__right { gap: 6px; } .hotel__name { font-size: 22px; } }
.infos__actions .finale__cta { display: flex; width: 100%; min-width: 0; padding: 17px 16px; letter-spacing: .22em; white-space: nowrap; }

/* ---------------------------------------------- 01.12.2026: Waze links on the cards, « Infos pratiques » as a stop, « Infos » in the header */
.card__way { margin-top: 14px; padding: 6px 0; gap: 0; font: 500 10.5px/1.6 var(--font-ui); letter-spacing: .26em; text-transform: uppercase; color: var(--ink);
  text-decoration: underline; text-underline-offset: 6px; text-decoration-color: color-mix(in srgb, var(--terre) 60%, transparent); }
.card--infos .card__title { padding-right: 0; }
.card__info { margin-top: 16px; font: 400 16px/1.5 var(--font-text); }
.card__info b { display: block; margin-bottom: 3px; font: 500 10px/1.4 var(--font-ui); letter-spacing: .26em; text-transform: uppercase; color: var(--ink-2); }
.card--infos [hidden] { display: none !important; }
.cta--infos { cursor: pointer; }
.cta--infos::before { display: none; }
html:not(.is-ready) .cta--infos { opacity: 0; pointer-events: none; }
@media (max-width: 760px) { .cta--infos { padding: 12px 14px; letter-spacing: .2em; } .cta { padding-inline: 16px; } }


/* ================================================================== RSVP · question « navette » (sb-connect 1.2) — 01.12.2026
   [data-sb-question] inside an event block: shown only after « Oui » to that event, same pill as the answer.
   The script sets .sb-on / aria-pressed on the chosen button and .sb-missing on a required block left unanswered. */
.ev__q { display: none; }
[data-sb-event].sb-yes .ev__q { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--border-subtle); animation: ev-in .35s var(--ease) both; }
.ev__q .ev__label { flex: 1 1 12em; }
.ev__q .ev__choice button { min-width: 64px; }
.ev__choice button[data-sb-choice="non"].sb-on { background: var(--ink-2); }
.ev__q.sb-missing .ev__choice { border-color: var(--rose-profond, #893941); box-shadow: 0 0 0 2px rgba(137, 57, 65, .18); }
.ev__q.sb-missing .ev__label { color: var(--rose-profond, #893941); }
@media (prefers-reduced-motion: reduce) { .ev__q { animation: none !important; } }

/* the shuttle question reads as a sub-item of its event (01.12.2026): indented under it, tied by a terre cuite line */
[data-sb-event].sb-yes .ev__q { margin: 14px 0 2px 14px; padding: 10px 0 10px 16px; border-top: 0; border-left: 2px solid color-mix(in srgb, var(--terre) 55%, transparent); }
.ev__q .ev__label { font-size: 15px; color: var(--ink-2); }
.ev__q .ev__label b { display: block; margin-bottom: 2px; font: 500 10px/1.4 var(--font-ui); letter-spacing: .26em; text-transform: uppercase; color: var(--terre); }
.ev__q .ev__choice button { min-height: 36px; }

/* Infos stop: the gift link beside « Tout voir » */
.card__links { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 14px 0 0; }
.card__links .card__way { margin-top: 0; }
