/* ==========================================================================
   Site du mariage, version 3 : le style de la planche « 9b bis ».
   Les couleurs ci-dessous sont des valeurs de secours : le site applique
   celles de l'onglet Réglages (couleur_papier, couleur_accent…), si bien que
   toutes les pages partagent exactement les mêmes teintes.
   ========================================================================== */
:root {
  --papier: #FBFAF7;
  --panneau: #F2ECE8;
  --accent: #D55251;
  --bouton: #9A877C;
  --plume: #B8862B;
  --encre: #1F1B19;
  --encre-2: #5E4F48;
  --encre-3: #6E5D55;
  --filet: #E4DDD8;
  --pointille: #CDBFB6;
  --champ: #D8CBBC;
  --basilic: #4E7A35;
  --basilic-clair: #E3EDD5;

  /* Noms de la version précédente, gardés pour les pages à venir */
  --lin: var(--papier);
  --sable-clair: var(--panneau);
  --sable: var(--pointille);
  --rose: var(--accent);
  --bordeaux: var(--bouton);
  --bordeaux-f: color-mix(in srgb, var(--bouton) 80%, #000);
  --olive: var(--plume);
  --miel: #EDCF91;
  --sauge: var(--basilic);
  --sauge-f: var(--basilic);

  --serif: "Gloock", Georgia, "Times New Roman", serif;
  --script: "Gloock", Georgia, serif;
  --sans: "Karla", "Helvetica Neue", Arial, sans-serif;

  --large: 75rem;
  --etroit: 40rem;
  --col: 15rem;
  --gout: clamp(2rem, 5vw, 5rem);
  --marge: clamp(20px, 5vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
p { margin: 0 0 1em; }
a { color: var(--encre); text-decoration-color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
strong { font-weight: 500; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.12; margin: 0; color: var(--encre); }
:focus-visible { outline: 2px solid var(--bouton); outline-offset: 3px; border-radius: 2px; }
::selection { background: color-mix(in srgb, var(--plume) 30%, transparent); }

.esperluette { font-family: var(--serif); color: var(--accent); }
.brin { width: 5.5rem; height: auto; color: var(--basilic); display: block; }
.brin__olive { fill: var(--accent); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  font: 400 15px/1.2 var(--sans); letter-spacing: .01em;
  color: #fff; background: var(--bouton);
  border: 1px solid var(--bouton); border-radius: 999px;
  padding: 16px 30px; text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--bordeaux-f); border-color: var(--bordeaux-f); color: #fff; }
.btn:disabled { opacity: .55; cursor: default; }
.btn--trait { background: transparent; color: var(--encre); border-color: var(--champ); }
.btn--trait:hover { background: transparent; color: var(--encre); border-color: var(--bouton); }
.btn--clair { background: #fff; color: var(--encre); border-color: #fff; }
.btn--clair:hover { background: var(--papier); color: var(--encre); border-color: var(--papier); }
.btn--petit { padding: 12px 22px; font-size: 15px; }
.btn--leger { background: transparent; color: var(--encre); border-color: var(--champ); padding: 12px 20px; }
.btn--leger:hover { background: #fff; color: var(--encre); border-color: var(--bouton); }
.lien {
  font: inherit; color: var(--encre); background: none; border: 0; padding: 0;
  text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; cursor: pointer;
}

/* ---------- En-tête ---------- */
.tete {
  position: sticky; top: 0; z-index: 30;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 32px;
  padding: 16px var(--marge);
  background: color-mix(in srgb, var(--papier) 92%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.logo { font: 400 22px/1.15 var(--serif); color: var(--encre); text-decoration: none; }
.logo:hover { color: var(--encre); }
.tete__droite { display: flex; align-items: center; gap: 10px 22px; margin-left: auto; }
.menu { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; font-size: 15px; }
.menu a:not(.btn) { color: var(--encre); text-decoration: none; padding: .3em 0; border-bottom: 1px solid transparent; }
.menu a:not(.btn):hover { border-bottom-color: var(--accent); }
.menu a[aria-current="page"]:not(.btn) { border-bottom-color: var(--accent); }
.langue { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--encre-3); }
.langue button { font: inherit; letter-spacing: .06em; color: var(--encre-3); background: none; border: 0; padding: 6px 3px; cursor: pointer; }
.langue button[aria-pressed="true"] { color: var(--encre); font-weight: 500; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.burger { display: none; width: 2.6rem; height: 2.6rem; background: none; border: 1px solid var(--filet); border-radius: 999px; position: relative; cursor: pointer; }
.burger span, .burger span::before, .burger span::after {
  content: ""; position: absolute; left: 50%; width: 1.1rem; height: 1px; background: var(--encre); transform: translateX(-50%);
}
.burger span { top: 50%; }
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }

@media (max-width: 860px) {
  body:not(.menu-simple) .burger { display: block; }
  body:not(.menu-simple) .menu {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--papier); border-bottom: 1px solid var(--filet);
    padding: .5rem var(--marge) 1.4rem; display: none;
  }
  .menu-ouvert .menu { display: flex !important; }
  body:not(.menu-simple) .menu a:not(.btn) { padding: .85rem 0; border-bottom: 1px solid var(--filet); font-size: 17px; }
  body:not(.menu-simple) .menu .btn { margin-top: 1rem; }
}
@media (max-width: 480px) {
  .tete { padding: 12px 16px; gap: 8px 12px; }
  .logo { font-size: 17px; }
  .tete__droite { gap: 8px 10px; }
  .tete .btn--petit { padding: 9px 14px; font-size: 14px; }
  .langue { font-size: 12px; }
}

/* ---------- Sections ---------- */
.s { padding: clamp(3.5rem, 8vw, 6.5rem) var(--marge); }
.s + .s { padding-top: 0; }
.s--hero { padding-top: clamp(2rem, 5vw, 4rem); }
.s--compte, .s--appel { padding-top: clamp(3.5rem, 8vw, 6.5rem) !important; }
.s--compte + .s, .s--appel + .s { padding-top: clamp(3.5rem, 8vw, 6.5rem); }
/* Mise en page éditoriale : titre à gauche, contenu à droite, un seul bord d'alignement */
.bloc { max-width: var(--large); margin: 0 auto; display: grid; grid-template-columns: var(--col) minmax(0, 42rem); column-gap: var(--gout); align-items: start; }
.bloc > .t { grid-column: 1; grid-row: 1 / span 9; }
.bloc > :not(.t) { grid-column: 2; }
.bloc--centre { display: block; max-width: var(--etroit); text-align: center; }
@media (max-width: 860px) { .bloc { display: block; } }
.s + .s--encadre { padding-top: 0; margin-top: calc(-1 * clamp(1.5rem, 4vw, 3.5rem)); }
.large { max-width: var(--large); margin: 0 auto; }
.t { font-size: clamp(2.1rem, 4.6vw, 3.1rem); font-weight: 500; letter-spacing: -.005em; margin-bottom: .55em; }
.t::after { content: ""; display: block; width: 2.6rem; height: 1px; background: var(--olive); margin-top: .45em; }
.t--centre, .bloc--centre .t { text-align: center; }
.t--centre::after, .bloc--centre .t::after { margin-inline: auto; }
.prose { max-width: var(--etroit); }
.prose p:last-child, .prose ul:last-child { margin-bottom: 0; }
.prose + .btn { margin-top: 1.8rem; }
.prose ul { padding-left: 1.1em; }

/* ---------- Héros : faire-part ---------- */
.hero {
  max-width: 64rem; margin: 0 auto;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 6vw, 5.5rem); align-items: center;
}
.hero__texte { text-align: center; }
.hero__salut { font: italic 400 1.2rem/1.4 var(--serif); color: var(--sauge-f); margin-bottom: 1.6rem; }
.hero__avant { font: italic 400 1.25rem/1.4 var(--serif); color: var(--encre-2); }
.hero__noms {
  display: flex; flex-direction: column; align-items: center;
  font: 400 clamp(3.4rem, 8.6vw, 6.4rem)/.92 var(--serif); letter-spacing: .005em;
}
.hero__noms .esperluette { font-size: .95em; line-height: .62; margin: .02em 0 .12em; }
.hero__invite { font: italic 400 clamp(1.25rem, 2.4vw, 1.5rem)/1.4 var(--serif); color: var(--encre-2); margin: 1.4rem auto 1.7rem; max-width: 22rem; }
.hero__date { font: 500 clamp(1.3rem, 2.4vw, 1.55rem)/1.35 var(--serif); margin: 0; }
.hero__date span { display: block; font-weight: 400; font-style: italic; color: var(--encre-2); }
.hero__lieu { margin: 1rem 0 0; font-size: .95rem; letter-spacing: .14em; color: var(--sauge-f); }
.hero__actions { margin-top: 2.4rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; }

.arche {
  position: relative; margin: 0; aspect-ratio: 3 / 4; width: 100%; max-width: 24rem; justify-self: center;
  border-radius: 999px 999px 3px 3px; overflow: hidden;
  background: linear-gradient(170deg, #EDE5D6 0%, #DAD3B6 55%, #C7C09A 100%);
  box-shadow: 0 0 0 1px var(--filet), 0 0 0 11px var(--lin), 0 0 0 12px var(--olive);
}
.arche img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.arche__vide { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .9rem; color: var(--sauge-f); }
.arche__vide .brin { width: 7rem; }
.arche__vide span { font: italic 400 1.25rem/1 var(--serif); color: var(--encre-2); }

@media (prefers-reduced-motion: no-preference) {
  .hero__texte > *, .arche { animation: monter .9s cubic-bezier(.2, .7, .25, 1) both; }
  .hero__noms { animation-delay: .08s !important; }
  .hero__invite { animation-delay: .22s !important; }
  .hero__date, .hero__lieu { animation-delay: .34s !important; }
  .hero__actions { animation-delay: .46s !important; }
  .arche { animation-delay: .15s; animation-duration: 1.2s; }
  @keyframes monter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; gap: 2.6rem; }
  .arche { order: -1; max-width: 15rem; }
}

/* ---------- Compte à rebours ---------- */
.s--compte { background: var(--sable-clair); padding-bottom: clamp(3rem, 6vw, 4.5rem) !important; }
.compte { text-align: center; }
.compte .brin { margin: 0 auto .6rem; width: 4.5rem; }
.compte__n { font: 400 clamp(3.6rem, 9vw, 5.4rem)/1 var(--serif); color: var(--bordeaux); margin: 0; font-variant-numeric: lining-nums; }
.compte__l { margin: .5rem 0 0; font: italic 400 1.25rem/1.3 var(--serif); color: var(--encre-2); }

/* ---------- Texte + photos ---------- */
.duo { max-width: var(--large); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.collage { position: relative; padding-bottom: 12%; }
.collage__img { border-radius: 2px; }
.collage__img--1 { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.collage__img--2 {
  position: absolute; left: -7%; bottom: 0; width: 40%; aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: 999px 999px 2px 2px; border: 7px solid var(--lin);
}
.collage--1 { padding-bottom: 0; }
@media (max-width: 760px) {
  .duo { grid-template-columns: 1fr; }
  .collage { margin: 0 0 0 7%; }
}

/* ---------- Colonnes ---------- */
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: clamp(1.8rem, 4vw, 3.5rem); margin-top: .8rem; }
.col h3 { font: italic 500 1.6rem/1.2 var(--serif); color: var(--bordeaux); margin-bottom: .5rem; }
.col p { font-size: 1rem; }
.cols--num .col { border-top: 1px solid var(--filet); padding-top: 1.2rem; }
.col__n { display: block; font: 400 1.05rem/1 var(--serif); color: var(--sauge); letter-spacing: .08em; margin-bottom: .7rem; }

/* ---------- Encadré, citation, appel ---------- */
.encadre { background: var(--papier); border: 1px solid var(--filet); border-left: 3px solid var(--miel); padding: 1.4rem 1.6rem; }
.encadre h3 { font-size: 1.45rem; margin-bottom: .4rem; }
.encadre p:last-child { margin: 0; }
.citation { text-align: center; font: italic 400 clamp(1.5rem, 3vw, 2rem)/1.35 var(--serif); color: var(--encre-2); max-width: 36rem; margin: 0 auto; }
.s--appel { background: var(--bordeaux); color: var(--lin); padding-bottom: clamp(3.5rem, 8vw, 6rem) !important; }
.appel { max-width: 36rem; margin: 0 auto; text-align: center; }
.appel .t { color: var(--lin); }
.appel .t::after { background: var(--miel); }
.appel .prose { margin: 0 auto 2rem; }
.appel a:not(.btn) { color: var(--miel); }

/* ---------- Programme ---------- */
.jours { margin-top: 1.5rem; }
.jour { display: grid; grid-template-columns: var(--col) 1fr; gap: 1rem var(--gout); padding: 2rem 0; border-top: 1px solid var(--filet); }
.jour:last-child { border-bottom: 1px solid var(--filet); }
.jour__date { font: italic 400 1.45rem/1.25 var(--serif); color: var(--encre-2); padding-top: .2rem; }
.jour--mariage .jour__date { color: var(--bordeaux); font-weight: 500; }
.jour__evts { display: grid; gap: 1.6rem; }
.evt { display: grid; grid-template-columns: 4.5rem 1fr; gap: 1rem; border-radius: 2px; transition: background-color .6s; }
.evt__heure { font: 500 1.3rem/1.3 var(--serif); margin: .1rem 0 0; color: var(--encre-2); font-variant-numeric: lining-nums; }
.evt h4 { font-size: 1.6rem; font-weight: 500; margin-bottom: .3rem; }
.evt p { margin-bottom: .4rem; }
.evt__marque { font: italic 500 1.05rem/1 var(--serif); color: var(--rose); margin-bottom: .45rem !important; }
.evt--mariage { background: var(--papier); border-left: 2px solid var(--bordeaux); padding: 1.1rem 1.3rem 1rem 1rem; margin-left: -1rem; }
.evt__lieu { font-size: .9rem; color: var(--sauge-f); }
.evt__aide { font-size: .88rem; color: var(--encre-2); margin: .9rem 0 .5rem !important; }
.evt__qui { font-size: .95rem; margin-top: .6rem; }
@media (max-width: 760px) {
  .jour { grid-template-columns: 1fr; gap: .8rem; }
  .evt { grid-template-columns: 1fr; gap: .1rem; }
}

/* ---------- Puces (prénoms, allergies, genres) ---------- */
.puces { display: flex; flex-wrap: wrap; gap: .5rem; }
.puce {
  font: 400 .95rem/1 var(--sans); color: var(--encre);
  background: transparent; border: 1px solid var(--champ); border-radius: 999px;
  padding: .7em 1.15em; min-height: 2.6rem; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.puce:hover { border-color: var(--sauge); }
.puce[aria-pressed="true"] { background: var(--sauge); border-color: var(--sauge); color: #fff; }
.puce[aria-pressed="true"]::before { content: "✓"; margin-right: .45em; font-size: .85em; }
.puce:disabled { cursor: default; opacity: .7; }
.puce--tous { border-style: dashed; color: var(--encre-2); }
.puces--petites .puce { font-size: .88rem; min-height: 2.3rem; padding: .55em .95em; }

/* ---------- Carte ---------- */
.carte-zone { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(15rem, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; margin-top: 1.6rem; }
@media (max-width: 860px) { .carte-zone { grid-template-columns: 1fr; } }
.carte { margin: 0; background: var(--papier); border: 1px solid var(--filet); padding: clamp(.4rem, 1.5vw, .9rem); }
.carte__svg { width: 100%; height: auto; display: block; }
.carte__terre { fill: #F3ECE1; }
.carte__mer { fill: #DCE0CC; }
.carte__fleuve { fill: none; stroke: #C9D0B6; stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.carte__gra { fill: none; stroke: #CDBBA7; stroke-width: 1.2; stroke-dasharray: 4 5; }
.carte__etiq { font-family: var(--serif); font-style: italic; font-size: 17px; fill: var(--encre-2); text-anchor: middle; opacity: .85; }
.carte__etiq--grande { font-size: 26px; letter-spacing: .06em; opacity: .5; }
.carte__echelle line { stroke: var(--encre-2); stroke-width: 1.2; }
.carte__echelle text { font: 12px var(--sans); fill: var(--encre-2); text-anchor: middle; }
.carte__pt { stroke: var(--papier); stroke-width: 2.5; }
.carte__halo { fill: none; stroke: var(--rose); stroke-width: 1.2; }
.carte__fil { stroke: var(--encre-2); stroke-width: 1; opacity: .5; }
.carte__num { font: 500 13px var(--sans); text-anchor: middle; pointer-events: none; }
.carte a:hover .carte__pt, .carte a:focus .carte__pt { stroke: var(--encre); }
.legende { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.6rem 2.5rem; }
.legende h3 { font: italic 500 1.25rem/1.2 var(--serif); color: var(--encre-2); margin-bottom: .6rem; }
.legende ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.legende li { display: grid; grid-template-columns: 1.7rem 1fr; column-gap: .65rem; align-items: baseline; font-size: .95rem; padding: .15rem .3rem; margin: 0 -.3rem; border-radius: 2px; transition: background-color .6s; }
.legende__n { width: 1.55rem; height: 1.55rem; border-radius: 50%; display: inline-grid; place-items: center; font-size: .75rem; font-weight: 500; align-self: start; margin-top: .1rem; }
.legende a { color: var(--encre); text-decoration-color: var(--champ); }
.legende__zone { grid-column: 2; font-size: .85rem; color: var(--encre-2); }

/* ---------- Logements et tables ---------- */
.adresses { display: grid; grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); gap: 1.4rem; margin-top: 1.4rem; }
.adresse { background: var(--papier); border: 1px solid var(--filet); padding: 1.6rem 1.6rem 1.4rem; display: flex; flex-direction: column; transition: background-color .6s; }
.adresse h3 { font-size: 1.55rem; }
.adresse__zone { font: italic 400 1.1rem/1.3 var(--serif); color: var(--encre-2); margin: .15rem 0 .9rem; }
.adresse p { font-size: .98rem; }
.adresse__prix { font-weight: 400; }
.statut { border-top: 1px solid var(--filet); padding-top: .9rem; margin-top: auto; font-size: .92rem; }
.statut p { margin-bottom: .25rem; font-size: .92rem; }
.statut__t { font-weight: 500; display: flex; align-items: center; gap: .5rem; }
.statut__t::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: currentColor; }
.statut--ok .statut__t { color: var(--sauge-f); }
.statut--cours .statut__t { color: #8F6A1F; }
.statut--non .statut__t { color: var(--encre-2); }
.adresse__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; margin-top: 1.1rem; }

.tables { list-style: none; padding: 0; margin: 0; }
.tables li { border-top: 1px solid var(--filet); padding: 1.3rem 0; }
.tables li:last-child { border-bottom: 1px solid var(--filet); }
.tables h3 { font-size: 1.45rem; }
.tables__zone { font: italic 400 1.05rem/1.3 var(--serif); color: var(--encre-2); margin: .1rem 0 .5rem; }
.tables p { font-size: .98rem; margin-bottom: .4rem; }

/* ---------- FAQ ---------- */
.faq { margin-top: 0; }
.faq details { border-top: 1px solid var(--filet); }
.faq details:last-child { border-bottom: 1px solid var(--filet); }
.faq summary { list-style: none; cursor: pointer; position: relative; padding: 1.1rem 2.2rem 1.1rem 0; font: 500 1.35rem/1.3 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .2rem; top: .95rem; font: 300 1.5rem/1 var(--sans); color: var(--rose); }
.faq details[open] summary::after { content: "–"; }
.faq details > p { color: var(--encre-2); padding-right: 2rem; }

/* ---------- Formulaire de réponse ---------- */
.rsvp { max-width: var(--large); margin: 0 auto; display: grid; grid-template-columns: var(--col) minmax(0, 44rem); column-gap: var(--gout); }
.rsvp > .t { grid-column: 1; grid-row: 1 / span 12; }
.rsvp > :not(.t) { grid-column: 2; }
@media (max-width: 860px) { .rsvp { display: block; } }
.etat { font-size: .95rem; padding: .9rem 1.1rem; border-radius: 2px; margin: 0 0 1.5rem; }
.etat--ok { background: color-mix(in srgb, var(--sauge) 12%, var(--papier)); border-left: 3px solid var(--sauge); }
.etat--ferme { background: color-mix(in srgb, var(--miel) 25%, var(--papier)); border-left: 3px solid var(--miel); }
.etat--erreur { background: color-mix(in srgb, var(--rose) 14%, var(--papier)); border-left: 3px solid var(--rose); }
.etape { position: relative; padding: 2.2rem 0; border-top: 1px solid var(--filet); }
.etape__n { position: absolute; right: calc(100% + 1.6rem); top: 2.35rem; font: italic 400 1.5rem/1.2 var(--serif); color: var(--rose); }
@media (max-width: 860px) {
  .etape { display: grid; grid-template-columns: 2.4rem 1fr; gap: .6rem; }
  .etape__n { position: static; padding-top: .2rem; }
}
.etape h3 { font-size: 1.85rem; margin-bottom: 1rem; }
.aide { font-size: .93rem; color: var(--encre-2); }
.question { font-size: .95rem; margin: 1.5rem 0 .6rem; }

.choix { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.choix__btn {
  font: 400 1.25rem/1.25 var(--serif); color: var(--encre); text-align: center;
  background: var(--papier); border: 1px solid var(--champ); border-radius: 2px; padding: 1.2rem 1rem; cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.choix__btn:hover { border-color: var(--bordeaux); }
.choix__btn[aria-pressed="true"] { background: var(--bordeaux); border-color: var(--bordeaux); color: var(--lin); }
@media (max-width: 560px) { .choix { grid-template-columns: 1fr; } }

.moment { padding: 1rem 0; }
.moment + .moment { border-top: 1px dashed var(--filet); }
.moment__t { font: 500 1.3rem/1.3 var(--serif); margin-bottom: .7rem; display: flex; gap: .7rem; align-items: baseline; }
.moment__t span { font: italic 400 1.05rem var(--serif); color: var(--encre-2); }

.ajout { margin-top: 1.2rem; display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.ajout__item { font-size: .92rem; background: var(--papier); border: 1px solid var(--filet); border-radius: 999px; padding: .35em .5em .35em 1em; }
.ajout__x { background: none; border: 0; color: var(--rose); font-size: 1.15rem; line-height: 1; cursor: pointer; padding: 0 .3em; }
.ajout__form { width: 100%; }
.ajout__form summary { cursor: pointer; color: var(--bordeaux); font-size: .95rem; display: inline-block; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.ajout__form[open] summary { margin-bottom: .8rem; }

.convive { background: var(--papier); border: 1px solid var(--filet); padding: 1.2rem 1.3rem; margin-top: 1rem; }
.convive__nom { font: 500 1.4rem/1.2 var(--serif); margin-bottom: .8rem; }
.convive__nom span { font: italic 400 1rem var(--serif); color: var(--encre-2); margin-left: .3rem; }
.convive__sous { font-size: .85rem; color: var(--encre-2); margin: 1rem 0 .5rem; }
.convive .champ:last-child { margin-top: 1rem; }

.ligne { display: flex; flex-wrap: wrap; gap: .8rem 1rem; align-items: flex-end; }
.ligne .champ { flex: 1 1 13rem; }
.ligne .champ--court { flex: 0 0 6rem; }
.grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1rem; }
.champ { display: flex; flex-direction: column; gap: .4rem; font-size: .88rem; color: var(--encre-2); margin-top: .9rem; }
.ligne .champ, .grille .champ { margin-top: 0; }
.champ input, .champ select, .champ textarea {
  font: 400 1rem/1.4 var(--sans); color: var(--encre); width: 100%;
  background: var(--lin); border: 1px solid var(--champ); border-radius: 2px; padding: .75em .85em; min-height: 2.9rem;
}
.convive .champ input, .convive .champ select { background: var(--papier); }
.champ textarea { resize: vertical; min-height: 6rem; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: 2px solid var(--sauge); outline-offset: 0; border-color: var(--sauge); }
.champ input:disabled, .champ select:disabled, .champ textarea:disabled { opacity: .75; }

.segments { display: flex; flex-wrap: wrap; gap: .5rem; }
.seg { font: 400 .95rem/1 var(--sans); color: var(--encre); background: var(--papier); border: 1px solid var(--champ); border-radius: 2px; padding: .85em 1.15em; cursor: pointer; }
.seg:hover { border-color: var(--sauge); }
.seg[aria-pressed="true"] { background: var(--sauge); border-color: var(--sauge); color: #fff; }
.seg:disabled { cursor: default; }

.rsvp__fin { border-top: 1px solid var(--filet); padding-top: 2rem; text-align: center; }
.acces { border-top: 1px solid var(--filet); padding-top: 1.5rem; }

/* ---------- Pied de page ---------- */
.pied { border-top: 1px solid var(--filet); padding: 40px var(--marge) 34px; background: var(--papier); }
.pied__haut { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 32px; }
.pied__sig { display: inline-flex; align-items: center; gap: 18px; }
.pied__sig img { height: 112px; width: auto; mix-blend-mode: multiply; }
.pied__noms { font: 400 clamp(20px, 5.6vw, 28px)/1.2 var(--serif); white-space: nowrap; }
.pied__merci { margin: 0; font-size: 14px; color: var(--encre-2); max-width: 60ch; }
.pied__bas { margin-top: 26px; padding-top: 18px; border-top: 1px dashed var(--filet); font-size: 13px; color: var(--encre-3); }
.pied__bas p { margin: 0 0 .35rem; }
.pied__demo { background: var(--panneau); display: inline-block; padding: .4rem 1rem; border-radius: 999px; margin-top: .6rem !important; }
.pied__demo a { margin-left: .35em; }

/* ---------- Barre d'enregistrement, messages ---------- */
.barre {
  position: fixed; left: 50%; bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 40;
  display: flex; align-items: center; gap: 1rem;
  background: var(--encre); color: var(--lin); border-radius: 999px;
  padding: .45rem .45rem .45rem 1.4rem; box-shadow: 0 12px 34px rgba(51, 38, 31, .28);
  transform: translate(-50%, 180%); visibility: hidden;
  transition: transform .35s cubic-bezier(.2, .7, .25, 1), visibility 0s linear .35s;
  max-width: calc(100% - 2rem);
}
.barre.visible { transform: translate(-50%, 0); visibility: visible; transition-delay: 0s; }
.barre p { margin: 0; font-size: .9rem; white-space: nowrap; }
.toast {
  position: fixed; left: 50%; bottom: 5.2rem; z-index: 41; transform: translate(-50%, 1rem); opacity: 0; pointer-events: none; visibility: hidden;
  background: var(--papier); color: var(--encre); border: 1px solid var(--filet); border-left: 3px solid var(--sauge);
  padding: .9rem 1.2rem; max-width: min(30rem, calc(100% - 2rem)); font-size: .93rem; box-shadow: 0 10px 30px rgba(51, 38, 31, .14);
  transition: opacity .25s, transform .25s;
}
.toast.visible { opacity: 1; transform: translate(-50%, 0); visibility: visible; }
.toast--erreur { border-left-color: var(--rose); }

/* Surbrillance après un lien profond (programme, carte) */
.flash { animation: flash 2.4s ease; }
@keyframes flash { 0%, 35% { background-color: color-mix(in srgb, var(--miel) 45%, transparent); } 100% { background-color: transparent; } }
.evt--mariage.flash { animation-name: flash-papier; }
@keyframes flash-papier { 0%, 35% { background-color: color-mix(in srgb, var(--miel) 45%, var(--papier)); } 100% { background-color: var(--papier); } }

/* ---------- Chargement ---------- */
.attente { position: fixed; inset: 0; display: none; place-items: center; background: var(--lin); z-index: 50; }
.attente span { font: 400 2rem var(--serif); color: var(--encre-2); }
.charge .attente { display: grid; }
@media (prefers-reduced-motion: no-preference) {
  .attente span { animation: respire 1.6s ease-in-out infinite; }
  @keyframes respire { 50% { opacity: .35; } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ==========================================================================
   Blocs du save the date
   ========================================================================== */

/* --- Annonce : photo, titre, date, invitation --- */
.s.s--annonce { padding: 0; }
.annonce { display: flex; flex-wrap: wrap; }
.annonce__photo { flex: 1 1 520px; min-width: 0; width: 100%; aspect-ratio: 5 / 4; object-fit: cover; object-position: 46% 50%; }
.annonce__texte { flex: 1 1 480px; min-width: 0; padding: clamp(40px, 5vw, 80px) clamp(24px, 5vw, 72px); display: flex; flex-direction: column; justify-content: center; }
.annonce__noms { margin: 0; font: 400 26px/1.2 var(--serif); }
.annonce__titre { margin: 10px 0 0; font-size: clamp(60px, 7vw, 108px); line-height: .95; letter-spacing: -.01em; }
.annonce__sous { margin: 18px 0 0; font: 400 clamp(28px, 2.8vw, 36px)/1.25 var(--serif); }
.annonce__quand { margin-top: 32px; padding: 18px 0; border-top: 1px solid var(--filet); border-bottom: 1px solid var(--filet); }
.annonce__quand p { margin: 0; font-size: 21px; line-height: 1.45; }
.annonce__quand p + p { margin-top: 2px; }
.annonce__question { margin: 26px 0 0; font: 400 23px/1.35 var(--serif); max-width: 30ch; }
.annonce__actions { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.annonce__actions span { font-size: 14px; color: var(--encre-2); }

/* « à l'italienne » : trait à la plume et brin de basilic sur le i du milieu */
.ital { position: relative; display: inline-block; color: var(--accent); }
.ital__plume { position: absolute; left: -4px; bottom: -18px; width: calc(100% + 8px); height: 22px; overflow: visible;
  fill: none; stroke: var(--plume); stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.ital__i { position: relative; display: inline-block; }
.ital__brin { position: absolute; left: 50%; top: .02em; width: .44em; height: .44em; transform: translateX(-46%); overflow: visible;
  stroke: var(--basilic); fill: var(--basilic-clair); stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }

/* --- Panneau illustré (« Ça percole… ») --- */
.s.s--illustration { background: var(--panneau); padding: clamp(64px, 8vw, 104px) var(--marge); }
.illu { max-width: 1200px; margin: 0 auto; }
.illu__haut { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 80px; }
.medaillon { flex: 0 1 400px; min-width: 0; width: 100%; max-width: 400px; margin: 12px auto; aspect-ratio: 1; border-radius: 50%;
  overflow: hidden; outline: 1.5px dashed var(--bouton); outline-offset: 12px; }
.medaillon { position: relative; container-type: inline-size; }
.medaillon img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 41%; }
.medaillon__legende { position: absolute; left: 22%; right: 21%; top: 68.2%; height: 6.2%; display: flex; align-items: center; justify-content: center;
  font: 400 6.1cqw/1 "Patrick Hand SC", "Comic Sans MS", cursive; letter-spacing: .06em; white-space: nowrap;
  color: #211C1A; -webkit-text-stroke: .16cqw #211C1A; pointer-events: none; }
.illu__texte { flex: 1 1 460px; min-width: 0; }
.illu__texte h2 { font-size: clamp(48px, 5.4vw, 76px); line-height: 1; }
.illu__texte .prose { max-width: none; margin-top: 22px; }
.illu__texte .prose p:first-child { font-size: 19px; line-height: 1.55; }
.illu__texte .prose p + p { margin-top: 18px; }
.illu__semaine { margin-top: clamp(40px, 5vw, 64px); }

/* --- Calendrier de la semaine --- */
.cal { display: grid; gap: clamp(6px, .8vw, 10px); }
.cal__mois { margin: 0 0 2px; font-size: clamp(12px, 1.1vw, 14px); color: var(--encre-3); }
.cal__mois--suite { padding-left: 8px; border-left: 1px solid var(--pointille); }
.cal__case { display: flex; flex-direction: column; align-items: center; min-width: 0; border-radius: 8px;
  padding: clamp(8px, 1vw, 14px) 2px clamp(9px, 1vw, 14px); background: var(--papier); border: 1px dashed var(--pointille);
  color: var(--encre); font: inherit; text-align: center; }
.cal__j { font-size: clamp(12px, 1.1vw, 14px); line-height: 1.3; color: var(--encre-3); }
.cal__n { font: 400 clamp(18px, 2.6vw, 30px)/1.1 var(--serif); margin-top: 2px; }
.cal__c { font-size: 11px; line-height: 1; margin-top: 3px; min-height: 11px; }
.cal__case--mariage, .cal__case[aria-pressed="true"] { background: var(--bouton); border: 1px solid var(--bouton); color: #fff; }
.cal__case--mariage .cal__j, .cal__case[aria-pressed="true"] .cal__j { color: #fff; }
button.cal__case { cursor: pointer; transition: background .15s, border-color .15s; }
button.cal__case:hover:not([aria-pressed="true"]) { border-color: var(--bouton); }
.cal__legende { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 14px; font-size: 15px; line-height: 1.4; }
.pastille { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-right: 8px;
  background: var(--papier); border: 1px dashed var(--pointille); }
.pastille--plein { background: var(--bouton); border: 1px solid var(--bouton); }
.cal__compte { margin-top: 10px !important; }

/* --- Phrase centrée --- */
.s.s--phrase { padding: clamp(56px, 7vw, 96px) var(--marge) clamp(40px, 5vw, 64px); text-align: center; }
.phrase__t { margin: 0 auto; max-width: 900px; font: 400 clamp(30px, 3.4vw, 46px)/1.2 var(--serif); }
.phrase__s { margin: 12px 0 0; font: italic 400 21px/1.4 var(--sans); color: var(--accent); }

/* --- Bientôt servi --- */
.s.s--bientot { padding: 0 var(--marge) clamp(56px, 7vw, 96px); }
.bientot { max-width: 1200px; margin: 0 auto; }
.bientot__t { margin: 0 0 8px; font-size: 38px; line-height: 1.1; }
.bientot__tasse { display: inline-block; height: 1.35em; width: auto; vertical-align: -.2em; margin-left: .3em; }
.bientot__intro { margin: 0 0 28px; color: var(--encre-2); }
.bientot__grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 24px; }
.bientot__item { border-top: 2px solid var(--accent); padding-top: 16px; }
.bientot__item h3 { font-size: 26px; }
.bientot__item p { margin: 6px 0 0; font-size: 15.5px; color: var(--encre-2); }
.jauge { position: relative; margin-top: 12px; }
.jauge__sablier { position: absolute; right: 0; bottom: 13px; height: 17px; width: auto; }
.jauge__barre { height: 8px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 18%, transparent); overflow: hidden; }
.jauge__barre span { display: block; height: 100%; border-radius: 999px; background: var(--accent); }
@media (max-width: 600px) { .bientot__item { border-top-width: 1px; } }

/* ==========================================================================
   Formulaire court (étape 1)
   ========================================================================== */
.s.s--rsvp { padding-top: clamp(24px, 4vw, 56px); }
.f1 { max-width: 780px; margin: 0 auto; }
.f1__bonjour { margin: 0; font: 400 22px/1.3 var(--serif); color: var(--accent); }
.f1__titre { margin: 8px 0 0; font-size: clamp(46px, 5.6vw, 76px); line-height: 1; }
.f1__intro { margin-top: 20px; max-width: 36em; }
.f1__intro p { font-size: 18px; line-height: 1.55; }
.f1__delai { margin: 18px 0 34px; display: inline-flex; align-items: center; gap: 10px; font-size: 15px; background: var(--panneau); border-radius: 999px; padding: 8px 16px; }
.f1__delai i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: 0 0 auto; }
.f1 .etat { margin: 18px 0 30px; }
.f1__etape { display: flex; flex-wrap: wrap; gap: 4px 24px; padding: 34px 0 38px; border-top: 1px solid var(--pointille); }
.f1__n { flex: 0 0 52px; font: 400 clamp(36px, 4vw, 48px)/1 var(--serif); color: var(--accent); }
.f1__corps { flex: 1 1 280px; min-width: 0; }
.f1__corps h2 { font-size: clamp(28px, 3vw, 38px); line-height: 1.1; }
.f1__q { margin: 26px 0 4px; font: 400 clamp(20px, 2vw, 24px)/1.25 var(--serif); }
.f1 .aide { margin: 0 0 12px; font-size: 14.5px; color: var(--encre-3); }
.f1 .cal__n { font-size: clamp(18px, 2.4vw, 26px); }
.f1 .cal__case { padding-top: 8px; padding-bottom: 9px; }
.etiquette { font: 400 13px/1.4 var(--sans); color: var(--encre-3); border: 1px solid var(--champ); border-radius: 999px; padding: 2px 10px; margin-left: 4px; vertical-align: 3px; white-space: nowrap; }
.f1 .champ { margin-top: 0; }
.f1 .champ--court { max-width: 7rem; }
.f1 .champ--email { max-width: 420px; }
.ages { display: flex; flex-wrap: wrap; gap: 12px 20px; }
.champ--age { color: var(--encre-3); }
.champ--age span { display: flex; align-items: center; gap: 8px; color: var(--encre); }
.champ--age input { width: 6.5rem; }
.f1__fin { border-top: 1px solid var(--pointille); padding: 34px 0 8px; text-align: center; }
.f1__fin .btn { padding: 17px 34px; font-size: 16px; }
.f1__fin .aide { margin: 14px auto 0; max-width: 34em; }
.f1 .acces { border-top: 1px solid var(--pointille); margin-top: 30px; padding-top: 24px; }
.f1 .ajout { margin-top: 14px; }

/* Puces et grands choix : partagés avec le formulaire complet */
.puces { display: flex; flex-wrap: wrap; gap: 8px; }
.puce {
  display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: 999px;
  font: 400 15px/1.2 var(--sans); color: var(--encre); background: var(--papier); border: 1px solid var(--champ); cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.puce:hover { border-color: var(--bouton); }
.puce[aria-pressed="true"] { background: var(--bouton); border-color: var(--bouton); color: #fff; }
.puce[aria-pressed="true"]::before { content: "✓\00a0"; }
.puce:disabled { cursor: default; opacity: .8; }
.choix { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 10px; }
.choix__btn {
  display: flex; align-items: center; justify-content: center; text-align: center; min-height: 64px; padding: 10px 16px;
  font: 400 20px/1.25 var(--serif); color: var(--encre); background: var(--papier); border: 1px solid var(--champ); border-radius: 10px; cursor: pointer;
}
.choix__btn:hover { border-color: var(--bouton); }
.choix__btn[aria-pressed="true"] { background: var(--bouton); border-color: var(--bouton); color: #fff; }
.champ input, .champ select, .champ textarea { background: #fff; border-radius: 8px; min-height: 46px; font-size: 16px; }
.ajout__form summary { color: var(--encre); text-decoration-color: var(--accent); }
