/*******************SLIDE1********************/
.slide1{
    width: 100vw;
  height: 80vh;
  margin-top: 20vh;
  display: flex;
  flex-direction: column;
  gap: 4vh;
  background: rgba(63, 98, 128, .7);
  background: url("../gallerie/contenuFibreOptique/_1.jpg")no-repeat;
  background-position: center;
  background-size: cover;
}

.slide1 .titre{
    display: flex;
    align-items: center;
    gap: 1vw;
    margin-top: 4vh;
}

.slide1 .titre hr{
    margin-left: 2vw;
    height: 2px;
    width: 20vw;
    background-color: white;
    border: none;
}

.slide1 .titre h1{
    font-size: 2.5vw;
    color: rgba(255,255,255, .9);
}

.slide1 .texte_image{
    display: flex;
    width: 100%;
}

.slide1 .texte_image .texte{
    flex: 1;
    background-color: rgba(255,255,255 ,.9);
}

.slide1 .texte_image .texte h2{
    margin-left: 2vw;
    font-size: 1.7vw;
    font-weight: 700;
    color: black;
}

.slide1 .texte_image .texte p{
    margin-left: 2vw;
    margin-right: 2vw;
    text-align: justify;
    font-size: 1.2vw;
    font-weight: 300;
    margin-top: 3vh;
    color: black;
}

.slide1 .texte_image .texte p span{
    font-weight: 700;
}








/*******************SLIDE2********************/
.slide2{
    width: 100vw;
    height: 30vh;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 5vh;
}



/*******************SLIDE3********************/
.slide3{
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    gap: 3vw;
    flex-wrap: wrap;
    margin-top: 5vh;
}

.slide3 .transition{
    font-size: 1.8vw;
}

.slide3 .transition p{
    font-size:1.3vw;
}

.slide3 .produit{
    width: 42.2vw;
    height: 45vh;
    display: flex;
    border: 1px solid rgb(255, 140, 0);
    border-top: 4px solid rgb(255, 140, 0);
}

.produit .image_produit{
    flex: 1;
    background-color: white;
    display: flex;
    flex-direction: column;
}

.produit .image_produit .image{
    width: 100%;
    flex: 1.5;
    position: relative;
}

.image_produit .image{
    overflow: hidden;
}

.image_produit .image div{
    width: 100%;
    height: 100%;
    position: absolute;
    left: 100%; /* Départ hors de la vue */
    transition: all 1s ease-in-out; /* Animation de transition fluide */
    opacity: 0;
}

.active {
    left: 0 !important; /* Image dans la vue */
    opacity: 1 !important; /* Afficher l'image */
}

.previous {
    left: -100% !important; /* Glissement vers la gauche */
    opacity: 0 !important; /* Cacher après le glissement */
}



.produit .image_produit h1{
    width: 100%;
    flex: 1;
    font-size: 1.7vw;
    text-align: center;
    display: flex;
  align-items: center;
  color: rgb(255, 140, 0);
}

.produit .description_produit{
    flex: 1.5;
    background-color: rgba(242, 242, 242, 0.541);
}

.produit .description_produit h1{
    font-size: 1.7vw;
    margin-left: 2vw;
    margin-top: 2vh;
    color: rgb(255, 140, 0);
}

.produit .description_produit p{
    font-size: 1.2vw;
    font-weight: 300;
    margin: 2vw;
    text-align: justify;
}






/************************VERSION MOBILE**************************/
@media (orientation: portrait) {

    .slide1{
        margin-top:7vh;
        height: 61vh;
        background: none;
    }

    

    .slide1 .titre hr{
        margin-left: 2vw;
        height: 2px;
        width: 20vw;
        background-color: #222;
        border: none;
    }
    
    .slide1 .titre h1 {
        font-size: 6vw;
        color: #222;
    }

    .slide1 .texte_image{
        height: 45vh;
    }

    .slide1 .texte_image .texte, .slide1 .texte_image .image{
        margin: 0px;
        border: none;
        height: 45vh;
    }
    
    .slide1 .texte_image .texte h2{
        font-size: 4.1vw;
        margin-right: 2vw;
    }
    
    .slide1 .texte_image p {
        font-size: 2.1vw !important;
        font-weight: 400 !important;
        width: 92%;
    }

    .slide1 .texte_image .image {
        background-size: cover !important;
    }

    .slide2{
        margin: 0;
    }

    .slide3{
        margin-top: 0;
    }

    .slide3 .transition {
        font-size: 2.8vw;
        font-weight: 400;
    }

    .slide3 .produit {
        width: 100%;
        height: 24vh;
        border: 2px solid rgb(255, 140, 0);
        border-top-width: 2px;
        border-top-style: solid;
        border-top-color: rgb(255, 140, 0);
        border-top: 5px solid rgb(255, 140, 0);
    }

    .produit .image_produit h1 {
        width: 95%;
        font-size: 3.7vw;
    }

    .produit .description_produit h1 {
        font-size: 3.7vw;
    }

    .produit .description_produit p {
        font-size: 2.7vw;
        font-weight: 400;
    }
}
