/* L'image affichée */
.slideshow {
  position: relative;
  aspect-ratio: 16 / 9; /* exemple de ratio : 3 / 2, 4 / 3, 1 / 1... */
  background-color:#;
  border-radius: 0px;
  overflow: hidden;
}

/* Toutes les images sont superposées et invisibles */
.slideshow img {
  position: absolute;
  inset: 0; /* top, right, bottom, left = 0 */
  width: 100%;
  height: 100%;
  object-fit: contain; /* « cover » pour remplir le cadre (couper une partie de l'image) */
  opacity: 0;
  transition: opacity 0.8s ease;  /* Délai de transition */
}
.slideshow img.active {
  opacity: 1;
}
.fleche {
  position: absolute;
  top: 89%;
  transform: translateY(-1550%);
  z-index: 2;
  width: 30px;
  height: 30px;
  border: none;
  background-color: rgba(0, 0, 0, 0);
  color: #fff;
  font-size: 80%;
  cursor: pointer;
}
.fleche:hover, .fleche:focus-visible {
  background-color: var(--couleur-accent);
}
.fleche-precedente { 
  left: 60px; 
}
.fleche-suivante { 
  right: 60px; 
}

.slideshow-infos {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 5px 10px;
}
.legende,.compteur {
  margin: 0;
}
.compteur {
  color: var(--couleur-texte-doux);
}