:root {
  --bx-deep:     #2A0A12;
  --bx-dark:     #3D1020;
  --bx-main:     #6B1A2E;
  --bx-mid:      #8B2040;
  --bx-rich:     #A8274F;
  --bx-warm:     #C4385E;

  --gold:        #C9A84C;
  --gold-light:  #E2C274;
  --gold-pale:   #F0DCA0;

  --cream:       #FCF6DB;
  --cream-soft:  rgba(252, 246, 219, 0.88);
  --cream-muted: rgba(252, 246, 219, 0.60);
  --cream-faint: rgba(252, 246, 219, 0.18);

  --text-main:   #FCF6DB;
  --text-soft:   rgba(252, 246, 219, 0.82);
  --text-muted:  rgba(252, 246, 219, 0.55);

  --shadow:      0 20px 50px rgba(20, 0, 8, 0.45);
  --shadow-sm:   0 8px 24px rgba(20, 0, 8, 0.30);
  --radius:      20px;
  --transition:  all 0.38s ease;
  --container:   1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; width: 100%; }

body {
  font-family: "Crimson Pro", "Georgia", serif;
  background: var(--bx-deep);
  color: var(--text-main);
  line-height: 1.75;
  overflow-x: hidden;
  width: 100%;
}

body.intro-active { overflow: hidden; }

img, iframe { max-width: 100%; display: block; }
a { text-decoration: none; }
button, input, textarea, select { font: inherit; }
main { overflow: hidden; }

.main-content {
  position: relative;
  z-index: 2;
  background: var(--bx-deep);
  animation: mainFade 1.2s ease;
}

.hidden { display: none; }

.container { width: min(var(--container), calc(100% - 32px)); margin: 0 auto; }
.narrow { max-width: 820px; }
.center { text-align: center; }

/* ═══════════════════════════════════════ */
/*   BACKGROUND ARABESQUES                 */
/* ═══════════════════════════════════════ */
.arabesque-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.pattern-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.arabesque-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}

.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--bx-mid), transparent 70%);
  top: -150px; left: -150px;
  animation: orbDrift 28s ease-in-out infinite alternate;
}

.orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--bx-rich), transparent 70%);
  bottom: -100px; right: -100px;
  animation: orbDrift 22s ease-in-out infinite alternate-reverse;
}

.orb-3 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(201,168,76,0.15), transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: orbDrift 35s ease-in-out infinite alternate;
}

@keyframes orbDrift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(60px, 40px) scale(1.05); }
  100% { transform: translate(-40px, 60px) scale(0.95); }
}

/* ═══════════════════════════════════════ */
/*   MUSIQUE                               */
/* ═══════════════════════════════════════ */
.music-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bx-main);
  border: 1px solid var(--gold);
  box-shadow: 0 6px 20px rgba(20,0,8,0.40), 0 0 0 2px rgba(201,168,76,0.15);
  cursor: pointer;
  transition: var(--transition);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body.intro-finished .music-toggle {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.music-toggle:hover {
  background: var(--bx-rich);
  box-shadow: 0 10px 30px rgba(20,0,8,0.50), 0 0 0 3px rgba(201,168,76,0.25);
}

.music-toggle i { font-size: 1.1rem; color: var(--gold-light); }

/* ═══════════════════════════════════════ */
/*   INTRO SCREEN                          */
/* ═══════════════════════════════════════ */
.intro-screen {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  min-height: 100dvh;
  background: var(--bx-deep);
  overflow: hidden;
  z-index: 5000;
}

.intro-screen.is-finished {
  position: relative;
  inset: auto;
  height: 100vh;
  min-height: 100dvh;
  z-index: 1;
}

.intro-trigger {
  position: absolute;
  inset: 0;
  z-index: 3;
  cursor: pointer;
  overflow: hidden;
  background: transparent;
  transition: opacity 1.6s ease, transform 1.6s ease, visibility 1.6s ease;
}

.intro-trigger::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(42,10,18,0.20), rgba(42,10,18,0.50));
  pointer-events: none;
  transition: opacity 1.4s ease;
}

.intro-cover, .video-end-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.intro-cover {
  z-index: 2;
  animation: gentlePulse 4.5s ease-in-out infinite;
}

.video-end-frame { z-index: 1; opacity: 1; }

.intro-screen.is-opening .intro-trigger {
  opacity: 0;
  transform: scale(1.08);
  pointer-events: none;
}

.intro-screen.is-opening .intro-trigger::after { opacity: 0; }
.intro-screen.is-finished .intro-trigger { display: none; }

@keyframes gentlePulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.012); }
}

/* ═══════════════════════════════════════ */
/*   FLOATING LOGO                         */
/* ═══════════════════════════════════════ */
.floating-logo {
  position: fixed;
  top: 0; left: 0;
  width: clamp(130px, 12vw, 190px);
  height: clamp(130px, 12vw, 190px);
  z-index: 9999;
  pointer-events: none;
  user-select: none;
  opacity: 0;
  visibility: hidden;
  animation: logoSwim 26s ease-in-out infinite;
}

.floating-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.9;
  filter: drop-shadow(0 8px 24px rgba(20,0,8,0.45));
  animation: logoFloat 5.5s ease-in-out infinite;
}

body.logo-active .floating-logo {
  opacity: 1;
  visibility: visible;
  transition: opacity 1.4s ease, visibility 1.4s ease;
}

@keyframes logoSwim {
  0%   { transform: translate3d(4vw, 10vh, 0); }
  20%  { transform: translate3d(70vw, 17vh, 0); }
  40%  { transform: translate3d(62vw, 60vh, 0); }
  60%  { transform: translate3d(14vw, 72vh, 0); }
  80%  { transform: translate3d(22vw, 34vh, 0); }
  100% { transform: translate3d(4vw, 10vh, 0); }
}

@keyframes logoFloat {
  0%   { transform: translateY(0) rotate(-5deg) scale(1); }
  25%  { transform: translateY(-8px) rotate(2deg) scale(1.03); }
  50%  { transform: translateY(3px) rotate(6deg) scale(0.985); }
  75%  { transform: translateY(-6px) rotate(-2deg) scale(1.02); }
  100% { transform: translateY(0) rotate(-5deg) scale(1); }
}

/* ═══════════════════════════════════════ */
/*   SECTIONS GLOBALES                     */
/* ═══════════════════════════════════════ */
.section {  position: relative;
  padding: 50px 0;
  z-index: 1; }

/* ═══════════════════════════════════════ */
/*   HERO SECTION                          */
/* ═══════════════════════════════════════ */
.hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, var(--bx-mid) 0%, transparent 65%),
    var(--bx-deep);
  padding: 80px 0 120px;
  text-align: center;
  overflow: hidden;
}

.hero-medallion {
  margin-bottom:30px;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.medallion-svg {
  width: min(700px, 90vw);
  height: min(700px, 90vw);
  opacity: 0.5;
  animation: medallionSpin 120s linear infinite;
}

@keyframes medallionSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ── NOUVEAU : citation Great Vibes dans le hero ── */
.hero-quote {
  font-family: "Great Vibes", cursive;
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--gold-light);
  font-weight: 400;
  line-height: 1.4;
  margin: 0 auto 28px;
  max-width: 640px;
  opacity: 0.92;
  text-shadow: 0 2px 18px rgba(201,168,76,0.18);
}

.badge-line {
  display: inline-block;
  width: 70px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold));
}

.badge-text {
  font-family: "Amiri", serif;
  font-size: 1.15rem;
  color: var(--gold-light);
  letter-spacing: 0.05em;
}

/* Noms */
.hero-names { margin-bottom: 24px; }

.names-script {
  font-family: "Great Vibes", cursive;
  font-size: clamp(3.5rem, 9vw, 7.5rem);
  font-weight: 400;
  color: var(--cream);
  line-height: 1.1;
  text-shadow: 0 4px 30px rgba(201,168,76,0.25);
}

.names-amp {
  color: var(--gold);
  font-size: 0.82em;
}

.names-arabic {
  font-family: "Amiri", serif;
  font-size: clamp(1.3rem, 3vw, 2rem);
  color: var(--gold-light);
  margin-top: 6px;
  opacity: 0.9;
}

/* Divider */
.hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 24px auto;
}

.divider-wing {
  display: inline-block;
  width: 90px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-pale));
}

.hero-divider .divider-wing:last-child {
  background: linear-gradient(to left, transparent, var(--gold-pale));
}

.divider-heart { color: var(--gold); font-size: 0.9rem; }

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--cream-soft);
  max-width: 600px;
  margin: 0 auto 40px;
  font-style: italic;
}

/* Date block */
.event-date-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 0 auto 40px;
  background: rgba(252,246,219,0.05);
  border: 1px solid rgba(201,168,76,0.28);
  border-radius: 20px;
  overflow: hidden;
  max-width: 460px;
  width: 100%;
}

.date-pillar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 28px 20px;
}

.date-divider-v {
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--gold-pale), transparent);
  opacity: 0.45;
}

.date-day {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
  font-family: "Crimson Pro", serif;
}

.date-num {
  font-family: "Cinzel Decorative", serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--cream);
  line-height: 1;
  font-weight: 700;
}

.date-num small {
  font-size: 0.45em;
  vertical-align: super;
  color: var(--gold-light);
}

.date-month {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream-muted);
}

.date-icon { color: var(--gold); font-size: 1.3rem; margin-bottom: 4px; }

/* Countdown */
.countdown-wrapper {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
}

.countdown-label {
  font-family: "Amiri", serif;
  font-size: 1.15rem;
  color: var(--gold-light);
  margin-bottom: 20px;
  opacity: 0.85;
}

.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.count-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  max-width: 140px;
}

.count-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(145deg, rgba(107,26,46,0.60), rgba(42,10,18,0.80));
  border: 1px solid rgba(201,168,76,0.22);
  border-radius: 16px;
  box-shadow:
    0 12px 30px rgba(20,0,8,0.40),
    inset 0 1px 0 rgba(201,168,76,0.15);
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.count-inner::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}

.count-inner::after {
  content: "";
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 1px;
  background: rgba(201,168,76,0.08);
}

.count-inner:hover {
  transform: translateY(-6px) scale(1.04);
  box-shadow: 0 20px 45px rgba(20,0,8,0.55), 0 0 0 1px rgba(201,168,76,0.30);
}

.count-inner span {
  font-family: "Cinzel Decorative", serif;
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  color: var(--cream);
  font-weight: 700;
  line-height: 1;
  position: relative;
  z-index: 1;
}

.count-block small {
  display: block;
  margin-top: 10px;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
  font-family: "Crimson Pro", serif;
  font-weight: 600;
}

.count-sep {
  font-family: "Cinzel Decorative", serif;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  color: var(--gold);
  opacity: 0.60;
  margin-bottom: 24px;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
  animation: sepPulse 1.2s ease-in-out infinite;
}

@keyframes sepPulse {
  0%, 100% { opacity: 0.60; }
  50%       { opacity: 0.20; }
}

/* ═══════════════════════════════════════ */
/*   SECTION HEADING                       */
/* ═══════════════════════════════════════ */
.section-heading {
  text-align: center;
  margin-bottom: 32px;
}

.ornament-royal {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
  color: var(--gold);
}

.ornament-royal span {
  display: inline-block;
  width: 70px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-pale));
}

.ornament-royal span:last-child {
  background: linear-gradient(to left, transparent, var(--gold-pale));
}

.ornament-royal i { font-size: 1rem; color: var(--gold-light); }

.section-khat {
  font-family: "Amiri", serif;
  font-size: 1.5rem;
  color: var(--gold-light);
  margin-bottom: 10px;
}

.section-titre {
  font-family: "Cinzel Decorative", serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--cream);
  line-height: 1.15;
  margin-bottom: 14px;
  letter-spacing: 0.04em;
}

.section-sous {
  max-width: 680px;
  margin: 0 auto;
  color: var(--cream-soft);
  font-size: 1.08rem;
  font-style: italic;
}

.section-sous strong { color: var(--gold-light); font-style: normal; }

/* ── NOUVEAU : sous-titre Great Vibes dans les sections ── */
.section-vibes {
  font-family: "Great Vibes", cursive;
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  color: var(--gold-light);
  font-weight: 400;
  margin-bottom: 18px;
  opacity: 0.88;
}

/* ═══════════════════════════════════════ */
/*   SÉPARATEURS ENTRE SECTIONS            */
/* ═══════════════════════════════════════ */
.section-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 10px 0;
  position: relative;
  z-index: 1;
    margin-top: -80px;

}
/* ═══════════════════════════════════════ */
/*   separateur      */
/* ═══════════════════════════════════════ */
.sep-line {
  flex: 1;
  max-width: 200px;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(201,168,76,0.40));
}

.sep-line.right {
  background: linear-gradient(to left, transparent, rgba(201,168,76,0.40));
}

.sep-center {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(201,168,76,0.60);
  font-size: 0.55rem;
  letter-spacing: 6px;
}
/* ═══════════════════════════════════════ */
/*   BANNERS  — espace réduit              */
/* ═══════════════════════════════════════ */
.full-banner {
  width: 100%;
  /* MODIFIÉ : margin-bottom réduit de 64px à 36px */
  margin-bottom: 0px;
  overflow: hidden;
  position: relative;
}

.section-banner-image {
  width: 100%;
  height: clamp(240px, 38vw, 480px);
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 1.4s ease;
}

.full-banner:hover .section-banner-image { transform: scale(1.05); }

.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(42,10,18,0.35) 0%,
    rgba(42,10,18,0.10) 40%,
    rgba(42,10,18,0.70) 100%);
}

.banner-caption {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.banner-caption-text {
  font-family: "Cinzel Decorative", serif;
  font-size: clamp(0.9rem, 2.5vw, 1.4rem);
  color: var(--cream);
  letter-spacing: 0.12em;
  text-shadow: 0 2px 12px rgba(20,0,8,0.6);
}

/* ═══════════════════════════════════════ */
/*   LIEU SECTION  — padding-top réduit    */
/* ═══════════════════════════════════════ */
.section-lieu {
  background:
    linear-gradient(180deg, var(--bx-dark) 0%, var(--bx-deep) 100%);
  /* MODIFIÉ : 0 → 40px pour coller l'image au haut */
  padding-top: 0px;
}

.lieu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.lieu-card {
  position: relative;
  background:
    linear-gradient(145deg, rgba(107,26,46,0.35), rgba(42,10,18,0.55));
  border: 1px solid rgba(201,168,76,0.18);
  border-radius: var(--radius);
  padding: 38px 30px;
  overflow: hidden;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.lieu-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--gold-pale), transparent);
}

.lieu-card-deco {
  position: absolute;
  bottom: -30px; right: -30px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,0.08), transparent 70%);
  pointer-events: none;
}

.lieu-card:hover {
  transform: translateY(-10px);
  border-color: rgba(201,168,76,0.36);
  box-shadow: var(--shadow);
}

.lieu-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.30);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.lieu-card-icon i { color: var(--gold-light); font-size: 1.2rem; }

.lieu-card h3 {
  font-family: "Cinzel Decorative", serif;
  font-size: 1.5rem;
  color: var(--cream);
  margin-bottom: 12px;
  font-weight: 700;
}

.lieu-card p {
  color: var(--cream-soft);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 1rem;
}

.lieu-card p i { color: var(--gold-light); }

.btn-royal-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid rgba(201,168,76,0.45);
  color: var(--gold-light);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  transition: var(--transition);
  font-family: "Crimson Pro", serif;
}

.btn-royal-outline:hover {
  background: rgba(201,168,76,0.12);
  border-color: var(--gold);
  color: var(--cream);
}

.map-box {
  height: 420px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(201,168,76,0.20);
  box-shadow: var(--shadow);
  transition: transform 0.4s ease;
}

.map-box:hover { transform: scale(1.01); }

/* ═══════════════════════════════════════ */
/*   DRESS SECTION  — padding-top réduit   */
/* ═══════════════════════════════════════ */
.section-dress {
  background:
    radial-gradient(ellipse 70% 50% at 50% 100%, var(--bx-mid) 0%, transparent 65%),
    var(--bx-deep);
  /* MODIFIÉ : 0 → 40px */
  padding-top: 40px;
}

.dress-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.dress-card {
  position: relative;
  background: rgba(252,246,219,0.04);
  border: 1px solid rgba(201,168,76,0.18);
  border-radius: 28px;
  padding: 48px 34px 54px;
  text-align: center;
  overflow: hidden;
  transition: var(--transition);
}

.dress-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}

.dress-card::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(201,168,76,0.30), transparent);
}

.dress-card:hover {
  transform: translateY(-12px);
  border-color: rgba(201,168,76,0.38);
  box-shadow: var(--shadow);
  background: rgba(252,246,219,0.06);
}

.dress-card-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.dress-icon-wrap {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(201,168,76,0.10);
  border: 1px solid rgba(201,168,76,0.30);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dress-icon-wrap i { color: var(--gold-light); font-size: 1.6rem; }

.dress-tag {
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  font-family: "Crimson Pro", serif;
  font-weight: 600;
}

.dress-card h3 {
  font-family: "Cinzel Decorative", serif;
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  color: var(--cream);
  margin-bottom: 14px;
  font-weight: 700;
}

.dress-card p {
  color: var(--cream-soft);
  font-size: 1.05rem;
  line-height: 1.7;
}

.dress-motif {
  position: absolute;
  bottom: 18px;
  right: 24px;
  font-size: 0.9rem;
  color: rgba(201,168,76,0.25);
  letter-spacing: 4px;
}

/* ═══════════════════════════════════════ */
/*   RSVP SECTION                          */
/* ═══════════════════════════════════════ */
.rsvp-section {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, var(--bx-mid) 0%, transparent 60%),
    var(--bx-deep);
  padding-bottom: 120px;
  overflow: hidden;
}

.rsvp-bg-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.6;
}

.rsvp-bg-pattern svg { width: 100%; height: 100%; }

.rsvp-form {
  background:
    linear-gradient(145deg, rgba(107,26,46,0.30), rgba(42,10,18,0.60));
  border: 1px solid rgba(201,168,76,0.18);
  border-radius: 28px;
  padding: 44px 40px;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.rsvp-form::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}

.rsvp-field {
  margin-bottom: 24px;
}

.rsvp-field label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 10px;
  font-family: "Crimson Pro", serif;
}

.rsvp-field label i { color: var(--gold); font-size: 0.85rem; }

.rsvp-field .optional {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.75rem;
  font-style: italic;
  color: var(--cream-muted);
  font-weight: 400;
}

.rsvp-field input[type="text"],
.rsvp-field select,
.rsvp-field textarea {
  width: 100%;
  padding: 14px 18px;
  font-size: 1rem;
  font-family: "Crimson Pro", serif;
  color: var(--cream);
  background: rgba(42,10,18,0.60);
  border: 1px solid rgba(201,168,76,0.22);
  border-radius: 14px;
  transition: all 0.3s ease;
  outline: none;
}

.rsvp-field input::placeholder,
.rsvp-field textarea::placeholder {
  color: var(--cream-muted);
  font-style: italic;
}

.rsvp-field input:focus,
.rsvp-field select:focus,
.rsvp-field textarea:focus {
  background: rgba(42,10,18,0.80);
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.12);
}

.rsvp-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image:
    url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%23C9A84C' viewBox='0 0 16 16'%3E%3Cpath d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-color: rgba(42,10,18,0.60);
  padding-right: 44px;
  cursor: pointer;
}

.rsvp-field select option {
  background: var(--bx-dark);
  color: var(--cream);
}

.rsvp-field textarea {
  resize: vertical;
  min-height: 100px;
  font-family: "Crimson Pro", serif;
}

/* Radio buttons */
.rsvp-radio-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.rsvp-radio { position: relative; cursor: pointer; }

.rsvp-radio input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.rsvp-radio span {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(42,10,18,0.55);
  border: 1px solid rgba(201,168,76,0.18);
  color: var(--cream-soft);
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.rsvp-radio span i { color: var(--gold); font-size: 1rem; }
.rsvp-radio span strong { color: var(--cream); font-size: 0.98rem; }
.rsvp-radio span small { color: var(--cream-muted); font-size: 0.82rem; line-height: 1.5; }

.rsvp-radio:hover span {
  border-color: rgba(201,168,76,0.30);
  background: rgba(42,10,18,0.75);
}

.rsvp-radio input:checked + span {
  background: rgba(107,26,46,0.45);
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(201,168,76,0.15),
              inset 0 1px 0 rgba(201,168,76,0.10);
}

.rsvp-radio input:checked + span i { color: var(--gold-light); }

/* Status */
.rsvp-status {
  display: none;
  margin: 16px 0 6px;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 0.92rem;
}

.rsvp-status.is-visible { display: block; }

.rsvp-status.is-success {
  background: rgba(107,26,46,0.30);
  border: 1px solid rgba(201,168,76,0.28);
  color: var(--gold-light);
}

.rsvp-status.is-error {
  background: rgba(42,10,18,0.50);
  border: 1px solid rgba(201,168,76,0.22);
  color: #ffdce0;
}

/* Erreurs champs */
.rsvp-field.has-error input,
.rsvp-field.has-error select,
.rsvp-field.has-error textarea {
  border-color: rgba(200,80,100,0.70);
  box-shadow: 0 0 0 3px rgba(200,80,100,0.12);
}

.rsvp-error-msg {
  display: block;
  margin-top: 6px;
  font-size: 0.80rem;
  color: #ffc8c8;
  font-style: italic;
}

/* RSVP Actions */
.rsvp-actions {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

/* ═══════════════════════════════════════ */
/*   BOUTON ROYAL  — fond bordeaux #70101e */
/* ═══════════════════════════════════════ */
.btn-royal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 44px;
  font-size: 1rem;
  font-family: "Crimson Pro", serif;
  font-weight: 600;
  letter-spacing: 0.08em;
  border-radius: 999px;
  cursor: pointer;
  /* MODIFIÉ : fond bordeaux #70101e, texte crème #FCF6DB */
  border: 1px solid var(--gold);
  background: #70101e;
  color: #FCF6DB;
  box-shadow: 0 10px 30px rgba(20,0,8,0.35), 0 0 0 2px rgba(201,168,76,0.12);
  transition: all 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
  min-width: 240px;
}

.btn-royal::before {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.55s ease;
}

.btn-royal:hover {
  background: #8b1424;
  transform: translateY(-4px);
  box-shadow: 0 18px 45px rgba(20,0,8,0.45), 0 0 0 3px rgba(201,168,76,0.25);
  color: #FCF6DB;
}

.btn-royal:hover::before { left: 100%; }

.btn-royal i { font-size: 1.3rem; }

.btn-royal:disabled { opacity: 0.75; cursor: wait; }

/* ═══════════════════════════════════════ */
/*   FOOTER                                */
/* ═══════════════════════════════════════ */
.footer {
  background:
    linear-gradient(180deg, var(--bx-dark) 0%, var(--bx-deep) 100%);
  padding: 80px 0 90px;
  text-align: center;
  border-top: 1px solid rgba(201,168,76,0.15);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  top: -120px; left: 50%;
  transform: translateX(-50%);
  width: 400px; height: 240px;
  background: radial-gradient(ellipse, rgba(201,168,76,0.06), transparent 70%);
  pointer-events: none;
}

.footer-inner {
  width: min(var(--container), calc(100% - 32px));
  max-width: 700px;
  margin: 0 auto;
}

.footer-ornament { display: block; width: 300px; margin: 0 auto 28px; }
.footer-ornament-bottom { margin-top: 28px; margin-bottom: 28px; }

.footer-names {
  font-family: "Great Vibes", cursive;
  font-size: clamp(3rem, 9vw, 6.5rem);
  font-weight: 400;
  color: var(--cream);
  text-shadow: 0 4px 24px rgba(201,168,76,0.18);
  line-height: 1.05;
  margin-bottom: 10px;
}

.footer-arabic {
  font-family: "Amiri", serif;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  color: var(--gold-light);
  margin-bottom: 14px;
}

.footer-text {
  color: var(--cream-soft);
  font-style: italic;
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

.footer-copy {
  color: var(--cream-muted);
  font-size: 0.80rem;
  letter-spacing: 0.10em;
  font-family: "Crimson Pro", serif;
  margin-top: 0;
}

/* ═══════════════════════════════════════ */
/*   ANIMATIONS REVEAL                     */
/* ═══════════════════════════════════════ */
.reveal-fade,
.reveal-left,
.reveal-right,
.reveal-zoom {
  opacity: 0;
  transition: opacity 1s ease, transform 1s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

.reveal-fade  { transform: translateY(32px); }
.reveal-left  { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal-zoom  { transform: scale(0.95); }

.reveal-fade.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible,
.reveal-zoom.is-visible { opacity: 1; transform: none; }

@keyframes mainFade {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════ */
/*   RESPONSIVE                            */
/* ═══════════════════════════════════════ */
@media (max-width: 900px) {
  .lieu-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .dress-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
}

@media (max-width: 768px) {
  .section {  position: relative;
  padding: 50px 0;
  z-index: 1; }
  .section-titre { font-size: 1.6rem; }

  .hero-section { padding: 60px 0 100px; }
  .names-script { font-size: clamp(2.8rem, 10vw, 5rem); }

  .event-date-block { max-width: 340px; }
  .date-num { font-size: clamp(1.6rem, 5vw, 2.4rem); }

  .countdown { gap: 6px; }
  .count-block { max-width: 80px; }
  .count-inner { border-radius: 12px; }
  .count-inner span { font-size: clamp(1.3rem, 4.5vw, 2rem); }
  .count-sep { width: 14px; font-size: 1.2rem; }
  .count-block small { font-size: 0.56rem; }

  .lieu-grid { grid-template-columns: 1fr; }
  .dress-grid { grid-template-columns: 1fr; gap: 18px; }
  .map-box { height: 300px; border-radius: 18px; }

  .rsvp-form { padding: 28px 22px; border-radius: 22px; }
  .rsvp-radio-group { grid-template-columns: 1fr; }
  .btn-royal { width: 100%; min-width: unset; }

  .footer { padding: 60px 0 70px; }
  .floating-logo { width: 100px; height: 100px; }
  .section-banner-image { height: 220px; }
}

@media (max-width: 480px) {
  .container { width: calc(100% - 18px); }
  .hero-section { padding: 50px 0 90px; }
  .names-script { font-size: clamp(2.4rem, 12vw, 4rem); }
  .event-date-block { max-width: 300px; }
  .date-pillar { padding: 20px 12px; }
  .countdown { gap: 4px; }
  .count-block { max-width: 68px; }
  .count-inner span { font-size: 1.2rem; }
  .count-sep { font-size: 1rem; width: 12px; }
  .section-titre { font-size: 1.35rem; }
  .section-khat { font-size: 1.2rem; }
  .lieu-card { padding: 28px 18px; }
  .dress-card { padding: 36px 22px 44px; }
  .rsvp-form { padding: 22px 16px; }
  .section-banner-image { height: 180px; }
  .floating-logo { width: 85px; height: 85px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  * { animation: none !important; transition: none !important; }
  .reveal-fade, .reveal-left, .reveal-right, .reveal-zoom {
    opacity: 1 !important;
    transform: none !important;
  }
  .floating-logo { top: 20px; left: 20px; transform: none !important; }
}