/* ═══════════════════════════════════════════════════════════════
   LISA-MARIE & BERTRAND — « Dentelle & Lumière » · styles.css
   Dentelle, drapés de soie et bougies. Blanc crème, ivoire, champagne.
   Mobile-first (600 / 768 / 1024).
═══════════════════════════════════════════════════════════════ */

:root {
  /* Palette */
  --creme: #f8f2e7;
  --ivoire: #fbf7ee;
  --papier: #fffdf8;
  --beige: #efe5d4;
  --champagne: #e8d5b0;
  --or-pale: #d9c08e;
  --or: #b08f58;            /* doré champagne discret : petites touches uniquement */
  --encre: #4a3f33;         /* brun chaud (lisible, jamais noir) */
  --encre-soft: #6f604e;
  --encre-faint: #8c7c68;
  --line: rgba(176, 143, 88, .32);
  --flamme: #ffd58a;

  --serif: "Cormorant Garamond", "Cormorant", Garamond, Georgia, serif;
  --caps: "Cinzel", "Trajan Pro", Georgia, serif;
  --sans: "Jost", "Avenir Next", "Segoe UI", system-ui, sans-serif;

  --gutter: clamp(18px, 5vw, 40px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-soft: cubic-bezier(.45, 0, .2, 1);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);

  /* Dentelle : galon festonné (bord de carte) et tulle brodé (texture) */
  --lace-trim: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='22'%3E%3Cpath d='M0 0h48v6q-6 14-12 0-6 14-12 0-6 14-12 0-6 14-12 0z' fill='%23fffdf8'/%3E%3Cpath d='M0 6q6 14 12 0t12 0 12 0 12 0' fill='none' stroke='%23c9b28a' stroke-width='.7'/%3E%3Cpath d='M0 2.6h48' stroke='%23d6c39f' stroke-width='.5' stroke-dasharray='1.5 2'/%3E%3Cg fill='none' stroke='%23c9b28a' stroke-width='.55'%3E%3Ccircle cx='6' cy='8.6' r='2'/%3E%3Ccircle cx='18' cy='8.6' r='2'/%3E%3Ccircle cx='30' cy='8.6' r='2'/%3E%3Ccircle cx='42' cy='8.6' r='2'/%3E%3C/g%3E%3Cg fill='%23c9b28a'%3E%3Ccircle cx='6' cy='14.5' r='.7'/%3E%3Ccircle cx='18' cy='14.5' r='.7'/%3E%3Ccircle cx='30' cy='14.5' r='.7'/%3E%3Ccircle cx='42' cy='14.5' r='.7'/%3E%3C/g%3E%3C/svg%3E");
  --lace-trim-v: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='48'%3E%3Cg transform='translate(22 0) rotate(90)'%3E%3Cpath d='M0 0h48v6q-6 14-12 0-6 14-12 0-6 14-12 0-6 14-12 0z' fill='%23fffdf8'/%3E%3Cpath d='M0 6q6 14 12 0t12 0 12 0 12 0' fill='none' stroke='%23c9b28a' stroke-width='.7'/%3E%3Cpath d='M0 2.6h48' stroke='%23d6c39f' stroke-width='.5' stroke-dasharray='1.5 2'/%3E%3Cg fill='none' stroke='%23c9b28a' stroke-width='.55'%3E%3Ccircle cx='6' cy='8.6' r='2'/%3E%3Ccircle cx='18' cy='8.6' r='2'/%3E%3Ccircle cx='30' cy='8.6' r='2'/%3E%3Ccircle cx='42' cy='8.6' r='2'/%3E%3C/g%3E%3Cg fill='%23c9b28a'%3E%3Ccircle cx='6' cy='14.5' r='.7'/%3E%3Ccircle cx='18' cy='14.5' r='.7'/%3E%3Ccircle cx='30' cy='14.5' r='.7'/%3E%3Ccircle cx='42' cy='14.5' r='.7'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  --lace-tulle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72'%3E%3Cg fill='none' stroke='%23c9b28a' stroke-width='.45'%3E%3Cpath d='M0 0l72 72M72 0L0 72' opacity='.35'/%3E%3Ccircle cx='36' cy='36' r='3'/%3E%3Cg transform='translate(36 36)'%3E%3Cellipse cy='-8' rx='3.2' ry='5'/%3E%3Cellipse cy='-8' rx='3.2' ry='5' transform='rotate(60)'/%3E%3Cellipse cy='-8' rx='3.2' ry='5' transform='rotate(120)'/%3E%3Cellipse cy='-8' rx='3.2' ry='5' transform='rotate(180)'/%3E%3Cellipse cy='-8' rx='3.2' ry='5' transform='rotate(240)'/%3E%3Cellipse cy='-8' rx='3.2' ry='5' transform='rotate(300)'/%3E%3C/g%3E%3Ccircle cx='0' cy='0' r='1.6'/%3E%3Ccircle cx='72' cy='0' r='1.6'/%3E%3Ccircle cx='0' cy='72' r='1.6'/%3E%3Ccircle cx='72' cy='72' r='1.6'/%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; background: var(--creme); }
html.is-locked, html.is-locked body { overflow: hidden; }
body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  font: 300 17px/1.7 var(--sans);
  color: var(--encre);
  background:
    radial-gradient(90% 50% at 50% 0%, var(--papier), transparent 70%),
    var(--creme);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
img, video, svg { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
em { font-style: italic; }
[hidden] { display: none !important; }
[tabindex="-1"]:focus { outline: none; }
:focus-visible { outline: 2px solid var(--or); outline-offset: 3px; border-radius: 4px; }

.ico { width: 1.15em; height: 1.15em; flex: none; }
.amp { font-family: var(--serif); font-style: italic; font-weight: 300; color: var(--or); }
.kicker { margin: 0 0 14px; font: 400 .7rem/1.6 var(--caps); letter-spacing: .32em; text-transform: uppercase; color: var(--or); }
.title { margin: 0; font: 300 clamp(2.3rem, 9vw, 3.8rem)/1.08 var(--serif); letter-spacing: .005em; color: var(--encre); }
.arabesque { width: min(220px, 62vw); height: auto; aspect-ratio: 6; margin: 18px auto 0; overflow: visible; }

/* Apparition : un fondu de lumière très doux */
.reveal { opacity: 0; transform: translate3d(0, 18px, 0); filter: blur(6px); }
.reveal.is-in { opacity: 1; transform: none; filter: none; transition: opacity 1.4s ease, transform 1.6s var(--ease-out), filter 1.6s var(--ease-soft); }

/* ═════════════ BOUTONS ═════════════ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: .9em 2em;
  border: 0;
  border-radius: 999px;
  font: 400 .74rem/1 var(--caps);
  letter-spacing: .24em;
  text-transform: uppercase;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition: transform .5s var(--ease-out), box-shadow .5s ease, background .4s ease;
}
.btn:active { transform: scale(.97); }
.btn--sm { min-height: 44px; padding: .75em 1.5em; font-size: .66rem; }
.btn--champagne {
  color: #3d3125;
  background: linear-gradient(120deg, #f1e3c6, #dcc293 48%, #eedcb8);
  box-shadow: 0 12px 30px -14px rgba(150, 115, 60, .65), inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 0 0 1px rgba(176, 143, 88, .35);
}
.btn--champagne::after {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .75) 50%, transparent 70%) -160% 0 / 60% 100% no-repeat;
  animation: sheen 6s ease-in-out 2s infinite;
}
.btn--champagne:hover { box-shadow: 0 16px 36px -14px rgba(150, 115, 60, .8), inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 0 0 1px rgba(176, 143, 88, .5); }
.btn--ghost { color: var(--encre); background: rgba(255, 253, 248, .55); box-shadow: inset 0 0 0 1px var(--or-pale); }
.btn--ghost:hover { background: var(--papier); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  min-height: 44px;
  padding: .5em 1.1em;
  border-radius: 999px;
  font: 400 .86rem/1 var(--sans);
  text-decoration: none;
  color: var(--encre);
  background: var(--papier);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow .3s ease, transform .3s var(--ease-out);
}
.chip .ico { color: var(--or); }
.chip:hover { box-shadow: inset 0 0 0 1px var(--or), 0 8px 20px -12px rgba(150, 115, 60, .6); transform: translateY(-1px); }

/* ═════════════ LES BOUGIES ═════════════ */
.candle {
  --w: 20px; --h: 76px;
  position: relative;
  display: inline-block;
  width: var(--w); height: var(--h);
  margin-top: 46px;                       /* place pour la flamme */
  padding: 0;
  border: 0;
  background: none;
  vertical-align: bottom;
  flex: none;
}
.candle--s { --w: 18px; --h: 54px; }
.candle--tall { --w: 22px; --h: 110px; }
.candle__wax {
  position: absolute; inset: 0;
  border-radius: 5px 5px 4px 4px / 3px 3px 4px 4px;
  background: linear-gradient(90deg, #e2d3b6 0%, #f7efdf 22%, #fffdf7 48%, #f3e9d6 74%, #d8c7a6 100%);
  box-shadow: 0 10px 18px -10px rgba(110, 85, 50, .5);
}
.candle__wax::before {
  /* Le dessus : cire fondue, éclairée de l’intérieur quand la bougie brûle */
  content: "";
  position: absolute;
  left: 0; right: 0; top: -3px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 60%, #fffaf0, #eadcc0);
  transition: background .8s ease;
}
.candle__wax::after {
  /* Coulures de cire */
  content: "";
  position: absolute;
  left: 18%; top: 1px;
  width: 4px; height: 13px;
  border-radius: 0 0 3px 3px;
  background: #fbf4e6;
  box-shadow: calc(var(--w) * .45) 2px 0 -.5px #fbf4e6;
}
.candle.is-lit .candle__wax::before { background: radial-gradient(ellipse at 50% 60%, #fff3d0, #f2d9a4 70%, #eadcc0); }
.candle__wick { position: absolute; left: 50%; bottom: 100%; width: 2px; height: 8px; margin-left: -1px; border-radius: 1px; background: linear-gradient(#2d241c, #5a4a3a); }
.candle__flame {
  position: absolute;
  left: 50%; bottom: calc(100% + 5px);
  width: 12px; height: 30px;
  margin-left: -6px;
  border-radius: 50% 50% 22% 22% / 62% 62% 38% 38%;
  background: radial-gradient(ellipse at 50% 82%, #fff 0%, #fff8e1 18%, #ffe0a0 40%, rgba(255, 168, 70, .85) 66%, rgba(255, 130, 40, 0) 100%);
  filter: blur(.3px);
  transform-origin: 50% 92%;
  opacity: 0;
  transform: scale(.2);
  transition: opacity .5s ease, transform .7s var(--ease-out);
}
.candle__core { position: absolute; left: 50%; bottom: 3px; width: 5px; height: 8px; margin-left: -2.5px; border-radius: 50%; background: radial-gradient(rgba(120, 150, 255, .55), transparent 70%); }
.candle__glow {
  position: absolute;
  left: 50%; bottom: calc(100% - 6px);
  width: 190px; height: 190px;
  margin: 0 0 -80px -95px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 214, 150, .5) 0%, rgba(255, 220, 170, .2) 35%, transparent 68%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 1s ease;
}
.candle.is-lit .candle__flame { opacity: 1; transform: none; animation: flicker 2.6s ease-in-out infinite; }
.candle.is-lit .candle__glow { opacity: 1; animation: glow 3.4s ease-in-out infinite; }
.candle__smoke {
  position: absolute;
  left: 50%; bottom: calc(100% + 8px);
  width: 6px; height: 40px;
  margin-left: -3px;
  border-radius: 50%;
  background: linear-gradient(to top, rgba(140, 125, 110, .45), transparent);
  filter: blur(2px);
  opacity: 0;
  pointer-events: none;
}
.candle.is-smoke .candle__smoke { animation: smoke 2.4s ease-out forwards; }

/* ═════════════ 1. L’OUVERTURE ═════════════ */
.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: calc(28px + var(--safe-t)) var(--gutter) calc(130px + var(--safe-b));
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(70% 45% at 50% 100%, rgba(255, 214, 150, .35), transparent 70%),
    radial-gradient(120% 80% at 50% 30%, var(--papier), var(--creme) 60%, var(--beige));
  transition: opacity 1.8s var(--ease-soft), visibility 0s linear 1.8s;
}
.intro.is-gone { opacity: 0; visibility: hidden; pointer-events: none; }
.intro__lace { position: absolute; inset: 0; background: var(--lace-tulle) center / 72px; opacity: .22; -webkit-mask: radial-gradient(ellipse at 50% 45%, transparent 30%, #000 85%); mask: radial-gradient(ellipse at 50% 45%, transparent 30%, #000 85%); }
.intro::before {
  /* Filet doré + galon de dentelle, comme un carton gravé */
  content: "";
  position: absolute;
  inset: calc(14px + var(--safe-t)) 14px calc(14px + var(--safe-b));
  border: 1px solid var(--line);
  box-shadow: inset 0 0 0 5px rgba(255, 253, 248, .6), inset 0 0 0 6px rgba(176, 143, 88, .18);
  pointer-events: none;
}
.intro::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 22px;
  background: var(--lace-trim) 0 0 / 48px 22px repeat-x;
  opacity: .9;
}
.intro__flowers {
  position: absolute;
  bottom: -2%;
  width: min(62vw, 420px);
  aspect-ratio: 360 / 300;
  background: center / cover no-repeat;
  filter: brightness(1.2) saturate(.9) contrast(1.04);   /* la pierre se fond dans le crème */
  -webkit-mask: radial-gradient(ellipse 60% 62% at 50% 64%, #000 40%, transparent 72%);
  mask: radial-gradient(ellipse 60% 62% at 50% 64%, #000 40%, transparent 72%);
  opacity: 0;
  animation: bloom 2.4s var(--ease-out) .3s forwards;
}
.intro__flowers--l { left: -14%; background-image: url("../fleurs/angle-gauche.webp"); }
.intro__flowers--r { right: -14%; background-image: url("../fleurs/angle-droite.webp"); animation-delay: .5s; }
.intro__card { position: relative; display: grid; justify-items: center; max-width: 32rem; }
.intro__card > * { opacity: 0; animation: rise 1.8s var(--ease-out) forwards; }
.intro__kicker { margin: 34px 0 8px; font: 400 .66rem/1.6 var(--caps); letter-spacing: .4em; text-transform: uppercase; color: var(--or); animation-delay: .35s; }
.intro__names { margin: 0; font: 300 clamp(2.6rem, 12vw, 5rem)/1.05 var(--serif); color: var(--encre); animation-delay: .55s; }
.intro__names span { white-space: nowrap; }
.intro__orn { margin-top: 14px; animation-delay: .8s; }
.intro__date { margin: 12px 0 34px; font: italic 400 1.2rem/1.4 var(--serif); color: var(--encre-soft); animation-delay: .95s; }
.intro__cta { animation-delay: 1.15s; }
.intro__sound { margin: 20px 0 2px; font-size: .86rem; color: var(--encre-soft); animation-delay: 1.35s; }
.intro__skip {
  min-height: 44px;
  padding: 0 1rem;
  border: 0;
  background: none;
  font: 400 .64rem/1 var(--caps);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--encre-faint);
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-color: var(--line);
  animation-delay: 1.5s;
}
.intro__candles {
  position: absolute;
  left: 50%; bottom: calc(18px + var(--safe-b));
  display: flex;
  align-items: flex-end;
  gap: 14px;
  transform: translateX(-50%);
  opacity: 0;
  animation: fadeIn 2s ease .8s forwards;
}
.intro.is-playing .intro__card, .intro.is-playing .intro__candles { opacity: 0; transition: opacity .8s ease; pointer-events: none; }

/* Monogramme dans son cartouche baroque */
.monogram { position: relative; display: grid; place-items: center; width: 118px; height: 118px; animation-delay: .1s; }
.monogram__frame { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.monogram__letters { font: 300 2.1rem/1 var(--serif); letter-spacing: .04em; color: var(--encre); }
.monogram__letters i { margin: 0 4px; font-size: .7em; color: var(--or); }

/* Le film */
.film { position: absolute; inset: 0; z-index: 2; background: var(--creme); animation: fadeIn .8s ease forwards; }
.film__video { width: 100%; height: 100%; object-fit: cover; }
.film__skip {
  position: absolute;
  right: calc(14px + env(safe-area-inset-right, 0px));
  bottom: calc(18px + var(--safe-b));
  min-height: 44px;
  padding: 0 1.1rem;
  border: 0;
  border-radius: 999px;
  font: 400 .66rem/1 var(--caps);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--encre);
  background: rgba(255, 253, 248, .7);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
/* La lumière du film se prolonge, puis s’efface sur la page */
.flash { position: fixed; inset: 0; z-index: 5; pointer-events: none; opacity: 0; background: radial-gradient(circle at 50% 45%, #fff, #fffdf8 40%, var(--creme)); }
.flash.is-on { animation: flash 2.4s var(--ease-soft) forwards; }

/* Bouton son */
.sound {
  position: fixed;
  top: calc(14px + var(--safe-t));
  right: calc(14px + env(safe-area-inset-right, 0px));
  z-index: 120;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border: 0;
  border-radius: 50%;
  color: var(--or);
  background: rgba(255, 253, 248, .75);
  box-shadow: inset 0 0 0 1px var(--line), 0 6px 20px -10px rgba(110, 85, 50, .5);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  animation: fadeIn 1s ease;
}
.sound .ico { width: 20px; height: 20px; }
.sound .ico--off { display: none; }
.sound[aria-pressed="false"] .ico--on { display: none; }
.sound[aria-pressed="false"] .ico--off { display: block; }
.sound[aria-pressed="true"] .ico--on { animation: note 2.6s ease-in-out infinite; }

/* Pétales (canvas fixe) */
.petals { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }
main, .footer { position: relative; z-index: 1; overflow-x: hidden; overflow-x: clip; }   /* halos et fleurs ne créent jamais de défilement horizontal */

/* ═════════════ 2. HERO ═════════════ */
.hero { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; isolation: isolate; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; z-index: -1; height: 120px; background: linear-gradient(transparent, var(--creme)); pointer-events: none; }
.hero__veil { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero__photo {
  /* La photo, en fond, vue à travers un voile de tulle */
  position: absolute; inset: -8%;
  background: center / cover no-repeat;
  filter: blur(26px) saturate(.55) sepia(.25) brightness(1.18);
  transform: scale(1.1);
  opacity: .55;
}
.hero__veil::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 50% 45%, rgba(255, 253, 248, .5), rgba(248, 242, 231, .8) 70%),
    linear-gradient(180deg, rgba(248, 242, 231, .35), rgba(248, 242, 231, .88) 80%, var(--creme));
}
.hero__veil::before {
  /* Un tulle brodé, à peine perceptible */
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: var(--lace-tulle) center / 84px;
  opacity: .12;
  -webkit-mask: linear-gradient(180deg, #000, transparent 75%);
  mask: linear-gradient(180deg, #000, transparent 75%);
}

/* Le drapé de soie qui couronne la page */
.drape { position: absolute; top: 0; left: 0; z-index: 3; width: 100%; height: clamp(128px, 30vw, 240px); pointer-events: none; overflow: visible; }
.drape__swag, .drape__tail, .drape__voile { transform-box: fill-box; }
.drape__swag--l { transform-origin: 0 0; animation: swayL 9s ease-in-out infinite; }
.drape__swag--r { transform-origin: 100% 0; animation: swayR 9s ease-in-out -4.5s infinite; }
.drape__tail--l { transform-origin: 0 0; animation: tail 11s ease-in-out infinite; }
.drape__tail--r { transform-origin: 100% 0; animation: tail 11s ease-in-out -5s infinite reverse; }
.drape__voile { transform-origin: 50% 0; animation: voile 13s ease-in-out infinite; }

.hero__inner {
  position: relative;
  display: grid;
  justify-items: center;
  gap: clamp(26px, 6vw, 44px);
  max-width: 1120px;
  margin: 0 auto;
  padding: calc(clamp(92px, 22vw, 190px) + var(--safe-t)) var(--gutter) 60px;
  text-align: center;
}
.arch { position: relative; width: min(72vw, 400px); margin: 0 0 22px; opacity: 0; }
.is-open .arch { animation: archIn 2.2s var(--ease-out) .3s forwards; }
.arch__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 50% 50% 12px 12px / 40% 40% 12px 12px;   /* plein cintre */
  overflow: hidden;
  background: var(--beige);
  box-shadow: 0 0 0 6px var(--papier), 0 0 0 7px var(--or-pale), 0 40px 70px -34px rgba(90, 68, 38, .55);
}
.arch::before {
  /* Second filet, décalé : la moulure de l’arche */
  content: "";
  position: absolute;
  inset: -16px;
  border: 1px solid var(--line);
  border-radius: 50% 50% 18px 18px / 40% 40% 18px 18px;
  pointer-events: none;
}
.arch__img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
  filter: sepia(.14) saturate(.9) brightness(1.05) contrast(.97);
  transform: scale(1.08);
}
.is-open .arch__img { transition: transform 9s var(--ease-out) .3s; transform: scale(1); }
.arch__frame::after {
  /* Lumière de bougie qui caresse la photo */
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(80% 60% at 50% 105%, rgba(255, 210, 140, .35), transparent 60%), linear-gradient(180deg, rgba(255, 250, 240, .12), transparent 30%);
  mix-blend-mode: soft-light;
  pointer-events: none;
}
.arch__flowers {
  position: absolute;
  bottom: -11%;
  z-index: 2;
  width: 64%;
  aspect-ratio: 360 / 300;
  background: center / cover no-repeat;
  filter: brightness(1.2) saturate(.9) contrast(1.04);   /* la pierre se fond dans le crème */
  -webkit-mask: radial-gradient(ellipse 52% 54% at 50% 62%, #000 38%, transparent 70%);
  mask: radial-gradient(ellipse 52% 54% at 50% 62%, #000 38%, transparent 70%);
  pointer-events: none;
}
.arch__flowers--l { left: -26%; background-image: url("../fleurs/angle-gauche.webp"); }
.arch__flowers--r { right: -26%; background-image: url("../fleurs/angle-droite.webp"); }

.hero__text { position: relative; z-index: 3; max-width: 32rem; }
.hero__text > * { opacity: 0; }
.is-open .hero__text > * { animation: rise 1.8s var(--ease-out) forwards; }
.is-open .hero__text > :nth-child(1) { animation-delay: .9s; }
.is-open .hero__text > :nth-child(2) { animation-delay: 1.1s; }
.is-open .hero__text > :nth-child(3) { animation-delay: 1.4s; }
.is-open .hero__text > :nth-child(4) { animation-delay: 1.55s; }
.is-open .hero__text > :nth-child(5) { animation-delay: 1.75s; }
.is-open .hero__text > :nth-child(6) { animation-delay: 1.95s; }
.hero__names { display: grid; margin: 0; font: 300 clamp(3rem, 14vw, 6.2rem)/.98 var(--serif); letter-spacing: -.005em; }
.hero__name { white-space: nowrap; }
.hero__amp { font: italic 300 .62em/1.1 var(--serif); color: var(--or); }
.hero__orn { margin-top: 16px; }
.hero__date { display: grid; gap: 6px; margin: 14px 0 0; font: italic 400 1.3rem/1.3 var(--serif); color: var(--encre-soft); }
.hero__date span { font: 400 .64rem/1 var(--caps); font-style: normal; letter-spacing: .34em; text-transform: uppercase; color: var(--or); }
.hero__cd {
  display: inline-grid;
  grid-template-columns: repeat(4, auto);
  margin: 24px 0 0;
  padding: 10px 6px 9px;
  border-radius: 16px;
  background: rgba(255, 253, 248, .72);
  box-shadow: inset 0 0 0 1px var(--line), 0 10px 24px -18px rgba(90, 68, 38, .5);
}
.hero__cd-u { display: grid; justify-items: center; gap: 3px; padding: 0 clamp(9px, 3.4vw, 16px); border-left: 1px solid var(--line); }
.hero__cd-u:first-child { border-left: 0; }
.hero__cd b { font: 400 1.4rem/1 var(--serif); color: var(--encre); font-variant-numeric: lining-nums tabular-nums; }
.hero__cd i { font: italic 400 .86rem/1 var(--serif); color: var(--encre-faint); }
.hero__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }

/* ═════════════ SECTIONS ═════════════ */
.section { position: relative; padding: clamp(78px, 12vw, 140px) var(--gutter); }
.section__head { max-width: 38rem; margin: 0 auto clamp(40px, 7vw, 64px); text-align: center; }

/* La carte de dentelle */
.card {
  position: relative;
  width: min(36rem, 100% - 30px);   /* place pour le galon de dentelle des flancs */
  margin: 0 auto;
  padding: clamp(14px, 3vw, 20px);
  background: var(--papier);
  box-shadow: 0 30px 70px -40px rgba(90, 68, 38, .45), 0 2px 0 rgba(255, 255, 255, .8) inset;
}
.card--lace::before, .card--lace::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 22px;
  background: var(--lace-trim) 0 0 / 48px 22px repeat-x;
  pointer-events: none;
}
.card--lace::before { top: -21px; transform: scaleY(-1); }
.card--lace::after { bottom: -21px; }
.card__inner {
  position: relative;
  padding: clamp(34px, 8vw, 60px) clamp(20px, 6vw, 52px);
  text-align: center;
  border: 1px solid var(--line);
  outline: 1px solid rgba(176, 143, 88, .14);
  outline-offset: 5px;
  background: linear-gradient(rgba(255, 253, 248, .92), rgba(255, 253, 248, .92)), var(--lace-tulle) center / 72px;
}
.card__flowers {
  position: absolute;
  z-index: 2;
  width: min(40vw, 230px);
  aspect-ratio: 360 / 300;
  background: center / cover no-repeat;
  filter: brightness(1.2) saturate(.9) contrast(1.04);   /* la pierre se fond dans le crème */
  -webkit-mask: radial-gradient(ellipse 58% 60% at 50% 60%, #000 40%, transparent 72%);
  mask: radial-gradient(ellipse 58% 60% at 50% 60%, #000 40%, transparent 72%);
  pointer-events: none;
}
.card__flowers--tl { top: -64px; left: -34px; background-image: url("../fleurs/angle-droite.webp"); transform: rotate(180deg) scaleX(-1); }
.card__flowers--br { bottom: -64px; right: -34px; background-image: url("../fleurs/angle-droite.webp"); }
.parents { display: grid; gap: 12px; margin-bottom: 26px; font: 400 1.2rem/1.35 var(--serif); }
.parents p { margin: 0; }
.parents span { display: block; font: 400 .6rem/1.8 var(--caps); letter-spacing: .3em; text-transform: uppercase; color: var(--encre-faint); }
.card__annonce { margin: 0 auto 18px; max-width: 22rem; font: italic 400 1.15rem/1.5 var(--serif); color: var(--encre-soft); }
.card__names { margin: 0; font: 300 clamp(2.4rem, 11vw, 3.8rem)/1.05 var(--serif); }
.card__orn { margin-bottom: 22px; }
.card__text { margin: 0 auto 14px; max-width: 28rem; font: 400 clamp(1.12rem, 4.4vw, 1.28rem)/1.7 var(--serif); color: var(--encre); }
.card__text em { color: var(--or); }

.quote { max-width: 30rem; margin: clamp(80px, 13vw, 120px) auto 0; text-align: center; }
.quote p { margin: 0; font: italic 300 clamp(1.6rem, 6.4vw, 2.3rem)/1.3 var(--serif); color: var(--encre); }
.quote p::before, .quote p::after { color: var(--or-pale); }
.quote p::before { content: "« "; }
.quote p::after { content: " »"; }
.quote cite { display: block; margin-top: 14px; font: 400 .62rem/1 var(--caps); font-style: normal; letter-spacing: .3em; text-transform: uppercase; color: var(--or); }

/* ═════════════ 4. LE PROGRAMME ═════════════ */
.steps { position: relative; max-width: 32rem; margin: 0 auto; padding: 0; list-style: none; }
.steps::before {
  content: "";
  position: absolute;
  left: 21px; top: 40px; bottom: 40px;
  width: 1px;
  background: linear-gradient(transparent, var(--or-pale) 10%, var(--or-pale) 90%, transparent);
}
.step { display: grid; grid-template-columns: 44px 1fr; gap: 20px; align-items: end; padding: 10px 0 28px; }
.step__candle { justify-self: center; --w: 16px; --h: 46px; margin-top: 40px; }
.step__candle:nth-child(1) { --h: 46px; }
.step:nth-child(2n) .step__candle { --h: 38px; }
.step:nth-child(3n) .step__candle { --h: 54px; }
.step__body { padding-bottom: 2px; }
.step__time { margin: 0 0 2px; font: 400 .7rem/1.4 var(--caps); letter-spacing: .26em; text-transform: uppercase; color: var(--or); }
.step__title { margin: 0; font: italic 400 clamp(1.55rem, 6vw, 1.9rem)/1.15 var(--serif); }
.step__text { margin: 4px 0 0; font-size: .97rem; color: var(--encre-soft); }
.step__text em { font-family: var(--serif); font-size: 1.1em; color: var(--encre); }

/* ═════════════ 5. LES DÉTAILS ═════════════ */
.ribbons { max-width: 40rem; margin: 0 auto; padding: 8px clamp(18px, 5vw, 36px); background: rgba(255, 253, 248, .75); box-shadow: inset 0 0 0 1px var(--line), 0 30px 60px -44px rgba(90, 68, 38, .5); }
.ribbon { border-top: 1px solid var(--line); }
.ribbon:first-child { border-top: 0; }
.ribbon__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding: 16px 0;
  cursor: pointer;
  list-style: none;
}
.ribbon__head::-webkit-details-marker { display: none; }
.ribbon__head > span { display: grid; gap: 2px; text-align: left; }
.ribbon__title { font: 400 1.5rem/1.2 var(--serif); }
.ribbon__sub { font-size: .84rem; color: var(--encre-faint); }
.ribbon__ico { width: 22px; height: 22px; color: var(--or); transition: transform .5s var(--ease-out); }
.ribbon[open] .ribbon__ico { transform: rotate(45deg); }
.ribbon__body { padding: 0 0 26px; }
.ribbon[open] .ribbon__body { animation: unfold .7s var(--ease-out); }
.ribbon__text { margin: 14px 0 0; color: var(--encre-soft); }
.ribbon__text--soft { font-size: .9rem; color: var(--encre-faint); }
.ribbon em { font-family: var(--serif); font-size: 1.1em; color: var(--encre); }
.place { padding: 14px 0; border-top: 1px dashed var(--line); }
.place:first-child { border-top: 0; padding-top: 0; }
.place__role { margin: 0; font: 400 .62rem/1.8 var(--caps); letter-spacing: .26em; text-transform: uppercase; color: var(--or); }
.place__name { margin: 2px 0 0; font: italic 400 1.45rem/1.25 var(--serif); }
.place__addr { margin: 0 0 6px; font-size: .9rem; color: var(--encre-faint); }
.place__note { margin: 0 0 12px; font-size: .95rem; color: var(--encre-soft); }
.place__links { display: flex; flex-wrap: wrap; gap: 10px; }
.swatches { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; max-width: 26rem; margin: 0; padding: 0; list-style: none; font-size: .72rem; line-height: 1.3; text-align: center; color: var(--encre-soft); }
.swatches li { display: grid; justify-items: center; align-content: start; gap: 6px; }
.swatches__dot { width: clamp(34px, 10vw, 44px); height: clamp(34px, 10vw, 44px); border-radius: 50%; background: radial-gradient(circle at 34% 30%, rgba(255, 255, 255, .8), transparent 45%), var(--c); box-shadow: inset 0 0 0 1px rgba(176, 143, 88, .35), 0 8px 18px -10px rgba(90, 68, 38, .5); }
.facts { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.facts li { display: grid; grid-template-columns: 24px 1fr; gap: 14px; }
.facts .ico { width: 22px; height: 22px; margin-top: 3px; color: var(--or); }
.facts li > span { display: grid; gap: 2px; }
.facts strong { font: italic 400 1.2rem/1.3 var(--serif); }
.facts li > span > span { font-size: .95rem; color: var(--encre-soft); }

/* ═════════════ 7. LA RÉPONSE ═════════════ */
.letter .card__inner, .letter__done .card__inner { text-align: left; }
.field { margin: 0 0 24px; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { display: block; margin: 0 0 8px; padding: 0; font: 400 .6rem/1.6 var(--caps); letter-spacing: .26em; text-transform: uppercase; color: var(--or); }
.field input[type="text"], .field textarea, .stepper input {
  width: 100%;
  min-height: 48px;
  padding: 10px 2px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  font: 400 1.2rem/1.4 var(--serif);
  color: var(--encre);
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .4s ease;
}
.field textarea { resize: vertical; min-height: 90px; }
.field input::placeholder, .field textarea::placeholder { color: #a99883; font-style: italic; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--or); box-shadow: 0 1px 0 var(--or); }
.field.is-invalid input { border-color: #b5584f; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice__opt { position: relative; display: block; margin: 0 !important; letter-spacing: normal !important; text-transform: none !important; }
.choice__opt input { position: absolute; opacity: 0; pointer-events: none; }
.choice__opt span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 10px 12px;
  border-radius: 999px;
  font: italic 400 1.15rem/1.2 var(--serif);
  text-align: center;
  color: var(--encre);
  background: var(--ivoire);
  box-shadow: inset 0 0 0 1px var(--line);
  cursor: pointer;
  transition: background .4s ease, box-shadow .4s ease;
}
.choice__opt input:focus-visible + span { outline: 2px solid var(--or); outline-offset: 2px; }
.choice__opt input:checked + span { background: linear-gradient(120deg, #f6ead2, #ead6ae); box-shadow: inset 0 0 0 1px var(--or), 0 8px 20px -12px rgba(150, 115, 60, .7); }
.letter__yes.is-hidden { display: none; }
.field--pair { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 640px) { .field--pair { grid-template-columns: 1fr 1fr; } }
.field label small { font-size: .9em; letter-spacing: .12em; text-transform: none; color: var(--encre-faint); }
.stepper { display: flex; align-items: center; gap: 8px; }
.stepper input { width: 48px; text-align: center; font-family: var(--sans); -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper__btn { width: 44px; height: 44px; border: 0; border-radius: 50%; font-size: 1.2rem; color: var(--encre); background: var(--ivoire); box-shadow: inset 0 0 0 1px var(--line); }
.letter__error { min-height: 1.4em; margin: -6px 0 14px; font-size: .92rem; color: #9b4a42; }
.letter__send { width: 100%; }
.letter__send[disabled] { opacity: .6; pointer-events: none; }
.letter__done .card__inner { display: grid; justify-items: center; text-align: center; }
.candle--done { --w: 22px; --h: 70px; margin-bottom: 18px; }
.letter__done-title { margin: 0 0 8px; font: italic 300 clamp(1.8rem, 7vw, 2.4rem)/1.15 var(--serif); }
.letter__done-text { margin: 0 auto 24px; max-width: 24rem; color: var(--encre-soft); }

/* ═════════════ 8. PIED DE PAGE ═════════════ */
.footer { padding: 70px var(--gutter) calc(110px + var(--safe-b)); text-align: center; }
.seal { display: inline-grid; place-items: center; width: 92px; height: 92px; padding: 0; border: 0; background: none; }
.seal__wax {
  display: grid;
  place-items: center;
  width: 82px; height: 82px;
  border-radius: 47% 53% 51% 49% / 50% 46% 54% 50%;
  background: radial-gradient(circle at 36% 30%, #f3e4c6, #d7bb87 46%, #b8975e 78%, #a3824b);
  box-shadow: 0 10px 22px -10px rgba(110, 80, 40, .7), inset 0 -3px 6px rgba(120, 90, 45, .45), inset 0 3px 5px rgba(255, 245, 220, .7);
  transition: transform .4s var(--ease-out);
}
.seal__wax span {
  display: grid;
  place-items: center;
  width: 58px; height: 58px;
  border-radius: 50%;
  font: italic 400 1.35rem/1 var(--serif);
  color: #8a6a37;
  text-shadow: 0 1px 0 rgba(255, 240, 210, .8), 0 -1px 0 rgba(110, 80, 40, .4);
  box-shadow: inset 0 0 0 1.5px rgba(138, 106, 55, .45), inset 0 2px 4px rgba(110, 80, 40, .35);
}
.seal:hover .seal__wax { transform: rotate(-4deg) scale(1.03); }
.seal.is-stamped .seal__wax { animation: stamp .7s var(--ease-out); }
.footer__date { margin: 14px 0 4px; font: 400 1rem/1.4 var(--caps); letter-spacing: .3em; color: var(--encre); }
.footer__places { margin: 0; font: italic 400 1.05rem/1.5 var(--serif); color: var(--encre-soft); }
.footer__orn { margin: 22px auto 28px; }
.promo { display: grid; justify-items: center; gap: 12px; margin: 0 auto 24px; }
.promo__q { margin: 0; font: italic 400 1.15rem/1.4 var(--serif); }
.footer__credit { margin: 0; font-size: .82rem; color: var(--encre-faint); }
.footer__credit a { color: var(--encre); text-underline-offset: 3px; text-decoration-color: var(--or-pale); }

/* Bouton « Répondre » collant */
.sticky-cta {
  position: fixed;
  left: 50%;
  bottom: calc(16px + var(--safe-b));
  z-index: 90;
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 28px;
  border-radius: 999px;
  font: 400 .7rem/1 var(--caps);
  letter-spacing: .26em;
  text-transform: uppercase;
  text-decoration: none;
  color: #3d3125;
  background: linear-gradient(120deg, #f1e3c6, #dcc293 48%, #eedcb8);
  box-shadow: 0 12px 30px -12px rgba(150, 115, 60, .7), inset 0 0 0 1px rgba(176, 143, 88, .35);
  transform: translate(-50%, 150%);
  opacity: 0;
  transition: transform .7s var(--ease-out), opacity .5s ease;
}
.sticky-cta.is-on { transform: translate(-50%, 0); opacity: 1; }

/* Effets : pétales de la réponse, colombes */
.fx { position: fixed; inset: 0; z-index: 110; pointer-events: none; overflow: hidden; }
.petal {
  position: absolute; top: 0; left: 0;
  width: var(--s, 14px); height: calc(var(--s, 14px) * 1.2);
  border-radius: 80% 0 80% 0;
  background: radial-gradient(circle at 30% 30%, #fffdf8, var(--c, #f6ead6) 70%);
  box-shadow: inset -1px -1px 2px rgba(176, 143, 88, .25);
  will-change: transform, opacity;
}
.dove { position: absolute; top: 0; left: 0; width: 64px; height: 40px; will-change: transform; }
.dove svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 6px 8px rgba(110, 85, 50, .25)); }
.dove__wing { transform-origin: 30px 22px; animation: flap .45s ease-in-out infinite alternate; }

.toast {
  position: fixed;
  left: 50%; top: calc(18px + var(--safe-t));
  z-index: 130;
  max-width: min(90vw, 26rem);
  padding: 12px 22px;
  border-radius: 999px;
  font: italic 400 1.05rem/1.3 var(--serif);
  text-align: center;
  color: var(--encre);
  background: rgba(255, 253, 248, .92);
  box-shadow: inset 0 0 0 1px var(--line), 0 14px 30px -16px rgba(90, 68, 38, .5);
  transform: translate(-50%, -160%);
  opacity: 0;
  transition: transform .6s var(--ease-out), opacity .4s ease;
  pointer-events: none;
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }

/* ═════════════ ANIMATIONS ═════════════ */
@keyframes rise { from { opacity: 0; transform: translateY(14px); filter: blur(5px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes bloom { from { opacity: 0; transform: translateY(20px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes archIn { from { opacity: 0; transform: translateY(24px) scale(.97); filter: blur(6px) brightness(1.3); } to { opacity: 1; transform: none; filter: none; } }
@keyframes sheen { 0%, 70% { background-position: -160% 0; } 100% { background-position: 260% 0; } }
@keyframes flash { 0% { opacity: 1; } 35% { opacity: 1; } 100% { opacity: 0; } }
@keyframes flicker {
  0%, 100% { transform: scale(1, 1) skewX(0); }
  18% { transform: scale(.95, 1.05) skewX(1.5deg); }
  36% { transform: scale(1.03, .96) skewX(-1deg); }
  52% { transform: scale(.97, 1.06) skewX(2deg); }
  70% { transform: scale(1.02, .98) skewX(-1.8deg); }
  86% { transform: scale(.98, 1.03) skewX(.6deg); }
}
@keyframes glow { 0%, 100% { opacity: .9; transform: scale(1); } 40% { opacity: 1; transform: scale(1.05); } 70% { opacity: .82; transform: scale(.97); } }
@keyframes smoke { 0% { opacity: 0; transform: translateY(0) scaleX(1); } 20% { opacity: .9; } 100% { opacity: 0; transform: translateY(-34px) scaleX(2.4) rotate(8deg); } }
@keyframes swayL { 0%, 100% { transform: rotate(0) scaleY(1); } 50% { transform: rotate(.5deg) scaleY(1.02); } }
@keyframes swayR { 0%, 100% { transform: rotate(0) scaleY(1); } 50% { transform: rotate(-.5deg) scaleY(1.02); } }
@keyframes tail { 0%, 100% { transform: skewX(0); } 50% { transform: skewX(1.6deg); } }
@keyframes voile { 0%, 100% { transform: scaleY(1); opacity: .55; } 50% { transform: scaleY(1.06); opacity: .7; } }
@keyframes unfold { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes note { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-2px) rotate(-6deg); } }
@keyframes stamp { 0% { transform: scale(1); } 35% { transform: scale(.86) rotate(-6deg); } 100% { transform: scale(1); } }
@keyframes flap { from { transform: scaleY(1); } to { transform: scaleY(-.4); } }

/* ═════════════ RESPONSIVE ═════════════ */
@media (min-width: 600px) {
  .step { grid-template-columns: 60px 1fr; }
  .steps::before { left: 29px; }
}

@media (min-width: 768px) {
  body { font-size: 18px; }
}

/* Desktop : l’arche à gauche, les prénoms à droite */
@media (min-width: 1024px) {
  /* L’arche et les prénoms forment un seul bloc, centré dans la page */
  .hero__inner { grid-template-columns: auto minmax(0, 28rem); justify-content: center; column-gap: clamp(56px, 7vw, 110px); align-items: center; min-height: 100vh; padding-top: 170px; text-align: center; }
  .arch { width: min(34vw, 430px); }
  .hero__text { width: 100%; max-width: none; }
  .card__flowers { width: 280px; }
  .card__flowers--tl { top: -90px; left: -110px; }
  .card__flowers--br { bottom: -90px; right: -110px; }
}

@media (max-width: 380px) {
  .kicker { letter-spacing: .2em; }
  .hero__ctas { gap: 8px; }
  .hero__ctas .btn { padding-inline: 1.25em; letter-spacing: .16em; }
  .choice { grid-template-columns: 1fr; }
}

/* Mouvement réduit : tout est là, immobile */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .reveal, .arch, .hero__text > *, .intro__card > * { opacity: 1 !important; transform: none !important; filter: none !important; }
  .petals { display: none; }
}

/* ═══════════════════════════════════════════════════════════════
   ORNEMENTS : napperons, coins baroques, perles, guirlandes
═══════════════════════════════════════════════════════════════ */
.doily, .corner, .arch__pearls, .arch__crest, .candle__lace { max-width: none; }
.doily { position: absolute; pointer-events: none; overflow: visible; transform-box: border-box; transform-origin: 50% 50%; }

/* Coins baroques */
.corner { position: absolute; z-index: 2; width: clamp(52px, 13vw, 84px); height: clamp(52px, 13vw, 84px); pointer-events: none; }
.corner--tl { top: 7px; left: 7px; }
.corner--tr { top: 7px; right: 7px; transform: scaleX(-1); }
.corner--bl { bottom: 7px; left: 7px; transform: scaleY(-1); }
.corner--br { bottom: 7px; right: 7px; transform: scale(-1, -1); }

/* Galon de dentelle sur les flancs des cartes */
.lace-side { position: absolute; top: 0; bottom: 0; width: 22px; background: var(--lace-trim-v) 0 0 / 22px 48px repeat-y; pointer-events: none; }
.lace-side--l { left: -21px; }
.lace-side--r { right: -21px; transform: scaleX(-1); }

/* Intro : coins du carton, napperon derrière le monogramme */
.intro__corners { position: absolute; inset: calc(20px + var(--safe-t)) 20px calc(20px + var(--safe-b)); pointer-events: none; }
.intro__corners .corner { width: clamp(64px, 18vw, 120px); height: clamp(64px, 18vw, 120px); top: auto; left: auto; right: auto; bottom: auto; }
.intro__corners .corner--tl { top: 0; left: 0; }
.intro__corners .corner--tr { top: 0; right: 0; }
.intro__corners .corner--bl { bottom: 0; left: 0; }
.intro__corners .corner--br { bottom: 0; right: 0; }
.monogram__doily { left: 50%; top: 50%; width: 180px; height: 180px; margin: -90px 0 0 -90px; opacity: .55; animation: spin 240s linear infinite; }

/* Titres : un napperon en filigrane */
.section__head { position: relative; isolation: isolate; }
.head-doily { left: 50%; top: 50%; z-index: -1; width: clamp(240px, 70vw, 340px); height: clamp(240px, 70vw, 340px); transform: translate(-50%, -50%); opacity: .3; }
.is-in .head-doily { animation: doilyIn 2.4s var(--ease-out) both; }

/* Arche : rang de perles et fleuron */
.arch__pearls { position: absolute; inset: -9px; z-index: 1; width: calc(100% + 18px); height: calc(100% + 18px); overflow: visible; pointer-events: none; }
.arch__pearls path { fill: none; stroke: #e2cfa6; stroke-width: 3.4; stroke-linecap: round; stroke-dasharray: 0 7.5; filter: drop-shadow(0 1px 1px rgba(140, 105, 55, .35)); }
.arch__crest { position: absolute; left: 50%; top: -38px; z-index: 2; width: 72%; height: 30px; transform: translateX(-50%); overflow: visible; }

/* Guirlandes de roses qui tombent du drapé */
.hero__garland {
  position: absolute;
  top: clamp(40px, 10vw, 110px);
  z-index: 2;
  width: clamp(58px, 13vw, 150px);
  height: min(74vh, 700px);
  background: url("../fleurs/guirlande.webp") 40% 0 / cover no-repeat;
  filter: brightness(1.2) saturate(.9) contrast(1.04);
  -webkit-mask: linear-gradient(180deg, transparent, #000 10%, #000 64%, transparent), linear-gradient(90deg, #000 55%, transparent);
  -webkit-mask-composite: source-in;
  mask: linear-gradient(180deg, transparent, #000 10%, #000 64%, transparent), linear-gradient(90deg, #000 55%, transparent);
  mask-composite: intersect;
  transform-origin: 50% 0;
  animation: garland 10s ease-in-out infinite;
  pointer-events: none;
}
.hero__garland--l { left: -6px; }
.hero__garland--r { right: -6px; transform: scaleX(-1); animation-name: garlandR; animation-delay: -5s; }

/* Citation : croissant de roses */
.quote { position: relative; }
.quote__flowers { display: flex; justify-content: center; margin: 0 auto 6px; }
.quote__flowers span {
  width: clamp(120px, 34vw, 170px);
  aspect-ratio: 360 / 300;
  background: center / cover no-repeat;
  filter: brightness(1.2) saturate(.9) contrast(1.04);
  -webkit-mask: radial-gradient(ellipse 60% 44% at 50% 62%, #000 34%, transparent 70%);
  mask: radial-gradient(ellipse 60% 44% at 50% 62%, #000 34%, transparent 70%);
}
/* Deux grappes qui se croisent : une seule gerbe, inclinée de part et d’autre */
.quote__flowers span:first-child { position: relative; z-index: 1; background-image: url("../fleurs/angle-droite.webp"); transform: scaleX(-1) rotate(-16deg); margin-right: -72px; }
.quote__flowers span:last-child { background-image: url("../fleurs/angle-gauche.webp"); transform: rotate(-16deg) scaleX(-1); }

/* Détails : cadre à coins baroques (les volutes ne touchent jamais le texte) */
.ribbons { position: relative; padding: 42px clamp(28px, 8vw, 44px) 36px; }
.ribbons .corner { width: 46px; height: 46px; }

/* Bougies posées sur un petit napperon */
.candle__lace { position: absolute; left: 50%; bottom: calc(var(--w) * -1.6); z-index: -1; width: calc(var(--w) * 3.2); height: calc(var(--w) * 3.2); margin-left: calc(var(--w) * -1.6); transform: scaleY(.3); opacity: .9; overflow: visible; pointer-events: none; }
.candle { isolation: isolate; }

/* Sceau sur napperon */
.seal { position: relative; isolation: isolate; }
.seal__doily { left: 50%; top: 50%; z-index: -1; width: 170px; height: 170px; margin: -85px 0 0 -85px; opacity: .6; animation: spin 200s linear infinite; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes doilyIn { from { opacity: 0; transform: translate(-50%, -50%) scale(.85) rotate(-20deg); } to { opacity: .3; transform: translate(-50%, -50%); } }
@keyframes garland { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(1.2deg); } }
@keyframes garlandR { 0%, 100% { transform: scaleX(-1) rotate(0); } 50% { transform: scaleX(-1) rotate(1.2deg); } }

@media (min-width: 1024px) {
  .hero__garland { width: 150px; }
}
@media (prefers-reduced-motion: reduce) {
  .head-doily { opacity: .3; }
}

/* ═════════════ AGENDA (sous le programme) ═════════════ */
.agenda { max-width: 32rem; margin: 30px auto 0; padding-top: 30px; text-align: center; border-top: 1px solid var(--line); }
.agenda__label { margin: 0 0 14px; font: italic 400 1.25rem/1.3 var(--serif); color: var(--encre-soft); }
.agenda__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* ═════════════ FILM : générique dans les bandes (portrait) ═════════════ */
.film__credits { display: none; }
@media (max-aspect-ratio: 4/5) {
  .film__credits {
    position: absolute;
    left: 0; right: 0;
    z-index: 1;
    display: grid;
    justify-items: center;
    padding: 0 var(--gutter);
    text-align: center;
    color: var(--encre);
    opacity: 0;
    pointer-events: none;
  }
  .film__credits--top { top: calc(5vh + var(--safe-t)); }
  .film__credits--bottom { bottom: calc(9vh + var(--safe-b)); }
  .film.is-rolling .film__credits { animation: credits 4.6s var(--ease-soft) forwards; }
  .film.is-rolling .film__credits--bottom { animation-delay: .25s; }
}
.film__credits::before {
  /* Un halo crème derrière le texte : lisible sur le flou */
  content: "";
  position: absolute;
  inset: -30px -10px;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(255, 253, 248, .78), rgba(255, 253, 248, 0));
}
.monogram--film { width: 84px; height: 84px; }
.monogram--film .monogram__letters { font-size: 1.5rem; }
.film__names { margin: 10px 0 0; font: 300 clamp(1.9rem, 9vw, 2.6rem)/1.05 var(--serif); }
.film__orn { width: min(200px, 56vw); margin-top: 0; }
.film__date { margin: 10px 0 2px; font: italic 400 1.2rem/1.3 var(--serif); color: var(--encre-soft); }
.film__hint { margin: 0; font: 400 .6rem/1.6 var(--caps); letter-spacing: .34em; text-transform: uppercase; color: var(--or); }
@keyframes credits {
  0% { opacity: 0; transform: translateY(10px); filter: blur(4px); }
  18%, 62% { opacity: 1; transform: none; filter: none; }
  100% { opacity: 0; transform: translateY(-6px); filter: blur(3px); }
}

/* ═════════════ LE LIVRE D’OR ═════════════ */
.book { display: grid; gap: clamp(46px, 9vw, 64px); max-width: 64rem; margin: 0 auto; }
.book__write .card__inner { text-align: left; }
.book__intro { margin: 0 0 24px; font: italic 400 1.15rem/1.5 var(--serif); text-align: center; color: var(--encre-soft); }
.book__count { float: right; letter-spacing: .1em; color: var(--encre-faint); }
.book__write .letter__send { gap: .7em; padding-inline: 1.2em; letter-spacing: .16em; white-space: nowrap; }
.book__write .letter__send .ico { width: 18px; height: 18px; }
.book__entries { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; }
.entry {
  position: relative;
  padding: 26px 26px 22px;
  background: rgba(255, 253, 248, .85);
  box-shadow: inset 0 0 0 1px var(--line), 0 20px 40px -32px rgba(90, 68, 38, .5);
  text-align: center;
}
.entry::before {
  /* Petit galon de dentelle en tête de chaque page */
  content: "";
  position: absolute;
  left: 18px; right: 18px; top: -11px;
  height: 11px;
  background: var(--lace-trim) 0 0 / 24px 11px repeat-x;
  transform: scaleY(-1);
}
.entry__text { margin: 0 0 12px; font: italic 400 1.2rem/1.55 var(--serif); color: var(--encre); white-space: pre-line; overflow-wrap: anywhere; }
.entry__name { margin: 0; font: 400 .66rem/1.6 var(--caps); letter-spacing: .26em; text-transform: uppercase; color: var(--or); }
.entry__date { display: block; margin-top: 2px; font: italic 400 .9rem/1.3 var(--serif); letter-spacing: 0; text-transform: none; color: var(--encre-faint); }
.entry__orn { width: 120px; margin: 0 auto 10px; }
.entry--couple { background: linear-gradient(180deg, rgba(255, 249, 236, .95), rgba(255, 253, 248, .9)); }
.entry.is-new { animation: inked 1.6s var(--ease-out); }
@keyframes inked { from { opacity: 0; transform: translateY(14px); filter: blur(6px) brightness(1.2); } to { opacity: 1; transform: none; filter: none; } }

@media (min-width: 1024px) {
  .book { grid-template-columns: minmax(0, 30rem) minmax(0, 1fr); align-items: start; }
  .book__entries { grid-template-columns: 1fr 1fr; align-content: start; }
  .entry--couple { grid-column: 1 / -1; }
  .book__write { position: sticky; top: 90px; width: 100%; }
}
