/* =========================================================
   Aaron & Amira — invitation digitale
   DA : beige, blanc cassé & bordeaux
   ========================================================= */
:root {
  --white: #fffdf8;
  --cream: #f6f0e6;
  --linen: #ece2d2;
  --sand: #d9c8ae;
  --taupe: #8a7564;
  --wine: #6e1423;
  --wine-2: #8c1c2e;
  --wine-deep: #4a0d17;
  --blush: #e3b7b0;
  --ink: #2e211d;
  --ink-soft: #6b5a50;
  --display: "Italiana", "Didot", serif;
  --serif: "Cormorant Garamond", Georgia, serif;
  --script: "Allura", "Snell Roundhand", cursive;
  --sans: "Jost", system-ui, sans-serif;
  --arabic: "Amiri", "Traditional Arabic", serif;
  --col: 480px;
  --paper: 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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .25 0 0 0 0 .18 0 0 0 .07 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%; background: #e4d8c5; 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 80% 60% at 50% 0%, #f1e8da, #ddcfb9);
  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 ---------- */
.kicker {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--wine);
  padding-left: .38em;
}
.kicker--light { color: var(--blush); }
.title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(44px, 13vw, 60px);
  line-height: 1.05;
  letter-spacing: .01em;
  color: var(--ink);
  margin: 10px auto 6px;
  width: fit-content;
  padding: 0 .1em;
}
.title--light { color: var(--cream); font-size: clamp(36px, 10.5vw, 48px); }
.title--script { font-family: var(--script); font-size: clamp(54px, 15vw, 70px); color: var(--wine); }
.lead { font-size: 20px; line-height: 1.55; max-width: 32ch; margin: 16px auto 0; }
.small { font-family: var(--sans); font-size: 13px; font-weight: 300; line-height: 1.6; }
.muted { opacity: .7; margin-top: 26px; }
.orn { width: 170px; height: 18px; margin: 16px auto; color: var(--wine); }
.seal-mono { font-family: var(--script); font-size: 44px; fill: #2f060e; }
.seal-mono--hi { fill: #e7a0aa; opacity: .55; }

/* ---------- page & sections ---------- */
.page {
  position: relative;
  max-width: var(--col);
  margin: 0 auto;
  background: var(--cream);
  box-shadow: 0 0 0 1px rgba(110, 20, 35, .06), 0 0 90px rgba(74, 47, 39, .22);
  overflow-x: clip;
}
.sec { position: relative; padding: 90px 26px 104px; text-align: center; }
.sec > * { position: relative; z-index: 2; }
.sec--cream { background: var(--cream); }
.sec--linen { background: var(--linen); }
.sec--white { background: var(--white); }
.sec--wine  { background: radial-gradient(ellipse 70% 45% at 50% 50%, #7c1829 0%, var(--wine) 100%) var(--wine); color: var(--cream); }

/* ---------- déchirures de papier ---------- */
.tear { position: absolute !important; left: 0; width: 100%; height: 36px; z-index: 4 !important; pointer-events: none; overflow: visible; }
.tear--top { top: -33px; }
.tear--top .body, .tear--card .body { shape-rendering: geometricPrecision; }
.tear--down { top: -3px; transform: scaleY(-1); color: var(--cream); }
.tear .fiber { fill: #fffdf8; }
.tear .body { fill: currentColor; }
.sec--cream .tear--top { color: var(--cream); }
.sec--linen .tear--top { color: var(--linen); }
.sec--white .tear--top { color: var(--white); }
.sec--wine .tear--top { color: var(--wine); }
.sec--wine .tear .fiber { fill: #f2dcd6; }

/* ---------- fleurs (images détourées) ---------- */
.flora { position: absolute !important; z-index: 6 !important; pointer-events: none; height: auto; will-change: transform; filter: drop-shadow(0 10px 14px rgba(46, 33, 29, .22)); }
.flora--seam { top: -88px; left: 50%; width: 118%; max-width: none; margin-left: -59%; }
.flora--photo-tl { top: -40px; left: -34px; width: 58%; }
.flora--photo-r { bottom: 12%; right: -30px; width: 30%; }
.flora--rose-l { top: -30px; left: -16px; width: 30%; transform: rotate(-18deg); }
.flora--rose-r { bottom: -10px; right: -18px; width: 26%; transform: rotate(160deg); }
.flora--final { bottom: -30px; left: 50%; width: 120%; margin-left: -60%; max-width: none; }

/* =========================================================
   1. OUVERTURE
   ========================================================= */
.intro {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: radial-gradient(ellipse 80% 70% at 50% 45%, #f7f0e4, #e2d3bd);
  cursor: pointer;
}
.cinema { position: absolute; inset: 0; width: 100%; height: 100%; }
.env { position: absolute; inset: 0; perspective: 1300px; }
.env-inside {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 45% at 50% 50%, #fffaf0, #efe2cc 70%, #d8c4a6);
}
.env-glow {
  position: absolute; left: 50%; top: 50%;
  width: 150vmax; height: 150vmax; margin: -75vmax 0 0 -75vmax;
  background: radial-gradient(circle, #fffdf8 0%, rgba(255, 246, 232, .95) 12%, rgba(240, 214, 196, .5) 28%, transparent 55%);
  opacity: 0; transform: scale(.2);
  pointer-events: none;
}
.env-flap {
  position: absolute; inset: 0;
  background:
    var(--shade),
    repeating-linear-gradient(0deg, rgba(120, 90, 60, .045) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(120, 90, 60, .035) 0 1px, transparent 1px 4px),
    linear-gradient(160deg, #f1e7d6, #e5d6bf);
  backface-visibility: hidden;
  will-change: transform;
}
.env-flap--left   { clip-path: polygon(0 0, 50% 50%, 0 100%); transform-origin: 0 50%; --shade: linear-gradient(90deg, rgba(74, 47, 39, .1), rgba(74, 47, 39, .02)); z-index: 2; }
.env-flap--right  { clip-path: polygon(100% 0, 50% 50%, 100% 100%); transform-origin: 100% 50%; --shade: linear-gradient(270deg, rgba(74, 47, 39, .1), rgba(74, 47, 39, .02)); z-index: 2; }
.env-flap--bottom { clip-path: polygon(0 100%, 50% 50%, 100% 100%); transform-origin: 50% 100%; --shade: linear-gradient(0deg, rgba(74, 47, 39, .06), rgba(255, 255, 255, .1)); z-index: 3; }
.env-flap--top    { clip-path: polygon(0 0, 100% 0, 50% 50%); transform-origin: 50% 0; --shade: linear-gradient(180deg, rgba(255, 255, 255, .25), rgba(74, 47, 39, .08)); z-index: 4; }
.env-lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 5; pointer-events: none; }
.env-lines path { fill: none; stroke: #b59e80; stroke-opacity: .7; stroke-width: 1; vector-effect: non-scaling-stroke; }
.env-flower { position: absolute; z-index: 6; width: 62%; pointer-events: none; filter: drop-shadow(0 12px 16px rgba(46, 33, 29, .25)); }
.env-flower--tl { top: -6%; left: -14%; transform: rotate(8deg); }
.env-flower--br { bottom: -6%; right: -14%; transform: rotate(188deg); }
.env-seal {
  position: absolute; z-index: 7;
  left: calc(50% - 56px); top: calc(50% - 56px);
  width: 112px; height: 112px;
  overflow: visible;
  filter: drop-shadow(0 10px 14px rgba(58, 9, 18, .45));
}
.intro-ui {
  position: absolute; inset: 0; z-index: 8;
  display: flex; flex-direction: column; align-items: center;
  padding: calc(52px + env(safe-area-inset-top)) 24px calc(34px + env(safe-area-inset-bottom));
  text-align: center;
  pointer-events: none;
}
.intro-names { font-family: var(--display); font-size: 30px; letter-spacing: .06em; color: var(--ink); }
.intro-names i { font-family: var(--script); font-style: normal; color: var(--wine); font-size: 34px; margin: 0 .1em; }
.intro-date { font-family: var(--sans); font-size: 11px; letter-spacing: .4em; color: var(--wine); margin-top: 6px; }
.intro-hint {
  margin-top: auto;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-style: italic; font-size: 17px; color: var(--ink);
  pointer-events: auto;
}
.intro-ready { display: none; animation: blink 2.4s ease-in-out infinite; }
.intro-loading { opacity: .7; }
.intro-loading b { font-style: normal; font-weight: 400; font-family: var(--sans); font-size: 12px; margin-left: 8px; color: var(--wine); }
.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(110, 20, 35, .2); overflow: hidden; }
.intro-hint i::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 14px; background: var(--wine); 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; z-index: 9; background: radial-gradient(ellipse 75% 50% at 50% 45%, #fffdf8 0%, var(--cream) 100%); opacity: 0; pointer-events: none; }
.intro-end {
  position: absolute; inset: 0; z-index: 10;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 0 24px; pointer-events: none;
}
.names { display: flex; flex-direction: column; align-items: center; font-weight: 400; margin-top: 10px; }
.name { font-family: var(--display); font-size: clamp(62px, 19vw, 86px); line-height: .95; color: var(--ink); letter-spacing: .02em; }
.amp { font-family: var(--script); font-size: 54px; line-height: .8; color: var(--wine); margin: 4px 0 2px; }
.intro-end-date { font-family: var(--sans); font-size: 11px; letter-spacing: .36em; text-transform: uppercase; color: var(--wine); margin-top: 22px; }

/* =========================================================
   2. BISMILLAH
   ========================================================= */
.welcome { padding-top: 40px; }
.bismillah { font-family: var(--arabic); font-size: clamp(30px, 9vw, 40px); line-height: 1.6; color: var(--wine); }
.bismillah-fr { font-style: italic; font-size: 16px; color: var(--ink-soft); }
.families { display: flex; flex-direction: column; gap: 4px; margin-top: 14px; font-family: var(--display); font-size: 23px; letter-spacing: .02em; }
.families em { font-family: var(--script); font-style: normal; font-size: 30px; color: var(--wine); line-height: 1; }
.script-names { font-family: var(--script); font-size: clamp(54px, 15vw, 68px); color: var(--wine); margin-top: 22px; line-height: 1.1; }
.script-names span { font-size: .7em; color: var(--taupe); }

/* =========================================================
   3. PHOTO
   ========================================================= */
.photo { position: relative; background: var(--wine-deep); }
.photo-frame { position: relative; height: min(118vw, 560px); overflow: hidden; }
.photo-img { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; object-fit: cover; object-position: 50% 35%; filter: sepia(.18) saturate(.9) contrast(1.02); will-change: transform; }
.photo-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(46, 12, 18, .55)); }
.photo-caption {
  position: absolute; left: 24px; bottom: 54px; z-index: 3;
  font-family: var(--display); font-size: 30px; line-height: 1.05; color: var(--cream); text-align: left;
}
.photo-caption span { font-family: var(--script); font-size: 46px; color: var(--blush); }

/* =========================================================
   4. VERSET
   ========================================================= */
.verse { padding-top: 110px; padding-bottom: 120px; }
.verse-wm { position: absolute !important; inset: 0; overflow: hidden; z-index: 0 !important; pointer-events: none; }
.verse-watermark {
  position: absolute;
  left: 50%; top: 42%;
  transform: translate(-50%, -50%);
  font-family: var(--arabic); font-size: 130px; line-height: 1; white-space: nowrap;
  color: rgba(255, 240, 235, .05);
  pointer-events: none;
}
.verse-ar {
  font-family: var(--arabic);
  font-size: clamp(25px, 7vw, 31px);
  line-height: 2.05;
  margin-top: 22px;
  color: var(--cream);
}
.verse-ar .w { opacity: .14; transition: none; }
.verse-fr { font-style: italic; font-size: 19px; line-height: 1.55; margin-top: 24px; color: #f4e2dc; }
.verse-fr .l { display: inline; opacity: .14; }
.verse-ref { font-family: var(--sans); font-size: 10.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--blush); margin-top: 26px; }
.verse-ref--dark { color: var(--wine); }

/* =========================================================
   5. DATE
   ========================================================= */
.weekday { font-family: var(--script); font-size: 40px; color: var(--wine); margin-top: 10px; }
.flips { display: flex; justify-content: center; gap: 12px; margin-top: 10px; }
.flip { width: 96px; height: 124px; perspective: 700px; cursor: pointer; }
.flip-in { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; will-change: transform; }
.flip-face {
  position: absolute; inset: 0;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: 4px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: 0 14px 26px rgba(74, 47, 39, .18);
}
.flip-front { background: radial-gradient(ellipse at 50% 30%, #8c1c2e, var(--wine) 70%); }
.flip-front svg { width: 50px; height: 50px; opacity: .95; filter: drop-shadow(0 4px 6px rgba(0,0,0,.35)); }
.flip-back { background: var(--white); transform: rotateY(180deg); box-shadow: 0 0 0 1px rgba(110, 20, 35, .25), 0 14px 26px rgba(74, 47, 39, .18); }
.flip-back b { font-family: var(--display); font-weight: 400; font-size: 42px; line-height: 1; color: var(--wine); }
.flip:last-child .flip-back b { font-size: 32px; }
.flip-back span { font-family: var(--sans); font-size: 9px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft); margin-top: 8px; }

.calendar { max-width: 320px; margin: 48px auto 0; }
.cal-title { font-family: var(--display); font-size: 26px; letter-spacing: .04em; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px 0; margin-top: 16px; font-family: var(--sans); font-size: 14px; font-weight: 300; }
.cal-grid .dow { font-size: 10px; font-weight: 500; color: var(--wine); letter-spacing: .1em; padding-bottom: 8px; }
.cal-grid .d { position: relative; height: 36px; display: grid; place-items: center; }
.cal-grid .is-day { color: var(--wine); font-weight: 500; }
.circ { position: absolute; left: 50%; top: 50%; width: 52px; height: 44px; margin: -22px 0 0 -26px; overflow: visible; }
.circ path { fill: none; stroke: var(--wine); stroke-width: 1.6; stroke-linecap: round; }

.countdown { display: flex; justify-content: center; margin-top: 40px; }
.countdown div { padding: 0 14px; border-left: 1px solid rgba(110, 20, 35, .2); }
.countdown div:first-child { border-left: 0; }
.countdown b { display: block; font-family: var(--display); font-weight: 400; font-size: 36px; color: var(--ink); font-variant-numeric: tabular-nums; }
.countdown span { font-family: var(--sans); font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: var(--wine); }

/* =========================================================
   6. PROGRAMME — parcours sinueux qui se dessine au scroll
   ========================================================= */
.route { position: relative; margin-top: 26px; }
.week { position: relative; z-index: 3; }
.week-month { font-family: var(--serif); font-weight: 500; font-size: 17px; letter-spacing: .26em; text-transform: uppercase; font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
.week-grid { display: grid; grid-template-columns: repeat(7, 1fr); margin-top: 12px; text-align: center; }
.week-grid small { font-family: var(--sans); font-size: 8.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--taupe); }
.week-grid span {
  position: relative; display: grid; place-items: center; height: 40px; margin-top: 4px;
  font-family: var(--serif); font-size: 21px; font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1;
}
.week-grid span.is-day { color: var(--cream); font-weight: 500; }
.week-grid span.is-day::before {
  content: ""; position: absolute; z-index: -1; width: 40px; height: 38px;
  background: var(--wine);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 30'%3E%3Cpath d='M16 29S1 20 1 9.5A7.5 7.5 0 0 1 16 6a7.5 7.5 0 0 1 15 3.5C31 20 16 29 16 29z'/%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 30'%3E%3Cpath d='M16 29S1 20 1 9.5A7.5 7.5 0 0 1 16 6a7.5 7.5 0 0 1 15 3.5C31 20 16 29 16 29z'/%3E%3C/svg%3E") center / contain no-repeat;
  animation: beat 2s ease-in-out infinite;
}
.week-grid span.is-day { isolation: isolate; }
@keyframes beat { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.14); } 24% { transform: scale(1); } 36% { transform: scale(1.08); } }

.route-svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 1; }
.route-line, .route-heart { fill: none; stroke: var(--ink); stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; }
.route-heart { stroke: var(--wine); stroke-width: 1.3; }

.stops { list-style: none; position: relative; z-index: 2; padding: 30px 0 110px; }
.stop { position: relative; height: 132px; display: flex; flex-direction: column; justify-content: center; }
.stop::before {
  content: ""; position: absolute; top: 50%; left: var(--dot);
  width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%;
  background: var(--ink);
  transform: scale(0); transition: transform .5s cubic-bezier(.3, 1.8, .5, 1), background .4s;
}
.stop.is-on::before { transform: scale(1); background: var(--wine); }
.stop > * { width: 50%; opacity: 0; transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.stop time { font-family: var(--serif); font-style: italic; font-size: 34px; line-height: 1.05; color: var(--wine); font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
.stop h3 { font-family: var(--sans); font-weight: 500; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; line-height: 1.4; margin-top: 4px; }
.stop p { font-size: 15.5px; line-height: 1.35; color: var(--ink-soft); margin-top: 3px; }
.stop:nth-child(odd) { --dot: 64%; }
.stop:nth-child(even) { --dot: 36%; }
.stop:nth-child(odd) > * { margin-left: calc(var(--dot) - 16px - 50%); text-align: right; transform: translateX(-14px); }
.stop:nth-child(even) > * { margin-left: calc(var(--dot) + 16px); text-align: left; transform: translateX(14px); }
.stop.is-on > * { opacity: 1; transform: none; }
.flora--prog { top: -78px; right: -24px; width: 24%; transform: rotate(-12deg); }

/* =========================================================
   7. INTERLUDE
   ========================================================= */
.interlude { padding: 100px 30px; }
.interlude-ar { font-family: var(--arabic); font-size: clamp(30px, 9vw, 40px); line-height: 1.8; color: var(--wine); }
.interlude-fr { font-family: var(--display); font-size: 25px; line-height: 1.35; margin-top: 12px; }

/* =========================================================
   8. LIEU
   ========================================================= */
.venue { margin: 24px auto 6px; max-width: 360px; }
.venue-photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 180px 180px 4px 4px; width: 86%; margin: 0 auto; box-shadow: 0 0 0 1px var(--wine), 0 0 0 7px var(--white), 0 0 0 8px rgba(110, 20, 35, .3); }
.venue-photo img { width: 100%; height: 118%; object-fit: cover; }
.venue-photo + .chateau { display: none; }
.chateau { width: 100%; height: auto; color: var(--wine); }
.chateau-win { color: var(--wine); }
.venue-name { font-family: var(--display); font-weight: 400; font-size: 27px; margin-top: 18px; }
.venue-addr { font-size: 18px; line-height: 1.5; margin-top: 6px; color: var(--ink-soft); }
.btn-row { display: flex; justify-content: center; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 26px;
  font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  transition: transform .25s, background .3s, color .3s;
}
.btn:active { transform: scale(.97); }
.btn--wine { background: var(--wine); color: var(--cream); box-shadow: 0 10px 22px rgba(110, 20, 35, .28); }
.btn--wine::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .25), transparent); transform: skewX(-20deg); animation: sweep 4s ease-in-out infinite; }
@keyframes sweep { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.btn--line { border: 1px solid var(--wine); color: var(--wine); }
.btn--block { width: 100%; margin-top: 6px; }
.map { position: relative; height: 220px; margin-top: 26px; border-radius: 6px; overflow: hidden; box-shadow: 0 0 0 1px rgba(110, 20, 35, .25); }
.map iframe { width: 100%; height: 100%; border: 0; filter: sepia(.3) saturate(.8); }
.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; color: var(--white); background: linear-gradient(180deg, transparent 55%, rgba(74, 13, 23, .7)); }

/* =========================================================
   9. DRESS CODE — nuancier en éventail
   ========================================================= */
.chips { position: relative; height: 250px; margin-top: 34px; }
.chip {
  position: absolute; left: 50%; bottom: 0;
  width: 108px; margin-left: -54px;
  background: var(--white);
  padding: 7px 7px 0;
  border-radius: 3px;
  box-shadow: 0 10px 24px rgba(74, 47, 39, .2), 0 0 0 1px rgba(74, 47, 39, .08);
  transform-origin: 50% 140%;
  will-change: transform;
}
.chip span { display: block; height: 128px; border-radius: 2px; background: linear-gradient(160deg, rgba(255,255,255,.18), transparent 50%), var(--c); }
.chip figcaption { padding: 9px 2px 10px; text-align: left; font-family: var(--sans); font-size: 8.5px; letter-spacing: .1em; color: var(--ink-soft); line-height: 1.5; }
.chip figcaption b { display: block; font-family: var(--display); font-weight: 400; font-size: 15px; letter-spacing: .02em; color: var(--ink); }

/* =========================================================
   10. DÉTAILS
   ========================================================= */
.cards { display: grid; gap: 14px; margin-top: 30px; }
.card { padding: 26px 24px; background: var(--white); border-radius: 3px; box-shadow: 0 0 0 1px rgba(110, 20, 35, .12), 0 12px 24px rgba(74, 47, 39, .08); }
.card h3 { font-family: var(--display); font-weight: 400; font-size: 24px; color: var(--wine); }
.card p { font-size: 17.5px; line-height: 1.5; margin-top: 8px; color: var(--ink-soft); }

/* =========================================================
   11. RSVP
   ========================================================= */
.rsvp-card {
  position: relative;
  margin-top: 54px;
  padding: 34px 22px 28px;
  text-align: left;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 30px 60px rgba(30, 4, 9, .35);
}
.tear--card { top: -33px; color: var(--white); }
.rsvp-card .tear .fiber { fill: #fffdf8; }
.field { display: block; border: 0; margin-bottom: 22px; }
.field > span, .field legend { display: block; font-family: var(--sans); font-size: 10px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--wine); margin-bottom: 10px; }
.field input[type="text"], .field textarea {
  width: 100%; font: 400 18px var(--serif); color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid rgba(110, 20, 35, .3);
  padding: 8px 2px; border-radius: 0; outline: none; resize: vertical; transition: border-color .3s;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(46, 33, 29, .35); font-style: italic; }
.field input:focus, .field textarea:focus { border-color: var(--wine); }
.pills { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span { display: flex; align-items: center; justify-content: center; min-height: 46px; border: 1px solid rgba(110, 20, 35, .3); border-radius: 999px; font-size: 17px; transition: background .3s, color .3s, border-color .3s; }
.pill input:checked + span { background: var(--wine); color: var(--cream); border-color: var(--wine); }
.pill input:focus-visible + span { outline: 2px solid var(--wine); outline-offset: 2px; }
.steppers { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stepper { display: flex; align-items: center; width: fit-content; border: 1px solid rgba(110, 20, 35, .3); border-radius: 999px; }
.stepper button { width: 42px; height: 42px; font-size: 20px; color: var(--wine); }
.stepper output { width: 34px; text-align: center; font-size: 21px; }
.if-yes { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .5s ease, opacity .4s; }
.if-yes-inner { overflow: hidden; min-height: 0; }
.if-yes.is-hidden { grid-template-rows: 0fr; opacity: 0; }
.form-error { color: var(--wine-2); font-style: italic; margin: -6px 0 12px; }
.btn.is-loading span { opacity: .4; }
.rsvp-done { text-align: center; padding: 16px 0 6px; }
.check { width: 70px; height: 70px; margin: 0 auto 14px; fill: none; stroke: var(--wine); 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: 56px; color: var(--wine); line-height: 1.1; }
.rsvp-done-text { font-size: 18px; color: var(--ink-soft); margin-bottom: 8px; }
.link-btn { font-family: var(--sans); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px; opacity: .7; padding: 10px; }

/* =========================================================
   12. CONTACTS
   ========================================================= */
.contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.contact-card { display: flex; flex-direction: column; gap: 4px; padding: 24px 10px; text-decoration: none; background: var(--white); border-radius: 120px 120px 3px 3px; box-shadow: 0 0 0 1px rgba(110, 20, 35, .14), 0 12px 24px rgba(74, 47, 39, .08); padding-top: 40px; }
.contact-card small { font-family: var(--sans); font-size: 9px; letter-spacing: .24em; text-transform: uppercase; color: var(--wine); }
.contact-card b { font-family: var(--script); font-weight: 400; font-size: 38px; line-height: 1.1; color: var(--ink); }
.contact-card span { font-family: var(--sans); font-size: 13px; letter-spacing: .04em; color: var(--ink-soft); }

/* =========================================================
   13. FIN
   ========================================================= */
.final { padding-bottom: calc(170px + env(safe-area-inset-bottom)); overflow: hidden; }
.dua-ar { font-family: var(--arabic); font-size: clamp(25px, 7vw, 30px); line-height: 1.9; color: var(--wine); }
.dua-fr { font-style: italic; font-size: 18px; line-height: 1.5; margin-top: 10px; color: var(--ink-soft); }
.final-seal { width: 84px; height: 84px; margin: 44px auto 0; overflow: visible; filter: drop-shadow(0 8px 12px rgba(58, 9, 18, .35)); }
.final .btn { margin-top: 26px; }
.final-names { font-family: var(--sans); font-size: 10.5px; letter-spacing: .34em; color: var(--wine); margin-top: 40px; }

/* Textes arabes : lignes équilibrées */
.bismillah, .verse-ar, .interlude-ar, .dua-ar { text-wrap: balance; }
.interlude-ar { font-size: clamp(26px, 7.6vw, 36px); }
.dua-ar { font-size: clamp(23px, 6.4vw, 28px); }
.verse-fr, .interlude-fr, .dua-fr { text-wrap: pretty; }

/* Nuancier : tient dans un écran de 360 px */
.chip { width: 88px; margin-left: -44px; padding: 6px 6px 0; }
.chip span { height: 112px; }
.chip figcaption { font-size: 7.5px; letter-spacing: .06em; }
.chip figcaption b { font-size: 13px; white-space: nowrap; }
.chips { height: 230px; }

/* Chiffres : Italiana a des chiffres « à l'ancienne » peu lisibles → Cormorant en chiffres alignés */
.flip-back b, .countdown b, .cal-title {
  font-family: var(--serif);
  font-weight: 500;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
}
.countdown b { font-weight: 400; }

/* =========================================================
   FX
   ========================================================= */
.grain { position: fixed; top: 0; bottom: 0; left: 50%; width: min(100%, var(--col)); transform: translateX(-50%); pointer-events: none; z-index: 40; background: var(--paper); opacity: .55; }
.petals { 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: 10px; height: 13px; border-radius: 80% 10% 80% 10%; background: linear-gradient(135deg, #a3283b, var(--wine)); will-change: transform, opacity; }
.fx i.light { background: linear-gradient(135deg, #f3d2cc, var(--blush)); }
.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(--wine); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- états initiaux (seulement si GSAP est chargé) ---------- */
.js-anim [data-reveal],
.js-anim [data-stagger] > *,
.js-anim .intro-end > * { opacity: 0; }
.js-anim .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) {
  .flip { width: 84px; height: 110px; }
  .countdown div { padding: 0 9px; }
  .chip { width: 96px; margin-left: -48px; }
}
