/*
Theme Name: BM-Theo OnePage
Author: OpenAI
Version: 1.0
Description: One-page WordPress theme for an event invitation.
Text Domain: bm-theo
*/

:root {
  --bm-gold: #e1b750;
  --bm-gold-light: #f6e2a4;
  --bm-blue: #00152d;
  --bm-cream: #f8f6f1;
}

body {
  font-family: "Cormorant Garamond", serif;
  background-color: #ffffff;
  color: #1b1b1b;
}

body.bm-locked {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--bm-gold);
}

.section-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 4rem 1rem;
  position: relative;
  background: radial-gradient(circle at top, rgba(0, 48, 102, 0.85), rgba(0, 12, 31, 0.95));
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.landing-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 21, 45, 0.8), rgba(0, 21, 45, 0.95));
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  padding: 2rem;
}

.landing-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.landing-content .hero-title {
  margin-bottom: 2rem;
}

.landing-button {
  background: var(--bm-gold);
  border: none;
  color: #1a1f33;
  font-weight: 600;
  padding: 0.9rem 2.5rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.12rem;
}

.landing-button i {
  margin-right: 0.5rem;
}

.section-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 21, 45, 0.4), rgba(0, 10, 25, 0.85));
  z-index: 0;
}

.section-hero > * {
  position: relative;
  z-index: 1;
}

.section-hero img {
  max-width: 420px;
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.25);
}

.hero-monogram {
  font-family: "Cinzel Decorative", serif;
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 700;
  background: linear-gradient(120deg, var(--bm-gold), var(--bm-gold-light), var(--bm-gold));
  -webkit-background-clip: text;
  color: transparent;
  letter-spacing: 0.2rem;
  text-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.hero-title {
  font-family: "Cinzel Decorative", serif;
  font-size: clamp(2rem, 5vw, 3rem);
  background: linear-gradient(120deg, #ffffff, var(--bm-gold-light));
  -webkit-background-clip: text;
  color: transparent;
  margin-top: 1rem;
  text-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.star-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.star-field--global {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

main {
  position: relative;
  z-index: 2;
}

.star {
  position: absolute;
  width: 28px;
  height: 28px;
  opacity: 0.8;
  animation: drift linear infinite, twinkle ease-in-out infinite, pulse ease-in-out infinite;
  --star-scale: 1;
}

@keyframes drift {
  0% {
    transform: translate3d(0, -15vh, 0) rotate(0deg) scale(calc(0.85 * var(--star-scale)));
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  100% {
    transform: translate3d(var(--star-drift, -25vw), 115vh, 0) rotate(220deg) scale(calc(1.1 * var(--star-scale)));
    opacity: 0;
  }
}

@keyframes twinkle {
  0%,
  100% {
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.2));
  }
  50% {
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.6));
  }
}

@keyframes pulse {
  0%,
  100% {
    --star-scale: 0.9;
  }
  50% {
    --star-scale: 1.15;
  }
}

.audio-toggle {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(0, 0, 0, 0.45);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9rem;
  z-index: 2;
}

.audio-toggle[aria-pressed="true"] {
  background: var(--bm-gold);
  color: #1a1f33;
}

.scroll-down-link {
  margin-top: 2rem;
  color: var(--bm-gold);
  animation: float 2.5s ease-in-out infinite;
  z-index: 1;
}

@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px);
  }
  100% {
    transform: translateY(0);
  }
}

.section-countdown {
  background: var(--bm-cream);
  padding: 4rem 1rem;
  text-align: center;
}

.countdown-grid {
  display: inline-flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.count-box {
  background: rgba(255, 255, 255, 0.9);
  padding: 1rem 1.25rem;
  border-radius: 16px;
  min-width: 100px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.count-box span {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--bm-gold);
}

.count-box small {
  font-size: 0.95rem;
  color: #1a1f33;
}

.section-event {
  padding: 4rem 1rem;
  text-align: center;
  color: #ffffff;
  background-position: center;
  background-size: cover;
  position: relative;
}

.section-event::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.section-event .container {
  position: relative;
  z-index: 1;
}

.section-event .lead {
  font-size: 1.1rem;
  line-height: 1.8;
}

.section-event .event-title {
  color: var(--bm-gold);
  font-weight: 700;
  font-size: 1.3rem;
}

.section-slider {
  background: #f0f3f8;
  padding: 4rem 1rem;
}

.bm-slider {
  width: 100%;
}

.slider-card {
  margin: 0;
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.slider-card img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.slider-card figcaption {
  padding: 1.2rem 1.5rem;
  font-family: "Cinzel Decorative", serif;
  color: var(--bm-blue);
  font-size: 1.1rem;
  background: #ffffff;
}

.swiper-button-next,
.swiper-button-prev {
  color: var(--bm-gold);
}

.swiper-pagination-bullet-active {
  background: var(--bm-gold);
}

.event-logo {
  max-width: 200px;
  width: 100%;
  margin-bottom: 1.5rem;
}

.btn-waze {
  background: var(--bm-gold);
  border: none;
  color: #1a1f33;
  font-weight: 600;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.section-rsvp {
  background: #f4f4f6;
  padding: 4rem 1rem;
}

.section-map {
  background: #ffffff;
  padding: 4rem 1rem;
}

.map-embed {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.section-rsvp iframe {
  border: 0;
  width: 100%;
  min-height: 700px;
}

footer {
  background: var(--bm-blue);
  color: #ffffff;
  text-align: center;
  padding: 2rem 1rem;
}

.section-cta-offre {
  background: var(--bm-blue);
  color: #ffffff;
  padding: 3.5rem 1rem;
}

.section-cta-offre p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.section-cta-offre .btn {
  background: var(--bm-gold);
  border: none;
  color: #1a1f33;
  font-weight: 600;
  padding: 0.9rem 2.5rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
}

.section-offer-hero {
  background: linear-gradient(135deg, #00152d, #0f3a7a);
  color: #ffffff;
  padding: 5rem 1rem 4rem;
  text-align: center;
}

.section-offer-hero h1 {
  font-family: "Cinzel Decorative", serif;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--bm-gold);
  margin-bottom: 1rem;
}

.section-offer-hero p {
  font-size: 1.2rem;
}

.offer-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

.offer-hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
}

.offer-hero-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.offer-hero-metrics strong {
  display: block;
  font-size: 1.6rem;
  color: var(--bm-gold);
}

.offer-hero-metrics span {
  font-size: 0.95rem;
}

.offer-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.offer-card h3 {
  font-family: "Cinzel Decorative", serif;
  color: var(--bm-blue);
  margin-bottom: 1rem;
}

.offer-price {
  font-size: 2.5rem;
  color: var(--bm-gold);
  font-weight: 700;
}

.offer-section {
  padding: 4rem 1rem;
}

.offer-alt {
  background: #f4f6fb;
}

.offer-title {
  font-family: "Cinzel Decorative", serif;
  color: var(--bm-blue);
  margin-bottom: 1rem;
}

.offer-list li {
  margin-bottom: 0.6rem;
}

.offer-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.offer-image-grid img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.18);
}

.offer-card.highlight {
  border: 1px solid rgba(225, 183, 80, 0.4);
}

.offer-steps {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0;
}

.offer-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: #ffffff;
  padding: 1rem 1.25rem;
  border-radius: 16px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.offer-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bm-gold);
  color: #1a1f33;
  font-weight: 700;
}

.offer-step h4 {
  margin-bottom: 0.3rem;
  font-size: 1.1rem;
}

footer a {
  color: var(--bm-gold);
}

@media (max-width: 768px) {
  .section-hero img {
    max-width: 320px;
  }

  .count-box {
    min-width: 80px;
  }
}
