.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden; /* Cache les débordements de la vidéo */
  background-size: cover; /* Assure que l'image couvre tout le conteneur */
  background-position: center; /* Centre l'image */
  background-repeat: no-repeat; /* Évite la répétition de l'image si elle est petite */
	z-index: -1;
}

.video-foreground {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* Centre la vidéo */
  width: 100vw; /* Utilise 100% de la largeur de la fenêtre */
  height: 56.25vw; /* Ratio 16:9 (9 / 16 = 0.5625) par rapport à la largeur */
  min-width: 100%;
  min-height: 100%; /* S'assure que la vidéo couvre toujours tout */
}

/* Si la hauteur de la fenêtre est trop petite pour le ratio 16:9, on ajuste la largeur */
@media (max-aspect-ratio: 16/9) {
  .video-foreground {
    height: 100vh;
    width: 177.77777778vh; /* Ratio 16:9 par rapport à la hauteur */
  }
}
.video-foreground iframe {
  background-color: #00a859; /* ou white (#fff), ou le vert de ton image */
}
.video-foreground iframe,
#cover-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#cover-frame {
  display: none;
  z-index: 10;
}
.title-swiper {
    display: flex;
    flex-flow: column;
    min-height: 1px;
    /* background-image: url('../images/background-home-lulopie.png'); */
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}
.image-container {
    display: flex;
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    width: 300%; /* 3 images, 100% pour chaque image */
    height: 100%;
    animation: scrollImages 20s ease-in-out infinite; /* Réglez la durée de défilement selon vos besoins */
}

.image-container img {
    width: 100%;
    height: auto;
    object-fit: cover;
}
.texte a {
	color: #fff !important;
}
/* .gradient {
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	background: #131313;
	background: linear-gradient(180deg,rgba(19, 19, 19, 0) 0%,  rgba(19, 19, 19, 1) 100%);
} */


@keyframes scrollImages {
    0%, 16.66% {
        transform: translateX(0); /* Image 1 */
    }
    25%, 41.66% {
        transform: translateX(-33.33%); /* Image 2 */
    }
    50%, 66.66% {
        transform: translateX(-66.67%); /* Image 3 */
    }
    75%, 91.66% {
        transform: translateX(-33.33%); /* Retour à l'image 2 */
    }
    100% {
        transform: translateX(0); /* Retour à l'image 1 */
    }
}

.texte {
    display: flex;
    flex-flow: column;
    /* background-image: url(../images/Background_Home.jpg); */
	background-size: 60%;
	background-position: bottom;
    box-sizing: border-box;
    transition: transform 0.4s ease-in-out;
}
.texte .logo {
    width: 200px;
    margin-left: auto;
    margin-right: auto;
}
.title-swiper h1 {
    width: 55%;
    margin: 0 auto;
    color: #ffffff;
    text-align: center;
}
.title-swiper p {
    color: #e9f2f8;
    text-align: center;
    width: 70%;
    max-width: 900px;
    margin: 14px auto;
}

@media screen and (max-width: 1069px) {

.title-swiper {
    flex-flow: column;
    position: relative;
    box-sizing: border-box;
    min-height: auto;
    background-position: center;
}
.title-swiper h1 {
    width: 90%;
    margin-top: 30px;
}
.title-swiper p {
    width: 90%;
    margin: 10px auto 0 auto;
}
.texte {
    box-sizing: border-box;
    flex-flow: column;
    justify-content: center;
    min-height: auto;
    /* padding: 4vw 0vw 6vw 0vw; */
}
.image-mob {
    display: flex;
    overflow: hidden;
    width: 100%;
    height: 280px;
}
.image-mob img {
    width: 170%;
    height: 170%;
    transform: scale(2);
    transform-origin: right;
}
.image-container {
    top: auto;
    bottom: 0;
    height: 50%;
    animation: scrollImages 12s ease-in-out infinite; /* Réglez la durée de défilement selon vos besoins */
}
.image-container img {
    width: 100vw;
}

   
}

@media screen and (min-width: 470px) {
    .image-mob {

    height: 370px;
}
}

@media screen and (min-width: 700px) {
    
    .texte {
        width: 100%;
    }
    .image-mob {
        display: none;
    }
    .image-container {
        height: 100%;
        animation: scrollImages 20s ease-in-out infinite; /* Réglez la durée de défilement selon vos besoins */
    }
    

}

@media screen and (min-width: 750px) {
    .image-mob {

    height: 500px;
}

}

@media screen and (min-width: 1070px) {
.image-mob {
    display: none;
}
.title-swiper {
    height: calc(100vh - 60px);
    min-height: 600px;
    max-height: 700px;
}
.texte {
    flex-flow: column;
    justify-content: center;
    align-items: center;
    height: calc(100vh - 60px);
    min-height: 600px;
    max-height: 700px;
    box-sizing: border-box;
}
.title-swiper2 {
    height: 72.5vh; /* Ajustez selon vos besoins */
    width: 100%;
    background: rgb(122, 122, 122);
}
}

@media screen and (min-width: 1500px) {
    .title-swiper {
        height: calc(100vh - 60px);
        min-height: 800px;
        max-height: 900px;
    }
    .texte {
        flex-flow: column;
        justify-content: center;
        align-items: center;
        height: calc(100vh - 60px);
        min-height: 800px;
        max-height: 900px;
        box-sizing: border-box;
    }
}


@media screen and (min-width: 2200px) {
    .texte {
        width: 2200px;
    }
}