:root {
  /* Palette : Blanc (primaire) / Saumon (secondaire) / Or (tertiaire) */
  --salmon: #e8836a;        /* saumon — accent principal (boutons, liens, interactions) */
  --salmon-dark: #cf6a51;   /* saumon foncé — hover / états actifs */
  --salmon-light: #fbe6dc;  /* saumon très doux */
  --gold: #EFBF04;           /* or — accents décoratifs (filets, eyebrow, chiffres) */
  --gold-dark: #c99f00;      /* or foncé pour meilleure lisibilité */
  --pink-bg: #fdf3ef;        /* fond teinté saumon très clair */
  --pink-light: #fbe6dc;     /* saumon clair (fonds de badges, footer) */
  --border: #f2cdb9;         /* bordures saumon clair */
  --white: #ffffff;          /* blanc — couleur primaire */
  --text: #3a2c22;
  --text-muted: #6b5748;
  --text-soft: #a08c7c;
  --green-bg: #e3f5e9;
  --green-text: #1f7a4d;
  --amber-bg: #fdf1d6;
  --amber-text: #966e06;
  --gray-bg: #f1eff0;
  --gray-text: #6b6067;
  --blue-bg: #e6f0fb;
  --blue-text: #2461a8;
  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 24px;
  --shadow: 0 10px 30px rgba(184, 106, 81, 0.1);
  --shadow-hover: 0 14px 36px rgba(184, 106, 81, 0.16);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 74px;
  overflow-x: hidden;
  width: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  font-family: "Jost", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  margin: 0;
  line-height: 1.15;
}

a {
  color: inherit;
  transition: color 0.2s ease;
}

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

.eyebrow {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  color: var(--gold-dark);
  margin: 0 0 0.4rem;
  letter-spacing: 0.02em;
}

.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
  width: 100%;
}

.section {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}

.section--tint {
  background: var(--pink-bg);
}

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

.section-head h2 {
  font-size: clamp(1.9rem, 5.5vw, 2.5rem);
}

.section-head .rule {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: 0.85rem auto 0;
  border: none;
  border-radius: 2px;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.85rem 1.6rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
  min-height: 44px;
  text-align: center;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--salmon);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(232, 131, 106, 0.35);
}

.btn-primary:hover {
  background: var(--salmon-dark);
  box-shadow: 0 6px 20px rgba(207, 106, 81, 0.45);
}

.btn-outline {
  background: var(--white);
  color: var(--salmon-dark);
  border-color: var(--border);
}

.btn-outline:hover {
  border-color: var(--salmon);
  background: var(--pink-bg);
}

.btn-sm {
  padding: 0.55rem 1.15rem;
  font-size: 0.88rem;
  min-height: 38px;
}

.nav-gift-icon {
  width: 1.35rem;
  height: 1.35rem;
  object-fit: contain;
  flex: 0 0 auto;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 18px rgba(184, 106, 81, 0.12);
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  gap: 0.8rem;
}

.nav-logo {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: clamp(1.2rem, 3.8vw, 1.45rem);
  font-weight: 600;
  color: var(--salmon-dark);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  padding: 0.4rem 0.2rem;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--salmon-dark);
}

.nav-links a.active {
  color: var(--gold-dark);
  font-weight: 600;
  position: relative;
}
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--salmon);
  transition: width 0.2s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.story-title-heart {
  width: 1.55em;
  height: 1.55em;
  object-fit: contain;
  vertical-align: -0.35em;
  display: inline-block;
  mix-blend-mode: multiply;
  animation: heart-beat 1.35s ease-in-out infinite;
}

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

/* Bouton Hamburger Mobile */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  cursor: pointer;
  padding: 0;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  z-index: 60;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.nav-toggle:hover {
  background: var(--pink-bg);
  border-color: var(--salmon);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--salmon-dark);
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.68, -0.6, 0.32, 1.6), opacity 0.25s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Overlay sombre mobile */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(58, 44, 34, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 52;
}

.nav-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(84vw, 320px);
    height: 100vh;
    height: 100dvh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: stretch;
    padding: 5.5rem 1.75rem 2rem;
    gap: 0.5rem;
    box-shadow: -10px 0 35px rgba(58, 44, 34, 0.15);
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 55;
    overflow-y: auto;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    font-size: 1.15rem;
    font-weight: 500;
    display: block;
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid var(--pink-bg);
    border-radius: var(--radius-s);
  }

  .nav-links a:hover {
    background: var(--pink-bg);
    padding-left: 0.8rem;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-links .nav-drawer-cta {
    display: block;
    margin-top: 1rem;
    text-align: center;
  }

  .nav-links .nav-drawer-cta--gift {
    margin-top: 0.6rem;
  }

  .nav-desktop-cta {
    display: none !important;
  }
}

@media (min-width: 861px) {
  .nav-drawer-cta {
    display: none !important;
  }
  .nav-backdrop {
    display: none !important;
  }
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(6.5rem, 11vw, 8.5rem) 0 clamp(2.5rem, 6vw, 4.5rem);
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.8rem, 4vw, 3.5rem);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.2rem, 6.5vw, 3.5rem);
  color: var(--salmon-dark);
  line-height: 1.08;
  margin-top: 0.2rem;
  word-break: normal;
}

.hero-date {
  margin-top: 1.1rem;
  color: var(--text-muted);
  font-size: clamp(0.95rem, 2.5vw, 1.05rem);
}

.hero-date strong {
  display: block;
  letter-spacing: 0.03em;
  color: var(--text);
  font-size: 1.1em;
}

.hero-photo {
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow);
  width: 100%;
}

.hero-photo img {
  height: clamp(380px, 68vw, 660px);
  width: 100%;
  object-fit: cover;
  display: block;
}

/* Compte à rebours */
.countdown {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.4rem, 2vw, 0.75rem);
  margin-top: clamp(1.3rem, 3.5vw, 1.85rem);
}

.countdown .box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  padding: clamp(0.5rem, 1.8vw, 0.75rem) clamp(0.6rem, 2vw, 1rem);
  text-align: center;
  flex: 1 1 clamp(58px, 20%, 75px);
  min-width: 58px;
  max-width: 90px;
  box-shadow: 0 4px 14px rgba(184, 106, 81, 0.06);
}

.countdown .num {
  font-size: clamp(1.25rem, 3.8vw, 1.55rem);
  font-weight: 600;
  color: var(--gold-dark);
  font-family: "Cormorant Garamond", serif;
  line-height: 1.1;
}

.countdown .lab {
  font-size: 0.68rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 0.15rem;
}

@media (max-width: 860px) {
  .hero {
    padding-top: clamp(4.5rem, 18vw, 6rem);
  }

  .hero .wrap {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .countdown {
    justify-content: center;
  }

  .hero-photo {
    max-width: 500px;
    margin: 0 auto;
  }
}

/* ---------- Notre Histoire (Carrousel & Vidéo) ---------- */
.story-carousel {
  position: relative;
  max-width: 640px;
  width: 100%;
  margin: 0 auto clamp(1.8rem, 4vw, 2.5rem);
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  background: #120e0b;
  touch-action: pan-y pinch-zoom;
  user-select: none;
}

.story-track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.65, 0, 0.35, 1);
  will-change: transform;
}

.story-slide {
  min-width: 100%;
  position: relative;
}

.story-slide img {
  width: 100%;
  height: clamp(300px, 60vw, 560px);
  object-fit: cover;
  display: block;
}

.story-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.88);
  color: var(--salmon-dark);
  border: 1px solid rgba(242, 205, 185, 0.5);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: background 0.2s ease, transform 0.15s ease, opacity 0.2s ease;
  z-index: 5;
}

.story-nav:hover {
  background: #ffffff;
  transform: translateY(-50%) scale(1.06);
}

.story-nav:active {
  transform: translateY(-50%) scale(0.94);
}

.story-nav.prev { left: clamp(8px, 2.5vw, 16px); }
.story-nav.next { right: clamp(8px, 2.5vw, 16px); }

.story-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 999px;
  backdrop-filter: blur(4px);
  z-index: 5;
}

.story-dots .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  border: none;
  padding: 0;
  transition: background 0.25s ease, width 0.25s ease, border-radius 0.25s ease;
}

.story-dots .dot.active {
  background: #ffffff;
  width: 24px;
  border-radius: 6px;
}

.story-text {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  color: var(--text-muted);
  padding: 0 0.5rem;
}

.story-text p:first-child {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: clamp(1.05rem, 3vw, 1.25rem);
  color: var(--text);
  line-height: 1.45;
  margin-bottom: 0.8rem;
}

/* ---------- Vidéo Notre Histoire centrée et stylisée ---------- */
.story-video-wrap {
  max-width: 520px;
  width: 100%;
  margin: clamp(2rem, 5vw, 3rem) auto 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 clamp(0.5rem, 2vw, 1rem);
}

.story-video-card {
  position: relative;
  width: 100%;
  border-radius: var(--radius-l);
  overflow: hidden;
  background: transparent;
  box-shadow: 0 16px 44px rgba(184, 106, 81, 0.18), 0 4px 14px rgba(0, 0, 0, 0.05);
  border: 2px solid var(--border);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  line-height: 0;
}

.story-video-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 50px rgba(184, 106, 81, 0.26), 0 6px 18px rgba(0, 0, 0, 0.08);
  border-color: var(--salmon);
}

.story-video-card video {
  width: 100%;
  height: auto;
  max-height: 520px;
  display: block;
  object-fit: cover;
  background: transparent;
  border-radius: calc(var(--radius-l) - 2px);
  pointer-events: none;
}

/* ---------- Lieu ---------- */
.venue-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.2rem, 3vw, 2rem);
  align-items: stretch;
}

.venue-card {
  background: var(--white);
  border-radius: var(--radius-l);
  padding: clamp(1.25rem, 4vw, 2rem);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.venue-card h3 {
  font-size: clamp(1.35rem, 4vw, 1.6rem);
  color: var(--salmon-dark);
  margin-bottom: 0.3rem;
}

.venue-block {
  margin-top: 1.2rem;
}

.venue-block h4 {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  color: var(--salmon);
  font-weight: 600;
}

.venue-block p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.5;
}

.venue-map {
  border-radius: var(--radius-l);
  overflow: hidden;
  min-height: 260px;
  height: 100%;
}
.venue-map img, .venue-map iframe {
   height: 100%; width: 100%;
    object-fit: cover; 
    display: block;
     border: 0; 
    }

@media (max-width: 780px) 
{ .venue-grid { grid-template-columns: 1fr; } .venue-map { height: 320px; } }


/* ---------- Dress code ---------- */
.swatches {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1rem, 3.5vw, 2.5rem);
}

.swatch {
  text-align: center;
  flex: 0 1 auto;
}

.swatch .dot {
  width: clamp(48px, 12vw, 58px);
  height: clamp(48px, 12vw, 58px);
  border-radius: 50%;
  margin: 0 auto 0.6rem;
  border: 2px solid var(--border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.swatch span {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.dress-note {
  text-align: center;
  max-width: 520px;
  margin: clamp(1.5rem, 4vw, 2.2rem) auto 0;
  color: var(--text-muted);
  font-size: 0.93rem;
  padding: 0 0.5rem;
}

/* Cadeaux */
.gift-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.4rem;
  margin-top: 2.2rem;
}
.gift-card {
  background: var(--white);
  border-radius: var(--radius-l);
  padding: 1.8rem 1.5rem;
  box-shadow: var(--shadow);
  text-align: center;
  border: 1px solid var(--border);
}
.gift-icon {
  width: 52px;
  height: 52px;
  object-fit: contain;
  margin: 0 auto 0.7rem;
}

.contact-icon--neon-green,
.gift-icon--neon-green {
  filter: brightness(0) saturate(100%) invert(78%) sepia(90%) saturate(1000%) hue-rotate(85deg) brightness(105%) contrast(105%)
    drop-shadow(0 0 3px #39ff88) drop-shadow(0 0 9px rgba(57, 255, 136, 0.9));
}

.contact-icon--neon-pink,
.gift-icon--neon-pink {
  filter: brightness(0) saturate(100%) invert(39%) sepia(99%) saturate(1600%) hue-rotate(300deg) brightness(105%) contrast(105%)
    drop-shadow(0 0 3px #ff4fa3) drop-shadow(0 0 9px rgba(255, 79, 163, 0.9));
}

.gift-icon--heart {
  animation: heart-beat 1.35s ease-in-out infinite;
}

@keyframes heart-beat {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.12); }
  28% { transform: scale(1); }
  42% { transform: scale(1.08); }
  56% { transform: scale(1); }
}
.gift-card h3 { font-size: 1.05rem; color: var(--gold-dark); margin-bottom: 0.6rem; }
.gift-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.5; }

/* ---------- RSVP ---------- */
.rsvp-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(1.2rem, 3vw, 2rem);
  align-items: start;
}

.card {
  background: var(--white);
  border-radius: var(--radius-l);
  padding: clamp(1.25rem, 4vw, 2rem);
  box-shadow: var(--shadow);
  width: 100%;
}

.card h3 {
  font-size: clamp(1.2rem, 3.5vw, 1.4rem);
  margin-bottom: 1.2rem;
}

.field-row {
  display: flex;
  gap: 0.9rem;
}

.field {
  margin-bottom: 1rem;
  flex: 1;
  width: 100%;
}

.field label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-soft);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 600;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  padding: 0.75rem 0.9rem;
  font-family: inherit;
  font-size: 16px;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--salmon);
  box-shadow: 0 0 0 3px rgba(232, 131, 106, 0.2);
}

.rsvp-actions {
  display: flex;
  gap: 0.8rem;
  margin-top: 0.6rem;
}

.rsvp-actions .btn {
  flex: 1;
}

.rsvp-deadline {
  font-size: 0.8rem;
  color: var(--text-soft);
  margin-top: 1rem;
  text-align: center;
}

.status-panel {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.status-panel.is-empty {
  align-items: center;
  text-align: center;
  color: var(--text-soft);
}

.status-confirmed {
  text-align: center;
}

.status-confirmed .tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--green-bg);
  color: var(--green-text);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
}

.status-confirmed img.qr {
  width: clamp(130px, 35vw, 160px);
  max-width: 100%;
  margin: 1.1rem auto;
  border-radius: var(--radius-s);
  border: 1px solid var(--border);
  padding: 8px;
  background: var(--white);
  display: block;
}

.qr-visible-code {
  display: block;
  width: min(100%, 260px);
  margin: -0.55rem auto 0.9rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  background: var(--pink-bg);
  color: var(--text);
  font-family: "Jost", monospace;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  overflow-wrap: anywhere;
  text-align: center;
}

.qr-code-label {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--text-soft);
  font-family: "Jost", sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.qr-download-error {
  max-width: 290px;
  margin: 0.8rem auto 0;
  color: var(--text-muted);
  font-size: 0.75rem;
  line-height: 1.4;
  text-align: center;
}

@media (max-width: 520px) {
  .status-confirmed img.qr {
    width: min(68vw, 220px);
  }

  .qr-visible-code {
    width: min(100%, 280px);
    font-size: 0.9rem;
  }
}

.status-confirmed p.small {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0.2rem 0 1rem;
}

.status-pending {
  background: var(--amber-bg);
  color: var(--amber-text);
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius-m);
  font-size: 0.9rem;
}

.status-declined {
  background: var(--gray-bg);
  color: var(--gray-text);
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius-m);
  font-size: 0.9rem;
  text-align: center;
}

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

@media (max-width: 520px) {
  .field-row {
    flex-direction: column;
    gap: 0;
  }

  .rsvp-actions {
    flex-direction: column;
  }

  .rsvp-actions .btn {
    width: 100%;
  }
}

/* ---------- Galerie : Carrousel multi-cartes ---------- */
.gallery-carousel {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent 0, #000 3%, #000 97%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 3%, #000 97%, transparent 100%);
}

.gallery-track {
  display: flex;
  gap: 1rem;
  transition: transform 0.7s cubic-bezier(0.25, 0.8, 0.3, 1);
  will-change: transform;
}

.gallery-card {
  flex: 0 0 clamp(190px, 26vw, 270px);
  height: clamp(220px, 30vw, 320px);
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.09);
  background: var(--white);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.gallery-card:hover img {
  transform: scale(1.06);
}

.gallery-more {
  text-align: center;
  margin-top: 1.5rem;
}

@media (max-width: 780px) {
  .gallery-card {
    flex: 0 0 68vw;
    height: 260px;
  }
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.9rem, 2.5vw, 1.4rem);
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: clamp(1.1rem, 3vw, 1.5rem);
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.contact-card:hover {
  transform: translateY(-3px);
  border-color: var(--salmon);
}

.contact-card .icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 0.4rem;
}

.contact-card .label {
  font-size: 0.78rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.contact-card .value {
  margin-top: 0.3rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--salmon-dark);
  text-decoration: none;
}

.contact-card .value:hover {
  text-decoration: underline;
}

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

/* ---------- Footer ---------- */
.site-footer {
  background: var(--pink-light);
  text-align: center;
  padding: clamp(2rem, 5vw, 3rem) 0;
  color: var(--text-soft);
  font-size: 0.88rem;
}

.site-footer .btn {
  margin-bottom: 1.1rem;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--salmon-dark);
  color: var(--white);
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  font-size: 0.88rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 100;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  max-width: 90vw;
  text-align: center;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- Espace Privé Admin ---------- */
.admin-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: clamp(1rem, 2.5vw, 1.4rem) 0;
}

.admin-header .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.admin-title .eyebrow {
  margin-bottom: 0.1rem;
}

.admin-title h1 {
  font-size: clamp(1.35rem, 4vw, 1.7rem);
}

.admin-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.session-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--pink-light);
  border-radius: 999px;
  padding: 0.4rem 0.9rem 0.4rem 0.4rem;
  font-size: 0.85rem;
  font-weight: 500;
}

.session-pill .avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--salmon);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
}

.admin-body {
  background: var(--pink-bg);
  min-height: calc(100vh - 90px);
  padding: clamp(1.5rem, 4vw, 2.5rem) 0;
}

/* Cartes de statistiques centrées et fluides */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.75rem, 2vw, 1.25rem);
  margin: 0 auto clamp(1.5rem, 4vw, 2.2rem) auto;
  width: 100%;
  max-width: 100%;
  justify-content: center;
}

.stat-card {
  border-radius: var(--radius-m);
  padding: clamp(1rem, 2.5vw, 1.35rem) clamp(0.6rem, 1.5vw, 1rem);
  text-align: center;
  box-shadow: 0 4px 14px rgba(184, 106, 81, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-width: 0;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(184, 106, 81, 0.12);
}

.stat-card .n {
  font-size: clamp(1.6rem, 4.5vw, 2.2rem);
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  line-height: 1.1;
}

.stat-card .l {
  font-size: clamp(0.7rem, 2vw, 0.8rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
  margin-top: 0.25rem;
  white-space: nowrap;
}

.stat-card.confirmed { background: var(--green-bg); color: var(--green-text); }
.stat-card.arrived { background: var(--blue-bg); color: var(--blue-text); }
.stat-card.pending { background: var(--amber-bg); color: var(--amber-text); }
.stat-card.absent { background: var(--gray-bg); color: var(--gray-text); }

@media (max-width: 768px) {
  .stat-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }
}

@media (max-width: 380px) {
  .stat-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  .stat-card {
    padding: 0.8rem 0.4rem;
  }
}

.admin-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: clamp(1.2rem, 3vw, 1.8rem);
  align-items: start;
  width: 100%;
}

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

@media (max-width: 768px) {
  .admin-header .wrap {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.9rem;
  }

  .admin-title {
    text-align: center;
  }

  .admin-actions {
    justify-content: center;
    width: 100%;
  }
}

.panel {
  background: var(--white);
  border-radius: var(--radius-l);
  padding: clamp(1.1rem, 3vw, 1.6rem);
  box-shadow: var(--shadow);
  width: 100%;
}

.panel h3 {
  font-size: clamp(1.1rem, 3.5vw, 1.25rem);
  margin-bottom: 1rem;
}

.panel-note {
  font-size: 0.78rem;
  color: var(--text-soft);
  margin-top: 0.9rem;
}

.late-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--pink-light);
}

.late-row:last-of-type {
  border-bottom: none;
}

.late-who {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.avatar-sm {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--pink-light);
  color: var(--salmon-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
}

.late-who .name {
  font-weight: 600;
  font-size: 0.9rem;
}

.late-who .sub {
  font-size: 0.78rem;
  color: var(--text-soft);
}

.late-actions button {
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: transform 0.15s ease;
}

.late-actions button:active {
  transform: scale(0.92);
}

.late-actions .ok { background: var(--green-bg); color: var(--green-text); }
.late-actions .no { background: #fde3e0; color: #b5432f; }
.empty-note { color: var(--text-soft); font-size: 0.88rem; text-align: center; padding: 1rem 0; }

.table-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.table-toolbar input {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-family: inherit;
  min-width: 200px;
  font-size: 16px;
  flex: 1 1 200px;
}

table.guests {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

table.guests th {
  text-align: left;
  color: var(--text-soft);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--pink-light);
}

table.guests td {
  padding: 0.85rem 0.4rem;
  border-bottom: 1px solid var(--pink-light);
  vertical-align: middle;
}

table.guests .who {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge.confirmed { background: var(--green-bg); color: var(--green-text); }
.badge.pending { background: var(--amber-bg); color: var(--amber-text); }
.badge.absent { background: var(--gray-bg); color: var(--gray-text); }

.qr-status {
  font-size: 0.82rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.qr-status.sent::before { content: "●"; color: var(--green-text); margin-right: 0.35rem; }
.qr-status.none::before { content: "●"; color: #c9bfc4; margin-right: 0.35rem; }

.word-cell {
  max-width: 220px;
  font-style: italic;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Poster ---------- */
.poster-page {
  background: var(--pink-bg);
  padding: clamp(1.5rem, 4vw, 3rem) clamp(0.8rem, 3vw, 1rem);
}

.poster {
  position: relative;
  overflow: hidden;
  width: min(100%, 1000px);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-l);
  border: 1px solid var(--border);
  padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.poster-head {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-bottom: 2.2rem;
}

.poster-main-photo {
  width: min(100%, 620px);
  height: clamp(260px, 42vw, 430px);
  margin: 0 auto 1rem;
  object-fit: cover;
  object-position: center 38%;
  border-radius: var(--radius-m);
  border: 3px solid var(--white);
  outline: 2px solid var(--salmon);
  box-shadow: 0 12px 28px rgba(184, 106, 81, 0.2);
  display: block;
}

.poster-flower {
  position: absolute;
  z-index: 1;
  width: clamp(190px, 29vw, 315px);
  height: auto;
  pointer-events: none;
  user-select: none;
  opacity: 0.9;
}

.poster-flower--left {
  top: -22px;
  left: -35px;
}

.poster-flower--right {
  top: -22px;
  right: -35px;
  transform: scaleX(-1);
}

.poster-head h1 {
  font-size: clamp(1.6rem, 5vw, 2rem);
  color: var(--salmon-dark);
}

.poster-head p {
  color: var(--text-muted);
  margin-top: 0.3rem;
  font-size: 0.95rem;
}

.poster-head .tag {
  display: inline-block;
  margin-top: 1rem;
  background: var(--pink-light);
  color: var(--salmon-dark);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  font-weight: 600;
}

.poster-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  flex: 1;
  min-height: 0;
  grid-template-rows: repeat(var(--poster-rows, 1), minmax(0, 1fr));
}

.poster-cell {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  padding: 0.7rem;
  min-width: 0;
}

.poster-cell .name {
  font-weight: 700;
  font-size: clamp(0.62rem, 1.15vw, 0.9rem);
  line-height: 1.15;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.poster-cell .msg {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin: 0.35rem 0 1.1rem;
  font-style: italic;
  min-height: 2.4em;
}

.poster-cell .sig-line {
  border-bottom: 1px solid var(--salmon);
  height: 22px;
}

.poster-cell .sig-label {
  font-size: 0.65rem;
  color: var(--text-soft);
  text-align: right;
  margin-top: 0.25rem;
}

.poster-toolbar {
  max-width: 1000px;
  margin: 0 auto 1.2rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.poster-download-status {
  color: var(--text-muted);
  font-size: 0.82rem;
}

@media print {
  @page { size: 200mm 200mm; margin: 8mm; }
  .poster-toolbar, .nav, .site-footer { display: none !important; }
  .poster-page { background: var(--white); padding: 0; }
  .poster { width: 184mm; height: 184mm; aspect-ratio: 1 / 1; box-shadow: none; border: 1px solid var(--border); padding: 10mm; }
  .poster-main-photo { height: 62mm; }
  .poster-flower { width: 52mm; }
  .poster-cell { break-inside: avoid; }
}

@media (max-width: 760px) {
  .poster {
    aspect-ratio: auto;
  }

  .poster-main-photo {
    height: 58vw;
    min-height: 230px;
  }

  .poster-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .poster {
    padding: 1.1rem;
  }

  .poster-flower {
    width: 180px;
  }

  .poster-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------------- Animations chic mariage ---------------- */

/* Apparitions élégantes au scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.6, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Pluie de pétales */
.petal-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 9999;
}
.petal {
  position: absolute;
  top: -8%;
  border-radius: 0% 70% 0% 70%;
  opacity: 0.9;
  will-change: transform;
  animation: petal-fall linear forwards;
}
.petal::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: inherit;
  filter: brightness(0.85);
}
@keyframes petal-fall {
  0%   { transform: translate(0, -10vh) rotate(0deg); }
  100% { transform: translate(var(--drift, 60px), 110vh) rotate(var(--spin, 360deg)); }
}

/* Bouton et cartes : légère élégance au survol */
.btn { transition: transform 0.35s ease, box-shadow 0.35s ease; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(184, 106, 81, 0.25); }
.gift-card, .card, .venue-card { transition: transform 0.4s ease, box-shadow 0.4s ease; }
.gift-card:hover, .venue-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(184, 106, 81, 0.15); }

/* ---------------- Écran de connexion (espace privé) ---------------- */
.auth-gate {
  position: fixed;
  inset: 0;
  background: var(--pink-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 1.5rem;
}
.auth-gate .card { max-width: 360px; width: 100%; }
.auth-gate h3 { margin-bottom: 1.2rem; text-align: center; }
.auth-gate .btn { width: 100%; margin-top: 0.4rem; }
.auth-gate .auth-error { color: #b3261e; font-size: 0.85rem; margin-top: 0.7rem; text-align: center; min-height: 1.1em; }

/* ==================== COUVERTURE D'INVITATION (SPLASH SCREEN) ==================== */
body.cover-locked {
  overflow: hidden !important;
  height: 100vh !important;
  touch-action: none;
}

.invite-cover {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: radial-gradient(circle at center, #e8836a 0%, #e8836a 50%, #e8836a 100%);
  overflow: hidden;
  transition: opacity 0.85s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.85s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0.85s ease;
  will-change: opacity, transform;
}

.invite-cover.is-opened {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.06) translateY(-18px);
  pointer-events: none;
}

/* Particules d'ambiance en arrière-plan */
.invite-bg-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.invite-sparkle {
  position: absolute;
  color: rgba(255, 255, 255, 0.35);
  font-size: 1.4rem;
  user-select: none;
  animation: float-sparkle 6s ease-in-out infinite;
}

.invite-sparkle.sp-1 { top: 15%; left: 12%; animation-delay: 0s; font-size: 1.6rem; color: rgba(255, 245, 225, 0.4); }
.invite-sparkle.sp-2 { top: 22%; right: 15%; animation-delay: 1.5s; font-size: 1.2rem; color: rgba(255, 235, 200, 0.3); }
.invite-sparkle.sp-3 { bottom: 18%; left: 14%; animation-delay: 3s; font-size: 1.8rem; color: rgba(255, 245, 225, 0.35); }
.invite-sparkle.sp-4 { bottom: 25%; right: 12%; animation-delay: 2s; font-size: 1.3rem; color: rgba(255, 235, 200, 0.45); }
.invite-sparkle.sp-5 { top: 50%; left: 6%; animation-delay: 4.5s; font-size: 1.1rem; color: rgba(255, 255, 255, 0.25); }
.invite-sparkle.sp-6 { top: 48%; right: 7%; animation-delay: 3.5s; font-size: 1.5rem; color: rgba(255, 245, 225, 0.3); }

@keyframes float-sparkle {
  0%, 100% {
    transform: translateY(0) rotate(0deg) scale(0.9);
    opacity: 0.3;
  }
  50% {
    transform: translateY(-15px) rotate(45deg) scale(1.15);
    opacity: 0.75;
  }
}

/* Carte d'invitation principale */
.invite-card {
  position: relative;
  width: 100%;
  max-width: 580px;
  background: #fbf5ed;
  background: linear-gradient(175deg, #fdf8f0 0%, #faf3e8 100%);
  border-radius: 20px;
  box-shadow: 0 25px 65px rgba(65, 28, 8, 0.38),
              0 8px 24px rgba(0, 0, 0, 0.15),
              inset 0 0 0 1px rgba(255, 255, 255, 0.8),
              inset 0 0 0 2px rgba(226, 192, 155, 0.35);
  padding: clamp(2.4rem, 6vw, 3.4rem) clamp(1.5rem, 5vw, 2.8rem) clamp(2rem, 5vw, 2.8rem);
  text-align: center;
  overflow: hidden;
  animation: card-appear 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes card-appear {
  0% {
    opacity: 0;
    transform: scale(0.92) translateY(24px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Ornements floraux aquarelle aux coins */
.invite-corner-flourish {
  position: absolute;
  top: -6px;
  width: clamp(130px, 34%, 185px);
  height: auto;
  pointer-events: none;
  mix-blend-mode: multiply;
  opacity: 0.95;
  z-index: 1;
  user-select: none;
}

.invite-corner-flourish.corner-left {
  left: -6px;
}

.invite-corner-flourish.corner-right {
  right: -6px;
  transform: scaleX(-1);
}

.invite-card-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Macaron médaillon vert avec cœur */
.invite-badge {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #364d26;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  box-shadow: 0 6px 16px rgba(54, 77, 38, 0.35);
  transition: transform 0.3s ease;
}

.invite-badge:hover {
  transform: scale(1.08);
}

.invite-badge svg {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

/* Typographie couple */
.invite-couple {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.invite-name {
  font-family: 'Great Vibes', 'Alex Brush', 'Cormorant Garamond', cursive, serif;
  font-size: clamp(2.4rem, 6.5vw, 3.3rem);
  font-weight: 400;
  color: #2e4422;
  line-height: 1.05;
  letter-spacing: 0.02em;
}

.invite-amp {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: clamp(1.2rem, 3.2vw, 1.55rem);
  color: #364d26;
  margin: 0.15rem 0;
  line-height: 1;
}

/* Séparateur ornemental */
.invite-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 220px;
  margin: 0.4rem 0 0.8rem;
}

.invite-divider .invite-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(214, 125, 56, 0.6), transparent);
}

.invite-divider .invite-motif {
  color: #d67d38;
  font-size: 1.1rem;
  line-height: 1;
}

/* Date & Invitation */
.invite-date {
  font-family: 'Jost', system-ui, sans-serif;
  font-size: clamp(0.95rem, 2.2vw, 1.05rem);
  font-weight: 500;
  color: #5d4a3c;
  letter-spacing: 0.04em;
  margin: 0 0 0.45rem;
}

.invite-invitation {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: clamp(1.1rem, 2.8vw, 1.28rem);
  color: #735d4d;
  margin: 0 0 1.85rem;
}

/* Bouton d'ouverture */
.btn-open-invite {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #364d26;
  color: #ffffff;
  font-family: 'Jost', sans-serif;
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.72rem 3rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 24px rgba(54, 77, 38, 0.42),
              0 2px 6px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  outline: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

.btn-open-invite::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.22) 0%, transparent 60%);
  border-radius: inherit;
}

.btn-open-invite:hover {
  background: #2a3d1d;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 12px 28px rgba(54, 77, 38, 0.52),
              0 4px 10px rgba(0, 0, 0, 0.16);
}

.btn-open-invite:active {
  transform: translateY(0) scale(0.98);
}

/* Ondulation d'appel à l'action autour du bouton */
.btn-open-ripple {
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  border: 2px solid rgba(54, 77, 38, 0.4);
  animation: pulse-ring 2.2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
  pointer-events: none;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.96);
    opacity: 0.8;
  }
  60%, 100% {
    transform: scale(1.28);
    opacity: 0;
  }
}

/* ==================== BOUTON FLOTTANT CONTRÔLE AUDIO ==================== */
.music-control {
  position: fixed;
  bottom: 22px;
  left: 22px;
  z-index: 9990;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.9);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0.5s;
}

.music-control.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.btn-music-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  background: rgba(54, 77, 38, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 7px 16px 7px 9px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(40, 58, 28, 0.32);
  transition: all 0.3s ease;
  font-family: 'Jost', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
}

.btn-music-toggle:hover {
  background: #2a3d1d;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(40, 58, 28, 0.45);
}

/* Disque Vinyle */
.music-disc {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle, #fbe6dc 18%, #202a19 22%, #111 50%, #202a19 75%, #111 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: spin-disc 4s linear infinite;
  animation-play-state: paused;
}

.btn-music-toggle.is-playing .music-disc {
  animation-play-state: running;
}

@keyframes spin-disc {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.disc-hole {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #EFBF04;
}

/* Ondes d'égaliseur */
.sound-waves {
  display: flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 14px;
}

.sound-waves span {
  width: 2.5px;
  background: #ffffff;
  border-radius: 2px;
  height: 4px;
  transition: height 0.2s ease;
}

.btn-music-toggle.is-playing .sound-waves span:nth-child(1) { animation: wave 1.1s ease-in-out infinite; }
.btn-music-toggle.is-playing .sound-waves span:nth-child(2) { animation: wave 0.8s ease-in-out infinite 0.2s; }
.btn-music-toggle.is-playing .sound-waves span:nth-child(3) { animation: wave 1.3s ease-in-out infinite 0.4s; }
.btn-music-toggle.is-playing .sound-waves span:nth-child(4) { animation: wave 0.9s ease-in-out infinite 0.1s; }

@keyframes wave {
  0%, 100% { height: 4px; }
  50% { height: 14px; }
}

/* Responsive mobile */
@media (max-width: 600px) {
  .invite-card {
    padding: 2.2rem 1.2rem 1.8rem;
    border-radius: 16px;
  }
  .invite-corner-flourish {
    width: 125px;
  }
  .invite-badge {
    width: 44px;
    height: 44px;
    margin-bottom: 0.8rem;
  }
  .btn-open-invite {
    padding: 0.7rem 2.4rem;
    font-size: 1.05rem;
  }
  .music-control {
    bottom: 16px;
    left: 16px;
  }
}

/* ==================== SLIDER 3D (CUBIC / COVERFLOW) HISTOIRE ==================== */
.story-carousel {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 0 auto 2.5rem;
  perspective: 1100px;
  -webkit-perspective: 1100px;
  padding: 1rem 0 2rem;
  overflow: visible;
  user-select: none;
}

.story-track {
  position: relative;
  width: 100%;
  height: clamp(360px, 50vw, 470px);
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-slide {
  position: absolute;
  width: clamp(175px, 25vw, 220px);
  height: clamp(340px, 48vw, 445px);
  border-radius: 18px;
  overflow: hidden;
  background: #fdfaf7;
  box-shadow: 0 14px 35px rgba(58, 44, 34, 0.22), 0 4px 10px rgba(0, 0, 0, 0.08);
  border: 2px solid rgba(232, 131, 106, 0.35);
  cursor: pointer;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1),
              opacity 0.7s cubic-bezier(0.25, 1, 0.5, 1),
              filter 0.7s ease,
              box-shadow 0.7s ease,
              border-color 0.7s ease;
  will-change: transform, opacity;
}

.story-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  pointer-events: none;
  border-radius: inherit;
}

.story-slide.is-active {
  border: 2.5px solid var(--salmon);
  box-shadow: 0 24px 55px rgba(232, 131, 106, 0.45), 0 8px 24px rgba(0, 0, 0, 0.16);
}

/* Boutons de navigation Flèches 3D */
.story-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid rgba(232, 131, 106, 0.45);
  color: var(--text);
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 25;
  box-shadow: 0 6px 18px rgba(58, 44, 34, 0.16);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  outline: none;
}

.story-nav.prev {
  left: clamp(-15px, -2vw, -25px);
}

.story-nav.next {
  right: clamp(-15px, -2vw, -25px);
}

.story-nav:hover {
  background: var(--salmon);
  color: var(--white);
  border-color: var(--salmon-dark);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 10px 24px rgba(232, 131, 106, 0.38);
}

.story-nav:active {
  transform: translateY(-50%) scale(0.95);
}

/* Indicateurs / Dots */
.story-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 1.2rem;
  z-index: 20;
  position: relative;
}

.story-dots .dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(232, 131, 106, 0.3);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  outline: none;
}

.story-dots .dot:hover {
  background: rgba(232, 131, 106, 0.65);
  transform: scale(1.2);
}

.story-dots .dot.active {
  width: 28px;
  background: var(--salmon);
  box-shadow: 0 2px 8px rgba(232, 131, 106, 0.45);
}

/* Texte Histoire & Vidéo alignés */
.story-text {
  max-width: 760px;
  margin: 0 auto 2.8rem;
  text-align: center;
  font-size: clamp(1.02rem, 2vw, 1.15rem);
  color: var(--text-muted);
  line-height: 1.8;
}

.story-text p {
  margin-bottom: 1.1rem;
}

.story-video-wrap {
  max-width: 660px;
  margin: 0 auto;
}

.story-video-card {
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  background: #000;
}

.story-video-card video {
  width: 100%;
  max-height: 500px;
  display: block;
  object-fit: cover;
}

/* Responsive Coverflow sur petits écrans */
@media (max-width: 600px) {
  .story-carousel {
    perspective: 750px;
    -webkit-perspective: 750px;
    padding: 0.8rem 0 2rem;
  }
  .story-nav {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  .story-nav.prev { left: 2px; }
  .story-nav.next { right: 2px; }
}
/* ---------- Cadeaux : boîte à ouvrir ---------- */
.gift-teaser {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 2.5rem 1rem 1rem;
  font-family: inherit;
}

.gift-teaser-scene {
  position: relative;
  width: min(320px, 70vw);
  height: min(320px, 70vw);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Boîte centrale (vraie photo) */
.gift-box-img {
  position: relative;
  width: 78%;
  max-width: 320px;
  display: block;
  filter: drop-shadow(0 18px 30px rgba(201, 130, 100, 0.28));
  animation: gift-box-float 3.6s ease-in-out infinite;
  transform-origin: center bottom;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.5s ease;
}

@keyframes gift-box-float {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
}

/* Accent flottant secondaire (vraie photo) */
.gift-mini-img {
  position: absolute;
  top: 2%;
  right: -6%;
  width: 34%;
  max-width: 140px;
  opacity: 0.95;
  animation: gift-mini-float 4.5s ease-in-out infinite;
  filter: drop-shadow(0 8px 14px rgba(0,0,0,0.15));
  transition: opacity 0.4s ease;
}

@keyframes gift-mini-float {
  0%, 100% { transform: translateY(0) rotate(-4deg) scale(1); }
  50% { transform: translateY(-14px) rotate(4deg) scale(1.05); }
}

/* Étincelles */
.gift-sparkle {
  position: absolute;
  color: var(--gold, #c9a24a);
  font-size: 1rem;
  animation: gift-sparkle-twinkle 2.2s ease-in-out infinite;
}
.gift-sparkle--1 { top: 2%; left: 46%; animation-delay: 0s; }
.gift-sparkle--2 { top: 30%; right: 4%; animation-delay: 0.7s; font-size: 0.7rem; }
.gift-sparkle--3 { bottom: 22%; left: 0%; animation-delay: 1.3s; font-size: 0.8rem; }

@keyframes gift-sparkle-twinkle {
  0%, 100% { opacity: 0.2; transform: scale(0.7) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.15) rotate(15deg); }
}

.gift-teaser-label {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--salmon-dark, #c97b68);
  animation: gift-label-pulse 2.4s ease-in-out infinite;
}

@keyframes gift-label-pulse {
  0%, 100% { opacity: 0.65; }
  50% { opacity: 1; }
}

/* État "ouvert" : la boîte s'envole et disparaît */
.gift-teaser.is-opening .gift-box-img {
  transform: translateY(-50px) scale(1.15) rotate(-4deg);
  opacity: 0;
}
.gift-teaser.is-opening .gift-mini-img,
.gift-teaser.is-opening .gift-sparkle,
.gift-teaser.is-opening .gift-teaser-label {
  opacity: 0;
  transition: opacity 0.4s ease;
}
.gift-teaser.is-hidden {
  display: none;
}

/* Contenu révélé après ouverture */
.gift-reveal-content {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.gift-reveal-content.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.gift-reveal-content[hidden] {
  display: none;
}

@media (max-width: 600px) {
  .gift-teaser-scene { width: 78vw; height: 78vw; }
}