@font-face {
  font-family: "Poppins";
  src: url("fonts/BBBPoppinsTN-DisplayRegular.woff") format("woff"),
       url("fonts/BBBPoppinsTN-DisplayRegular.woff2") format("woff2");
    font-weight: bold;
}
@font-face {
  font-family: "Poppins";
  src: url("fonts/BBBPoppinsTN-TextRegular.woff") format("woff"),
       url("fonts/BBBPoppinsTN-TextRegular.woff2") format("woff2");
     font-weight: normal;
}
/* ^font */

/* généralités */
*{
    box-sizing: border-box;
    scrollbar-width: none; 
    ::-webkit-scrollbar { display: none; }
}

ul{padding: 0;}
li{list-style: none;}
figure{margin: 0;}
img{
    vertical-align: top;
    width: 100%;
    image-rendering: pixelated;
}


body{
    background-color: #081fec; 
    /* margin-top: 1.5em;
    margin-left: 1.5em;
    margin-right: 1.5em; */
    font-family: "Poppins";
    font-size: 16px;
    /* cursor: url('img/cursor.svg'), auto; */
    scroll-behavior: smooth;
}

main{
    width: 95%;
    margin-left: auto;
    margin-right: auto;
    min-width: 300px;
}
/* généralités */

/* --> class de texte */
.titre{
    color: #ffffff;
    font-size: 35px;
    font-family: "Poppins";
    font-weight: bold;
    padding-left: 8%;
}
.titre-top{
    margin-top: 3.5em;
    font-family: "Poppins";
    font-weight: bold;
}

.soustitre{
    color: #081fec;
    font-size: 25px;
    font-family: "Poppins";
    font-weight: bold;
}

.text{
    color: #081fec;
}

/* <-- class de texte */

/* deco elements */
.logo{
    width: 20%;
    min-width: 105px;
    padding-left: 1em;
    padding-right: 1em;
    padding-bottom: 0.7em;
    padding-top: 0.7em;

    background-color: #ffffff;
    border: 1.5px solid #081fec;
    border-radius: 1.5em;
    left: 1.5em;
    top: 1.5em;
    position: fixed;
    z-index: 999;

    /* centrer le texte */
    display: flex; 
    align-items: center; 
    justify-content: center;
}

.text-case{
    width: 85%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1em;
    padding-right: 1em;

    background-color: #ffffff;
    border: 1.5px solid #081fec;
    border-radius: 1.5em;
}

.projet-case{
    display: none;
    position: fixed;
    z-index: 999;
    top:56%;
    left:50%;
    transform: translate(-50%, -50%);
    max-height: 70%;
    justify-content: space-between;
    padding-top: 40px;
    padding-left: 20px;
    padding-right: 20px;
    flex-wrap: wrap;
    overflow: scroll;

}

.projet-case .text-project{
    width: 48%;
}

.projet-case .text-project h2{
    margin-top: 0;
}

.warning-case{
    display: none;
    position: fixed;
    z-index: 20;
    top:30%;
    left:50%;
    transform: translate(-50%, -50%);
    width: 50%;
}



.container{
    position: relative;
}
/* deco elements */

/* --> ACTIVE or LINKS */
.header{
    width: 210px;
    padding-left: 0.3em;
    padding-right: 0.3em;

    background-color: #ffffff;
    border: 1.5px solid #081fec;
    border-radius: 1.5em;
    right: 1.5em;
    top: 1.5em;
    position: fixed;
    z-index: 900;
}

a{
    text-decoration: none;
    color: #081fec;
}
a:hover{
    color: #ffffff;
}

.nav{
    text-decoration: none;
    color: #081fec;
    border: 5px solid transparent;
    border-radius: 0.5em;
}
.active, .nav:hover{
    color: #ffffff;
    background-color: #081fec;
    border-color: #081fec;
}
nav ul li{
    /* ce type de style désigne la li DANS ul DANS nav ! permet d'être précis */
    list-style: none;
    margin: 10px;
}

.charge{
    display: flex;
    margin: auto;
    width: 70px;
    text-align: center;
    margin-bottom: 1.5em;
    border: 1.5px solid #081fec;
    border-radius: 1.5em;
    justify-content: center;
}

    /* ->button */
.button{
    display: flex;
    position: absolute;
}

.button-case{
    width: 25px;
    height: 25px;

    background-color: #ffffff;
    border: 1.5px solid #081fec;
    border-radius: 1.5em;
    cursor: pointer;
    /* centrer le texte */
    display: flex; 
    align-items: center; 
    justify-content: center;
}
.active, 
.button:hover .button-case,
.button:hover .button-text{
    background-color: #081fec;
    color: #ffffff;
}

.button-text{
    color: #081fec;
    text-align: center;
}

.button-plus{
    bottom: 10px;
    left: 10px;
}

.button-close{
    top: 10px;
    right: 10px;
}

    /* <-button */
/* <-- ACTIVE or LINKS */

/* image */
    /* image grid */
    .image-grid{
        display: flex;
        flex-wrap: wrap;
    }
    .image-grid li{
        width: 40%;
        margin: auto;
        margin-bottom: 9%;
    }

    .image-grid-project{
        display: flex;
        flex-wrap: wrap;
        width: 48%;
    }
    .image-grid-project li{
        width: 100%;
        /* margin: auto; */
        margin-bottom: 2em;
    }
    .image-grid-project li:last-child{
        margin-bottom: 0;
    }

    .image-grid-project li:last-child:after{
        content: "espace";
        font-size: 1px;
        opacity: 0;
    }
    /* image grid */


.image{
    border: 1.5px solid #081fec;
    border-radius: 0.5em;
}
/* image */



/* version telephone */
@media (max-width: 640px) {
    .projet-case .text-project{
        width: 100%;
    }
    .image-grid-project{
        width: 100%;
    }
    .image-grid li{
        width: 100%;
        margin: 5px !important;
    }
    .titre-top{
    margin-top: 4.5em;
    }
    .image{
        margin-top: 0;
        margin-left: 0;
    }
    .warning-case{
        width: 85%;
    }
}
/* version telephone */

/* version full screen */
@media (min-width: 930px) {
    .titre-top{
    margin-top: 5em;
    }
    .titre{
        padding-left: 15%;
    }
    .logo{
        max-width: 185px;
    }
    .text-case{
        width: 70%;
    }
}
/* version full screen */

/* version HD */
@media (min-width: 1400px) {
    .image-grid li{
        width: 30%;
        margin-bottom: 3%;
    }
}