/* Confettine — design « carton de fête »
   Mobile-first strict : base 360px, media queries min-width UNIQUEMENT. */

/* ---------- Fonts (self-hostées, variables) ---------- */
@font-face {
  font-family: "Fraunces";
  src: url("/static/fonts/fraunces-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/static/fonts/fraunces-italic-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/static/fonts/figtree-var.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --rose-dragee: #f6ecf1;
  --rose-dragee-deep: #efdde7;
  --encre: #2e2135;
  --encre-douce: #5c4a66;
  --corail: #e8503a;
  --corail-fonce: #c73a26; /* contraste AA sur fond clair */
  --mimosa: #f5b52e;
  --guinguette: #237a57;
  --carton: #fffcf8;
  --liseret: #e5d3dd;
  --erreur: #b3261e;
  --ok: #1e6e4e;

  --display: "Fraunces", georgia, serif;
  --body: "Figtree", system-ui, -apple-system, sans-serif;

  --s1: 0.25rem; --s2: 0.5rem; --s3: 0.75rem; --s4: 1rem;
  --s5: 1.5rem; --s6: 2rem; --s7: 3rem; --s8: 4.5rem;

  --radius: 14px;
  --ombre: 0 2px 6px rgba(46, 33, 53, 0.08), 0 12px 32px rgba(46, 33, 53, 0.1);
  --ombre-douce: 0 1px 3px rgba(46, 33, 53, 0.09);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--encre);
  background: var(--rose-dragee);
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--guinguette); text-underline-offset: 2px; }
a:hover { color: var(--encre); }
:focus-visible {
  outline: 3px solid var(--corail-fonce);
  outline-offset: 2px;
  border-radius: 4px;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--encre); color: #fff; padding: var(--s3) var(--s4);
}
.skip-link:focus { left: var(--s3); }

h1, h2, h3 {
  font-family: var(--display);
  line-height: 1.15;
  margin: 0 0 var(--s4);
  font-weight: 650;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.15rem; }
h1 em, h2 em, .accent-em {
  font-style: italic;
  font-weight: 600;
  color: var(--corail-fonce);
}
p { margin: 0 0 var(--s4); }
.muted { color: var(--encre-douce); }

/* ---------- Layout ---------- */
.wrap { max-width: 68rem; margin: 0 auto; padding: 0 var(--s4); }
.wrap--narrow { max-width: 44rem; }
main { display: block; min-height: 60vh; }
section { padding: var(--s7) 0; }

/* ---------- Header / nav ---------- */
.site-head { background: var(--rose-dragee); }
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s3); padding-top: var(--s4); padding-bottom: var(--s4);
}
.brand {
  font-family: var(--display); font-weight: 700; font-size: 1.3rem;
  color: var(--encre); text-decoration: none; display: inline-flex;
  align-items: center; gap: var(--s2); min-height: 44px;
}
.brand:hover { color: var(--corail-fonce); }
.brand svg { flex: none; }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; border: 1px solid var(--liseret);
  background: var(--carton); border-radius: 10px; cursor: pointer;
  color: var(--encre);
}
.site-nav {
  display: none;
  position: absolute; left: var(--s4); right: var(--s4); top: 68px;
  background: var(--carton); border: 1px solid var(--liseret);
  border-radius: var(--radius); box-shadow: var(--ombre);
  padding: var(--s3); z-index: 50;
}
.site-nav.open { display: block; }
.site-nav a {
  display: flex; align-items: center; min-height: 44px;
  padding: 0 var(--s3); border-radius: 10px;
  color: var(--encre); text-decoration: none; font-weight: 500;
}
.site-nav a:hover { background: var(--rose-dragee); }
.site-nav a[aria-current="page"] { color: var(--corail-fonce); font-weight: 600; }
.head-anchor { position: relative; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--s2); min-height: 48px; padding: 0 var(--s5);
  border-radius: 999px; border: none; cursor: pointer;
  font: 600 1rem var(--body); text-decoration: none;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
  touch-action: manipulation;
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--corail); color: #fff; }
.btn--primary:hover { background: var(--corail-fonce); color: #fff; }
.btn--ghost {
  background: transparent; color: var(--encre);
  border: 1.5px solid var(--encre);
}
.btn--ghost:hover { background: var(--encre); color: var(--carton); }
.btn--small { min-height: 44px; padding: 0 var(--s4); font-size: 0.95rem; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }

/* ---------- Carton (signature) ---------- */
.carton {
  --carton-bg: var(--carton);
  --carton-ink: var(--encre);
  --carton-accent: var(--corail-fonce);
  --carton-soft: var(--rose-dragee);
  position: relative;
  background: var(--carton-bg);
  color: var(--carton-ink);
  border-radius: 6px;
  box-shadow: var(--ombre);
  padding: var(--s6) var(--s5) var(--s5);
  margin-top: 12px; /* place pour les festons */
}
/* bord festonné haut */
.carton::before {
  content: "";
  position: absolute; top: -9px; left: 0; right: 0; height: 18px;
  background:
    radial-gradient(circle at 9px 18px, var(--carton-bg) 9px, transparent 9.5px)
    left bottom / 18px 18px repeat-x;
  filter: drop-shadow(0 -1px 1px rgba(46, 33, 53, 0.06));
}
.carton__eyebrow {
  font: 600 0.8rem var(--body);
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--carton-accent);
  margin: 0 0 var(--s2);
}
.carton__title {
  font-family: var(--display); font-weight: 680;
  font-size: 1.7rem; line-height: 1.1; margin: 0 0 var(--s2);
  color: var(--carton-ink);
}
.carton__host { color: inherit; opacity: 0.78; margin: 0 0 var(--s4); font-size: 0.95rem; }
.carton__meta {
  display: grid; gap: var(--s3); margin: var(--s4) 0;
  padding: var(--s4) 0; border-top: 1px dashed currentColor;
  border-bottom: 1px dashed currentColor;
}
.carton__meta-item { display: flex; gap: var(--s3); align-items: baseline; }
.carton__meta-item svg { flex: none; translate: 0 2px; opacity: 0.75; }
.carton__meta-item strong { font-weight: 600; }
.carton__msg { white-space: pre-line; margin: var(--s4) 0 0; }

/* confettis posés sur le carton */
.carton__confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; border-radius: 6px; }
.carton__confetti i {
  position: absolute; display: block;
  width: 8px; height: 8px; border-radius: 50%;
  opacity: 0.9;
}
.carton__confetti i:nth-child(2n) { width: 5px; height: 12px; border-radius: 3px; rotate: 24deg; }
.carton__confetti i:nth-child(3n) { rotate: -32deg; }
.carton__confetti i:nth-child(1) { top: 2%; left: 3%; background: var(--mimosa); }
.carton__confetti i:nth-child(2) { top: 12%; right: 9%; background: var(--corail); }
.carton__confetti i:nth-child(3) { top: 30%; left: 3%; background: var(--guinguette); }
.carton__confetti i:nth-child(4) { bottom: 14%; right: 5%; background: var(--mimosa); }
.carton__confetti i:nth-child(5) { bottom: 6%; left: 12%; background: var(--corail); }
.carton__confetti i:nth-child(6) { top: 4%; right: 30%; background: var(--guinguette); }
@media (prefers-reduced-motion: no-preference) {
  .carton--anime .carton__confetti i {
    animation: confetti-pose 0.9s cubic-bezier(0.2, 0.7, 0.3, 1) backwards;
  }
  .carton--anime .carton__confetti i:nth-child(2) { animation-delay: 0.08s; }
  .carton--anime .carton__confetti i:nth-child(3) { animation-delay: 0.16s; }
  .carton--anime .carton__confetti i:nth-child(4) { animation-delay: 0.24s; }
  .carton--anime .carton__confetti i:nth-child(5) { animation-delay: 0.32s; }
  .carton--anime .carton__confetti i:nth-child(6) { animation-delay: 0.4s; }
}
@keyframes confetti-pose {
  from { transform: translateY(-46px); opacity: 0; }
  60% { opacity: 1; }
  to { transform: none; opacity: 0.9; }
}

/* ---------- Thèmes de carton ---------- */
.carton--confetti { /* défaut : blanc carton, accents corail */ }
.carton--guinguette {
  --carton-bg: #fdf6e9;
  --carton-ink: #33301f;
  --carton-accent: #9a5b17;
}
.carton--guinguette::after {
  content: ""; position: absolute; top: 10px; left: 0; right: 0; height: 26px;
  pointer-events: none;
  background:
    radial-gradient(circle 4px at 10% 18px, #e8a13a 96%, transparent),
    radial-gradient(circle 4px at 30% 8px, #d9663c 96%, transparent),
    radial-gradient(circle 4px at 50% 20px, #e8a13a 96%, transparent),
    radial-gradient(circle 4px at 70% 8px, #7a8c3f 96%, transparent),
    radial-gradient(circle 4px at 90% 18px, #d9663c 96%, transparent);
}
.carton--dragee {
  --carton-bg: #fdf4f7;
  --carton-ink: #4a2c3d;
  --carton-accent: #b04a72;
  --carton-soft: #f7e3ec;
}
.carton--minuit {
  --carton-bg: #221f33;
  --carton-ink: #f4ecd8;
  --carton-accent: #d9a93f;
  --carton-soft: #322e49;
}
.carton--minuit .carton__confetti i:nth-child(odd) { background: #d9a93f; }
.carton--minuit .carton__confetti i:nth-child(even) { background: #8f86c9; }
.carton--jardin {
  --carton-bg: #f5f8ee;
  --carton-ink: #24331d;
  --carton-accent: #3f6d33;
  --carton-soft: #e6efdb;
}
.carton--neon {
  --carton-bg: #1d1b29;
  --carton-ink: #fdf3ff;
  --carton-accent: #ff7ac2;
  --carton-soft: #2d2941;
}
.carton--neon .carton__title { text-shadow: 0 0 18px rgba(255, 122, 194, 0.45); }
.carton--neon .carton__confetti i:nth-child(odd) { background: #ff7ac2; }
.carton--neon .carton__confetti i:nth-child(even) { background: #59e3d5; }

/* ---------- Hero ---------- */
.hero { padding: var(--s6) 0 var(--s7); }
.hero .wrap { display: grid; gap: var(--s6); }
.hero__copy { max-width: 34rem; }
.hero h1 { font-size: 2.1rem; margin-bottom: var(--s4); }
.hero__lead { font-size: 1.1rem; color: var(--encre-douce); margin-bottom: var(--s5); }
.hero__cta { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s2); }
.hero__cta-sub { font-size: 0.9rem; color: var(--encre-douce); }
.hero__demo { position: relative; max-width: 26rem; }
.hero__demo .carton { rotate: 1.6deg; }
.hero__badge {
  position: absolute; top: -2px; right: -6px; z-index: 2;
  background: var(--encre); color: var(--rose-dragee);
  font: 600 0.75rem var(--body); letter-spacing: 0.08em; text-transform: uppercase;
  padding: var(--s1) var(--s3); border-radius: 999px; rotate: 3deg;
}

/* ---------- Cartes / grilles ---------- */
.grid { display: grid; gap: var(--s4); }
.card {
  background: var(--carton); border: 1px solid var(--liseret);
  border-radius: var(--radius); padding: var(--s5);
  box-shadow: var(--ombre-douce);
}
.card h3 { margin-bottom: var(--s2); }
.card p:last-child { margin-bottom: 0; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--rose-dragee-deep); color: var(--corail-fonce);
  font: 700 1rem var(--display); margin-bottom: var(--s3);
}
.occ-grid { display: grid; gap: var(--s3); grid-template-columns: repeat(2, 1fr); }
.occ-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: var(--s2);
  background: var(--carton); border: 1px solid var(--liseret);
  border-radius: var(--radius); padding: var(--s4);
  color: var(--encre); text-decoration: none; font-weight: 600;
  min-height: 44px; box-shadow: var(--ombre-douce);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.occ-card:hover { transform: translateY(-2px); box-shadow: var(--ombre); color: var(--corail-fonce); }
.occ-card svg { color: var(--corail-fonce); }

/* ---------- Formulaires ---------- */
form { margin: 0; }
.field { margin-bottom: var(--s5); }
.field label { display: block; font-weight: 600; margin-bottom: var(--s2); }
.field .hint { font-size: 0.9rem; color: var(--encre-douce); margin: var(--s1) 0 0; }
.field .err { font-size: 0.92rem; color: var(--erreur); font-weight: 600; margin: var(--s2) 0 0; }
input[type="text"], input[type="email"], input[type="date"], input[type="time"],
input[type="number"], select, textarea {
  width: 100%; min-height: 48px; padding: var(--s3) var(--s4);
  font: 400 1rem var(--body); color: var(--encre);
  background: var(--carton); border: 1.5px solid var(--liseret);
  border-radius: 10px;
}
textarea { min-height: 9rem; resize: vertical; line-height: 1.55; }
input:focus, select:focus, textarea:focus {
  outline: 3px solid rgba(199, 58, 38, 0.35); outline-offset: 0;
  border-color: var(--corail-fonce);
}
.field--invalid input, .field--invalid textarea, .field--invalid select { border-color: var(--erreur); }
.field-row { display: grid; gap: var(--s4); }
.check {
  display: flex; align-items: center; gap: var(--s3);
  min-height: 44px; font-weight: 500; cursor: pointer;
}
.check input { width: 22px; height: 22px; accent-color: var(--corail); flex: none; }
/* les radios/checkbox n'affichent pas de texte mais le détecteur iOS-zoom
   regarde la font-size calculée de tous les inputs : on la fixe partout */
input, select, textarea, button { font-size: 1rem; }
/* honeypot : hors écran, pas display:none (les bots le détectent) */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* choix de thème (radios visuelles) */
.theme-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); }
.theme-pick label {
  position: relative; cursor: pointer; border-radius: 12px;
  border: 2px solid var(--liseret); padding: var(--s2);
  display: flex; flex-direction: column; gap: var(--s2); align-items: center;
  min-height: 44px; font-size: 0.85rem; font-weight: 600; text-align: center;
}
.theme-pick input { position: absolute; opacity: 0; }
.theme-pick .swatch { width: 100%; height: 34px; border-radius: 8px; border: 1px solid rgba(46,33,53,0.12); }
.theme-pick label:has(input:checked) { border-color: var(--corail-fonce); background: var(--rose-dragee-deep); }
.theme-pick label:has(input:focus-visible) { outline: 3px solid var(--corail-fonce); outline-offset: 2px; }
.sw--confetti { background: linear-gradient(135deg, #fffcf8 55%, #e8503a 55% 62%, #fffcf8 62% 72%, #f5b52e 72% 79%, #fffcf8 79%); }
.sw--guinguette { background: linear-gradient(135deg, #fdf6e9 55%, #e8a13a 55% 65%, #fdf6e9 65% 75%, #d9663c 75% 82%, #fdf6e9 82%); }
.sw--dragee { background: linear-gradient(135deg, #fdf4f7 55%, #b04a72 55% 63%, #fdf4f7 63% 73%, #f7e3ec 73%); }
.sw--minuit { background: linear-gradient(135deg, #221f33 60%, #d9a93f 60% 68%, #221f33 68% 78%, #8f86c9 78% 84%, #221f33 84%); }
.sw--jardin { background: linear-gradient(135deg, #f5f8ee 55%, #3f6d33 55% 63%, #f5f8ee 63% 73%, #e8a13a 73% 79%, #f5f8ee 79%); }
.sw--neon { background: linear-gradient(135deg, #1d1b29 55%, #ff7ac2 55% 63%, #1d1b29 63% 73%, #59e3d5 73% 79%, #1d1b29 79%); }

/* ---------- RSVP (page événement) ---------- */
.rsvp-block { margin-top: var(--s5); }
.rsvp-q { font-family: var(--display); font-size: 1.25rem; font-weight: 650; margin-bottom: var(--s4); }
.rsvp-choices { display: grid; gap: var(--s3); }
.rsvp-choices label {
  position: relative; display: flex; align-items: center; justify-content: center;
  gap: var(--s2); min-height: 52px; padding: var(--s3) var(--s4);
  border: 2px solid currentColor; border-radius: 999px;
  font-weight: 650; cursor: pointer; text-align: center;
  transition: transform 0.12s ease, background-color 0.12s ease;
}
.rsvp-choices label:active { transform: scale(0.97); }
.rsvp-choices input { position: absolute; opacity: 0; }
.rsvp-choices label:has(input:checked) {
  background: var(--carton-accent); border-color: var(--carton-accent);
  color: var(--carton-bg);
}
.rsvp-choices label:has(input:focus-visible) { outline: 3px solid var(--carton-accent); outline-offset: 3px; }
.rsvp-details { margin-top: var(--s4); }
.rsvp-details .field label { color: inherit; }
.rsvp-details input, .rsvp-details textarea {
  background: var(--carton-soft); border-color: transparent; color: inherit;
}
.rsvp-details input::placeholder, .rsvp-details textarea::placeholder { color: inherit; opacity: 0.55; }
.rsvp-count {
  display: inline-flex; align-items: baseline; gap: var(--s2);
  font-size: 0.95rem; opacity: 0.85; margin-top: var(--s4);
}
.rsvp-count strong { font-size: 1.3rem; font-family: var(--display); }
.thanks-box {
  border: 1.5px dashed currentColor; border-radius: var(--radius);
  padding: var(--s4); margin-top: var(--s4);
}
.thanks-box p { margin: 0 0 var(--s3); }
.ev-footer {
  text-align: center; padding: var(--s6) var(--s4) var(--s7);
  font-size: 0.95rem; color: var(--encre-douce);
}
.ev-footer a { font-weight: 650; }

/* ---------- Admin ---------- */
.welcome-banner {
  background: var(--carton); border: 2px solid var(--guinguette);
  border-radius: var(--radius); padding: var(--s5); margin-bottom: var(--s6);
}
.welcome-banner h2 { color: var(--guinguette); margin-bottom: var(--s2); }
.welcome-banner p:last-child { margin: 0; }
.share-box { display: grid; gap: var(--s4); }
.share-item { background: var(--carton); border: 1px solid var(--liseret); border-radius: var(--radius); padding: var(--s4); min-width: 0; }
.share-item .lbl { font-weight: 650; margin-bottom: var(--s2); display: flex; align-items: center; gap: var(--s2); }
.share-item .lbl svg { color: var(--corail-fonce); }
.share-url-row { display: flex; gap: var(--s2); min-width: 0; max-width: 100%; }
.share-url {
  flex: 1 1 0; min-width: 0; min-height: 44px; padding: var(--s2) var(--s3);
  font-size: 0.85rem; color: var(--encre-douce);
  background: var(--rose-dragee); border: 1px solid var(--liseret); border-radius: 8px;
  overflow-x: auto; white-space: nowrap; display: flex; align-items: center;
}
.share-url-row .btn { flex: none; }
.share-warn { font-size: 0.88rem; color: var(--erreur); margin: var(--s2) 0 0; }
.stat-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3); margin: var(--s6) 0; }
.stat {
  background: var(--carton); border: 1px solid var(--liseret);
  border-radius: var(--radius); padding: var(--s4); text-align: center;
}
.stat b { display: block; font: 700 1.8rem var(--display); font-variant-numeric: tabular-nums; }
.stat span { font-size: 0.88rem; color: var(--encre-douce); }
.stat--yes b { color: var(--ok); }
.stat--maybe b { color: #9a6a10; }
.stat--no b { color: var(--encre-douce); }
.stat--people b { color: var(--corail-fonce); }
.rsvp-table-wrap { overflow-x: auto; border: 1px solid var(--liseret); border-radius: var(--radius); background: var(--carton); }
table.rsvp-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.rsvp-table th, .rsvp-table td { text-align: left; padding: var(--s3) var(--s4); border-bottom: 1px solid var(--liseret); }
.rsvp-table tr:last-child td { border-bottom: none; }
.rsvp-table th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--encre-douce); }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.82rem; font-weight: 650; }
.pill--yes { background: #ddefe4; color: var(--ok); }
.pill--maybe { background: #f9ecce; color: #8a5d0a; }
.pill--no { background: var(--rose-dragee-deep); color: var(--encre-douce); }
.admin-actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s6); }
.empty-box {
  text-align: center; padding: var(--s7) var(--s4);
  background: var(--carton); border: 1.5px dashed var(--liseret); border-radius: var(--radius);
}
.empty-box h3 { margin-bottom: var(--s2); }
.empty-box p { margin: 0 auto; max-width: 26rem; color: var(--encre-douce); }

/* ---------- Occasion (page SEO) ---------- */
.tpl-list { display: grid; gap: var(--s4); margin: var(--s5) 0; }
.tpl {
  background: var(--carton); border: 1px solid var(--liseret);
  border-radius: var(--radius); padding: var(--s5);
  box-shadow: var(--ombre-douce);
}
.tpl blockquote { margin: 0 0 var(--s4); font-size: 1.02rem; white-space: pre-line; }
.tips-list { padding-left: 1.2rem; margin: 0; }
.tips-list li { margin-bottom: var(--s3); }

/* ---------- Pages textes d'invitation ---------- */
.wd-count { font-size: 0.55em; font-weight: 500; color: var(--encre-douce); white-space: nowrap; }
.wd-toc {
  display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center;
  margin: var(--s5) 0 var(--s6);
}
.wd-toc__label { font-weight: 650; margin-right: var(--s2); }
.wd-toc__chip {
  display: inline-flex; align-items: center; gap: var(--s1);
  min-height: 44px; padding: 0 var(--s4); border-radius: 999px;
  background: var(--carton); border: 1.5px solid var(--liseret);
  color: var(--encre); text-decoration: none; font-weight: 600; font-size: 0.92rem;
}
.wd-toc__chip:hover { border-color: var(--corail-fonce); color: var(--corail-fonce); }
.wd-group { padding: var(--s5) 0 0; }
.wd-group h2 { margin-bottom: var(--s1); scroll-margin-top: var(--s5); }
.wd-item blockquote { margin-bottom: var(--s4); }
.wd-actions { display: flex; flex-wrap: wrap; gap: var(--s3); }
.wd-band {
  background: var(--carton); border: 2px solid var(--corail);
  border-radius: var(--radius); padding: var(--s5); margin-top: var(--s7);
  text-align: center;
}
.wd-band p { max-width: 32rem; margin-left: auto; margin-right: auto; }
.wdx-card { flex-direction: row; align-items: center; flex-wrap: wrap; }
.wdx-card > span:first-of-type { flex: 1; min-width: 0; }
.occ-wordings {
  background: var(--rose-dragee-deep); border-radius: var(--radius);
  padding: var(--s5); margin: var(--s5) 0;
}
.occ-wordings h2 { margin-bottom: var(--s2); }
.occ-wordings p { margin-bottom: var(--s3); }

/* ---------- Notices ---------- */
.notice { border-radius: var(--radius); padding: var(--s4) var(--s5); margin-bottom: var(--s5); }
.notice--ok { background: #ddefe4; color: #14503a; }
.notice--err { background: #f7dcd9; color: #7c1d15; }
.notice p:last-child { margin: 0; }

/* ---------- Footer ---------- */
.site-foot {
  border-top: 1px solid var(--liseret); margin-top: var(--s7);
  padding: var(--s6) 0; font-size: 0.92rem; color: var(--encre-douce);
}
.site-foot .wrap { display: grid; gap: var(--s4); }
.site-foot nav { display: flex; flex-wrap: wrap; gap: var(--s4); }
.site-foot a { color: var(--encre-douce); }
.site-foot a:hover { color: var(--encre); }

/* ---------- Utilitaires (remplacent tout style inline — CSP style-src 'self') */
.section-tight { padding-top: var(--s5); }
.small-note { font-size: 0.9rem; opacity: 0.8; }
.m-0 { margin: 0; }
.mt-3 { margin-top: var(--s3); }
.mt-5 { margin-top: var(--s5); }
.mt-6 { margin-top: var(--s6); }
.inline-form { display: inline; }
.lead-narrow { max-width: 40rem; }
.field-legend { display: block; font-weight: 600; margin-bottom: var(--s2); }

/* ---------- Divers ---------- */
.hide-sm { display: none; }
@media (min-width: 640px) { .hide-sm { display: table-cell; } }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.section-title { margin-bottom: var(--s5); }
.hero-error { padding: var(--s8) 0; text-align: center; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* ---------- min-width 640 ---------- */
@media (min-width: 640px) {
  h1 { font-size: 2.6rem; }
  .hero h1 { font-size: 2.9rem; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .occ-grid { grid-template-columns: repeat(3, 1fr); }
  .field-row--2 { grid-template-columns: 1fr 1fr; }
  .rsvp-choices { grid-template-columns: repeat(3, 1fr); }
  .stat-row { grid-template-columns: repeat(4, 1fr); }
  .theme-pick { grid-template-columns: repeat(6, 1fr); }
  .carton { padding: var(--s7) var(--s6) var(--s6); }
}

/* ---------- min-width 900 ---------- */
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: flex; position: static; background: transparent;
    border: none; box-shadow: none; padding: 0; gap: var(--s2);
  }
  .site-nav a { min-height: 44px; padding: 0 var(--s3); }
  .hero .wrap { grid-template-columns: 1.1fr 0.9fr; align-items: center; }
  .hero__demo { justify-self: end; width: 100%; }
  .occ-grid { grid-template-columns: repeat(4, 1fr); }
  .share-box { grid-template-columns: 1fr 1fr; }
}
