@charset "UTF-8";
/* Gabriel & Marie — styles du site invités
   1. Base  2. Composants  3. Entrée  4. Composants des autres pages  5. Accueil
   6. Invitation animée  7. RSVP  8. Pages simples  9. Mouvement réduit
   Aucune règle de style dans le HTML (CSP style-src 'self'). */

/* 1. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--c-papier);
  color: var(--c-bordeaux);
  font-family: var(--f-text);
  font-size: var(--t-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 6px; }
a:hover { color: var(--c-encre); }
h1, h2, h3, h4, p { margin: 0; font-weight: 400; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 1px solid currentColor; outline-offset: 6px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Typographie */
sup { font-size: .6em; line-height: 0; }
.script { font-family: var(--f-script); font-weight: 400; line-height: 1; }
.display { font-family: var(--f-display); font-weight: 400; letter-spacing: -0.02em; line-height: 1; }
.display em, .display i { font-style: italic; }
.label { font-size: var(--t-label); letter-spacing: var(--ls-label); text-transform: uppercase; line-height: 1.4; }
.lead { font-style: italic; font-size: var(--t-lead); line-height: 1.6; }
.muted { color: var(--c-attenue); font-style: italic; }

/* Retours à la ligne : titres et phrases courtes équilibrés, pas de mot seul en fin de paragraphe */
h1, h2, h3, .script, .label, .lead, .rsvp-band__phrase, .site-footer__phrase,
.inv-sat__intro, .inv-sat__address, .inv-sat__time, .inv-fri__place, .inv-fri__venue, .event__name, .event__venue, .event__address { text-wrap: balance; }
p { text-wrap: pretty; }

.container { width: 100%; max-width: var(--max-w); margin-inline: auto; padding-inline: var(--gutter); }

/* 2. Composants ------------------------------------------------------------ */

/* Double filet (cartes imprimées) */
.frame { border: var(--frame-line) solid currentColor; padding: var(--frame-gap); }
.frame__inner { border: var(--frame-line) solid currentColor; height: 100%; }
.frame--soft { border-color: rgba(251, 247, 240, .85); }
.frame--soft > .frame__inner { border-color: rgba(251, 247, 240, .85); }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 30px;
  border: 1px solid currentColor; background: transparent; color: inherit;
  font-family: var(--f-text); font-size: 0.75rem; letter-spacing: var(--ls-label); text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: background-color .3s, color .3s, border-color .3s;
}
.btn--solid { background: var(--c-bordeaux); border-color: var(--c-bordeaux); color: var(--c-papier); }
.btn--solid:hover { background: var(--c-encre); border-color: var(--c-encre); color: var(--c-papier); }
.btn--outline:hover { background: var(--c-bordeaux); color: var(--c-papier); }
.btn--ivory { background: var(--c-ivoire-texte); border-color: var(--c-ivoire-texte); color: var(--c-bordeaux); }
.btn--ivory:hover { background: transparent; color: var(--c-ivoire-texte); }
.btn--ghost-ivory { color: var(--c-ivoire-texte); }
.btn--ghost-ivory:hover { background: var(--c-ivoire-texte); color: var(--c-bordeaux); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .4; cursor: not-allowed; }
.btn--block { width: 100%; }

/* Boule à facettes : latitudes fixes + 12 méridiens animés en largeur (illusion de rotation).
   Couleur = currentColor ; taille par modificateur. */
.ball {
  --ball-size: 150px; --ball-lat: 7px; --ball-period: var(--d-ball-idle);
  position: relative; display: block; flex: none; width: var(--ball-size); height: var(--ball-size);
  border: 1.5px solid currentColor; border-radius: 50%; overflow: hidden;
}
.ball--sm { --ball-size: 84px;  --ball-lat: 5px; }
.ball--lg { --ball-size: 230px; --ball-lat: 9px; --ball-period: var(--d-ball-entrance); }
.ball--entrance-mobile { --ball-size: 150px; --ball-lat: 7px; --ball-period: var(--d-ball-entrance); }
.ball__lat {
  display: block; position: absolute; inset: 0; opacity: .75;
  background: repeating-linear-gradient(to bottom, transparent 0 var(--ball-lat), currentColor var(--ball-lat) calc(var(--ball-lat) + 1px));
}
.ball__mer {
  display: block; position: absolute; top: -1px; bottom: -1px; left: 50%; transform: translateX(-50%);
  border-left: 1px solid currentColor; border-right: 1px solid currentColor; border-radius: 50%;
  opacity: .75; animation: ball-mer var(--ball-period) ease-in-out infinite;
}
@keyframes ball-mer { 0%, 100% { width: 0; } 50% { width: 100%; } }
.ball__mer:nth-child(3)  { animation-delay: calc(var(--ball-period) * -1 / 12); }
.ball__mer:nth-child(4)  { animation-delay: calc(var(--ball-period) * -2 / 12); }
.ball__mer:nth-child(5)  { animation-delay: calc(var(--ball-period) * -3 / 12); }
.ball__mer:nth-child(6)  { animation-delay: calc(var(--ball-period) * -4 / 12); }
.ball__mer:nth-child(7)  { animation-delay: calc(var(--ball-period) * -5 / 12); }
.ball__mer:nth-child(8)  { animation-delay: calc(var(--ball-period) * -6 / 12); }
.ball__mer:nth-child(9)  { animation-delay: calc(var(--ball-period) * -7 / 12); }
.ball__mer:nth-child(10) { animation-delay: calc(var(--ball-period) * -8 / 12); }
.ball__mer:nth-child(11) { animation-delay: calc(var(--ball-period) * -9 / 12); }
.ball__mer:nth-child(12) { animation-delay: calc(var(--ball-period) * -10 / 12); }
.ball__mer:nth-child(13) { animation-delay: calc(var(--ball-period) * -11 / 12); }

/* Étoile à quatre branches (SVG 26×34). Taille explicite obligatoire :
   sans elle, la règle « svg { max-width: 100% } » l'étire à toute la largeur. */
.star { display: block; flex: none; width: 26px; height: auto; color: inherit; overflow: visible; }
.star--sm { width: 14px; }
@keyframes twinkle {
  0%, 100% { opacity: .9; transform: scale(1); }
  50%      { opacity: .3; transform: scale(.8); }
}

/* Champs soulignés */
.field-underline {
  display: block; width: 100%; min-height: var(--tap);
  padding: 8px 0; border: 0; border-bottom: 1px solid currentColor; border-radius: 0;
  background: transparent; color: inherit; text-align: center; font-size: 1.125rem;
  -webkit-appearance: none; appearance: none;
}
.field-underline::placeholder { color: currentColor; opacity: .45; }
.field-underline:focus { outline: none; border-bottom-width: 2px; padding-bottom: 7px; }
select.field-underline { cursor: pointer; text-align: left; padding-right: 18px;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(-45deg, transparent 50%, currentColor 50%);
  background-position: right 6px center, right 1px center; background-size: 5px 5px; background-repeat: no-repeat; }
select.field-underline option { color: var(--c-bordeaux); background: var(--c-blanc); }

.phone-field { display: flex; align-items: flex-end; gap: var(--s-2); width: 100%; }
.phone-field__country { flex: 0 1 auto; width: auto; max-width: 48%; }
.phone-field__number { flex: 1 1 auto; min-width: 0; }

.link-back {
  display: inline-flex; align-items: center; min-height: var(--tap);
  font-size: var(--t-label); letter-spacing: var(--ls-label); text-transform: uppercase;
  text-decoration: underline;
}

/* 3. Entrée ---------------------------------------------------------------- */
body.is-entrance { background: var(--c-bordeaux); color: var(--c-ivoire-texte); }
body.is-entrance a:hover { color: inherit; }

.entrance {
  --entrance-pad: clamp(10px, 2vw, 20px);
  position: relative; display: flex;
  min-height: 100vh; min-height: 100svh;
  padding: var(--entrance-pad);
  background: var(--c-bordeaux); color: var(--c-ivoire-texte);
  overflow: hidden;
}
.entrance > .frame { position: relative; z-index: 1; flex: 1; display: flex; }

/* Colonne unique centrée : tous les éléments partagent le même axe vertical. */
.entrance .frame__inner {
  position: relative; flex: 1;
  display: flex; flex-direction: column; align-items: center;
  padding: clamp(3.5rem, 9vh, 5rem) var(--gutter) clamp(1.5rem, 4vh, 2.5rem);
  text-align: center; overflow: hidden;
}

/* Coins */
.entrance__corner {
  position: absolute; top: clamp(1rem, 2.5vh, 1.5rem);
  font-size: var(--t-label); letter-spacing: var(--ls-label); text-transform: uppercase; line-height: 1.4;
  opacity: .8;
}
.entrance__corner--left  { left: clamp(1rem, 3vw, 1.75rem); }
.entrance__corner--right { right: clamp(1rem, 3vw, 1.75rem); }

/* Boule suspendue. margin-top:auto + margin-top:auto du domaine = groupe centré verticalement. */
.hanging {
  position: relative; display: flex; flex-direction: column; align-items: center;
  margin-top: auto;
  transform-origin: 50% -100vh;
  animation: swing var(--d-swing) ease-in-out infinite alternate;
}
@keyframes swing { from { transform: rotate(-.35deg); } to { transform: rotate(.35deg); } }
.hanging__thread {
  position: absolute; bottom: 100%; left: 50%;
  width: 1px; height: 100vh; margin-left: -.5px;
  background: currentColor; opacity: .7;
}
.hanging__cap {
  display: block; width: 16px; height: 10px; margin-bottom: -1px;
  border: 1.5px solid currentColor; border-bottom: 0;
}

.entrance__ball-wrap { position: relative; }
.entrance__ball {
  display: block; padding: 0; border: 0; border-radius: 50%;
  background: none; color: inherit; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.entrance .ball--lg { --ball-size: clamp(140px, min(32vw, 28svh), 230px); }

.entrance__ball-wrap > .star { position: absolute; top: 4%; right: -18%; animation: twinkle 3.2s ease-in-out infinite; }
.entrance__ball-wrap > .star--sm { top: 66%; right: -14%; animation-delay: -1.1s; }
.entrance__ball-wrap > .star--left { top: 30%; right: auto; left: -16%; animation-delay: -2.2s; }

/* Prénoms */
.entrance__names {
  margin-top: clamp(1.25rem, 4vh, 2.75rem);
  font-size: min(var(--t-names), 13vw);
  line-height: 1.1; padding-block: .05em;
  text-wrap: balance;
}

/* Panneaux : largeur = celle du cadre intérieur (plus de largeur fixe de 420px).
   Le panneau actif est dans le flux ; les autres sont superposés, invisibles. */
.entrance__panels {
  position: relative; width: 100%; max-width: var(--max-w-text);
  margin-top: clamp(1rem, 3.5vh, 2.25rem);
}
.entrance__panel {
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; flex-direction: column; align-items: center;
  margin-inline: auto;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out), visibility 0s linear .6s;
}
.entrance[data-stage="password"] .entrance__panel--password,
.entrance[data-stage="choice"] .entrance__panel--choice,
.entrance[data-stage="phone"] .entrance__panel--phone {
  position: relative; opacity: 1; visibility: visible; transform: none;
  transition-delay: 0s;
}
.entrance__panel--password,
.entrance__panel--phone { max-width: 26.25rem; gap: var(--s-2); }

.entrance__panel label:not(.visually-hidden) {
  font-size: var(--t-label); letter-spacing: var(--ls-label); text-transform: uppercase; line-height: 1.4;
  padding-left: var(--ls-label); /* compense l'espacement après la dernière lettre */
}
.entrance__panel--password .field-underline { letter-spacing: .3em; }

.entrance__lead {
  font-style: italic; font-size: var(--t-lead); line-height: 1.5;
  max-width: 34ch; text-wrap: balance;
}

/* Deux boutons de même largeur, groupe centré sur l'axe. */
.entrance__choices {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  justify-content: center; gap: var(--s-2);
  margin-top: clamp(1.25rem, 3.5vh, 2rem);
}
.entrance .btn { padding-left: 30px; padding-right: calc(30px - var(--ls-label)); }
.entrance__choices .btn { white-space: nowrap; }

.entrance__message { min-height: 1.4em; font-size: var(--t-small); font-style: italic; }
.entrance__message:empty { min-height: 0; }
.entrance__submit { margin-top: var(--s-1); }
.entrance__phone-actions {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: var(--s-2) var(--s-4); margin-top: var(--s-1);
}

/* Domaine */
.entrance__domain {
  margin-top: auto; padding-top: clamp(2rem, 6vh, 4rem);
  font-size: var(--t-label); letter-spacing: var(--ls-label); text-transform: uppercase; line-height: 1.4;
  padding-left: var(--ls-label); /* compense l'espacement après la dernière lettre */
  opacity: .75;
}

/* Petites illustrations dans les coins bas du cadre (coupes, vin) */
.entrance__ill { position: absolute; bottom: clamp(14px, 3svh, 32px); height: clamp(38px, 8svh, 76px); width: auto; opacity: .92; pointer-events: none; }
.entrance__ill--left { left: clamp(14px, 3vw, 40px); }
.entrance__ill--right { right: clamp(18px, 3.5vw, 48px); }

/* Étoiles de fond */
.entrance__spots { position: absolute; inset: 0; z-index: 0; pointer-events: none; color: var(--c-ivoire-texte); }
.spot { position: absolute; width: 12px; opacity: .6; animation: twinkle 4.8s ease-in-out infinite; }
.spot--big { width: 20px; }
.spot--1  { top: 12%; left: 9%;  animation-delay: -0.3s; }
.spot--2  { top: 22%; left: 18%; animation-delay: -1.9s; }
.spot--3  { top: 8%;  left: 30%; animation-delay: -3.1s; }
.spot--4  { top: 38%; left: 6%;  animation-delay: -0.9s; }
.spot--5  { top: 15%; left: 86%; animation-delay: -2.4s; }
.spot--6  { top: 28%; left: 78%; animation-delay: -4.0s; }
.spot--7  { top: 6%;  left: 68%; animation-delay: -1.4s; }
.spot--8  { top: 44%; left: 93%; animation-delay: -3.6s; }
.spot--9  { top: 70%; left: 12%; animation-delay: -2.8s; }
.spot--10 { top: 82%; left: 24%; animation-delay: -0.5s; }
.spot--11 { top: 60%; left: 4%;  animation-delay: -4.4s; }
.spot--12 { top: 90%; left: 8%;  animation-delay: -1.7s; }
.spot--13 { top: 74%; left: 88%; animation-delay: -3.3s; }
.spot--14 { top: 86%; left: 74%; animation-delay: -0.7s; }
.spot--15 { top: 58%; left: 96%; animation-delay: -2.1s; }
.spot--16 { top: 93%; left: 60%; animation-delay: -3.9s; }

/* Mobile : boutons empilés, même largeur, centrés */
@media (max-width: 560px) {
  .entrance .ball--lg { --ball-lat: 7px; }
  .entrance__choices { grid-auto-flow: row; width: 100%; max-width: 20rem; }
  .entrance__choices .btn { width: 100%; }
  .spot { width: 9px; }
  .spot--big { width: 14px; }
}
/* Téléphones : l'entrée tient toujours sur un écran (tailles qui suivent la hauteur visible) */
@media (max-width: 560px) {
  .entrance .frame__inner { padding: clamp(2.5rem, 7svh, 4rem) var(--gutter) clamp(1rem, 3svh, 1.75rem); }
  .entrance .ball--lg { --ball-size: clamp(104px, min(32vw, 24svh), 200px); }
  .entrance__names { margin-top: clamp(.75rem, 2.5svh, 1.75rem); font-size: min(var(--t-names), 12vw); }
  .entrance__panels { margin-top: clamp(.75rem, 2.5svh, 2rem); }
  .entrance__choices { margin-top: clamp(.75rem, 2.5svh, 1.5rem); }
  .entrance .btn { min-height: 44px; }
  .entrance__domain { padding-top: clamp(1rem, 4svh, 3rem); }
}
@media (max-height: 640px) {
  .entrance .frame__inner { padding-top: 3rem; }
  .entrance__domain { padding-top: 1.5rem; }
}

/* Choix de la langue FR · EN */
.lang-switch { display: inline-flex; align-items: center; margin: 0; font-size: var(--t-label); letter-spacing: var(--ls-label); text-transform: uppercase; line-height: 1.4; }
.lang-switch a { text-decoration: none; opacity: .65; }
.lang-switch a:hover { opacity: 1; text-decoration: underline; }
.lang-switch [aria-current] { text-decoration: underline; text-underline-offset: 5px; }
.site-nav .lang-switch { min-height: var(--tap); padding: 0 4px; font-size: .75rem; letter-spacing: .24em; }
.site-nav .lang-switch a { display: inline; min-height: 0; padding: 0; }
.rsvp__lang { color: var(--c-ivoire-texte); font-size: .6875rem; }

/* 4. Composants des autres pages (accueil, invitation) ---------------------
   L'entrée garde ses propres règles ci-dessus ; ici la version de la maquette. */
.ornament { width: 120px; height: auto; }

/* Boule suspendue à fil court qui se balance (accueil, invitation) */
.hanging.swing { margin-top: 0; transform-origin: top center; animation: swing-hang var(--d-swing) ease-in-out infinite; }
.hanging.swing .hanging__thread { position: static; display: block; width: 1px; height: var(--thread, 120px); margin-left: 0; opacity: 1; }
.hanging.swing .hanging__cap { width: 12px; height: 9px; margin-bottom: 0; border-radius: 6px 6px 0 0; }
@keyframes swing-hang { 0%, 100% { transform: rotate(1.6deg); } 50% { transform: rotate(-1.6deg); } }

/* Étoiles de l'invitation */
.inv-star { position: absolute; width: 22px; height: 28px; }
.inv-star.star--sm { width: 14px; height: 18px; }
.inv-back { background: none; border: 0; padding: 0 4px; color: inherit; cursor: pointer; }
@keyframes inv-twinkle { 0%, 100% { opacity: .3; transform: scale(.75); } 50% { opacity: 1; transform: scale(1); } }

/* 5. Accueil --------------------------------------------------------------- */
.site-header { border-bottom: 1px solid var(--c-bordeaux); }
.site-header__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-block: 10px; }
.site-header__logo img { width: 40px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 8px 32px; }
.site-nav a { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 4px; font-size: 0.75rem; letter-spacing: .24em; text-transform: uppercase; text-decoration: none; }
.site-nav a:hover { text-decoration: underline; }
.site-header .btn { min-height: var(--tap); padding: 0 22px; font-size: 0.6875rem; }

.hero { padding-top: 32px; }
.hero .frame__inner {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  position: relative; overflow: hidden;
}
.hero__text { padding: clamp(40px, 7vw, 104px) clamp(24px, 5vw, 80px); display: flex; flex-direction: column; justify-content: center; gap: 26px; }
.hero__names { font-size: var(--t-names); line-height: .95; }
.hero__tagline { font-style: italic; font-size: clamp(1.125rem, 1.6vw, 1.375rem); max-width: 30ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.hero__date {
  position: relative; min-height: 560px; background: transparent; /* même ivoire que la page */
  border-left: 1px solid var(--c-bordeaux);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding: 0 24px 56px;
}
.hero__ball { position: absolute; top: 0; left: 50%; transform: translateX(-50%); }
.hero__ball .hanging { --thread: 120px; }
.hero__numerals { font-family: var(--f-display); font-size: var(--t-numerals); line-height: .85; letter-spacing: -.03em; display: flex; align-items: baseline; gap: .12em; }
.hero__numerals em { font-size: .45em; }
.hero__month { margin-top: 18px; font-size: 0.8125rem; }

.welcome { max-width: var(--max-w-text); margin-inline: auto; padding: clamp(80px, 10vw, 140px) var(--gutter); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.welcome__title { font-size: clamp(2.4rem, 4vw, 3.4rem); line-height: 1.1; }
.welcome__signature { font-size: 2.75rem; }

.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; border-top: 1px solid var(--c-bordeaux); padding-top: 22px; margin-bottom: 40px; }
.section-head__title { display: flex; align-items: baseline; gap: 22px; }
.section-head__number { font-family: var(--f-display); font-size: 1.125rem; }
.section-head h2 { font-size: var(--t-h2); }
.section-head p { font-style: italic; max-width: 36ch; }

.programme { padding-bottom: clamp(80px, 9vw, 128px); }
.programme__days { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 24px 64px; }
.day__head { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 14px; }
.day__head h3 { font-size: var(--t-h3-script); }
.event { display: grid; grid-template-columns: 96px minmax(0, 1fr) 110px; gap: 20px; align-items: start; padding: 28px 0; border-top: 1px solid var(--c-filet); }
.event:last-child { border-bottom: 1px solid var(--c-filet); }
.event__time { font-family: var(--f-display); font-size: 2.5rem; line-height: 1; white-space: nowrap; }
.event__body { display: flex; flex-direction: column; gap: 6px; }
.event__name { font-size: 1.4375rem; }
.event__venue { font-style: italic; font-size: 1.0625rem; }
.event__address, .event__details { font-size: 0.9375rem; }
.event__details { font-style: italic; margin-top: 6px; }
.event__map { align-self: flex-start; margin-top: 6px; font-size: 0.75rem; letter-spacing: var(--ls-caps); text-transform: uppercase; }
.event__ill img { width: 100%; }
.event__ill--narrow img { width: 72%; }

.rsvp-band { background: var(--c-bordeaux); color: var(--c-ivoire-texte); padding: clamp(80px, 9vw, 128px) var(--gutter); }
.rsvp-band__inner { max-width: 55rem; margin-inline: auto; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; }
.rsvp-band__inner > img { width: 170px; }
.rsvp-band h2 { font-size: clamp(3.5rem, 7vw, 6rem); }
.rsvp-band__deadline { font-family: var(--f-display); font-size: clamp(1.125rem, 2vw, 1.5rem); letter-spacing: .18em; text-transform: uppercase; }
.rsvp-band__phrase { font-size: clamp(1.75rem, 3vw, 2.4rem); line-height: 1.2; }
.rsvp-band .btn { margin-top: 10px; }

.registry { max-width: 47.5rem; margin-inline: auto; padding: clamp(80px, 9vw, 128px) var(--gutter); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.registry h2 { font-size: clamp(2.75rem, 6vw, 4.75rem); }

.site-footer { background: var(--c-bordeaux); color: var(--c-ivoire-texte); }
.site-footer a:hover { color: var(--c-blanc); }
.site-footer__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-block: 48px; }
.site-footer__bar > img { width: 64px; }
.site-footer__center { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.site-footer__phrase { font-size: 1.75rem; line-height: 1.2; }
.br-mobile { display: none; } /* retour à la ligne choisi, seulement sur téléphone */
.site-footer__links { display: flex; flex-direction: column; align-items: flex-end; }
.site-header__toggle { display: none; }
.site-footer__contact { font-style: italic; font-size: 1.0625rem; min-height: var(--tap); display: flex; align-items: center; }
.site-footer a { font-style: italic; font-size: 1.0625rem; min-height: var(--tap); display: inline-flex; align-items: center; }
.site-footer__credit { border-top: 1px solid rgba(251, 247, 240, .35); padding-block: 18px 22px; text-align: center; font-style: italic; font-size: 0.8125rem; line-height: 1.6; }
.site-footer__credit a { display: inline; min-height: 0; font-size: inherit; text-underline-offset: 3px; }

@media (max-width: 640px) {
  /* En-tête mobile (planche « Accueil mobile ») : menu · monogramme · Répondre */
  .site-header { position: relative; }
  .site-header__bar { flex-wrap: nowrap; padding-block: 8px; }
  .site-header__toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 6px;
    width: var(--tap); height: var(--tap); padding: 0; background: none; border: 0; cursor: pointer; color: inherit;
  }
  .site-header__toggle span { display: block; width: 22px; height: 1px; background: currentColor; transition: transform .3s ease; }
  .site-header__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .site-header__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .site-header__logo img { width: 34px; }
  .site-header .btn { background: none; border: 0; color: inherit; padding: 0; font-size: 0.625rem; letter-spacing: .26em; text-decoration: underline; text-underline-offset: 5px; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 10;
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px;
    background: var(--c-papier); border-bottom: 1px solid var(--c-bordeaux);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { border-top: 1px solid var(--c-filet); min-height: 52px; }
  .site-nav a:first-child { border-top: 0; }
  .site-footer__links { align-items: center; }
  .hero { padding-top: 16px; }
  .hero__date { min-height: 0; border-left: 0; border-top: 1px solid var(--c-bordeaux); padding-top: 150px; padding-bottom: 40px; }
  .hero__ball .hanging { --thread: 56px; }
  .hero__date .ball { --ball-size: 84px; --ball-lat: 5px; }
  .hero__actions .btn { width: 100%; letter-spacing: .2em; padding-inline: 12px; }
  .event { grid-template-columns: 56px minmax(0, 1fr) 52px; gap: 14px; }
  .event__ill { padding-top: 4px; } /* petites illustrations gardées sur mobile */
  .event__time { font-size: 1.875rem; }
  .site-footer__bar { flex-direction: column; }
}

/* Accueil sur téléphone : échelle de tailles resserrée, moins de défilement */
@media (max-width: 640px) {
  /* En-tête toujours visible en haut de l'écran (menu, monogramme, Répondre) */
  .site-header { position: sticky; top: 0; z-index: 30; background: rgba(255, 253, 249, .96); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
  html { scroll-padding-top: 64px; }   /* les liens « Le programme », « Liste » ne passent pas sous l'en-tête */
  .hero { padding-top: 12px; }
  .hero__text { padding: 26px 20px 24px; gap: 14px; }
  .hero__names { font-size: 3.25rem; }
  .hero__tagline { font-size: 1rem; line-height: 1.5; }
  .hero__actions { gap: 10px; margin-top: 4px; }
  .hero__actions .btn { min-height: 44px; font-size: .6875rem; }
  .hero__date { padding: 112px 16px 22px; }
  .hero__ball .hanging { --thread: 34px; }
  .hero__date .ball { --ball-size: 62px; --ball-lat: 4px; }
  .hero__numerals { font-size: 4.5rem; }
  .hero__month { margin-top: 10px; font-size: .5625rem; letter-spacing: .2em; white-space: nowrap; }

  .welcome { padding: 48px var(--gutter); gap: 16px; }
  .welcome .ornament { width: 90px; }
  .welcome__title { font-size: 1.875rem; text-wrap: balance; }
  .welcome .lead { font-size: 1rem; text-wrap: pretty; }
  .welcome__signature { font-size: 1.75rem; }

  .section-head { padding-top: 16px; margin-bottom: 20px; gap: 8px; }
  .section-head__title { gap: 12px; }
  .section-head__number { font-size: .875rem; }
  .section-head h2 { font-size: 2.25rem; }
  .section-head p { font-size: .9375rem; }
  .programme { padding-bottom: 48px; }
  .programme__days { gap: 16px; }
  .day__head { padding-bottom: 8px; }
  .day__head h3 { font-size: 2rem; }
  .day__head .label { font-size: .5625rem; }
  .event { grid-template-columns: minmax(48px, auto) minmax(0, 1fr) 44px; gap: 12px; padding: 16px 0; }
  .event__time { font-size: 1.5rem; }
  .event__body { gap: 3px; }
  .event__name { font-size: 1.125rem; line-height: 1.3; }
  .event__venue { font-size: .9375rem; }
  .event__address, .event__details { font-size: .8125rem; }
  .event__map { margin-top: 0; padding-block: 12px; margin-bottom: -12px; font-size: .625rem; } /* zone de toucher plus grande */

  .rsvp-band { padding: 48px var(--gutter); }
  .rsvp-band__inner { gap: 14px; }
  .rsvp-band__inner > img { width: 110px; }
  .rsvp-band h2 { font-size: 3rem; }
  .rsvp-band__deadline { font-size: .875rem; letter-spacing: .14em; }
  .rsvp-band__phrase { font-size: 1.375rem; text-wrap: balance; }
  .rsvp-band .btn { min-height: 44px; font-size: .6875rem; }

  .registry { padding: 48px var(--gutter); gap: 14px; }
  .registry h2 { font-size: 2.25rem; }
  .registry .lead { font-size: 1rem; text-wrap: pretty; }
  .registry .btn { min-height: 44px; font-size: .6875rem; }

  .site-footer__bar { padding-block: 32px; gap: 14px; }
  .site-footer__bar > img { width: 48px; }
  .site-footer__phrase { font-size: 1.375rem; }
  .br-mobile { display: inline; }
  .site-footer__center .label { font-size: .5625rem; }
  .site-footer a, .site-footer__contact { font-size: .9375rem; min-height: 40px; }
  .site-footer__credit { font-size: .75rem; padding-block: 14px 18px; }
  .site-footer__credit a { font-size: inherit; min-height: 0; }
}

/* 6. Invitation animée ----------------------------------------------------- */
.is-invitation { background: var(--c-papier); }
.invitation { position: relative; min-height: 100vh; min-height: 100dvh; display: grid; }
.screen { grid-area: 1 / 1; display: none; padding: clamp(14px, 2vw, 28px); min-height: 100vh; min-height: 100dvh; }
.screen.is-active { display: flex; }
.screen > .frame { flex: 1; display: flex; min-width: 0; }
.screen .frame__inner {
  flex: 1; min-width: 0; position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.screen--friday { background: var(--c-bordeaux); color: var(--c-ivoire-texte); }
.screen--friday .frame__inner { justify-content: center; padding: 40px 64px 120px; }
.screen--saturday { background: var(--c-papier); color: var(--c-bordeaux); }
.screen--saturday .frame__inner { padding: 44px 64px 40px; }

/* Apparitions (texte) et tracé (illustrations), relancées à chaque affichage d'écran */
.screen.is-active .rv { opacity: 0; animation: rv var(--d-reveal) cubic-bezier(.2, .7, .2, 1) forwards; }
.screen.is-active .il { opacity: 0; animation: draw var(--d-draw) cubic-bezier(.45, 0, .2, 1) forwards; }
.screen.is-active .inv-star { opacity: 0; animation: rv 1s ease forwards, inv-twinkle 2.8s ease-in-out 6s infinite; }
@keyframes rv { from { opacity: 0; transform: translateY(14px); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes draw { from { opacity: 1; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
.screen.is-active .t1 { animation-delay: .3s; }  .screen.is-active .t2 { animation-delay: .9s; }
.screen.is-active .t3 { animation-delay: 1.6s; } .screen.is-active .t4 { animation-delay: 2.3s; }
.screen.is-active .t5 { animation-delay: 3s; }   .screen.is-active .t6 { animation-delay: 3.7s; }
.screen.is-active .t7 { animation-delay: 4.4s; } .screen.is-active .t8 { animation-delay: 5.1s; }
.screen.is-active .t9 { animation-delay: 5.9s; }
.screen.is-active .inv-star.t2 { animation-delay: .9s, 6s; } .screen.is-active .inv-star.t3 { animation-delay: 1.6s, 6.4s; }
.screen.is-active .inv-star.t4 { animation-delay: 2.3s, 6.8s; } .screen.is-active .inv-star.t5 { animation-delay: 3s, 7.2s; }
.screen.is-active .inv-star.t6 { animation-delay: 3.7s, 7.6s; } .screen.is-active .inv-star.t7 { animation-delay: 4.4s, 8s; }
.screen.is-active .inv-star.t8 { animation-delay: 5.1s, 8.4s; } .screen.is-active .inv-star.t9 { animation-delay: 5.9s, 8.8s; }

/* Vendredi */
.inv-fri__intro { font-style: italic; font-size: 1.5rem; }
.inv-fri__date { margin-top: 10px; font-size: clamp(2.6rem, 1.4rem + 3.6vw, 4.75rem); line-height: 1.05; }
.inv-fri__time { font-size: clamp(2.2rem, 1.2rem + 2.6vw, 3.625rem); line-height: 1.1; }
.inv-fri__place { margin-top: 30px; font-size: 1.3125rem; line-height: 1.5; }
.inv-fri__venue { margin-top: 34px; font-style: italic; font-size: 1.375rem; line-height: 1.5; }
.inv-fri__venue .script { font-style: normal; font-size: 2.5rem; }
.inv-fri__coupes { width: 96px; margin-top: 22px; }

.then {
  position: absolute; right: 48px; bottom: 40px;
  display: inline-flex; align-items: center; height: 60px; padding: 0 36px;
  background: transparent; border: 1px solid currentColor; color: inherit; cursor: pointer;
  font-family: var(--f-script); font-size: 2.125rem; transition: background .3s, color .3s;
}
.then:hover { background: var(--c-ivoire-texte); color: var(--c-bordeaux); }
.then:focus-visible { outline: 1px solid currentColor; outline-offset: 6px; }

/* Samedi */
.inv-sat__parents { width: 100%; max-width: 820px; display: flex; justify-content: space-between; font-size: 0.9375rem; line-height: 1.45; }
.inv-sat__names { margin-top: 34px; font-size: clamp(3.5rem, 1.5rem + 5.5vw, 7rem); line-height: 1; }
.inv-sat__intro { margin-top: 14px; font-style: italic; font-size: 1.375rem; line-height: 1.6; }
.inv-sat__date { margin-top: 12px; font-family: var(--f-display); font-size: 1.5rem; letter-spacing: .2em; text-transform: uppercase; }
.inv-sat__venue { margin-top: 36px; font-size: 2rem; letter-spacing: .06em; }
.inv-sat__venue .script { font-size: 2.5rem; letter-spacing: 0; }
.inv-sat__address { margin-top: 8px; font-size: 0.9375rem; line-height: 1.5; }
.inv-sat__ornament { width: 110px; margin-top: 22px; }
.inv-sat__time { margin-top: 18px; font-style: italic; font-size: 1.1875rem; }
.inv-sat__reply { margin-top: auto; padding-top: 28px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.inv-back { position: absolute; left: 48px; bottom: 40px; font-style: normal; font-size: 0.75rem; letter-spacing: .3em; text-transform: uppercase; text-underline-offset: 7px; }

/* Illustrations et étoiles posées comme sur la maquette (cadre 1440 × 900) */
.inv-ill { position: absolute; height: auto; pointer-events: none; }
.inv-ill--livret { left: 130px; top: 200px; width: 150px; }
.inv-ill--hallah { left: 170px; bottom: 90px; width: 120px; }
.inv-ill--vin { right: 300px; bottom: 100px; width: 86px; }
.inv-ill--coupes { left: 96px; bottom: 120px; width: 230px; }
.inv-ill--scooter { right: 230px; bottom: 110px; width: 160px; }
.inv-stars { position: absolute; inset: 0; pointer-events: none; }
.inv-star--f1 { right: 70px; top: 250px; }   .inv-star--f2 { right: 52px; top: 292px; }
.inv-star--f3 { left: 90px; top: 110px; }    .inv-star--f4 { left: 330px; top: 170px; }
.inv-star--f5 { left: 60px; top: 430px; }    .inv-star--f6 { left: 340px; bottom: 250px; }
.inv-star--f7 { right: 130px; top: 100px; }  .inv-star--f8 { right: 320px; top: 180px; }
.inv-star--f9 { right: 190px; top: 440px; }  .inv-star--f10 { right: 110px; bottom: 150px; }
.inv-star--s1 { left: 330px; bottom: 290px; } .inv-star--s2 { left: 300px; bottom: 330px; }
.inv-star--s3 { left: 80px; top: 120px; }     .inv-star--s4 { left: 230px; top: 200px; }
.inv-star--s5 { left: 60px; top: 400px; }     .inv-star--s6 { left: 380px; bottom: 90px; }
.inv-star--s7 { right: 310px; top: 160px; }   .inv-star--s8 { right: 340px; top: 420px; }
.inv-star--s9 { right: 80px; top: 470px; }    .inv-star--s10 { right: 440px; bottom: 70px; }
.inv-star--f11 { left: 170px; bottom: 110px; } .inv-star--f12 { left: 240px; top: 300px; }
.inv-star--f13 { left: 250px; top: 70px; }    .inv-star--f14 { right: 250px; bottom: 270px; }
.inv-star--f15 { right: 50px; top: 170px; }   .inv-star--f16 { left: 120px; bottom: 260px; }

/* Boule suspendue qui descend, puis « Entrer sur le site » */
.inv-drop { position: absolute; top: 0; right: 96px; transform: translateY(-110%); }
.screen.is-active .inv-drop { animation: drop 2s cubic-bezier(.3, 1.2, .5, 1) 5.1s forwards; }
@keyframes drop { to { transform: translateY(0); } }
.inv-drop .hanging { --thread: 170px; }
.inv-ball-link { display: flex; flex-direction: column; align-items: center; gap: 16px; text-decoration: none; border-radius: 8px; }
.inv-ball-link .label { text-decoration: underline; text-underline-offset: 6px; letter-spacing: .3em; }
.inv-ball-link:hover .ball { --ball-period: var(--d-ball-fast); }
.inv-ball-link:focus-visible { outline: 1px solid currentColor; outline-offset: 8px; }

@media (max-width: 1100px) {
  .inv-ill--livret { left: 40px; width: 110px; }
  .inv-ill--hallah { left: 40px; width: 96px; }
  .inv-ill--vin { right: 60px; width: 70px; }
  .inv-ill--coupes { left: 32px; width: 170px; }
  .inv-ill--scooter { right: 200px; width: 130px; }
  .inv-drop { right: 40px; }
}
/* Ordinateur, invitation du vendredi : livret plus petit, le vin à la place des coupes, la hallah à droite */
@media (min-width: 761px) {
  .inv-fri__coupes { display: none; }
  .inv-ill--livret { width: 104px; }
  .inv-ill--vin { position: static; width: auto; height: 80px; margin-top: 18px; }
  .inv-ill--hallah { left: auto; right: 130px; bottom: 200px; width: 104px; }
  /* Mairie sans dîner : texte plus grand et plus d'étoiles */
  .screen--civil-only .inv-fri__intro { font-size: 1.75rem; }
  .screen--civil-only .inv-fri__date { font-size: clamp(3rem, 1.6rem + 4.1vw, 5.5rem); }
  .screen--civil-only .inv-fri__time { font-size: clamp(2.5rem, 1.4rem + 3vw, 4.25rem); }
  .screen--civil-only .inv-fri__place { font-size: 1.5rem; margin-top: 36px; }
  .screen--civil-only .inv-ill--livret { position: static; width: 96px; margin: 40px auto 0; }
  .screen--civil-only .inv-star--f4, .screen--civil-only .inv-star--f8, .screen--civil-only .inv-star--f12 { display: none; }
  .inv-star--f17 { right: 300px; top: 560px; }  .inv-star--f18 { right: 150px; bottom: 300px; }
  .inv-star--f19 { left: 260px; top: 340px; }   .inv-star--f20 { left: 140px; top: 260px; }
  .inv-star--f21 { left: 600px; bottom: 120px; } .inv-star--f22 { right: 230px; top: 380px; }
  .inv-star--f23 { left: 380px; bottom: 300px; } .inv-star--f24 { right: 60px; bottom: 380px; }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .inv-ill--livret { width: 84px; }
  .inv-ill--hallah { right: 40px; width: 84px; }
  .inv-star--f13 { display: none; }
  .screen--civil-only .inv-star--f3, .screen--civil-only .inv-star--f6, .screen--civil-only .inv-star--f7, .screen--civil-only .inv-star--f23 { display: none; }
}
@media (max-width: 760px) {
  /* Mobile : chaque écran tient sur la hauteur du téléphone, tailles hiérarchisées comme sur la carte */
  .screen { padding: 10px; min-height: 100svh; }
  .screen--friday .frame__inner { justify-content: center; padding: 22px 18px 18px; }
  .screen--saturday .frame__inner { justify-content: flex-start; padding: 16px 16px 12px; }

  /* Vendredi */
  .inv-fri__intro { font-size: 1rem; }
  .inv-fri__date { margin-top: 6px; font-size: min(1.625rem, calc((100vw - 70px) / 10.6)); white-space: nowrap; }
  .inv-fri__time { font-size: calc(min(1.625rem, calc((100vw - 70px) / 10.6)) * .8); }
  .inv-fri__place, .inv-fri__venue { font-size: .875rem; margin-top: 14px; }
  .inv-fri__venue .script { font-size: 1.5rem; }
  .inv-fri__coupes { width: 60px; margin-top: 12px; }
  .inv-ill { position: static; display: block; }
  .inv-ill--livret { order: -1; width: 56px; margin: 0 0 12px; }
  .screen--civil-only .inv-ill--livret { margin-bottom: 24px; }
  /* Petites illustrations dans les coins bas, de part et d'autre du bouton */
  .inv-ill--vin, .inv-ill--scooter { display: none; } /* pas d'illustration dans les angles sur téléphone */
  .screen--civil-only .inv-star--f4 { top: 30%; }
  /* Vendredi : la hallah prend la place des coupes, sous l'adresse du restaurant */
  .inv-fri__coupes { display: none; }
  .inv-ill--hallah { position: static; height: 46px; width: auto; margin-top: 12px; }
  /* Samedi : les coupes sous « À partir de 19h, cocktail suivi d'un dîner » */
  .inv-ill--coupes { position: static; order: 1; height: 38px; width: auto; margin: 10px 0 auto; }
  .inv-sat__reply { order: 2; }
  .then { position: static; margin-top: 20px; height: 46px; padding: 0 24px; font-size: 1.5rem; }

  /* Samedi */
  .inv-sat__parents { gap: 12px; font-size: .6875rem; min-height: 86px; } /* de part et d'autre, place pour la boule au centre */
  .inv-sat__parents span { max-width: calc(50% - 36px); }
  .inv-sat__names { margin-top: auto; font-size: clamp(2rem, 6.4svh, 2.875rem); }
  .inv-sat__intro { margin-top: 8px; font-size: .875rem; line-height: 1.5; }
  .inv-sat__address { margin-bottom: auto; }
  .inv-sat__date { margin-top: 8px; font-size: .8125rem; letter-spacing: .14em; }
  .inv-sat__venue { margin-top: 14px; font-size: 1.125rem; }
  .inv-sat__venue .script { font-size: 1.5rem; }
  .inv-sat__address { margin-top: 4px; font-size: .75rem; line-height: 1.45; }
  .inv-sat__ornament { width: 72px; margin-top: 10px; }
  .inv-sat__time { margin-top: 8px; font-size: .875rem; }
  .inv-sat__reply { width: 100%; margin-top: auto; padding-top: 14px; gap: 8px; }
  .inv-sat__reply .btn { width: 100%; min-height: 44px; padding-inline: 12px; font-size: .6875rem; letter-spacing: .2em; }
  .inv-sat__reply .label { font-size: .5625rem; letter-spacing: .14em; }
  .inv-back { position: static; order: 99; margin-top: 8px; min-height: 36px; font-size: .625rem; }

  /* Étoiles : dans les marges, loin du texte */
  .inv-star { display: none; }
  .inv-star--f3, .inv-star--f7, .inv-star--s3, .inv-star--s7 { display: block; }
  .inv-star--f3 { left: 16px; top: 16px; } .inv-star--f7 { right: 16px; top: 48px; }
  .inv-star--s3 { left: 12px; top: 100px; } .inv-star--s7 { right: 12px; top: 106px; }
  .inv-star--f1, .inv-star--f2, .inv-star--f4, .inv-star--f5, .inv-star--f6, .inv-star--f9, .inv-star--f10,
  .inv-star--s1, .inv-star--s2, .inv-star--s4, .inv-star--s5, .inv-star--s6, .inv-star--s8 { display: block; }
  .inv-star--f1 { left: 22%; top: 15%; bottom: auto; right: auto; }  .inv-star--f2 { right: 22%; top: 22%; left: auto; bottom: auto; }
  .inv-star--f4 { left: 5%; top: 43%; bottom: auto; right: auto; }   .inv-star--f5 { right: 5%; top: 52%; left: auto; bottom: auto; }
  .inv-star--f6 { left: 12%; top: 72%; bottom: auto; right: auto; }  .inv-star--f9 { right: 12%; top: 66%; left: auto; bottom: auto; }
  .inv-star--f10 { left: 7%; bottom: 5%; top: auto; right: auto; }
  .inv-star--s1 { left: 4%; top: 52%; bottom: auto; right: auto; }   .inv-star--s2 { right: 4%; top: 45%; left: auto; bottom: auto; }
  .inv-star--s4 { left: 4%; top: 31%; bottom: auto; right: auto; }   .inv-star--s5 { right: 4%; top: 58%; left: auto; bottom: auto; }
  .inv-star--s6 { left: 18%; top: 67%; bottom: auto; right: auto; }  .inv-star--s8 { right: 18%; top: 67%; left: auto; bottom: auto; }

  /* Boule en haut, au centre, entre les noms des parents ; elle descend comme sur ordinateur */
  .inv-drop { left: 0; right: 0; display: flex; justify-content: center; pointer-events: none; }
  .inv-drop .hanging { --thread: 12px; pointer-events: auto; }
  .inv-drop .ball { --ball-size: 52px; --ball-lat: 4px; }
  .inv-ball-link { gap: 6px; }
  .inv-ball-link .label { font-size: .5rem; letter-spacing: .22em; }
}
@media (max-width: 760px) and (max-height: 620px) {
  /* Petits téléphones (iPhone SE) */
  .inv-sat__parents { min-height: 80px; }
  .inv-sat__names { font-size: 1.875rem; }
  .inv-sat__venue { margin-top: 10px; }
  .inv-sat__ornament { display: none; }
  .inv-fri__place, .inv-fri__venue { margin-top: 10px; }
  .inv-ill--livret { width: 44px; margin-bottom: 8px; }
  .screen--civil-only .inv-ill--livret { margin-bottom: 16px; }
  .inv-ill--coupes { height: 28px; margin-top: 6px; }
  .inv-ill--hallah { height: 38px; margin-top: 8px; }
}

/* 7. Réponse en ligne (RSVP) ------------------------------------------------ */
.is-rsvp { background: var(--c-papier); }
.rsvp { display: flex; min-height: 100vh; min-height: 100dvh; }
.rsvp__aside {
  width: 420px; flex: none; position: sticky; top: 0; height: 100vh; height: 100dvh;
  background: var(--c-bordeaux); color: var(--c-ivoire-texte);
  padding: 48px 52px; display: flex; flex-direction: column; gap: 30px;
}
.rsvp__aside-top { display: flex; flex-direction: column; gap: 30px; }
.rsvp__back { align-self: flex-start; display: flex; align-items: center; gap: .35em; min-height: var(--tap); font-size: 0.75rem; letter-spacing: .26em; text-transform: uppercase; text-underline-offset: 6px; }
.rsvp__mono { width: 92px; height: auto; }
.rsvp__title { font-size: 3.875rem; line-height: 1; }
.rsvp__deadline { margin-top: 12px; font-family: var(--f-display); font-size: 0.875rem; letter-spacing: .2em; text-transform: uppercase; }
.rsvp__steps { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.rsvp__step { display: flex; align-items: center; gap: 14px; font-size: 0.875rem; letter-spacing: .06em; opacity: .6; }
.rsvp__step.is-current { opacity: 1; }
.rsvp__step.is-done { opacity: .85; }
.rsvp__step[hidden], .rsvp__bar span[hidden] { display: none; }
.rsvp__dot { width: 28px; height: 28px; flex: none; border: 1px solid var(--c-ivoire-texte); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--f-display); font-size: 0.8125rem; }
.rsvp__step.is-current .rsvp__dot { background: var(--c-ivoire-texte); color: var(--c-bordeaux); }
.rsvp__bar, .rsvp__mobile-step { display: none; }
.rsvp__coupes { width: 150px; height: auto; margin-top: auto; align-self: flex-end; }

.rsvp__main { flex: 1; min-width: 0; padding: 72px 96px; }
.rsvp__content { max-width: 720px; }
.rsvp__panel, .rsvp__form { display: flex; flex-direction: column; gap: 28px; }
.rsvp__form { gap: 56px; }
.rsvp__h2 { font-family: var(--f-display); font-weight: 400; font-size: clamp(2.125rem, 1.4rem + 2.4vw, 3.25rem); line-height: 1.05; letter-spacing: -.01em; }
.rsvp__lead { font-style: italic; font-size: 1.125rem; line-height: 1.6; }
.rsvp__label { display: block; margin-bottom: 6px; }
.rsvp__label--small { font-size: 0.625rem; margin-bottom: -8px; }
.rsvp__grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.rsvp__phone { display: flex; gap: 16px; }
.rsvp__phone .rsvp__cc { width: 170px; flex: none; }
.rsvp__phone input.rsvp-field { flex: 1; min-width: 0; }
.rsvp-field {
  width: 100%; height: 52px; padding: 0 2px; border: 0; border-bottom: 1px solid var(--c-bordeaux);
  background: transparent; color: var(--c-encre); font: inherit; font-size: 1.1875rem; border-radius: 0;
}
.rsvp-field:focus { outline: none; border-bottom-width: 2px; }
.rsvp-area {
  width: 100%; min-height: 84px; padding: 12px 14px; border: 1px solid var(--c-filet-fort); background: var(--c-blanc);
  color: var(--c-encre); font: inherit; font-size: 1rem; resize: vertical; border-radius: 0;
}
.rsvp-area:focus { outline: 1px solid var(--c-bordeaux); }
.rsvp-area::placeholder, .rsvp-field::placeholder { color: #B08F86; }
.rsvp__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 8px; }
.rsvp__note { font-size: 0.8125rem; line-height: 1.5; max-width: 40ch; }
.rsvp__progress { font-size: 0.875rem; font-style: italic; }
.rsvp__error { font-style: italic; color: var(--c-encre); }
.rsvp__error:empty { display: none; }
.rsvp__error p + p { margin-top: 6px; }
.rsvp__hello { font-style: italic; font-size: 1rem; }

.rsvp-primary {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 34px;
  background: var(--c-bordeaux); color: var(--c-papier); border: 1px solid var(--c-bordeaux); cursor: pointer;
  font-family: var(--f-text); font-size: 0.75rem; letter-spacing: .3em; text-transform: uppercase; text-decoration: none;
  transition: background .25s;
}
.rsvp-primary:hover { background: var(--c-encre); color: var(--c-papier); }
.rsvp-primary:disabled { opacity: .35; cursor: not-allowed; background: var(--c-bordeaux); }
.rsvp-primary:focus-visible, .rsvp-link:focus-visible { outline: 2px solid var(--c-encre); outline-offset: 3px; }
.rsvp-link { background: none; border: 0; padding: 0; min-height: var(--tap); color: var(--c-bordeaux); cursor: pointer; font: inherit; font-size: 0.9375rem; font-style: italic; text-decoration: underline; text-underline-offset: 5px; }

.rsvp-card { border: 1px solid var(--c-bordeaux); padding: 4px; background: var(--c-blanc); }
.rsvp-card__in { border: 1px solid var(--c-bordeaux); padding: 26px 28px; display: flex; flex-direction: column; gap: 18px; }
.rsvp-card__name { font-size: 2.5rem; line-height: 1; }
.rsvp-card__q { font-size: 1.0625rem; }
.rsvp-ev { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 24px; align-items: center; margin: 0; padding: 16px 0 0; border: 0; border-top: 1px solid #EFE4D8; min-width: 0; }
.rsvp-ev__head { float: left; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.rsvp-ev__title { font-size: 1.1875rem; }
.rsvp-ev__meta { font-size: 0.875rem; font-style: italic; }
.rsvp-ev__ask { margin-top: 4px; font-family: var(--f-script); font-size: 1.375rem; line-height: 1.2; }
.rsvp-ev__choices { display: flex; gap: 8px; flex-wrap: wrap; }
.choice {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px; cursor: pointer;
  border: 1px solid var(--c-filet-fort); background: var(--c-blanc); color: var(--c-bordeaux);
  font-size: 0.9375rem; transition: background .2s, color .2s, border-color .2s;
}
.choice:hover { border-color: var(--c-bordeaux); }
.choice:has(input:checked) { background: var(--c-bordeaux); border-color: var(--c-bordeaux); color: var(--c-papier); }
.choice--no:has(input:checked) { background: var(--c-encre); border-color: var(--c-encre); }
.choice:has(input:focus-visible) { outline: 2px solid var(--c-encre); outline-offset: 3px; }
.choice--toggle { align-self: flex-start; }

.rsvp__ornament { width: 120px; }
.rsvp__merci { font-size: clamp(3.5rem, 2rem + 5vw, 5.25rem); line-height: 1; }
.rsvp__tagline { margin-top: -10px; font-family: var(--f-display); font-size: 1.375rem; letter-spacing: .06em; }
.rsvp-summary { border-top: 1px solid var(--c-bordeaux); padding-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.rsvp-summary__name { font-family: var(--f-display); font-weight: 400; font-size: 1.625rem; }
.rsvp-summary__row { display: flex; justify-content: space-between; gap: 20px; }
.rsvp-summary__row em { font-size: 0.875rem; }
.rsvp-summary__diet { font-size: 0.875rem; font-style: italic; }

/* Parcours pas à pas (JavaScript) : une étape visible à la fois */
.rsvp.is-wizard [data-nojs-hint] { display: none; }
.rsvp.is-wizard[data-step="2"] [data-panel="3"],
.rsvp.is-wizard[data-step="3"] [data-panel="2"] { display: none; }
.rsvp.is-wizard[data-step="3"] .rsvp__hello { display: none; }
.rsvp [data-diet][hidden] { display: none; }
.rsvp:not(.is-wizard) .rsvp__actions--sticky { display: none; }

@media (max-width: 900px) {
  .rsvp { flex-direction: column; }
  .rsvp__aside { position: static; width: auto; height: auto; padding: 14px 20px 22px; gap: 14px; }
  .rsvp__aside-top { flex-direction: row; justify-content: space-between; align-items: center; }
  .rsvp__back { font-size: 0.625rem; }
  .rsvp__back-long { display: none; }
  .rsvp__mono { width: 34px; }
  .rsvp__title { font-size: 2.875rem; }
  .rsvp__deadline, .rsvp__steps, .rsvp__coupes { display: none; }
  .rsvp__bar { display: flex; gap: 6px; }
  .rsvp__bar span { flex: 1; height: 2px; background: rgba(251, 247, 240, .35); }
  .rsvp__bar span.is-on { background: var(--c-ivoire-texte); }
  .rsvp__mobile-step { display: block; }
  .rsvp__main { padding: 28px 16px 40px; }
  .rsvp__panel { gap: 22px; }
  .rsvp__lead { font-size: 1rem; }
  .rsvp__grid2 { grid-template-columns: 1fr; gap: 22px; }
  .rsvp__phone .rsvp__cc { width: 136px; font-size: 1rem; }
  .rsvp-card { padding: 3px; }
  .rsvp-card__in { padding: 20px 16px; gap: 16px; }
  .rsvp-card__name { font-size: 2.25rem; }
  .rsvp-ev { grid-template-columns: 1fr; gap: 8px; }
  .rsvp-ev__title { font-size: 1.0625rem; }
  .rsvp-ev__meta { font-size: 0.8125rem; }
  .rsvp-ev__choices { flex-direction: column; }
  .choice { width: 100%; }
  .choice--toggle { width: auto; }
  .rsvp__actions .rsvp-primary { width: 100%; }
  .rsvp__actions--sticky { position: sticky; bottom: 0; z-index: 2; flex-direction: column-reverse; gap: 8px; padding: 14px 0 6px; background: var(--c-papier); border-top: 1px solid var(--c-filet); }
  .rsvp__actions--sticky .rsvp__progress { text-align: center; }
  .rsvp-summary__row { flex-direction: column; gap: 2px; }
}

/* RSVP sur téléphone : tailles resserrées */
@media (max-width: 640px) {
  .rsvp__aside { padding: 10px 16px 14px; gap: 8px; }
  .rsvp__title { font-size: 2.125rem; }
  .rsvp__main { padding: 20px 16px 32px; }
  .rsvp__panel { gap: 16px; }
  .rsvp__form { gap: 36px; }
  .rsvp__h2 { font-size: 1.75rem; }
  .rsvp__lead { font-size: .9375rem; line-height: 1.5; }
  .rsvp__grid2 { gap: 14px; }
  .rsvp-field { height: 44px; font-size: 1rem; }
  .rsvp-card__in { padding: 16px 14px; gap: 12px; }
  .rsvp-card__name { font-size: 1.875rem; }
  .rsvp-card__q { font-size: .9375rem; }
  .rsvp-ev { padding-top: 12px; gap: 6px; }
  .rsvp-ev__title { font-size: .9375rem; }
  .rsvp-ev__meta { font-size: .75rem; }
  .choice { min-height: 44px; padding: 0 14px; font-size: .875rem; }
  .rsvp-ev__choices { flex-direction: row; gap: 8px; } /* « Oui, avec joie » / « Non, malheureusement » côte à côte */
  .rsvp-ev__choices .choice { flex: 1 1 auto; width: auto; justify-content: center; padding: 0 10px; font-size: .8125rem; white-space: nowrap; }
  .rsvp-area { min-height: 72px; font-size: .9375rem; }
  .rsvp-primary { min-height: 48px; }
  .rsvp__note { font-size: .75rem; }
  .rsvp__ornament { width: 90px; }
  .rsvp__merci { font-size: 3.25rem; }
  .rsvp__tagline { font-size: 1.125rem; }
  .rsvp-summary__name { font-size: 1.25rem; }
  .rsvp-summary__row { font-size: .875rem; }
}

/* 8. Pages simples (introuvable, erreurs, installation) ------------------ */
.simple-page { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; text-align: center; padding: var(--s-6) var(--gutter); }
.simple-page h1 { font-size: clamp(2.6rem, 6vw, 4rem); }
.setup__form { display: flex; flex-direction: column; gap: 10px; width: min(360px, 100%); text-align: left; }
.setup__form input { height: 44px; border: 1px solid var(--c-filet-fort); padding: 0 12px; font: inherit; }
.setup__form .btn { margin-top: 12px; }

/* 9. Mouvement réduit ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .ball__mer { animation-play-state: paused; }
  .hanging, .spot, .entrance__ball-wrap > .star { animation: none; }
  .entrance__panel { transition: none; }
  .btn, .then, .choice, .rsvp-primary { transition: none; }
  .screen.is-active .rv, .screen.is-active .il, .screen.is-active .inv-star, .screen.is-active .inv-drop {
    animation: none !important; opacity: 1 !important; transform: none !important; clip-path: none; filter: none;
  }
}
