.custom-slider { display: none; }

.slide-container {
  max-width: 100%;
  position: relative;
  margin: auto;
  contain: content;
}

.prev, .next {
  cursor: pointer;
  position: absolute;        
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: white;
  font-size: 50px;
  background-color: rgba(0,0,0,0);
  transition: background-color 0.6s ease;
  z-index: 1;
}

.prev{ left: 50px; }
.next { right: 50px; }
.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.5);
}
.slide-text {
  position: absolute;
  color: #ffffff;
  font-size: 15px;
  padding: 10px;
  bottom: 15px;
  width: 100%;
  text-align: center;
}
.slide-index {
  color: #ffffff;
  font-size: 15px;
  padding: 15px;
  position: absolute;
  top: 0;
}

.slide-img{ 
  max-width: 100%x;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  object-position: center;
 }

.slide-dot{ text-align: center; }

.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #999999;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active, .dot:hover { background-color: #111111; }

.fade {
  animation-name: fade;
  animation-duration: 1s;
}
@keyframes fade {
  from {opacity: 0} 
  to {opacity: 1}
}







@media (max-width: 900px) {
  .slide-container {
    justify-content: center; /* Centrer les éléments horizontalement */
    text-align: center; /* Centrer le texte à l'intérieur du conteneur */
  }

  .prev, .next {
    top: 50%; /* Déplacer les boutons verticalement au centre */
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    /* Autres styles */
  }

  .prev {
    left: 10px; /* Ajuster la position du bouton prev */
  }

  .next {
    right: 10px; /* Ajuster la position du bouton next */
  }

  .slide-img {
    max-width: 100%; /* Ajuster la largeur maximale de l'image pour qu'elle ne dépasse pas le conteneur */
    height: auto; /* Pour maintenir le ratio hauteur-largeur de l'image */
    /* Autres styles */
  }
}
