html{
    scroll-behavior: smooth;
}

body{
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1{
    font-weight: bold;
    font-size: var(--lfs);
    margin: 50px;
}

h2{
    font-weight: bold;
    font-size: calc(var(--rfs) * 1.5);
    text-align: center;
    margin: 50px;
    line-height: 1.1;
}


.details{
    display: block;
    width: 35%;
    border-top: 1px solid black;
    margin:  calc(var(--longmarge)* 4) auto;
}

.specification{
    display: block;
    padding: var(--marge) 0;
    text-align: left;
    border-bottom: 1px solid black;
    width: 100%;
}

.specification span:first-of-type{
    font-weight: bold;
    width: 35%;
    vertical-align: middle;
    display: inline-block;
}

.specification span:last-of-type{
    font-family: Signifier;
    vertical-align: middle;
    display: inline-block;
}


main{
    display: block;
    position: relative;
    width: 100%;
}

#imgIntro{
    display: block;
    position: relative;
    width: 100%;
    height: 100vh;
}
#imgIntro img{
    object-fit: cover;
    display: block;
    width: 100%;
    height: 100%;
}

.informations{
    text-align: center;
}

.duo{
    display: block;
    position: relative;
    margin: 0 auto;
    text-align: center;
}

.imageDuo{
    display: inline-block;
    max-width: 30%;
    margin: 0 var(--longmarge);
    max-height: 80vh;
}

.imageDuo img{
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
}

.siemaWrap{
    display: block;
    position: relative;
    width: 100%;
    height: fit-content;
    padding:var(--mProjet) 0;
}

.image{

}

.image img{
    max-width: 100vw;
    margin: 0 auto;
    max-height: 75vh;
    width: auto;
    height: auto;
}


.siemaChange{
    display: block;
    position: absolute;
    text-align: center;
    z-index: 2;
    pointer-events: none;
    width: 100%;
    top: 0;
    left: 0;
    height: 100%;
}

.cs{
    display: inline-block;
    vertical-align: top;
    width: 25%;
    pointer-events: auto;
    height: 100%;
    position: relative;
    cursor: pointer;
}
.prev{
    display: block;
    position: absolute;
    left: var(--longmarge);
}

.next{
    display: block;
    position: absolute;
    right: var(--longmarge);
}

.cs img{
    display: block;
    position: absolute;
    top: 50%;
    width: 30px;
    height: auto;
    transform: translate(0, -50%);
}

.prev img{
    left: 25%;
}

.next img{
    right: 25%;
}


#relatedProject{
    display: block;
    margin: 0 var(--longmarge);
}

h3{
    border-top: 1px solid black;
    padding: var(--longmarge) 0;
    font-size: var(--rfs);
    padding-bottom: calc(var(--longmarge)*2);
    text-align: center;
    font-weight: bold;
    margin-top: calc(4* var(--longmarge));
}



.imrp{
    width: 100%;
    height: 15vw;
}

.imrp img{
    object-fit: cover;
    width: 100%;
    display: block;
    height: 100%;
}

.imrp img:last-of-type{
    display: none;
}

#listRelated{
    display:grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--longmarge);
}

.rpro{
    grid-column: span 1;
}

.rpro:hover .imrp img:last-of-type{
    display: block;
}

.rpro:hover .imrp img:first-of-type{
    display: none;
}







.containerList{
    display: block;
    width: 90%;
    margin: 0 auto;
    padding-bottom:var(--mProjet);
    text-align: center;
}

.round{
    width: calc(var(--rfs) / 1.5);
    height: calc(var(--rfs) / 1.5);
    background-color: black;
    border-radius: 50%;
    margin: 0 calc(var(--marge)/2);
    display: inline-block;
    vertical-align: middle;
    opacity: .4;
    transition: .5s;
}

.active{
    opacity: 1;
}

.singleImage{
    display: block;
    position: relative;
    height: fit-content;
    width: fit-content;
    margin: 0 auto;
    padding:var(--mProjet) 0;
}


.regularImage img{
    max-width: 60vw;
    max-height: 75vh;
    width: auto;
    height: auto;

}

.largeImage img{
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;

}

.bloc_text{
    font-family: Signifier;
    max-width: 800px;
    line-height: 1.3;
    width: 100%;
    display: block;
    margin:  0 auto;
    padding:var(--mProjet) 0;
}

.bloc_text p{
    text-indent: var(--rfs);
}

.bloc_text p:first-of-type{
   text-indent: 0;
}

h4{
    padding: var(--marge) 0;
}

.bloc_video{
    display: block;
    position: relative;
    width: 60vw;
    height: auto;
    margin:var(--mProjet) auto;
}

video{
    width: 100%;
    height: auto;
}

.pvid{
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform-origin: center;
    cursor: pointer;
    transform: translate(-50%, -50%);
    height: 130px;
    width: auto;
    transition: .2s;
}

.pvid:hover{
    transform: translate(-50%, -50%) scale(.9);
}



@media (orientation:portrait){

    #imgIntro{
        height: fit-content;
    }

    h1{
        margin: var(--mProjet);
    }
    
    h2{
        margin: var(--mProjet);
    }



    .details{
        width: 75%;
        margin:  calc(var(--marge)) auto;
    }

    .specification{
        padding: calc(var(--marge) / 2) 0;
    }

    .bloc_text{
         max-width: 90vw;
    }

    .cs img{
        width: 4vw;
    }

    .prev img{
        left: 0%;
    }

    .next img{
        right: 0%;
    }

    .imageDuo{
        display: block;
        max-width: 75vw;
        margin: var(--longmarge) auto;
        max-height: 80vh;
    }


    .image{
        height: fit-content;

    }

    .image img{
        max-width: 75vw;
        max-height: 50vh;
    }
   

    .regularImage img{
        max-width: 75vw;


    }

    .largeImage img{
        max-width: 90vw;
    }


    .bloc_video{
        width: 90vw;
    }

    .pvid{
        height: 50px;
    }

    .imrp{
        height: auto;
    }


    .round{
        margin: 0 calc(var(--marge)/4);
    }


    #listRelated{
        grid-template-columns: repeat(2, 1fr);
        gap: var(--marge);
       
    }

    h3{
        padding: calc(var(--marge) / 2) 0;
        padding-bottom: calc(var(--longmarge));
        margin-top: calc(2* var(--longmarge));
    }

}