/* ================================================================
   Lara & Matthieu — feuille de style
   Palette tirée du faire-part : papier ivoire, vert séquoia,
   vert sauvignon, touches de terracotta.
   ================================================================ */

:root {
  --paper:      #FAF7F0;
  --paper-2:    #F2ECE0;
  --white:      #FFFFFF;
  --ink:        #2C372D;
  --ink-soft:   #4E5A4B;
  --sequoia:    #3B4A3C;
  --fern:       #56703F;
  --sauvignon:  #9DAB7A;
  --leaf:       #8A9B62;
  --terracotta: #A85A3F;
  --line:       rgba(59, 74, 60, .15);

  --f-script: 'Pinyon Script', 'Snell Roundhand', cursive;
  --f-serif:  'Playfair Display', Georgia, 'Times New Roman', serif;
  --f-sans:   'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --gutter: clamp(1rem, 4.5vw, 2.5rem);
  --arch: 999px 999px 8px 8px;
  --shadow: 0 26px 60px -30px rgba(44, 55, 45, .5);
  --topbar: 64px;
}

/* ─────────── Bases ─────────── */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar) + 12px);
  color-scheme: light;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 350 1.02rem/1.75 var(--f-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, p, figure, ul, ol, dl, dd { margin: 0; }
a { color: inherit; }
strong { font-weight: 500; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--sauvignon); color: #fff; }
:focus-visible { outline: 2px solid var(--fern); outline-offset: 3px; }

/* Langue : on masque la version qui n'est pas choisie */
html.fr [lang="en"], html.en [lang="fr"] { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.amp { font-family: var(--f-script); color: var(--sauvignon); }
.icon {
  fill: none; stroke: currentColor; stroke-width: 1.3;
  stroke-linecap: round; stroke-linejoin: round;
}
.sprig { display: block; width: 96px; height: 20px; margin: 1.1rem auto 0; color: var(--sauvignon); }
.center { text-align: center; margin-top: 2.2rem; }
.nowrap { white-space: nowrap; }
h1, h2, h3, h4, legend, .hero-invite, .section-lede, .chapter-cap, .gate-hint,
.day-card-text, .card-title, .venue-text p, .gift > p, .rsvp-done-text { text-wrap: balance; }

/* ─────────── Boutons & champs ─────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 50px; padding: .85rem 1.8rem;
  border-radius: 999px; border: 1px solid transparent;
  font: 500 .74rem/1.2 var(--f-sans); letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .25s, color .25s, border-color .25s, opacity .25s;
}
.btn-primary { background: var(--sequoia); color: var(--paper); }
.btn-primary:hover { background: var(--ink); }
.btn-ghost { background: transparent; color: var(--sequoia); border-color: rgba(59, 74, 60, .35); }
.btn-ghost:hover { border-color: var(--sequoia); background: rgba(59, 74, 60, .05); }
.btn-small { min-height: 40px; padding: .55rem 1.15rem; font-size: .68rem; letter-spacing: .16em; }
.btn-block { width: 100%; }
.btn[aria-disabled="true"], .btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.is-busy { pointer-events: none; opacity: .8; }
.btn.is-busy::after {
  content: ''; width: 14px; height: 14px; border-radius: 50%;
  border: 1.5px solid currentColor; border-right-color: transparent;
  animation: spin .8s linear infinite;
}
.icon-btn { width: 20px; height: 20px; margin: -4px 0; }
.btn-row { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; margin-top: 1.6rem; }

.link {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: inherit; text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: var(--sauvignon);
}
.link:hover { text-decoration-color: currentColor; }

.input {
  width: 100%; min-height: 50px; padding: .8rem 1rem;
  background: var(--white); color: var(--ink);
  border: 1px solid rgba(59, 74, 60, .22); border-radius: 12px;
  font-size: 1rem; font-weight: 400; line-height: 1.4;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.input::placeholder { color: rgba(78, 90, 75, .5); }
.input:focus { outline: none; border-color: var(--fern); box-shadow: 0 0 0 3px rgba(86, 112, 63, .16); }
textarea.input { resize: vertical; min-height: 96px; }
select.input {
  cursor: pointer; padding-right: 2.6rem;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--fern) 50%),
    linear-gradient(135deg, var(--fern) 50%, transparent 50%);
  background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.form-error {
  margin-top: 1rem; padding: .8rem 1rem; border-radius: 10px;
  background: rgba(168, 90, 63, .08); border-left: 3px solid var(--terracotta);
  color: #7E3F2A; font-size: .92rem; line-height: 1.55; text-align: left;
}
.form-error a { color: inherit; font-weight: 500; }

/* ─────────── Choix de langue ─────────── */
.lang-switch {
  display: inline-flex; align-items: center; gap: .1rem;
  font: 500 .7rem/1 var(--f-sans); letter-spacing: .14em; color: var(--ink-soft);
}
.lang-switch button {
  background: none; border: 0; cursor: pointer; padding: .55rem .45rem;
  letter-spacing: inherit; opacity: .5; transition: opacity .2s;
}
.lang-switch button:hover { opacity: .85; }
.lang-switch button[aria-pressed="true"] {
  opacity: 1; color: var(--sequoia);
  text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--sauvignon);
}

/* Version « pastille » : FR | EN bien visible, la langue active est remplie */
.lang-pill {
  gap: 0; padding: 2px; border-radius: 999px;
  border: 1px solid rgba(59, 74, 60, .3); background: rgba(255, 255, 255, .6);
}
.lang-pill > span[aria-hidden] { display: none; }
.lang-pill button { padding: .42rem .7rem; border-radius: 999px; opacity: 1; color: var(--ink-soft); line-height: 1; }
.lang-pill button[aria-pressed="true"] { background: var(--sequoia); color: var(--paper); text-decoration: none; }

/* Contenu qui change une fois la réponse envoyée */
html:not(.has-answered) .if-answered, html.has-answered .if-pending { display: none !important; }

/* ═══════════════════ ENTRÉE ═══════════════════ */
.gate {
  position: fixed; inset: 0; z-index: 100;
  display: flex; overflow-y: auto; -webkit-overflow-scrolling: touch;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(157, 171, 122, .10), transparent 60%),
    var(--paper);
  transition: opacity .8s ease, visibility .8s;
}
.gate::before {           /* filet façon papeterie */
  content: ''; position: fixed; inset: 10px; pointer-events: none;
  border: 1px solid rgba(157, 171, 122, .45); border-radius: 4px;
}
.is-in .gate { opacity: 0; visibility: hidden; pointer-events: none; }
html:not(.is-in) body { overflow: hidden; }
html:not(.is-in) .topbar { visibility: hidden; }

.gate-lang { position: fixed; top: 18px; right: 22px; z-index: 2; }
.gate-inner {
  margin: auto; width: 100%; max-width: 500px;
  padding: 3.6rem calc(var(--gutter) + 10px) 3rem; text-align: center;
}
.gate-drawing { width: 100%; max-width: 400px; margin: 0 auto 1.4rem; mix-blend-mode: multiply; }
.gate-kicker {
  font: italic 400 1.05rem/1.4 var(--f-serif); color: var(--ink-soft);
}
.gate-names {
  font: 400 clamp(3.1rem, 13vw, 4.4rem)/1.08 var(--f-script);
  color: var(--fern); margin: .1rem 0 .5rem;
}
.gate-date { font: 400 1rem/1.4 var(--f-serif); letter-spacing: .32em; color: var(--ink); }
.gate-place {
  margin-top: .45rem; font: 400 .7rem/1.4 var(--f-sans);
  letter-spacing: .42em; text-transform: uppercase; color: var(--terracotta);
}
.gate-form { margin-top: 2.2rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.gate-label { display: block; font: 400 1.4rem/1.3 var(--f-serif); color: var(--sequoia); }
.gate-hint { margin: .5rem auto 1.3rem; max-width: 36ch; font-size: .95rem; line-height: 1.6; color: var(--ink-soft); }
.gate-field { display: flex; gap: .6rem; }
.gate-field .input { flex: 1; min-width: 0; text-align: center; }
.demo-note {
  margin-top: 1.4rem; font-size: .82rem; color: var(--ink-soft);
  background: rgba(157, 171, 122, .16); border-radius: 999px; padding: .5rem 1rem; display: inline-block;
}
@media (max-width: 420px) {
  .gate-field { flex-direction: column; }
}

/* ═══════════════════ EN-TÊTE ═══════════════════ */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  height: var(--topbar);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0 var(--gutter);
  background: rgba(250, 247, 240, .9);
  -webkit-backdrop-filter: saturate(1.2) blur(12px); backdrop-filter: saturate(1.2) blur(12px);
  transition: box-shadow .3s;
}
.topbar.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.monogram {
  font: 400 1.9rem/1 var(--f-script); color: var(--fern); text-decoration: none;
  padding: .2rem .1rem; flex-shrink: 0;
}
.monogram span { color: var(--sauvignon); margin: 0 .08em; }
.nav { display: none; gap: clamp(1rem, 2vw, 1.9rem); }
.nav a {
  position: relative; padding: .5rem 0;
  font: 400 .7rem/1 var(--f-sans); letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-soft); text-decoration: none; transition: color .2s;
}
.nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--sauvignon); transform: scaleX(0); transition: transform .3s;
}
.nav a:hover, .nav a.is-active { color: var(--sequoia); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.topbar-actions { display: flex; align-items: center; gap: .45rem; }
.topbar-lang { font-size: .64rem; }
@media (max-width: 480px) { .topbar-rsvp { padding: .55rem .85rem; letter-spacing: .1em; } }
@media (max-width: 359px) { .topbar-rsvp { display: none; } }   /* très petits écrans : le menu garde « Répondre » */

.burger {
  width: 44px; height: 44px; margin-right: -8px;
  display: grid; place-items: center;
  background: none; border: 0; cursor: pointer; color: var(--sequoia);
}
.burger-lines, .burger-lines::before, .burger-lines::after {
  display: block; width: 22px; height: 1.5px; background: currentColor; border-radius: 2px;
  transition: transform .3s, background-color .3s;
}
.burger-lines { position: relative; }
.burger-lines::before, .burger-lines::after { content: ''; position: absolute; left: 0; }
.burger-lines::before { top: -7px; }
.burger-lines::after  { top: 7px; }
.burger[aria-expanded="true"] .burger-lines { background: transparent; }
.burger[aria-expanded="true"] .burger-lines::before { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] .burger-lines::after  { transform: translateY(-7px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 55;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.2rem;
  padding: calc(var(--topbar) + 1rem) var(--gutter) 2rem;
  background: var(--paper); overflow-y: auto;
  animation: fadeIn .3s ease;
}
.menu-links { display: flex; flex-direction: column; align-items: center; gap: .35rem; }
.menu-links a {
  font: 400 1.6rem/1.3 var(--f-serif); color: var(--sequoia);
  text-decoration: none; padding: .35rem 1rem;
}
.menu-links a:hover { color: var(--fern); font-style: italic; }
.menu .lang-switch { font-size: .74rem; }
html.menu-open, html.menu-open body { overflow: hidden; }

@media (min-width: 1120px) {
  .nav { display: flex; }
  .burger, .menu { display: none !important; }
}

/* ═══════════════════ ACCUEIL ═══════════════════ */
.hero {
  display: grid; grid-template-columns: 1fr;
  padding-top: var(--topbar);
}
.hero-photo { padding: 1rem var(--gutter) 0; }
.hero-photo img {
  width: 100%; max-width: 440px; margin: 0 auto;
  aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%;
  border-radius: var(--arch); box-shadow: var(--shadow);
}
.hero-text { text-align: center; padding: 2.2rem var(--gutter) 4.5rem; }
.hero-hello {
  min-height: 1.6em;
  font: italic 400 1.12rem/1.5 var(--f-serif); color: var(--terracotta);
}
.hero-names {
  font: 400 clamp(2.5rem, 12.4vw, 6.2rem)/1.05 var(--f-script);
  color: var(--fern); margin: .2rem 0 .7rem;
}
.hero-invite { font: 400 1.08rem/1.5 var(--f-serif); color: var(--ink-soft); max-width: 30ch; margin: 0 auto; }
.hero-date { margin-top: 1.1rem; font: 400 clamp(1.2rem, 3.6vw, 1.5rem)/1.4 var(--f-serif); color: var(--ink); }
.hero-place {
  margin-top: .5rem; font: 400 .7rem/1.6 var(--f-sans);
  letter-spacing: .34em; text-transform: uppercase; color: var(--terracotta);
}
.hero-place span { white-space: nowrap; }
@media (max-width: 560px) {
  .hero-place span { display: block; }
  .hero-place .sep { display: none; }
}
.countdown {
  display: flex; justify-content: center; gap: clamp(1.4rem, 5vw, 2.4rem);
  margin: 2rem auto 0; padding: 1.1rem 0; max-width: 360px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.countdown > div { display: flex; flex-direction: column; align-items: center; min-width: 3.2rem; }
.cd-num { font: 400 clamp(1.8rem, 6vw, 2.3rem)/1 var(--f-serif); color: var(--sequoia); font-variant-numeric: lining-nums tabular-nums; }
.cd-lbl { margin-top: .45rem; font: 400 .62rem/1 var(--f-sans); letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft); }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; margin-top: 2rem; }
.hero-deadline { margin-top: 1rem; font-size: .88rem; color: var(--ink-soft); }

@media (max-width: 480px) {
  .hero-cta .btn { width: 100%; }
}
@media (min-width: 900px) {
  .hero {
    min-height: 100svh; grid-template-columns: 1fr 1fr; align-items: center;
    gap: clamp(2rem, 5vw, 5rem);
    padding: calc(var(--topbar) + 1.5rem) clamp(2rem, 6vw, 6rem) 2.5rem;
    max-width: 1320px; margin: 0 auto;
  }
  .hero-names { font-size: clamp(3.4rem, 5.6vw, 5.4rem); }
  .hero-invite { font-size: 1.2rem; }
  .hero-photo { order: 2; padding: 0; position: relative; }
  .hero-photo img { max-width: 520px; max-height: calc(100svh - var(--topbar) - 4rem); width: auto; aspect-ratio: 862 / 1150; }
  .hero-text { padding: 0; }
}

/* ═══════════════════ SECTIONS ═══════════════════ */
.section { padding: clamp(4.5rem, 11vw, 8rem) var(--gutter); }
.section--tint { background: var(--paper-2); }
.section-head { max-width: 640px; margin: 0 auto clamp(2.6rem, 6vw, 4rem); text-align: center; }
.eyebrow {
  font: 500 .7rem/1.4 var(--f-sans); letter-spacing: .3em; text-transform: uppercase;
  color: var(--terracotta); margin-bottom: .7rem;
}
.section-title {
  font: 400 clamp(2.9rem, 10vw, 4.4rem)/1.1 var(--f-script);
  color: var(--fern);
}
.section-lede { margin-top: 1.3rem; color: var(--ink-soft); }

/* ═══════════════════ PROGRAMME ═══════════════════ */
.day { max-width: 860px; margin: 0 auto; }
.day-head { text-align: center; margin-bottom: 2.4rem; }
.day-name { display: block; font: 400 clamp(1.5rem, 4.5vw, 1.9rem)/1.2 var(--f-serif); color: var(--sequoia); }
.day-sub {
  display: block; margin-top: .45rem;
  font: 500 .66rem/1 var(--f-sans); letter-spacing: .28em; text-transform: uppercase; color: var(--terracotta);
}

.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before {       /* la tige ondulée, comme sur le faire-part */
  content: ''; position: absolute; top: .4rem; bottom: 2.4rem; left: 20px; width: 16px; margin-left: -8px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='96' viewBox='0 0 16 96'%3E%3Cpath d='M8 0c7 16 7 32 0 48S1 80 8 96' fill='none' stroke='%239DAB7A' stroke-width='1.5'/%3E%3C/svg%3E") repeat-y center top / 16px 96px;
}
.tl-item {
  position: relative;
  display: grid; grid-template-columns: 40px 1fr 92px; gap: 0 1rem; align-items: start;
  padding-bottom: 2.4rem;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-leaf { grid-column: 1; grid-row: 1; justify-self: center; width: 20px; height: 12px; margin-top: .55rem; color: var(--leaf); }
.tl-body { grid-column: 2; grid-row: 1; }
.tl-art  {             /* dessins du père de Lara, tirés du faire-part */
  grid-column: 3; grid-row: 1; width: 92px; height: 80px;
  object-fit: contain; object-position: center top;
}
.tl-time { font: italic 400 1.05rem/1.4 var(--f-serif); color: var(--terracotta); }
.tl-title { font: 400 1.35rem/1.3 var(--f-serif); color: var(--sequoia); margin-top: .1rem; }
.tl-desc { font-size: .95rem; line-height: 1.6; color: var(--ink-soft); margin-top: .25rem; }

@media (min-width: 760px) {
  .timeline::before { left: 50%; }
  .tl-item { grid-template-columns: 1fr 64px 1fr; gap: 0 1.6rem; padding-bottom: 3rem; }
  .tl-leaf { grid-column: 2; }
  .tl-body { grid-column: 1; text-align: right; }
  .tl-art  { grid-column: 3; justify-self: start; width: 170px; height: 120px; object-position: left center; }
  .tl-item:nth-child(even) .tl-body { grid-column: 3; text-align: left; }
  .tl-item:nth-child(even) .tl-art  { grid-column: 1; justify-self: end; object-position: right center; }
  .tl-item:nth-child(even) .tl-leaf { transform: scaleX(-1); }
}

.day-card {
  position: relative; max-width: 560px; margin: clamp(3rem, 7vw, 4.5rem) auto 0;
  padding: 2.4rem 1.6rem 2.2rem; text-align: center;
  background: var(--paper); border: 1px solid rgba(157, 171, 122, .55);
}
.day-card::before {       /* double filet façon carton d'invitation */
  content: ''; position: absolute; inset: 6px; pointer-events: none;
  border: 1px solid rgba(157, 171, 122, .3);
}
.day-card-art { display: block; width: auto; height: 96px; margin: 0 auto 1rem; }
.day-card-art--wide { width: min(100%, 320px); height: auto; margin-top: .4rem; }
.day-card-tag { font: 500 .68rem/1.4 var(--f-sans); letter-spacing: .28em; text-transform: uppercase; color: var(--terracotta); }
.day-card-title { font: 400 1.7rem/1.25 var(--f-serif); color: var(--sequoia); margin-top: .35rem; }
.day-card-time { font: italic 400 1.05rem/1.5 var(--f-serif); color: var(--ink-soft); margin-top: .2rem; }
.day-card-text { margin: .8rem auto 0; max-width: 40ch; color: var(--ink-soft); }
.day-card-meta { margin-top: .9rem; font-size: .88rem; color: var(--fern); }
.day-card--friday { margin-top: 0; margin-bottom: clamp(3.5rem, 8vw, 5rem); background: var(--white); }
.day-card-flag {
  position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%);
  padding: .45rem 1rem; border-radius: 999px; white-space: nowrap;
  background: var(--sequoia); color: var(--paper);
  font: 500 .62rem/1.2 var(--f-sans); letter-spacing: .18em; text-transform: uppercase;
}

.dresscode {
  display: flex; flex-direction: column; align-items: center; gap: .3rem;
  margin: 2.8rem auto 0; text-align: center;
}
.dresscode-lbl { font: 500 .66rem/1 var(--f-sans); letter-spacing: .28em; text-transform: uppercase; color: var(--terracotta); }
.dresscode-val { font: italic 400 1.2rem/1.4 var(--f-serif); color: var(--sequoia); }

/* ═══════════════════ NOTRE HISTOIRE ═══════════════════ */
.story { max-width: 1040px; margin: 0 auto; display: grid; gap: clamp(3.8rem, 10vw, 7rem); }
.chapter { display: grid; gap: 1.6rem; align-items: center; }
.arch img, .frame img { width: 100%; object-fit: cover; box-shadow: var(--shadow); cursor: zoom-in; }
.arch { position: relative; }
.arch img { aspect-ratio: 3 / 4; border-radius: var(--arch); }
.frame img { aspect-ratio: 4 / 3; border-radius: 8px; }
.chapter > .arch { width: 100%; max-width: 380px; margin: 0 auto; }
.chapter-text { text-align: center; max-width: 440px; margin: 0 auto; }
.chapter-place {
  font: 500 .66rem/1.4 var(--f-sans); letter-spacing: .3em; text-transform: uppercase; color: var(--terracotta);
}
.chapter-place::after {
  content: ''; display: block; width: 36px; height: 1px; background: var(--sauvignon); margin: .9rem auto 0;
}
.chapter-cap { margin-top: .9rem; font: italic 400 clamp(1.2rem, 3.4vw, 1.5rem)/1.5 var(--f-serif); color: var(--sequoia); }

.chapter--wide { gap: 0; }
.chapter--wide .chapter-text {
  position: relative; z-index: 1; max-width: 520px; width: calc(100% - 2rem);
  margin: -2.6rem auto 0; padding: 1.6rem 1.4rem;
  background: var(--paper); box-shadow: 0 10px 30px -20px rgba(44, 55, 45, .4);
}
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(.8rem, 3vw, 2rem); max-width: 760px; margin: 0 auto; width: 100%; }
.duo .arch:nth-child(2) { margin-top: clamp(2rem, 8vw, 4.5rem); }
.chapter--finale > .arch { max-width: 440px; }

@media (min-width: 820px) {
  .chapter:not(.chapter--wide):not(.chapter--duo):not(.chapter--finale) {
    grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem);
  }
  .chapter:not(.chapter--wide):not(.chapter--duo):not(.chapter--finale) .chapter-text { text-align: left; margin: 0; }
  .chapter:not(.chapter--wide):not(.chapter--duo):not(.chapter--finale) .chapter-place::after { margin-left: 0; }
  .chapter--flip > .arch { order: 2; }
  .chapter--flip .chapter-text { justify-self: end; text-align: right !important; }
  .chapter--flip .chapter-place::after { margin-left: auto !important; margin-right: 0; }
  .chapter--wide .chapter-text { margin-top: -4rem; padding: 2rem 2.4rem; }
}

/* ═══════════════════ LE LIEU ═══════════════════ */
.venue { display: grid; gap: 2rem; max-width: 1040px; margin: 0 auto; align-items: center; }
.venue-drawing img, .orangerie img { mix-blend-mode: multiply; width: 100%; }
.venue-drawing figcaption, .orangerie figcaption {
  margin-top: .4rem; text-align: center;
  font: italic 400 .98rem/1.5 var(--f-serif); color: var(--ink-soft);
}
.venue-drawing figcaption::before, .venue-drawing figcaption::after,
.orangerie figcaption::before, .orangerie figcaption::after { content: '·'; color: var(--sauvignon); margin: 0 .6rem; }
.venue-text { text-align: center; }
.venue-name { font: 400 clamp(1.7rem, 5vw, 2.2rem)/1.2 var(--f-serif); color: var(--sequoia); }
.venue-address {
  margin: .5rem 0 1.2rem; font: 400 .72rem/1.6 var(--f-sans);
  letter-spacing: .26em; text-transform: uppercase; color: var(--terracotta);
}
.venue-text > p:not(.venue-address) { color: var(--ink-soft); max-width: 42ch; margin: 0 auto; }
.orangerie { max-width: 700px; margin: clamp(3rem, 8vw, 5rem) auto 0; }
@media (min-width: 860px) {
  .venue { grid-template-columns: 1.15fr .85fr; gap: 3.5rem; }
  .venue-text { text-align: left; }
  .venue-text > p:not(.venue-address) { margin: 0; }
  .venue-text .btn-row { justify-content: flex-start; }
}

/* ═══════════════════ CARTES (accès, hôtels) ═══════════════════ */
.cards { display: grid; gap: 1.1rem; max-width: 1040px; margin: 0 auto; }
@media (min-width: 760px) { .cards--2 { grid-template-columns: 1fr 1fr; gap: 1.4rem; } }
.card {
  position: relative; background: var(--white);
  border: 1px solid var(--line); border-radius: 14px;
  padding: 1.8rem 1.5rem 1.6rem;
}
.card p + p { margin-top: .8rem; }
.card > p:not([class]) { color: var(--ink-soft); font-size: .97rem; line-height: 1.7; }
.card-icon { width: 44px; height: 44px; color: var(--sequoia); opacity: .78; margin-bottom: .8rem; }
.card-badge {
  position: absolute; top: 1.4rem; right: 1.4rem;
  padding: .35rem .75rem; border-radius: 999px;
  background: rgba(157, 171, 122, .2); color: var(--fern);
  font: 500 .6rem/1.2 var(--f-sans); letter-spacing: .16em; text-transform: uppercase;
}
.card-title { font: 400 1.35rem/1.3 var(--f-serif); color: var(--sequoia); }
.card-sub {
  margin: .35rem 0 1rem; font: 500 .66rem/1.5 var(--f-sans);
  letter-spacing: .2em; text-transform: uppercase; color: var(--terracotta);
}
/* Hôtels : prix en haut à droite, nom cliquable (toute la carte l'est aussi) */
.card--hotel {
  display: flex; flex-direction: column;
  padding: 1.5rem 1.5rem 1.3rem; transition: border-color .25s, box-shadow .25s;
}
@media (min-width: 760px) { .card--hotel { min-height: 150px; } }
.card--hotel:hover { border-color: rgba(86, 112, 63, .45); box-shadow: 0 16px 36px -24px rgba(44, 55, 45, .45); }
.card--hotel .card-title { padding-right: 4.2rem; margin: 0 0 1rem; }
.hotel-price {
  position: absolute; top: 1.35rem; right: 1.4rem;
  font: 500 1rem/1 var(--f-serif); letter-spacing: .12em; color: var(--terracotta);
}
.hotel-link {
  color: inherit; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .3s, color .2s;
}
.hotel-link::after { content: ''; position: absolute; inset: 0; }
.card--hotel:hover .hotel-link { color: var(--fern); background-size: 100% 1px; }
.hotel-visit {
  margin-top: auto; font: 500 .66rem/1.4 var(--f-sans);
  letter-spacing: .2em; text-transform: uppercase; color: var(--fern);
}

.aside-box {
  max-width: 1040px; margin: 1.4rem auto 0; padding: 1.8rem 1.5rem;
  text-align: center; border: 1px dashed rgba(157, 171, 122, .7); border-radius: 14px;
}
.aside-box > p { color: var(--ink-soft); max-width: 52ch; margin: 0 auto; }
.aside-box .btn-row { margin-top: 1.2rem; }

/* ═══════════════════ LA RÉGION ═══════════════════ */
.todos { display: grid; gap: 0; max-width: 1040px; margin: 0 auto; }
.todo {
  display: grid; grid-template-columns: 64px 1fr; gap: 1.1rem; align-items: start;
  padding: 1.6rem 0; border-top: 1px solid var(--line);
}
.todo-art {
  width: 100%; height: auto; color: var(--sequoia); opacity: .75;
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.todo-kind { font: 500 .64rem/1.5 var(--f-sans); letter-spacing: .24em; text-transform: uppercase; color: var(--terracotta); }
.todo-name { font: 400 1.3rem/1.3 var(--f-serif); color: var(--sequoia); margin: .2rem 0 .35rem; }
.todo p:not(.todo-kind) { color: var(--ink-soft); font-size: .97rem; line-height: 1.65; }
.todo-link {
  display: inline-block; margin-top: .45rem; font-size: .86rem; color: var(--fern);
  text-decoration: none; border-bottom: 1px solid rgba(86, 112, 63, .35); word-break: break-word;
}
.todo-link:hover { border-bottom-color: var(--fern); }
@media (min-width: 760px) {
  .todos { grid-template-columns: 1fr 1fr; column-gap: 3.5rem; }
  .todo { grid-template-columns: 96px 1fr; gap: 1.5rem; padding: 2rem 0; }
}

/* ═══════════════════ LISTE ═══════════════════ */
.gift {
  position: relative; max-width: 600px; margin: 0 auto; padding: 2.6rem 1.6rem;
  text-align: center; background: var(--paper); border: 1px solid rgba(157, 171, 122, .55);
}
.gift::before { content: ''; position: absolute; inset: 6px; border: 1px solid rgba(157, 171, 122, .3); pointer-events: none; }
.gift > p { color: var(--ink-soft); }
.gift-soon { margin-top: 1rem; font-size: .85rem; font-style: italic; }

/* ═══════════════════ GALERIE ═══════════════════ */
.gallery { columns: 2; column-gap: 8px; max-width: 1180px; margin: 0 auto; }
.gallery figure {
  break-inside: avoid; margin: 0 0 8px; overflow: hidden; border-radius: 6px;
  background: var(--paper-2); cursor: zoom-in; position: relative;
}
.gallery figure:first-child { border-radius: var(--arch); }
.gallery img { width: 100%; transition: transform .8s cubic-bezier(.2, .7, .3, 1); }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6rem .8rem .6rem;
  font: italic 400 .9rem/1.3 var(--f-serif); color: #fff;
  background: linear-gradient(transparent, rgba(30, 36, 30, .55));
  opacity: 0; transition: opacity .35s;
}
.gallery figure:hover figcaption { opacity: 1; }
@media (min-width: 760px) { .gallery { columns: 3; column-gap: 12px; } .gallery figure { margin-bottom: 12px; } }

/* ═══════════════════ FAQ ═══════════════════ */
.faq { max-width: 760px; margin: 0 auto; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 1.25rem 2.6rem 1.25rem 0;
  font: 400 1.14rem/1.45 var(--f-serif); color: var(--sequoia);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ''; position: absolute; right: .4rem; top: 50%;
  width: 9px; height: 9px; margin-top: -7px;
  border-right: 1.5px solid var(--fern); border-bottom: 1.5px solid var(--fern);
  transform: rotate(45deg); transition: transform .3s;
}
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-item summary:hover { color: var(--fern); }
.faq-item > p { padding: 0 2.6rem 1.4rem 0; color: var(--ink-soft); }
.faq-item a { color: var(--fern); }

/* ═══════════════════ RSVP ═══════════════════ */
.rsvp { background: var(--sequoia); color: var(--paper); }
.rsvp-grid { display: grid; gap: 2.6rem; max-width: 1080px; margin: 0 auto; align-items: start; }
.rsvp-intro { text-align: center; }
.rsvp .eyebrow { color: #D9A58C; }
.rsvp .section-title { color: var(--paper); }
.rsvp-intro > p { margin: 1.2rem auto 0; max-width: 44ch; color: rgba(250, 247, 240, .78); }
.facts { display: grid; gap: 1.1rem; margin: 2.2rem auto 0; max-width: 360px; text-align: left; }
.facts > div { padding-left: 1rem; border-left: 1px solid rgba(157, 171, 122, .55); }
.facts dt { font: 500 .62rem/1.4 var(--f-sans); letter-spacing: .24em; text-transform: uppercase; color: var(--sauvignon); }
.facts dd { margin-top: .2rem; font-size: .96rem; line-height: 1.55; color: rgba(250, 247, 240, .88); }
.facts a { color: inherit; }

.rsvp-card {
  background: var(--paper); color: var(--ink);
  border-radius: 18px; padding: 1.8rem 1.2rem;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .5);
}
.rsvp-for { font-size: .95rem; color: var(--ink-soft); margin-bottom: 1.4rem; text-align: center; }
.rsvp-for strong { display: block; font: 400 1.35rem/1.35 var(--f-serif); color: var(--sequoia); margin-top: .15rem; }

.guest {
  border: 1px solid var(--line); border-radius: 14px; background: var(--white);
  padding: 1.2rem 1rem 1.3rem; margin: 0 0 1rem; min-width: 0;
}
.guest.has-error { border-color: var(--terracotta); box-shadow: 0 0 0 3px rgba(168, 90, 63, .12); }
.guest-name {        /* légende sortie de la bordure, posée dans le cadre */
  float: left; width: 100%; padding: 0 0 .7rem; margin-bottom: .2rem;
  border-bottom: 1px solid var(--line);
  font: italic 400 1.25rem/1.3 var(--f-serif); color: var(--sequoia);
}
.guest-name + * { clear: both; }
.q { border: 0; padding: 0; margin: 1rem 0 0; min-width: 0; }
.q-label { padding: 0; margin-bottom: .6rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .6rem; }
.q-day { font: 500 .68rem/1.4 var(--f-sans); letter-spacing: .2em; text-transform: uppercase; color: var(--terracotta); }
.q-what { font-size: .9rem; color: var(--ink-soft); }
.pills { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pill > span {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 48px; padding: .6rem .5rem; border-radius: 12px;
  border: 1px solid rgba(59, 74, 60, .22); background: var(--paper);
  font-size: .92rem; line-height: 1.25; cursor: pointer; transition: all .2s;
}
.pill > span:hover { border-color: var(--fern); }
.pill input:focus-visible + span { outline: 2px solid var(--fern); outline-offset: 2px; }
.pill input:checked + span { background: var(--sequoia); border-color: var(--sequoia); color: var(--paper); }
.pill input[value="non"]:checked + span { background: var(--ink-soft); border-color: var(--ink-soft); }
.pill input:checked + span::before { content: '✓'; margin-right: .4rem; font-size: .85em; }

.field { margin-top: 1.2rem; }
.field > label { display: block; margin-bottom: .45rem; font-size: .92rem; font-weight: 400; color: var(--sequoia); }
.field-help { margin-top: .35rem; font-size: .8rem; color: var(--ink-soft); }
.optional { color: var(--ink-soft); font-size: .82rem; }
.guest .field { margin-top: 1rem; }
.diet-other { margin-top: .5rem; }
#rsvp-submit { margin-top: 1.6rem; }

.rsvp-done { text-align: center; outline: none; }
.rsvp-done-title { font: 400 3.4rem/1.1 var(--f-script); color: var(--fern); }
.rsvp-done-text { margin: .6rem auto 1.4rem; max-width: 40ch; color: var(--ink-soft); }
.rsvp-summary { list-style: none; padding: 0; margin: 0 0 1.4rem; text-align: left; }
.rsvp-summary li { padding: .85rem 0; border-top: 1px solid var(--line); }
.rsvp-summary li:last-child { border-bottom: 1px solid var(--line); }
.rsvp-summary strong { display: block; font: 400 1.1rem/1.35 var(--f-serif); color: var(--sequoia); }
.rsvp-summary span.sum-line { font-size: .9rem; color: var(--ink-soft); }
.rsvp-other { margin-top: 1.1rem; font-size: .9rem; color: var(--ink-soft); }
.rsvp-next {
  margin: 0 0 1rem; padding: 1.3rem 1.2rem; border-radius: 14px;
  background: rgba(157, 171, 122, .16); text-align: center;
}
.rsvp-next-title { font: italic 400 1.2rem/1.3 var(--f-serif); color: var(--sequoia); }
.rsvp-next-text { margin: .4rem auto 1rem; max-width: 36ch; font-size: .92rem; line-height: 1.6; color: var(--ink-soft); }
.hero-done { color: var(--fern); font-weight: 400; }

/* ═══════════════════ RETOUR EN HAUT ═══════════════════ */
.to-top {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 50; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--sequoia); color: var(--paper);
  box-shadow: 0 10px 24px -10px rgba(28, 34, 29, .6);
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .3s, transform .3s, background-color .2s;
}
.to-top.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--ink); }
.to-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
html:not(.is-in) .to-top, html.menu-open .to-top, html.lb-open .to-top { display: none; }
.sum-yes { color: var(--fern); font-weight: 500; }
.sum-no  { color: var(--terracotta); font-weight: 500; }

@media (min-width: 900px) {
  .rsvp-grid { grid-template-columns: .85fr 1.15fr; gap: 4.5rem; }
  .rsvp-intro { text-align: left; position: sticky; top: calc(var(--topbar) + 2rem); }
  .rsvp-intro > p { margin-left: 0; }
  .facts { margin-left: 0; }
  .rsvp-card { padding: 2.4rem 2.2rem; }
  .rsvp-for { text-align: left; }
  .guest { padding: 1.4rem 1.4rem 1.5rem; }
}

/* ═══════════════════ PIED DE PAGE ═══════════════════ */
.footer { text-align: center; padding: 3.6rem var(--gutter) 3rem; background: var(--paper); }
.footer-names { font: 400 2.6rem/1.2 var(--f-script); color: var(--fern); }
.footer-date { margin-top: .5rem; font: 400 .7rem/1.9 var(--f-sans); letter-spacing: .24em; text-transform: uppercase; color: var(--ink-soft); }
.footer-date > span { display: block; }
@media (max-width: 560px) {
  .footer-date .nowrap { display: block; }
  .footer-date .sep { display: none; }
}
.footer-contact { margin-top: 1rem; font-size: .92rem; }
.footer-contact a { color: var(--fern); }
.footer-credit { margin-top: .8rem; font-size: .74rem; font-style: italic; color: var(--ink-soft); opacity: .8; }
.footer-switch { margin-top: 1.4rem; font-size: .82rem; color: var(--ink-soft); }

/* ═══════════════════ VISIONNEUSE ═══════════════════ */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 4rem 1rem 3rem; background: rgba(28, 34, 29, .96);
  animation: fadeIn .25s ease;
}
.lb-figure { margin: 0; display: flex; flex-direction: column; align-items: center; max-width: 100%; }
.lb-figure img {
  max-width: min(92vw, 1100px); max-height: calc(100svh - 9rem);
  width: auto; height: auto; border-radius: 4px; animation: zoomIn .35s cubic-bezier(.2, .7, .3, 1);
}
.lb-figure figcaption { margin-top: .9rem; min-height: 1.4em; font: italic 400 1rem/1.4 var(--f-serif); color: rgba(250, 247, 240, .82); }
.lb-btn {
  position: absolute; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: rgba(250, 247, 240, .06); border: 1px solid rgba(250, 247, 240, .28); color: var(--paper);
  font-size: 1.5rem; line-height: 1; transition: background-color .2s;
}
.lb-btn:hover { background: rgba(250, 247, 240, .16); }
.lb-close { top: 14px; right: 14px; font-size: 1.05rem; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
  .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; }
  .lb-prev { left: calc(50% - 60px); } .lb-next { right: calc(50% - 60px); }
  .lb-figure img { max-height: calc(100svh - 11rem); }
}
html.lb-open, html.lb-open body { overflow: hidden; }

/* ═══════════════════ ANIMATIONS ═══════════════════ */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes zoomIn { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .3, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.is-in .hero-text > * { animation: rise .9s both cubic-bezier(.2, .7, .3, 1); }
.is-in .hero-text > :nth-child(2) { animation-delay: .1s; }
.is-in .hero-text > :nth-child(3) { animation-delay: .2s; }
.is-in .hero-text > :nth-child(n+4) { animation-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Chiffres « modernes » pour les horaires (placé en dernier : le raccourci
   « font » plus haut remettrait sinon les chiffres à l'ancienne) */
.tl-time, .day-card-time, .hero-date, .facts dd, .card-sub, .gate-date { font-variant-numeric: lining-nums; }
