/* ============================================================
   Template-07 — Leslie & Benjamin — Mariage 8 Juin 2026
   Theme: Rose · Blanc · Champagne · Vert Sauge
   Mobile-first, bilingual FR/HE, RTL-ready
   ============================================================ */

/* ── Root ── */
:root {
  --sage: #5b8c7e;
  --sage-mid: #7aaa9c;
  --sage-light: #a8c8be;
  --sage-pale: #eef5f2;
  --rose: #c4849a;
  --rose-mid: #d4a5b8;
  --rose-light: #edd0dc;
  --rose-pale: #fdf3f7;
  --blush: #f9edf2;
  --gold: #c8a068;
  --champagne: #e6d1b0;
  --cream: #faf8f3;
  --cream-alt: #f5eee4;
  --dark: #1a1a22;
  --mid: #3d3d48;
  --soft: #7a7a88;
  --lighter: #b8b8c4;
  --white: #ffffff;

  --font-script: 'Great Vibes', 'Cormorant Garamond', Georgia, serif;
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Jost', 'Helvetica Neue', sans-serif;
  --font-hebrew: 'Heebo', 'Arial', sans-serif;

  --section-py: clamp(4rem, 9vw, 8rem);
  --container-px: clamp(1.25rem, 5vw, 2rem);
  --max-w: 1140px;

  --r-sm: 0.5rem;
  --r-md: 1rem;
  --r-lg: 1.75rem;
  --r-xl: 3rem;

  --sh-sm: 0 2px 10px rgba(26, 26, 34, .07);
  --sh-md: 0 8px 32px rgba(26, 26, 34, .10);
  --sh-lg: 0 24px 64px rgba(26, 26, 34, .14);

  --ease: cubic-bezier(.23, 1, .32, 1);
  --t-fast: 180ms;
  --t-mid: 400ms;
  --t-slow: 700ms;
}

/* ── Reset ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: 1rem;
}

:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 3px;
}

/* Safari iOS déclenche :focus-visible au tap — on supprime l'outline
   sur les éléments de navigation et boutons décoratifs */
.nav-brand:focus,
.nav-brand:focus-visible,
.nav-btn:focus,
.nav-btn:focus-visible,
.hero-rsvp-btn:focus,
.hero-rsvp-btn:focus-visible {
  outline: none;
}

.hp {
  display: none !important;
}

/* ── Hebrew (RTL) ── */
[lang="he"] body,
html[dir="rtl"] body {
  font-family: var(--font-hebrew);
}

html[dir="rtl"] .tl-item {
  flex-direction: row-reverse;
}

html[dir="rtl"] .tl-item-right {
  flex-direction: row;
}

html[dir="rtl"] .nav-links {
  flex-direction: row-reverse;
}

html[dir="rtl"] .field label {
  flex-direction: row-reverse;
}

html[dir="rtl"] .aside-box,
html[dir="rtl"] .aside-tip,
html[dir="rtl"] .aside-contact {
  text-align: right;
}

/* ── Scroll lock ── */
html.no-scroll,
body.no-scroll {
  overflow: hidden;
  height: 100%;
}

body.no-scroll {
  position: fixed;
  width: 100%;
  touch-action: none;
}

/* ── Container ── */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--container-px);
}

/* ── Section base ── */
.section {
  padding-block: var(--section-py);
}

.section-alt {
  background: var(--cream-alt);
}

.section-tag {
  font-family: var(--font-body);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: .75rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 400;
  color: var(--dark);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1rem;
  color: var(--soft);
  max-width: 520px;
  margin-inline: auto;
  font-weight: 300;
}

.section-head {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-block: 1.25rem;
  color: var(--rose-mid);
}

.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: var(--rose-light);
}

.section-divider svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* ── Reveal on scroll ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--t-slow) var(--ease),
    transform var(--t-slow) var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ═══════════════════════════════════════════
   INTRO / SPLASH SCREEN
══════════════════════════════════════════════ */
.intro {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  overflow-y: auto;
}

.intro-bg {
  position: absolute;
  inset: 0;
  background: url('../img/couple-sunset.jpg') center/cover no-repeat;
  transform: scale(1.0);
  transition: transform 12s ease;
}

.intro.loaded .intro-bg {
  transform: scale(1);
}

.intro-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(26, 20, 32, .72) 0%, transparent 55%),
    linear-gradient(to bottom, rgba(26, 20, 32, .45) 0%, transparent 45%),
    rgba(12, 10, 18, .22);
}

.intro-lang {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 10;
}

.intro-lang-btn {
  background: rgba(255, 255, 255, .18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .35);
  color: #fff;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .08em;
  padding: .45rem 1.1rem;
  border-radius: 99px;
  transition: background var(--t-fast), transform var(--t-fast);
  font-family: var(--font-body);
}

.intro-lang-btn:hover {
  background: rgba(255, 255, 255, .28);
  transform: scale(1.04);
}

.intro-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  padding-inline: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.intro-logo {
  width: clamp(60px, 12vw, 90px);
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .4));
  animation: floatLogo 5s ease-in-out infinite;
}

@keyframes floatLogo {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.intro-eyebrow {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-style: italic;
  font-weight: 400;
  letter-spacing: .03em;
  color: rgba(230, 209, 176, .92);
  margin-bottom: 1.25rem;
  max-width: 460px;
  line-height: 1.55;
  text-align: center;
}

.intro-names {
  font-family: var(--font-script);
  font-size: clamp(3rem, 10vw, 6.5rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.05;
  text-shadow: 0 4px 24px rgba(0, 0, 0, .45);
  margin-bottom: 0.5rem;
}

.intro-amp {
  font-family: var(--font-script);
  font-size: clamp(2rem, 6vw, 4rem);
  font-style: italic;
  color: var(--rose-mid);
  vertical-align: middle;
  margin-inline: .3em;
}

.intro-line {
  width: 80px;
  height: 1px;
  background: rgba(255, 255, 255, .4);
  margin: 1.1rem auto;
}

.intro-date {
  font-family: var(--font-body);
  font-size: clamp(.9rem, 2vw, 1.05rem);
  font-weight: 300;
  letter-spacing: .18em;
  color: rgba(255, 255, 255, .85);
  margin-bottom: 2.5rem;
}

.intro-cta {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  background: rgba(255, 255, 255, .15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255, 255, 255, .55);
  color: #fff;
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 400;
  letter-spacing: .1em;
  padding: .9rem 2rem;
  border-radius: 99px;
  transition: background var(--t-mid) var(--ease),
    border-color var(--t-mid),
    transform var(--t-fast),
    box-shadow var(--t-mid);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .25);
  cursor: pointer;
}

.intro-cta:hover {
  background: rgba(255, 255, 255, .26);
  border-color: rgba(255, 255, 255, .8);
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, .32);
}

.intro-cta svg {
  width: 18px;
  height: 18px;
  transition: transform var(--t-mid) var(--ease);
}

.intro-cta:hover svg {
  transform: translateY(3px);
}

/* Intro fade out */
.intro.hiding {
  opacity: 0;
  pointer-events: none;
  transition: opacity .9s var(--ease);
}

.intro.hidden {
  display: none;
}

/* Petals */
.intro-petals {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  overflow: hidden;
}

.petal {
  position: absolute;
  top: -10%;
  width: 8px;
  height: 12px;
  border-radius: 50% 0 50% 0;
  background: rgba(255, 200, 220, .55);
  animation: fall linear infinite;
}

@keyframes fall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: .8;
  }

  100% {
    transform: translateY(110vh) rotate(720deg);
    opacity: 0;
  }
}

/* Compact intro for short/narrow screens */
@media (max-height: 680px), (max-width: 360px) {
  .intro-inner {
    padding-block: .75rem;
  }

  .intro-logo {
    width: 50px;
    margin-bottom: .6rem;
  }

  .intro-eyebrow {
    font-size: .82rem;
    margin-bottom: .6rem;
    max-width: 300px;
  }

  .intro-names {
    font-size: 2.5rem;
    margin-bottom: .25rem;
  }

  .intro-date {
    margin-bottom: 1.25rem;
  }
}

/* ═══════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 800;
  transition: background var(--t-mid), box-shadow var(--t-mid);
}

.nav.scrolled {
  background: rgba(250, 248, 243, .96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 16px rgba(26, 26, 34, .08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding-inline: var(--container-px);
  max-width: calc(var(--max-w) + 2 * var(--container-px));
  margin-inline: auto;
}

.nav-brand {
  font-family: var(--font-script);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--white);
  transition: color var(--t-mid);
  display: flex;
  align-items: center;
  gap: .2em;
  letter-spacing: .02em;
}

.nav.scrolled .nav-brand {
  color: var(--dark);
}

.nav-amp {
  color: var(--rose);
  font-size: 1.1em;
}

.nav-links {
  display: none;
  align-items: center;
  gap: .25rem;
}

@media (min-width: 900px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .82rem;
  font-weight: 400;
  letter-spacing: .06em;
  color: rgba(255, 255, 255, .8);
  padding: .45rem .9rem;
  border-radius: 99px;
  transition: color var(--t-fast), background var(--t-fast);
}

.nav.scrolled .nav-link {
  color: var(--mid);
}

.nav-link:hover {
  color: var(--rose);
  background: var(--rose-pale);
}

.nav.scrolled .nav-link:hover {
  color: var(--rose);
}

.nav-link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.audio-btn {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .78rem;
  font-weight: 400;
  color: rgba(255, 255, 255, .8);
  padding: .4rem .9rem;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, .35);
  transition: all var(--t-fast);
  background: rgba(255, 255, 255, .1);
}

.nav.scrolled .audio-btn {
  color: var(--mid);
  border-color: var(--lighter);
  background: transparent;
}

.audio-btn:hover {
  background: rgba(255, 255, 255, .22);
  border-color: rgba(255, 255, 255, .6);
  color: #fff;
}

.nav.scrolled .audio-btn:hover {
  background: var(--rose-pale);
  border-color: var(--rose-light);
  color: var(--rose);
}

.audio-btn svg {
  width: 14px;
  height: 14px;
}

.audio-icon-off {
  display: none;
}

.audio-btn.is-on .audio-icon-on {
  display: none;
}

.audio-btn.is-on .audio-icon-off {
  display: block;
}

.lang-toggle {
  font-size: .78rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .85);
  padding: .4rem 1rem;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .1);
  letter-spacing: .04em;
  transition: all var(--t-fast);
  font-family: var(--font-body);
  display: inline-flex;
  align-items: center;
  gap: .3em;
  white-space: nowrap;
}

/* Code court visible mobile, nom complet visible desktop */
.lang-code { display: none; }

@media (max-width: 899px) {
  .lang-toggle {
    padding: .35rem .65rem;
    font-size: .72rem;
  }
  .lang-text { display: none; }
  .lang-code { display: inline; letter-spacing: .05em; }
}

html[dir="rtl"] .lang-toggle {
  font-family: var(--font-hebrew);
}

.nav.scrolled .lang-toggle {
  color: var(--mid);
  border-color: var(--lighter);
  background: transparent;
}

.lang-toggle:hover {
  background: rgba(255, 255, 255, .22);
  color: #fff;
}

.nav.scrolled .lang-toggle:hover {
  background: var(--sage-pale);
  border-color: var(--sage-light);
  color: var(--sage);
}

.burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: .4rem;
  border-radius: var(--r-sm);
}

@media (min-width: 900px) {
  .burger {
    display: none;
  }
}

.burger-line {
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: background var(--t-mid), transform var(--t-mid), opacity var(--t-fast);
}

.nav.scrolled .burger-line {
  background: var(--dark);
}

/* Mobile drawer */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 34, .5);
  backdrop-filter: blur(4px);
  z-index: 890;
}

.menu-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 88vw);
  height: 100dvh;
  background: var(--white);
  z-index: 900;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--t-mid) var(--ease);
  box-shadow: var(--sh-lg);
}

.menu-drawer.open {
  transform: none;
}

.menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--rose-light);
}

.menu-brand {
  font-family: var(--font-script);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--dark);
}

.menu-brand .nav-amp {
  color: var(--rose);
}

.menu-close {
  padding: .4rem;
  color: var(--soft);
  border-radius: var(--r-sm);
  transition: color var(--t-fast), background var(--t-fast);
}

.menu-close:hover {
  color: var(--rose);
  background: var(--rose-pale);
}

.menu-close svg {
  width: 20px;
  height: 20px;
}

.menu-links {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.menu-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .95rem;
  color: var(--mid);
  padding: .85rem 1rem;
  border-radius: var(--r-md);
  transition: color var(--t-fast), background var(--t-fast);
  font-weight: 400;
}

.menu-link:hover {
  color: var(--rose);
  background: var(--rose-pale);
}

.menu-link svg {
  width: 18px;
  height: 18px;
  color: var(--rose-mid);
  flex-shrink: 0;
}

.menu-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--rose-light);
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.audio-btn-full {
  width: 100%;
  justify-content: center;
  border: 1px solid var(--rose-light);
  color: var(--mid);
  background: var(--rose-pale);
  border-radius: var(--r-md);
  padding: .85rem 1.25rem;
  gap: .65rem;
  font-size: .9rem;
  transition: all var(--t-fast);
}

.audio-btn-full:hover {
  background: var(--rose-light);
  color: var(--rose);
}

.menu-hint {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .78rem;
  color: var(--lighter);
  justify-content: center;
}

.menu-hint svg {
  width: 14px;
  height: 14px;
}

/* ═══════════════════════════════════════════
   HERO
══════════════════════════════════════════════ */
.hero {
  position: relative;
  height: 100dvh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../img/couple-sunset.jpg') center/cover no-repeat;
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(20, 16, 28, .75) 0%, transparent 60%),
    rgba(16, 12, 22, .35);
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  padding-inline: 1.5rem;
}

.hero-tag {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-style: italic;
  font-weight: 400;
  letter-spacing: .03em;
  color: rgba(230, 209, 176, .92);
  margin-bottom: 1.25rem;
  max-width: 520px;
  margin-inline: auto;
  line-height: 1.55;
}

.hero-logo {
  width: clamp(55px, 10vw, 80px);
  margin: 0 auto 1.25rem;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, .5));
}

.hero-title {
  font-family: var(--font-script);
  font-size: clamp(3.5rem, 10vw, 6rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.05;
  text-shadow: 0 4px 24px rgba(0, 0, 0, .5);
  margin-bottom: .5rem;
}

.hero-amp {
  color: var(--rose-mid);
  margin-inline: .25em;
}

.hero-save {
  font-family: var(--font-body);
  font-size: .8rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .7);
  margin-top: 1.5rem;
  margin-bottom: .4rem;
}

.hero-date {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.5vw, 1.2rem);
  margin-top: 20px;
  font-weight: 300;
  letter-spacing: .18em;
  color: rgba(255, 255, 255, .9);
}

.hero-ctas {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
}

.hero-rsvp-btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: var(--rose);
  color: #fff;
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .09em;
  padding: .95rem 2.4rem;
  border-radius: 99px;
  box-shadow: 0 8px 28px rgba(196, 132, 154, .45);
  transition: background var(--t-mid) var(--ease),
    transform var(--t-fast),
    box-shadow var(--t-mid);
  white-space: nowrap;
}

.hero-rsvp-btn:hover {
  background: var(--rose-mid);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(196, 132, 154, .55);
}

.hero-rsvp-btn:active {
  transform: translateY(-1px);
}

.hero-scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  color: rgba(255, 255, 255, .5);
  font-size: .65rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  animation: bounce 2s ease-in-out infinite;
}

.hero-scroll svg {
  width: 20px;
  height: 20px;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

/* ═══════════════════════════════════════════
   COUNTDOWN
══════════════════════════════════════════════ */
.countdown-section {
  background: var(--cream-alt);
  padding-block: clamp(3.5rem, 7vw, 6rem);
  text-align: center;
}

.countdown-grid {
  display: flex;
  justify-content: center;
  gap: clamp(.75rem, 3vw, 1.5rem);
  flex-wrap: nowrap;
  margin-bottom: 1.75rem;
}

.cd-box {
  background: var(--white);
  border: 1.5px solid #e8e4de;
  border-radius: 14px;
  padding: clamp(1rem, 3vw, 1.75rem) clamp(1.25rem, 3.5vw, 2rem);
  min-width: clamp(72px, 18vw, 120px);
  box-shadow: var(--sh-sm);
  transition: box-shadow var(--t-mid), transform var(--t-mid);
}

.cd-box:hover {
  box-shadow: var(--sh-md);
  transform: translateY(-4px);
}

.cd-num {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 7vw, 4.25rem);
  font-weight: 400;
  color: var(--sage);
  line-height: 1;
  letter-spacing: -.02em;
}

.cd-label {
  font-family: var(--font-body);
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--soft);
  margin-top: .5rem;
}

.cd-date {
  font-family: var(--font-script);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-style: italic;
  color: var(--soft);
  font-weight: 400;
}

/* ═══════════════════════════════════════════
   NOTRE HISTOIRE
══════════════════════════════════════════════ */
.histoire-section {
  background: var(--cream);
}

.timeline {
  position: relative;
  max-width: 800px;
  margin-inline: auto;
  padding-block: 1rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1.5px;
  background: linear-gradient(to bottom, transparent, var(--rose-light) 15%, var(--rose-light) 85%, transparent);
  transform: translateX(-50%);
}

@media (max-width: 640px) {
  .timeline::before {
    left: 36px;
  }
}

.tl-item {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 2.5rem;
}

.tl-item:last-child {
  margin-bottom: 0;
}

/* Left item (icon right of left text, text on left) */
.tl-item {
  flex-direction: row;
}

/* Right item: text on right, icon on left side of timeline */
.tl-item-right {
  flex-direction: row-reverse;
}

.tl-side {
  flex: 1;
  padding-inline: 2rem;
  padding-block: .25rem;
}

.tl-item-right .tl-side {
  text-align: right;
}

@media (min-width: 641px) {
  html[dir="rtl"] .tl-item .tl-side {
    text-align: right;
  }

  html[dir="rtl"] .tl-item-right .tl-side {
    text-align: left;
  }
}

.tl-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 64px;
  position: relative;
}

.tl-dot {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--rose-pale);
  border: 2px solid var(--rose-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rose);
  flex-shrink: 0;
  transition: background var(--t-mid), border-color var(--t-mid), transform var(--t-mid);
  box-shadow: 0 4px 16px rgba(196, 132, 154, .18);
}

.tl-dot.sage {
  background: var(--sage-pale);
  border-color: var(--sage-light);
  color: var(--sage);
}

.tl-dot:hover,
.tl-item:hover .tl-dot {
  transform: scale(1.1);
}

.tl-dot svg {
  width: 22px;
  height: 22px;
}

.tl-line {
  flex: 1;
  width: 1.5px;
  background: var(--rose-light);
  margin-block: .4rem;
}

.tl-date {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--rose-mid);
  margin-bottom: .4rem;
}

.tl-title {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 600;
  color: var(--dark);
  margin-bottom: .6rem;
  line-height: 1.2;
}

.tl-text {
  font-size: .93rem;
  color: var(--soft);
  line-height: 1.75;
  font-weight: 300;
}

/* Quote */
.timeline-quote {
  text-align: center;
  margin-top: 3rem;
  padding: 3rem 2rem;
  position: relative;
}

.quote-heart {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--rose);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: #fff;
  box-shadow: 0 8px 24px rgba(196, 132, 154, .35);
}

.quote-heart svg {
  width: 24px;
  height: 24px;
}

.tl-quote-text {
  font-family: var(--font-script);
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-style: italic;
  color: var(--dark);
  line-height: 1.4;
  margin-bottom: 1rem;
}

.tl-quote-sub {
  font-size: .9rem;
  color: var(--soft);
  max-width: 520px;
  margin-inline: auto;
  line-height: 1.8;
  font-weight: 300;
}

/* Mobile timeline */
@media (max-width: 640px) {

  .tl-item,
  .tl-item-right {
    flex-direction: row !important;
  }

  .tl-center {
    width: 56px;
  }

  .tl-side {
    padding-inline: 1rem;
    text-align: left !important;
  }

  .timeline::before {
    left: 28px;
    transform: none;
  }
}

/* ═══════════════════════════════════════════
   GALERIE
══════════════════════════════════════════════ */
.galerie-section {
  background: var(--cream-alt);
}

.gallery-bento {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  grid-template-rows: 260px 260px;
  gap: 12px;
  max-width: 1000px;
  margin-inline: auto;
}

@media (max-width: 800px) {
  .gallery-bento {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
}

@media (max-width: 500px) {
  .gallery-bento {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
}

.g-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: var(--sh-sm);
  transition: box-shadow var(--t-mid), transform var(--t-mid);
}

.g-item:hover {
  box-shadow: var(--sh-md);
  transform: scale(1.015);
}

.g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease);
}

.g-item:hover img {
  transform: scale(1.07);
}

.g-tall {
  grid-row: span 2;
}

@media (max-width: 800px) {
  .g-tall {
    grid-row: span 1;
  }
}

.g-item {
  height: 260px;
}

.g-tall {
  height: auto;
}

@media (max-width: 800px) {

  .g-item,
  .g-tall {
    height: 220px;
  }
}

@media (max-width: 500px) {

  .g-item,
  .g-tall {
    height: 260px;
  }
}

.g-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 26, 34, .6) 0%, transparent 55%);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  opacity: 0;
  transition: opacity var(--t-mid);
}

.g-item:hover .g-overlay {
  opacity: 1;
}

.g-label {
  font-size: .8rem;
  font-weight: 400;
  color: rgba(255, 255, 255, .9);
  letter-spacing: .05em;
}

/* ═══════════════════════════════════════════
   DÉTAILS
══════════════════════════════════════════════ */
.details-section {
  background: var(--cream);
  text-align: center;
  padding-top: 0px !important;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 3vw, 1.5rem);
  max-width: 860px;
  margin-inline: auto;
}

@media (max-width: 640px) {
  .details-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
  }
}

.detail-card {
  background: var(--white);
  border: 1.5px solid var(--rose-light);
  border-radius: 16px;
  padding: 2rem 1.5rem 1.75rem;
  box-shadow: var(--sh-sm);
  transition: box-shadow var(--t-mid), transform var(--t-mid);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
}

.detail-card:hover {
  box-shadow: var(--sh-md);
  transform: translateY(-4px);
}

.detail-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--rose-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rose);
  margin-bottom: .25rem;
  flex-shrink: 0;
}

.detail-icon svg {
  width: 22px;
  height: 22px;
}

.detail-label {
  font-family: var(--font-body);
  font-size: .85rem;
  font-weight: 500;
  color: var(--mid);
  letter-spacing: .04em;
}

.detail-value {
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 3vw, 1.5rem);
  font-weight: 400;
  color: var(--sage);
  line-height: 1.2;
}

.detail-sub {
  font-size: .82rem;
  color: var(--soft);
  font-weight: 300;
  line-height: 1.55;
}

/* Maps link */
.detail-map-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .78rem;
  color: var(--rose);
  border: 1px solid var(--rose-light);
  padding: .3rem .85rem;
  border-radius: 99px;
  margin-top: .25rem;
  transition: background var(--t-fast), border-color var(--t-fast);
  font-weight: 400;
}

.detail-map-link:hover {
  background: var(--rose-pale);
  border-color: var(--rose-mid);
}

.detail-map-link svg {
  width: 13px;
  height: 13px;
}

/* ═══════════════════════════════════════════
   RSVP
══════════════════════════════════════════════ */
.rsvp-section {
  background: var(--blush);
}

.rsvp-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .rsvp-grid {
    grid-template-columns: 1fr;
  }
}

/* Form */
.form {
  background: var(--white);
  border: 1.5px solid var(--rose-light);
  border-radius: 20px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--sh-sm);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: .45rem;
}

.field label {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .82rem;
  font-weight: 500;
  color: var(--mid);
  letter-spacing: .02em;
}

.field label svg {
  width: 14px;
  height: 14px;
  color: var(--rose-mid);
  flex-shrink: 0;
}

.field input,
.field select,
.field textarea {
  border: 1.5px solid #e4ddd8;
  border-radius: var(--r-md);
  padding: .75rem 1rem;
  color: var(--dark);
  font-size: .95rem;
  background: var(--cream);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  width: 100%;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--rose-mid);
  box-shadow: 0 0 0 3px rgba(212, 165, 184, .18);
  background: var(--white);
}

.field input[aria-invalid="true"] {
  border-color: rgba(220, 80, 80, .5);
}

.field textarea {
  resize: vertical;
  min-height: 90px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 640px) {
  .field-row {
    grid-template-columns: 1fr;
  }
}

.field-row-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

@media (max-width: 700px) {
  .field-row-3 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 440px) {
  .field-row-3 {
    grid-template-columns: 1fr;
  }
}

/* Segmented presence — choice cards */
.seg-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6rem;
}

/* Le <label> EST le bouton : zone cliquable = zone visuelle exacte */
.seg {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  border: 1.5px solid #e4dcd6;
  border-radius: var(--r-md);
  padding: .75rem 1rem;
  font-size: .87rem;
  letter-spacing: .02em;
  cursor: pointer;
  transition: border-color .2s, background .2s, color .2s, box-shadow .2s;
  background: #faf8f6;
  color: #a89d95;
  font-weight: 400;
  user-select: none;
  white-space: nowrap;
}

/* Input masqué proprement — accessible, sans prendre de place */
.seg input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* Conteneur interne : icône + texte uniquement */
.seg > span {
  display: contents;
}

.seg-icon {
  width: 14px;
  height: 14px;
  stroke-width: 2;
  flex-shrink: 0;
  opacity: .5;
  transition: opacity .2s;
  pointer-events: none;
}

/* Oui — actif */
.seg--yes:has(input:checked) {
  border-color: var(--rose-mid);
  background: var(--rose-pale);
  color: var(--rose);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(212,165,184,.2);
}

.seg--yes:has(input:checked) .seg-icon { opacity: 1; }

/* Non — actif */
.seg--no:has(input:checked) {
  border-color: #c8b8b8;
  background: #f7f1f1;
  color: #9a6b6b;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.seg--no:has(input:checked) .seg-icon { opacity: 1; }

/* Hover */
.seg--yes:hover { border-color: var(--rose-mid); color: var(--rose); }
.seg--no:hover  { border-color: #c8b8b8; color: #9a6b6b; }

.field-row-tight {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
}

.field-row-tight .field {
  flex: 1;
}

.btn-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  background: var(--rose);
  color: #fff;
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .06em;
  padding: .8rem 1.5rem;
  border-radius: var(--r-md);
  white-space: nowrap;
  transition: background var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
  box-shadow: 0 4px 16px rgba(196, 132, 154, .35);
  min-height: 52px;
}

.btn-submit:hover:not(:disabled) {
  background: var(--rose-mid);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(196, 132, 154, .4);
}

.btn-submit:disabled {
  opacity: .65;
  cursor: not-allowed;
  transform: none;
}

.btn-submit svg {
  width: 16px;
  height: 16px;
}

.status {
  font-size: .88rem;
  min-height: 1.4em;
  font-weight: 400;
  line-height: 1.5;
}

/* Aside */
.aside {
  background: var(--white);
  border: 1.5px solid var(--rose-light);
  border-radius: 20px;
  padding: 2rem 1.75rem;
  box-shadow: var(--sh-sm);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.aside-header {
  display: flex;
  gap: 1rem;
  align-items: center;
  border-bottom: 1px solid var(--rose-light);
  padding-bottom: 1.25rem;
}

.aside-ring {
  width: 44px;
  height: 44px;
  background: var(--rose-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.aside-h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--dark);
}

.aside-tagline {
  font-size: .8rem;
  color: var(--soft);
  margin-top: .15rem;
  font-weight: 300;
}

.aside-box {
  padding: .85rem 1rem;
  background: var(--cream);
  border-radius: var(--r-md);
  border: 1px solid #ede8e2;
}

.aside-k {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .05em;
  color: var(--soft);
  text-transform: uppercase;
  margin-bottom: .35rem;
}

.aside-k svg {
  width: 13px;
  height: 13px;
}

.aside-v {
  font-size: .9rem;
  color: var(--mid);
  font-weight: 400;
  line-height: 1.55;
}

.aside-tip {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .82rem;
  color: var(--soft);
  background: var(--sage-pale);
  border-radius: var(--r-md);
  padding: .85rem 1rem;
  line-height: 1.6;
  font-weight: 300;
}

.aside-tip svg {
  width: 14px;
  height: 14px;
  color: var(--sage);
  flex-shrink: 0;
  margin-top: .15rem;
}

.aside-contact .aside-k {
  margin-bottom: .5rem;
}

.aside-email {
  font-size: .88rem;
  color: var(--rose);
  font-weight: 400;
  transition: color var(--t-fast);
}

.aside-email:hover {
  color: var(--rose-mid);
  text-decoration: underline;
}

/* ═══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
.footer {
  background: var(--sage);
  color: rgba(255, 255, 255, .65);
  padding-block: 2.5rem;
}

.footer-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--container-px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-couple {
  font-family: var(--font-script);
  font-size: 1.5rem;
  font-style: italic;
  color: rgba(255, 255, 255, .9);
  display: flex;
  align-items: center;
  gap: .4rem;
}

.footer-heart {
  color: var(--rose-mid);
  width: 18px;
  height: 18px;
}

.footer-date {
  font-size: .82rem;
  color: rgba(255, 255, 255, .45);
  margin-top: .3rem;
  letter-spacing: .05em;
  font-weight: 300;
}

.footer-right {
  text-align: right;
}

.footer-event-title {
  font-size: .85rem;
  color: rgba(255, 255, 255, .75);
  font-weight: 500;
  margin-bottom: .2rem;
}

.footer-event-sub {
  font-size: .78rem;
  color: rgba(255, 255, 255, .4);
  font-weight: 300;
  margin-bottom: .75rem;
}

.footer-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: flex-end;
}

.footer-cta {
  display: inline-block;
  font-size: .8rem;
  font-weight: 500;
  color: var(--rose-mid);
  border: 1px solid rgba(212, 165, 184, .3);
  padding: .4rem 1.1rem;
  border-radius: 99px;
  letter-spacing: .05em;
  transition: background var(--t-fast), border-color var(--t-fast);
}

.footer-cta:hover {
  background: rgba(212, 165, 184, .1);
  border-color: var(--rose-mid);
}

.footer-credit {
  font-size: .75rem;
  color: rgba(255, 255, 255, .3);
  font-weight: 300;
}

.footer-credit a {
  color: rgba(255, 255, 255, .55);
  transition: color var(--t-fast);
}

.footer-credit a:hover {
  color: var(--rose-mid);
}

@media (max-width: 640px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-right {
    text-align: center;
  }

  .footer-actions {
    justify-content: center;
    flex-direction: column;
  }
}

/* ═══════════════════════════════════════════
   LIGHTBOX
══════════════════════════════════════════════ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: rgba(10, 8, 16, .92);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-mid);
}

.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-img {
  max-width: min(90vw, 900px);
  max-height: 85dvh;
  border-radius: 12px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, .6);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .15);
  border: 1px solid rgba(255, 255, 255, .25);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t-fast);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, .28);
}

.lightbox-close svg {
  width: 20px;
  height: 20px;
}

.lightbox-caption {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: .82rem;
  color: rgba(255, 255, 255, .65);
  letter-spacing: .05em;
  text-align: center;
}

/* YouTube hidden player */
#yt-container {
  position: fixed;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  pointer-events: none;
}

.details-section .section-sub {
  max-width: 640px;
}

.detail-card-location {
  align-items: center;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  justify-content: center;
  margin-top: .5rem;
}

.detail-map-link {
  appearance: none;
  border: 1px solid var(--rose-light);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 42px;
  padding: .65rem 1rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 500;
  color: var(--mid);
  transition: transform var(--t-fast), background var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
}

.detail-map-link:hover {
  background: var(--rose-pale);
  border-color: var(--rose-mid);
  transform: translateY(-1px);
}

.detail-map-link-primary {
  background: var(--sage);
  color: #fff;
  border-color: var(--sage);
  box-shadow: 0 8px 20px rgba(91, 140, 126, .22);
}

.detail-map-link-primary:hover {
  background: var(--sage-mid);
  border-color: var(--sage-mid);
  color: #fff;
}

.field-row-2 {
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 640px) {
  .field-row-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .form {
    padding: 1.2rem;
    border-radius: 18px;
  }

  .field input,
  .field select,
  .field textarea {
    min-height: 50px;
  }

  .field textarea {
    min-height: 110px;
  }

  .btn-submit {
    width: 100%;
  }

  .field-row-tight {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 640px) {
  .intro-bg {
    background-position: 41% center;
  }
  .hero-bg {
    background-position: 41% center;
  }
  .hero-title span {
    display: block;
  }
}

/* ═══════════════════════════════════════════
   FAIRE-PART — HOMMAGE AUX FAMILLES
══════════════════════════════════════════════ */

/* ── Section : image de fond avec voile crème ── */
.hommage-section {
  position: relative;
  background:
    url('../img/bg-invit.png') center / cover no-repeat;
  text-align: center;
  overflow: hidden;
}

/* Voile crème léger — image visible à ~35% */
.hommage-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(252, 248, 242, 0.65);
  z-index: 0;
}

/* Container au-dessus du voile */
.hommage-section > .container {
  position: relative;
  z-index: 1;
}

/* ── Card faire-part — papeterie haut de gamme ── */
.announcement {
  position: relative;
  background: rgba(255, 252, 246, 0.94);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(196, 156, 96, .6);
  outline: 1px solid rgba(196, 156, 96, .18);
  outline-offset: -14px;
  border-radius: 2px;
  padding: clamp(3.5rem, 8vw, 6.5rem) clamp(2.5rem, 8vw, 7rem);
  max-width: 1060px;
  margin-inline: auto;
  box-shadow:
    0 4px 16px rgba(26, 26, 34, .06),
    0 20px 60px rgba(26, 26, 34, .13),
    0 60px 140px rgba(26, 26, 34, .16);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.75rem;
  opacity: 0.8 !important;
}

/* Filet doré supérieur */
.announcement::before {
  content: '';
  position: absolute;
  top: 0; left: 6%; right: 6%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(200, 160, 96, .4) 15%,
    var(--gold) 40%,
    var(--champagne) 50%,
    var(--gold) 60%,
    rgba(200, 160, 96, .4) 85%,
    transparent
  );
}

/* Filet doré inférieur */
.announcement::after {
  content: '';
  position: absolute;
  bottom: 0; left: 6%; right: 6%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(200, 160, 96, .4) 15%,
    var(--gold) 40%,
    var(--champagne) 50%,
    var(--gold) 60%,
    rgba(200, 160, 96, .4) 85%,
    transparent
  );
}

/* ── Grille familles : Gauche | Séparateur | Droite ── */
.announcement-families {
  display: grid;
  grid-template-columns: 1fr 64px 1fr;
  gap: 0;
  width: 100%;
  align-items: start;
}

.families-sep {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 1.6rem;
}

.families-sep-line {
  width: 1px;
  height: 100px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--champagne) 25%,
    var(--gold) 50%,
    var(--champagne) 75%,
    transparent
  );
}

.bloc {
  display: flex;
  flex-direction: column;
  gap: .65rem;
}

.bloc--left {
  text-align: left;
  align-items: flex-start;
}

.bloc--right {
  text-align: right;
  align-items: flex-end;
}

.bloc-title {
  font-family: var(--font-body);
  font-size: .85rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: .2em;
  text-transform: uppercase;
  padding-bottom: .55rem;
  border-bottom: 1px solid rgba(200, 160, 96, .3);
  width: 100%;
}

.names {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.names li {
  font-family: var(--font-heading);
  font-size: clamp(.85rem, 1.7vw, 1rem);
  color: var(--mid);
  line-height: 1.65;
  font-weight: 300;
}

.names li strong {
  color: var(--dark);
  font-weight: 600;
}

/* ── Ornement ── */
.announcement-ornament {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  width: 100%;
  max-width: 440px;
  margin-block: -.5rem;
}

.orn-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 160, 96, .45) 50%, transparent);
}

.orn-heart {
  width: 12px;
  height: 12px;
  color: var(--rose-mid);
  flex-shrink: 0;
}

/* ── Phrase de faire-part ── */
.announcement-kicker {
  font-family: var(--font-script);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-style: italic;
  font-weight: 300;
  color: var(--mid);
  letter-spacing: .03em;
  line-height: 1.85;
  max-width: 580px;
  text-align: center;
}

/* ── Prénoms : Leslie | & | Benjamin ── */
.announcement-names {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: .5rem 1.5rem;
  width: 100%;
}

.name-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .1rem;
  min-width: 0;
}

.name-latin {
  font-family: 'Great Vibes', 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(4rem, 11vw, 8rem);
  font-weight: 400;
  color: var(--dark);
  line-height: 1.0;
  white-space: nowrap;
  text-shadow:
    0 2px 10px rgba(26, 26, 34, .10),
    0 0 50px rgba(200, 160, 96, .10);
}

.name-hebrew {
  font-family: var(--font-hebrew);
  font-size: clamp(1rem, 2.6vw, 1.5rem);
  font-weight: 300;
  color: var(--soft);
  letter-spacing: .09em;
  direction: rtl;
  line-height: 1.4;
  margin-top: .1rem;
}

.names-amp {
  font-family: 'Great Vibes', 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  color: var(--rose-mid);
  line-height: 1;
  align-self: center;
  padding-bottom: 1rem;
  text-shadow: 0 2px 16px rgba(196, 132, 154, .25);
}

/* ── Ligne ornementale ── */
.announcement-line {
  width: 140px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(200, 160, 96, .55) 40%,
    rgba(200, 160, 96, .55) 60%,
    transparent
  );
  margin: .3rem auto;
}

/* ── Bloc mémoire ── */
.memory {
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .8rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(200, 160, 96, .25);
}

.memory-title {
  font-family: var(--font-script);
  font-size: clamp(1.2rem, 2.8vw, 1.55rem);
  font-style: italic;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: .5rem;
}

.memory-title .zl {
  font-style: normal;
  font-family: var(--font-hebrew);
  font-size: .74em;
  color: var(--soft);
  letter-spacing: .02em;
}

.memory-text {
  font-family: var(--font-body);
  font-size: .86rem;
  font-weight: 300;
  color: var(--soft);
  letter-spacing: .05em;
  text-align: center;
}

.memory-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
}

.memory-list li {
  font-family: var(--font-heading);
  font-size: clamp(.9rem, 2vw, 1.05rem);
  color: var(--mid);
  font-style: italic;
  font-weight: 300;
  line-height: 1.6;
}

/* ── Phrase finale ── */
.announcement-footer {
  padding-top: .25rem;
}

.footer-chip {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: transparent;
  border: 1px solid rgba(200, 160, 96, .4);
  color: var(--mid);
  font-family: var(--font-script);
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  font-style: italic;
  font-weight: 300;
  padding: .8rem 2.25rem;
  border-radius: 99px;
  line-height: 1.55;
  text-align: center;
  letter-spacing: .02em;
}

.footer-chip svg {
  flex-shrink: 0;
  color: var(--rose-mid);
}

/* ── Responsive mobile ── */
@media (max-width: 720px) {
  .announcement {
    padding: 3rem 1.75rem;
    outline-offset: -10px;
  }

  .announcement-families {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .families-sep {
    display: none;
  }

  .bloc--left,
  .bloc--right {
    text-align: center;
    align-items: center;
  }
}

@media (max-width: 520px) {
  .announcement {
    padding: 2.25rem 1.25rem;
    outline-offset: -8px;
  }

  .announcement-names {
    flex-wrap: wrap;
    gap: 0;
    justify-content: center;
  }

  .name-latin {
    font-size: clamp(3.2rem, 20vw, 4.5rem);
    white-space: nowrap;
  }

  .names-amp {
    width: 100%;
    text-align: center;
    font-size: clamp(2rem, 12vw, 3rem);
    padding-block: .25rem .5rem;
  }
}

/* ═══════════════════════════════════════════
   NOTRE HISTOIRE — ALTERNANCE IMAGE / TEXTE
══════════════════════════════════════════════ */
.histoire-section {
  background: var(--cream);
}

.histoire-alt {
  display: flex;
  flex-direction: column;
  max-width: 1060px;
  margin-inline: auto;
}

/* Item: flex row, text left + image right by default */
.hist-item {
  display: flex;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

/* Reversed: image left + text right */
.hist-item--reversed {
  flex-direction: row-reverse;
}

/* RTL adjustments */
html[dir="rtl"] .hist-item {
  flex-direction: row-reverse;
}
html[dir="rtl"] .hist-item--reversed {
  flex-direction: row;
}

/* Image wrapper */
.hist-img-wrap {
  flex: 1;
  min-width: 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--sh-md);
  aspect-ratio: 4 / 3;
  flex-shrink: 0;
  max-width: 48%;
}

.hist-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* Fade-in à l'entrée dans le viewport (géré par GSAP) */
  opacity: 0;
  transition: transform var(--t-slow) var(--ease), opacity 0.7s ease;
}

/* Fallback si GSAP absent / réduit-motion */
@media (prefers-reduced-motion: reduce) {
  .hist-img-wrap img {
    opacity: 1;
  }
}

.hist-img-wrap img.img-visible {
  opacity: 1;
}

.hist-item:hover .hist-img-wrap img {
  transform: scale(1.04);
}

/* Text wrapper */
.hist-text-wrap {
  flex: 1;
  min-width: 0;
  padding-block: .5rem;
}

.hist-ornament {
  width: 36px;
  height: 2px;
  background: var(--rose-light);
  border-radius: 2px;
  margin-bottom: 1.1rem;
}

html[dir="rtl"] .hist-ornament {
  margin-inline-start: auto;
}

.hist-date {
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--rose-mid);
  margin-bottom: .5rem;
}

.hist-title {
  font-family: var(--font-heading);
  color: var(--rose-mid);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hist-text {
  font-size: clamp(.9rem, 1.8vw, 1rem);
  color: var(--soft);
  line-height: 1.85;
  font-weight: 300;
}

/* Mobile: single column, image on top */
@media (max-width: 700px) {
  .hist-item,
  .hist-item--reversed,
  html[dir="rtl"] .hist-item,
  html[dir="rtl"] .hist-item--reversed {
    flex-direction: column;
    gap: 1.5rem;
  }

  .hist-img-wrap {
    max-width: 100%;
    width: 100%;
    aspect-ratio: 16 / 9;
    flex-shrink: 1;
  }

  /* Always image first on mobile */
  .hist-item .hist-img-wrap,
  .hist-item--reversed .hist-img-wrap {
    order: -1;
  }

  .hist-ornament {
    display: none;
  }
}

/* ═══════════════════════════════════════════
   COUNTDOWN — améliorations premium
══════════════════════════════════════════════ */
.countdown-section .section-title {
  font-style: italic;
  font-size: clamp(1.8rem, 4.5vw, 3rem);
}

.countdown-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(60px);
  opacity: .35;
}

.countdown-glow-1 {
  width: 340px;
  height: 340px;
  background: var(--rose-light);
  top: -60px;
  left: -80px;
}

.countdown-glow-2 {
  width: 280px;
  height: 280px;
  background: var(--sage-pale);
  bottom: -40px;
  right: -60px;
}

.countdown-section {
  position: relative;
  overflow: hidden;
}

/* Make cd-box slightly more premium */
.cd-box {
  position: relative;
}

.cd-box::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,255,255,.6) 0%, transparent 60%);
  pointer-events: none;
}


/* ═══════════════════════════════════════════
   LANGUE — drapeaux harmonisés (flag-icons SVG)
══════════════════════════════════════════════ */
.lang-toggle,
.intro-lang-btn {
  font-size: .82rem;
  gap: .35rem;
}


/* ═══════════════════════════════════════════
   RTL — announcement / hommage adjustments
══════════════════════════════════════════════ */
html[dir="rtl"] .announcement-kicker {
  direction: rtl;
}

html[dir="rtl"] .memory-text {
  direction: rtl;
}

html[dir="rtl"] .memory-title .zl {
  margin-right: 0;
  margin-left: .35em;
}

html[dir="rtl"] .bloc--left,
html[dir="rtl"] .bloc--right {
  text-align: center;
  align-items: center;
}

html[dir="rtl"] .hist-text-wrap {
  text-align: right;
}

/* ═══════════════════════════════════════════
   COPY ADDRESS — feedback states
══════════════════════════════════════════════ */
#copyAddressBtn.is-copied {
  color: var(--sage);
  border-color: var(--sage-light);
  background: var(--sage-pale);
}

#copyAddressBtn.is-error {
  color: #c04040;
  border-color: #f5c0c0;
}

/* ═══════════════════════════════════════════
   HERO RSVP btn — mobile refinement
══════════════════════════════════════════════ */
@media (max-width: 480px) {
  .hero-rsvp-btn {
    font-size: .83rem;
    padding: .85rem 1.8rem;
    letter-spacing: .06em;
  }
}