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