.swiper {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  overflow: hidden;
  
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.swiper-slide {
  width: 100%;
  height: auto;
  position: relative;
}

.swiper-slide picture,
.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background-color: #f0f0f0; /* Couleur de fond pendant le chargement */
}

/* Debug pour les images qui ne s'affichent pas */
.swiper-slide {
  min-height: 200px; /* Hauteur minimale pour voir l'emplacement du slide */
}
    
.swiper-button-next,
.swiper-button-prev {
  color: white !important;
  background-color: rgba(0, 0, 0, 0);
  width: 40px ;  
  height: 40px ;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  transition: background 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 32px !important;  
}




.swiper-button-next:hover,
.swiper-button-prev:hover {
  background-color: rgba(0, 0, 0, 0);
}

.swiper-pagination {
  bottom: 10px !important;
}

.swiper-pagination-bullet {
  width: 12px !important;
  height: 12px !important;
  background: #686868 ; 
  opacity: 1;
  margin: 0 6px !important; 
  transition: all 0.3s ease;
  border-radius: 50%;
}

.swiper-pagination-bullet-active {
  background: #ffffff !important; 
  width: 12px;
  height: 12px;
}

    
.swiper-slide:focus,
.swiper-slide:focus-visible {
  outline: none !important;
}
.swiper,
.swiper-slide {
  user-select: none;
  -webkit-user-drag: none;
}

 .swiper-slide {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  box-sizing: border-box;
}

.swiper-wrapper {
  gap: 0 !important;
}
  
  
.swiper-slide {
  position: relative;
  overflow: hidden;
}

.slide-link {
  display: block;
  position: relative;
}

.slide-link img {
  width: 100%;
  display: block;
}

.slide-caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  z-index: 2;
  padding: 1rem 2rem;
  background: rgba(0, 0, 0, 0.4); 
  border-radius: 12px;
  max-width: 90%;
}


.slide-caption h2 {
  font-size: 2rem;
  margin: 0 0 0.5rem;
  font-weight: bold;
}
.slide-caption p {
  font-size: 1rem;
  margin: 0;
}


@media (max-width: 576px) {
  .slide-caption h2 {
    font-size: 1.6rem;
  }
  .slide-caption p {
    font-size: 1.2rem;
  }
}

/* Style pour le placeholder d'image */
.swiper-lazy[src^="data:"] {
  background-color: #f0f0f0;
  min-height: 200px;
}

/* Préchargeur supprimé car il peut causer des problèmes */
.swiper-lazy-preloader {
  display: none;
}
