:root {

  /* Fond principal — ROSE PÊCHE (fond de l'invitation de Sarah) */
  --bg-cream: #FCE4DB;
  --bg-soft: #FFF2EC;
  --bg-card: rgba(255, 255, 255, 0.72);

  /* Ivoire — cadre intérieur de l'invitation */
  --ivory: #FFF7DE;
  --ivory-light: #FFFCF0;
  --cream: #FDEEDD;
  --beige: #F3D3C9;
  --beige-soft: #F8E2DA;

  /* Vert sauge — feuillage des bouquets */
  --sage-light: #B9C99E;
  --sage: #97AE79;
  --sage-medium: #6E8447;
  --sage-dark: #4E6132;
  --forest: #3A4A26;

  /* Rose — nœuds, papillons, roses */
  --rose-baby: #FFE6EC;
  --rose-soft: #FFB8C6;
  --rose: #F08298;
  --rose-light: #FCE4DB;
  --rose-deep: #CE3A66;

  /* Mauve → ROSE (alias conservé pour rétro-compat, jamais violet) */
  --mauve: #F08298;
  --mauve-light: #FFE6EC;
  --mauve-deep: #CE3A66;

  /* Or — couronne, baguettes dorées */
  --gold: #E5A93B;
  --gold-strong: #C68A22;
  --gold-light: #F4D693;

  /* Accent ROSE (étiquettes) */
  --accent: #CE3A66;
  --accent-soft: #FFB8C6;

  /* Texte — rose profond du texte de l'invitation */
  --brown-dark: #8C1436;
  --brown-deep: #A81B45;
  --brown-soft: #9C5A6B;
  --text-dark: #7E1832;
  --text-soft: #96606E;
  --white: #FFFFFF;

  /* Bordures — accordées au rose */
  --border-soft: rgba(240, 130, 152, 0.22);
  --border-rose: rgba(206, 58, 102, 0.26);

  /* Ombres — accordées au rose */
  --shadow: 0 18px 50px rgba(206, 58, 102, 0.16);
  --shadow-hover: 0 26px 60px rgba(206, 58, 102, 0.24);
  --shadow-dark: 0 18px 50px rgba(126, 24, 50, 0.22);

  --radius: 24px;
  --transition: all 0.35s ease;
  --container: 1120px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  width: 100%;
}

body {
  font-family: "Montserrat", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 230, 236, 0.65), transparent 32%),
    radial-gradient(circle at bottom right, rgba(240, 130, 152, 0.45), transparent 36%),
    var(--bg-cream);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
  width: 100%;
}

body.intro-active {
  overflow: hidden;
}

img,
video,
iframe {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

main {
  overflow: hidden;
}

.main-content {
  position: relative;
  z-index: 2;
  background: var(--bg-cream);
  animation: mainFade 1.1s ease;
}

.hidden {
  display: none;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.narrow {
  max-width: 860px;
}

.center {
  text-align: center;
}

/* ========================= */
/*           INTRO           */
/* ========================= */
.intro-screen {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  min-height: 100dvh;
  background: #000;
  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: #000;
  transition: opacity 1.2s ease, visibility 1.2s ease;
}

.intro-trigger::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.14));
  pointer-events: none;
}

.intro-cover,
.intro-video,
.video-end-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.intro-cover {
  z-index: 2;
}

.intro-video,
.video-end-frame {
  z-index: 1;
  background: #000;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.intro-video {
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease, visibility 1s ease;
}

.video-end-frame {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 2;
}

.intro-screen.is-started .intro-trigger {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-screen.is-started .intro-video {
  opacity: 1;
  visibility: visible;
}

.intro-screen.show-end-frame .intro-video {
  opacity: 0;
  visibility: hidden;
}

.intro-screen.show-end-frame .video-end-frame {
  opacity: 1;
  visibility: visible;
}

/* ========================= */
/*     FLOATING LOGO DARK    */
/* ========================= */
.floating-logo {
  position: fixed;
  top: 0;
  left: 0;
  width: clamp(170px, 16vw, 240px);
  height: clamp(170px, 16vw, 240px);
  z-index: 9999;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  opacity: 0;
  visibility: hidden;
  will-change: transform, opacity;
  animation: logoSwimDark 24s ease-in-out infinite;
}

.floating-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  -webkit-user-drag: none;
  user-select: none;
  opacity: 0.92;
  filter: drop-shadow(0 8px 24px rgba(126, 24, 50, 0.14));
  animation: logoFloatDark 5.5s ease-in-out infinite;
}

body.logo-active .floating-logo {
  opacity: 1;
  visibility: visible;
  transition: opacity 1.1s ease, visibility 1.1s ease;
}

@keyframes logoSwimDark {
  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 logoFloatDark {
  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         */
/* ========================= */
.section {
  position: relative;
  padding: 96px 0;
}

.section-light {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0.16)),
    var(--bg-cream);
  color: var(--text-dark);
}

.section-dark {
  /* 100 % ROSE — plus aucun violet */
  background:
    linear-gradient(135deg, rgba(206, 58, 102, 0.96), rgba(140, 20, 54, 0.96));
  color: var(--white);
}

.section-with-banner {
  padding-top: 0;
}

.full-banner {
  width: 100%;
  margin: 0 0 52px;
  overflow: hidden;
}

.section-banner-image {
  width: 100%;
  height: clamp(220px, 34vw, 430px);
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.01);
  transition: transform 1.2s ease;
}

.full-banner:hover .section-banner-image {
  transform: scale(1.04);
}

.section-head {
  margin-bottom: 42px;
}

.section-label {
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  /* Étiquettes : rose (plus mauve) */
  color: var(--accent);
  margin-bottom: 10px;
  font-weight: 600;
}

.section-label.light {
  color: var(--rose-baby);
}

.section-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.1;
  margin-bottom: 12px;
  color: var(--brown-deep);
}

.section-title.light {
  color: #fff7f6;
}

.section-arabic {
  font-family: "Amiri", serif;
  font-size: 1.7rem;
  margin-bottom: 14px;
  /* Texte arabe label : rose (plus violet) */
  color: var(--accent);
}

.section-arabic.light {
  color: var(--gold-light);
}

.section-text {
  max-width: 760px;
  margin: 0 auto;
  color: var(--text-soft);
}

.light-text {
  color: rgba(255, 255, 255, 0.82);
}

/* ========================= */
/*      EVENT HIGHLIGHT      */
/* ========================= */
.event-highlight {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 auto 34px;
  padding: 22px 24px;
  max-width: 700px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(255, 184, 198, 0.65));
  border: 1px solid rgba(206, 58, 102, 0.30);
  box-shadow: 0 18px 40px rgba(206, 58, 102, 0.20);
  text-align: left;
  backdrop-filter: blur(8px);
}

.event-highlight-icon {
  width: 68px;
  height: 68px;
  min-width: 68px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Icône 100 % rose (plus mauve) */
  background: linear-gradient(135deg, var(--rose-baby), var(--rose-light));
  color: var(--brown-deep);
  font-size: 1.45rem;
  box-shadow: 0 10px 24px rgba(206, 58, 102, 0.30);
}

.event-highlight-content {
  flex: 1;
}

.event-highlight-label {
  display: inline-block;
  margin-bottom: 4px;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  /* Étiquette rose (plus violet) */
  color: var(--accent);
  font-weight: 600;
}

.event-highlight-content strong {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.1;
  color: var(--brown-deep);
  margin-bottom: 6px;
}

.event-highlight-content p {
  color: var(--text-soft);
  margin: 0;
}

/* ========================= */
/*          BUTTONS          */
/* ========================= */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  padding: 14px 30px;
  border-radius: 999px;
  font-size: 0.88rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  transition: var(--transition);
  border: 1px solid transparent;
  cursor: pointer;
  backdrop-filter: blur(4px);
  gap: 10px;
}

.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -130%;
  width: 70%;
  height: 100%;
  background: linear-gradient(120deg,
      transparent,
      rgba(255, 255, 255, 0.36),
      transparent);
  transition: left 0.8s ease;
}

.btn:hover::after {
  left: 140%;
}

.btn-gold {
  background: linear-gradient(135deg, var(--rose-soft), var(--gold));
  color: var(--brown-deep);
  box-shadow: 0 12px 25px rgba(240, 130, 152, 0.32);
}

.btn-gold:hover {
  transform: translateY(-4px);
  filter: brightness(1.03);
  box-shadow: 0 18px 30px rgba(240, 130, 152, 0.40);
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.42);
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.10);
  transform: translateY(-4px);
}

.btn i {
  font-size: 1rem;
}

/* ========================= */
/*         COUNTDOWN         */
/* ========================= */
.countdown {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 14px;
  margin-top: 34px;
  flex-wrap: nowrap;
}

.count-box {
  position: relative;
  flex: 1;
  min-width: 0;
  text-align: center;
  padding: 24px 10px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border-rose);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}

.count-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.28),
      rgba(255, 255, 255, 0));
  pointer-events: none;
}

.count-box:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.count-box span {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.7rem, 4vw, 3rem);
  color: var(--brown-deep);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 10px;
}

.count-box small {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.64rem;
  color: var(--brown-soft);
}

/* ========================= */
/*           CARDS           */
/* ========================= */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  margin-bottom: 34px;
}

.card {
  position: relative;
  border-radius: var(--radius);
  padding: 34px 28px;
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease,
    border-color 0.4s ease,
    background 0.4s ease;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg,
      rgba(255, 255, 255, 0.08),
      transparent 40%);
  pointer-events: none;
}

.card h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.15;
}

.card p {
  color: inherit;
}

.card-subtitle {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 14px;
  opacity: 0.95;
}

.card-subtitle i {
  margin-right: 8px;
  color: inherit;
}

.card-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.card-light {
  background: rgba(255, 255, 255, 0.80);
  border: 1px solid var(--border-rose);
  color: var(--text-dark);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.card-light:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.card-dark {
  /* Sur la section-dark rose, les cartes sombres = vert forêt (toujours pas violet) */
  background: rgba(110, 18, 46, 0.90);
  border: 1px solid rgba(229, 169, 59, 0.26);
  color: var(--white);
  box-shadow: var(--shadow-dark);
  backdrop-filter: blur(8px);
}

.card-dark:hover {
  transform: translateY(-10px);
  border-color: rgba(229, 169, 59, 0.40);
}

.card i,
.text-link i {
  color: var(--gold-light);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: var(--rose-baby);
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 230, 236, 0.55);
  padding-bottom: 2px;
  transition: var(--transition);
}

.text-link:hover {
  color: #ffffff;
  transform: translateY(-1px);
}

.dress-grid .card {
  min-height: 220px;
}

/* ========================= */
/*            TEXT           */
/* ========================= */
.text-with-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.text-with-icon i {
  color: var(--rose-deep);
  font-size: 1rem;
}

/* ========================= */
/*            MAP            */
/* ========================= */
.map-box {
  height: 420px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(229, 169, 59, 0.22);
  box-shadow: var(--shadow-dark);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.map-box:hover {
  transform: scale(1.01);
}

/* ========================= */
/*          FOOTER           */
/* ========================= */
.footer {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
    var(--bg-cream);
  color: var(--forest);
  padding: 70px 0 80px;
  border-top: 1px solid var(--border-rose);
}

.footer-divider {
  width: 120px;
  height: 1px;
  margin: 0 auto 26px;
  background: linear-gradient(to right, transparent, var(--rose), transparent);
}

.footer-divider-bottom {
  margin-top: 26px;
  margin-bottom: 24px;
}

.intro-title {
  font-family: "Great Vibes", cursive;
  font-size: clamp(3rem, 9vw, 6rem);
  font-weight: 400;
  margin-bottom: 10px;
  line-height: 1.05;
  color: var(--forest);
  text-shadow: 0 4px 18px rgba(206, 58, 102, 0.18);
}

.footer-text {
  color: var(--text-soft);
  max-width: 720px;
  margin: 0 auto 14px;
}

.footer-arabic {
  font-family: "Amiri", serif;
  font-size: 1.55rem;
  /* Texte arabe footer : rose (plus violet) */
  color: var(--accent);
}

.footer-copyright {
  margin-top: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--brown-soft);
  letter-spacing: 0.06em;
  text-align: center;
  line-height: 1.7;
  padding-top: 0;
  border-top: none;
}

/* ========================= */
/*        ANIMATIONS         */
/* ========================= */
.reveal-up,
.reveal-left,
.reveal-right,
.reveal-zoom {
  opacity: 0;
  transition:
    opacity 0.9s ease,
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

.reveal-up {
  transform: translateY(40px);
}

.reveal-left {
  transform: translateX(-40px);
}

.reveal-right {
  transform: translateX(40px);
}

.reveal-zoom {
  transform: scale(0.94);
}

.reveal-up.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: 1024px) {
  .section {
    padding: 86px 0;
  }

  .section-with-banner {
    padding-top: 0;
  }

  .cards-grid {
    gap: 22px;
  }

  .section-banner-image {
    height: clamp(210px, 36vw, 360px);
  }
}

@media (max-width: 900px) {
  .cards-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .countdown {
    gap: 10px;
  }
}

@media (max-width: 768px) {
  .container {
    width: min(var(--container), calc(100% - 24px));
  }

  .section {
    padding: 68px 0;
  }

  .section-with-banner {
    padding-top: 0;
  }

  .full-banner {
    margin-bottom: 34px;
  }

  .section-banner-image {
    height: 220px;
  }

  .section-head {
    margin-bottom: 34px;
  }

  .section-title {
    font-size: clamp(1.9rem, 7vw, 2.7rem);
  }

  .section-arabic {
    font-size: 1.35rem;
  }

  .event-highlight {
    flex-direction: column;
    text-align: center;
    padding: 22px 18px;
    gap: 14px;
  }

  .event-highlight-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    font-size: 1.2rem;
  }

  .countdown {
    flex-wrap: wrap;
    gap: 12px;
  }

  .count-box {
    width: calc(50% - 6px);
    flex: unset;
    padding: 18px 8px;
    border-radius: 18px;
  }

  .count-box span {
    font-size: clamp(1.3rem, 6vw, 2rem);
    margin-bottom: 6px;
  }

  .count-box small {
    font-size: 0.58rem;
    letter-spacing: 0.08em;
  }

  .cards-grid,
  .dress-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 26px;
  }

  .card {
    padding: 28px 22px;
  }

  .card h3 {
    font-size: 1.7rem;
  }

  .map-box {
    height: 320px;
    border-radius: 20px;
  }

  .footer {
    padding: 54px 0 62px;
  }

  .footer-arabic {
    font-size: 1.25rem;
  }

  .intro-title {
    font-size: clamp(2.4rem, 11vw, 4rem);
  }

  .floating-logo {
    width: 120px;
    height: 120px;
  }

  .footer-copyright {
    font-size: 0.78rem;
    line-height: 1.6;
    letter-spacing: 0.04em;
  }

  @keyframes logoSwimDark {
    0% {
      transform: translate3d(4vw, 10vh, 0);
    }

    20% {
      transform: translate3d(60vw, 18vh, 0);
    }

    40% {
      transform: translate3d(56vw, 58vh, 0);
    }

    60% {
      transform: translate3d(8vw, 74vh, 0);
    }

    80% {
      transform: translate3d(18vw, 36vh, 0);
    }

    100% {
      transform: translate3d(4vw, 10vh, 0);
    }
  }
}

@media (max-width: 480px) {
  .container {
    width: calc(100% - 18px);
  }

  .btn {
    min-width: 0;
    width: 100%;
    padding: 14px 18px;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
  }

  .countdown {
    gap: 10px;
  }

  .count-box {
    width: calc(50% - 5px);
    padding: 14px 6px;
  }

  .count-box span {
    font-size: 1.25rem;
  }

  .count-box small {
    font-size: 0.52rem;
  }

  .card {
    padding: 24px 18px;
  }

  .card h3 {
    font-size: 1.45rem;
  }

  .section-title {
    font-size: 1.7rem;
  }

  .section-arabic {
    font-size: 1.15rem;
  }

  .section-banner-image {
    height: 170px;
  }

  .text-with-icon {
    gap: 8px;
  }

  .floating-logo {
    width: 100px;
    height: 100px;
  }

  .footer-copyright {
    font-size: 0.72rem;
    padding-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  * {
    animation: none !important;
    transition: none !important;
  }

  .reveal-up,
  .reveal-left,
  .reveal-right,
  .reveal-zoom {
    opacity: 1 !important;
    transform: none !important;
  }

  .floating-logo {
    top: 20px;
    left: 20px;
    transform: none !important;
  }
}

/* =========================================================
   MARIPOSAS
   ========================================================= */

.butterflies-layer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  pointer-events: none;
  overflow: hidden;
  z-index: 9990;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.2s ease, visibility 1.2s ease;
}

body.butterflies-active .butterflies-layer {
  opacity: 1;
  visibility: visible;
}

.butterfly {
  position: absolute;
  left: -150px;
  height: auto;
  display: block;
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 5px 12px rgba(206, 58, 102, 0.30));
  will-change: transform, opacity;
}

.butterfly-1 {
  top: 15%;
  width: 100px;
  animation: butterflyFly1 16s ease-in-out infinite;
}

.butterfly-2 {
  top: 32%;
  width: 70px;
  animation: butterflyFly2 20s ease-in-out 3s infinite;
}

.butterfly-3 {
  top: 10%;
  width: 82px;
  animation: butterflyFly3 22s ease-in-out 6s infinite;
}

.butterfly-4 {
  top: 57%;
  width: 65px;
  animation: butterflyFly4 18s ease-in-out 8s infinite;
}

.butterfly-5 {
  top: 72%;
  width: 92px;
  animation: butterflyFly5 24s ease-in-out 11s infinite;
}

@keyframes butterflyFly1 {
  0% {
    transform: translate(-150px, 30px) rotate(-8deg) scale(.75);
    opacity: 0;
  }

  8% {
    opacity: .95;
  }

  25% {
    transform: translate(20vw, -35px) rotate(8deg) scale(1);
  }

  50% {
    transform: translate(48vw, 30px) rotate(-6deg) scale(.96);
  }

  75% {
    transform: translate(75vw, -20px) rotate(7deg) scale(1.02);
  }

  92% {
    opacity: .9;
  }

  100% {
    transform: translate(115vw, 20px) rotate(-5deg) scale(.82);
    opacity: 0;
  }
}

@keyframes butterflyFly2 {
  0% {
    transform: translate(-120px, 20px) rotate(5deg) scale(.8);
    opacity: 0;
  }

  10% {
    opacity: .85;
  }

  35% {
    transform: translate(28vw, 50px) rotate(-8deg) scale(1);
  }

  65% {
    transform: translate(65vw, -25px) rotate(7deg) scale(.95);
  }

  100% {
    transform: translate(115vw, 40px) rotate(-4deg) scale(.8);
    opacity: 0;
  }
}

@keyframes butterflyFly3 {
  0% {
    transform: translate(-120px, 0) rotate(-4deg) scale(.8);
    opacity: 0;
  }

  10% {
    opacity: .9;
  }

  40% {
    transform: translate(38vw, -45px) rotate(9deg) scale(1);
  }

  70% {
    transform: translate(72vw, 25px) rotate(-7deg) scale(.96);
  }

  100% {
    transform: translate(115vw, -15px) rotate(4deg) scale(.8);
    opacity: 0;
  }
}

@keyframes butterflyFly4 {
  0% {
    transform: translate(-120px, 20px) rotate(7deg) scale(.75);
    opacity: 0;
  }

  12% {
    opacity: .8;
  }

  45% {
    transform: translate(35vw, -30px) rotate(-6deg) scale(1);
  }

  75% {
    transform: translate(75vw, 25px) rotate(5deg) scale(.95);
  }

  100% {
    transform: translate(115vw, -15px) rotate(-5deg) scale(.8);
    opacity: 0;
  }
}

@keyframes butterflyFly5 {
  0% {
    transform: translate(-150px, -20px) rotate(-6deg) scale(.8);
    opacity: 0;
  }

  10% {
    opacity: .85;
  }

  30% {
    transform: translate(25vw, 30px) rotate(8deg) scale(1);
  }

  60% {
    transform: translate(60vw, -25px) rotate(-7deg) scale(.96);
  }

  85% {
    transform: translate(90vw, 20px) rotate(5deg) scale(.9);
    opacity: .8;
  }

  100% {
    transform: translate(115vw, -10px) rotate(-4deg) scale(.8);
    opacity: 0;
  }
}

@media (max-width: 768px) {
  .butterfly-1 {
    width: 28px;
  }

  .butterfly-2 {
    width: 30px;
  }

  .butterfly-3 {
    width: 30px;
  }

  .butterfly-4 {
    width: 25px;
  }

  .butterfly-5 {
    width: 30px;
  }
}

/* =========================================================
   CAGE — va-et-vient de gauche à droite
   ========================================================= */
.cage {
  --cage-w: 150px;
  position: absolute;
  top: 18%;
  left: calc(-1 * var(--cage-w) - 40px);
  width: var(--cage-w);
  height: auto;
  opacity: 0.96;
  pointer-events: none;
  filter: drop-shadow(0 6px 16px rgba(206, 58, 102, 0.30));
  will-change: transform;
  animation: cageComeGo 28s ease-in-out infinite alternate;
}

@keyframes cageComeGo {
  from {
    transform: translate3d(0, 0, 0) rotate(-3deg);
  }

  50% {
    transform: translate3d(calc(50vw + var(--cage-w) / 2 + 40px), 24px, 0) rotate(3deg);
  }

  to {
    transform: translate3d(calc(100vw + 16px), 0, 0) rotate(-3deg);
  }
}

@media (max-width: 768px) {
  .cage {
    --cage-w: 95px;
    top: 14%;
  }
}

/* ═══════════════════════════════════════ */
/*   LUSTRE — oscillation sur place       */
/* ═══════════════════════════════════════ */
.chandelier-stage {
  position: relative;
  width: 90px;
  height: 160px;
  margin: 0 auto 40px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  /* point de pivot = haut du SVG (où passe la chaîne), donc transform-origin: top */
  perspective: 800px;
}

.chandelier-svg {
  width: 120px;
  height: 220px;
  display: block;
  transform-origin: 50% 0%;
  /* pivot au sommet de la chaîne */
  transform-box: fill-box;
  animation: chandelierSway 2.5s cubic-bezier(0.42, 0, 0.58, 1) infinite alternate;
  filter: drop-shadow(0 6px 14px rgba(150, 96, 110, 0.18));
  will-change: transform;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.chandelier-svg.is-playing {
  opacity: 1;
}

@keyframes chandelierSway {
  0% {
    transform: rotate(-8deg);
  }

  50% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(8deg);
  }
}

/* respect du paramètre OS pour désactiver le mouvement */
@media (prefers-reduced-motion: reduce) {
  .chandelier-svg {
    animation: none !important;
    opacity: 1;
    transform: rotate(0deg);
  }
}

.intro-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* respecte les proportions du cadre */
  object-position: center;
  z-index: 2;
  /* > video-end-frame (1) ; < intro-trigger (3) */
  pointer-events: none;
  /* laisse passer le clic vers l'enveloppe */
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 8px 22px rgba(150, 96, 110, 0.22));
}


@media (max-width: 600px) {
  .intro-frame {
    inset: 8px;
    width: calc(100% - 16px);
    height: calc(100% - 16px);
  }
}

.swipe-hint {
  position: absolute;
  left: 50%;
  bottom: calc(28px + env(safe-area-inset-bottom, 0px));

  transform: translateX(-50%) translateY(14px);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 6px;

  padding: 10px 20px 9px;

  border-radius: 999px;

  /* IVOIRE TRANSPARENT */
  background: rgba(255, 247, 222, 0.48);

  /* bordure très discrète */
  border: 1px solid rgba(168, 27, 69, 0.18);

  /* ombre légère */
  box-shadow: 0 8px 24px rgba(126, 24, 50, 0.12);

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  z-index: 4;
  pointer-events: none;

  opacity: 0;
  visibility: hidden;

  transition:
    opacity 0.8s ease 0.5s,
    transform 0.8s ease 0.5s,
    visibility 0.8s ease 0.5s;
}

.intro-screen.show-end-frame .swipe-hint,
.swipe-hint.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.swipe-hint-text {
  font-family: "Montserrat", sans-serif;
  font-size: 0.68rem;
  line-height: 1;

  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;

  color: #A81B45;
}

.swipe-hint-arrow {
  font-size: 0.9rem;
  line-height: 1;

  color: #CE3A66;

  animation: swipeDownHintBounce 1.8s ease-in-out infinite;
}

@keyframes swipeDownHintBounce {

  0%,
  100% {
    transform: translateY(0);
    opacity: 0.7;
  }

  50% {
    transform: translateY(7px);
    opacity: 1;
  }
}

@media (max-width: 600px) {
  .swipe-hint {
    bottom: calc(22px + env(safe-area-inset-bottom, 0px));
    padding: 8px 16px 7px;
    gap: 5px;

    background: rgba(255, 247, 222, 0.42);
  }

  .swipe-hint-text {
    font-size: 0.58rem;
    letter-spacing: 0.11em;
  }

  .swipe-hint-arrow {
    font-size: 0.8rem;
  }
}

/* ========================= */
/*    BOUTON MUSIQUE (toggle) */
/* ========================= */
.music-toggle {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 6000;
  /* au-dessus de l'intro (5000) */
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-rose);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  color: var(--brown-deep);
  font-size: 1.05rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  transition: transform 0.35s ease, box-shadow 0.35s ease,
    background 0.35s ease, color 0.35s ease;
}

.music-toggle:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.music-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* état "musique en lecture" : le bouton porte déjà aria-pressed="true" */
.music-toggle[aria-pressed="true"] {
  background: linear-gradient(135deg, var(--rose-soft), var(--gold));
  color: var(--brown-deep);
  border-color: transparent;
}

.music-toggle[aria-pressed="true"] i {
  animation: musicPulse 2.4s ease-in-out infinite;
}

@keyframes musicPulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.14);
  }
}

@media (max-width: 480px) {
  .music-toggle {
    width: 46px;
    height: 46px;
    right: 14px;
    bottom: 14px;
    font-size: 0.95rem;
  }
}

/* ========================= */
/*      BOUTON MUSIQUE       */
/* ========================= */

.music-toggle {
  position: fixed;
  right: 24px;
  bottom: 24px;

  width: 52px;
  height: 52px;

  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;

  background: rgba(255, 255, 255, 0.78);
  color: var(--forest);

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 1.1rem;

  cursor: pointer;

  z-index: 10000;

  box-shadow: 0 10px 30px rgba(168, 27, 69, 0.20);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  transition:
    transform 0.3s ease,
    background 0.3s ease,
    box-shadow 0.3s ease;
}

.music-toggle:hover {
  transform: scale(1.08);
  background: rgba(255, 255, 255, 0.95);
}

.music-toggle.is-playing {
  animation: musicPulse 2s ease-in-out infinite;
}

@keyframes musicPulse {

  0%,
  100% {
    box-shadow: 0 10px 30px rgba(168, 27, 69, 0.20);
  }

  50% {
    box-shadow: 0 10px 35px rgba(206, 58, 102, 0.45);
  }
}

@media (max-width: 480px) {
  .music-toggle {
    width: 46px;
    height: 46px;
    right: 16px;
    bottom: 16px;
    font-size: 1rem;
  }
}

.music-toggle {
  position: fixed;
  right: 24px;
  bottom: 24px;

  width: 52px;
  height: 52px;

  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;

  background: rgba(255, 255, 255, 0.78);
  color: var(--forest);

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 1.1rem;
  cursor: pointer;

  z-index: 10000;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transform: scale(0.7);

  transition:
    opacity 0.5s ease,
    visibility 0.5s ease,
    transform 0.5s ease;
}

/* Apparaît après ouverture de l'enveloppe */
body.intro-finished .music-toggle,
body.intro-started .music-toggle {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: scale(1);
}