/* =============================================================
   Marion & Antony — Editorial Wedding v5
   Direction : poudre + vert d'eau + sapin-encre
   + Effets éditoriaux type basketrunning.fr (marquees, section nums)
   Typos : Fraunces (variable) + Inter
   ============================================================= */

:root {
  /* Palette "Frais" : sapin-encre · céladon · poudre nude · terracotta */
  --c-bg:         #F8F2E9;        /* ivoire — fond principal */
  --c-bg-warm:    #EFE5D4;        /* ivoire chaud — sections alternées */
  --c-cream:      #FBF7EF;        /* crème — cartes / formulaire */

  /* Noms historiques conservés pour compat — voir rôles ci-contre */
  --c-teal:       #2D4B4A;        /* SAPIN-ENCRE (foncé principal) */
  --c-teal-dark:  #1A3433;        /* sapin nuit */
  --c-teal-light: #A4C6BD;        /* VERT D'EAU (céladon) */

  --c-wood:       #B86B5C;        /* TERRACOTTA (accent chaud) */
  --c-wood-dark:  #8F4F42;        /* terracotta brûlée */

  --c-gold:       #E8C8BF;        /* POUDRE NUDE (accent doux) */
  --c-gold-dark:  #C49B8E;        /* poudre saturée — texte sur clair */

  --c-ink:        #2D4B4A;        /* texte principal = sapin-encre */
  --c-ink-soft:   #4D6663;        /* texte secondaire sapin doux */

  /* Alias rétro-compatibilité */
  --c-stone:      #B86B5C;
  --c-stone-dark: #8F4F42;
  --c-olive:      #2D4B4A;

  --c-line:       rgba(45, 75, 74, 0.12);
  --c-line-light: rgba(45, 75, 74, 0.06);
  --c-error:      #b85650;
  --c-success:    #5E8275;

  --ff-display: 'Fraunces', 'Times New Roman', serif;
  --ff-sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-quart: cubic-bezier(0.76, 0, 0.24, 1);

  --maxw: 1440px;
}

/* ============== Reset ============== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--ff-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading {
  overflow: hidden;
  height: 100vh;
  /* Filet de sécurité CSS : si JS ne retire pas la classe en 3s,
     le scroll se débloque automatiquement (mobile / cas extrêmes) */
  animation: body-unlock 3s forwards;
}
@keyframes body-unlock {
  0%, 90% { overflow: hidden; height: 100vh; }
  100% { overflow: visible; height: auto; }
}
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; transition: color .3s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============== Typo utilities ============== */
.caps {
  font-family: var(--ff-sans);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--c-ink-soft);
  font-weight: 500;
}
.caps--gold { color: var(--c-gold); }

/* ============== Section numbers (basketrunning style) ============== */
.section-num {
  font-family: var(--ff-sans);
  font-size: 0.72rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--c-wood-dark);
  font-weight: 600;
  padding: 24px 0;
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  text-align: left;
  padding-left: 40px;
  background: var(--c-bg);
}
.section-num--light {
  background: transparent;
  border-color: rgba(248, 242, 233, 0.18);
  color: var(--c-gold);
  margin-bottom: 40px;
}
@media (max-width: 640px) { .section-num { padding-left: 20px; font-size: 0.64rem; } }

/* ============== Grain ============== */
.grain {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9000;
  opacity: 0.08;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
}

/* ============== Loader ============== */
.loader {
  position: fixed; inset: 0;
  background: var(--c-ink);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  transition: opacity .4s var(--ease), visibility .4s;
}
body:not(.is-loading) .loader { opacity: 0; visibility: hidden; }
/* Filet CSS : disparaît automatiquement après 3s, même si JS plante */
.loader {
  animation: loader-auto-hide 3s forwards;
}
@keyframes loader-auto-hide {
  0%, 80% { opacity: 1; visibility: visible; pointer-events: auto; }
  100% { opacity: 0; visibility: hidden; pointer-events: none; }
}
.loader__mark {
  font-family: var(--ff-display);
  font-size: clamp(2.5rem, 8vw, 6rem);
  font-weight: 300;
  color: var(--c-cream);
  font-variation-settings: 'opsz' 144, 'wght' 300;
  display: flex;
  gap: 0.3em;
  align-items: baseline;
}
.loader__mark span {
  opacity: 0;
  animation: loader-in .5s var(--ease) forwards;
}
.loader__mark span:nth-child(2) { animation-delay: .12s; }
.loader__mark span:nth-child(3) { animation-delay: .24s; }
.loader__amp {
  font-style: italic;
  color: var(--c-gold);
  font-variation-settings: 'opsz' 144, 'SOFT' 100, 'wght' 400;
}
@keyframes loader-in { to { opacity: 1; } }
.loader__progress {
  width: 240px; height: 1px;
  background: rgba(244, 237, 224, 0.15);
}
.loader__bar {
  width: 0; height: 100%;
  background: var(--c-gold);
  animation: loader-bar 1.8s var(--ease-quart) forwards;
}
@keyframes loader-bar { to { width: 100%; } }

/* ============== Nav ============== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 24px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background .4s, padding .4s, color .4s, border-color .4s;
  color: var(--c-cream);
  mix-blend-mode: difference;
}
.nav.is-scrolled {
  mix-blend-mode: normal;
  background: rgba(244, 237, 224, 0.92);
  backdrop-filter: blur(10px);
  padding: 16px 40px;
  color: var(--c-ink);
  border-bottom: 1px solid var(--c-line);
}
.nav__brand {
  font-family: var(--ff-display);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}
.nav__amp {
  font-style: italic;
  color: var(--c-gold);
  font-variation-settings: 'opsz' 72, 'SOFT' 100, 'wght' 400;
}
.nav__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--ff-sans);
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}
.nav__sep { opacity: 0.4; }
/* Bouton CTA : on l'isole du mix-blend-mode du nav pour des couleurs propres */
.nav__cta {
  isolation: isolate;
  mix-blend-mode: normal;
  border: 1px solid currentColor;
  padding: 8px 16px;
  transition: background .25s, color .25s, border-color .25s;
  font-weight: 600;
  background: transparent;
}
.nav__cta:hover {
  background: var(--c-ink);
  color: var(--c-cream);
  border-color: var(--c-ink);
}
.nav__cta:focus { outline: none; }
.nav__cta:focus-visible {
  outline: 2px solid var(--c-gold);
  outline-offset: 2px;
}
@media (max-width: 640px) {
  .nav { padding: 16px 20px; }
  .nav.is-scrolled { padding: 12px 20px; }
  .nav__meta > span:first-child, .nav__sep { display: none; }
}

/* ============== TICKERS / MARQUEES (style basketrunning) ============== */
.ticker {
  overflow: hidden;
  padding: 18px 0;
  white-space: nowrap;
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  background: var(--c-bg);
}
.ticker--top {
  background: var(--c-ink);
  border-color: rgba(248, 242, 233, 0.12);
  color: var(--c-gold);
  position: relative;
  z-index: 99;
}
.ticker--alt {
  background: var(--c-ink);
  color: var(--c-gold);
  border-color: rgba(248, 242, 233, 0.12);
  padding: 22px 0;
}
.ticker--accent {
  background: var(--c-ink);
  color: var(--c-gold);
  border-color: rgba(248, 242, 233, 0.12);
}
.ticker__track {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  will-change: transform;
  font-family: var(--ff-display);
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 400;
  letter-spacing: -0.005em;
  font-variation-settings: 'opsz' 72, 'wght' 400;
  transform: translate3d(0, 0, 0);   /* force GPU layer */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.ticker--accent .ticker__track {
  font-weight: 600;
  font-variation-settings: 'opsz' 72, 'wght' 600;
}
.ticker__track > span { flex-shrink: 0; }
.ticker__star {
  color: var(--c-wood-dark);
  font-size: 0.7em;
}
.ticker--accent .ticker__star { color: var(--c-gold); }
.ticker__dot {
  color: var(--c-gold);
  font-size: 0.4em;
  vertical-align: middle;
}
.ticker__emoji {
  font-size: 0.85em;
  vertical-align: middle;
  display: inline-block;
  /* anime un léger wobble pour rendre vivant */
  animation: ticker-emoji-wobble 2.4s ease-in-out infinite;
  transform-origin: center;
  filter: saturate(1.05);
  margin: 0 -2px;
}
.ticker__emoji:nth-child(4n+2)  { animation-delay: 0.3s; }
.ticker__emoji:nth-child(4n+4)  { animation-delay: 0.6s; }
.ticker__emoji:nth-child(4n+6)  { animation-delay: 0.9s; }
@keyframes ticker-emoji-wobble {
  0%, 100% { transform: rotate(-6deg) scale(1); }
  50%      { transform: rotate(6deg) scale(1.08); }
}

/* ============== Hero ============== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 100px 40px 40px;
  color: var(--c-cream);
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.15);
  animation: ken-burns 18s var(--ease) both;
}
@keyframes ken-burns {
  0% { transform: scale(1.15) translate(0, 0); }
  100% { transform: scale(1.02) translate(-2%, -1%); }
}
.hero__veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(31, 24, 20, 0.5) 0%, rgba(31, 24, 20, 0.15) 35%, rgba(31, 24, 20, 0.1) 55%, rgba(31, 24, 20, 0.75) 100%);
}
.hero__top, .hero__bottom, .hero__content { position: relative; z-index: 1; }
.hero__top, .hero__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.hero__top .caps, .hero__bottom .caps { color: rgba(244, 245, 233, 0.7); }

.hero__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 2vh;
  max-width: 100%;
}
.hero__overline {
  font-family: var(--ff-sans);
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-size: 0.7rem;
  color: var(--c-gold);
  margin: 0 0 24px;
  font-weight: 600;
}

/* "Mariage — de —" : version sobre, sans background */
.hero__mariage {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 20px;
  flex-wrap: wrap;
}
.hero__mariage-word {
  display: inline-block;
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1rem, 2.25vw, 1.7rem);
  line-height: 1;
  color: var(--c-gold);
  font-variation-settings: 'opsz' 72, 'SOFT' 100, 'wght' 500;
  letter-spacing: 0;
}
.hero__mariage-tag {
  font-family: var(--ff-sans);
  font-size: clamp(0.7rem, 1vw, 0.85rem);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(244, 245, 233, 0.8);
  font-weight: 500;
}
.hero__title {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(4.5rem, 17vw, 15rem);
  line-height: 0.88;
  margin: 0 0 40px;
  letter-spacing: -0.03em;
  font-variation-settings: 'opsz' 144, 'SOFT' 30, 'wght' 300;
}
.line { display: block; overflow: hidden; line-height: 0.88; }
.line__inner {
  display: inline-block;
  transform: translateY(110%);
  will-change: transform;
}
.line__inner.amp em {
  font-style: italic;
  color: var(--c-gold);
  font-variation-settings: 'opsz' 144, 'SOFT' 100, 'wght' 300;
  display: inline-block;
  font-size: 0.7em;
}
.hero__amp-line .line__inner { padding-left: 0.4em; }

.hero__caption {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  max-width: 720px;
  flex-wrap: wrap;
  margin: 0;
}
.hero__date {
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-family: var(--ff-display);
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
  font-variation-settings: 'opsz' 72, 'wght' 300;
  font-weight: 300;
  margin: 0;
  letter-spacing: 0.02em;
}
.hero__day em {
  font-style: italic;
  color: var(--c-gold);
  font-size: 2.2em;
  font-variation-settings: 'opsz' 144, 'SOFT' 100, 'wght' 400;
}
.hero__sep {
  font-size: 1.4rem;
  color: var(--c-gold);
  margin: 0;
  align-self: center;
}
.hero__where {
  font-family: var(--ff-sans);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin: 8px 0 0;
  line-height: 1.6;
  color: rgba(244, 245, 233, 0.85);
}
@media (max-width: 640px) {
  .hero { padding: 80px 20px 24px; }
  .hero__title { margin-bottom: 24px; }
  .hero__caption { gap: 16px; }
  .hero__sep { display: none; }
}

.hero__scroll-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-sans);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--c-cream);
  font-weight: 600;
  border-bottom: 1px solid currentColor;
  padding-bottom: 6px;
  transition: color .3s, border-color .3s;
}
.hero__scroll-cta:hover { color: var(--c-gold); }
.hero__scroll-cta svg { animation: bounce 2s infinite; }
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* ============== COUNTDOWN (fond clair) ============== */
.cd {
  background: var(--c-bg-warm);
  color: var(--c-ink);
  position: relative;
  overflow: hidden;
}
.cd > .section-num {
  background: var(--c-bg-warm);
  border-color: var(--c-line);
  color: var(--c-gold-dark);
}
.cd__inner {
  padding: 100px 40px;
  text-align: center;
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}
.cd__inner::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(201, 160, 106, 0.18), transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(45, 93, 90, 0.10), transparent 50%);
  pointer-events: none;
}
.cd__big {
  position: relative;
  font-family: var(--ff-display);
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 300;
  line-height: 1;
  margin: 0 0 48px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  font-variation-settings: 'opsz' 144, 'wght' 300;
  color: var(--c-ink);
}
.cd__big-num {
  font-size: 1.8em;
  font-weight: 200;
  color: var(--c-teal);                          /* le grand nombre en vert canard */
  font-variation-settings: 'opsz' 144, 'wght' 200;
  font-feature-settings: 'tnum';
  letter-spacing: -0.04em;
}
.cd__row {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(8px, 2vw, 24px);
  flex-wrap: wrap;
  position: relative;
}
.cd__unit { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.cd__unit span {
  font-family: var(--ff-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 200;
  line-height: 0.9;
  color: var(--c-ink);
  font-variation-settings: 'opsz' 144, 'wght' 200;
  letter-spacing: -0.03em;
  font-feature-settings: 'tnum';
}
.cd__unit small {
  font-family: var(--ff-sans);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--c-ink-soft);
}
.cd__sep {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--c-gold-dark);
  font-weight: 200;
  align-self: flex-start;
  margin-top: 0.2em;
  animation: blink 1.5s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: 0.3; } }
@media (max-width: 640px) { .cd__sep { display: none; } }
.cd__tag {
  position: relative;
  font-family: var(--ff-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 300;
  margin: 48px 0 0;
  font-variation-settings: 'opsz' 72, 'wght' 300;
  color: var(--c-ink);
}
.cd__tag em {
  font-style: italic;
  color: var(--c-wood);
  font-variation-settings: 'opsz' 72, 'SOFT' 100, 'wght' 400;
}

/* ============== Section : STORY ============== */
.story { padding: 100px 40px 140px; background: var(--c-bg); }
.story__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 900px) {
  .story { padding: 60px 24px 100px; }
  .story__grid { grid-template-columns: 1fr; gap: 48px; }
}

.story__title, .program__title, .infos__title, .aerial__title, .rsvp__title {
  font-family: var(--ff-display);
  font-size: clamp(2.5rem, 6.5vw, 5rem);
  font-weight: 300;
  line-height: 1.02;
  margin: 0 0 40px;
  letter-spacing: -0.025em;
  font-variation-settings: 'opsz' 144, 'SOFT' 30, 'wght' 300;
}
.story__title em, .program__title em, .infos__title em, .aerial__title em, .rsvp__title em {
  font-style: italic;
  color: var(--c-gold);
  font-variation-settings: 'opsz' 144, 'SOFT' 100, 'wght' 400;
}

.story__body { max-width: 480px; }
.story__body p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--c-ink-soft);
  margin-bottom: 1.2em;
}
.story__body strong { color: var(--c-ink); font-weight: 500; }

.story__meta {
  display: flex;
  gap: 0;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--c-line);
  flex-wrap: wrap;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  min-width: 140px;
  padding: 8px 32px 8px 0;
  position: relative;
}
.stat + .stat {
  border-left: 1px solid var(--c-line);
  padding-left: 32px;
}
.stat__bullet {
  font-family: var(--ff-display);
  font-style: italic;
  color: var(--c-gold);
  font-size: 0.85rem;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
  opacity: 0.85;
}
.stat strong {
  font-family: var(--ff-display);
  font-size: clamp(2.4rem, 4.5vw, 3.2rem);
  font-weight: 300;
  color: var(--c-ink);
  font-variation-settings: 'opsz' 144, 'wght' 300;
  letter-spacing: -0.03em;
  line-height: 1;
  font-feature-settings: 'tnum';
}
.stat__label {
  font-family: var(--ff-sans);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--c-ink-soft);
  margin-top: 12px;
  font-weight: 500;
}
@media (max-width: 600px) {
  .stat + .stat { border-left: none; padding-left: 0; padding-top: 20px; border-top: 1px solid var(--c-line); margin-top: 20px; }
  .stat { padding-right: 0; }
}

/* CTA vers site du domaine */
.story__cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: 48px;
  padding: 24px 28px;
  background: var(--c-cream);
  border: 1px solid var(--c-line);
  text-decoration: none;
  color: var(--c-ink);
  transition: background .4s var(--ease), border-color .4s var(--ease), color .4s var(--ease);
  position: relative;
  overflow: hidden;
  min-width: 360px;
}
.story__cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--c-ink);
  transform: translateX(-101%);
  transition: transform .55s var(--ease);
}
.story__cta:hover { color: var(--c-cream); border-color: var(--c-ink); }
.story__cta:hover::before { transform: translateX(0); }
.story__cta-label { position: relative; display: flex; flex-direction: column; gap: 6px; }
.story__cta-eyebrow {
  font-family: var(--ff-sans);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--c-gold);
  font-weight: 600;
}
.story__cta:hover .story__cta-eyebrow { color: var(--c-gold); }
.story__cta-text {
  font-family: var(--ff-display);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.005em;
  font-variation-settings: 'opsz' 72, 'wght' 400;
}
.story__cta-arrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid currentColor;
  border-radius: 50%;
  transition: transform .4s var(--ease);
}
.story__cta:hover .story__cta-arrow { transform: rotate(-45deg) translate(2px, -2px); }
@media (max-width: 600px) {
  .story__cta { min-width: 0; width: 100%; }
}

.story__figure { margin: 0; position: relative; overflow: hidden; }
.story__figure img {
  width: 100%;
  height: 70vh;
  max-height: 720px;
  object-fit: cover;
  will-change: transform;
}
.story__figure figcaption {
  position: absolute;
  bottom: 16px; left: 16px;
  color: var(--c-cream);
  background: rgba(31, 24, 20, 0.6);
  padding: 8px 14px;
  backdrop-filter: blur(6px);
}

/* ============== AERIAL (vue du ciel) ============== */
.aerial { padding: 100px 40px 140px; background: var(--c-bg-warm); }
.aerial__head {
  max-width: var(--maxw);
  margin: 0 auto 80px;
}
.aerial__sub {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--c-ink-soft);
  max-width: 600px;
  margin: 0;
  font-variation-settings: 'opsz' 72, 'SOFT' 80, 'wght' 300;
}
/* Vue aérienne unique (full width cinéma) */
.aerial__hero {
  max-width: var(--maxw);
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  aspect-ratio: 21 / 9;
}
.aerial__hero img {
  width: 100%;
  height: 110%;
  object-fit: cover;
  transition: transform 1.5s var(--ease);
  will-change: transform;
}
.aerial__hero:hover img { transform: scale(1.03); }
.aerial__hero figcaption {
  position: absolute;
  bottom: 20px; left: 20px;
  color: var(--c-cream);
  font-family: var(--ff-sans);
  font-size: 0.85rem;
  background: rgba(45, 75, 74, 0.7);
  padding: 12px 18px;
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  gap: 12px;
}
.aerial__hero figcaption .caps { color: var(--c-gold); }
@media (max-width: 900px) {
  .aerial { padding: 60px 24px 100px; }
  .aerial__hero { aspect-ratio: 4 / 3; }
}

/* ============== PROGRAM / Timeline (sticky CSS + translateX au scroll) ============== */
.program {
  padding-top: 100px;
  background: var(--c-bg);
}
.program__head {
  max-width: var(--maxw);
  margin: 0 auto 40px;
  padding: 0 40px;
}
.program__hint {
  font-family: var(--ff-display);
  font-style: italic;
  color: var(--c-gold-dark);
  font-size: 1rem;
  margin: 16px 0 0;
}

/* Conteneur "pin" : hauteur calculée par JS, contient le sticky */
.program__pin {
  position: relative;
  /* height définie en JS (dist horizontale + 100vh) */
}
.program__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: var(--c-bg);
}
.program__track {
  display: flex;
  align-items: center;
  padding: 0 8vw;
  gap: 32px;
  will-change: transform;
}
.moment {
  flex: 0 0 min(440px, 80vw);
  height: 72vh;
  max-height: 600px;
  background: var(--c-cream);
  border: 1px solid var(--c-line);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  transition: border-color .4s, box-shadow .4s;
}
.moment:hover {
  border-color: var(--c-gold);
  box-shadow: 0 8px 24px rgba(45, 75, 74, 0.06);
}

/* Mobile : on repasse en empilement vertical, plus de sticky */
@media (max-width: 900px) {
  .program { padding-top: 60px; }
  .program__pin { height: auto !important; }
  .program__sticky { position: static; height: auto; padding: 0 0 60px; }
  .program__track {
    flex-direction: column;
    padding: 0 24px;
    gap: 14px;
    transform: none !important;
  }
  .moment {
    flex: 0 0 auto;
    width: 100%;
    height: auto;
    max-height: none;
    padding: 32px 24px;
  }
}
.moment__time {
  font-family: var(--ff-display);
  font-size: clamp(3rem, 5vw, 4.8rem);
  font-weight: 300;
  line-height: 1;
  color: var(--c-ink);
  letter-spacing: -0.025em;
  font-variation-settings: 'opsz' 144, 'wght' 300;
  margin: 8px 0;
}
.moment__time small { font-size: 0.4em; vertical-align: super; color: var(--c-gold); }
.moment h3 {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  font-weight: 400;
  margin: 0;
  letter-spacing: -0.015em;
  font-variation-settings: 'opsz' 144, 'wght' 400;
}
.moment p {
  margin: 0;
  font-size: 1rem;
  color: var(--c-ink-soft);
  line-height: 1.7;
}
.moment__day {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--c-line);
  color: var(--c-gold-dark);
  font-weight: 600;
}
.moment--brunch {
  background: var(--c-ink);
  color: var(--c-cream);
  border-color: var(--c-ink);
}
.moment--brunch .moment__time { color: var(--c-cream); }
.moment--brunch p { color: rgba(244, 237, 224, 0.7); }
.moment--brunch .moment__day { border-top-color: rgba(244, 237, 224, 0.15); color: var(--c-gold); }

@media (max-width: 900px) {
  .program__horiz { height: auto; overflow: visible; }
  .program__track {
    flex-direction: column;
    height: auto;
    padding: 0 24px;
    gap: 24px;
  }
  .moment { flex: 0 0 auto; width: 100%; height: auto; max-height: none; padding: 32px 24px; }
}

/* ============== INFOS ============== */
.infos { padding: 100px 40px 140px; max-width: var(--maxw); margin: 0 auto; }
.infos__head { margin-bottom: 80px; }
.infos__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 1000px) { .infos__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .infos__grid { grid-template-columns: 1fr; } .infos { padding: 60px 24px 100px; } }

.info {
  padding: 40px 32px;
  background: var(--c-cream);
  border: 1px solid var(--c-line-light);
  transition: transform .6s var(--ease), border-color .4s;
  position: relative;
}
.info:hover {
  transform: translateY(-6px);
  border-color: var(--c-gold);
}
.info__num {
  font-family: var(--ff-display);
  font-size: 3rem;
  font-style: italic;
  color: var(--c-gold);
  font-variation-settings: 'opsz' 144, 'SOFT' 100, 'wght' 300;
  display: block;
  margin-bottom: 16px;
  line-height: 1;
}
.info h3 {
  font-family: var(--ff-display);
  font-size: 1.4rem;
  font-weight: 400;
  margin: 0 0 12px;
  color: var(--c-ink);
}
.info p {
  font-size: 0.95rem;
  color: var(--c-ink-soft);
  line-height: 1.7;
  margin-bottom: 12px;
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-gold);
  font-weight: 600;
}
.link-arrow span { transition: transform .3s; }
.link-arrow:hover span { transform: translateX(4px); }

/* ============== RSVP ============== */
.rsvp {
  padding: 100px 40px 140px;
  position: relative;
  overflow: hidden;
  background: var(--c-ink);
  color: var(--c-cream);
}
.rsvp__bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.2;
  filter: saturate(0.7);
  z-index: 0;
}
.rsvp::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(31,24,20,0.4) 0%, rgba(31,24,20,0.92) 100%);
}
.rsvp__inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
}
.rsvp__title { text-align: center; color: var(--c-cream); }
.rsvp__sub {
  text-align: center;
  font-size: 1rem;
  color: rgba(244, 237, 224, 0.8);
  margin-bottom: 64px;
}

.form { display: flex; flex-direction: column; gap: 24px; }
.fs {
  background: rgba(244, 237, 224, 0.04);
  border: 1px solid rgba(244, 237, 224, 0.1);
  padding: 32px;
  margin: 0;
  transition: border-color .4s;
}
.fs:focus-within { border-color: rgba(184, 146, 77, 0.5); }
.fs legend {
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-family: var(--ff-display);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--c-cream);
  padding: 0 8px;
  margin-left: -8px;
}
.fs__num {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--c-gold);
  font-variation-settings: 'opsz' 72, 'SOFT' 100, 'wght' 300;
}

.fs__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .fs__row { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.field > span {
  font-family: var(--ff-sans);
  font-size: 0.68rem;
  font-weight: 500;
  color: rgba(244, 237, 224, 0.6);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.hint {
  font-size: 0.85rem;
  color: rgba(244, 237, 224, 0.6);
  margin-bottom: 12px;
}
.field input, .field textarea {
  font-family: var(--ff-sans);
  font-size: 1rem;
  padding: 14px 16px;
  border: 1px solid rgba(244, 237, 224, 0.15);
  background: rgba(31, 24, 20, 0.4);
  color: var(--c-cream);
  transition: border-color .3s, background .3s;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--c-gold);
  background: rgba(31, 24, 20, 0.7);
}
.field textarea { resize: vertical; min-height: 80px; }

.radio-group { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 8px; }
@media (max-width: 640px) { .radio-group { grid-template-columns: 1fr; } }
.rad { position: relative; }
.rad input { position: absolute; opacity: 0; pointer-events: none; }
.rad__inner {
  display: block;
  background: rgba(31, 24, 20, 0.4);
  border: 1px solid rgba(244, 237, 224, 0.15);
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  transition: all .3s var(--ease);
}
.rad__inner strong {
  display: block;
  font-family: var(--ff-display);
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: 4px;
}
.rad__inner small { font-size: 0.78rem; color: rgba(244, 237, 224, 0.6); }
.rad input:checked + .rad__inner {
  border-color: var(--c-gold);
  background: rgba(184, 146, 77, 0.1);
}
.rad input:checked + .rad__inner strong { color: var(--c-gold); }

.check { display: flex; align-items: center; gap: 12px; padding: 6px 0; cursor: pointer; font-size: 0.95rem; }
.check input { width: 18px; height: 18px; accent-color: var(--c-gold); }
.check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 4px 16px;
  margin: 12px 0 20px;
}

.enfants { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 12px; }
.enfants .row {
  display: grid;
  grid-template-columns: 2fr 1fr auto;
  gap: 8px;
  align-items: center;
}
.enfants input {
  font-family: var(--ff-sans);
  font-size: 0.95rem;
  padding: 10px 14px;
  border: 1px solid rgba(244, 237, 224, 0.15);
  background: rgba(31, 24, 20, 0.4);
  color: var(--c-cream);
}
.enfants button {
  background: transparent;
  border: 1px solid rgba(244, 237, 224, 0.15);
  color: var(--c-error);
  padding: 8px 14px;
  font-size: 1.1rem;
}
.btn-ghost {
  display: inline-block;
  margin-top: 8px;
  padding: 10px 18px;
  background: transparent;
  border: 1px solid rgba(244, 237, 224, 0.2);
  color: var(--c-cream);
  font-family: var(--ff-sans);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 600;
  transition: all .3s;
}
.btn-ghost:hover { border-color: var(--c-gold); color: var(--c-gold); }

.form__conditional[hidden] { display: none !important; }

.form__submit { text-align: center; margin-top: 32px; }
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 20px 40px;
  background: var(--c-gold);
  border: 1px solid var(--c-gold);
  color: var(--c-ink);
  font-family: var(--ff-sans);
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 600;
  position: relative;
  overflow: hidden;
  transition: color .4s var(--ease);
}
.btn-cta::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--c-cream);
  transform: translateY(101%);
  transition: transform .5s var(--ease);
}
.btn-cta > * { position: relative; z-index: 1; }
.btn-cta:hover::before { transform: translateY(0); }
.btn-cta svg { transition: transform .4s var(--ease); }
.btn-cta:hover svg { transform: translateX(4px); }
.btn-cta:disabled { opacity: 0.5; pointer-events: none; }

.form__feedback {
  margin-top: 24px;
  font-size: 0.95rem;
  min-height: 1.5em;
  font-family: var(--ff-display);
  font-style: italic;
  text-align: center;
}
.form__feedback.is-success { color: #C6DDD5; }
.form__feedback.is-error { color: #E8C8BF; }

/* ============== BANDEAU DANSE (HTML + SVG persos animés) ============== */
.dance {
  position: relative;
  padding: 60px 24px 48px;
  background: var(--c-bg-warm);
  text-align: center;
  overflow: hidden;
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}
.dance__stage {
  position: relative;
  width: 100%;
  max-width: 1280px;
  height: 200px;
  margin: 0 auto;
}
.dance__caption {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--c-ink-soft);
  margin: 32px 0 0;
  font-variation-settings: 'opsz' 72, 'SOFT' 100, 'wght' 300;
}
.dance__amp { color: var(--c-gold); }

.dancer {
  position: absolute;
  bottom: 0;
  width: 130px;
  height: 195px;
  color: var(--c-wood-dark);
  will-change: transform;
  transform: translate3d(0, 0, 0);    /* force GPU layer (fix iOS Safari) */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform-origin: 50% 100%;
}
.dancer--couple { width: 180px; }
.dancer svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.dancer svg circle,
.dancer svg ellipse,
.dancer svg line,
.dancer svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dancer svg path[fill="currentColor"],
.dancer svg circle[fill="currentColor"],
.dancer svg ellipse[fill="currentColor"] {
  fill: currentColor;
}

/* Positions horizontales des 6 danseurs (en % pour responsive) */
.dancer--1 { left: 3%;  -webkit-animation: bounce-up 1.0s ease-in-out infinite;        animation: bounce-up 1.0s ease-in-out infinite; }
.dancer--2 { left: 17%; -webkit-animation: bounce-up 1.2s ease-in-out 0.15s infinite;   animation: bounce-up 1.2s ease-in-out 0.15s infinite; }
.dancer--3 { left: 33%; -webkit-animation: bounce-up 1.4s ease-in-out 0.30s infinite;   animation: bounce-up 1.4s ease-in-out 0.30s infinite; }
.dancer--4 { left: 53%; -webkit-animation: bounce-up 0.9s ease-in-out 0.10s infinite;   animation: bounce-up 0.9s ease-in-out 0.10s infinite; }
.dancer--5 { left: 69%; -webkit-animation: bounce-up 1.1s ease-in-out 0.40s infinite;   animation: bounce-up 1.1s ease-in-out 0.40s infinite; }
.dancer--6 { left: 84%; -webkit-animation: bounce-up 1.3s ease-in-out 0.20s infinite;   animation: bounce-up 1.3s ease-in-out 0.20s infinite; }

@keyframes bounce-up {
  0%, 100% { transform: translate3d(0, 0, 0)    rotate(0deg); }
  25%      { transform: translate3d(0, -12px, 0) rotate(-2deg); }
  50%      { transform: translate3d(0, 0, 0)    rotate(0deg); }
  75%      { transform: translate3d(0, -12px, 0) rotate(2deg); }
}
@-webkit-keyframes bounce-up {
  0%, 100% { -webkit-transform: translate3d(0, 0, 0)    rotate(0deg); }
  25%      { -webkit-transform: translate3d(0, -12px, 0) rotate(-2deg); }
  50%      { -webkit-transform: translate3d(0, 0, 0)    rotate(0deg); }
  75%      { -webkit-transform: translate3d(0, -12px, 0) rotate(2deg); }
}

/* Notes de musique qui flottent au-dessus */
.note {
  position: absolute;
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--c-gold);
  opacity: 0;
  -webkit-animation: note-float 3s ease-in-out infinite;
  animation: note-float 3s ease-in-out infinite;
  transform: translate3d(0, 0, 0);
  -webkit-backface-visibility: hidden;
}
.note--1 { left: 14%; top: 20px; -webkit-animation-delay: 0s;   animation-delay: 0s;   }
.note--2 { left: 30%; top: 10px; -webkit-animation-delay: 0.6s; animation-delay: 0.6s; }
.note--3 { left: 50%; top: 24px; -webkit-animation-delay: 1.2s; animation-delay: 1.2s; font-size: 1.6rem; }
.note--4 { left: 70%; top: 14px; -webkit-animation-delay: 1.8s; animation-delay: 1.8s; }
.note--5 { left: 84%; top: 22px; -webkit-animation-delay: 2.4s; animation-delay: 2.4s; font-size: 1.5rem; }

@keyframes note-float {
  0%   { opacity: 0; transform: translate3d(0, 0, 0)    rotate(-8deg); }
  20%  { opacity: 1; }
  100% { opacity: 0; transform: translate3d(0, -50px, 0) rotate(8deg); }
}
@-webkit-keyframes note-float {
  0%   { opacity: 0; -webkit-transform: translate3d(0, 0, 0)    rotate(-8deg); }
  20%  { opacity: 1; }
  100% { opacity: 0; -webkit-transform: translate3d(0, -50px, 0) rotate(8deg); }
}

@media (max-width: 900px) {
  .dance__stage { height: 160px; }
  .dancer { width: 95px; height: 150px; }
  .dancer--couple { width: 135px; }
}
@media (max-width: 640px) {
  .dance__stage { height: 130px; }
  .dancer { width: 75px; height: 120px; }
  .dancer--couple { width: 110px; }
  .note { font-size: 1.1rem; }
  /* En mobile, on masque 2 persos pour aérer */
  .dancer--2, .dancer--5 { display: none; }
  .dancer--1 { left: 4%;  }
  .dancer--3 { left: 28%; }
  .dancer--4 { left: 55%; }
  .dancer--6 { left: 82%; }
}

@media (prefers-reduced-motion: reduce) {
  .dancer, .note { animation: none; }
  .note { opacity: 0.7; }
}

/* ============== FOOTER ============== */
.footer {
  text-align: center;
  padding: 100px 24px 60px;
  background: var(--c-bg-warm);
  border-top: 1px solid var(--c-line);
}
.footer__big {
  font-family: var(--ff-display);
  font-size: clamp(3rem, 11vw, 8rem);
  font-weight: 200;
  color: var(--c-ink);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
  font-variation-settings: 'opsz' 144, 'wght' 200;
}
.footer__amp {
  font-style: italic;
  color: var(--c-gold);
  font-size: 0.6em;
  font-variation-settings: 'opsz' 144, 'SOFT' 100, 'wght' 300;
}
.footer .caps { margin-bottom: 12px; }
.footer__contact {
  font-size: 0.95rem;
  color: var(--c-ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer__contact a {
  color: var(--c-gold-dark);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: color .25s;
}
.footer__contact a:hover { color: var(--c-ink); }
.footer__sep { color: var(--c-line); }

/* ============== Reveal helpers ============== */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   V5 SOFTENING — radius généreux + typo plus présente + jeux serif/sans
   ============================================================ */

/* Body : un peu plus de corps */
body {
  font-weight: 450;
  letter-spacing: -0.005em;
}

/* === TITRES — Fraunces gagne en présence === */
.story__title, .program__title, .infos__title, .aerial__title, .rsvp__title,
.hero__title, .domaine__title {
  font-weight: 360;
  font-variation-settings: 'opsz' 144, 'wght' 360;
}
.hero__title em, .story__title em, .program__title em, .infos__title em,
.aerial__title em, .rsvp__title em, .domaine__title em {
  font-weight: 380;
}

/* === EYEBROWS — Inter sans bold avec letterspacing pour contraste avec Fraunces === */
.section-num, .section-num--light {
  font-family: var(--ff-sans);
  font-weight: 700;
  letter-spacing: 0.32em;
  font-size: 0.62rem;
}

/* === Body / paragraphes principaux === */
.story__body p, .infos__card p, .footer__contact, .footer__legal {
  font-weight: 460;
}
.story__body strong, .infos__card strong {
  font-weight: 600;
}

/* === BOUTONS — pill arrondi élégant === */
.btn-cta, .btn-ghost, .nav__cta {
  border-radius: 100px;
  font-weight: 650;
  letter-spacing: 0.22em;
}
.btn-cta {
  padding-left: 30px;
  padding-right: 30px;
}

/* === FORM RSVP — radius + douceur === */
.fs {
  border-radius: 18px;
  border: 1px solid var(--c-line);
  background: rgba(251, 247, 239, 0.6);
}
.fs legend {
  font-weight: 460;
}

/* Fieldset numéroté badge (A B C…) — un peu plus rond, plus gras */
.fs__num {
  border-radius: 50%;
  font-weight: 600;
}

/* Inputs / textarea — radius doux */
.field input, .field textarea {
  border-radius: 12px;
}
.field > span {
  font-weight: 600;
}

/* Radio cards (Présence : Oui/Non/Peut-être) */
.rad__inner {
  border-radius: 14px;
}
.rad__inner strong {
  font-weight: 500;
}

/* Checkboxes : transformer en mini-cards arrondies */
.check {
  border-radius: 10px;
  padding: 10px 14px;
  background: rgba(251, 247, 239, 0.5);
  border: 1px solid var(--c-line-light);
  transition: border-color .25s, background .25s;
}
.check:hover {
  border-color: var(--c-teal-light);
  background: var(--c-cream);
}
.check input { accent-color: var(--c-wood); }
.check-grid {
  gap: 10px;
}

/* Bouton "+ Ajouter un enfant" */
#add-enfant {
  border-radius: 100px;
  padding: 8px 18px;
  font-weight: 600;
}

/* Feedback message du form */
.form__feedback {
  border-radius: 10px;
  font-weight: 500;
}

/* === HEADER / NAV === */
.nav, .nav__inner {
  border-radius: 0;
}
.nav__cta {
  padding: 10px 22px;
}

/* === CARTES MEDIA / INFOS — radius généreux === */
.story__media, .aerial__media, .infos__card, .domaine__media {
  border-radius: 20px;
  overflow: hidden;
}
.infos__card {
  padding: 28px;
  background: var(--c-cream);
  border: 1px solid var(--c-line);
}

/* === PROGRAMME (les étapes 14h00, 15h30…) === */
.program__row, .program__step {
  border-radius: 12px;
}

/* === Footer === */
.footer {
  font-weight: 460;
}

/* === Compteur / countdown si présent === */
.countdown, .countdown__unit {
  border-radius: 12px;
}

/* === Images & médias génériques === */
img, video {
  border-radius: 14px;
}
.hero img, .nav img, .loader img {
  border-radius: 0;
}

/* ============================================================
   V6 RSVP — refonte ergonomique : mode CLAIR sur CLAIR
   Le formulaire passe sur fond ivoire avec texte sapin-encre
   pour maximiser la lisibilité (priorité absolue de fin de cascade)
   ============================================================ */

.rsvp {
  background: var(--c-ink);
  color: var(--c-cream);
  padding: 80px 24px 100px;
}
/* Photo aérienne : zoomée arrière (moins de crop) + plus visible */
.rsvp__bg {
  opacity: 0.7;
  filter: saturate(0.85) brightness(1.0);
  background-size: auto 130%;
  background-position: center 40%;
  transform: scale(1);
}
/* Overlay sombre : sapin-encre marqué pour lisibilité du formulaire */
.rsvp::after {
  background: linear-gradient(180deg, rgba(45, 75, 74, 0.55) 0%, rgba(26, 52, 51, 0.85) 60%, rgba(26, 52, 51, 0.92) 100%);
}
.rsvp__title {
  color: var(--c-cream) !important;
}
.rsvp__title em {
  color: #D8A099;
}
.rsvp__sub {
  color: rgba(251, 247, 239, 0.85);
  font-weight: 500;
}
.rsvp__sub strong { color: var(--c-cream); }

/* === FIELDSETS (cards aérées) === */
.fs {
  background: var(--c-cream);
  border: 1px solid var(--c-line);
  border-radius: 18px;
  padding: 64px 28px 28px;
  /* position relative pour ancrer le legend (en absolu) DANS la card */
  position: relative;
}
.fs:focus-within { border-color: var(--c-teal-light); }
.fs legend {
  position: absolute;
  top: 24px;
  left: 28px;
  right: 28px;
  margin: 0;
  padding: 0;
  width: auto;
  color: var(--c-ink);
  font-weight: 500;
}
.fs__num {
  color: var(--c-wood);
}

/* === LABELS DE CHAMPS — sapin-encre lisible === */
.field > span {
  color: var(--c-ink-soft);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
}
.hint {
  color: var(--c-ink-soft);
  font-size: 0.88rem;
  font-weight: 500;
}

/* === INPUTS / TEXTAREA — clair, contraste haute lisibilité === */
.field input, .field textarea {
  background: var(--c-bg);
  color: var(--c-ink);
  border: 1px solid var(--c-line);
  border-radius: 12px;
  font-size: 1rem;
  padding: 14px 16px;
}
.field input::placeholder, .field textarea::placeholder {
  color: rgba(45, 75, 74, 0.4);
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--c-wood);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(184, 107, 92, 0.12);
}

/* === RADIOS (Présence Oui/Non/Peut-être + Vendredi Oui/Non) === */
.rad__inner {
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  color: var(--c-ink);
  border-radius: 14px;
  padding: 22px 16px;
}
.rad__inner:hover {
  background: var(--c-cream);
  border-color: var(--c-teal-light);
}
.rad__inner strong {
  color: var(--c-ink);
  font-weight: 500;
}
.rad__inner small {
  color: var(--c-ink-soft);
  font-weight: 500;
}
.rad input:checked + .rad__inner {
  background: rgba(232, 200, 191, 0.25);
  border-color: var(--c-wood);
  border-width: 2px;
  padding: 21px 15px;
}
.rad input:checked + .rad__inner strong {
  color: var(--c-wood-dark);
}
.rad input:checked + .rad__inner small {
  color: var(--c-wood-dark);
  opacity: 0.85;
}

/* === CHECKBOXES (conjoint, brunch, dormir samedi, régimes) === */
.check {
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--c-ink);
  font-weight: 500;
  transition: border-color .25s, background .25s;
}
.check:hover {
  background: var(--c-cream);
  border-color: var(--c-teal-light);
}
.check input { accent-color: var(--c-wood); }
.check strong { color: var(--c-ink); font-weight: 600; }
.check em { color: var(--c-ink-soft); font-style: italic; }

/* === ENFANTS (rows dynamiques) === */
.enfants input {
  background: var(--c-bg);
  color: var(--c-ink);
  border: 1px solid var(--c-line);
  border-radius: 10px;
  padding: 10px 14px;
}
.enfants input:focus {
  outline: none;
  border-color: var(--c-wood);
  background: #FFFFFF;
}
.enfants button {
  background: transparent;
  border: 1px solid var(--c-line);
  color: var(--c-error);
  border-radius: 50%;
  width: 36px; height: 36px;
  font-size: 1.2rem;
  padding: 0;
}
.enfants button:hover {
  border-color: var(--c-error);
  background: rgba(184, 86, 80, 0.08);
}

/* === BTN GHOST (Ajouter un enfant) === */
.btn-ghost {
  background: transparent;
  border: 1px solid var(--c-ink);
  color: var(--c-ink);
  border-radius: 100px;
  padding: 10px 22px;
  font-weight: 700;
}
.btn-ghost:hover {
  background: var(--c-ink);
  color: var(--c-bg);
  border-color: var(--c-ink);
}

/* === BTN CTA (Envoyer ma réponse) — terracotta plein === */
.btn-cta {
  background: var(--c-wood);
  color: #FFFFFF;
  border-color: var(--c-wood);
  border-radius: 100px;
  font-weight: 700;
}
.btn-cta::before {
  background: var(--c-wood-dark);
}
.btn-cta:hover {
  color: #FFFFFF;
}

/* === FEEDBACK MESSAGE === */
.form__feedback {
  background: var(--c-cream);
  border: 1px solid var(--c-line);
  border-radius: 12px;
  padding: 14px 18px;
  margin-top: 24px;
  font-weight: 500;
  color: var(--c-ink);
}
.form__feedback:empty {
  background: transparent;
  border: 0;
  padding: 0;
}
.form__feedback.is-success {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
  color: #FFFFFF;
}
.form__feedback.is-error {
  background: rgba(184, 86, 80, 0.10);
  border-color: var(--c-error);
  color: #7a2d29;
}

/* === MOBILE — encore plus d'air sur petit écran === */
@media (max-width: 600px) {
  .rsvp { padding: 60px 16px 80px; }
  .fs { padding: 56px 18px 20px; border-radius: 14px; }
  .fs legend { top: 20px; left: 18px; right: 18px; }
  .field input, .field textarea { font-size: 16px; /* anti-zoom iOS */ }
}

/* ============================================================
   V7 — corriger les ton-sur-ton (palette claire)
   Le var(--c-gold) vaut maintenant #E8C8BF (poudre rose pâle),
   donc tout ce qui était "doré sur sombre" devient "poudre sur ivoire"
   = illisible. On force les couleurs accent sur fond clair en
   terracotta foncé (--c-wood-dark) ou moyen (--c-wood) selon le rôle.
   ============================================================ */

/* Utility .caps (samedi · mairie, etc.) sur fond clair */
.caps--gold { color: var(--c-wood-dark); }

/* Italiques des H2 (story / program / infos / aerial / rsvp / hero) — rose poudré foncé */
.story__title em, .program__title em, .infos__title em,
.aerial__title em, .rsvp__title em, .hero__title em,
.domaine__title em {
  color: #D8A099;
}

/* Labels en bas des cards programme : "Samedi · Mairie" */
.moment__day {
  color: var(--c-wood-dark);
}
/* Card brunch — fond sapin-encre, donc label en rose poudré clair pour lisibilité */
.moment--brunch .moment__day {
  color: var(--c-gold);
}

/* Subtitle italique "Scrollez pour parcourir →" */
.program__hint {
  color: var(--c-wood-dark);
}

/* Petit "h" entre les chiffres 14h00 */
.moment__time small {
  color: var(--c-wood);
}

/* Badges A B C dans le RSVP (fieldset numéros) */
.fs__num {
  color: var(--c-wood);
}

/* Hero / autres titres / éléments d'accent → si var(--c-gold) leur sert
   de coloration sur fond clair, override en terracotta */
.aerial__hero figcaption .caps,
.story__cta-eyebrow,
.dance__amp {
  color: var(--c-wood-dark);
}

/* Hero date → "03" + "juillet 2027" tous deux en rose poudré */
.hero__date,
.hero__date span {
  color: var(--c-gold);
}

/* "juillet 2027" plus gras et plus gros, en accord avec le 03 */
.hero__date > span:not(.hero__day) {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-variation-settings: 'opsz' 144, 'SOFT' 100, 'wght' 500;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* Tickers sur fond vert sapin → texte rose poudré clair */
.ticker, .ticker span, .ticker__dot, .ticker__star {
  color: var(--c-gold);
}

/* Marqueurs/dates dans le hero — si pâles, on bumpe en terracotta */
.hero__sub { color: var(--c-ink-soft); font-weight: 500; }

/* "ou" / séparateurs italiques typo */
em { font-style: italic; }
