/* ===========================
   CONTAINER DU CAROUSEL
=========================== */
.carousel-container {
  position: relative;
  width: calc(100% - 144px);
  margin: 0 auto;
  overflow: hidden;
}

.carousel {
  display: flex;
  transition: transform 0.5s ease-in-out;
  will-change: transform;
}

.carousel-item {
  flex: 0 0 100%;
  max-width: 100%;
  flex-shrink: 0;
  padding: 0;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ===========================
   CONTENU INTERNE
=========================== */
.carousel-item a.lien-carousel {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

/* ===========================
   IMAGE
=========================== */
.carousel-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  object-fit: cover;
}

/* ===========================
   BOUTONS DE NAVIGATION
=========================== */
.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
}

.carousel-button img {
  width: 18px;
  height: 18px;
}

.carousel-button.prev {
  left: 10px;
}

.carousel-button.next {
  right: 10px;  
}

.carousel-button.next img {
  transform: rotate(180deg);
}

@media (max-width: 768px) {
  .carousel-container {
    width: calc(100% - 40px);
  }
}