body{
    background-color: #faf8f6;
}

/**************************************VIDEO PRINCIPALE****************************************/
.container_video{
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}



.intermediaire{
    width: 80vw;
    height: 85vh;
    margin-left: 20vw;
    margin-top: 10vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.intermediaire video{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

.intermediaire > div{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 56%;
    gap: 1vw;
}

.intermediaire > div h1{
    text-align: center;
    border: .1pt solid white;
    border-radius: 30px;
    background-color: rgba(0, 0, 0, .1);
    color: white;
    font-size: 1.2vw;
    font-weight: 200;
    text-shadow: 0 0 3px rgba(0, 0, 0, .5);
    text-transform: uppercase;
    padding: 10px;
    width: 45%;
}

.scroll_agence{
    position: absolute;
    bottom: 0;
    right: 2vw;
    font-weight: 100;
    font-size: 2vw;
}




/**************************************RESTE DU CONTENU****************************************/

.slides{
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
}

/**************************************SLIDE 0 PORTRAIT****************************************/
.slide0{
    width: 100vw;
    height: 100vh;
    background: none;
}

.scroll{
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    position: absolute;
    right: -40%;
    top: 85vh;
    gap: 10px;
    width: 12vw;
}

.scroll h1{
    font-size: 3vw;
    font-weight: 400;
}

.cercle{
    background: white;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 3vw;
  height: 3vw;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
}

@keyframes arrow {
    0%{
        transform: translateY(-80%);
    }

    100%{
        transform: translateY(200%);
    }
}

.cercle p{
    color: #111;
  font-size: 2vw;
  font-weight: bolder;
  padding-bottom: 5px;
  animation: arrow 2s infinite;
}



/**************************************SLIDE 1 PORTRAIT****************************************/
.slide1{
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #faf8f6;
}

.slide1 .image_gauche, .slide1 .image_droite{
    height: 100%;
    flex: 1;
    position: relative;
}

.slide1 img{
    height: 100%;
    width: 90%;
}

.image_gauche img{
    position: absolute;
    top: 0;
    left: 0;
}

.image_droite img{
    position: absolute;
    top: 0;
    right: 0;
}


.slide1 .textes{
    height: 100%;
    flex: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 8vh;
}

.slide1 .textes h1{
    font-size: 6vw;
}

.slide1 .textes p{
    font-size: 1.1vw;
    font-weight: 200;
    width: 95%;
    margin-left: auto;
    margin-right: auto;
    line-height: 3vh;
    text-align: center;
}








/**************************************SLIDE 2 TEXTE + PHOTO DEFILANTE****************************************/
.slide2{
    width: 100vw;
    height: 100vh;
    background-color: #faf8f6;
    position: relative;
    display: flex;
    gap: 3vw;
    justify-content: center;
    align-items: center;
    padding-top: 12vh;
}

.slide2 .texte, .slide2 .images{
    width: 40vw;
    height: 90vh;
    position: relative;
}

.slide2 .texte{
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10vh;
}

.slide2 .texte h1{
    font-size: 2.5vw;
    align-self: center;
}

.slide2 .texte p{
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.2vw;
    font-weight: 200;
    text-align: justify;
}

.slide2 .notre{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 3vw;
    font-weight: 300;
    position: absolute;
    top: 3vh;
    left: 38vw;
}

.slide2 .mission{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 3vw;
    font-weight: 300;
    position: absolute;
    bottom: 3vh;
    right: 38vw;
}

.slide2 .images{
    overflow: hidden;
}

.slide2 .images div{
    width: 40vw;
    height: 90vh;
    position: absolute;
    left: 100%; /* Départ hors de la vue */
    transition: all 1s ease-in-out; /* Animation de transition fluide */
    opacity: 0;
}

.slide2 .images div:nth-child(1){
    background: url("../gallerie/photos/brute_1.webp") no-repeat;
    background-position: center;
    background-size: cover;
}

.slide2 .images div:nth-child(2){
    background: url("../gallerie/photos/brute_2.webp") no-repeat;
    background-position: center;
    background-size: cover;
}

.slide2 .images div:nth-child(3){
    background: url("../gallerie/photos/brute_3.webp") no-repeat;
    background-position: center;
    background-size: cover;
}

.slide2 .images div:nth-child(4){
    background: url("../gallerie/photos/brute_4.webp") no-repeat;
    background-position: center;
    background-size: cover;
}

.slide2 .images div:nth-child(5){
    background: url("../gallerie/photos/brute_5.webp") no-repeat;
    background-position: center;
    background-size: cover;
}

.slide2 .images div:nth-child(6){
    background: url("../gallerie/photos/brute_6.webp") no-repeat;
    background-position: center;
    background-size: cover;
}

.slide2 .images div:nth-child(7){
    background: url("../gallerie/photos/brute_8.webp") no-repeat;
    background-position: center;
    background-size: cover;
}

.slide2 .images div:nth-child(8){
    background: url("../gallerie/photos/brute_9.webp") no-repeat;
    background-position: center;
    background-size: cover;
}







@media (orientation: portrait) {
    
    .deux_traits_menu_mobile{
        border-color: darkgray;
    }

    .intermediaire{
        width: 100vw;
        margin-left: 0;
        height: 85vh;
        margin-top: 8vh;
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
    }
    

    .intermediaire > div{
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        width: 100vw;
        gap: 102px;
    }
    
    .intermediaire > div h1{
        text-align: center;
        border: 2pt solid white;
        border-radius: 30px;
        background-color: rgba(0, 0, 0, .1);
        color: white;
        font-size: 1.2vw;
        font-weight: 200;
        text-shadow: 0 0 3px rgba(0, 0, 0, .5);
        text-transform: uppercase;
        padding: 10px;
        width: 25%;
    }
    
    .container_video{
        display: none;
    }
    
    .slide0{
        display: none;
    }

    .slide1{
        display: none !important;
    }

    .slide1_mobile{
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin-bottom: 6vh;
    }

    .slide1_mobile > div:nth-child(1){
        margin-top: 8vh;
        width: 100vw;
        height: 40vh;
        background: url("../gallerie/photos/DSC01620.webp") no-repeat;
        background-position: center;
        background-size: contain;
    }

    .slide1_mobile .textes{
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3vh;
    }

    .slide1_mobile .textes h1{
        font-size: 9vw !important;
        width: 100vw !important;
        text-align: center;
    }

    .slide1_mobile .textes p{
        font-size: 3vw !important;
        text-align: justify !important;
        width: 90% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .intermediaire > div{
        display: none !important;
    }

    .slide2{
        flex-direction: column-reverse;
        gap: 2vh;
        padding: 0 !important;
        width: 100vw !important;
        background-color: #faf8f6;
    }

    .slide2 .images{
        width: 100vw !important;
        height: 35vh !important;
    }

    .slide2 .images > div{
        width: 100% !important;
        height: 100% !important;
    }

    .slide2 .images div:nth-child(6){
        background-position-y: -7vh !important;
    }

    .slide2 h1{
        font-size: 9vw !important;
        width: 100vw !important;
    text-align: center;
        margin-top: 6vh;
    }

    .slide2 .texte{
        width: 100vw;
        height: 74vh !important;
        gap: 3vh !important;
        justify-content:normal;
    }

    .slide2 p{
        font-size: 3vw !important;
    }

    .scroll_agence{
        display:none;
    }

}



