/* ── Noa & Kevin — élégant classique, accent silver ───────────────────────── */
/* Self-hosted Cormorant Garamond (latin + latin-ext, for FR accents & superscripts) */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/cormorant-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/cormorant-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Self-hosted Pinyon Script (calligraphy) for names + "Oui" */
@font-face {
  font-family: "Pinyon Script";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/pinyon-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Pinyon Script";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/pinyon-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+1E00-1E9F, U+1EF2-1EFF, U+2C60-2C7F, U+A720-A7FF;
}
:root {
  /* Texte = 5 neutres Pantone. Dots = 10 teintes phares (wave.js). Fond blanc. */
  --ivory: #fcfcfb;         /* fond blanc (Egret dispo si tu veux un crème) */
  --ivory-2: #f1ece2;       /* crème léger (état sélectionné) */
  --ink: #1e3a4c;           /* Poseidon — texte principal */
  --ink-soft: #6e6e6b;      /* Underworld — texte secondaire / corps */
  --silver: #c9a87c;        /* Candied Ginger — filets / hint */
  --silver-dark: #8a6a4f;   /* Toffee — sur-titres / labels */
  --silver-light: #e3d8c4;
  --line: #ddccb4;
  --accent: #8a6a4f;        /* Toffee — le "Oui", CTA (neutre, distinct du navy) */
  --maxw: 720px;
}
.script { font-family: "Pinyon Script", "Cormorant Garamond", cursive; font-weight: 400; }
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.serif { font-family: "Cormorant Garamond", Cormorant, Georgia, "Times New Roman", serif; }

/* Layout */
.page { min-height: 100svh; display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 56px 22px; }
.card { width: 100%; max-width: var(--maxw); text-align: center; }

/* Monogram + names */
.monogram { font-family: "Cormorant Garamond", Georgia, serif; font-size: 22px; letter-spacing: 6px;
  color: var(--silver-dark); text-transform: uppercase; }
.crest { display: block; width: 58px; height: auto; margin: 0 auto 8px; opacity: .9; }
.names { font-family: "Pinyon Script", "Cormorant Garamond", cursive; font-weight: 400;
  font-size: clamp(60px, 17vw, 118px); line-height: 1; letter-spacing: 0; margin: 6px 0 2px; color: var(--ink); }
.sedirons { text-transform: uppercase; letter-spacing: 7px; font-size: 14px; color: var(--silver-dark);
  font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; margin-top: 6px; }
.oui { font-family: "Pinyon Script", cursive; font-size: clamp(52px, 14vw, 92px); line-height: 1;
  color: var(--accent); margin: 2px 0 0; }
.kicker { text-transform: uppercase; letter-spacing: 4px; font-size: 12px; color: var(--silver-dark); }

/* Silver divider with a center diamond */
.rule { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 26px auto; max-width: 320px; }
.rule::before, .rule::after { content: ""; height: 1px; flex: 1;
  background: linear-gradient(90deg, transparent, var(--silver-light), var(--silver)); }
.rule::after { background: linear-gradient(90deg, var(--silver), var(--silver-light), transparent); }
.rule i { width: 20px; height: 20px; background: url("../images/bloom.svg") center / contain no-repeat; display: block; }

/* Event blocks — date-forward, airy (inspired ref) */
.event { margin: 0 auto; }
.event .kicker { margin-bottom: 14px; }
.event .date { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500;
  font-size: clamp(30px, 7vw, 46px); line-height: 1.08; color: var(--ink); font-variant-numeric: lining-nums; }
.event .time { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500;
  font-size: clamp(24px, 5.5vw, 36px); line-height: 1.15; color: var(--ink); margin-bottom: 18px; font-variant-numeric: lining-nums; }
.event .venue { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500;
  font-size: clamp(22px, 4.6vw, 30px); line-height: 1.2; }
.event .addr { color: var(--ink-soft); font-size: 15px; margin-top: 4px; line-height: 1.5; }
.event .blurb { color: var(--ink-soft); font-size: 16px; margin-top: 16px; max-width: 440px;
  margin-left: auto; margin-right: auto; }

/* Icon actions (itinéraire + agenda) */
.actions { display: flex; gap: 14px; justify-content: center; margin-top: 22px; }
.actions .ico { display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%;
  color: var(--silver-dark); text-decoration: none; transition: color .15s, border-color .15s, transform .15s; }
.actions .ico:hover { color: var(--accent); border-color: var(--silver); transform: translateY(-1px); }
.actions .ico svg { width: 21px; height: 21px; }

.intro { font-family: "Cormorant Garamond", Georgia, serif; color: var(--ink-soft);
  font-size: clamp(18px, 3.4vw, 22px); font-style: italic; line-height: 1.5; max-width: 480px; margin: 0 auto; }

/* Countdown */
.countdown { display: flex; gap: clamp(14px, 5vw, 40px); justify-content: center; margin: 30px 0 8px; }
.countdown .unit { min-width: 56px; }
.countdown .num { font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(40px, 10vw, 64px);
  line-height: 1; color: var(--ink); }
.countdown .lbl { text-transform: uppercase; letter-spacing: 2px; font-size: 11px; color: var(--silver-dark); margin-top: 6px; }
.savedate { text-transform: uppercase; letter-spacing: 5px; font-size: 13px; color: var(--silver-dark); margin-top: 18px; }

/* Form */
.rsvp { margin: 30px auto 0; max-width: 460px; text-align: left; }
.rsvp h3 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500; font-size: 30px;
  text-align: center; margin-bottom: 4px; }
.rsvp .sub { text-align: center; color: var(--ink-soft); font-size: 14px; margin-bottom: 22px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 13px; letter-spacing: .5px; color: var(--silver-dark);
  text-transform: uppercase; margin-bottom: 6px; }
.field label .opt { text-transform: none; letter-spacing: 0; color: var(--silver); font-size: 12px; }
.field input[type=text], .field input[type=number], .field textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; font: inherit; color: var(--ink); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--silver);
  box-shadow: 0 0 0 3px rgba(154,161,168,.18); }
.field textarea { min-height: 80px; resize: vertical; }
.choice { display: flex; gap: 10px; }
.choice label { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer;
  text-transform: none; letter-spacing: 0; color: var(--ink); font-size: 15px; margin: 0; }
.choice input { accent-color: var(--silver-dark); }
.choice label:has(input:checked) { border-color: var(--silver-dark); background: var(--ivory-2); }
.row { display: flex; gap: 14px; }
.row .field { flex: 1; }
.checks label { display: flex; align-items: center; gap: 10px; text-transform: none; letter-spacing: 0;
  color: var(--ink); font-size: 15px; margin-bottom: 8px; }
.checks input { accent-color: var(--silver-dark); width: 18px; height: 18px; }
.hidden { display: none !important; }

/* ── Full-screen scroll-snap deck (invitation pages) ───────────────────────── */
.deck { height: 100svh; overflow-y: auto; scroll-snap-type: y proximity; -webkit-overflow-scrolling: touch; scroll-behavior: smooth; }
.panel { min-height: 100svh; box-sizing: border-box; scroll-snap-align: start;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 60px 22px; text-align: center; position: relative; }
.panel-inner { width: 100%; max-width: 560px; position: relative; z-index: 1; }
.panel + .panel { border-top: 1px solid var(--line); }

/* Floral motifs (silver edelweiss-style sprigs) in opposite corners of each panel */
.panel::before, .panel::after { content: ""; position: absolute; width: 78px; height: 168px;
  background: url("../images/sprig.svg") center / contain no-repeat; opacity: .3; pointer-events: none; z-index: 0; }
.panel::before { top: 14px; right: 10px; transform: rotate(22deg); }
.panel::after { bottom: 14px; left: 10px; transform: rotate(202deg); }
@media (max-width: 430px) { .panel::before, .panel::after { width: 56px; height: 122px; opacity: .24; } }

.scrollhint { position: absolute; bottom: 24px; left: 0; right: 0; text-align: center;
  color: var(--silver-dark); font-size: 11px; letter-spacing: 3px; text-transform: uppercase; }
.scrollhint .arrow { display: block; font-size: 18px; margin-top: 8px; line-height: 1; animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@media (prefers-reduced-motion: reduce) { .scrollhint .arrow { animation: none; } }

.panel .event { margin: 0 auto; }
.event .note { color: var(--silver-dark); font-size: 14px; margin-top: 14px; font-style: italic; }
.blurb { color: var(--ink-soft); font-size: 16px; margin-top: 12px; max-width: 460px; margin-left: auto; margin-right: auto; }

/* Inline per-event RSVP control (mairie / soirée), lives inside its panel */
.evrsvp { margin: 30px auto 0; max-width: 420px; }
.evrsvp-q { text-transform: uppercase; letter-spacing: 2px; font-size: 12px; color: var(--silver-dark); margin-bottom: 14px; }
.evrsvp .choice { gap: 10px; }
.evrsvp-counts { margin-top: 20px; margin-bottom: 0; }

/* Full-screen thank-you overlay */
.thanksfull { position: fixed; inset: 0; background: var(--ivory); z-index: 20;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; }
.thanksfull h3 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500; font-size: clamp(38px, 9vw, 60px); }
.thanksfull p { color: var(--ink-soft); margin-top: 10px; max-width: 420px; }

button.submit { width: 100%; margin-top: 8px; padding: 13px; border: none; border-radius: 999px;
  cursor: pointer; font: inherit; letter-spacing: 2px; text-transform: uppercase; font-size: 13px;
  color: #fff; background: linear-gradient(180deg, #a37f5a 0%, var(--accent) 100%); }
button.submit:hover { filter: brightness(1.06); }
button.submit:disabled { opacity: .55; cursor: default; }
.formmsg { text-align: center; margin-top: 14px; font-size: 15px; min-height: 22px; }
.formmsg.ok { color: #2f7d57; }
.formmsg.err { color: #b23b3b; }

/* Thank-you state */
.thanks { text-align: center; padding: 10px 0; }
.thanks h3 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500; font-size: 34px; }
.thanks p { color: var(--ink-soft); margin-top: 6px; }

footer.fine { margin-top: 40px; font-size: 12px; color: var(--silver); letter-spacing: 1px; }

/* ── Wave prototype: fixed silver wave + fixed stage, text fades in place ───── */
.wave-page { background: var(--ivory); scrollbar-width: none; -ms-overflow-style: none; }
.wave-page::-webkit-scrollbar { width: 0; height: 0; display: none; }

.wavebg { position: fixed; left: 0; right: 0; bottom: 0; height: 34vh; z-index: 0; pointer-events: none; opacity: .88; }
.wavebg canvas { display: block; width: 100% !important; height: 100% !important; }
.wave-veil { position: fixed; left: 0; right: 0; bottom: 0; height: 40vh; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(252,252,251,.96) 0%, rgba(252,252,251,.62) 45%, rgba(252,252,251,0) 100%); }

/* invisible spacer that provides the scroll distance (set by story.js) */
.story { position: relative; z-index: -1; }

/* the stage is pinned: content never scrolls, it just cross-fades */
.stage { position: fixed; inset: 0; z-index: 1; }
.step { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  padding: clamp(34px, 7vh, 86px) 22px 38px; text-align: center; opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .55s ease, visibility .55s; }
.step.active { opacity: 1; visibility: visible; pointer-events: auto; }
@media (prefers-reduced-motion: reduce) { .step { transition: opacity .2s; } }
.step .inner { width: 100%; max-width: 480px; max-height: 84svh; overflow: visible; }

/* cover only: drop the content a touch lower + slightly larger intro line */
.step[data-step="0"] { padding-top: clamp(56px, 13vh, 140px); }
[data-section="cover"] .blk-p { font-size: clamp(18px, 4.2vw, 24px); }

/* landing: lift content toward the top too */
.wave-page .page { justify-content: flex-start; padding-top: clamp(60px, 14vh, 140px); }

/* compact, overflow-safe typography on the wave layout */
.wave-page .names { font-size: clamp(30px, 9.5vw, 60px); margin: 4px 0 0; white-space: nowrap; }
.wave-page .oui { font-size: clamp(42px, 12vw, 76px); }
.wave-page .intro { font-size: clamp(16px, 3.2vw, 19px); max-width: 360px; }
.wave-page .event .date { font-size: clamp(26px, 6vw, 38px); }
.wave-page .event .time { font-size: clamp(20px, 4.6vw, 28px); margin-bottom: 12px; }
.wave-page .event .venue { font-size: clamp(20px, 4.2vw, 26px); }
.wave-page .event .blurb { font-size: 15px; margin-top: 10px; max-width: 380px; }
.wave-page .evrsvp { margin-top: 16px; }
.wave-page .actions { margin-top: 14px; }

/* CMS block rendering: size = .blk-xl/l/s/p, font = .f-script/serif/sans, order = DOM order */
.sectiontext { width: 100%; }
.blk { margin: 0 auto; line-height: 1.15; max-width: 460px; }
.blk + .blk { margin-top: 9px; }
.blk-xl { font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(32px, 8.5vw, 52px); line-height: 1.06; color: var(--ink); font-variant-numeric: lining-nums; }
.blk-l  { font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(22px, 5vw, 32px); line-height: 1.18; color: var(--ink); font-variant-numeric: lining-nums; }
.blk-s  { text-transform: uppercase; letter-spacing: 4px; font-size: 12px; color: var(--silver-dark); margin-bottom: 16px; }
.blk-p  { font-size: clamp(16px, 3.3vw, 19px); color: var(--ink-soft); line-height: 1.55; margin-top: 16px; }
.blk-accent { color: var(--accent); }
.f-script { font-family: "Pinyon Script", cursive; }
.f-serif  { font-family: "Cormorant Garamond", Georgia, serif; }
.f-sans   { font-family: ui-sans-serif, system-ui, -apple-system, sans-serif; }
/* script glyphs need extra size to read */
.blk-xl.f-script { font-size: clamp(46px, 13vw, 86px); line-height: 1; }
.blk-l.f-script  { font-size: clamp(34px, 9vw, 56px); line-height: 1.05; }
.blk-p.f-script  { font-size: clamp(22px, 5vw, 30px); }
.sectiontext + .actions { margin-top: 26px; }
.rsvp .sectiontext { margin-bottom: 24px; }

.wave-scrollhint { position: fixed; bottom: 18px; left: 0; right: 0; text-align: center; z-index: 2;
  color: var(--silver-dark); font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  transition: opacity .4s; pointer-events: none; }
.wave-scrollhint .arrow { display: block; font-size: 18px; margin-top: 6px; animation: bob 1.8s ease-in-out infinite; }
