:root {
  /* 🌿 PALETTE NATURELLE */

  --sage-green: #A3B18A;
  --olive: #87986A;
  --olive-dark: #2F3A2E;

  --blush: #E8CFCB;
  --rose-dust: #DDB6B0;

  --beige: #F4EEE6;
  --ivory: #FFFDF8;

  /* 🔁 COMPATIBILITÉ (on garde tes anciens noms pour ne rien casser) */

  --bordeaux-deep: #2F3A2E;
  /* vert foncé élégant */
  --bordeaux: #c7d3b5;
  /* olive */
  --bordeaux-light: #87986A;
  /* sage */
  --bordeaux-soft: #A3B18A;
  /* vert doux */

  --rose-baby: #E8CFCB;
  --rose-pale: #F4EEE6;
  --rose-cream: #FFFDF8;

  --bg-cream: #FFFDF8;
  --bg-soft: #F4EEE6;
  --bg-card: rgba(255, 253, 248, 0.78);

  --text-dark: #2F3A2E;
  --text-soft: #5C6B5A;
  --white: #ffffff;

  --border-soft: rgba(135, 152, 106, 0.22);
  --border-gold: rgba(163, 177, 138, 0.35);

  --shadow: 0 18px 50px rgba(47, 58, 46, 0.10);
  --shadow-hover: 0 26px 60px rgba(47, 58, 46, 0.18);
  --shadow-dark: 0 18px 50px rgba(20, 30, 20, 0.35);

  --radius: 26px;
  --transition: all 0.4s 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(163, 177, 138, 0.30), transparent 35%),
    radial-gradient(circle at bottom right, rgba(232, 207, 203, 0.30), transparent 40%),
    var(--bg-cream);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
  width: 100%;
}

body.intro-active {
  overflow: hidden;
}

img,
iframe {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

main {
  overflow: hidden;
}

.main-content {
  position: relative;
  z-index: 2;
  background: var(--bg-cream);
  animation: mainFade 1.2s ease;
}

.hidden {
  display: none;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.narrow {
  max-width: 860px;
}

.center {
  text-align: center;
}

.music-toggle {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 9999;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(255, 253, 248, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border: 1px solid rgba(163, 177, 138, 0.35);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);

  cursor: pointer;
  transition: all 0.3s ease;
}

.music-toggle:hover {
  transform: scale(1.08);
}

.music-toggle i {
  font-size: 1.2rem;
  color: var(--bordeaux-deep);
}

/* ========================= */
/*           INTRO           */
/* ========================= */
.intro-screen {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  min-height: 100dvh;
  background: var(--bordeaux-deep);
  overflow: hidden;
  z-index: 5000;
}

.intro-screen.is-finished {
  position: relative;
  inset: auto;
  height: 100vh;
  min-height: 100dvh;
  z-index: 1;
}

.intro-trigger {
  position: absolute;
  inset: 0;
  z-index: 3;
  cursor: pointer;
  overflow: hidden;
  background: transparent;
  transition: opacity 1.6s ease, transform 1.6s ease, visibility 1.6s ease;
}

.intro-trigger::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(58, 10, 25, 0.20), rgba(58, 10, 25, 0.35));
  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;
}

/* HINT TAP */
.intro-hint {
  position: absolute;
  bottom: 9%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 26px;
  border-radius: 999px;
  background: rgba(255, 245, 246, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--rose-cream);
  font-family: "Italiana", serif;
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid rgba(245, 208, 214, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  animation: hintFloat 2.5s ease-in-out infinite;
}

.intro-hint i {
  color: var(--rose-baby);
  font-size: 1.1rem;
}

/* DISPARITION DOUCE DE L'ENVELOPPE */
.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-opening .intro-hint {
  opacity: 0;
  transform: translateX(-50%) translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.intro-screen.is-finished .intro-trigger {
  display: none;
}

@keyframes gentlePulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.012);
  }
}

@keyframes hintFloat {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(-8px);
  }
}

/* ========================= */
/*     FLOATING LOGO         */
/* ========================= */
.floating-logo {
  position: fixed;
  top: 0;
  left: 0;
  width: clamp(150px, 14vw, 210px);
  height: clamp(150px, 14vw, 210px);
  z-index: 9999;
  pointer-events: none;
  user-select: none;
  opacity: 0;
  visibility: hidden;
  will-change: transform, opacity;
  animation: logoSwim 26s ease-in-out infinite;
}

.floating-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  -webkit-user-drag: none;
  opacity: 0.95;
  filter: drop-shadow(0 8px 24px rgba(90, 26, 43, 0.22));
  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         */
/* ========================= */
.section {
  position: relative;
  padding: 100px 0;
}

.section-light {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(251, 230, 233, 0.30)),
    var(--bg-cream);
  color: var(--text-dark);
}

.section-dark {
  background:
    linear-gradient(135deg, var(--bordeaux-deep) 0%, var(--bordeaux) 60%, var(--bordeaux-light) 100%);
  color: var(--white);
}

.section-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(245, 208, 214, 0.10), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(245, 208, 214, 0.08), transparent 40%);
  pointer-events: none;
}

.section-dark>* {
  position: relative;
  z-index: 1;
}

.section-with-banner {
  padding-top: 0;
}

.full-banner {
  width: 100%;
  margin: 0 0 56px;
  overflow: hidden;
  position: relative;
}

.full-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(90, 26, 43, 0.18));
  pointer-events: none;
}

.section-banner-image {
  width: 100%;
  height: clamp(220px, 34vw, 440px);
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.01);
  transition: transform 1.4s ease;
}

.full-banner:hover .section-banner-image {
  transform: scale(1.06);
}

.section-head {
  margin-bottom: 46px;
}

/* ORNEMENTS */
.ornament {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  color: var(--bordeaux);
  font-size: 0.9rem;
}

.ornament i {
  color: var(--bordeaux-light);
  font-size: 0.85rem;
}

.ornament-line {
  display: inline-block;
  width: 60px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--bordeaux-soft), transparent);
}

.ornament-light {
  color: var(--rose-baby);
}

.ornament-light i {
  color: var(--rose-pale);
}

.ornament-light .ornament-line {
  background: linear-gradient(to right, transparent, var(--rose-baby), transparent);
}

.section-label {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bordeaux-light);
  margin-bottom: 12px;
  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: 14px;
  color: var(--bordeaux-deep);
  font-weight: 600;
}

.section-title.light {
  color: var(--rose-cream);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
}

.section-arabic {
  font-family: "Amiri", serif;
  font-size: 1.75rem;
  margin-bottom: 16px;
  color: var(--bordeaux);
}

.section-arabic.light {
  color: var(--rose-baby);
}

.section-text {
  max-width: 760px;
  margin: 0 auto;
  color: var(--text-soft);
}

/* ========================= */
/*      EVENT HIGHLIGHT      */
/* ========================= */
.event-highlight {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0 auto 38px;
  padding: 26px 28px;
  max-width: 720px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(245, 208, 214, 0.55));
  border: 1px solid var(--border-gold);
  box-shadow: 0 18px 40px rgba(122, 34, 56, 0.12);
  text-align: left;
  backdrop-filter: blur(10px);
}

.event-highlight-icon {
  width: 72px;
  height: 72px;
  min-width: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--rose-baby), var(--bordeaux-soft));
  color: var(--white);
  font-size: 1.55rem;
  box-shadow: 0 10px 24px rgba(166, 68, 88, 0.28);
}

.event-highlight-content {
  flex: 1;
}

.event-highlight-label {
  display: inline-block;
  margin-bottom: 4px;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bordeaux-light);
  font-weight: 600;
}

.event-highlight-content strong {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  line-height: 1.1;
  color: var(--bordeaux-deep);
  margin-bottom: 6px;
  font-weight: 600;
}

.event-highlight-content p {
  color: var(--text-soft);
  margin: 0;
}

/* ========================= */
/*         COUNTDOWN         */
/* ========================= */
.countdown {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 14px;
  margin-top: 38px;
  flex-wrap: nowrap;
}

.count-box {
  position: relative;
  flex: 1;
  min-width: 0;
  text-align: center;
  padding: 26px 10px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(251, 230, 233, 0.55));
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.count-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, transparent, var(--bordeaux-soft), transparent);
}

.count-box:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.count-box span {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.7rem, 4vw, 3rem);
  color: var(--bordeaux-deep);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 12px;
}

.count-box small {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.64rem;
  color: var(--bordeaux-light);
  font-weight: 600;
}

/* ========================= */
/*           CARDS           */
/* ========================= */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-bottom: 36px;
}

.card {
  position: relative;
  border-radius: var(--radius);
  padding: 38px 30px;
  transition:
    transform 0.45s ease,
    box-shadow 0.45s ease,
    border-color 0.45s ease;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.10), transparent 45%);
  pointer-events: none;
}

.card h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 2.05rem;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.15;
}

.card p {
  color: inherit;
}

.card-subtitle {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 16px;
  opacity: 0.95;
  font-weight: 600;
}

.card-subtitle i {
  margin-right: 8px;
  color: inherit;
}

.card-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.card-light {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--border-gold);
  color: var(--text-dark);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.card-light h3 {
  color: var(--bordeaux-deep);
}

.card-light .card-subtitle {
  color: var(--bordeaux-light);
}

.card-light i {
  color: var(--bordeaux);
}

.card-light:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-hover);
  border-color: var(--bordeaux-soft);
}

.card-dark {
  background: rgba(255, 245, 246, 0.10);
  border: 1px solid rgba(245, 208, 214, 0.22);
  color: var(--white);
  box-shadow: var(--shadow-dark);
  backdrop-filter: blur(8px);
}

.card-dark h3 {
  color: var(--rose-cream);
}

.card-dark .card-subtitle {
  color: #957b77;
}

.card-dark i {
  color: #957b77;
}

.card-dark:hover {
  transform: translateY(-12px);
  border-color: var(--rose-baby);
  background: rgba(255, 245, 246, 0.14);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--rose-pale);
  font-weight: 500;
  border-bottom: 1px solid rgba(245, 208, 214, 0.48);
  padding-bottom: 3px;
  transition: var(--transition);
}

.text-link:hover {
  color: var(--white);
  transform: translateY(-1px);
  border-color: var(--rose-baby);
}

.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(--bordeaux);
  font-size: 1rem;
}

/* ========================= */
/*            MAP            */
/* ========================= */
.map-box {
  height: 420px;
  border-radius: 28px;
  overflow: hidden;
  border: 2px solid rgba(245, 208, 214, 0.28);
  box-shadow: var(--shadow-dark);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.map-box:hover {
  transform: scale(1.01);
  border-color: var(--rose-baby);
}

/* ========================= */
/*          FOOTER           */
/* ========================= */
.footer {
  background:
    linear-gradient(180deg, var(--bordeaux) 0%, var(--bordeaux-deep) 100%);
  color: var(--white);
  padding: 76px 0 80px;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(245, 208, 214, 0.10), transparent 40%),
    radial-gradient(circle at 70% 80%, rgba(245, 208, 214, 0.08), transparent 40%);
  pointer-events: none;
}

.footer>* {
  position: relative;
  z-index: 1;
}

.footer-divider {
  width: 140px;
  height: 1px;
  margin: 0 auto 28px;
  background: linear-gradient(to right, transparent, var(--rose-baby), transparent);
}

.footer-divider-bottom {
  margin-top: 28px;
  margin-bottom: 26px;
}

.intro-title {
  font-family: "Great Vibes", cursive;
  font-size: clamp(3rem, 9vw, 6rem);
  font-weight: 400;
  margin-bottom: 12px;
  line-height: 1.05;
  color: var(--rose-cream);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.footer-text {
  color: rgba(255, 245, 246, 0.85);
  max-width: 720px;
  margin: 0 auto 16px;
}

.footer-arabic {
  font-family: "Amiri", serif;
  font-size: 1.6rem;
  color: var(--rose-baby);
}

.footer-copyright {
  margin-top: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255, 245, 246, 0.78);
  letter-spacing: 0.08em;
  text-align: center;
}

/* ========================= */
/*        ANIMATIONS         */
/* ========================= */
.reveal-up,
.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-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(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================= */
/*         RESPONSIVE        */
/* ========================= */
@media (max-width: 1024px) {
  .section {
    padding: 88px 0;
  }

  .section-with-banner {
    padding-top: 0;
  }

  .cards-grid {
    gap: 24px;
  }

  .section-banner-image {
    height: clamp(210px, 36vw, 370px);
  }
}

@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: 72px 0;
  }

  .section-with-banner {
    padding-top: 0;
  }

  .full-banner {
    margin-bottom: 36px;
  }

  .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.4rem;
  }

  .ornament-line {
    width: 40px;
  }

  .event-highlight {
    flex-direction: column;
    text-align: center;
    padding: 22px 18px;
    gap: 14px;
  }

  .event-highlight-icon {
    width: 62px;
    height: 62px;
    min-width: 62px;
    font-size: 1.25rem;
  }

  .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: 30px 22px;
  }

  .card h3 {
    font-size: 1.75rem;
  }

  .map-box {
    height: 320px;
    border-radius: 20px;
  }

  .footer {
    padding: 58px 0 64px;
  }

  .footer-arabic {
    font-size: 1.3rem;
  }

  .intro-title {
    font-size: clamp(2.4rem, 11vw, 4rem);
  }

  .floating-logo {
    width: 110px;
    height: 110px;
  }

  .footer-copyright {
    font-size: 0.78rem;
    letter-spacing: 0.04em;
  }

  .intro-hint {
    font-size: 0.82rem;
    padding: 12px 20px;
    bottom: 7%;
  }
}

@media (max-width: 480px) {
  .container {
    width: calc(100% - 18px);
  }

  .countdown {
    gap: 10px;
  }

  .count-box {
    width: calc(50% - 5px);
    padding: 14px 6px;
  }

  .count-box span {
    font-size: 1.3rem;
  }

  .count-box small {
    font-size: 0.54rem;
  }

  .card {
    padding: 24px 18px;
  }

  .card h3 {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .section-arabic {
    font-size: 1.2rem;
  }

  .section-banner-image {
    height: 180px;
  }

  .text-with-icon {
    gap: 8px;
  }

  .floating-logo {
    width: 95px;
    height: 95px;
  }

  .footer-copyright {
    font-size: 0.72rem;
  }

  .intro-hint {
    font-size: 0.72rem;
    padding: 10px 16px;
    letter-spacing: 0.14em;
  }
}

@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;
  }
}