/* ═══════════════════════════════════════════════════════════════════
   TEMPLATE-20 — Nuit du Henné · Fatima & Ahmed
   Palette: ivory/rose gold/burgundy — Féminins, floral, romantique
   VISUELLEMENT DISTINCT du template-11 (sombre/doré/géométrique)
   ═══════════════════════════════════════════════════════════════════ */

/* ──────────────────────────────────────────────────────────────────
   1. RESET & ROOT VARIABLES
   ────────────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Palette principale */
  --rose-gold:   #c9846a;
  --rose-gold-2: #b8705a;
  --burgundy:    #6b1e3d;
  --burgundy-2:  #4e1529;
  --ivory:       #fdf5e8;
  --cream:       #faf0da;
  --cream-2:     #f5e8c8;
  --gold:        #c9a96e;
  --gold-light:  #e8d5a0;
  --dusty-rose:  #e8a598;
  --dark:        #2a0d1e;

  /* Fonctionnels */
  --text-dark:   #2a0d1e;
  --text-medium: #5a3045;
  --text-light:  #8a6070;

  /* Typographie */
  --font-serif:  'Cormorant Garamond', Georgia, serif;
  --font-script: 'Great Vibes', cursive;
  --font-sans:   'Jost', 'Segoe UI', sans-serif;

  /* Espacement */
  --section-py: 6rem;
  --container-max: 1100px;

  /* Rayons */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 24px;
  --radius-xl: 48px;

  /* Ombres */
  --shadow-soft:  0 4px 24px rgba(201, 132, 106, 0.15);
  --shadow-medium: 0 8px 40px rgba(107, 30, 61, 0.18);
  --shadow-deep:  0 16px 64px rgba(107, 30, 61, 0.25);

  /* Transitions */
  --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-fast: 0.2s ease;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--ivory);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ol, ul {
  list-style: none;
}

em {
  font-style: italic;
  color: var(--rose-gold);
}


/* ──────────────────────────────────────────────────────────────────
   2. UTILITAIRES
   ────────────────────────────────────────────────────────────────── */
.section-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
}

.section__label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--rose-gold);
  text-align: center;
  margin-bottom: 0.75rem;
  display: block;
}

.section__label--light {
  color: var(--gold-light);
}

.section__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  text-align: center;
  color: var(--text-dark);
  margin-bottom: 2.5rem;
  line-height: 1.25;
}

.section__title--light {
  color: var(--ivory);
}

.section__title em {
  font-style: italic;
  color: var(--rose-gold);
}

.section__title--light em {
  color: var(--gold-light);
}


/* ──────────────────────────────────────────────────────────────────
   3. SCROLL REVEAL
   ────────────────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* ──────────────────────────────────────────────────────────────────
   4. INTRO / SPLASH — CLAIR, IVOIRE, ROMANTIQUE
   ────────────────────────────────────────────────────────────────── */
.intro {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--cream);
  background-image:
    radial-gradient(ellipse 70% 50% at 50% 40%, rgba(201, 132, 106, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(232, 165, 152, 0.1) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 80% 20%, rgba(201, 169, 110, 0.1) 0%, transparent 60%);
  overflow: hidden;
}

/* Canvas pétales en intro */
#petals-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.intro__inner {
  position: relative;
  z-index: 2;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 600px;
}

/* Cadre double bordure rose gold — signature de template-20 */
.intro__frame {
  background: rgba(253, 245, 232, 0.92);
  backdrop-filter: blur(8px);
  border: 2px solid var(--rose-gold);
  outline: 1px solid var(--gold-light);
  outline-offset: 6px;
  border-radius: var(--radius-md);
  padding: 3.5rem 3rem;
  text-align: center;
  box-shadow:
    0 0 0 10px rgba(253, 245, 232, 0.5),
    var(--shadow-medium),
    inset 0 0 40px rgba(201, 132, 106, 0.05);
  position: relative;
}

/* Coins décoratifs */
.intro__frame::before,
.intro__frame::after {
  content: '✦';
  position: absolute;
  font-size: 1.2rem;
  color: var(--rose-gold);
  opacity: 0.7;
}

.intro__frame::before {
  top: 0.75rem;
  left: 0.75rem;
}

.intro__frame::after {
  bottom: 0.75rem;
  right: 0.75rem;
}

/* Ornements haut/bas */
.intro__ornament-top,
.intro__ornament-bottom {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--rose-gold);
  opacity: 0.8;
  margin-bottom: 1.5rem;
}

.intro__ornament-bottom {
  margin-bottom: 0;
  margin-top: 1.5rem;
}

/* Icône florale avec anneaux */
.intro__icon {
  display: flex;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.intro__icon-circle {
  position: relative;
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--rose-gold) 0%, var(--gold) 100%);
  border-radius: 50%;
  box-shadow:
    0 0 0 6px rgba(201, 132, 106, 0.2),
    0 0 0 12px rgba(201, 132, 106, 0.08),
    0 8px 32px rgba(201, 132, 106, 0.4);
}

.intro__icon-flower {
  font-size: 2.4rem;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

.intro__icon-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--rose-gold);
  animation: intro-ring-pulse 3s ease-in-out infinite;
}

.intro__icon-ring--1 {
  width: 110px;
  height: 110px;
  opacity: 0.35;
  animation-delay: 0s;
}

.intro__icon-ring--2 {
  width: 130px;
  height: 130px;
  opacity: 0.2;
  animation-delay: 1s;
}

@keyframes intro-ring-pulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.05); opacity: 0.5; }
}

/* Bismillah en arabe */
.intro__arabic {
  font-size: 1.4rem;
  color: var(--burgundy);
  font-weight: 300;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  opacity: 0.85;
}

/* Label événement */
.intro__event-label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--rose-gold);
  margin-bottom: 0.75rem;
}

/* Noms en script */
.intro__names {
  font-family: var(--font-script);
  font-size: clamp(2.6rem, 6vw, 3.8rem);
  font-weight: 400;
  color: var(--burgundy);
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

/* Sous-titre intro */
.intro__subtitle {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-style: italic;
  color: var(--text-medium);
  font-weight: 300;
  margin-bottom: 1.25rem;
}

/* Séparateur décoratif */
.intro__divider {
  font-size: 1rem;
  color: var(--rose-gold);
  letter-spacing: 0.4em;
  margin-bottom: 1.5rem;
  opacity: 0.8;
}

/* Bouton intro */
.intro__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--burgundy);
  background: transparent;
  border: 1.5px solid var(--rose-gold);
  border-radius: var(--radius-xl);
  padding: 0.85rem 2.25rem;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.intro__btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--rose-gold) 0%, var(--gold) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
  border-radius: inherit;
  z-index: -1;
}

.intro__btn:hover {
  color: var(--ivory);
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(201, 132, 106, 0.4);
}

.intro__btn:hover::before {
  transform: scaleX(1);
}

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

/* Voile de dissolution */
.intro__dissolve {
  position: absolute;
  inset: 0;
  background: var(--cream);
  opacity: 0;
  pointer-events: none;
  z-index: 10;
  transition: opacity 1s ease;
}

.intro__dissolve.is-dissolving {
  opacity: 1;
}

/* Animation d'intro out */
.intro.is-hidden {
  display: none;
}


/* ──────────────────────────────────────────────────────────────────
   5. NAVIGATION
   ────────────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: rgba(253, 245, 232, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 132, 106, 0.2);
  transition: box-shadow var(--transition);
}

.nav.is-scrolled {
  box-shadow: 0 4px 20px rgba(107, 30, 61, 0.1);
}

.nav__container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--font-script);
  font-size: 1.5rem;
  color: var(--burgundy);
  white-space: nowrap;
  transition: color var(--transition-fast);
}

.nav__logo:hover {
  color: var(--rose-gold);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav__link {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-medium);
  padding: 0.4rem 0.85rem;
  border-radius: 50px;
  transition: var(--transition-fast);
}

.nav__link:hover {
  color: var(--rose-gold);
  background: rgba(201, 132, 106, 0.1);
}

.nav__link--cta {
  background: linear-gradient(135deg, var(--rose-gold) 0%, var(--gold) 100%);
  color: var(--ivory) !important;
  padding: 0.5rem 1.25rem;
  box-shadow: 0 4px 14px rgba(201, 132, 106, 0.35);
}

.nav__link--cta:hover {
  background: linear-gradient(135deg, var(--rose-gold-2) 0%, var(--rose-gold) 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(201, 132, 106, 0.45);
}

/* Burger */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
}

.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--burgundy);
  border-radius: 2px;
  transition: var(--transition-fast);
}

.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Drawer mobile */
.nav__drawer {
  background: var(--cream);
  border-top: 1px solid rgba(201, 132, 106, 0.2);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.nav__drawer.is-open {
  max-height: 300px;
}

.nav__drawer ul {
  padding: 1rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav__drawer-link {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-medium);
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid rgba(201, 132, 106, 0.1);
  transition: color var(--transition-fast);
}

.nav__drawer-link:hover {
  color: var(--rose-gold);
}

.nav__drawer-link--cta {
  color: var(--rose-gold);
  font-weight: 600;
  border: none;
}


/* ──────────────────────────────────────────────────────────────────
   6. BOUTON AUDIO
   ────────────────────────────────────────────────────────────────── */
.audio-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 800;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, var(--rose-gold) 0%, var(--gold) 100%);
  color: var(--ivory);
  border: none;
  border-radius: 50px;
  padding: 0.6rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(201, 132, 106, 0.4);
  transition: var(--transition);
}

.audio-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201, 132, 106, 0.5);
}

.audio-btn__icon {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.audio-btn.is-playing .audio-btn__icon {
  animation: spin 3s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}


/* ──────────────────────────────────────────────────────────────────
   7. HERO — FOND IVOIRE, MOTIF MANDALA, PÉTALES CSS
   ────────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--ivory);
  background-image:
    radial-gradient(ellipse 80% 60% at 50% 30%, rgba(232, 165, 152, 0.15) 0%, transparent 65%),
    radial-gradient(ellipse 50% 50% at 10% 90%, rgba(201, 132, 106, 0.08) 0%, transparent 55%);
  position: relative;
  overflow: hidden;
  padding: 8rem 2rem 6rem;
}

/* Grand overlay mandala/henna floral — SVG inline encodé */
.hero__mandala-overlay {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300' viewBox='0 0 300 300'%3E%3Cg fill='none' stroke='%23c9846a' stroke-width='0.8' opacity='0.35'%3E%3C!-- Cercles concentriques --%3E%3Ccircle cx='150' cy='150' r='130'/%3E%3Ccircle cx='150' cy='150' r='110'/%3E%3Ccircle cx='150' cy='150' r='90'/%3E%3Ccircle cx='150' cy='150' r='60'/%3E%3Ccircle cx='150' cy='150' r='30'/%3E%3C!-- 8 pétales de fleur --%3E%3Cellipse cx='150' cy='100' rx='18' ry='40' /%3E%3Cellipse cx='150' cy='100' rx='18' ry='40' transform='rotate(45 150 150)'/%3E%3Cellipse cx='150' cy='100' rx='18' ry='40' transform='rotate(90 150 150)'/%3E%3Cellipse cx='150' cy='100' rx='18' ry='40' transform='rotate(135 150 150)'/%3E%3Cellipse cx='150' cy='100' rx='18' ry='40' transform='rotate(180 150 150)'/%3E%3Cellipse cx='150' cy='100' rx='18' ry='40' transform='rotate(225 150 150)'/%3E%3Cellipse cx='150' cy='100' rx='18' ry='40' transform='rotate(270 150 150)'/%3E%3Cellipse cx='150' cy='100' rx='18' ry='40' transform='rotate(315 150 150)'/%3E%3C!-- Étoile 8 branches --%3E%3Cpolygon points='150,20 158,142 170,150 158,158 150,280 142,158 130,150 142,142' /%3E%3C!-- Petits cercles aux pétales --%3E%3Ccircle cx='150' cy='68' r='5'/%3E%3Ccircle cx='186' cy='86' r='5'/%3E%3Ccircle cx='200' cy='122' r='5'/%3E%3Ccircle cx='186' cy='158' r='5'/%3E%3Ccircle cx='150' cy='172' r='5'/%3E%3Ccircle cx='114' cy='158' r='5'/%3E%3Ccircle cx='100' cy='122' r='5'/%3E%3Ccircle cx='114' cy='86' r='5'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 280px 280px;
  opacity: 0.07;
  pointer-events: none;
}

/* Pétales décoratifs CSS */
.hero__petals {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero__petal {
  position: absolute;
  border-radius: 50% 20% 50% 20%;
  opacity: 0;
  animation: petal-float 8s ease-in-out infinite;
}

.hero__petal--1 {
  width: 40px; height: 20px;
  background: rgba(232, 165, 152, 0.45);
  top: 12%; left: 8%;
  transform: rotate(30deg);
  animation-delay: 0s;
  animation-duration: 9s;
  opacity: 0.6;
}

.hero__petal--2 {
  width: 30px; height: 15px;
  background: rgba(201, 132, 106, 0.35);
  top: 25%; right: 10%;
  transform: rotate(-45deg);
  animation-delay: 1.5s;
  animation-duration: 11s;
  opacity: 0.5;
}

.hero__petal--3 {
  width: 50px; height: 25px;
  background: rgba(244, 194, 194, 0.5);
  top: 60%; left: 5%;
  transform: rotate(60deg);
  animation-delay: 3s;
  animation-duration: 10s;
  opacity: 0.55;
}

.hero__petal--4 {
  width: 35px; height: 18px;
  background: rgba(221, 160, 181, 0.4);
  top: 70%; right: 8%;
  transform: rotate(-20deg);
  animation-delay: 4s;
  animation-duration: 12s;
  opacity: 0.5;
}

.hero__petal--5 {
  width: 25px; height: 12px;
  background: rgba(232, 165, 152, 0.55);
  top: 40%; left: 3%;
  transform: rotate(80deg);
  animation-delay: 2s;
  animation-duration: 8.5s;
  opacity: 0.6;
}

.hero__petal--6 {
  width: 45px; height: 22px;
  background: rgba(201, 132, 106, 0.3);
  top: 85%; right: 5%;
  transform: rotate(-60deg);
  animation-delay: 5s;
  animation-duration: 13s;
  opacity: 0.45;
}

@keyframes petal-float {
  0%, 100% { transform: translateY(0) rotate(30deg); }
  33% { transform: translateY(-15px) rotate(45deg); }
  66% { transform: translateY(10px) rotate(20deg); }
}

/* Contenu hero */
.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.hero__ornament {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: var(--rose-gold);
  opacity: 0.8;
  margin-bottom: 1.5rem;
}

.hero__ornament--bottom {
  margin-top: 2.5rem;
  margin-bottom: 0;
}

.hero__label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--rose-gold);
  margin-bottom: 1rem;
}

/* Noms du couple — très grands, script romantique */
.hero__names {
  font-family: var(--font-script);
  font-size: clamp(4rem, 10vw, 7.5rem);
  font-weight: 400;
  color: var(--burgundy);
  line-height: 1.05;
  margin-bottom: 1rem;
  text-shadow: 0 2px 20px rgba(107, 30, 61, 0.12);
}

.hero__names-et {
  font-size: 0.65em;
  color: var(--rose-gold);
}

.hero__event {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--text-medium);
  font-weight: 300;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.hero__description {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--text-medium);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  font-style: italic;
}


/* ──────────────────────────────────────────────────────────────────
   8. COUNTDOWN
   ────────────────────────────────────────────────────────────────── */
.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.countdown__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  min-width: 80px;
}

.countdown__value {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 600;
  color: var(--burgundy);
  background: rgba(253, 245, 232, 0.95);
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--gold-light);
  box-shadow: var(--shadow-soft);
  line-height: 1;
}

.countdown__label {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rose-gold);
}

.countdown__separator {
  font-size: 1.2rem;
  color: var(--rose-gold);
  opacity: 0.7;
  align-self: flex-start;
  padding-top: 1.5rem;
}


/* ──────────────────────────────────────────────────────────────────
   9. CTA HÉRO
   ────────────────────────────────────────────────────────────────── */
.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  background: linear-gradient(135deg, var(--rose-gold) 0%, var(--gold) 100%);
  color: var(--ivory);
  padding: 1rem 2.5rem;
  border-radius: var(--radius-xl);
  box-shadow: 0 6px 24px rgba(201, 132, 106, 0.4);
  transition: var(--transition);
  border: none;
}

.hero__cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(201, 132, 106, 0.55);
  background: linear-gradient(135deg, var(--rose-gold-2) 0%, var(--rose-gold) 100%);
}

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


/* ──────────────────────────────────────────────────────────────────
   10. AMBIANCE
   ────────────────────────────────────────────────────────────────── */
.ambiance {
  padding: var(--section-py) 0;
  background: var(--cream);
  position: relative;
}

.ambiance::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
}

.ambiance::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
}

.ambiance__intro {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 300;
  font-style: italic;
  color: var(--text-medium);
  text-align: center;
  max-width: 650px;
  margin: 0 auto 3rem;
  line-height: 1.9;
}

/* Cartes d'ambiance */
.ambiance__cards {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.ambiance__card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
  text-align: center;
  flex: 1;
  min-width: 220px;
  max-width: 320px;
  border-top: 4px solid var(--rose-gold);
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.ambiance__card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 100%;
  background: linear-gradient(180deg, rgba(201, 132, 106, 0.04) 0%, transparent 40%);
  pointer-events: none;
}

.ambiance__card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-medium);
  border-top-color: var(--burgundy);
}

.ambiance__card-icon {
  font-size: 2.75rem;
  margin-bottom: 1rem;
  filter: drop-shadow(0 2px 6px rgba(107, 30, 61, 0.15));
}

.ambiance__card-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--burgundy);
  margin-bottom: 0.75rem;
}

.ambiance__card-text {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.75;
}

/* Citation */
.ambiance__quote {
  text-align: center;
  margin: 0 auto;
  max-width: 500px;
  padding: 2rem;
  border-left: 3px solid var(--rose-gold);
  border-right: 3px solid var(--rose-gold);
  background: rgba(201, 132, 106, 0.06);
  border-radius: 4px;
}

.ambiance__quote p {
  font-family: var(--font-script);
  font-size: 1.8rem;
  color: var(--burgundy);
  line-height: 1.4;
}


/* ──────────────────────────────────────────────────────────────────
   11. PROGRAMME — FOND BORDEAUX, TEXTE IVOIRE
   ────────────────────────────────────────────────────────────────── */
.programme {
  padding: var(--section-py) 0;
  background: var(--burgundy);
  background-image:
    radial-gradient(ellipse 60% 60% at 20% 30%, rgba(201, 132, 106, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 80% 70%, rgba(201, 169, 110, 0.08) 0%, transparent 60%);
  position: relative;
  overflow: hidden;
}

/* Motif floral en filigrane */
.programme::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%23e8d5a0' stroke-width='0.5' opacity='0.15'%3E%3Ccircle cx='100' cy='100' r='80'/%3E%3Ccircle cx='100' cy='100' r='60'/%3E%3Ccircle cx='100' cy='100' r='40'/%3E%3Cellipse cx='100' cy='60' rx='12' ry='28'/%3E%3Cellipse cx='100' cy='60' rx='12' ry='28' transform='rotate(45 100 100)'/%3E%3Cellipse cx='100' cy='60' rx='12' ry='28' transform='rotate(90 100 100)'/%3E%3Cellipse cx='100' cy='60' rx='12' ry='28' transform='rotate(135 100 100)'/%3E%3Cellipse cx='100' cy='60' rx='12' ry='28' transform='rotate(180 100 100)'/%3E%3Cellipse cx='100' cy='60' rx='12' ry='28' transform='rotate(225 100 100)'/%3E%3Cellipse cx='100' cy='60' rx='12' ry='28' transform='rotate(270 100 100)'/%3E%3Cellipse cx='100' cy='60' rx='12' ry='28' transform='rotate(315 100 100)'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px 180px;
  pointer-events: none;
}

/* Timeline */
.programme__timeline {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  padding-left: 3rem;
}

/* Ligne verticale rose gold */
.programme__timeline::before {
  content: '';
  position: absolute;
  left: 0.75rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: linear-gradient(180deg, var(--rose-gold) 0%, var(--gold) 100%);
  border-radius: 2px;
}

.programme__item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  position: relative;
  align-items: flex-start;
}

.programme__item:last-child {
  margin-bottom: 0;
}

/* Pastille rose gold sur la ligne */
.programme__item::before {
  content: '✦';
  position: absolute;
  left: -2.625rem;
  top: 0.35rem;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, var(--rose-gold) 0%, var(--gold) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  color: var(--ivory);
  box-shadow: 0 0 0 4px rgba(201, 132, 106, 0.25);
}

/* Badge heure */
.programme__time {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--dark);
  background: linear-gradient(135deg, var(--rose-gold) 0%, var(--gold) 100%);
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 0.15rem;
  box-shadow: 0 2px 12px rgba(201, 132, 106, 0.35);
}

.programme__content {
  flex: 1;
}

.programme__title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ivory);
  margin-bottom: 0.35rem;
}

.programme__desc {
  font-size: 0.88rem;
  color: rgba(253, 245, 232, 0.7);
  line-height: 1.7;
}


/* ──────────────────────────────────────────────────────────────────
   12. CODE VESTIMENTAIRE
   ────────────────────────────────────────────────────────────────── */
.dresscode {
  padding: var(--section-py) 0;
  background: var(--ivory);
  background-image: radial-gradient(ellipse 60% 40% at 50% 50%, rgba(232, 165, 152, 0.1) 0%, transparent 70%);
}

.dresscode__cards {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.dresscode__card {
  background: white;
  border: 2px solid var(--rose-gold);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  flex: 1;
  min-width: 240px;
  max-width: 380px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
}

.dresscode__card::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px solid var(--gold-light);
  border-radius: calc(var(--radius-lg) - 4px);
  pointer-events: none;
  opacity: 0.5;
}

.dresscode__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
  border-color: var(--burgundy);
}

.dresscode__card-emoji {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  filter: drop-shadow(0 3px 8px rgba(107, 30, 61, 0.2));
}

.dresscode__card-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--burgundy);
  margin-bottom: 0.75rem;
}

.dresscode__card-text {
  font-size: 0.92rem;
  color: var(--text-medium);
  line-height: 1.75;
}

.dresscode__note {
  text-align: center;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-medium);
}


/* ──────────────────────────────────────────────────────────────────
   13. DÉTAILS
   ────────────────────────────────────────────────────────────────── */
.details {
  padding: var(--section-py) 0;
  background: var(--cream);
}

.details__cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 700px;
  margin: 0 auto 2rem;
}

.details__card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background: white;
  border-left: 4px solid var(--rose-gold);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
}

.details__card:hover {
  border-left-color: var(--burgundy);
  transform: translateX(4px);
  box-shadow: var(--shadow-medium);
}

.details__card-icon {
  font-size: 2rem;
  flex-shrink: 0;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(107, 30, 61, 0.15));
}

.details__card-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--burgundy);
  margin-bottom: 0.35rem;
}

.details__card-text {
  font-size: 0.9rem;
  color: var(--text-medium);
  line-height: 1.65;
}

.details__note {
  text-align: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--text-medium);
  max-width: 600px;
  margin: 0 auto;
}


/* ──────────────────────────────────────────────────────────────────
   14. RSVP
   ────────────────────────────────────────────────────────────────── */
.rsvp {
  padding: var(--section-py) 0;
  background: var(--ivory);
  background-image:
    radial-gradient(ellipse 70% 50% at 50% 50%, rgba(201, 132, 106, 0.08) 0%, transparent 70%);
}

.rsvp__card {
  background: linear-gradient(145deg, var(--rose-gold) 0%, #a06050 40%, var(--burgundy-2) 100%);
  border-radius: var(--radius-lg);
  padding: 3rem;
  max-width: 680px;
  margin: 0 auto;
  box-shadow: var(--shadow-deep);
  position: relative;
  overflow: hidden;
}

/* Filigrane floral sur la carte RSVP */
.rsvp__card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%23fdf5e8' stroke-width='0.6' opacity='0.08'%3E%3Ccircle cx='100' cy='100' r='80'/%3E%3Ccircle cx='100' cy='100' r='55'/%3E%3Ccircle cx='100' cy='100' r='30'/%3E%3Cellipse cx='100' cy='65' rx='10' ry='25'/%3E%3Cellipse cx='100' cy='65' rx='10' ry='25' transform='rotate(45 100 100)'/%3E%3Cellipse cx='100' cy='65' rx='10' ry='25' transform='rotate(90 100 100)'/%3E%3Cellipse cx='100' cy='65' rx='10' ry='25' transform='rotate(135 100 100)'/%3E%3Cellipse cx='100' cy='65' rx='10' ry='25' transform='rotate(180 100 100)'/%3E%3Cellipse cx='100' cy='65' rx='10' ry='25' transform='rotate(225 100 100)'/%3E%3Cellipse cx='100' cy='65' rx='10' ry='25' transform='rotate(270 100 100)'/%3E%3Cellipse cx='100' cy='65' rx='10' ry='25' transform='rotate(315 100 100)'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 160px 160px;
  pointer-events: none;
}

.rsvp__header {
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
}

.rsvp__title {
  font-family: var(--font-script);
  font-size: 3rem;
  color: var(--ivory);
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.rsvp__subtitle {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-style: italic;
  color: rgba(253, 245, 232, 0.85);
  font-weight: 300;
}

/* Formulaire */
.rsvp__form {
  position: relative;
  background: rgba(253, 245, 232, 0.97);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Messages de retour */
.rsvp__success,
.rsvp__error {
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-serif);
  font-size: 1rem;
  position: relative;
}

.rsvp__success {
  background: rgba(107, 30, 61, 0.08);
  border: 1px solid var(--rose-gold);
  color: var(--burgundy);
}

.rsvp__success-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.rsvp__error {
  background: rgba(200, 60, 60, 0.08);
  border: 1px solid #c84b4b;
  color: #8b2020;
}

/* Lignes 2 colonnes */
.rsvp__row--2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Champ */
.rsvp__field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.rsvp__label {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-medium);
}

.rsvp__label span[aria-hidden="true"] {
  color: var(--rose-gold);
}

.rsvp__label em {
  font-weight: 300;
  color: var(--text-light);
  font-style: italic;
}

.rsvp__input,
.rsvp__select,
.rsvp__textarea {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--text-dark);
  background: white;
  border: 1.5px solid rgba(201, 132, 106, 0.35);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  width: 100%;
  outline: none;
  line-height: 1.5;
}

.rsvp__input:focus,
.rsvp__select:focus,
.rsvp__textarea:focus {
  border-color: var(--rose-gold);
  box-shadow: 0 0 0 3px rgba(201, 132, 106, 0.18);
}

.rsvp__input::placeholder,
.rsvp__textarea::placeholder {
  color: rgba(90, 48, 69, 0.35);
}

.rsvp__input--number {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--burgundy);
  cursor: default;
}

.rsvp__input--captcha {
  max-width: 200px;
}

.rsvp__textarea {
  resize: vertical;
  min-height: 100px;
}

.rsvp__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23c9846a' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.5rem;
}

/* Fieldset & Radio */
.rsvp__fieldset {
  border: none;
  padding: 0;
}

.rsvp__legend {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-medium);
  margin-bottom: 0.6rem;
}

.rsvp__legend span[aria-hidden="true"] {
  color: var(--rose-gold);
}

.rsvp__radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.rsvp__radio-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-medium);
  padding: 0.6rem 1.1rem;
  border: 1.5px solid rgba(201, 132, 106, 0.3);
  border-radius: var(--radius-xl);
  background: white;
  transition: var(--transition-fast);
  user-select: none;
}

.rsvp__radio-label:hover {
  border-color: var(--rose-gold);
  background: rgba(201, 132, 106, 0.06);
}

.rsvp__radio {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.rsvp__radio-custom {
  width: 16px;
  height: 16px;
  border: 2px solid var(--rose-gold);
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  transition: var(--transition-fast);
}

.rsvp__radio:checked + .rsvp__radio-custom {
  background: var(--rose-gold);
  border-color: var(--rose-gold);
}

.rsvp__radio:checked + .rsvp__radio-custom::after {
  content: '';
  position: absolute;
  inset: 3px;
  background: white;
  border-radius: 50%;
}

.rsvp__radio:checked ~ * {
  color: var(--burgundy);
  font-weight: 500;
}

.rsvp__radio-label:has(.rsvp__radio:checked) {
  border-color: var(--rose-gold);
  background: rgba(201, 132, 106, 0.1);
  color: var(--burgundy);
  font-weight: 500;
}

/* Compteur invités */
.rsvp__number-input {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 180px;
}

.rsvp__number-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--rose-gold);
  background: white;
  color: var(--rose-gold);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  flex-shrink: 0;
  line-height: 1;
}

.rsvp__number-btn:hover {
  background: var(--rose-gold);
  color: var(--ivory);
}

/* Captcha */
.rsvp__captcha .rsvp__label {
  color: var(--text-medium);
  font-style: italic;
}

/* Bouton soumettre */
.rsvp__submit {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ivory);
  background: linear-gradient(135deg, var(--rose-gold) 0%, var(--burgundy) 100%);
  border: none;
  border-radius: var(--radius-xl);
  padding: 1.1rem 2.5rem;
  cursor: pointer;
  width: 100%;
  transition: var(--transition);
  box-shadow: 0 6px 24px rgba(107, 30, 61, 0.3);
  margin-top: 0.5rem;
  position: relative;
  overflow: hidden;
}

.rsvp__submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--burgundy) 0%, var(--rose-gold-2) 100%);
  opacity: 0;
  transition: opacity var(--transition);
}

.rsvp__submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(107, 30, 61, 0.4);
}

.rsvp__submit:hover::before {
  opacity: 1;
}

.rsvp__submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.rsvp__submit span {
  position: relative;
  z-index: 1;
}


/* ──────────────────────────────────────────────────────────────────
   15. FOOTER
   ────────────────────────────────────────────────────────────────── */
.footer {
  background: var(--dark);
  padding: 3rem 2rem;
}

.footer__inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__names {
  font-family: var(--font-script);
  font-size: 1.8rem;
  color: var(--gold-light);
  font-weight: 400;
}

.footer__event {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(232, 213, 160, 0.55);
}

.footer__credit {
  font-size: 0.78rem;
  color: rgba(232, 213, 160, 0.35);
  margin-top: 0.25rem;
}

.footer__link {
  color: var(--rose-gold);
  text-decoration: underline;
  text-decoration-color: rgba(201, 132, 106, 0.4);
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: var(--gold-light);
}


/* ──────────────────────────────────────────────────────────────────
   16. RESPONSIVE — MOBILE 768px
   ────────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  :root {
    --section-py: 4rem;
  }

  /* Intro */
  .intro__frame {
    padding: 2.5rem 1.75rem;
  }

  .intro__names {
    font-size: 2.4rem;
  }

  /* Nav */
  .nav__links {
    display: none;
  }

  .nav__burger {
    display: flex;
  }

  .nav__container {
    height: 60px;
  }

  /* Hero */
  .hero {
    padding: 7rem 1.5rem 4rem;
  }

  .hero__names {
    font-size: clamp(3.2rem, 12vw, 5rem);
  }

  .hero__description br {
    display: none;
  }

  /* Countdown */
  .countdown {
    gap: 0.6rem;
  }

  .countdown__value {
    width: 64px;
    height: 64px;
    font-size: 2rem;
  }

  .countdown__item {
    min-width: 64px;
  }

  .countdown__separator {
    display: none;
  }

  /* Ambiance */
  .ambiance__cards {
    flex-direction: column;
    align-items: center;
  }

  .ambiance__card {
    max-width: 100%;
  }

  /* Programme */
  .programme__timeline {
    padding-left: 2.5rem;
  }

  .programme__item {
    flex-direction: column;
    gap: 0.6rem;
  }

  /* Dresscode */
  .dresscode__cards {
    flex-direction: column;
    align-items: center;
  }

  .dresscode__card {
    max-width: 100%;
  }

  /* RSVP */
  .rsvp__card {
    padding: 2rem 1.25rem;
  }

  .rsvp__form {
    padding: 1.5rem 1rem;
  }

  .rsvp__row--2col {
    grid-template-columns: 1fr;
  }

  .rsvp__radio-group {
    flex-direction: column;
  }

  .rsvp__radio-label {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .intro__frame {
    padding: 2rem 1.25rem;
    margin: 0 0.75rem;
  }

  .intro__names {
    font-size: 2rem;
  }

  .hero__ornament {
    font-size: 0.65rem;
    letter-spacing: 0.08em;
  }
}
