@charset "utf-8";
/* CSS Document diaporama 5 images delais 8s */

.diaporama_5 {
  position: relative;
  /*width: 600px;
  height: 225px;*/
  overflow: hidden;
}

.diaporama_5 img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Adapte les images au format 600x225 sans les déformer */
  opacity: 0;
  animation: fondu_5 40s infinite; /* Cycle total de 40 secondes (5 x 8s) */
}

/* Décalage de 8 secondes entre chaque image */
.diaporama_5 img:nth-child(1) {
  animation-delay: 0s;
}

.diaporama_5 img:nth-child(2) {
  animation-delay: 8s;
}

.diaporama_5 img:nth-child(3) {
  animation-delay: 16s;
}

.diaporama_5 img:nth-child(4) {
  animation-delay: 24s;
}

.diaporama_5 img:nth-child(5) {
  animation-delay: 32s;
}

/* Définition de l'animation sur un cycle de 40s */
@keyframes fondu_5 {
  0% { opacity: 0; }
  2.5% { opacity: 1; }  /* Apparition en fondu (1 seconde) */
  20% { opacity: 1; }   /* Reste visible jusqu'à la 8ème seconde */
  22.5% { opacity: 0; } /* Disparition en fondu (1 seconde) */
  100% { opacity: 0; }  /* Reste cachée pendant les 32s des 4 autres images */
}