/* ═══════════════════════════════════════════════════════════════
   PALETTE v3 — VRAI blanc cassé (zéro beige) + VERT dominant
   ── Fond dominant : vrai off-white #F5F6F4 (fraîcheur, pas beige)
   ── Texte dominant : VERT profond sur tout (titres + corps)
   ── Or : RAREMENT — filets fins, petits icônes, hover uniquement
   ═══════════════════════════════════════════════════════════════ */
:root {
  /* ── VRAI BLANC CASSÉ — pas de teinte jaune/beige, légèrement frais ── */
  --cream: #F5F6F4;
  --cream-pale: #EFEFF0;
  --cream-soft: rgba(245, 246, 244, 0.92);
  --cream-muted: rgba(47, 74, 48, 0.65);
  --cream-faint: rgba(47, 74, 48, 0.10);

  /* ── VERT — COULEUR DOMINANTE des écritures (titres + corps) ── */
  --sage-deep: #1E3823;
  --sage-dark: #284A30;
  --sage-main: #2F4A30;
  --sage-mid: #3F5E40;
  --sage-light: #6F8868;

  /* ── ENCRE = VERT — utilisé pour le texte et éléments interactifs ── */
  --ink-deep: #1E3823;
  --ink-body: #284A30;
  --ink-text: #2F4A30;
  --ink-soft: rgba(40, 74, 48, 0.85);
  --ink-muted: rgba(40, 74, 48, 0.60);

  /* ── OR — UNIQUEMENT accents décoratifs (filets, icônes, hover) ── */
  --gold: #A88342;
  --gold-light: #BFA470;
  --gold-pale: #D9C49A;

  /* ── VERT SAPIN (touche profonde) ── */
  --forest: #142819;

  /* ── OMBRES — vert-gris très léger ── */
  --shadow: 0 16px 40px rgba(30, 56, 35, 0.10);
  --shadow-sm: 0 6px 18px rgba(30, 56, 35, 0.08);
  --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(--cream);
  color: var(--ink-text);
  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;
  color: var(--sage-main);
}

button,
input,
textarea,
select {
  font: inherit;
}

main {
  overflow: hidden;
}

.main-content {
  position: relative;
  z-index: 2;
  background: var(--cream);
  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;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(111, 136, 104, 0.15) 0%, transparent 70%),
    var(--cream);
}

.pattern-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.45;
}

/* Mise à jour des patterns en strokes clair sur fond blanc cassé */
.arabesque-bg .pattern-svg path,
.arabesque-bg .pattern-svg circle {
  stroke: rgba(91, 106, 78, 0.20) !important;
  fill: none;
}

.arabesque-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(111, 136, 104, 0.32), transparent 70%);
  top: -150px;
  left: -150px;
  animation: orbDrift 28s ease-in-out infinite alternate;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(63, 94, 64, 0.18), 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(20, 40, 25, 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(--cream);
  border: 1px solid var(--gold);
  box-shadow: 0 8px 24px rgba(63, 74, 56, 0.18), 0 0 0 2px rgba(63, 94, 64, 0.20);
  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(--cream-pale);
  box-shadow: 0 10px 30px rgba(63, 74, 56, 0.24), 0 0 0 3px rgba(63, 94, 64, 0.32);
}

.music-toggle i {
  font-size: 1.1rem;
  color: var(--gold);
}

/* ═══════════════════════════════════════ */
/*   INTRO SCREEN                          */
/* ═══════════════════════════════════════ */
.intro-screen {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  min-height: 100dvh;
  background: var(--cream);
  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(245, 246, 244, 0.22), rgba(245, 246, 244, 0.55));
  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(63, 74, 56, 0.30));
  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: 10px 0;
  z-index: 1;
  background: var(--cream);
}

/* ═══════════════════════════════════════ */
/*   HERO — fond blanc cassé dominant      */
/* ═══════════════════════════════════════ */
.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%, rgba(111, 136, 104, 0.25) 0%, transparent 65%),
    var(--cream);
  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.45;
  animation: medallionSpin 120s linear infinite;
}

.medallion-svg polygon {
  fill: rgba(91, 106, 78, 0.06) !important;
  stroke: rgba(91, 106, 78, 0.30) !important;
}

@keyframes medallionSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Hero — citation Great Vibes */
.hero-quote {
  font-family: "Great Vibes", cursive;
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--sage-deep);
  font-weight: 400;
  line-height: 1.4;
  margin: 0 auto 28px;
  max-width: 640px;
  opacity: 0.95;
  text-shadow: 0 2px 12px rgba(63, 94, 64, 0.20);
}

.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);
  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(--sage-deep);
  line-height: 1.1;
  text-shadow: 0 4px 24px rgba(63, 94, 64, 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);
  margin-top: 6px;
  opacity: 0.92;
}

/* 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(--ink-body);
  max-width: 600px;
  margin: 0 auto 40px;
  font-style: italic;
}

/* Date block sur fond clair */
.event-date-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 0 auto 40px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(63, 94, 64, 0.35);
  border-radius: 20px;
  overflow: hidden;
  max-width: 460px;
  width: 100%;
  box-shadow: var(--shadow-sm);
}

.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);
  font-family: "Crimson Pro", serif;
}

.date-num {
  font-family: "Cinzel Decorative", serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--sage-deep);
  line-height: 1;
  font-weight: 700;
}

.date-num small {
  font-size: 0.45em;
  vertical-align: super;
  color: var(--gold);
}

.date-month {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.date-icon {
  color: var(--gold);
  font-size: 1.3rem;
  margin-bottom: 4px;
}

/* Countdown — blocs clairs */
.countdown-wrapper {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
}

.countdown-label {
  font-family: "Amiri", serif;
  font-size: 1.15rem;
  color: var(--gold);
  margin-bottom: 20px;
  opacity: 0.95;
}

.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(255, 255, 255, 0.85), rgba(246, 239, 233, 0.70));
  border: 1px solid rgba(63, 94, 64, 0.40);
  border-radius: 16px;
  box-shadow:
    0 10px 26px rgba(63, 74, 56, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.70);
  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(63, 94, 64, 0.18);
}

.count-inner:hover {
  transform: translateY(-6px) scale(1.04);
  box-shadow: 0 18px 40px rgba(63, 74, 56, 0.22), 0 0 0 1px rgba(63, 94, 64, 0.50);
}

.count-inner span {
  font-family: "Cinzel Decorative", serif;
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  color: var(--sage-deep);
  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);
  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.75;
  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.75;
  }

  50% {
    opacity: 0.30;
  }
}

/* ═══════════════════════════════════════ */
/*   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);
}

.section-khat {
  font-family: "Amiri", serif;
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 10px;
}

.section-titre {
  font-family: "Cinzel Decorative", serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--sage-deep);
  line-height: 1.15;
  margin-bottom: 14px;
  letter-spacing: 0.04em;
}

.section-sous {
  max-width: 680px;
  margin: 0 auto;
  color: var(--ink-body);
  font-size: 1.08rem;
  font-style: italic;
}

.section-sous strong {
  color: var(--gold);
  font-style: normal;
}

.section-vibes {
  font-family: "Great Vibes", cursive;
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  color: var(--gold);
  font-weight: 400;
  margin-bottom: 18px;
  opacity: 0.92;
}

/* ═══════════════════════════════════════ */
/*   SÉPARATEURS ENTRE SECTIONS            */
/* ═══════════════════════════════════════ */
.section-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 30px 0;
  position: relative;
  z-index: 1;
}

.sep-line {
  flex: 1;
  max-width: 200px;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(63, 94, 64, 0.55));
}

.sep-line.right {
  background: linear-gradient(to left, transparent, rgba(63, 94, 64, 0.55));
}

.sep-center {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(63, 94, 64, 0.85);
  font-size: 0.55rem;
  letter-spacing: 6px;
}

/* ═══════════════════════════════════════ */
/*   BANNERS                               */
/* ═══════════════════════════════════════ */
.full-banner {
  width: 100%;
  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(245, 246, 244, 0.10) 0%,
      rgba(245, 246, 244, 0.03) 40%,
      rgba(245, 246, 244, 0.35) 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(--sage-deep);
  letter-spacing: 0.12em;
  text-shadow: 0 2px 14px rgba(63, 94, 64, 0.10);
}

/* ═══════════════════════════════════════ */
/*   LIEU SECTION                          */
/* ═══════════════════════════════════════ */
.section-lieu {
  background: linear-gradient(180deg, var(--cream-pale) 0%, var(--cream) 100%);
  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(255, 255, 255, 0.75), rgba(246, 239, 233, 0.55));
  border: 1px solid rgba(63, 94, 64, 0.32);
  border-radius: var(--radius);
  padding: 38px 30px;
  overflow: hidden;
  transition: var(--transition);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
}

.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(63, 94, 64, 0.16), transparent 70%);
  pointer-events: none;
}

.lieu-card:hover {
  transform: translateY(-10px);
  border-color: rgba(63, 94, 64, 0.55);
  box-shadow: var(--shadow);
}

.lieu-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(63, 94, 64, 0.18);
  border: 1px solid rgba(63, 94, 64, 0.50);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.lieu-card-icon i {
  color: var(--gold);
  font-size: 1.2rem;
}

.lieu-card h3 {
  font-family: "Cinzel Decorative", serif;
  font-size: 1.5rem;
  color: var(--sage-deep);
  margin-bottom: 12px;
  font-weight: 700;
}

.lieu-card p {
  color: var(--ink-body);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 1rem;
}

.lieu-card p i {
  color: var(--gold);
}

.btn-royal-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid rgba(63, 94, 64, 0.60);
  color: var(--gold);
  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(63, 94, 64, 0.18);
  border-color: var(--gold);
  color: var(--sage-deep);
}

.map-box {
  height: 420px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(63, 94, 64, 0.35);
  box-shadow: var(--shadow);
  transition: transform 0.4s ease;
}

.map-box:hover {
  transform: scale(1.01);
}

/* ═══════════════════════════════════════ */
/*   DRESS / INFORMATIONS                  */
/* ═══════════════════════════════════════ */
.section-dress {
  background:
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(111, 136, 104, 0.18) 0%, transparent 65%),
    var(--cream);
  padding-top: 0px;
}

.dress-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.dress-card {
  position: relative;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(246, 239, 233, 0.78));
  border: 1px solid rgba(63, 94, 64, 0.40);
  border-radius: 28px;
  padding: 48px 34px 54px;
  text-align: center;
  overflow: hidden;
  transition: var(--transition);
  box-shadow:
    0 16px 36px rgba(63, 74, 56, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.50);
}

.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(63, 94, 64, 0.40), transparent);
}

.dress-card:hover {
  transform: translateY(-12px);
  border-color: rgba(63, 94, 64, 0.65);
  box-shadow: 0 24px 50px rgba(63, 74, 56, 0.22);
  background: rgba(255, 255, 255, 0.95);
}

.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(63, 94, 64, 0.18);
  border: 1px solid rgba(63, 94, 64, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dress-icon-wrap i {
  color: var(--gold);
  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(--ink-deep);
  margin-bottom: 14px;
  font-weight: 700;
}

.dress-card p {
  color: var(--ink-body);
  font-size: 1.05rem;
  line-height: 1.7;
}

.dress-card p[dir="rtl"] {
  color: var(--sage-main);
  margin-top: 10px;
  font-weight: 600;
}

.dress-motif {
  position: absolute;
  bottom: 16px;
  right: 22px;
  font-size: 0.9rem;
  color: rgba(63, 94, 64, 0.50);
  letter-spacing: 4px;
}

/* ═══════════════════════════════════════ */
/*   RSVP — Formulaire                     */
/* ═══════════════════════════════════════ */
.rsvp-section {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(111, 136, 104, 0.20) 0%, transparent 60%),
    var(--cream);
  padding-bottom: 120px;
  overflow: hidden;
}

.rsvp-bg-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.40;
}

.rsvp-bg-pattern svg {
  width: 100%;
  height: 100%;
}

.rsvp-bg-pattern svg path,
.rsvp-bg-pattern svg circle {
  stroke: rgba(91, 106, 78, 0.22) !important;
  fill: none;
}

.rsvp-bg-pattern svg circle[fill] {
  fill: rgba(91, 106, 78, 0.18) !important;
}

/* Le formulaire — parchemin clair */
.rsvp-form {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(246, 239, 233, 0.82));
  border: 1px solid rgba(63, 94, 64, 0.40);
  border-radius: 28px;
  padding: 44px 40px;
  box-shadow: 0 22px 54px rgba(63, 74, 56, 0.18);
  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(--sage-main);
  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(--ink-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(--ink-deep);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(63, 94, 64, 0.50);
  border-radius: 14px;
  transition: all 0.3s ease;
  outline: none;
}

.rsvp-field input::placeholder,
.rsvp-field textarea::placeholder {
  color: var(--ink-muted);
  font-style: italic;
}

.rsvp-field input:focus,
.rsvp-field select:focus,
.rsvp-field textarea:focus {
  background: rgba(255, 255, 255, 1);
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(63, 94, 64, 0.30);
}

.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='%232F4A30' 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(255, 255, 255, 0.85);
  padding-right: 44px;
  cursor: pointer;
}

.rsvp-field select option {
  background: var(--cream);
  color: var(--ink-deep);
}

.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(255, 255, 255, 0.65);
  border: 1px solid rgba(63, 94, 64, 0.35);
  color: var(--ink-body);
  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(--ink-deep);
  font-size: 0.98rem;
}

.rsvp-radio span small {
  color: var(--ink-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.rsvp-radio:hover span {
  border-color: rgba(63, 94, 64, 0.65);
  background: rgba(255, 255, 255, 0.95);
}

.rsvp-radio input:checked+span {
  background: rgba(255, 255, 255, 0.98);
  border-color: var(--gold);
  box-shadow:
    0 0 0 2px rgba(63, 94, 64, 0.30),
    inset 0 1px 0 rgba(63, 94, 64, 0.20);
}

.rsvp-radio input:checked+span i {
  color: var(--gold);
}

/* 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(63, 94, 64, 0.20);
  border: 1px solid rgba(63, 94, 64, 0.55);
  color: var(--sage-main);
}

.rsvp-status.is-error {
  background: rgba(168, 39, 72, 0.10);
  border: 1px solid rgba(168, 39, 72, 0.45);
  color: var(--sage-main);
}

.rsvp-field.has-error input,
.rsvp-field.has-error select,
.rsvp-field.has-error textarea {
  border-color: rgba(168, 39, 72, 0.75);
  box-shadow: 0 0 0 3px rgba(168, 39, 72, 0.20);
}

.rsvp-error-msg {
  display: block;
  margin-top: 6px;
  font-size: 0.80rem;
  color: var(--sage-deep);
  font-style: italic;
}

.rsvp-actions {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

/* ═══════════════════════════════════════ */
/*   BOUTON ROYAL                          */
/* ═══════════════════════════════════════ */
.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;
  border: 1px solid var(--gold);
  background: linear-gradient(145deg, var(--sage-main), var(--sage-dark));
  color: var(--cream);
  box-shadow:
    0 10px 26px rgba(63, 74, 56, 0.30),
    0 0 0 2px rgba(63, 94, 64, 0.30);
  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.28), transparent);
  transition: left 0.55s ease;
}

.btn-royal:hover {
  background: linear-gradient(145deg, var(--sage-deep), var(--sage-main));
  transform: translateY(-4px);
  box-shadow:
    0 16px 40px rgba(63, 74, 56, 0.36),
    0 0 0 3px rgba(63, 94, 64, 0.45);
  color: var(--cream);
}

.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(--cream-pale) 0%, var(--cream) 100%);
  padding: 80px 0 20px;
  text-align: center;
  border-top: 1px solid rgba(63, 94, 64, 0.30);
  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(63, 94, 64, 0.16), 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 svg line {
  stroke: rgba(91, 106, 78, 0.45) !important;
}

.footer-ornament svg circle {
  stroke: rgba(91, 106, 78, 0.60) !important;
  fill: none;
}

.footer-ornament svg circle[fill] {
  fill: rgba(91, 106, 78, 0.55) !important;
}

.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(--sage-deep);
  text-shadow: 0 4px 22px rgba(63, 94, 64, 0.30);
  line-height: 1.05;
  margin-bottom: 10px;
}

.footer-arabic {
  font-family: "Amiri", serif;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  color: var(--gold);
  margin-bottom: 14px;
}

.footer-text {
  color: var(--ink-body);
  font-style: italic;
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

.footer-copy {
  color: var(--ink-muted);
  font-size: 0.80rem;
  letter-spacing: 0.10em;
  font-family: "Crimson Pro", serif;
}

/* ═══════════════════════════════════════ */
/*   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: 20px 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 50px;
  }

  .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;
  }
}

/* ═══════════════════════════════════════════════════════════════
   SECTION RSVP — fond et décor
   ═══════════════════════════════════════════════════════════════ */
.rsvp-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 20%, rgba(111, 136, 104, 0.16) 0%, transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(63, 94, 64, 0.10) 0%, transparent 45%);
  z-index: 0;
}

.rsvp-section .container {
  position: relative;
  z-index: 2;
}

.rsvp-bg-pattern {
  opacity: 0.35;
}

@media (min-width: 1024px) {
  .rsvp-section {
    background-attachment: fixed;
  }
}

/* ═══════════════════════════════════════ */
/*   FOND IMAGE CALLIGRAPHIE               */
/*   Section « Informations »             */
/* ═══════════════════════════════════════ */
.section-dress {
  position: relative;
  overflow: hidden;
}

.section-dress::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("assets/back1.jpg");
  background-size: 620px auto;
  background-repeat: repeat;
  background-position: center top;
  opacity: 0.14;
}

.section-dress>.section-separator,
.section-dress>.full-banner,
.section-dress>.container {
  position: relative;
  z-index: 1;
}

@media (max-width: 600px) {
  .section-dress::before {
    background-size: 480px auto;
    background-position: center 40px;
    opacity: 0.10;
  }
}

/* ═══════════════════════════════════════ */
/*   CALENDRIER — Carte royale             */
/* ═══════════════════════════════════════ */
.calendar-card {
  position: relative;
  display: block;
  width: 100%;
  max-width: 460px;
  margin: 8px auto 36px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(63, 94, 64, 0.40);
  background: rgba(255, 255, 255, 0.55);
  box-shadow:
    0 18px 42px rgba(63, 74, 56, 0.18),
    0 0 0 4px rgba(63, 94, 64, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.50);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.calendar-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(135deg,
      rgba(63, 94, 64, 0.14) 0%, transparent 35%,
      transparent 65%, rgba(63, 94, 64, 0.10) 100%);
  z-index: 2;
}

.calendar-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  z-index: 3;
  pointer-events: none;
}

.calendar-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 6s ease;
}

.calendar-card:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow:
    0 26px 58px rgba(63, 74, 56, 0.24),
    0 0 0 5px rgba(63, 94, 64, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

.calendar-card:hover img {
  transform: scale(1.04);
}

@media (max-width: 768px) {
  .calendar-card {
    max-width: 100%;
    margin-bottom: 28px;
    border-radius: 18px;
  }
}

@media (max-width: 480px) {
  .calendar-card {
    border-radius: 14px;
    margin-bottom: 22px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   COEUR EMBALLÉ — Message scellé
   Adaptation à la palette claire / vert sauge / bronze
   ═══════════════════════════════════════════════════════════════ */
.heart-reveal {
  position: relative;
  padding: 20px 0 110px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-pale) 100%);
}

.heart-package {
  position: relative;
  width: 340px;
  max-width: 92vw;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  touch-action: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.heart-package.is-dragging {
  cursor: grabbing;
}

.heart-package:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 8px;
  border-radius: 20px;
}

.heart-shape {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.heart-shape svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 20px 28px rgba(63, 74, 56, 0.30));
}

/* Texte révélé — dans le cœur sauge */
.heart-secret {
  position: absolute;
  inset: 12% 14%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--cream);
  pointer-events: none;
  opacity: 0;
  transform: scale(0.86);
  transition: opacity 0.55s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 2;
  clip-path: path("M100 165 C 60 130, 10 95, 10 55 C 10 25, 40 5, 70 18 C 85 25, 95 38, 100 50 C 105 38, 115 25, 130 18 C 160 5, 190 25, 190 55 C 190 95, 140 130, 100 165 Z");
  -webkit-clip-path: path("M100 165 C 60 130, 10 95, 10 55 C 10 25, 40 5, 70 18 C 85 25, 95 38, 100 50 C 105 38, 115 25, 130 18 C 160 5, 190 25, 190 55 C 190 95, 140 130, 100 165 Z");
}

.heart-package.is-opened .heart-secret {
  opacity: 1;
  transform: scale(1);
}

.heart-secret-kicker {
  font-family: "Cinzel Decorative", serif;
  font-size: 0.78rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold-pale);
  margin-bottom: 4px;
}

.heart-secret-title {
  font-family: "Great Vibes", "Crimson Pro", serif;
  font-size: 2.4rem;
  line-height: 1.1;
  margin: 0 0 4px;
  color: var(--cream);
}

.heart-secret-divider {
  color: var(--gold);
  letter-spacing: 0.6em;
  font-size: 0.85rem;
  margin: 8px 0;
}

.heart-secret-text {
  font-family: "Crimson Pro", serif;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--cream);
  margin: 0;
}

.heart-secret-text strong cos {
  color: var(--gold-light);
  font-size: 1.05rem;
  font-weight: 600;
}

.heart-secret-text strong {
  color: var(--gold-pale);
  font-weight: 600;
}

/* Voile (rubans + sceau) glisse vers le haut au drag */
.heart-wrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  transition: transform 0.55s cubic-bezier(0.5, 0, 0.2, 1);
  will-change: transform;
  transform: translateY(0);
}

.heart-package.is-opened .heart-wrap {
  transform: translateY(-82%);
}

.heart-package.is-dragging .heart-wrap {
  transform: translateY(var(--heart-progress, 0%));
  transition: none;
}

/* Cœur SVG — couleur de fond du cœur */
.heart-shape svg path[fill="#260608"],
.heart-shape svg path[fill="#3E1614"] {
  fill: var(--sage-deep) !important;
}

.ribbon {
  position: absolute;
  background: linear-gradient(90deg, var(--sage-main), var(--gold-pale) 45%, var(--gold) 60%, var(--gold-light) 80%, var(--sage-main));
  box-shadow:
    inset 0 -3px 6px rgba(0, 0, 0, 0.25),
    inset 0 3px 6px rgba(255, 255, 255, 0.30),
    0 4px 12px rgba(63, 74, 56, 0.30);
}

.ribbon-top {
  left: -6%;
  right: -6%;
  top: 38%;
  height: 26px;
  transform: rotate(-3deg);
}

.ribbon-bottom {
  left: -6%;
  right: -6%;
  bottom: 38%;
  height: 26px;
  transform: rotate(3deg);
}

.ribbon-left {
  top: -6%;
  bottom: -6%;
  left: 38%;
  width: 26px;
  transform: rotate(-3deg);
  background: linear-gradient(180deg, var(--sage-main), var(--gold-pale) 45%, var(--gold) 60%, var(--gold-light) 80%, var(--sage-main));
}

.ribbon-right {
  top: -6%;
  bottom: -6%;
  right: 38%;
  width: 26px;
  transform: rotate(3deg);
  background: linear-gradient(180deg, var(--sage-main), var(--gold-pale) 45%, var(--gold) 60%, var(--gold-light) 80%, var(--sage-main));
}

.ribbon-bow {
  position: absolute;
  width: 38px;
  height: 30px;
  background: radial-gradient(ellipse at 50% 50%, var(--gold-light), var(--gold) 50%, var(--sage-main));
  border-radius: 50% 50% 30% 30%;
  box-shadow: 0 4px 10px rgba(63, 74, 56, 0.40), inset 0 0 0 2px rgba(255, 255, 255, 0.25);
}

.ribbon-bow-tl {
  top: 28%;
  left: 28%;
  transform: rotate(-45deg);
}

.ribbon-bow-tr {
  top: 28%;
  right: 28%;
  transform: rotate(45deg);
}

.ribbon-bow-bl {
  bottom: 28%;
  left: 28%;
  transform: rotate(-135deg);
}

.ribbon-bow-br {
  bottom: 28%;
  right: 28%;
  transform: rotate(135deg);
}

.heart-seal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--gold-light), var(--gold) 35%, var(--sage-main) 70%, var(--sage-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  font-size: 24px;
  box-shadow:
    0 8px 22px rgba(63, 74, 56, 0.50),
    inset 0 0 0 3px rgba(255, 255, 255, 0.25),
    inset 0 -8px 14px rgba(0, 0, 0, 0.35),
    inset 0 6px 12px rgba(255, 255, 255, 0.18);
  z-index: 5;
}

.heart-hint {
  position: absolute;
  bottom: -42px;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Cinzel Decorative", serif;
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 0.4s ease, transform 0.4s ease;
  animation: heartHintBob 2.2s ease-in-out infinite;
}

.heart-hint i {
  font-size: 1rem;
}

.heart-package.is-opened .heart-hint {
  opacity: 0;
  transform: translateX(-50%) translateY(8px);
}

@keyframes heartHintBob {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(-5px);
  }
}

.heart-package {
  filter: drop-shadow(0 20px 30px rgba(63, 74, 56, 0.28)) drop-shadow(0 6px 12px rgba(63, 74, 56, 0.18));
  transition: transform 0.4s cubic-bezier(.34, 1.56, .64, 1);
}

.heart-package:active {
  cursor: grabbing;
}

.heart-package-focus {
  box-shadow: 0 0 0 3px rgba(63, 94, 64, 0.55);
  border-radius: 50%;
}

/* Bouton fallback */
.heart-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 58px auto 0;
  padding: 13px 30px;
  font-family: "Cinzel Decorative", serif;
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(245, 246, 244, 0.70);
  border: 1px solid rgba(63, 94, 64, 0.60);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.32s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.heart-toggle-btn:hover {
  color: var(--sage-deep);
  background: rgba(63, 94, 64, 0.20);
  border-color: var(--gold);
  box-shadow: 0 0 26px rgba(63, 94, 64, 0.40);
}

.heart-package.is-opened .heart-toggle-btn {
  background: rgba(63, 94, 64, 0.20);
  color: var(--cream);
}

.heart-toggle-btn-close {
  display: none;
  align-items: center;
  gap: 8px;
  margin: 18px auto 0;
  padding: 9px 22px;
  font-family: "Crimson Pro", serif;
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(255, 255, 255, 0.60);
  border: 1px solid rgba(63, 94, 64, 0.50);
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(4px);
}

.heart-toggle-btn-close:hover {
  color: var(--sage-deep);
  background: rgba(63, 94, 64, 0.20);
}

.heart-package[data-state="opened"]~.heart-toggle-btn-close,
.heart-package.is-opened+.heart-toggle-btn-close {
  display: inline-flex;
}

@media (max-width: 480px) {
  .heart-reveal {
    padding: 70px 0 90px;
  }

  .heart-package {
    width: 290px;
  }

  .heart-secret-title {
    font-size: 2rem;
  }

  .heart-hint {
    font-size: 0.7rem;
  }

  .heart-secret {
    clip-path: none;
    inset: 14%;
  }
}

@media (prefers-reduced-motion: reduce) {

  .heart-wrap,
  .heart-secret {
    transition: none;
  }

  .heart-hint {
    animation: none;
  }
}

/* Confettis */
.confetti {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  pointer-events: none;
  opacity: 0;
  z-index: 6;
}

@media (max-width: 480px) {
  .heart-package {
    width: min(300px, 92vw);
  }

  .heart-seal i {
    font-size: 28%;
  }
}