/* =========================================================
   Inès & Gabriel — invitation digitale
   DA : vert forêt & or
   ========================================================= */
:root {
  --g950: #050f0b;
  --g900: #0a1e16;
  --g850: #0d261c;
  --g800: #113024;
  --g700: #183f2f;
  --ivory: #f5efe1;
  --ivory-2: #ece2cb;
  --gold: #c8a25a;
  --gold-l: #ecd59a;
  --gold-d: #8f6d2f;
  --ink: #15261e;
  --ink-soft: #52615a;
  --gold-grad: linear-gradient(105deg, #8f6d2f 0%, #d6b267 20%, #f7e8b8 36%, #c79e52 52%, #efd99f 70%, #9b7a3a 100%);
  --serif: "Cormorant Garamond", Georgia, serif;
  --script: "Pinyon Script", "Snell Roundhand", cursive;
  --caps: "Cinzel", "Trajan Pro", serif;
  --sans: "Jost", system-ui, sans-serif;
  --col: 480px;
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23c8a25a' stroke-opacity='.09' stroke-width='1'%3E%3Cpath d='M32 8L39 32L32 56L25 32Z'/%3E%3Ccircle cx='32' cy='32' r='3'/%3E%3Cpath d='M0 0L7 7M64 0L57 7M0 64L7 57M64 64L57 57'/%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  background: var(--g950);
  scrollbar-width: none;
}
html::-webkit-scrollbar { display: none; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
html.is-locked, html.is-locked body { overflow: hidden; }

body {
  font-family: var(--serif);
  color: var(--ink);
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(34, 85, 63, .35), transparent 70%),
    var(--pattern),
    var(--g950);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

img, svg { display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; }

.svg-lib { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- typographie ---------- */
.eyebrow {
  font-family: var(--caps);
  font-size: 11px;
  letter-spacing: .36em;
  text-transform: uppercase;
  color: var(--gold-d);
  padding-left: .36em;
}
.sec--green .eyebrow { color: var(--gold); }
.eyebrow--sm { font-size: 10px; margin-top: 56px; }

.script-title {
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(54px, 15vw, 70px);
  line-height: 1.15;
  color: var(--gold-d);
  margin: 6px auto 4px;
  padding: 0 .12em;
  width: fit-content;
}

.gold-text {
  background: var(--gold-grad);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.shimmer { animation: shimmer 7s linear infinite; }
@keyframes shimmer { from { background-position: 0% 0; } to { background-position: -220% 0; } }

.lead { font-size: 20px; line-height: 1.55; max-width: 34ch; margin: 18px auto 0; }
.lead--italic { font-style: italic; color: var(--gold-d); }
.small { font-family: var(--sans); font-size: 13px; font-weight: 300; letter-spacing: .02em; line-height: 1.6; }
.muted { opacity: .7; margin-top: 22px; }
.hint { font-style: italic; font-size: 17px; opacity: .8; margin-top: 4px; }

.orn { width: 170px; height: 18px; margin: 14px auto; color: var(--gold); }
.orn--sm { width: 120px; height: 14px; margin: 10px auto; }

/* ---------- page ---------- */
.page {
  position: relative;
  max-width: var(--col);
  margin: 0 auto;
  background: var(--ivory);
  box-shadow: 0 0 0 1px rgba(200, 162, 90, .12), 0 0 120px rgba(0, 0, 0, .6);
  overflow-x: clip;
}

.sec { position: relative; padding: 92px 26px 110px; text-align: center; }
.sec--ivory {
  background: var(--ivory);
  color: var(--ink);
}
.sec--green {
  background: var(--g850);
  color: var(--ivory);
}
.sec--green::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--pattern);
  opacity: .7;
  pointer-events: none;
}
.sec > * { position: relative; z-index: 1; }

.sep { position: absolute; left: 0; top: -39px; width: 100%; height: 40px; z-index: 2; }
.sec--ivory .sep { fill: var(--ivory); }
.sec--green .sep { fill: var(--g850); }
.final .sep { fill: var(--g900); }

/* =========================================================
   OUVERTURE — vidéo lue image par image au scroll
   ========================================================= */
.intro {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: #0b1a13 url("assets/opening/frame_0001.webp") center / cover no-repeat;
  cursor: pointer;
}
.cinema { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.intro-shade {
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 15, 11, .78) 0%, rgba(5, 15, 11, .2) 26%, transparent 45%),
    linear-gradient(0deg, rgba(5, 15, 11, .85) 0%, rgba(5, 15, 11, .25) 22%, transparent 40%);
}
.intro-ui {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center;
  padding: calc(44px + env(safe-area-inset-top)) 24px calc(34px + env(safe-area-inset-bottom));
  text-align: center;
  pointer-events: none;
}
.intro-names {
  font-family: var(--caps);
  font-size: 14px;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--gold-l);
  padding-left: .34em;
}
.intro-names i { font-family: var(--script); font-style: normal; text-transform: none; letter-spacing: 0; font-size: 26px; color: var(--gold); margin: 0 .1em; }
.intro-date { font-family: var(--caps); font-size: 11px; letter-spacing: .34em; color: var(--gold); margin-top: 6px; opacity: .85; }
.intro-hint {
  margin-top: auto;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-style: italic; font-size: 17px;
  color: var(--ivory);
  pointer-events: auto;
}
.intro-hint > span { transition: opacity .6s; }
.intro-ready { display: none; animation: blink 2.4s ease-in-out infinite; }
.intro-loading { opacity: .75; }
.intro-loading b { font-style: normal; font-weight: 400; font-family: var(--sans); font-size: 12px; margin-left: 8px; color: var(--gold-l); }
.intro.is-ready .intro-loading { display: none; }
.intro.is-ready .intro-ready { display: block; }
.intro-hint i { position: relative; width: 1px; height: 44px; background: rgba(200, 162, 90, .3); overflow: hidden; }
.intro-hint i::after {
  content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 14px;
  background: var(--gold-l);
  animation: drip 2s cubic-bezier(.6, 0, .4, 1) infinite;
}
@keyframes drip { from { transform: translateY(-14px); } to { transform: translateY(44px); } }
@keyframes blink { 50% { opacity: .35; } }
.intro-flash {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 75% 50% at 50% 45%, #fffaf0 0%, var(--ivory) 100%);
  opacity: 0;
  pointer-events: none;
}

/* =========================================================
   HERO (ivoire, prolonge la lumière du flash)
   ========================================================= */
.hero {
  position: relative;
  z-index: 3;
  margin-top: -3px;
  padding: 3px 24px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  color: var(--ink);
  background: var(--ivory);
}
.intro-end {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 0 24px;
  pointer-events: none;
}
.intro-end .eyebrow { color: var(--gold-d); margin-bottom: 8px; }
.intro-end .orn { color: var(--gold-d); margin-top: 18px; }
.js-anim .intro-end > * { opacity: 0; }
.gold-text--deep { background-image: linear-gradient(105deg, #7a5a24 0%, #b88f45 22%, #d9b56a 38%, #8f6d2f 55%, #c8a25a 72%, #7a5a24 100%); }
.names { font-weight: 400; display: flex; flex-direction: column; align-items: center; line-height: .9; }
.name { font-family: var(--script); font-size: clamp(60px, 17vw, 80px); padding: 0 .15em .08em; }
.amp { font-family: var(--serif); font-style: italic; font-size: 30px; color: var(--gold-d); margin: -4px 0 -2px; }
.arch {
  position: relative;
  width: min(74%, 300px);
  aspect-ratio: 3 / 4;
  padding: 7px;
  margin-top: 10px;
  border: 1px solid var(--gold);
  border-radius: 999px 999px 6px 6px;
}
.arch::before {
  content: "";
  position: absolute; inset: -9px;
  border: 1px solid rgba(143, 109, 47, .35);
  border-radius: 999px 999px 8px 8px;
}
.arch-inner {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 999px 999px 3px 3px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #0e2d21, #1d533e);
}
.arch-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; z-index: 2; will-change: transform; }
.arch-mono { position: relative; font-family: var(--script); font-size: 86px; line-height: 1; padding: 0 .1em; }
.arch-mono i { font-style: normal; font-size: .5em; vertical-align: .45em; margin: 0 .22em 0 .12em; }
.hero-date { font-family: var(--caps); font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-d); padding-left: .3em; margin-top: 8px; }
.hero-date span { color: var(--gold); margin: 0 .3em; }
.hero .eyebrow { color: var(--gold-d); }
.invite { padding-top: 40px; }

/* =========================================================
   INVITATION
   ========================================================= */
.signature { font-family: var(--script); font-size: 40px; color: var(--gold-d); margin-top: 22px; }
.deco-branch { position: absolute !important; right: -40px; bottom: 30px; width: 200px; height: 64px; color: var(--gold); opacity: .35; z-index: 0 !important; transform: rotate(-12deg); }

/* =========================================================
   DATE
   ========================================================= */
.scratch-row { display: flex; justify-content: center; gap: 12px; margin: 30px 0 8px; }
.scratch {
  position: relative;
  width: 92px; height: 118px;
  border-radius: 46px 46px 6px 6px;
  background: radial-gradient(ellipse at 50% 30%, #fffaf0, var(--ivory) 60%, var(--ivory-2));
  color: var(--ink);
  display: grid; place-items: center;
  box-shadow: 0 0 0 1px var(--gold), 0 0 0 4px var(--g850), 0 0 0 5px rgba(200, 162, 90, .4), 0 14px 30px rgba(0, 0, 0, .35);
  overflow: hidden;
  isolation: isolate;
}
.scratch-val { font-family: var(--serif); font-size: 30px; font-weight: 500; color: var(--gold-d); padding-top: 14px; }
.scratch canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  touch-action: none;
  cursor: grab;
}
.scratch.is-done canvas { pointer-events: none; }
.link-btn {
  font-family: var(--sans); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(200, 162, 90, .5);
  opacity: .65; padding: 10px;
}
.link-btn:hover { opacity: 1; }

.calendar {
  margin: 40px auto 0;
  max-width: 330px;
  padding: 24px 18px 20px;
  border: 1px solid rgba(200, 162, 90, .35);
  border-radius: 160px 160px 6px 6px;
  padding-top: 60px;
}
.cal-title { font-family: var(--script); font-size: 46px; color: var(--gold-l); line-height: 1; }
.cal-title span { font-family: var(--caps); font-size: 13px; letter-spacing: .3em; color: var(--gold); vertical-align: middle; margin-left: 6px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px 0; margin-top: 18px; font-family: var(--sans); font-size: 14px; font-weight: 300; }
.cal-grid .dow { font-family: var(--caps); font-size: 10px; color: var(--gold); padding-bottom: 8px; letter-spacing: .1em; }
.cal-grid .d { height: 34px; display: grid; place-items: center; position: relative; opacity: .85; }
.cal-grid .d.is-day { color: var(--g900); font-weight: 500; opacity: 1; }
.cal-grid .d.is-day::before {
  content: "";
  position: absolute;
  width: 34px; height: 34px;
  z-index: -1;
  background: var(--gold-grad);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M16 29S2 20.5 2 11a7 7 0 0 1 14-2 7 7 0 0 1 14 2c0 9.5-14 18-14 18z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M16 29S2 20.5 2 11a7 7 0 0 1 14-2 7 7 0 0 1 14 2c0 9.5-14 18-14 18z'/%3E%3C/svg%3E") center / contain no-repeat;
  animation: beat 1.8s ease-in-out infinite;
}
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.15); } 30% { transform: scale(1); } 45% { transform: scale(1.1); } }

.countdown { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.countdown div {
  width: 74px; padding: 14px 0 12px;
  border: 1px solid rgba(200, 162, 90, .35);
  border-radius: 38px 38px 4px 4px;
  background: rgba(0, 0, 0, .12);
}
.countdown b { display: block; font-family: var(--serif); font-weight: 500; font-size: 30px; color: var(--gold-l); font-variant-numeric: tabular-nums; }
.countdown span { font-family: var(--caps); font-size: 8.5px; letter-spacing: .2em; text-transform: uppercase; opacity: .7; }

/* =========================================================
   PROGRAMME
   ========================================================= */
.tl-wrap { position: relative; margin-top: 34px; }
.tl-line { position: absolute; left: 50%; top: 24px; bottom: 24px; width: 1px; margin-left: -.5px; background: rgba(143, 109, 47, .2); }
.tl-fill { position: absolute; inset: 0; background: linear-gradient(180deg, var(--gold-l), var(--gold), var(--gold-d)); transform-origin: 50% 0; transform: scaleY(0); }
.timeline { list-style: none; position: relative; }
.tl-item {
  display: grid;
  grid-template-columns: 1fr 58px 1fr;
  align-items: center;
  padding: 16px 0;
}
.tl-item > * { grid-row: 1; }
.tl-time { grid-column: 1; text-align: right; padding-right: 12px; font-family: var(--serif); font-style: italic; font-size: 26px; color: var(--gold-d); }
.tl-icon {
  grid-column: 2;
  justify-self: center;
  width: 50px; height: 50px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ivory);
  border: 1px solid rgba(143, 109, 47, .35);
  color: var(--gold-d);
  transition: background .6s, border-color .6s, color .6s, box-shadow .6s, transform .6s cubic-bezier(.3, 1.6, .5, 1);
}
.tl-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.tl-item.is-on .tl-icon { background: var(--g800); border-color: var(--gold); color: var(--gold-l); box-shadow: 0 0 0 6px rgba(200, 162, 90, .14); transform: scale(1.08); }
.tl-body { grid-column: 3; text-align: left; padding-left: 12px; }
.tl-body h3 { font-family: var(--caps); font-weight: 500; font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; }
.tl-body p { font-size: 16px; line-height: 1.35; color: var(--ink-soft); margin-top: 4px; }
.tl-item:nth-child(even) .tl-time { grid-column: 3; text-align: left; padding: 0 0 0 12px; }
.tl-item:nth-child(even) .tl-body { grid-column: 1; text-align: right; padding: 0 12px 0 0; }

/* =========================================================
   LIEU
   ========================================================= */
.venue { position: relative; margin: 26px auto 10px; max-width: 360px; }
.venue-photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 180px 180px 6px 6px; box-shadow: 0 0 0 1px var(--gold), 0 0 0 7px var(--g850), 0 0 0 8px rgba(200,162,90,.4), 0 24px 50px rgba(0,0,0,.4); margin: 0 auto 6px; width: 86%; }
.venue-photo img { width: 100%; height: 118%; object-fit: cover; display: block; will-change: transform; }
.venue-photo + .chateau { display: none; }
.chateau { width: 100%; height: auto; color: var(--gold); }
.venue-name { font-family: var(--caps); font-weight: 400; font-size: 19px; letter-spacing: .14em; color: var(--gold-l); margin-top: 18px; }
.venue-addr { font-size: 18px; line-height: 1.5; margin-top: 8px; opacity: .85; }
.btn-row { display: flex; justify-content: center; gap: 10px; margin-top: 24px; flex-wrap: wrap; }

.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 26px;
  font-family: var(--caps); font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.btn:active { transform: scale(.97); }
.btn--gold { background: var(--gold-grad); background-size: 160% 100%; color: var(--g900); box-shadow: 0 8px 22px rgba(143, 109, 47, .35); }
.btn--gold::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .6), transparent);
  transform: skewX(-20deg);
  animation: sweep 3.8s ease-in-out infinite;
}
@keyframes sweep { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.btn--line { border: 1px solid var(--gold); color: var(--gold-l); }
.sec--ivory .btn--line { color: var(--gold-d); }
.btn--block { width: 100%; margin-top: 8px; }

.map { position: relative; margin: 26px auto 0; height: 220px; border-radius: 6px; overflow: hidden; box-shadow: 0 0 0 1px rgba(200, 162, 90, .5); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.35) sepia(.25) contrast(.95); }
.map-shield {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 14px;
  font-family: var(--sans); font-size: 12px; letter-spacing: .08em;
  color: var(--ivory);
  background: linear-gradient(180deg, transparent 55%, rgba(10, 30, 22, .75));
}

/* =========================================================
   DRESS CODE
   ========================================================= */
.swatches { display: flex; justify-content: center; gap: 6px; margin-top: 30px; flex-wrap: wrap; }
.swatches figure { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 58px; }
.swatches span {
  width: 46px; height: 46px; border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .45), transparent 42%),
    radial-gradient(circle at 70% 80%, rgba(0, 0, 0, .25), transparent 55%),
    var(--c);
  box-shadow: 0 0 0 1px rgba(143, 109, 47, .45), 0 0 0 4px var(--ivory), 0 0 0 5px rgba(143, 109, 47, .25), 0 10px 18px rgba(0, 0, 0, .18);
}
.swatches figcaption { font-family: var(--caps); font-size: 8.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }

/* =========================================================
   DÉTAILS
   ========================================================= */
.cards { display: grid; gap: 14px; margin-top: 30px; }
.card {
  padding: 26px 22px 24px;
  border: 1px solid rgba(200, 162, 90, .35);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(0, 0, 0, .1));
}
.card svg { width: 34px; height: 34px; margin: 0 auto 12px; fill: none; stroke: var(--gold); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-family: var(--caps); font-weight: 400; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-l); }
.card p { font-size: 17px; line-height: 1.5; margin-top: 8px; opacity: .85; }
.card b { color: var(--gold-l); font-weight: 600; letter-spacing: .05em; }

/* =========================================================
   RSVP
   ========================================================= */
.rsvp-card {
  position: relative;
  margin-top: 28px;
  padding: 34px 22px 28px;
  text-align: left;
  color: var(--ivory);
  background:
    radial-gradient(ellipse 70% 260px at 50% 0%, rgba(200, 162, 90, .18), transparent 100%),
    var(--pattern),
    var(--g850);
  border-radius: 999px 999px 6px 6px;
  padding-top: 40px;
  box-shadow: 0 0 0 1px var(--gold), 0 0 0 7px var(--ivory), 0 0 0 8px rgba(143, 109, 47, .35), 0 30px 60px rgba(13, 38, 28, .3);
}
.rsvp-card::before {
  content: "";
  position: absolute; inset: 9px 9px auto;
  height: 220px;
  border: 1px solid rgba(200, 162, 90, .35);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  pointer-events: none;
  -webkit-mask: linear-gradient(#000 55%, transparent);
          mask: linear-gradient(#000 55%, transparent);
}
.rsvp-head { text-align: center; margin-bottom: 30px; }
.rsvp-seal { width: 58px; height: 58px; margin: 0 auto 14px; overflow: visible; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .45)); }
.rsvp-head .eyebrow { color: var(--gold); font-size: 10px; }
.rsvp-head-title { font-family: var(--script); font-size: 42px; line-height: 1.15; color: var(--gold-l); margin-top: 2px; }
.rsvp-head .orn { width: 140px; margin: 8px auto 0; }
.field { display: block; border: 0; margin-bottom: 22px; }
.field > span, .field legend {
  display: block;
  font-family: var(--caps); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.field input[type="text"], .field textarea {
  width: 100%;
  font: 400 18px var(--serif);
  color: var(--ivory);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(200, 162, 90, .45);
  padding: 8px 2px;
  border-radius: 0;
  outline: none;
  resize: vertical;
  transition: border-color .3s;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(245, 239, 225, .35); font-style: italic; }
.field input:focus, .field textarea:focus { border-color: var(--gold-l); }

.pills { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pills--3 { grid-template-columns: repeat(3, 1fr); }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 46px; padding: 6px 8px;
  border: 1px solid rgba(200, 162, 90, .45);
  border-radius: 2px;
  font-size: 16px;
  transition: background .3s, color .3s, border-color .3s;
}
.pill input:checked + span { background: var(--gold-grad); background-size: 160% 100%; color: var(--g900); border-color: transparent; font-weight: 600; }
.pill input:focus-visible + span { outline: 2px solid var(--gold-l); outline-offset: 2px; }

.stepper { display: flex; align-items: center; gap: 0; width: fit-content; border: 1px solid rgba(200, 162, 90, .45); }
.stepper button { width: 46px; height: 44px; font-size: 22px; color: var(--gold-l); transition: background .2s; }
.stepper button:active { background: rgba(200, 162, 90, .2); }
.stepper output { width: 52px; text-align: center; font-size: 22px; border-left: 1px solid rgba(200, 162, 90, .45); border-right: 1px solid rgba(200, 162, 90, .45); line-height: 44px; }

.if-yes { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .5s ease, opacity .4s; }
.if-yes > * { min-height: 0; }
.if-yes-inner { overflow: hidden; }
.if-yes.is-hidden { grid-template-rows: 0fr; opacity: 0; }

.form-error { color: #f1b9a8; font-style: italic; margin: -6px 0 12px; }
.btn.is-loading span { opacity: .4; }

.rsvp-done { text-align: center; padding: 20px 0 10px; }
.check { width: 72px; height: 72px; margin: 0 auto 16px; fill: none; stroke: var(--gold-l); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.check circle { stroke-dasharray: 151; stroke-dashoffset: 151; }
.check path { stroke-dasharray: 36; stroke-dashoffset: 36; }
.rsvp-done.is-shown .check circle { animation: dash .9s ease forwards; }
.rsvp-done.is-shown .check path { animation: dash .5s .7s ease forwards; }
@keyframes dash { to { stroke-dashoffset: 0; } }
.rsvp-done-title { font-family: var(--script); font-size: 54px; color: var(--gold-l); line-height: 1.1; }
.rsvp-done-text { font-size: 18px; opacity: .85; margin-bottom: 10px; }

/* =========================================================
   CONTACT — enveloppe
   ========================================================= */
.mail { position: relative; width: 300px; height: 210px; margin: 170px auto 0; }
.mail-back { position: absolute; inset: 0; background: #0a2018; border-radius: 4px; box-shadow: 0 30px 50px rgba(0, 0, 0, .45); }
.mail-flap {
  position: absolute; left: 0; right: 0; bottom: 100%;
  height: 120px;
  background: linear-gradient(0deg, #0a2018, #0f2c21);
  clip-path: polygon(0 100%, 50% 0, 100% 100%);
}
.mail-card {
  position: absolute; left: 16px; right: 16px; top: 14px;
  height: 230px;
  padding: 22px 16px;
  background: radial-gradient(ellipse at 50% 0%, #fffaf0, var(--ivory) 60%, var(--ivory-2));
  color: var(--ink);
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(143, 109, 47, .3), 0 -4px 20px rgba(0, 0, 0, .25);
  will-change: transform;
}
.mail-card .orn { color: var(--gold-d); }
.mail-who { font-family: var(--script); font-size: 30px; line-height: 1.1; color: var(--gold-d); }
.mail-who small { display: block; font-family: var(--caps); font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }
.mail-card a { font-family: var(--sans); font-size: 15px; letter-spacing: .06em; text-decoration: none; display: inline-block; margin-top: 4px; border-bottom: 1px solid rgba(143, 109, 47, .4); }
.mail-front {
  position: absolute; inset: 0;
  z-index: 3;
  background:
    var(--pattern),
    linear-gradient(180deg, #164233, #0f3024);
  clip-path: polygon(0 0, 50% 44%, 100% 0, 100% 100%, 0 100%);
  border-radius: 0 0 4px 4px;
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 22px;
}
.mail-front::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom right, transparent 49.6%, rgba(200,162,90,.45) 50%, transparent 50.4%),
              linear-gradient(to bottom left, transparent 49.6%, rgba(200,162,90,.45) 50%, transparent 50.4%);
  background-size: 50% 88%;
  background-position: 0 0, 100% 0;
  background-repeat: no-repeat;
}
.mail-front span { position: relative; font-family: var(--script); font-size: 30px; color: var(--gold-l); }

/* =========================================================
   FIN
   ========================================================= */
.final {
  background:
    radial-gradient(ellipse 80% 50% at 50% 30%, rgba(200, 162, 90, .14), transparent 70%),
    var(--pattern),
    var(--g900);
  color: var(--ivory);
  padding-bottom: calc(120px + env(safe-area-inset-bottom));
}
.seal-mono { font-family: var(--script); font-size: 46px; fill: #6e4f1f; }
.seal-mono--hi { fill: #fbeec4; opacity: .7; }
.final-seal { width: 96px; height: 96px; margin: 0 auto 10px; filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .5)); overflow: visible; }
.final .btn { margin-top: 30px; }
.final-names { font-family: var(--caps); font-size: 11px; letter-spacing: .3em; color: var(--gold); margin-top: 44px; }

/* =========================================================
   FX : poussière d'or, confettis, progression, musique
   ========================================================= */
.dust { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 50; }
.fx { position: fixed; inset: 0; pointer-events: none; z-index: 95; overflow: hidden; }
.fx i {
  position: absolute;
  width: 7px; height: 11px;
  border-radius: 1px;
  background: var(--gold-grad);
  will-change: transform, opacity;
}
.fx i.round { width: 6px; height: 6px; border-radius: 50%; }

.progress { position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--gold-grad); transform-origin: 0 50%; transform: scaleX(0); }

/* =========================================================
   États initiaux des animations (seulement si GSAP est chargé)
   ========================================================= */
.js-anim [data-hero],
.js-anim [data-reveal],
.js-anim [data-stagger] > * { opacity: 0; }
.js-anim .script-title { clip-path: inset(-30% 100% -30% 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media (min-width: 520px) {
  .sec { padding-left: 40px; padding-right: 40px; }
}
@media (max-width: 360px) {
  .scratch { width: 80px; height: 104px; }
  .countdown div { width: 64px; }
  .tl-time { font-size: 22px; }
}
