/* Palette du moodboard : blanc, rose poudré, vieux rose, vert tendre */
:root {
  --ivory: #fdfbf9;      /* blanc chaud */
  --paper: #ffffff;
  --kraft: #f7ebec;      /* rose très pâle */
  --blush-bg: #f9eeef;
  --ink: #40363a;        /* texte : brun-gris doux, plus de vert sombre */
  --ink-soft: #84757a;
  --olive: #a9b27c;      /* vert tendre des illustrations */
  --pistache: #c6cc90;
  --mauve: #a9687b;      /* vieux rose */
  --blush: #dca5ad;      /* rose poudré */
  --gold: #c58f9a;       /* accents (esperluette, chiffres) */
  --line: rgba(64, 54, 58, 0.14);
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Jost', system-ui, -apple-system, sans-serif;
  --script: 'Pinyon Script', 'Cormorant Garamond', cursive;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --vh: 1vh;
}
@supports (height: 1svh) { :root { --vh: 1svh; } } /* hauteur stable : la page ne bouge plus quand la barre du navigateur se replie */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.14rem, 0.4vw + 1.05rem, 1.3rem);
  line-height: 1.6;
  color: var(--ink);
  background: var(--ivory);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }

.eyebrow { font: 400 0.7rem/1.4 var(--sans); letter-spacing: 0.36em; text-transform: uppercase; color: var(--mauve); }
h2 { font-weight: 300; font-size: clamp(2.5rem, 6.5vw, 4.2rem); line-height: 1.04; letter-spacing: -0.01em; margin: 0.22em 0 0.6em; }
.amp { font-family: var(--script); font-style: normal; color: var(--gold); }
.center { text-align: center; }
.muted { color: var(--ink-soft); font-size: 0.95rem; }
.prose p + p { margin-top: 1em; }

/* ---------- Illustrations au trait ---------- */
.flora { display: block; width: 100%; height: auto; overflow: visible; color: var(--olive); }
.flora path, .flora ellipse, .flora circle { fill: none; stroke: currentColor; stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; }
.flora.grapes path, .flora.grapes circle { stroke-width: 0.6; }
.flora.wreath path, .flora.wreath ellipse { stroke-width: 0.9; }
.footer__wreath .flora path, .footer__wreath .flora ellipse { stroke-width: 1.4; }
.flora.landscape path { stroke-width: 1.3; }
.flora .leaf { fill: currentColor; fill-opacity: 0.1; }
.flora .olive { fill: currentColor; fill-opacity: 0.22; }
.flora .far { opacity: 0.55; }
.flora .rows { opacity: 0.5; stroke-dasharray: 0.012 0.02; }
.flora .wash { stroke: none; fill-opacity: 1; }
.flora .washRose { fill: url(#washRose); } .flora .washVert { fill: url(#washVert); } .flora .washSable { fill: url(#washSable); }
.flora .hatch { stroke-width: 0.55; opacity: 0.55; }
.flora.scene path.stem { stroke-width: 1.25; }
.flora.scene .far { stroke-width: 0.8; }
.draw path:not(.rows) { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.5s var(--ease), fill-opacity 1.2s ease; transition-delay: calc(var(--i) * 45ms); }
.draw .leaf { fill-opacity: 0; }
.draw .wash { transition: opacity 2.4s ease 0.5s !important; }
.draw ellipse, .draw circle, .draw .rows { opacity: 0; transition: opacity 0.9s ease; transition-delay: calc(var(--i) * 45ms + 0.3s); }
.drawn .draw path:not(.rows) { stroke-dashoffset: 0; }
.drawn .draw .leaf { fill-opacity: 0.1; }
.drawn .draw ellipse, .drawn .draw circle { opacity: 1; }
.drawn .draw .rows { opacity: 0.5; }

/* ---------- Ouverture ---------- */
#intro {
  position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: var(--ivory);
  transition: clip-path 1.5s cubic-bezier(0.77, 0, 0.18, 1), visibility 0s 1.5s;
  clip-path: inset(0 0 0 0);
}
#intro.done { clip-path: inset(0 0 100% 0); visibility: hidden; }
.intro__inner { position: relative; width: min(46vw, 230px); aspect-ratio: 1; display: grid; place-items: center; transition: opacity 0.6s, transform 1.2s var(--ease); }
#intro.done .intro__inner { opacity: 0; transform: translateY(-30px); }
.intro__wreath { position: absolute; inset: 0; }
.intro__mono { font-size: clamp(1.7rem, 7vw, 2.5rem); font-weight: 300; letter-spacing: 0.1em; opacity: 0; transition: opacity 1.4s ease 0.9s; }
.intro__mono em { font-family: var(--script); font-style: normal; color: var(--gold); margin: 0 0.12em; }
.drawn .intro__mono { opacity: 1; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(18px, 4vw, 48px); color: var(--paper);
  transition: background 0.5s, color 0.5s, padding 0.5s, box-shadow 0.5s, opacity 1s ease 0.4s, transform 1s var(--ease) 0.4s;
  opacity: 0; transform: translateY(-12px);
}
body.ready .nav { opacity: 1; transform: none; }
.nav.solid { background: rgba(253, 251, 249, 0.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: var(--ink); padding-top: 12px; padding-bottom: 12px; box-shadow: 0 1px 0 var(--line); }
.nav__mono { font-size: 2.1rem; text-decoration: none; letter-spacing: 0.06em; }
.nav__mono em { font-family: var(--script); font-style: normal; font-size: 1.25em; margin: 0 0.14em; }
.nav.solid .nav__mono em { color: var(--gold); }
.nav nav { display: flex; align-items: center; gap: clamp(14px, 2.6vw, 34px); }
.nav nav a { font: 400 0.68rem/1 var(--sans); letter-spacing: 0.24em; text-transform: uppercase; text-decoration: none; }
.nav nav a:not(.nav__cta) { position: relative; padding: 6px 0; }
.nav nav a:not(.nav__cta)::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease); }
.nav nav a:not(.nav__cta):hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { padding: 11px 20px; border: 1px solid currentColor; border-radius: 99px; transition: background 0.4s, color 0.4s; }
.nav__cta:hover { background: var(--paper); color: var(--ink); }
.nav.solid .nav__cta { background: var(--mauve); color: var(--paper); border-color: var(--mauve); }
@media (max-width: 1040px) { .nav nav a:not(.nav__cta) { display: none; } }
.nav nav a.current::after { transform: scaleX(1); }
.nav__menu { display: inline-flex; align-items: center; gap: 12px; background: none; border: 0; padding: 8px 0 8px 6px; color: inherit; cursor: pointer; font: 400 0.68rem/1 var(--sans); letter-spacing: 0.24em; text-transform: uppercase; }
.nav__menu i { position: relative; width: 26px; height: 9px; }
.nav__menu i::before, .nav__menu i::after { content: ''; position: absolute; left: 0; right: 0; height: 1px; background: currentColor; transition: transform 0.5s var(--ease), top 0.5s var(--ease); }
.nav__menu i::before { top: 0; } .nav__menu i::after { top: 8px; }
.nav__menu[aria-expanded=true] i::before { top: 4px; transform: rotate(45deg); }
.nav__menu[aria-expanded=true] i::after { top: 4px; transform: rotate(-45deg); }
@media (max-width: 520px) { .nav__menu span { display: none; } .nav__cta { padding: 10px 16px; } }
body.menu-open { overflow: hidden; }
body.menu-open .nav { color: var(--ink); background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
body.menu-open .nav .nav__cta { border-color: var(--mauve); background: var(--mauve); color: var(--paper); }

/* ---------- Menu plein écran ---------- */
.menu { position: fixed; inset: 0; z-index: 25; background: var(--ivory); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.7fr); align-items: center; clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path 0.9s cubic-bezier(0.77, 0, 0.18, 1), visibility 0s 0.9s; overflow: auto; }
.menu.open { clip-path: inset(0 0 0 0); visibility: visible; transition-delay: 0s; }
.menu__inner { padding: 110px clamp(24px, 8vw, 120px) 50px; }
.menu__list { display: grid; margin-top: 18px; border-top: 1px solid var(--line); }
.menu__link { display: flex; align-items: baseline; gap: clamp(16px, 3vw, 34px); padding: clamp(10px, 1.6vw, 18px) 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 300; font-size: clamp(1.9rem, 4.6vw, 3.4rem); line-height: 1.1; opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), color 0.3s, padding-left 0.5s var(--ease); }
.menu.open .menu__link { opacity: 1; transform: none; transition-delay: calc(0.25s + var(--i) * 70ms), calc(0.25s + var(--i) * 70ms), 0s, 0s; }
.menu__link:hover { color: var(--mauve); padding-left: 14px; }
.menu__num { font-family: var(--script); font-size: 0.62em; color: var(--gold); min-width: 1.6em; }
.menu__home { display: inline-block; margin-top: 26px; font: 400 0.68rem/1 var(--sans); letter-spacing: 0.26em; text-transform: uppercase; color: var(--ink-soft); text-decoration: none; }
.menu__art { justify-self: center; width: min(320px, 70%); aspect-ratio: 300 / 420; opacity: 0; transition: opacity 1.2s ease 0.5s; }
.menu.open .menu__art { opacity: 0.9; }
.menu.open .menu__art .draw path:not(.rows) { stroke-dashoffset: 0; } .menu.open .menu__art .draw .leaf { fill-opacity: 0.1; } .menu.open .menu__art .draw ellipse { opacity: 1; }
@media (max-width: 760px) { .menu { grid-template-columns: 1fr; } .menu__art { display: none; } }

/* ---------- Rideau entre deux pages ---------- */
#veil { position: fixed; inset: 0; z-index: 55; background: var(--kraft); display: grid; place-items: center; clip-path: inset(100% 0 0 0); pointer-events: none; }
#veil.in { clip-path: inset(0 0 0 0); transition: clip-path 0.6s cubic-bezier(0.77, 0, 0.18, 1); }
#veil.out { clip-path: inset(0 0 100% 0); transition: clip-path 0.8s cubic-bezier(0.77, 0, 0.18, 1) 0.15s; }
.veil__mono { font-size: 2.2rem; font-weight: 300; letter-spacing: 0.1em; }
.veil__mono em { font-family: var(--script); font-style: normal; color: var(--gold); margin: 0 0.12em; }

/* ---------- En-tête et pied de chapitre ---------- */
.pagehead { text-align: center; padding: clamp(110px, calc(var(--vh) * 17), 170px) 16px 0; margin-bottom: clamp(-70px, -6vw, -30px); position: relative; z-index: 1; animation: rise 1.2s var(--ease) both; }
.pagehead__num { display: block; font-family: var(--script); font-size: clamp(4rem, 11vw, 7rem); line-height: 0.9; color: var(--blush); }
.pagehead .eyebrow { margin-top: 6px; }
.pagefoot { background: var(--kraft); }
.pagefoot__link { display: grid; justify-items: center; gap: 4px; padding: clamp(60px, 10vw, 110px) 16px; text-decoration: none; transition: background 0.6s; }
.pagefoot__link:hover { background: var(--blush-bg); }
.pagefoot__num { font-family: var(--script); font-size: 2.6rem; line-height: 1; color: var(--gold); margin-top: 10px; }
.pagefoot__label { font-weight: 300; font-size: clamp(2.4rem, 7vw, 4.4rem); line-height: 1.05; transition: letter-spacing 0.8s var(--ease); }
.pagefoot__link:hover .pagefoot__label { letter-spacing: 0.02em; }

/* ---------- Accueil : sommaire et invitation à répondre ---------- */
.index { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(34px, 6vw, 64px); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.index__item { position: relative; display: grid; justify-items: center; gap: 6px; padding: clamp(26px, 4vw, 48px) clamp(16px, 3vw, 36px) clamp(24px, 3.4vw, 40px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; text-decoration: none; transition: opacity 1.3s var(--ease), transform 1.3s var(--ease), background 0.6s; transition-delay: var(--d, 0s), var(--d, 0s), 0s; }
.index__item:hover { background: var(--ivory); }
.index__num { font-family: var(--script); font-size: 2.3rem; line-height: 1; color: var(--gold); }
.index__art { width: min(190px, 78%); height: 112px; display: grid; place-items: center; margin: 4px 0 6px; transition: transform 0.9s var(--ease); }
.index__art .flora { color: var(--mauve); width: auto; max-width: 100%; height: 100%; } .index__art .flora .leaf { color: var(--olive); stroke: var(--olive); fill: var(--olive); }
.index__item:hover .index__art { transform: translateY(-6px) scale(1.04); }
.index__item h3 { font-weight: 300; font-size: clamp(1.7rem, 3vw, 2.2rem); line-height: 1.1; }
.index__item p { color: var(--ink-soft); font-size: 1rem; line-height: 1.4; max-width: 24ch; }
.index__go { margin-top: 10px; font: 400 0.62rem/1 var(--sans); letter-spacing: 0.28em; text-transform: uppercase; color: var(--mauve); padding-bottom: 5px; border-bottom: 1px solid transparent; transition: border-color 0.4s, letter-spacing 0.6s var(--ease); }
.index__item:hover .index__go { border-color: currentColor; letter-spacing: 0.34em; }
@media (max-width: 860px) { .index { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .index__art { display: none; } .index__item p { display: none; } }
.teaser { color: var(--paper); text-align: center; padding-top: clamp(120px, calc(var(--vh) * 24), 240px); padding-bottom: clamp(120px, calc(var(--vh) * 24), 240px); }
.teaser .eyebrow { color: #f6d9dd; }
.teaser .photo-bg img { filter: blur(3px) saturate(0.95); }
.teaser .photo-bg::after { background: rgba(72, 46, 54, 0.5); }
.teaser__text .btn { margin-top: 0.6em; }

/* ---------- Scène 3D (pétales) ---------- */
#scene { position: fixed; inset: 0; width: 100%; height: 100%; height: 100lvh; z-index: 70; pointer-events: none; }
body.has3d .intro__wreath { display: none; }

/* ---------- Hero : photo plein écran, en profondeur ---------- */
.hero { position: relative; height: 165vh; height: 165svh; --p: 0; --mx: 0; --my: 0; }
.hero__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 520px; overflow: hidden; display: grid; align-items: end; justify-items: center; color: var(--paper); background: #40363a; perspective: 1400px; }
.hero__media { position: absolute; inset: -4%; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.16); transition: transform 3.6s var(--ease); will-change: transform; }
body.ready .hero__media img {
  transform: scale(calc(1.02 + var(--p) * 0.3)) rotateX(calc(var(--my) * -1.6deg)) rotateY(calc(var(--mx) * 2.2deg)) translate(calc(var(--mx) * -12px), calc(var(--my) * -8px));
}
body.live .hero__media img { transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.3, 1); }
.hero__media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(52, 36, 41, 0.38) 0%, rgba(52, 36, 41, 0) 22%, rgba(52, 36, 41, 0) 42%, rgba(52, 36, 41, 0.5) 72%, rgba(52, 36, 41, 0.82) 100%);
}
.hero__text {
  position: relative; text-align: center; padding: 0 16px clamp(64px, calc(var(--vh) * 11), 110px);
  transform: translate3d(calc(var(--mx) * 16px), calc(var(--my) * 10px - var(--p) * 90px), 0) scale(calc(1 + var(--p) * 0.22));
  opacity: calc(1 - var(--p) * 1.9);
}
body.live .hero__text { transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.3, 1); }
.hero__fade { position: absolute; inset: 0; background: var(--ivory); opacity: calc(var(--p) * 1.5 - 0.5); pointer-events: none; }
.hero__eyebrow { color: var(--paper); opacity: 0.9; font-size: 1.02rem; }
.hero__names { font-weight: 300; font-size: clamp(3.4rem, 10.5vw, 9rem); line-height: 0.95; letter-spacing: -0.015em; margin: 0.12em 0 0.22em; display: flex; align-items: baseline; justify-content: center; gap: 0.18em; flex-wrap: wrap; text-shadow: 0 2px 40px rgba(52, 36, 41, 0.45); }
.hero__names .amp { font-size: 0.85em; line-height: 0.8; color: #f6d9dd; transform: translateY(0.1em); }
.split { display: inline-flex; overflow: hidden; padding: 0.08em 0.02em 0.12em; margin: -0.08em 0 -0.12em; }
.split span { display: inline-block; transform: translateY(115%); transition: transform 1.5s var(--ease); transition-delay: calc(1.5s + var(--i) * 70ms); }
body.ready .split span { transform: none; }
.hero__meta { display: flex; align-items: center; justify-content: center; gap: 18px; font: 400 1.06rem/1.5 var(--sans); letter-spacing: 0.32em; text-transform: uppercase; flex-wrap: wrap; }
.hero__meta i { width: 44px; height: 1px; background: #f6d9dd; }
.hero__eyebrow, .hero__names .amp, .hero__meta { opacity: 0; transition: opacity 1.6s ease 2.3s; }
body.ready .hero__eyebrow { opacity: 0.9; } body.ready .hero__names .amp, body.ready .hero__meta { opacity: 1; }
.scroll-hint { position: absolute; bottom: 0; left: 50%; width: 40px; height: 52px; transform: translateX(-50%); display: grid; justify-items: center; opacity: calc(1 - var(--p) * 4); }
.scroll-hint i { width: 1px; height: 100%; background: linear-gradient(transparent, rgba(255, 255, 255, 0.9)); animation: drip 2.6s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 55% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* Écrans étroits : la photo en haut, les prénoms sur fond blanc en dessous */
@media (max-aspect-ratio: 4/5) {
  .hero { height: 135vh; height: 135svh; }
  .hero__sticky { display: flex; flex-direction: column; align-items: stretch; color: var(--ink); background: var(--ivory); }
  .hero__media { position: relative; inset: auto; flex: 1 1 0; min-height: 0; width: 100%; overflow: hidden; }
  .hero__media::after { background: linear-gradient(180deg, rgba(52, 36, 41, 0.3) 0%, rgba(52, 36, 41, 0) 24%, rgba(253, 251, 249, 0) 70%, var(--ivory) 100%); }
  .hero__text { padding: 6px 16px 70px; }
  .hero__eyebrow { color: var(--mauve); }
  .hero__names { font-size: clamp(3rem, 15.5vw, 5rem); text-shadow: none; flex-direction: column; align-items: center; gap: 0; line-height: 0.9; }
  .hero__names .amp { color: var(--gold); transform: none; line-height: 1; }
  .hero__meta { gap: 6px 14px; font-size: 0.98rem; letter-spacing: 0.26em; flex-direction: column; }
  .hero__eyebrow { font-size: 0.98rem; }
  .hero__meta i { display: none; }
  .scroll-hint i { background: linear-gradient(transparent, var(--ink-soft)); }
}

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(84px, calc(var(--vh) * 15), 170px) clamp(18px, 4vw, 48px); overflow: hidden; }
.section--paper { background: var(--paper); }
.wrap { position: relative; width: min(1120px, 100%); margin: 0 auto; }
.wrap--narrow { width: min(680px, 100%); }
.ornament { width: min(240px, 60%); margin: 0 auto 26px; }
.ornament--left { margin: 34px 0 0; }

.reveal { opacity: 0; transform: translateY(34px); transition: opacity 1.3s var(--ease), transform 1.3s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* Bienvenue */
.section--welcome { padding-bottom: clamp(70px, calc(var(--vh) * 12), 130px); }
.bough { position: absolute; top: -10px; width: clamp(150px, 24vw, 330px); aspect-ratio: 300 / 420; opacity: 0.8; pointer-events: none; }
.bough--left { left: -24px; }
@media (max-width: 760px) { .bough { opacity: 0.35; left: -50px; } }
.signature { font-family: var(--script); font-size: clamp(2rem, 5vw, 2.7rem); line-height: 1.2; margin-top: 0.9em; color: var(--ink); }
.signature em { font-style: normal; color: var(--gold); }
.signature--left { margin-top: 0.7em; }
.countdown { display: flex; justify-content: center; gap: clamp(18px, 6vw, 56px); margin-top: 2.2em; padding-top: 2em; border-top: 1px solid var(--line); }
.countdown div { display: grid; justify-items: center; }
.countdown b { font-weight: 300; font-size: clamp(2.3rem, 7vw, 3.6rem); line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.countdown span { font: 400 0.62rem/1 var(--sans); letter-spacing: 0.28em; text-transform: uppercase; color: var(--ink-soft); margin-top: 10px; text-indent: 0.28em; }
@media (max-width: 560px) { .countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; } .countdown span { font-size: 0.54rem; letter-spacing: 0.18em; text-indent: 0.18em; } }
.cal { margin-top: 2.4em; }
.cal__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; }
.cal__links .btn { padding: 13px 22px; }

/* Accès par code */
#gate { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 24px; background: var(--ivory); overflow: auto; }
.gate__box { display: grid; justify-items: center; gap: 14px; width: min(360px, 100%); text-align: center; }
.gate__mono { font-size: 2.2rem; font-weight: 300; letter-spacing: 0.1em; margin-bottom: 10px; }
.gate__mono em { font-family: var(--script); font-style: normal; color: var(--gold); margin: 0 0.12em; }
.gate__title { font-weight: 300; font-size: clamp(2.4rem, 9vw, 3.2rem); line-height: 1.05; }
.gate__box .field { width: 100%; margin-top: 6px; }
.gate__box input { text-align: center; letter-spacing: 0.14em; text-transform: uppercase; }
.gate__box .btn { margin-top: 8px; }

/* Le week-end */
.invite-note { font-style: italic; color: var(--ink-soft); margin: -0.6em auto 0; max-width: 46ch; }
.days { display: grid; gap: 22px; margin-top: clamp(36px, calc(var(--vh) * 6), 64px); grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; }
.days[data-count="1"] { grid-template-columns: minmax(0, 640px); justify-content: center; }
.day { position: relative; padding: clamp(28px, 4vw, 44px) clamp(22px, 3vw, 38px); background: var(--ivory); border: 1px solid var(--line); }
.day::before { content: ''; position: absolute; inset: 7px; border: 1px solid rgba(197, 143, 154, 0.35); pointer-events: none; }
.day--main { background: var(--mauve); color: var(--paper); border-color: var(--mauve); }
.day--main::before { border-color: rgba(255, 255, 255, 0.5); }
.day__head { text-align: center; padding-bottom: 22px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.day--main .day__head { border-color: rgba(255, 253, 249, 0.18); }
.day__label { font: 400 0.66rem/1 var(--sans); letter-spacing: 0.34em; text-transform: uppercase; color: var(--mauve); }
.day--main .day__label { color: #f6d9dd; }
.day__date { font-size: clamp(2.2rem, 4vw, 2.9rem); font-weight: 300; line-height: 1.1; margin-top: 8px; }
.day__title { font-style: italic; color: var(--ink-soft); }
.day--main .day__title { color: rgba(255, 253, 249, 0.72); }
.day ol { list-style: none; padding: 0; }
.day li { padding: 20px 0; border-top: 1px solid var(--line); text-align: center; }
.day--main li { border-color: rgba(255, 253, 249, 0.14); }
.day li:first-child { border-top: 0; }
.day time { display: block; font: 400 0.68rem/1.5 var(--sans); letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold); }
.day--main time { color: #f6d9dd; }
.day h3 { font-weight: 400; font-size: 1.6rem; line-height: 1.2; margin: 4px 0 2px; }
.day li p { font-size: 1.02rem; line-height: 1.45; color: var(--ink-soft); }
.day--main li p { color: rgba(255, 253, 249, 0.75); }

/* Les lieux */
.places { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 0; margin-top: clamp(30px, calc(var(--vh) * 5), 56px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.place { padding: clamp(34px, 5vw, 60px) clamp(10px, 4vw, 56px); text-align: center; display: grid; justify-items: center; gap: 6px; }
.place + .place { border-left: 1px solid var(--line); }
@media (max-width: 640px) { .place + .place { border-left: 0; border-top: 1px solid var(--line); } }
.place__num { font-family: var(--script); font-size: 3.4rem; line-height: 1; color: var(--gold); }
.place__step { font: 400 0.68rem/1.5 var(--sans); letter-spacing: 0.3em; text-transform: uppercase; color: var(--mauve); }
.place h3 { font-weight: 300; font-size: clamp(1.9rem, 3.6vw, 2.6rem); line-height: 1.1; margin-top: 4px; }
.place__text { font-style: italic; color: var(--ink-soft); max-width: 30ch; }
.place__addr { font: 400 0.7rem/1.7 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); max-width: 34ch; margin: 8px 0 18px; }

/* Le domaine (fond rose très pâle) */
.section--blush { background: var(--blush-bg); padding-bottom: clamp(200px, 30vw, 330px); }
.section--blush .flora { color: var(--mauve); }
.domaine { display: grid; grid-template-columns: minmax(120px, 0.6fr) 1.4fr; gap: clamp(26px, 6vw, 90px); align-items: center; }
.domaine__art { width: min(240px, 100%); justify-self: center; }
.domaine__text .btn { margin-top: 1.8em; }
@media (max-width: 720px) { .domaine { grid-template-columns: 1fr; text-align: center; } .domaine__art { width: 120px; } }
.landscape-wrap { position: absolute; left: 0; right: 0; bottom: 0; height: clamp(150px, 22vw, 260px); pointer-events: none; }
.landscape-wrap .flora { height: 100%; }

/* Bandeau photo plein écran */
.band { position: relative; height: min(calc(var(--vh) * 86), 62vw); min-height: 320px; overflow: hidden; background: var(--kraft); }
.band img { position: absolute; left: 0; top: -12%; width: 100%; height: 124%; object-fit: cover; transform: translateY(var(--py, 0px)); will-change: transform; }
.band::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 180px rgba(52, 36, 41, 0.35); pointer-events: none; }
@media (max-width: 700px) { .band { height: calc(var(--vh) * 62); } }

/* Aux alentours : les dessins du coin */
.spots { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: clamp(26px, 4vw, 56px); margin-top: clamp(34px, calc(var(--vh) * 6), 64px); }
.spot { text-align: center; }
.spot__art { padding: 0 6% 10px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.spot__art .flora { color: var(--mauve); }
.spot__art .flora .leaf { color: var(--olive); stroke: var(--olive); fill: var(--olive); }
.spot h3 { font-weight: 300; font-size: clamp(1.8rem, 3vw, 2.2rem); line-height: 1.15; margin-bottom: 8px; }
.spot p { color: var(--ink-soft); font-size: 1.05rem; line-height: 1.5; max-width: 34ch; margin: 0 auto; }

/* Notre histoire : la demande et la bague */
.story { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(40px, 8vw, 120px); align-items: start; }
.story__text .prose, .domaine__text .prose { text-align: justify; -webkit-hyphens: auto; hyphens: auto; }
.story__text .prose { font-size: 0.98em; }
.story__photos { position: sticky; top: 110px; justify-self: center; width: min(430px, 100%); padding: 0 24% 20% 0; }
.story__photos figure { overflow: hidden; background: var(--kraft); }
.story__main { aspect-ratio: 3 / 4; box-shadow: 0 40px 70px -40px rgba(64, 54, 58, 0.55); }
.story__small { position: absolute; right: 0; bottom: 0; width: 40%; aspect-ratio: 3 / 4; border: 8px solid var(--paper); box-shadow: 0 30px 50px -30px rgba(64, 54, 58, 0.6); }
.story__photos img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) { .story { grid-template-columns: 1fr; text-align: center; } .story__photos { position: relative; top: auto; width: min(320px, 88%); } .ornament--left { margin-left: auto; margin-right: auto; } }

/* Galerie */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 2vw, 26px); margin-top: clamp(30px, calc(var(--vh) * 5), 56px); }
.gallery { perspective: 1200px; }
.gallery__item { aspect-ratio: 3 / 4; overflow: hidden; background: var(--kraft); }
.gallery__item.in { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: opacity 1.3s var(--ease), transform 0.5s cubic-bezier(0.2, 0.7, 0.3, 1), box-shadow 0.5s; }
.gallery__item.in:hover { box-shadow: 0 40px 60px -40px rgba(64, 54, 58, 0.55); }
.gallery__item:nth-child(3n + 2) { margin-top: clamp(24px, 6vw, 80px); margin-bottom: calc(-1 * clamp(24px, 6vw, 80px)); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.8s var(--ease), filter 1s; }
.gallery__item:hover img { transform: scale(1.05); }
.section--gallery { padding-bottom: clamp(120px, calc(var(--vh) * 20), 230px); }
@media (max-width: 640px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery__item:nth-child(3n + 2) { margin: 0; }
  .gallery__item:nth-child(2n) { margin-top: 28px; margin-bottom: -28px; }
}

/* Venir, Dormir, Cadeaux */
.lead { margin-left: auto; margin-right: auto; }
.closing { margin-top: clamp(50px, 9vw, 96px); }
.closing__title { font-family: var(--script); font-weight: 400; font-size: clamp(2.2rem, 5vw, 3rem); line-height: 1.1; color: var(--gold); margin-bottom: 0.4em; }
.way .place__addr { margin: 16px auto 0; }
.way .btn { margin-top: 20px; }
.way__list { list-style: none; padding: 0; margin: 16px auto 0; max-width: 30ch; border-top: 1px solid var(--line); }
.way__list li { padding: 11px 0; border-bottom: 1px solid var(--line); display: grid; gap: 2px; }
.way__list b { font-weight: 400; font-size: 1.15rem; }
.way__list span { color: var(--ink-soft); font-size: 0.98rem; line-height: 1.4; }
.zone { margin-top: clamp(50px, 9vw, 96px); }
.zone__title { font-weight: 300; font-size: clamp(2rem, 4.4vw, 2.9rem); line-height: 1.1; margin: 0.2em 0 0.5em; }
.stays { --cols: 4; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: clamp(24px, 4vw, 40px); }
.stay { flex: 0 1 calc((100% - (var(--cols) - 1) * 16px) / var(--cols)); min-width: min(250px, 100%); position: relative; padding: 28px 24px 24px; background: var(--ivory); border: 1px solid var(--line); text-align: center; display: grid; gap: 8px; align-content: start; }
.stay h4 { margin: 0; font-weight: 400; font-size: 1.5rem; line-height: 1.15; }
.stay__addr { font: 400 0.66rem/1.7 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.stay__note { font-style: italic; color: var(--ink-soft); font-size: 1rem; line-height: 1.4; }
.stay__links { display: grid; gap: 2px; margin-top: 4px; }
.stay__links a { text-decoration: none; font-size: 1.12rem; overflow-wrap: anywhere; }
.stay__links a:hover, .stay__more a:hover { color: var(--mauve); }
.stay__more { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.stay__more a { font: 400 0.64rem/1.4 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--mauve); text-decoration: none; }
.section--flat { padding-bottom: clamp(84px, calc(var(--vh) * 15), 170px); }
.cagnotte { margin-top: 2em; }
.dreams { --s: 0; counter-reset: dream; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 2.4vw, 30px); margin-top: clamp(40px, 7vw, 80px); align-items: start; }
.dream { text-align: center; --k: -26; }
.dream:nth-child(2) { --k: 20; margin-top: clamp(26px, 6vw, 84px); }
.dream:nth-child(3) { --k: -12; margin-top: clamp(8px, 2vw, 26px); }
.dream:nth-child(4) { --k: 30; margin-top: clamp(34px, 8vw, 110px); }
/* Chaque photo se dévoile comme un rideau, dézoome lentement, puis glisse en profondeur au défilement */
.dream__photo { aspect-ratio: 3 / 4.3; overflow: hidden; background: var(--kraft); margin-bottom: 16px; clip-path: inset(100% 0 0 0); transform: translate3d(0, calc(var(--s) * var(--k) * 1px), 0); transition: clip-path 1.7s cubic-bezier(0.77, 0, 0.18, 1) var(--d, 0s); will-change: transform; }
.dream.in .dream__photo { clip-path: inset(0 0 0 0); }
.dream__photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.32); transition: transform 3.2s var(--ease) var(--d, 0s); }
.dream.in .dream__photo img { transform: scale(1.05); }
.dream.in:hover .dream__photo img { transform: scale(1.12); transition-duration: 1.6s; transition-delay: 0s; }
.dream figcaption { font: 400 0.68rem/1.4 var(--sans); letter-spacing: 0.3em; text-transform: uppercase; color: var(--mauve); }
.dream figcaption::before { counter-increment: dream; content: '0' counter(dream); display: block; font-family: var(--script); font-size: 1.9rem; line-height: 1; letter-spacing: 0; color: var(--gold); margin-bottom: 4px; }
@media (max-width: 700px) { .dreams { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 26px; } .dream:nth-child(3) { margin-top: 0; } .dream:nth-child(4) { margin-top: 30px; } .dream:nth-child(2) { margin-top: 30px; } }
/* Participer à distance : deux volets discrets */
.gift__intro { margin: 2em auto 0; }
.gift { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 12px; margin-top: 18px; }
.gift__way { border: 1px solid rgba(169, 104, 123, 0.45); border-radius: 26px; background: rgba(255, 255, 255, 0.6); transition: background 0.4s; }
.gift__way[open] { background: var(--paper); }
.gift__way summary { list-style: none; cursor: pointer; padding: 14px 26px; font: 400 0.7rem/1 var(--sans); letter-spacing: 0.26em; text-transform: uppercase; color: var(--mauve); }
.gift__way summary::-webkit-details-marker { display: none; }
.gift__body { padding: 2px 26px 18px; display: grid; gap: 8px; animation: rise 0.6s var(--ease) both; }
.gift__body p { display: grid; gap: 1px; }
.gift__body span { font: 400 0.6rem/1.4 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-soft); }
.gift__body b { font-weight: 400; font-size: 1.12rem; letter-spacing: 0.02em; overflow-wrap: anywhere; }
.gift__body .linkbtn { margin-top: 4px; font-size: 0.95rem; }

/* Infos pratiques */
.infos { margin: clamp(26px, calc(var(--vh) * 5), 50px) auto 0; max-width: 820px; border-top: 1px solid var(--line); }
.info { border-bottom: 1px solid var(--line); }
.info summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: 20px; padding: 24px 4px; transition: color 0.3s; }
.info summary::-webkit-details-marker { display: none; }
.info summary:hover { color: var(--mauve); }
.info__num { font: 400 0.68rem/1 var(--sans); letter-spacing: 0.2em; color: var(--gold); min-width: 2.2em; }
.info__title { font-size: clamp(1.6rem, 3.4vw, 2.1rem); font-weight: 300; line-height: 1.15; flex: 1; }
.info__plus { position: relative; width: 16px; height: 16px; align-self: center; flex: none; }
.info__plus::before, .info__plus::after { content: ''; position: absolute; left: 0; top: 50%; width: 100%; height: 1px; background: currentColor; transition: transform 0.5s var(--ease); }
.info__plus::after { transform: rotate(90deg); }
.info[open] .info__plus::after { transform: rotate(0); }
.info__body { padding: 0 4px 28px calc(2.2em + 24px); color: var(--ink-soft); max-width: 62ch; animation: rise 0.7s var(--ease) both; }
@media (max-width: 560px) { .info__body { padding-left: 4px; } }
.info__body p + p { margin-top: 0.8em; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 400 0.7rem/1 var(--sans); letter-spacing: 0.26em; text-transform: uppercase; text-decoration: none;
  padding: 17px 30px; border-radius: 99px; border: 1px solid var(--ink); cursor: pointer;
  background: var(--mauve); border-color: var(--mauve); color: var(--paper); transition: background 0.4s, color 0.4s, border-color 0.4s, opacity 0.3s;
}
.btn:hover { background: var(--ink); border-color: var(--ink); }
.btn:disabled { opacity: 0.5; cursor: wait; }
.btn--ghost { background: transparent; color: var(--mauve); }
.btn--ghost:hover { background: var(--mauve); border-color: var(--mauve); color: var(--paper); }
.btn--line { background: transparent; color: var(--paper); border-color: rgba(255, 253, 249, 0.5); }
.btn--line:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }

/* ---------- RSVP sur fond photo ---------- */
.section--photo { background: #6d5158; }
.photo-bg { position: absolute; inset: -8% 0; }
.photo-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; filter: blur(14px) saturate(0.9); transform: scale(1.14) translateY(var(--py, 0px)); }
.photo-bg::after { content: ''; position: absolute; inset: 0; background: rgba(92, 62, 70, 0.4); }
.panel { position: relative; padding: clamp(30px, 6vw, 68px); background: var(--paper); box-shadow: 0 50px 100px -50px rgba(0, 0, 0, 0.6); }
.panel::before { content: ''; position: absolute; inset: 9px; border: 1px solid rgba(197, 143, 154, 0.4); pointer-events: none; }
.panel h2 { font-size: clamp(2.2rem, 5.6vw, 3.4rem); }

.form { position: relative; display: grid; gap: 28px; margin-top: 0.4em; }
.form__intro { color: var(--ink-soft); text-align: center; font-style: italic; }
.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > label, .field > legend { font: 400 0.68rem/1.5 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; padding: 0; }
.field .req { color: var(--mauve); }
.field small { color: var(--ink-soft); font-size: 0.95rem; font-style: italic; }
.field input[type=text], .field input[type=password], .field input[type=email], .field input[type=tel], .field input[type=number], .field textarea {
  width: 100%; font: 400 1.2rem/1.4 var(--serif); color: var(--ink);
  padding: 10px 0; border: 0; border-bottom: 1px solid rgba(64, 54, 58, 0.4); background: transparent; border-radius: 0; outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--mauve); box-shadow: 0 1px 0 var(--mauve); }
.field input[type=number] { max-width: 140px; }

.choices { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span { display: block; padding: 8px 20px; border: 1px solid rgba(64, 54, 58, 0.3); border-radius: 99px; font-size: 1.08rem; transition: all 0.35s var(--ease); }
.choice input:checked + span { background: var(--mauve); border-color: var(--mauve); color: var(--paper); }
.choice input:focus-visible + span { outline: 2px solid var(--mauve); outline-offset: 2px; }

.attend { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.attend .choice span { border-radius: 0; padding: 24px 12px; text-align: center; font-size: 1.7rem; font-style: italic; font-weight: 300; line-height: 1.2; }
.attend .choice small { display: block; font: 400 0.62rem/1.5 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; font-style: normal; margin-top: 8px; opacity: 0.75; color: inherit; }
.attend .choice.no input:checked + span { background: var(--ink-soft); border-color: var(--ink-soft); }
@media (max-width: 440px) { .attend { grid-template-columns: 1fr; } }

.form__more { display: grid; gap: 28px; }
.form__more > * { animation: rise 0.7s var(--ease) both; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__error { color: #a23b3b; font-size: 1rem; }
.form__actions { display: flex; justify-content: center; }

.thanks { text-align: center; padding: 10px 0 6px; animation: rise 1s var(--ease) both; }
.thanks h3 { font-family: var(--script); font-weight: 400; font-size: 3.6rem; line-height: 1.1; color: var(--gold); }
.thanks p { margin: 10px auto 22px; max-width: 32ch; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; font-size: 1rem; font-style: italic; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }

/* ---------- Pied de page ---------- */
.footer { text-align: center; padding: clamp(70px, calc(var(--vh) * 12), 120px) 16px 60px; background: var(--ivory); display: grid; justify-items: center; }
.footer__wreath { width: 120px; margin-bottom: 20px; }
.footer__names { font-size: clamp(2.2rem, 6vw, 3.4rem); font-weight: 300; line-height: 1.1; }
.footer__date { font-style: italic; margin-top: 6px; }
.footer__place { font: 400 0.66rem/1.5 var(--sans); letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-soft); margin-top: 10px; }

/* Écrans tactiles : effets liés au défilement sans inertie ni 3D, pour un défilement fluide */
@media (hover: none) {
  html { scroll-behavior: auto; }
  body.live .hero__media img, body.live .hero__text { transition: none; }
  .gallery { perspective: none; }
  .gallery__item.in { transform: none; }
  .nav.solid { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(253, 251, 249, 0.97); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01s !important; transition-delay: 0s !important; animation: none !important; }
}
