/**
 * Styles pour la page d'accueil (front-page.php)
 * Classes spécifiques à la homepage uniquement
 */

/* ========== HERO SECTION ========== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-white);
  position: relative;
  padding-top: 80px;
  overflow: hidden;
  /* Fallback background si la vidéo ne charge pas */
  background: linear-gradient(rgba(43, 45, 66, 0.7), rgba(43, 45, 66, 0.7)),
    #2b2d42;
}

/* Si erreur vidéo, afficher l'image de fond */
.hero-section.video-error {
  background: linear-gradient(rgba(43, 45, 66, 0.7), rgba(43, 45, 66, 0.7)),
    url("../assets/images/hero-bg.jpg") center/cover no-repeat;
}

/* Vidéo d'arrière-plan */
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  display: block;
  opacity: 1;
}

/* Overlay sombre pour améliorer la lisibilité du texte */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(43, 45, 66, 0.6), rgba(43, 45, 66, 0.7));
  z-index: 2;
}

.hero-content {
  max-width: 800px;
  margin-bottom: 10rem;
  padding: 2rem;
  position: relative;
  z-index: 3;
}

.hero-title {
  font-size: clamp(2rem, 7vw, 4rem);
  font-weight: bolder;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  -webkit-text-stroke: 4px white;
}

.hero-subtitle {
  margin-top: 2rem;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  margin-bottom: 2rem;
  font-weight: 300;
  letter-spacing: 0.05em;
}

.hover-orange:hover {
  color: #ff914d;
  transition: color 0.5s ease;
}

.hover-blue:hover {
  color: #4ec5f1;
  transition: color 0.5s ease;
}

.hover-green:hover {
  color: #8bc34a;
  transition: color 0.5s ease;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-white);
  color: var(--color-dark);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.hero-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

.hero-wave {
  margin-bottom: -5rem;
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 150px;
  background: var(--color-white);
  clip-path: ellipse(70% 100% at 50% 100%);
  z-index: 4;
}

.outline {
  color: transparent;
  -webkit-text-stroke: 1px white;
}

/* ========== EVENTS SECTION ========== */
.event-section {
  text-align: center;
  padding: var(--spacing-xl) 0;
  margin-bottom: 10rem;
}

.event-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-lg);
  color: var(--color-dark);
}

/* ========== PARTNER WAVE ========== */
.partner-wave {
  position: relative;
  width: 100%;
  line-height: 0;
  margin: 0;
  padding: 0;
  background: var(--color-white);
  z-index: 5;
  overflow: hidden;
  height: auto;
}

.partner-wave img {
  margin-bottom: -2rem;
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center top;
}

/* ========== PARTNERS SECTION ========== */
.partners-section {
  padding: var(--spacing-xl) 0;
  background: var(--color-primary);
  text-align: center;
  overflow: hidden;
  margin-top: -1px;
}

.partners-section h2 {
  color: var(--color-white);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-lg);
}

/* Carrousel wrapper */
.partners-carousel-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 2rem 0;
}

.partners-carousel-wrapper::before,
.partners-carousel-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  width: 150px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.partners-carousel-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--color-primary), transparent);
}

.partners-carousel-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--color-primary), transparent);
}

/* Carrousel animé */
.partners-carousel {
  display: flex;
  gap: 4rem;
  animation: scroll-left 30s linear infinite;
  width: max-content;
}

.partners-carousel:hover {
  animation-play-state: paused;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.partner-logo {
  flex-shrink: 0;
  width: 200px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  filter: grayscale(100%);
  opacity: 0.7;
  padding: 1rem;
}

.partner-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.partner-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}

.partner-logo:hover img {
  transform: scale(1.1);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .hero-video {
    object-fit: cover;
  }

  .hero-content {
    padding: 1rem;
  }

  .partner-logo {
    width: 150px;
    height: 100px;
  }

  .partners-carousel {
    gap: 3rem;
  }

  .partner-wave {
    transform: scaleY(0.7);
    transform-origin: top;
    margin-bottom: -10%;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .partner-logo {
    width: 120px;
    height: 80px;
  }

  .partners-carousel {
    gap: 2rem;
    animation: scroll-left 20s linear infinite;
  }

  .partners-carousel-wrapper::before,
  .partners-carousel-wrapper::after {
    width: 50px;
  }

  .partner-wave {
    margin-bottom: -20%;
    transform: scaleY(0.5);
    transform-origin: top;
  }

  .partner-wave img {
    margin-bottom: 0px;
  }
}
