/* Background de la page internet */
@import url(https://db.onlinewebfonts.com/c/9b9cad44314f47ea67ac9d2652bdd80a?family=Adam+Light);

body {
    margin: 0 auto;
    background-color:#292929;
    cursor: url('/images/TEST.png'), auto;
    overflow-x: hidden; /* Empêche le défilement horizontal */
    
}


::-webkit-scrollbar{
    display: none;
}


/* Police d'écriture et curseur */


@font-face {
    font-family: 'Adam-Light';
    src:url('Adam-Light.ttf.woff') format('woff'),
        url('Adam-Light.ttf.svg#Adam-Light') format('svg'),
        url('Adam-Light.ttf.eot'),
        url('Adam-Light.ttf.eot?#iefix') format('embedded-opentype'); 
    font-weight: normal;
    font-style: normal;
}

* {
    font-family: "Adam Light";
    cursor: url('/images/TEST.png'), auto;
    font-weight: lighter;
}






























/* Bannière du haut (menu) */

.header {
    max-width: 100%;
    z-index: 100;
    display: flex;
    background-color: rgba(0, 0, 0, 0.6); /* Fond d'en-tête semi-transparent */
    position: fixed;
    right: 0;
    left: 0;
    opacity: 1;
    transition: opacity 0.2s ease-in-out;
}


.header.hidden {
    opacity: 0;
    pointer-events: none;
}


header.header img{
    width: 20%;
    padding-left: 0.5%;
    padding-top: 0.5%;
    padding-bottom: 0.3%;
    transition: all 0.3s ease;
}

.header a:hover {
    cursor: url('/images/TEST.png'), auto;
}

.navbar {
    display : flex;
    margin-left : 10%;
    width: 100%;
    justify-content: space-around;
    align-items: end;
}

.ri-shopping-cart-line {
    color: white;
    display: flex;
    align-items: end;
    font-size: 1.8vw;
    padding-bottom: 0.4vw;
    margin-right: 2.3vw;
    transition: all 0.3s ease;
}

.ri-shopping-cart-line,
.ri-shopping-cart-line:hover {
    text-decoration: none; /* Supprime le soulignement */
}

.icons {
    position: absolute;
    color: white;
    display: none;
    font-size: 2.8rem;
    right: 5%;
}

#check {
    display: none;
}

.navbar li {
    text-decoration: none;
    display: flex;
    transition: all 0.3s ease; /* Pour ajouter une transition fluide */
}

/* Réduire la taille des blocs lorsque la fenêtre est réduite */
.navbar li {
    font-size: 2.5vw; /* Utilisation de vw pour la taille de la police, ajuste selon tes préférences */
}

.navbar a{
    color: white;
    text-decoration : none;
    font-size: 100%;
}

/* Styles pour les liens non visités */
.navbar li a:link {
    color: white;
    text-decoration: none;
}

/* Styles pour les liens visités */
.navbar li.active a {
    color: #c48c67;
}

/* Styles pour les liens au survol */
.navbar li a:hover {
    color: #c48c67; /* Couleur au survol */
    transition: color 0.4s ease;
}

/* Styles pour les liens lorsqu'ils sont activés (cliqués) */
.navbar li a:active {
    color: #888888; /* Couleur lorsqu'un lien est activé */
}

/* Image à coté de 3D */
.orange-letter{
    color: #c48c67;
}







/* video */

.background_video{
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    z-index: -1;
    pointer-events: none;

}





.timeline_H {
    margin-top: 50vw;
    height: 10vw;
    width: 100%;
    top: 0;
    left: 0;
    position: absolute;
    z-index: 20;
}

.timeline_H::after {
    content: "";
    position: absolute;
    width: 0; /* Initialiser la largeur à 0 */
    height: 2px;
    background: #ffffff;
    bottom: 9vw;
    transition: width 6s ease forwards; /* Ajouter une transition pour la propriété width */
}

.timeline_H.laoded::after {
    width: 100%; /* Changer la largeur à 100% au chargement complet */
}

.th_dot{
    height: 1.3vw;
    width: 1.3vw;
    background-color: #ffffff;
    position: absolute;
    z-index: 5;
    border-radius: 50%;
}

#th1{
    top: 3%;
    left: 15.2%;
}

#th2{
    top: 3%;
    left: 24.2%;
}

#th3{
    top: 3%;
    left: 47.55%;
}

#th4{
    top: 3%;
    left: 65.2%;
}

#th5{
    top: 3%;
    left: 98.2%;
}


.timeline_H:nth-child(1){
    animation-delay: 0.5s;
}
.timeline_H:nth-child(2){
    animation-delay: 2s;
}
.timeline_H:nth-child(3){
    animation-delay: 3.5s;
}
.timeline_H:nth-child(4){
    animation-delay: 5s;
}

.timeline_H h1{
    position: absolute; /* Changement de la position à absolute */
    bottom: 8vw; /* Aligner le texte en bas */
    right: 2vw; /* Aligner le texte à droite */
    font-size: 2vw;
    font-weight: bold;
    color: white;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 0.5vw;
}






.A-load {
    background-color: #292929;
    position: fixed; /* Utiliser "fixed" pour que le conteneur occupe tout l'écran */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh; /* Utiliser "100vh" pour définir la hauteur en fonction de la taille de l'écran */
    z-index: 200000000000000; /* Assurez-vous que le z-index est supérieur à celui des autres éléments */
    animation: fadeInOut 2s ease-in-out forwards;
}

.A-load img {
    display: block;
    margin: auto; /* Centre l'image horizontalement et verticalement */
    margin-top: 15vw;
    max-width: 100%; /* Assurez-vous que l'image ne dépasse pas la largeur du conteneur */
    max-height: 100%; /* Assurez-vous que l'image ne dépasse pas la hauteur du conteneur */
    animation: fadeIn 1.5s ease-in forwards;
    opacity: 0;
}




@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    25% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes fadeInOut {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 1;
    }
    75% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        display: none;
    }
}















/* ***************Contenu de la main page*************** */

div.content {
    margin-top: -5vw;
    display: flex;
    flex-wrap: nowrap;
    color: white;
    justify-content: center;
}

/* Styles CSS pour les images dans les boîtes */
.img_etude,
.img_mobiliers,
.img_plans2d,
.img_plan3d,
.img_suivi {
    opacity: 1;
    transition: opacity 0.5s;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ajuste le comportement de l'image pour remplir la boîte tout en conservant les proportions */
}

/* Lorsque vous survolez une boîte, augmentez l'opacité de l'image */
.etude:hover .img_etude,
.mobiliers:hover .img_mobiliers,
.plan_2D:hover .img_plans2d,
.plan_3D:hover .img_plan3d,
.suivi:hover .img_suivi {
    opacity: 0.3;
    z-index: -100;
}

/* Autres styles inchangés */

.etude,
.mobiliers,
.plan_2D,
.plan_3D,
.suivi {
    font-size: larger;
    justify-content: center;
    z-index: 100;
    background: rgba(0, 0, 0, 0.3);
    transition: background-color 1s, transform 1s;
    opacity: 1;
    position: relative;
    width: 100%;
    height: 30vw;
    text-align: center;
}

/* Autres styles inchangés */

/* CSS pour les blocs non survolés */
.etude:not(:hover),
.mobiliers:not(:hover),
.plan_2D:not(:hover),
.plan_3D:not(:hover),
.suivi:not(:hover) {
    transform: scale(0.9);
}

/* Autres styles inchangés */


.etude h1,
.mobiliers h1,
.plan_2D h1,
.plan_3D h1,
.suivi h1 {
    font-size: 3vw;
    
}

.etude h2,
.mobiliers h2,
.plan_2D h2,
.plan_3D h2,
.suivi h2 {
    font-size: 1.5vw;
    text-align: center;
    width: 17vw;
    height: 20vw;
    margin-top: 6vw;
}


/* CSS pour les blocs non survolés */
.etude:not(:hover),
.mobiliers:not(:hover),
.plan_2D:not(:hover),
.plan_3D:not(:hover),
.suivi:not(:hover) {
    transform: scale(0.9); /* Réduire la taille des blocs non survolés */
    
}


.etude h2,
.mobiliers h2,
.plan_2D h2,
.plan_3D h2,
.suivi h2 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.5s;
}

.etude:hover h2,
.mobiliers:hover h2,
.plan_2D:hover h2,
.plan_3D:hover h2,
.suivi:hover h2 {
    opacity: 1;
}


.modal {
    display: none;
}
.modal-content {
    display: none;
}
#modalImg {
    display: none;
}











/* remonter la page */

.img_click_top_page {
    width: 4vw;
    height: 4vw;
    margin: 0;
    position: fixed;
    bottom: 1vw;
    left: 1vw;
    overflow: hidden;
    border-radius: 50%;
    border: 3px solid rgba(0, 0, 0, 0);
    background-color: rgba(0, 0, 0, 0.4);
    cursor: pointer; /* Ajoute un curseur pointer pour indiquer que c'est cliquable */
}

.img_click_top_page img {
    width: 4vw;
    height: 5vw;
    object-fit: cover;
    border-radius: 50%;
}

#backToTop {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

#backToTop.visible {
    opacity: 1;
}





















/* Time line loading */

.timeline{
    position: relative;
    max-width: 100vw;
    margin-top: 1vw;
    margin-left: 0vw;
}

.container {
    padding: 1vw 0vw;
    position: relative;
    width: 50%;
}



.text-box{
    padding: 2vw 2vw;
    margin-right: 1vw;
    margin-left: 1vw;
    position: relative;
    font-size: 1vw;
    border-radius: 6px;
    background-color: rgb(0, 0, 0, 0);
    
}

.l-container{
    left: 0;
    text-align: right;
}

.r-container{
    left: 50%;
}

.l-container .t-dot{
    height: 1.3vw;
    width: 1.3vw;
    background-color: #ffffff;
    position: absolute;
    top: 19%;
    left: 98.35%;
    z-index: 5;
    border-radius: 50%;
}

.r-container .t-dot {
    height: 1.3vw;
    width: 1.3vw;
    background-color: #ffffff;
    position: absolute;
    top: 19%;
    left: -1.6%;
    z-index: 5;
    border-radius: 50%;
}


.text-box h2{
    display: relative;
    font-weight: 600;
    color: #ffffff;
    font-size: 2vw;
}

.text-box small{
    display: inline-block;
    margin-bottom: 15px;
    color: #fff;
    font-size: 1.5vw;
}

.text-box p{
    display: inline-block;
    margin-bottom: 15px;
    color: #fff;
    font-size: 1.4vw;
}

.text-box h2,
.text-box small,
.text-box p,
.t-dot {
    opacity: 0;
}


.container.show .text-box h2,
.container.show .text-box small,
.container.show .text-box p,
.container.show .t-dot {
    animation: opac 1s ease forwards;
}


.timeline::after {
    content: "";
    position: absolute;
    width: 2px;
    height: 0;
    background: #fff;
    top: 0;
    left: 50%;
    margin-left: -0.15vw;
    margin-top: -3vw;
    transition: height 6s ease;
}
.timeline.loaded::after {
    height: 110%;
}






.container:nth-child(1){
    animation-delay: 0.5s;
}
.container:nth-child(2){
    animation-delay: 2s;
}
.container:nth-child(3){
    animation-delay: 3.5s;
}
.container:nth-child(4){
    animation-delay: 5s;
}

@keyframes opac {
    0%{
        opacity: 0;
    }
    100%{
        opacity: 1;
    }
}

















/* footer */

footer{
    overflow: hidden;
    margin-top: 10%;
}

div.Informations{
    display: flex;
    padding-top: 0.5vw;
    align-items: center;
    justify-content: space-around;
}

div.Contact{
    font-size: 1vw;
    color: white;
    width: 50vw;
    text-align: center;
    padding-left: 1vw;
}

div.Informations img {
    width: 7%;
}


div.icones {
    display: flex;
    justify-content: space-around; /* changer space-around à space-between */
    width: 10vw;
    height: 8vw;
    align-items: center;
}



.icones a i{
    font-size: 2vw;
    color: white;
    padding: 0.5vw;
    opacity: 1;
    transition: opacity 0.3s;
}

  
.icones a i:hover {
    opacity: 0.3;
}

    
.Contact p{
    line-height: 0.5;
    color: rgb(255, 255, 255);
    font-size: 1.2vw;
}


.service .Contact a {
    color: inherit; /* Couleur héritée du texte parent */
    text-decoration: none; /* Supprime la décoration de soulignement */
}





@media (max-width: 768px) {
    header.header img{
        width: 36%;
        padding-left: 0.5%;
        padding-top: 0.5%;
        padding-bottom: 0.3%;
        transition: all 0.3s ease;
    }

    .icons {
        display: inline-flex;
        bottom: 25%;
        font-size: 6vw;
    }

    .icons #close {
        display: none;
    }

    .ri-shopping-cart-line {
        display: inline-block;
        position: absolute;
        color: white;
        font-size: 6vw;
        right: 15%;
        bottom: 25%;
        text-decoration: none;
    }
    
    .header {
        align-items: center;
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        margin: 0;
        width: 100%;
        height: 0;
        display: flex; /* Ajout de la propriété display flex */
        align-items: center; /* Pour centrer verticalement le contenu */
        flex-direction: column; /* Afficher les éléments en colonne */
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(5px);
        overflow: hidden;
        transition: .3s ease;
        z-index: 11000;
    }
    
    .navbar a {
        display: block;
        font-size: 10vw;
        text-align: center;
        opacity: 0;
        transition: .3s ease;
        line-height: .1; /* Ajuster la hauteur de ligne pour réduire l'espace */
    }
    
    
    
    
    .header {
        z-index: 200;
        display: flex;
        background-color: rgba(0, 0, 0, 0.5); /* Fond d'en-tête semi-transparent */
        position: fixed;
        right: 0;
        left: 0;
        opacity: 1;
        transition: opacity 0.4s ease-in-out;
        height: 18vw;
        
    }

    #check:checked~.icons #menu{
        display: none;
    }

    #check:checked~.icons #close{
        display: inline-flex;
    }

    
    #check:checked ~ .navbar {
        height: 73vh;
    }
    
    #check:checked ~ .navbar a{
        transform: translateY(0);
        opacity: 1;
        transition-delay: calc(.35s * var(--i));
    }

    #check:checked ~ body {
        overflow: hidden;
    }

    /* Pour éviter que le fond ne soit coupé lors du défilement vers le haut */
    #check:checked ~ .top-page {
        position: fixed;
        width: 100%;
    }




    footer{
        margin-top: 0.2vw;
    }

    div.Informations{
        display: flex;
        padding-top: 0.5vw;
        align-items: center;
        justify-content: space-around;
    }
    
    div.Contact{
        font-size: 1vw;
        color: white;
        text-decoration: none;
        width: 60vw;
        text-align: center;
        padding-left: 4vw;
        z-index: 10;
    }
    
    div.Informations img {
        width: 12%;
        margin-left: 2vw;
    }
    
    div.icones {
        display: flex;
        justify-content: space-around; /* changer space-around à space-between */
        width: 3vw;
        height: 8vw;
        align-items: center;
        margin-right: 12vw;
    }

    .icones a i{
        text-decoration: none;
        font-size: 5vw;
        color: white;
        padding: 1vw;
        opacity: 1;
        transition: opacity 0.3s;
    }
    
      
    .icones a i:hover {
        opacity: 0.3;
    }
        
    .Contact p{
        text-decoration: none;
        line-height: 0.5;
        color: rgb(255, 255, 255);
        font-size: 2.3vw;
    }




    .background_video{
        top: 0;
        left: 0;
        width: 100%;
        height: auto;
        z-index: -1;
        pointer-events: none;
    
    }


    body {
        margin: 0 auto;
        background-color:#292929;
        cursor: url('/images/TEST.png'), auto;
        overflow-x: hidden; /* Empêche le défilement horizontal */
    }




    
    .timeline{
        margin: auto auto;
        margin-left: 10vw;
    }

    .timeline::after{
        left: 0.5vw;
    }

    .container{
        width: 80%;
        
    }

    .text-box{
        font-size: 2.5vw;
    }

    .text-box small{
        margin-bottom: 1vw;
    }

    .r-container, .l-container{
        left: 0;
        max-width: 100%;
        text-align: left;
        margin-left: -10vw;
        padding: 4.3px 0px 4.3px 80px;
    }

    .timeline.loaded::after {
        height: 100%;
    }

    .background_video{
        pointer-events: none;
        width: 100%;
        z-index: -10000;
    }

    .text-box h2{
        display: relative;
        font-weight: 600;
        color: #ffffff;
        font-size: 4.2vw;
    }
    
    .text-box small{
        display: inline-block;
        margin-bottom: 15px;
        color: #fff;
        font-size: 3.7vw;
    }
    
    .text-box p{
        display: inline-block;
        margin-bottom: 15px;
        color: #fff;
        font-size: 3.5vw;
        width: 110%;
    }
    

    .timeline_H h1{
        font-size: 4vw; 
    }

    .r-container .t-dot, .l-container .t-dot {
        top: 7vw;
        width: 2vw;
        height: 2vw;
        left: 9.6vw;
    }
    

    .th_dot{
        height: 2vw;
        width: 2vw;
        background-color: #ffffff;
        position: absolute;
        z-index: 5;
        border-radius: 50%;
    }
    
    #th1{
        top: -1.6%;
        left: 15.2%;
    }
    
    #th2{
        top: -1.6%;
        left: 24.2%;
    }
    
    #th3{
        top: -1.6%;
        left: 47.55%;
    }
    
    #th4{
        top: -1.6%;
        left: 65.2%;
    }
    
    #th5{
        top: -1.6%;
        left: 95.2%;
    }

    
    
    /* Style pour la fenêtre modale */
    .modal {
        display: none;
        position: fixed;
        z-index: 999;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.7);
        overflow: auto;
        justify-content: center;
        align-items: center;
        
    }
    .modal-content {
        display: block;
        background-color: rgb(0, 0, 0);
        margin: auto;
        padding: 0px;
        width: 80vw;
        max-width: 600px;
        text-align: center;
        border-radius: 1vw;
        position: relative; /* Ajout de la position relative */
    }
    #modalImg {
        object-fit: cover; /* Recouvre le conteneur modal tout en conservant les proportions */
        max-width: 100%;
        width: 100vw;
        height: auto;
        max-height: 80vh; /* Ajuster la hauteur maximale pour éviter le débordement */
        display: block;
        margin: 0 auto;
        opacity: 0.5;
    }

    #modalTitle {
        position: absolute;
        top: 10%;
        left: 0%;
        width: 100%;
        height: 100%;
        color: white;
        text-align: center;
        z-index: 100000000; /* Pour afficher le texte au-dessus de l'image */
        background-color: rgba(94, 255, 0, 0); /* Fond semi-transparent pour améliorer la lisibilité */
        font-size: 9vw;
        font-weight: bold;
    }

    #modalText {
        position: absolute;
        top: 30%;
        left: 0%;
        color: white;
        z-index: 100000000; /* Pour afficher le texte au-dessus de l'image */
        background-color: rgba(0, 0, 0, 0); /* Fond semi-transparent pour améliorer la lisibilité */
        padding: 10px;
        border-radius: 5px;
        font-size: 6vw;
        text-align: center;
    }

    div.Informations img {
        width: 12%;
        margin-left: 2vw;
    }
    
    .img_click_top_page{
        display: none;
    }

}
