.carousel {
  margin: 0;
  width: 100%;
  height: 80vh; /* Prend toute la hauteur de l'écran */
  position: relative;
  overflow: hidden;
  padding-top: 10px;
}


.carousel ul {
  margin: 0;
  padding: 0;
  list-style: none;
  height: 100%;
}

.slide {
  position: absolute;
  inset: 0; /* Couvre tout l'espace disponible */
  opacity: 0;
  transition: opacity 500ms ease-in-out;
}

.slide > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.images-slider{
  margin: 0;
  padding: 0;
}

.slide[data-active] {
  opacity: 1;
  z-index: 1;
  transition-delay: 0ms;
}

/* Boutons de navigation améliorés */
.carousel button {
  position: absolute;
  z-index: 2;
  background: rgba(0, 0, 0, 0.3);
  border: none;
  font-size: 2.5rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.carousel button:hover, 
.carousel button:focus {
  color: white;
  background: rgba(0, 0, 0, 0.5);
  transform: translateY(-50%) scale(1.1);
}

.carousel-button-next {
  right: 2rem;
}

.carousel-button-prev {
  left: 2rem;
}

/* Indicateurs de diapositives */
.carousel-indicators {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 0.5rem;
}

.carousel-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-indicator.active {
  background: white;
  transform: scale(1.2);
}

/* Responsive */
@media (max-width: 768px) {
  .carousel button {
    width: 50px;
    height: 50px;
    font-size: 2rem;
  }
  
  .carousel-button-next {
    right: 1rem;
  }
  
  .carousel-button-prev {
    left: 1rem;
  }
  
  .carousel-indicators {
    bottom: 1rem;
  }
}