
h2, h3{
    margin-bottom: 3vw;
    margin-top: 1vw;
}   


.halfscreen_img{
    position: relative;
    width: 100%;
    height: 400px;
    background: url('/img/notre-projet/hero-NotreProjet.png') no-repeat;
    background-position: 50% 50%;
    background-size: 100% auto;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    z-index: -2;
}

.halfscreen_img::before{
    position: absolute;
    content: '';
    width: 100%;
    height: 100%;
    background: rgb(0, 0, 0, 0.5);
    z-index: -1;
}

/* Bridge section */

.Bridge{
    width: 100%;
    background: url(/img/notre-projet/Background-bridge.png) bottom center no-repeat;
    background-size:  100% auto;
}

.Bridge-container{
    width: 60%;
    margin: auto;
    text-align: justify;
    padding: 40px;
    padding-bottom:20vw ;
}

.Bridge h2 {
    margin-bottom: 4vw;
    margin-top: 3vw;
}

/* Partenaires */


.partenaires-section{
    background: var(--vert);
    text-align: justify;
}

.partenaires-section .leftdiv {
    width: 50%;
    position: relative;
    
    padding: 20px;
}

.partenaires-section .rightdiv{
    width: 50%;
    padding: 80px 40px;
} 

.partenaires {
    height: 100%;
    width: 80%;
    background: url(/img/notre-projet/partenaires.webp) center 30% /cover;
    clip-path: polygon(0 0, 100% 0, 70% 100%, 0 100%);
}

.partenaires + img {
   position: absolute; 
   right: 30px;
   bottom: 20%;
    width: 30%;
}

/* Produit */

.produit .verticalFlexContainer{
    width: 80%;
}

.produit .faitMain p,
.produit .Traditionnels p{
    text-align: justify;
}

.produit .verticalFlexContainer >div{
    padding: 40px;
    width: 100%;
}

.produit .leftdiv{
    width: 60%;
}

.produit .rightdiv {
    width: 40%;
    display: flex;
    justify-content: center;
}

.produit .faitMain-img{
    width: 120px;
    height: 120px;
    background: url(/img/notre-projet/fait-main-1.jpg) center center /cover;
    position: relative;
    right: 0;
    margin-left: calc(200px - 10vw);
    margin-top: 20px;
    flex-shrink: 0;
}

.produit .faitMain-img::before{
    content: '';
    position: absolute;
    background: url(/img/notre-projet/fait-main-2.jpg) center center /cover;
    top: -40%;
    left: -40%;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* On Ou Off */

.onOuOff {
    padding: 40px 0 !important;
}

.cadre-interupteur{
    position: relative;
    width: 100px;
    height: 50px;
    margin: 40px auto;
    cursor: pointer;
}

#interupteur{
    width: 100%;
    height: 100%;

}

#flipSwitch{
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

.container-OnOuOff {
    perspective: 1000px; /* Donne de la profondeur à l'effet 3D */
    justify-content: space-around;
}

.card {
    width: 25vw; 
    height: 17vw;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 1s;
    margin-bottom: 20px;

}

.card-2{ transition-delay : 0.15s; }
.card-3{ transition-delay : 0.3s; }

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden; 
}

.card .front {
    z-index: 2;
}

.card .back {
    transform: rotateY(180deg);
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


@media (max-width: 480px) {

    h2{
        margin-bottom: 30px;
        margin-top: 10px;
    }

    .halfscreen_img{
        background: url('/img/notre-projet/heroMobile-NotreProjet.JPG') no-repeat center center;  
        background-size: auto 100%;
        padding: 0 20px;
    }

    .Bridge-container{
        width: 87%;
    }

    .Bridge h2 {
        margin-bottom: 30px;
        margin-top: 10px;
    }
    

    .partenaires-section .horizontalFlexContainer{
        flex-direction: column;
    }

    .partenaires-section .horizontalFlexContainer > div {
        width: 100%;
        text-align: justify;
    }

    .partenaires {
        height: 70vw;
        width: 70vw;
    }

    .partenaires-section .rightdiv{
        padding: 40px ;
    }

    .produit p {
        text-align: justify !important;
    }

    .Traditionnels {
        padding: 40px 0 !important;
        /* text-align: justify !important; */
    }

    .faitMain{
        padding: 0 !important;
    }

    .produit .leftdiv{
        width: 100%;
    }


    .produit .rightdiv{
        justify-content: left;
        width:100%;
    }

    .produit .faitMain-img{
        margin: 0 0 20px 0;
        width: 47.5%;
    }
    .produit .faitMain-img::before{
        left: 110%;
        top: 0;
    }

    .produit .ligne-fleurit{
        width: 100%;
        height: 120px;
        background: url(/img/notre-projet/ligne-fleurit.jpg) center center /cover;
        margin-top: 20px;
    }

    .container-OnOuOff.horizontalFlexContainer{
        flex-direction: column;
    }

    .card{
        width: 80vw;
        height: 56vw;
    }
    

}
