/* ============================================================
   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: '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;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

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

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

.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: hidden;
}

.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-size: .68rem;
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--champagne);
  margin-bottom: 1.1rem;
  opacity: .85;
}

.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;
  }
}

/* ═══════════════════════════════════════════
   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);
}

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-size: .65rem;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .75);
  margin-bottom: 1.25rem;
}

.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-body);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 300;
  letter-spacing: .18em;
  color: rgba(255, 255, 255, .9);
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  color: rgba(255, 255, 255, .6);
  font-size: .7rem;
  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;
}

.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 */
.seg-group {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}

.seg {
  flex: 1;
  min-width: 140px;
}

.seg input {
  display: none;
}

.seg span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  border: 1.5px solid #e4ddd8;
  border-radius: var(--r-md);
  padding: .75rem 1rem;
  font-size: .9rem;
  cursor: pointer;
  transition: all var(--t-fast);
  background: var(--cream);
  color: var(--mid);
  font-weight: 400;
}

.seg input:checked+span {
  border-color: var(--rose-mid);
  background: var(--rose-pale);
  color: var(--rose);
  box-shadow: 0 0 0 3px rgba(212, 165, 184, .15);
}

.seg span:hover {
  border-color: var(--rose-mid);
}

.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;
  }
}