/* =========================================================
   NOVA STUDIO — Invitation digitale
   ========================================================= */

/* ---------- Palettes (une par modèle) ---------- */
:root, [data-model="nuit"] {
  --bg: #0b0b0d; --bg2: #16161a; --page-ink: #f3ece0; --page-muted: #a59d8f;
  --card: #141417; --card-ink: #f3ece0; --card-muted: #a39b8d; --card-line: rgba(201,164,92,.35);
  --gold: #c9a45c; --gold2: #f0d9a3; --gold3: #8a6a2c;
  --env: #17171a; --env2: #050506;
  --seal: #d2ad62; --seal2: #7d5d22; --seal-ink: #4a3410;
  --field: rgba(255,255,255,.04);
}
[data-model="ivoire"] {
  --bg: #f3ede2; --bg2: #e9dfcd; --page-ink: #3a3128; --page-muted: #8b7f70;
  --card: #fbf8f2; --card-ink: #3a3128; --card-muted: #8b7f70; --card-line: rgba(179,139,77,.4);
  --gold: #b38b4d; --gold2: #e2c891; --gold3: #7d5e2c;
  --env: #f1e9db; --env2: #d8cbb3;
  --seal: #c9aa6c; --seal2: #8f6f35; --seal-ink: #5a4218;
  --field: rgba(58,49,40,.04);
}
[data-model="bordeaux"] {
  --bg: #4a0f1c; --bg2: #300810; --page-ink: #f8eedf; --page-muted: #d9b9a8;
  --card: #fbf6ee; --card-ink: #4a0f1c; --card-muted: #8a6a62; --card-line: rgba(160,120,60,.45);
  --gold: #d6b77a; --gold2: #f3dfae; --gold3: #9a7638;
  --env: #5a1322; --env2: #2b060e;
  --seal: #e3e0da; --seal2: #a29d94; --seal-ink: #6b6760;
  --field: rgba(74,15,28,.04);
}
[data-model="sauge"] {
  --bg: #e7eadc; --bg2: #d6dcc4; --page-ink: #36402c; --page-muted: #6f7a60;
  --card: #fbfaf4; --card-ink: #36402c; --card-muted: #7a8270; --card-line: rgba(168,135,74,.45);
  --gold: #a8874a; --gold2: #dcc28c; --gold3: #6f5628;
  --env: #93a179; --env2: #66744d;
  --seal: #a3283a; --seal2: #5e0f1c; --seal-ink: #3d0711;
  --field: rgba(54,64,44,.04);
}
[data-model="minuit"] {
  --bg: #0e1830; --bg2: #08101f; --page-ink: #f2ecdf; --page-muted: #a7afc4;
  --card: #f6f2ea; --card-ink: #1b2647; --card-muted: #6e7690; --card-line: rgba(199,169,101,.5);
  --gold: #c7a965; --gold2: #f0dca5; --gold3: #8b7136;
  --env: #172650; --env2: #070e22;
  --seal: #cfb06c; --seal2: #7e6328; --seal-ink: #3e2f0c;
  --field: rgba(27,38,71,.04);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh;
  background: var(--bg); color: var(--page-ink);
  font-family: "Cormorant Garamond", "Amiri", Georgia, serif;
  font-size: 19px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.locked { overflow: hidden; height: 100vh; }
[dir="rtl"] body, body[dir="rtl"] { font-family: "Amiri", "Cormorant Garamond", serif; font-size: 18px; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }

.paper-noise::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: var(--noise); opacity: .55; mix-blend-mode: soft-light;
}

/* typographie */
.script { font-family: "Pinyon Script", "Aref Ruqaa", cursive; font-weight: 400; }
.caps {
  font-family: "Jost", "Amiri", sans-serif; font-weight: 400;
  text-transform: uppercase; letter-spacing: .32em; font-size: 11.5px;
}
.title-caps {
  font-family: "Marcellus", "Aref Ruqaa", serif; font-weight: 400;
  text-transform: uppercase; letter-spacing: .18em;
}
[dir="rtl"] .caps, [dir="rtl"] .title-caps { letter-spacing: 0; text-transform: none; }
[dir="rtl"] .caps { font-size: 14px; }
[dir="rtl"] .script { font-family: "Pinyon Script", "Aref Ruqaa", serif; }
[dir="rtl"] .date-short, [dir="rtl"] .closing .meta { direction: ltr; unicode-bidi: isolate; }

.gold-text {
  background: linear-gradient(100deg, var(--gold3) 0%, var(--gold) 22%, var(--gold2) 45%, var(--gold) 62%, var(--gold3) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 7s ease-in-out infinite;
}
@keyframes shine { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* =========================================================
   1. ENVELOPPE
   ========================================================= */
.env {
  position: fixed; inset: 0; z-index: 50;
  perspective: 1400px;
  background: var(--env2);
  display: block;
  transition: opacity .9s ease .2s, visibility 0s linear 1.1s;
}
.env.gone { opacity: 0; visibility: hidden; pointer-events: none; }
.env .base {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(0,0,0,0) 30%, rgba(0,0,0,.45) 100%),
    var(--env2);
}
.flapw {
  position: absolute; inset: 0;
  transition: transform 1.25s cubic-bezier(.65,.02,.25,1), opacity 1.1s ease;
  will-change: transform;
  filter: drop-shadow(0 0 14px rgba(0,0,0,.38));
}
.flap {
  position: absolute; inset: 0;
  background-color: var(--env);
  background-image: var(--noise), var(--pat-light), var(--pat-dark),
    radial-gradient(ellipse at 50% 45%, rgba(255,255,255,.10), rgba(0,0,0,.18) 80%);
  background-size: 260px 260px, 56px 56px, 56px 56px, 100% 100%;
  background-position: 0 0, 0 0, 1px 1px, 0 0;
}
.flapw.l { transform-origin: 0 50%; z-index: 1; }
.flapw.r { transform-origin: 100% 50%; z-index: 1; }
.flapw.b { transform-origin: 50% 100%; z-index: 2; }
.flapw.t { transform-origin: 50% 0; z-index: 3; }
.flapw.l .flap { clip-path: polygon(0 0, 54% 50%, 0 100%); }
.flapw.r .flap { clip-path: polygon(100% 0, 46% 50%, 100% 100%); }
.flapw.b .flap { clip-path: polygon(0 100%, 50% 47%, 100% 100%); background-color: color-mix(in srgb, var(--env) 92%, #000); }
.flapw.t .flap { clip-path: polygon(0 0, 100% 0, 50% 54%); background-color: color-mix(in srgb, var(--env) 96%, #fff); }

/* fines lignes dorées sur les bords des rabats */
.flap-line { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.flap-line path { fill: none; stroke: var(--gold); stroke-width: 1; opacity: .55; vector-effect: non-scaling-stroke; }

.env.open .flapw.l { transform: rotateY(118deg); opacity: 0; transition-delay: .55s; }
.env.open .flapw.r { transform: rotateY(-118deg); opacity: 0; transition-delay: .55s; }
.env.open .flapw.b { transform: rotateX(118deg); opacity: 0; transition-delay: .35s; }
.env.open .flapw.t { transform: rotateX(-118deg); opacity: 0; transition-delay: .2s; }

.seal {
  position: absolute; z-index: 5; left: 50%; top: 50%;
  width: 132px; height: 132px; margin: -66px 0 0 -66px;
  border: 0; padding: 0; background: none; border-radius: 50%;
  filter: drop-shadow(0 8px 14px rgba(0,0,0,.45));
  animation: sealPulse 2.6s ease-in-out infinite;
  -webkit-tap-highlight-color: transparent;
  transition: transform .6s cubic-bezier(.5,-0.4,.5,1.4), opacity .5s ease;
}
.seal svg { width: 100%; height: 100%; display: block; overflow: visible; }
.seal:focus-visible { outline: 2px solid var(--gold2); outline-offset: 6px; }
@keyframes sealPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.045); } }
.env.open .seal { animation: none; transform: scale(1.25) rotate(-12deg); opacity: 0; }
.seal::after { /* halo */
  content: ""; position: absolute; inset: -18px; border-radius: 50%;
  border: 1px solid var(--gold); opacity: .5;
  animation: halo 2.6s ease-out infinite;
}
@keyframes halo { 0% { transform: scale(.85); opacity: .6; } 100% { transform: scale(1.35); opacity: 0; } }

.env-top, .env-hint {
  position: absolute; left: 0; right: 0; z-index: 6; text-align: center;
  color: var(--gold2); transition: opacity .4s ease;
  text-shadow: 0 1px 8px rgba(0,0,0,.35);
}
.env-top { top: max(9vh, 48px); }
.env-top .env-names { font-size: 40px; line-height: 1.1; margin-top: 8px; color: var(--gold2); }
.env-hint { bottom: max(10vh, 56px); }
.env-hint span {
  display: inline-block; padding: 9px 18px; border-radius: 999px;
  background: rgba(0,0,0,.22); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
  animation: hintFloat 2.6s ease-in-out infinite;
}
@keyframes hintFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.env.open .env-top, .env.open .env-hint { opacity: 0; }
[data-model="ivoire"] .env-top, [data-model="ivoire"] .env-hint { color: var(--gold3); text-shadow: none; }
[data-model="ivoire"] .env-top .env-names { color: var(--gold3); }
[data-model="ivoire"] .env-hint span { background: rgba(255,255,255,.35); }

/* lumière qui jaillit à l'ouverture */
.burst {
  position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--gold2) 80%, #fff) 0%, transparent 55%);
}
.env.open .burst { animation: burst 1.4s ease-out .15s forwards; }
@keyframes burst { 0% { opacity: 0; transform: scale(.4); } 35% { opacity: .9; } 100% { opacity: 0; transform: scale(2.2); } }

/* =========================================================
   2. COMMANDES FLOTTANTES
   ========================================================= */
.fab {
  position: fixed; z-index: 40; top: 14px; inset-inline-end: 14px;
  display: flex; gap: 8px; opacity: 0; transform: translateY(-10px);
  transition: opacity .6s ease, transform .6s ease;
}
.ready .fab { opacity: 1; transform: none; }
.fab button {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: var(--gold2); display: grid; place-items: center;
  font-family: "Amiri", serif; font-size: 17px; line-height: 1;
}
[data-model="ivoire"] .fab button, [data-model="sauge"] .fab button { color: var(--gold3); }
.fab button svg { width: 18px; height: 18px; }
.fab .music.playing svg { animation: spin 6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* =========================================================
   3. HERO
   ========================================================= */
.hero {
  position: relative; min-height: 100svh; min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 76px 22px 96px; text-align: center; overflow: hidden;
  background:
    radial-gradient(ellipse 80% 55% at 50% 38%, color-mix(in srgb, var(--gold) 14%, transparent), transparent 70%),
    linear-gradient(180deg, var(--bg2), var(--bg) 60%);
}
.sky { position: absolute; inset: 0; pointer-events: none; }
.sky i {
  position: absolute; width: 10px; height: 10px; color: var(--gold2);
  opacity: 0; animation: twinkle var(--d, 4s) ease-in-out var(--dl, 0s) infinite;
}
.sky i svg { width: 100%; height: 100%; display: block; }
@keyframes twinkle { 0%,100% { opacity: 0; transform: scale(.4) rotate(0); } 50% { opacity: .85; transform: scale(1) rotate(45deg); } }
[data-model="ivoire"] .sky i, [data-model="sauge"] .sky i { color: var(--gold); }

.moon {
  position: absolute; top: 9%; inset-inline-end: 12%; width: 64px; height: 64px; border-radius: 50%;
  box-shadow: inset -14px 6px 0 0 var(--gold2); transform: rotate(-20deg);
  filter: drop-shadow(0 0 18px color-mix(in srgb, var(--gold2) 50%, transparent));
  opacity: .9;
}

.arch {
  position: relative; width: min(100%, 380px);
  padding: 74px 26px 44px;
  border-radius: 190px 190px 14px 14px;
  border: 1px solid color-mix(in srgb, var(--gold) 70%, transparent);
  box-shadow: inset 0 0 0 7px color-mix(in srgb, var(--bg) 0%, transparent), inset 0 0 0 8px color-mix(in srgb, var(--gold) 35%, transparent);
  background: color-mix(in srgb, var(--bg) 40%, transparent);
}
.arch .arch-star { position: absolute; top: -15px; left: 50%; width: 30px; height: 30px; margin-left: -15px; color: var(--gold); background: var(--bg2); padding: 3px; border-radius: 50%; }
.arch-photo {
  width: 170px; height: 170px; margin: -30px auto 22px; border-radius: 50%;
  background-size: cover; background-position: center;
  border: 1px solid var(--gold); box-shadow: 0 0 0 6px color-mix(in srgb, var(--bg) 60%, transparent), 0 0 0 7px color-mix(in srgb, var(--gold) 40%, transparent);
}
.hero .k1 { color: var(--gold); margin: 0 0 10px; }
.hero .k2 { color: var(--page-muted); margin: 0 0 18px; font-size: 10.5px; }
[dir="rtl"] .hero .k2 { font-size: 15px; }
.names { margin: 0; line-height: 1; font-size: clamp(52px, 15vw, 74px); }
.names span { display: block; }
.names .amp { font-size: .5em; margin: 8px 0 4px; color: var(--page-muted); }
[dir="rtl"] .names { font-size: clamp(46px, 13vw, 64px); line-height: 1.25; }
.divider { display: block; width: 190px; height: 18px; margin: 22px auto 16px; color: var(--gold); }
.date-short { font-family: "Marcellus", serif; letter-spacing: .4em; font-size: 17px; margin: 0; padding-inline-start: .4em; }
.date-long { margin: 6px 0 0; color: var(--page-muted); font-style: italic; font-size: 17px; }
[dir="rtl"] .date-long { font-style: normal; }

.discover {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-decoration: none; color: var(--gold);
}
.discover svg { width: 18px; height: 18px; animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* entrée du hero après ouverture */
.hero .enter { opacity: 0; transform: translateY(18px); transition: opacity 1.1s ease, transform 1.1s cubic-bezier(.2,.7,.2,1); }
.ready .hero .enter { opacity: 1; transform: none; }
.ready .hero .enter:nth-child(2) { transition-delay: .15s; }
.ready .hero .enter:nth-child(3) { transition-delay: .3s; }
.ready .hero .enter:nth-child(4) { transition-delay: .45s; }
.ready .hero .enter:nth-child(5) { transition-delay: .6s; }
.ready .hero .enter:nth-child(6) { transition-delay: .75s; }
.ready .hero .enter:nth-child(7) { transition-delay: .9s; }

/* feuillage (Jardin de Sauge) */
.leaves { position: absolute; width: 150px; height: 150px; color: color-mix(in srgb, var(--page-ink) 55%, var(--bg)); opacity: .55; pointer-events: none; }
.leaves.a { top: 18px; left: -18px; }
.leaves.b { bottom: 40px; right: -18px; transform: rotate(180deg); }

/* =========================================================
   4. SECTIONS / CARTES
   ========================================================= */
main { position: relative; padding: 8px 16px 40px; }
.sec { max-width: 460px; margin: 0 auto 22px; }
.card {
  position: relative; overflow: hidden;
  background: var(--card); color: var(--card-ink);
  border-radius: 16px; padding: 42px 26px 38px; text-align: center;
  box-shadow: 0 18px 40px -22px rgba(0,0,0,.45), 0 0 0 1px var(--card-line);
}
.card::before { /* double filet intérieur */
  content: ""; position: absolute; inset: 9px; border-radius: 10px; pointer-events: none;
  border: 1px solid var(--card-line);
}
.card .corner { position: absolute; width: 26px; height: 26px; color: var(--gold); pointer-events: none; }
.card .corner.tl { top: 15px; left: 15px; }
.card .corner.tr { top: 15px; right: 15px; transform: scaleX(-1); }
.card .corner.bl { bottom: 15px; left: 15px; transform: scaleY(-1); }
.card .corner.br { bottom: 15px; right: 15px; transform: scale(-1,-1); }
.card h2 { margin: 0; font-size: 21px; letter-spacing: .14em; color: var(--card-ink); }
.card .sub { margin: 6px 0 0; color: var(--card-muted); font-style: italic; font-size: 17px; }
[dir="rtl"] .card .sub { font-style: normal; }
.card .h-script { font-size: 40px; line-height: 1.1; margin: 2px 0 0; color: var(--gold); }
[dir="rtl"] .card .h-script { font-size: 32px; }
.card .divider { margin: 16px auto 20px; width: 150px; }
.card p.txt { margin: 0 auto; max-width: 340px; font-size: 19.5px; }
.icon-top { width: 40px; height: 40px; color: var(--gold); margin: 0 auto 12px; display: block; }

/* reveal */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.rv.in { opacity: 1; transform: none; }

/* boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; min-height: 44px;
  border: 1px solid var(--gold); background: transparent; color: var(--card-ink);
  font-family: "Jost", "Amiri", sans-serif; font-size: 11.5px; letter-spacing: .24em; text-transform: uppercase;
  text-decoration: none; transition: background .25s, color .25s, transform .15s;
}
[dir="rtl"] .btn { letter-spacing: 0; font-size: 15px; }
.btn:hover { background: color-mix(in srgb, var(--gold) 14%, transparent); }
.btn:active { transform: scale(.97); }
.btn svg { width: 15px; height: 15px; }
.btn.solid { background: var(--gold); color: #fff; border-color: var(--gold); }
[data-model="nuit"] .btn.solid { color: #1a1408; }
.btn.solid:hover { background: var(--gold3); border-color: var(--gold3); color: #fff; }
.btn-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }

/* compte à rebours */
.cd { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 4px; }
.cd div {
  border: 1px solid var(--card-line); border-radius: 10px; padding: 12px 2px 9px;
  background: var(--field);
}
.cd b { display: block; font-family: "Marcellus", serif; font-weight: 400; font-size: 30px; line-height: 1.05; color: var(--card-ink); font-variant-numeric: tabular-nums; }
.cd span { display: block; margin-top: 4px; font-size: 9.5px; color: var(--card-muted); letter-spacing: .18em; }
[dir="rtl"] .cd span { font-size: 13px; letter-spacing: 0; }
.cd-done { font-size: 34px; color: var(--gold); margin: 6px 0 0; }
.cd-date { margin: 18px 0 0; color: var(--card-muted); font-style: italic; }

/* programme (timeline) */
.tl { position: relative; text-align: start; margin: 4px auto 0; max-width: 320px; padding: 0; list-style: none; }
.tl::before { content: ""; position: absolute; top: 8px; bottom: 8px; inset-inline-start: 62px; width: 1px; background: var(--card-line); }
.tl li { position: relative; display: grid; grid-template-columns: 62px 1fr; gap: 0 22px; padding: 0 0 22px; }
.tl li:last-child { padding-bottom: 0; }
.tl li::before {
  content: ""; position: absolute; top: 8px; inset-inline-start: 58px; width: 9px; height: 9px; transform: rotate(45deg);
  background: var(--card); border: 1px solid var(--gold);
}
.tl .t { font-family: "Marcellus", serif; color: var(--gold); font-size: 17px; padding-top: 1px; text-align: end; padding-inline-end: 12px; }
.tl .w { font-family: "Marcellus", "Aref Ruqaa", serif; font-size: 18px; line-height: 1.3; }
.tl .d { display: block; color: var(--card-muted); font-size: 16.5px; font-style: italic; line-height: 1.4; margin-top: 2px; }
[dir="rtl"] .tl .d { font-style: normal; }

/* menu */
.menu-group { margin-top: 20px; }
.menu-group:first-of-type { margin-top: 0; }
.menu-group h3 { margin: 0 0 8px; color: var(--gold); font-weight: 400; }
.menu-group p { margin: 0; font-style: italic; font-size: 19px; line-height: 1.55; }
[dir="rtl"] .menu-group p { font-style: normal; }
.menu-sep { width: 7px; height: 7px; margin: 20px auto 0; transform: rotate(45deg); border: 1px solid var(--gold); }

/* lieu */
.venue-name { font-size: 40px; line-height: 1.15; margin: 6px 0 4px; color: var(--gold); }
[dir="rtl"] .venue-name { font-size: 30px; }
.venue-addr { color: var(--card-muted); margin: 0; }

/* dress code */
.swatches { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.swatches figure { margin: 0; }
.swatches i { display: block; width: 46px; height: 46px; border-radius: 50%; margin: 0 auto 8px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08), 0 0 0 4px var(--card), 0 0 0 5px var(--card-line); }
.swatches figcaption { font-size: 10px; color: var(--card-muted); }

/* FAQ */
.faq { text-align: start; margin-top: 4px; }
.faq details { border-bottom: 1px solid var(--card-line); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  list-style: none; cursor: pointer; padding: 14px 0; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font-size: 18.5px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--card-line); position: relative; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 1px; background: var(--gold); transform: translate(-50%,-50%); transition: transform .3s; }
.faq summary i::after { transform: translate(-50%,-50%) rotate(90deg); }
.faq details[open] summary i::after { transform: translate(-50%,-50%) rotate(0); }
.faq .ans { margin: 0 0 16px; color: var(--card-muted); font-style: italic; }
[dir="rtl"] .faq .ans { font-style: normal; }

/* RSVP */
.rsvp-deadline { color: var(--card-muted); margin: 0 0 22px; font-size: 10px; }
[dir="rtl"] .rsvp-deadline { font-size: 14px; }
form.rsvp { text-align: start; display: grid; gap: 18px; }
.field label, .field .lbl { display: block; margin-bottom: 7px; color: var(--card-muted); font-size: 10px; }
[dir="rtl"] .field label, [dir="rtl"] .field .lbl { font-size: 14px; }
.field input, .field textarea {
  width: 100%; border: 1px solid var(--card-line); background: var(--field); color: var(--card-ink);
  border-radius: 10px; padding: 12px 14px; font: inherit; font-size: 18px; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 20%, transparent); }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice button {
  border: 1px solid var(--card-line); background: var(--field); border-radius: 999px; padding: 12px 8px; min-height: 46px;
  font-size: 18px; font-style: italic; transition: all .25s;
}
[dir="rtl"] .choice button { font-style: normal; }
.choice button[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #fff; font-style: normal; }
[data-model="nuit"] .choice button[aria-pressed="true"] { color: #1a1408; }
.stepper { display: flex; align-items: center; justify-content: center; gap: 0; border: 1px solid var(--card-line); border-radius: 999px; width: max-content; margin: 0 auto; background: var(--field); }
.stepper button { width: 46px; height: 44px; border: 0; background: none; font-size: 22px; color: var(--gold); }
.stepper output { min-width: 44px; text-align: center; font-family: "Marcellus", serif; font-size: 20px; }
.guests-wrap { text-align: center; transition: opacity .3s; }
.guests-wrap[hidden] { display: none; }
.form-msg { text-align: center; min-height: 1em; margin: 0; color: var(--gold3); font-style: italic; font-size: 16px; }
.rsvp .btn { width: 100%; }
.rsvp-done { padding: 6px 0; }
.rsvp-done .check { width: 58px; height: 58px; margin: 0 auto 14px; color: var(--gold); }
.rsvp-done .check circle { stroke-dasharray: 160; stroke-dashoffset: 160; animation: draw 1s ease forwards; }
.rsvp-done .check path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .6s ease .7s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.linkish { background: none; border: 0; padding: 0; margin-top: 14px; color: var(--card-muted); text-decoration: underline; text-underline-offset: 4px; font-size: 16px; }

/* clôture */
.closing { text-align: center; padding: 50px 22px 30px; max-width: 460px; margin: 0 auto; }
.closing .names-sm { font-size: 50px; line-height: 1.1; margin: 10px 0 6px; }
[dir="rtl"] .closing .names-sm { font-size: 40px; }
.closing .meta { color: var(--page-muted); margin: 0; font-style: italic; }
.closing .linkish { color: var(--gold); }

.made-by {
  display: block; text-align: center; padding: 26px 16px 34px; color: var(--page-muted);
  text-decoration: none; font-size: 9.5px; opacity: .8;
}
.made-by b { color: var(--gold); font-weight: 500; letter-spacing: .3em; }
[dir="rtl"] .made-by { font-size: 13px; }

/* barre démo (catalogue) */
.demo-bar { direction: ltr;
  position: fixed; z-index: 45; left: 10px; right: 10px; bottom: 10px;
  display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 16px;
  background: rgba(15,14,12,.86); color: #f3ece0; border-radius: 18px;
  border: 1px solid rgba(201,164,92,.35);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
  max-width: 520px; margin: 0 auto;
  transform: translateY(140%); transition: transform .6s cubic-bezier(.2,.7,.2,1) .8s;
  font-family: "Jost", sans-serif;
}
.ready .demo-bar { transform: none; }
.demo-bar .back { color: #c9a45c; text-decoration: none; font-size: 22px; line-height: 1; padding: 4px; }
.demo-bar .info { flex: 1; min-width: 0; }
.demo-bar .info small { display: block; font-size: 9.5px; letter-spacing: .28em; color: #c9a45c; }
.demo-bar .info strong { display: block; font-family: "Marcellus", serif; font-weight: 400; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-bar .order { background: #c9a45c; color: #15110a; text-decoration: none; border-radius: 12px; padding: 11px 14px; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; }
.has-demo .made-by { padding-bottom: 100px; }

@media (min-width: 700px) {
  main { padding-top: 20px; }
  .hero { padding-top: 90px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* =========================================================
   OUVERTURE VIDÉO (vidéo générée par IA, ex. Google Flow / Veo)
   ========================================================= */
.env-video { background: var(--env2); }
.env-video video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; background: var(--env2); display: block;
}
.env-video .vid-tap {
  position: absolute; inset: 0; z-index: 5; border: 0; padding: 0; margin: 0;
  background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.env-video .vid-tap:focus-visible { outline: 2px solid var(--gold2); outline-offset: -6px; }
.env-video .env-top, .env-video .env-hint { z-index: 6; pointer-events: none; transition: opacity .5s ease; }
.env-video.playing .env-top, .env-video.playing .env-hint { opacity: 0; }
.env-video.gone { transition: opacity .8s ease, visibility 0s linear .9s; }
