/* Conteneur principal */
.carousel-wrapper {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 2rem auto;
  overflow: hidden;
}

/* Piste du carrousel (hauteur fixe 100px) */
.carousel-track {
  display: flex;
  height: 100px;
  transition: transform 0.5s ease;
}

/* Slides individuelles */
.carousel-slide {
  flex: 0 0 100%; /* 100% width on mobile */
  padding: 0 10px;
  box-sizing: border-box;
}

/* Contenu des slides (centrage parfait) */
.slide-content {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
  background: transparent; /* Fond transparent */
  border-radius: 8px;
}


/* Images (taille naturelle si <100px) */
.slide-content img {
  max-height: 100px;
  max-width: 100%;
  height: auto;
  width: auto;
  object-fit: contain;
}

/* Boutons de navigation */
.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  z-index: 10;
}

.carousel-button.prev { left: 10px; }
.carousel-button.next { right: 10px; }

/* Indicateurs */
.carousel-indicators {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
  margin: 0 5px;
  cursor: pointer;
}

.indicator.active {
  background: var(--main-color); /* Votre couleur principale */
}

/* RESPONSIVE: 3 images sur écran moyen, 4 sur grand écran */
@media (min-width: 600px) {
  .carousel-slide {
    flex: 0 0 calc(100% / 3);
  }
}

@media (min-width: 900px) {
  .carousel-slide {
    flex: 0 0 calc(100% / 4);
  }
}
