/**
 * Home Hero Block - Styles
 *
 * Styles spécifiques pour le carousel Hero Swiper
 * Complète Tailwind CSS pour les éléments Swiper natifs
 *
 * @package CM98
 * @version 1.0.0
 */

/* ============================================
   SECTION HERO - BASE
   ============================================ */

.home-hero-section {
  position: relative;
  width: 100%;
}

.home-hero-section .hero-swiper {
  width: 100%;
  height: 100%;
}

/* ============================================
   SLIDES
   ============================================ */

.home-hero-section .swiper-slide {
  position: relative;
  overflow: hidden;
  background-color: #1a1a1a;
}

/* Image de fond - animations subtiles */
.home-hero-section .swiper-slide img {
  transition:
    transform 8s ease-out,
    opacity 0.5s ease;
}

/* Effet Ken Burns léger sur la slide active */
.home-hero-section .swiper-slide-active img {
  transform: scale(1.05);
}

/* ============================================
   CONTENU DES SLIDES
   ============================================ */

.home-hero-section .swiper-slide-content {
  z-index: 10;
}

/* Animation d'entrée du contenu */
.home-hero-section .swiper-slide-content [data-swiper-parallax] {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.home-hero-section .swiper-slide-active .swiper-slide-content [data-swiper-parallax] {
  opacity: 1;
  transform: translateY(0);
}

/* Délais d'animation progressifs */
.home-hero-section .swiper-slide-active .swiper-slide-content h2 {
  transition-delay: 0.1s;
}

.home-hero-section .swiper-slide-active .swiper-slide-content p {
  transition-delay: 0.2s;
}

.home-hero-section .swiper-slide-active .swiper-slide-content a,
.home-hero-section .swiper-slide-active .swiper-slide-content div[data-swiper-parallax] {
  transition-delay: 0.3s;
}

/* ============================================
   PAGINATION
   ============================================ */

.home-hero-section .swiper-pagination {
  bottom: 20px !important;
  z-index: 20;
}

.home-hero-section .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 1;
  margin: 0 6px !important;
  transition:
    background-color 0.3s ease,
    transform 0.3s ease;
}

.home-hero-section .swiper-pagination-bullet:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.1);
}

.home-hero-section .swiper-pagination-bullet-active {
  background: #ffffff;
  transform: scale(1.2);
}

/* Focus visible pour accessibilité */
.home-hero-section .swiper-pagination-bullet:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

/* ============================================
   NAVIGATION (FLÈCHES)
   ============================================ */

.home-hero-section .swiper-button-prev,
.home-hero-section .swiper-button-next {
  width: 50px;
  height: 50px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  transition:
    background-color 0.3s ease,
    transform 0.3s ease,
    opacity 0.3s ease;
  z-index: 20;
}

.home-hero-section .swiper-button-prev:hover,
.home-hero-section .swiper-button-next:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: scale(1.1);
}

.home-hero-section .swiper-button-prev:after,
.home-hero-section .swiper-button-next:after {
  font-size: 18px;
  font-weight: bold;
  color: #ffffff;
}

/* Positionnement */
.home-hero-section .swiper-button-prev {
  left: 15px;
}

.home-hero-section .swiper-button-next {
  right: 15px;
}

/* Focus visible pour accessibilité */
.home-hero-section .swiper-button-prev:focus-visible,
.home-hero-section .swiper-button-next:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
  background: rgba(0, 0, 0, 0.7);
}

/* ============================================
   RESPONSIVE - TABLETTE
   ============================================ */

@media (min-width: 768px) {
  .home-hero-section .swiper-pagination {
    bottom: 30px !important;
  }

  .home-hero-section .swiper-pagination-bullet {
    width: 14px;
    height: 14px;
    margin: 0 8px !important;
  }

  .home-hero-section .swiper-button-prev,
  .home-hero-section .swiper-button-next {
    width: 60px;
    height: 60px;
  }

  .home-hero-section .swiper-button-prev:after,
  .home-hero-section .swiper-button-next:after {
    font-size: 22px;
  }

  .home-hero-section .swiper-button-prev {
    left: 30px;
  }

  .home-hero-section .swiper-button-next {
    right: 30px;
  }
}

/* ============================================
   RESPONSIVE - DESKTOP
   ============================================ */

@media (min-width: 1024px) {
  .home-hero-section .swiper-pagination {
    bottom: 40px !important;
  }

  .home-hero-section .swiper-button-prev {
    left: 50px;
  }

  .home-hero-section .swiper-button-next {
    right: 50px;
  }
}

/* ============================================
   EFFET FADE - AJUSTEMENTS
   ============================================ */

.home-hero-section .swiper-fade .swiper-slide {
  pointer-events: none;
}

.home-hero-section .swiper-fade .swiper-slide-active {
  pointer-events: auto;
}

/* ============================================
   REDUCED MOTION - ACCESSIBILITÉ
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  .home-hero-section .swiper-slide img {
    transition: none;
    transform: none !important;
  }

  .home-hero-section .swiper-slide-content [data-swiper-parallax] {
    transition: none;
    opacity: 1;
    transform: none;
  }

  .home-hero-section .swiper-pagination-bullet,
  .home-hero-section .swiper-button-prev,
  .home-hero-section .swiper-button-next {
    transition: none;
  }
}

/* ============================================
   ÉTAT DE CHARGEMENT
   ============================================ */

.home-hero-section .hero-swiper:not(.swiper-initialized) {
  opacity: 0.5;
}

.home-hero-section .hero-swiper.swiper-initialized {
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* ============================================
   PLACEHOLDER ÉDITEUR GUTENBERG
   ============================================ */

.acf-placeholder {
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed #ccc;
  border-radius: 8px;
}

.acf-block-preview {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}
