/* =========================================================
   Anna & Stéphane — velours bordeaux, ivoire, bougie
   ========================================================= */
:root {
  --wine: #4a0d17;
  --wine-2: #7a1626;
  --wine-btn: #4f0c16;
  --black: #120a0b;
  --ivory: #efe7dc;
  --ivory-2: #e6dccd;
  --ink: #2b1a1b;
  --ink-soft: #6b5552;
  --cream: #f3ebe0;
  --title: "Forum", "Cormorant Garamond", serif;
  --serif: "Cormorant Garamond", Georgia, serif;
  --hand: "Mrs Saint Delafield", cursive;
  --script: "Pinyon Script", cursive;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--black);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; height: 100svh; }
img, video, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.page { position: relative; max-width: 480px; margin: 0 auto; overflow-x: clip; background: var(--ivory); box-shadow: 0 0 80px rgba(0, 0, 0, .6); }

/* ---------- typo commune ---------- */
.title { font-family: var(--title); font-weight: 400; font-size: 30px; line-height: 1.08; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); }
.title--light { color: var(--cream); }
.body { font-size: 17px; line-height: 1.5; color: var(--ink); max-width: 31ch; }
.body--light { color: rgba(243, 235, 224, .85); }
.note { font-family: var(--hand); font-size: 30px; line-height: .95; color: var(--wine-2); transform: rotate(-8deg); }
.rule { display: block; width: 46px; height: 1px; background: var(--ink); opacity: .6; margin: 26px 0; }
.rule--light { background: var(--cream); margin: 18px auto; }
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 15px 22px; font-family: var(--serif); font-weight: 600; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; transition: transform .25s, background .25s;
}
.btn svg { width: 22px; height: 11px; }
.btn--wine { background: var(--wine-btn); color: var(--cream); box-shadow: 0 10px 24px rgba(74, 13, 23, .28); }
.btn--wine:active { transform: scale(.97); }
.btn--ghost { color: var(--cream); border: 1px solid rgba(243, 235, 224, .7); background: rgba(0, 0, 0, .15); }
.link { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--cream); border-bottom: 1px solid rgba(243, 235, 224, .6); padding-bottom: 3px; }
.link svg { width: 20px; height: 10px; transition: transform .3s; }
.link[aria-expanded="true"] svg { transform: rotate(90deg); }
.sprig { color: var(--ink); opacity: .75; }

/* ---------- pétales + éclats ---------- */
#petals { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 30; pointer-events: none; }
#fx { position: fixed; inset: 0; z-index: 60; pointer-events: none; }
#fx i { position: absolute; width: 12px; height: 9px; margin: -5px 0 0 -6px; border-radius: 80% 10% 80% 10%; background: radial-gradient(circle at 30% 30%, #a8283c, #4a0d17); }
#fx i.gold { width: 4px; height: 4px; border-radius: 50%; background: #f1d9a2; box-shadow: 0 0 6px #f1d9a2; }

/* =========================================================
   COUVERTURE + OUVERTURE
   ========================================================= */
.hero { position: relative; height: 100svh; min-height: 660px; max-height: 940px; color: var(--cream); overflow: hidden; background: var(--black); }
.hero-bg, .cinema { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-bg, .band-img, .place-bg, .finale-bg { overflow: hidden; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 4, 5, .72) 0%, rgba(10, 4, 5, .35) 24%, rgba(10, 4, 5, .05) 38%, rgba(10, 4, 5, .15) 52%, rgba(10, 4, 5, .7) 72%, rgba(10, 4, 5, .85) 100%); }
/* éclat de lumière chaude entre la vidéo et la couverture */
.intro-light { position: absolute; z-index: 7; inset: -20%; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at 50% 42%, #fff6e6 0%, #ffe0b0 18%, rgba(255, 196, 140, .75) 36%, rgba(214, 120, 90, .3) 58%, transparent 75%);
  mix-blend-mode: screen; }
.cinema { object-fit: cover; z-index: 2; pointer-events: none; background: var(--black); }

.topbar { position: absolute; z-index: 4; top: calc(18px + env(safe-area-inset-top)); left: 20px; right: 20px; display: flex; justify-content: space-between; align-items: center; }
.mono { font-family: var(--title); font-size: 13px; letter-spacing: .18em; }
.burger { display: grid; gap: 4px; }
.burger i { display: block; width: 18px; height: 1px; background: var(--cream); }
.hero-quote { position: absolute; z-index: 4; top: calc(64px + env(safe-area-inset-top)); left: 20px; font-size: 12.5px; line-height: 1.45; font-style: italic; color: rgba(243, 235, 224, .85); }
.hero-names { position: absolute; z-index: 4; left: 0; right: 0; top: calc(78px + env(safe-area-inset-top)); text-align: center; }
.hero-info { position: absolute; z-index: 6; left: 0; right: 0; bottom: 196px; text-align: center; color: var(--cream); }
.hero-names h1 { font-weight: 400; display: flex; flex-direction: column; align-items: center; }
.nm { font-family: var(--title); font-size: 44px; line-height: 1; letter-spacing: .1em; text-transform: uppercase; text-shadow: 0 2px 30px rgba(0, 0, 0, .5); }
.amp { font-family: var(--script); font-size: 46px; line-height: .8; margin: 4px 0 8px; color: #e9c9c0; }
.amp { font-size: 40px; margin: 0 0 4px; }
.hero-sub { font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase; line-height: 1.6; text-shadow: 0 1px 12px rgba(0, 0, 0, .6); }
.hero-date { margin-top: 12px; text-shadow: 0 1px 14px rgba(0, 0, 0, .6); font-size: 20px; letter-spacing: .22em; font-variant-numeric: lining-nums; }
.hero-city { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; opacity: .85; margin-top: 2px; }
.down { margin: 14px auto 0; width: 34px; height: 34px; border: 1px solid rgba(243, 235, 224, .7); border-radius: 50%; display: grid; place-items: center; animation: bob 2.4s ease-in-out infinite; }
.down svg { width: 20px; }
@keyframes bob { 50% { transform: translateY(5px); } }

.drape { position: absolute; left: 0; right: 0; pointer-events: none; }
.drape svg { width: 100%; height: 100%; }
.drape--hero { z-index: 5; bottom: -1px; height: 210px; }
.drape-img { position: absolute; left: -12%; width: 124%; max-width: none; bottom: 26px; z-index: 2; filter: drop-shadow(0 14px 16px rgba(0, 0, 0, .45)); }
.drape-img + .drape-svg path:not(:first-child) { display: none; }
.drape--final .drape-img { bottom: -18px; transform: scaleX(-1) rotate(-3deg); }
.drape--final .drape-img + .drape-svg { display: none; }
/* velours à cheval sur la jonction dress-code / photo */
.drape-seam { position: absolute; z-index: 4; top: 0; left: 50%; width: 118%; max-width: none; margin-left: -59%; margin-top: -16%; transform: scaleX(-1) rotate(2deg); pointer-events: none; filter: drop-shadow(0 12px 14px rgba(0, 0, 0, .5)); }
/* pétales posés */
.petal-static { position: absolute; z-index: 5; width: 34px; height: 35px; background: url("assets/elements/petales.webp") -35px -1px / 155px 83px no-repeat; filter: drop-shadow(0 4px 4px rgba(43, 26, 27, .3)); pointer-events: none; }
.petal-static--1 { right: 14%; top: 330px; transform: rotate(40deg); }
.petal-static--2 { right: 30%; top: 172px; width: 26px; height: 27px; background-size: 119px 64px; background-position: -27px -1px; transform: rotate(-70deg); }

/* drap de velours plein écran (ouverture sans vidéo) */
.sheet { position: absolute; z-index: 8; left: -30%; top: -12%; width: 160%; height: 128%; transform-origin: 85% 0; will-change: transform; }
.sheet svg { width: 100%; height: 100%; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .7)); }
.sheet-glow { position: absolute; inset: 0; background: radial-gradient(ellipse 40% 30% at 38% 34%, rgba(255, 190, 170, .16), transparent 70%); animation: breathe 4s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .45; } }
.intro-ui { position: absolute; z-index: 9; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--cream); pointer-events: none; }
@keyframes drip { from { transform: translateY(-16px); } to { transform: translateY(46px); } }
.intro-skip { position: absolute; z-index: 12; top: calc(14px + env(safe-area-inset-top)); right: 14px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: var(--cream); background: rgba(18, 10, 11, .35); border: 1px solid rgba(243, 235, 224, .35); backdrop-filter: blur(6px); opacity: .8; }
.intro-skip svg { width: 16px; }
.intro-play { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(243, 235, 224, .7); background: rgba(18, 10, 11, .25); backdrop-filter: blur(4px); animation: pulse 2.2s ease-in-out infinite; }
.intro-play svg { width: 26px; margin-left: 3px; color: var(--cream); }
@keyframes pulse { 50% { transform: scale(1.08); box-shadow: 0 0 0 10px rgba(243, 235, 224, .06); } }
.intro-load { position: absolute; left: 50%; bottom: calc(40px + env(safe-area-inset-bottom)); width: 90px; height: 1px; margin-left: -45px; background: rgba(243, 235, 224, .2); transition: opacity .6s; }
.intro-load i { display: block; height: 100%; width: 0; background: var(--cream); transition: width .3s; }

/* =========================================================
   SECTIONS IVOIRE
   ========================================================= */
.sec { position: relative; padding: 56px 26px 64px; }
.ivory { background: var(--ivory); }
/* pas de texture par section (sinon une ligne apparaît aux jonctions) : une seule couche fixe sur toute la page */

/* chers invités */
.guests { padding-top: 30px; }
.guests-head { position: relative; }
.sprig--guests { position: absolute; right: -4px; top: 6px; width: 104px; height: 104px; transform: scaleX(-1) rotate(8deg); }
.guests .body { margin-top: 22px; max-width: 26ch; }
.note--guests { position: absolute; z-index: 5; right: 8px; top: 22px; text-align: center; font-size: 27px; }
.polas { position: relative; height: 470px; margin: 26px -6px 0; }
.pola { position: absolute; width: 58%; perspective: 1100px; cursor: pointer; outline: none; }
.pola--a { left: 0; top: 0; z-index: 2; }
.pola--b { left: 8%; top: 218px; z-index: 3; }
.pola-in { position: relative; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.3, .7, .25, 1); }
.pola.is-flipped .pola-in { transform: rotateY(180deg); }
.pola-front, .pola-back { backface-visibility: hidden; -webkit-backface-visibility: hidden; background: #f7f3ec; padding: 9px 9px 34px; box-shadow: 0 14px 30px rgba(43, 26, 27, .28), 0 2px 4px rgba(43, 26, 27, .2); }
.pola-back { position: absolute; inset: 0; transform: rotateY(180deg); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: #f4eee4; }
.pola-back p { font-family: var(--hand); font-size: 30px; line-height: 1; color: var(--wine-2); }
.pola-back small { margin-top: 12px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }
.pola-photo { aspect-ratio: 1 / 1.05; overflow: hidden; background: #1a1112; }
.pola-photo img { width: 100%; height: 100%; object-fit: cover; transition: filter 2.6s ease-out; }
.pola:not(.is-developed) .pola-photo img { filter: brightness(1.9) contrast(.45) saturate(0) sepia(.5) blur(2px); }
.pola-hint { position: absolute; left: 8%; bottom: -26px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }

/* sceau de cire */
.seal { position: absolute; right: 2%; top: 196px; z-index: 4; width: 112px; height: 112px; }
.seal img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(43, 26, 27, .35)); }
.seal.has-img .seal-css { display: none; }
.seal-css { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 47% 53% 50% 50% / 52% 48% 52% 48%;
  background: radial-gradient(circle at 34% 30%, #9a2639, #5a0f1c 55%, #3a0710);
  box-shadow: inset 0 -6px 12px rgba(0, 0, 0, .35), inset 0 4px 8px rgba(255, 160, 170, .2), 0 10px 18px rgba(43, 26, 27, .35); }
.seal-css::before { content: ""; position: absolute; inset: 13%; border-radius: 50%; box-shadow: inset 0 2px 4px rgba(0, 0, 0, .45), inset 0 -2px 3px rgba(255, 150, 160, .25); }
.seal-css b { position: relative; font-family: var(--title); font-weight: 400; font-size: 34px; color: #3d0710; text-shadow: 0 1px 0 rgba(255, 150, 160, .35); letter-spacing: -.02em; }
.seal-css b i { font-style: normal; font-family: var(--script); font-size: 38px; margin-left: -2px; }

/* =========================================================
   DRESS-CODE (velours)
   ========================================================= */
.velvet { background: var(--wine); color: var(--cream); }
.velvet::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 20% 10%, rgba(160, 40, 60, .45), transparent 70%),
    linear-gradient(100deg, rgba(0, 0, 0, .35), transparent 18%, rgba(140, 30, 50, .3) 30%, transparent 44%, rgba(0, 0, 0, .3) 58%, rgba(150, 35, 55, .22) 72%, transparent 86%, rgba(0, 0, 0, .3));
  -webkit-mask: linear-gradient(#000 70%, transparent); mask: linear-gradient(#000 70%, transparent); }
.page::after { content: ""; position: fixed; inset: 0; z-index: 29; background: var(--grain); opacity: .06; pointer-events: none; }
.velvet > * { position: relative; z-index: 1; }
.dress { padding-top: 46px; padding-bottom: 92px; }
.dress .body { margin-top: 18px; font-size: 16px; max-width: 27ch; }
.swatches { display: flex; gap: 10px; margin-top: 22px; }
.sw { width: 40px; height: 40px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--c) 70%, #fff), var(--c) 60%); box-shadow: 0 0 0 1.5px rgba(243, 235, 224, .9), 0 0 0 4px transparent; transition: transform .35s cubic-bezier(.3, 1.6, .5, 1), box-shadow .3s; }
.sw.is-on { transform: scale(1.14); box-shadow: 0 0 0 1.5px var(--cream), 0 0 0 5px rgba(243, 235, 224, .3); }
.sw-info { position: relative; margin-top: 18px; min-height: 96px; padding: 16px 16px 14px; border-radius: 4px; overflow: hidden; background: rgba(0, 0, 0, .18); border: 1px solid rgba(243, 235, 224, .15); transition: background .7s; }
.sw-info::before { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, .14) 38%, transparent 52%), repeating-linear-gradient(96deg, rgba(0, 0, 0, .18) 0 18px, rgba(255, 255, 255, .05) 26px, rgba(0, 0, 0, .15) 44px); background-size: 250% 100%, auto; background-position: 120% 0, 0 0; transition: background-position 1.3s cubic-bezier(.3, .6, .3, 1); }
.sw-info.is-fab::before { background-position: -60% 0, 0 0; }
.sw-info b, .sw-info small { position: relative; display: block; }
.sw-info b { font-family: var(--hand); font-weight: 400; font-size: 34px; line-height: 1; }
.sw-info small { margin-top: 6px; font-size: 14.5px; font-style: italic; opacity: .9; }
#dress-more { margin-top: 22px; }
.dress-more { margin-top: 16px; font-size: 15.5px; line-height: 1.45; color: rgba(243, 235, 224, .88); }
.dress-more p + p { margin-top: 8px; }
.note--dress { position: absolute; right: 26px; bottom: 84px; color: #f0c9c4; font-size: 27px; text-align: center; }
.loupe { position: absolute; right: -14px; top: 30px; width: 92px; transform: rotate(18deg); z-index: 1; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .4)); }

/* =========================================================
   BANDE PHOTO (table)
   ========================================================= */
.photo-band { position: relative; height: 440px; background: var(--black); }
.band-img, .band-img img { position: absolute; inset: 0; width: 100%; height: 100%; }
.band-img img { object-fit: cover; object-position: 50% 60%; }
.band-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(20, 6, 8, .35), transparent 40%, rgba(20, 6, 8, .3)); }
.wave { position: absolute; left: 0; width: 100%; z-index: 3; pointer-events: none; }
.wave--top { top: -1px; height: 60px; }
.wave--bot { bottom: -1px; height: 60px; }
.place-card { position: absolute; z-index: 2; left: 50%; bottom: 70px; width: 132px; padding: 16px 10px; margin-left: -66px; transform: rotate(-4deg); background: #f2ebdf; text-align: center; box-shadow: 0 12px 22px rgba(0, 0, 0, .45); }
.place-card span { font-family: var(--hand); font-size: 22px; line-height: 1; color: var(--ink); }

/* =========================================================
   PROGRAMME
   ========================================================= */
.program { padding-top: 40px; padding-bottom: 80px; }
.tl { position: relative; list-style: none; margin-top: 36px; padding-left: 2px; }
.tl-line { position: absolute; left: 6px; top: 8px; bottom: 8px; width: 1px; background: rgba(43, 26, 27, .2); }
.tl-fill { position: absolute; inset: 0; background: var(--ink); transform-origin: top; transform: scaleY(0); }
.tl li { position: relative; display: grid; grid-template-columns: 64px 1fr; align-items: start; padding: 0 0 26px 22px; }
.tl li::before { content: ""; position: absolute; left: 1px; top: 7px; width: 11px; height: 11px; border-radius: 50%; background: var(--ivory); border: 1px solid rgba(43, 26, 27, .45); transition: background .4s, border-color .4s, transform .4s; }
.tl li.is-on::before { background: var(--wine-2); border-color: var(--wine-2); transform: scale(1.15); }
.tl time { font-size: 15px; font-variant-numeric: lining-nums; color: var(--ink); }
.tl b { display: block; font-family: var(--title); font-weight: 400; font-size: 14.5px; letter-spacing: .08em; text-transform: uppercase; }
.tl small { display: block; font-size: 14.5px; font-style: italic; color: var(--ink-soft); line-height: 1.3; }
.tl li > * { transition: opacity .5s, transform .5s; }
.js-anim .tl li:not(.is-on) > * { opacity: .35; }
.note--prog { position: absolute; right: 26px; bottom: 34px; font-size: 26px; text-align: center; }

/* =========================================================
   LIEU — dossier secret
   ========================================================= */
.place { position: relative; min-height: 640px; color: var(--cream); background: #171310; padding: 96px 26px 110px; }
.place-bg, .place-bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.place-bg img { object-fit: cover; }
.place-bg img.fallback { filter: sepia(.6) saturate(.6) brightness(.55); }
.place-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 10, 8, .2), rgba(14, 10, 8, .25) 45%, rgba(14, 10, 8, .75) 85%); }
.place > *:not(.place-bg):not(.wave) { position: relative; z-index: 2; }
.place .wave--top { height: 30px; }
.stamp { position: absolute !important; left: auto; right: 22px; top: 56px; padding: 6px 10px; border: 2px solid #b3222f; border-radius: 3px; font-family: var(--title); font-size: 13px; line-height: 1.1; letter-spacing: .1em; text-transform: uppercase; text-align: center; color: #c92c3a; transform: rotate(-9deg); mix-blend-mode: screen; opacity: .95; box-shadow: inset 0 0 0 2px rgba(179, 34, 47, .35); }
.place-venue { margin-top: 60px; margin-left: auto; width: fit-content; text-align: right; font-family: var(--title); font-size: 13px; line-height: 1.4; letter-spacing: .14em; text-transform: uppercase; }
.place-main { margin-top: 150px; }
.evidence { position: relative; margin-top: 20px; width: 236px; padding: 14px 16px 12px; background: #ece3d4; color: var(--ink); transform: rotate(-2.5deg); box-shadow: 0 14px 26px rgba(0, 0, 0, .5); }
.evidence::before { content: ""; position: absolute; top: -9px; left: 50%; width: 54px; height: 18px; margin-left: -27px; background: rgba(236, 227, 212, .55); transform: rotate(3deg); box-shadow: 0 1px 2px rgba(0, 0, 0, .15); }
.evidence small { display: block; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: #a32533; }
.evidence p { margin-top: 6px; }
.redact { position: relative; display: inline-block; font-size: 17px; line-height: 1.35; cursor: pointer; outline: none; }
.redact::after { content: ""; position: absolute; inset: 1px -3px; background: #141010; transform-origin: right; transition: transform .9s cubic-bezier(.7, 0, .2, 1); }
.redact.is-open::after { transform: scaleX(0); }
.redact-hint { font-size: 13px; font-style: italic; color: var(--ink-soft); transition: opacity .4s; }
.place .btn { margin-top: 22px; }

/* =========================================================
   RSVP
   ========================================================= */
.rsvp { padding-top: 30px; padding-bottom: 50px; }
.rsvp .body { margin-top: 16px; font-size: 16px; max-width: 26ch; }
.rsvp .btn { margin-top: 22px; }
.rsvp-foot { position: relative; height: 120px; margin-top: 20px; }
.sprig--rsvp { position: absolute; left: -6px; top: 0; width: 110px; height: 110px; }
.note--rsvp { position: absolute; left: 150px; top: 44px; font-size: 30px; }

/* =========================================================
   FINAL
   ========================================================= */
.finale { position: relative; min-height: 760px; color: var(--cream); background: var(--black); padding: 90px 26px 140px; text-align: center; }
.finale-bg, .finale-bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.finale-bg img { object-fit: cover; object-position: 50% 30%; }
.finale-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 6, 7, .5), rgba(14, 6, 7, .66) 50%, rgba(14, 6, 7, .8)); }
.finale > *:not(.finale-bg):not(.wave):not(.drape) { position: relative; z-index: 2; }
.finale-quote { margin-left: auto; width: fit-content; text-align: right; font-size: 14px; font-style: italic; line-height: 1.45; }
.finale-mid { margin-top: 90px; }
.finale-mono { font-family: var(--title); font-size: 50px; letter-spacing: .1em; }
.finale-mono i { font-style: normal; font-family: var(--script); margin: 0 8px; color: #e9c9c0; }
.finale-date { font-size: 18px; letter-spacing: .24em; font-variant-numeric: lining-nums; }
.countdown { display: flex; justify-content: center; gap: 22px; margin-top: 6px; }
.countdown b { display: block; font-weight: 300; font-size: 30px; line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.countdown small { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; opacity: .75; }
.finale-thanks { margin-top: 30px; font-family: var(--title); font-size: 15px; line-height: 1.5; letter-spacing: .16em; text-transform: uppercase; }
.drape--final { z-index: 1; bottom: 0; height: 150px; }
.finale-foot { position: absolute !important; left: 0; right: 0; bottom: 22px; z-index: 3 !important; font-size: 10.5px; letter-spacing: .3em; text-transform: uppercase; color: rgba(243, 235, 224, .8); }

/* =========================================================
   FORMULAIRE
   ========================================================= */
.sheet-modal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.sheet-modal[hidden] { display: none; }
.sheet-back { position: absolute; inset: 0; background: rgba(10, 4, 5, .6); backdrop-filter: blur(3px); }
.rsvp-form { position: relative; width: 100%; max-width: 480px; max-height: 92svh; overflow-y: auto; background: var(--ivory); padding: 30px 24px calc(28px + env(safe-area-inset-bottom)); border-radius: 18px 18px 0 0; display: grid; gap: 14px; }
.x { position: absolute; top: 10px; right: 14px; font-size: 28px; line-height: 1; color: var(--ink-soft); }
.form-kicker { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--wine-2); }
.rsvp-form h3 { font-family: var(--title); font-weight: 400; font-size: 24px; letter-spacing: .04em; text-transform: uppercase; }
.rsvp-form label { display: grid; gap: 4px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.rsvp-form input:not([type=radio]), .rsvp-form select, .rsvp-form textarea { font: inherit; font-size: 17px; text-transform: none; letter-spacing: 0; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid rgba(43, 26, 27, .35); padding: 6px 0; border-radius: 0; outline: none; }
.rsvp-form input:focus, .rsvp-form textarea:focus { border-color: var(--wine-2); }
.rsvp-form input.err { border-color: #b3222f; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice label { display: block; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: block; padding: 11px; text-align: center; border: 1px solid rgba(43, 26, 27, .3); font-size: 14px; color: var(--ink); transition: all .25s; }
.choice input:checked + span { background: var(--wine-btn); border-color: var(--wine-btn); color: var(--cream); }
.rsvp-form .btn { justify-content: center; margin-top: 6px; }
.sent { position: absolute; inset: 0; background: var(--ivory); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; padding: 20px; }
.sent[hidden] { display: none; }
.sent-seal.seal { position: relative; right: auto; top: auto; width: 104px; height: 104px; margin-bottom: 8px; }
.sent p { font-size: 16px; font-style: italic; color: var(--ink-soft); }

/* =========================================================
   apparitions
   ========================================================= */
.js-anim .rv { opacity: 0; }

@media (min-width: 481px) {
  body { background: radial-gradient(ellipse at 50% 30%, #3a0b13, #120a0b 70%); }
}
@media (max-width: 360px) {
  .nm { font-size: 40px; }
  .title { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}

/* =========================================================
   v3 — toucher sans surlignage, drapés aux jonctions, lettres
   ========================================================= */
* { -webkit-tap-highlight-color: transparent; }
:focus:not(:focus-visible) { outline: none; }
button, a, [role="button"], .pola, .sw { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
:focus-visible { outline: 1px dashed rgba(122, 22, 38, .6); outline-offset: 4px; }

/* drapés à cheval sur les jonctions : centre de l'image = jonction (margin-top en % de la largeur) */
.seam-drape {
  position: absolute !important; z-index: 8 !important; top: 0; left: 50%;
  width: var(--w); max-width: none; margin-left: calc(var(--w) / -2);
  margin-top: calc(var(--w) / var(--r) / -2);
  pointer-events: none; filter: drop-shadow(0 12px 14px rgba(0, 0, 0, .45));
  animation: sway 7s ease-in-out infinite;
}
@keyframes sway { 50% { translate: 0 -4px; } }
.seam-drape--a { --w: 120%; --r: 3.182; rotate: -2deg; }
.seam-drape--b { --w: 122%; --r: 3.526; scale: -1 1; rotate: 1deg; }
.seam-drape--c { --w: 112%; --r: 1.862; scale: -1 1; animation-duration: 8s; }
.dress { padding-top: 104px; }
.program { padding-top: 104px; }
.rsvp { padding-bottom: 150px; }
.finale { padding-top: 180px; }
.photo-band .wave--bot { bottom: -2px; height: 62px; }

/* prénoms lettre par lettre */
.nm .ch { display: inline-block; will-change: transform, opacity, filter; }

/* =========================================================
   v4 — jonctions cachées sous les drapés
   La section du bas remonte sous le drapé et son bord haut suit la ligne
   centrale du velours (masque SVG calculé colonne par colonne) : la limite
   entre les deux blocs est toujours sous le tissu, jamais visible. Aucune ombre.
   ========================================================= */
.seam-1, .m1 { --w: 124%; --r: 3.6842; --m: url("assets/elements/seam-1-edge.svg"); }
.seam-2, .m2 { --w: 120%; --r: 3.1818; --m: url("assets/elements/seam-2-edge.svg"); }
.seam-3, .m3 { --w: 118%; --r: 3.6842; --m: url("assets/elements/seam-3-edge.svg"); }
.seam-4, .m4 { --w: 122%; --r: 3.5264; --m: url("assets/elements/seam-4-edge.svg"); }
.seam-5, .m5 { --w: 112%; --r: 1.862;  --m: url("assets/elements/seam-5-edge.svg"); }
.seam { position: relative; z-index: 10; height: 0; pointer-events: none; }
.seam img { position: absolute; bottom: 0; left: 50%; width: var(--w); max-width: none; margin-left: calc(var(--w) / -2); }
.masked {
  margin-top: calc(var(--w) / var(--r) * -1);
  -webkit-mask: var(--m) center top / var(--w) auto no-repeat;
          mask: var(--m) center top / var(--w) auto no-repeat;
}
/* pendant la vidéo, la couverture passe au-dessus de tout */
body.is-locked:not(.hero-open) .hero { z-index: 20; }

/* place libérée sous / au-dessus de chaque drapé */
.guests { padding-top: calc(124% / 3.6842 + 22px); padding-bottom: calc(120% / 3.1818 + 46px); }
.dress { padding-top: calc(120% / 3.1818 + 24px); padding-bottom: calc(118% / 3.6842 + 34px); }
.note--dress { bottom: calc(min(32vw, 154px) + 24px); }
.photo-band { height: 640px; }
.place-card { bottom: calc(min(34.6vw, 166px) + 34px); }
.program { padding-top: calc(122% / 3.5264 + 24px); }
.rsvp { padding-bottom: calc(112% / 1.862 + 30px); }
.finale { padding-top: calc(112% / 1.862 + 30px); }
.loupe { top: calc(min(37.7vw, 181px) + 4px); }
