/* ============================================================
   CARROUSEL D'IMAGES
   ============================================================ */

.slideshow {
  position: relative;
  width: 100%;
  max-width: 700px;
  margin: 0 auto 2rem;
  overflow: hidden;
  background: #000;
  border-radius: 2px;
  /* Ratio fixe 7:4 — 700×400 sur grand écran */
  aspect-ratio: 7 / 4;
}

/* Conteneur des slides */
.slideshow__track {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Slides : tous empilés, invisible par défaut */
.slideshow__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.7s ease;
}

/* Slide actif : visible, au-dessus des autres */
.slideshow__slide.is-active {
  opacity: 1;
  z-index: 1;
}

.slideshow__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Boutons précédent / suivant — dégradé pleine hauteur */
.slideshow__btn {
  position: absolute;
  top: 0;
  height: 100%;
  width: 64px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.55);
  z-index: 10;
  transition: color 0.2s ease, background 0.2s ease;
  padding: 0;
}

.slideshow__btn--prev {
  left: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.22), transparent);
}

.slideshow__btn--next {
  right: 0;
  background: linear-gradient(to left, rgba(0, 0, 0, 0.22), transparent);
}

.slideshow__btn .material-symbols-outlined {
  font-size: 2.5rem;
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 48;
}

.slideshow__btn:hover {
  color: rgba(255, 255, 255, 0.9);
}

.slideshow__btn--prev:hover {
  background: linear-gradient(to right, rgba(0, 0, 0, 0.38), transparent);
}

.slideshow__btn--next:hover {
  background: linear-gradient(to left, rgba(0, 0, 0, 0.38), transparent);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .slideshow {
    max-width: 100%;
    border-radius: 0;
  }

  .slideshow__btn {
    width: 44px;
  }

  .slideshow__btn .material-symbols-outlined {
    font-size: 1.8rem;
  }
}
