/* ==========================================================================
   GSAP — états initiaux des éléments animés
   ========================================================================== */

/* Masqués avant le JS (évite le flash). GSAP (fromTo) prend ensuite le relais.
   Concerne les reveals au scroll [data-anim] ET au chargement [data-anim-load]. */
.page-home [data-anim],
.page-home [data-anim-load] {
  opacity: 0;
  will-change: transform, opacity;
}

/* Sécurité : si le JS ne tourne pas, on n'a pas de garde reduced-motion ici
   car le JS gère lui-même ce cas (fallback revealAll + fondus conservés). */

/* ==========================================================================
   Hero section
   ========================================================================== */

.hero-section {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background-color: #000;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ====== LIEU SECTION ====== */

.discover-section {
  padding: 100px 0 24px;
  background: white;
  position: relative;
  will-change: transform;
}

.discover-section .discover-event-bloc {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
}

.discover-section .discover-content {
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.discover-section .discover-title {
  font-size: 13px;
  font-family: "SKPHeadlines Bold", sans-serif;
  text-transform: uppercase;
  margin: 0 0 6;
}

.discover-section svg {
  width: 24px;
  height: 24px;
  fill: white;
}

.discover-section .container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  gap: 24px;
}

.discover-section .left {
  width: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 600px;
  overflow: hidden;
  transition: all 0.65s ease;
}

.discover-section .left:hover {
  border-radius: 12px;
}

.discover-section .left:hover img {
  transform: scale(1.05);
  filter: blur(3px);
}

.discover-section .left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition:
    transform 0.65s ease,
    filter 0.65s ease;
  will-change: transform, filter;
}

.discover-section .left .cta-inscription {
  position: absolute;
  z-index: 1;
  font-size: 16px;
  letter-spacing: 2px;
}

.discover-section .right {
  width: 50%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}

.discover-section .right .discover-title {
  font-size: 32px;
  font-family: "SKPHeadlines Bold", sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0;
}

.discover-section .right .discover-date,
.discover-section .right .discover-price {
  position: relative;
  margin: 0;
  width: fit-content;
  overflow: hidden;
}

.discover-section .right .discover-date {
  font-size: 16px;
  font-family: "SKPHeadlines Bold", sans-serif;
  text-transform: uppercase;
}

.discover-section .right .discover-date .reveal-bg {
  background-color: var(--sk-primary);
}

.discover-section .right .discover-date .reveal-text {
  display: block;
  padding: 8px 16px;
  color: #fff;
}

.discover-section .right .discover-price {
  font-size: 32px;
  font-family: "SKPHeadlines", sans-serif;
  color: var(--text-color);
}

.discover-section .right .discover-price .reveal-bg {
  background-color: #f5f5f5;
}

.discover-section .right .discover-price .reveal-text {
  display: block;
  padding: 16px 16px 16px 24px;
}

.discover-section .reveal-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  transform: scaleX(0);
  transform-origin: left center;
}

.discover-section .reveal-text {
  position: relative;
  z-index: 1;
  opacity: 0;
}

.discover-section .right .discover-title .word {
  display: inline-block;
  white-space: nowrap;
}

.discover-section .right .discover-title .word-space {
  display: inline-block;
  width: 0.35em;
}

.discover-section .right .discover-title .char,
.discover-section .right .discover-title .word-space {
  display: inline-block;
  opacity: 0;
}

.discover-section .right .discover-price:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 8px;
  height: 100%;
  background-color: #e7e7e7;
}

.discover-section .right .discover-price span {
  font-family: "SKPHeadlines Bold", sans-serif;
}

.discover-section .right .discover-price sup {
  font-size: 12px;
}

.discover-section .right .cta-inscription {
  font-size: 18px;
  width: fit-content;
  margin: 0;
}

@media screen and (max-width: 1000px) {
  .discover-section .container {
    flex-direction: column-reverse;
    padding: 0 32px;
  }

  .discover-section .left,
  .discover-section .right {
    width: 100%;
  }

  .discover-section .left {
    height: 400px;
  }

  .discover-section .right {
    align-items: center;
    text-align: center;
  }
}
