/* Conteneur plein écran */
.slideshow {
  position: relative;
  width: 100vw;
  height: 80vh;
  overflow: hidden;
  text-align: center;
}

/* le contenu fixe sur toutes les slides */
.texte {
  position: absolute;
  top: 30px; /* espace entre top de la fenêtre et le début de la boite texte (donc du menu qui apparaît en premier dans cette boite) */
  left: 50%;
  transform: translate(-50%);
  width: 100%;
  max-width: 1500px;
  /*min-width: 755px;*/
  z-index: 10;
  text-align: center;
  color: white;
  /*text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
  font-family: sans-serif;*/
  padding: 0px; /* vertical horizontal */
}

/* Style commun à toutes les slides */
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1);
  animation: fadeZoom 40s linear infinite;  
}

/* Slides avec image + décalage dans l'animation */
.slide1 {
  background-image: url('/img/image1.jpg');
  animation-delay: 0s;
}

.slide2 {
  background-image: url('/img/image2.jpg');
  animation-delay: 5s;
}

.slide3 {
  background-image: url('/img/image3.jpg');
  animation-delay: 10s;
}

.slide4 {
  background-image: url('/img/image4.jpg');
  animation-delay: 15s;
}

.slide5 {
  background-image: url('/img/image5.jpg');
  animation-delay: 20s;
}

.slide6 {
  background-image: url('/img/image6.jpg');
  animation-delay: 25s;
}

.slide7 {
  background-image: url('/img/image7.jpg');
  animation-delay: 30s;
}

.slide8 {
  background-image: url('/img/image1.jpg');
  animation-delay: 35s;
}



/* Animation combinée */
@keyframes fadeZoom {
  0% {
    opacity: 0;
    transform: scale(1);
  }
  5% {
    opacity: 1;
    transform: scale(1.05);
  }
  33% {
    opacity: 1;
    transform: scale(1.33);
  }
  38% {
    opacity: 0;
    transform: scale(1.38);
  }
  100% {
    opacity: 0;
    transform: scale(1);
  }
}