@font-face {
    font-family: 'Coolvetica';
    font-style: normal;
    src: url(../autres/Coolvetica\ Rg.otf);
}
html,body {
    margin: 0;  padding: 0;
    height: 100%;
    scroll-snap-type: y mandatory;  scroll-behavior: smooth;
    scrollbar-color: transparent transparent; /* Masque la barre de défilement */   scrollbar-width: none; /* Masque la barre de défilement pour Firefox */
    font-family: 'Coolvetica', sans-serif; font-size: 16px;
}
body {
    overflow: hidden;
}
/* Général */
.fullPage {
    width: 100dvw;  height: 100dvh;
    scroll-snap-align: start; 
}
.whiteSection {
    background-color: #D4D2D5;  color: #191716;
}
.blackSection {
    background-color: #191716;  color: #D4D2D5;
}
.sectionTitle{
    font-size: 7rem; text-align: center;
    color: #006900;
    margin:2%;
}
.carrousel{
    overflow-x: scroll; scroll-snap-type: x mandatory; scroll-behavior: smooth; overflow-y: hidden; scrollbar-color: transparent transparent;
    display: flex; flex-direction: row; justify-content: space-around; align-items: center; align-content: center; flex-wrap: nowrap;
}
.carrouselElement{
    scroll-snap-align: start; scroll-behavior: smooth;
}
/* Loader */
#loadingScreen {
    position: fixed;    top: 0; left: 0;
    width: 100dvw;  height: 100dvh;
    z-index: 10;
    display: flex; justify-content: center; align-items: center; flex-direction: column;
    transition: 1s;
    text-align: center;
}
#loadingScreen h1, #loadingScreen p {
    padding: 0; margin:0;
}
#loadingScreen h1 {
    font-size: 9rem; font-weight: lighter;
}
#loadingScreen p {
    font-size: 5rem;
    color: #006900;
}
/* Header */
header {
    text-align: center;
    display: flex; justify-content: center; flex-direction: column; align-items: center;
}
header > div {
    height: 50dvh;
    display: flex; justify-content: flex-start; align-items: center;
    text-align: center;
}
header > div:first-of-type {
    flex-direction: column;
}
header > div:last-of-type {
    align-items: flex-start;
}
header p{
    font-size: 2rem;
    max-width: 80%;
}
header a{
    border: none; border-radius: 40px;
    background-color: #191716;  color: #D4D2D5;
    margin: 40px;
    width: 20dvw; height: 15dvh;
    font-size: 2rem; font-family: 'Coolvetica', sans-serif; text-decoration: none; align-content: center;
    transition: 1s;    
}
header a:hover{
    background-color: #D4D2D5; color: #191716;
    border: 1px solid #191716;
    scale: 110%;
    cursor: pointer;
}
/* projets */
#projectMain{
    display: flex; flex-direction: column; justify-content: space-around; align-items: center;
}
#projectHeader{
    height: 40%; width: 100%;
    display: flex; flex-direction: column; align-items: center;
    transition: 1s;
}
#projectHeader > div
{
    display: flex; flex-direction: row;  justify-content: center;
    width: 100%;
}
#projectHeader >div label{
    text-align: center;
    font-size: 1.5rem; 
    max-width: 75%;
}    
#projectHeader >div select{
    width: 15%; margin-left: 10px;
    text-align: center; font-family: 'Coolvetica'; font-size: 1.35rem;
}
#projects{
    height: 55%; width: 95%; padding-right: 6dvw; box-sizing: border-box;
    display: flex; flex-direction: row; align-items: center; justify-content: space-around;
    transition: 1s;
}
#projectListing{
    height: 100%; width: 90%;
}
.buttonProject{
    width: 5%; height: 100%;
    display: flex; justify-content: center; align-items: center;
    font-size: 7rem;
}
.buttonProject > button{
    background-color: #19171600; color: #D4D2D5;
    border: none; 
    font-size: 3.5rem;
    width: 100%; height: 100%; padding: 0;
}
.buttonProject > button:hover{
    cursor: pointer;
}

.project{
    height: 100%; width: 45%; flex: 0 0 45%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    position: relative;
    box-sizing: border-box;
    transition: 1s;
}
.project span{
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: fit-content; padding: 15px;
    opacity: 0; z-index: 2;
    transition: 1s;
    background-color: #19171689; color: #D4D2D5;
    text-align: center; font-size: 2rem;
    border-radius: 25px;
}
.project img{
    transition: 1s;
    width: 100%; max-width: 100%; height: 100%; max-height: 100%; border-radius: 20px;
    object-fit: contain; display: block; margin: auto;
}
.project:hover{
    cursor: pointer;
}
.project:hover span{
    opacity: 1;
}
.project:hover img{
   filter: blur(10px);
}

    /* Presentation projet individuel */

#projectPresentation{
    display: none; flex-direction: column;
    width: 100%; height: 100%;
}
#projectPresentation h2{
    text-align: center;
    font-size: 2rem;
    padding: 0; margin: 0px;
    height: 20%;
    transform: translateY(-100%); transition: 1s;
}
#projectPresentation > div:first-of-type, #projectPresentation > div:last-of-type {
    display: flex; flex-direction: row; align-items: center; justify-content: space-around;
    width: 100%; height: 60dvh;
}
#slider {
    width: 50%; height: 100%;
    display: flex; flex-direction: row; justify-content: space-evenly; align-items: center;
    transform: translateX(-100%); transition: 1s;
}
#slider > img
{
    width: 7%;
}
#slider > img:first-of-type
{
    transform: rotateY(180deg);
}
#sliderContent {
    width: 70%; height: 100%;
    display: flex; flex-direction: row; justify-content: flex-start; align-items: center;
}
#sliderContent > div {
    min-width: 100%; min-height: 100%; max-height: 100%; max-width: 100%;
    transition: 1.5s;
}
#sliderContent img
{
    width: 100%; max-width: 100%; height: 50dvh; max-height: 50dvh;
    object-fit: contain;
    display: block;
    margin: auto;
}
#projectPresentation > div:first-of-type > p {
    width: 40%; height: 100%;
    text-align: center;
    overflow: scroll;
    transform: translateX(150%); transition: 1s;
    margin-right: 20px;
}
#projectPresentation > div:first-of_type > p > p {
    margin: 0; padding: 0;
}
#projectPresentation > div:last-of-type button {
    transform: translateY(100dvh); transition: .5s;
    width: 25%; height: 25%; border: none;
    border-radius: 10px;
    font-size: 1.6rem;
    background-color: #D4D2D5; color: #191716;
    
}
#projectPresentation > div:last-of-type button:hover {
    background-color: #191716; color: #D4D2D5;  border: 1px solid #D4D2D5;
    cursor: pointer;
}
#useTools {
    background-color: #D4D2D5; color: #191716;
    width: 50dvw; height: 27dvh; border-radius: 20px;
    display: flex; flex-direction: column;
    transform: translateY(150%); transition: 1s;
    position: relative; top: -1dvh;
}
#useTools h3 {
    text-align: center;
    font-size: 1.75rem;
}
#useToolsDiv {
    display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); gap: 10px;
    overflow-y: scroll;
}
#useToolsDiv img {
    width: 100px; height: 100px;
    object-fit: contain;
}
#useToolsDiv div {
    display: flex; flex-direction: column; justify-items: center; align-items: center;
}
/* 3eme section competence */
#skillSection > div:first-of-type{
    width: 100%; height: 40%;
    display: flex; justify-content: center; align-items: center; 
}
#skillSection > div:last-of-type{
    display: flex; flex-direction: row; justify-content: center; align-content: center;
    width: 100%; height: 50%;
}

#skillSection > div:last-of-type > div:nth-of-type(odd){
    width: 5%; height: 100%;
    display: flex; align-items: center;
}
#skillSection > div:last-of-type > div:nth-of-type(odd) > button{
    width: 100%;
    background-color: transparent; border: none;
    font-size: 6rem;
    padding: 0;
}
#skillSection > div:last-of-type > div:nth-of-type(odd) > button:hover{
    cursor: pointer;
}
#skillCarrousel{
    width: 70%; height: 100%;
}
#skillCarrousel > .carrouselElement{
    width: 100%; height: 100%; min-width: 100%;
    display: flex; flex-direction: column; justify-content: flex-start; align-items: center;
}
#skillCarrousel > .carrouselElement > div:first-of-type{
    height: 20%;
    
}
#skillCarrousel > .carrouselElement > div:first-of-type > h3{
    margin: 0; padding: 0;
    font-size: 4rem; text-align: center;
}
#skillCarrousel > .carrouselElement > div:last-of-type{
    display: flex; flex-direction: row; flex-wrap: wrap; align-content: center; justify-content: center; align-items: center;
    width: 100%; height: 80%;
}
#skillCarrousel > .carrouselElement > div:last-of-type > div{
    width: 25%; max-height: fit-content; flex: 0 0 25%; height: 50%; max-height: 50%;
    display: flex; align-items: center; justify-content: center;
    box-sizing: border-box;
}
#skillCarrousel > .carrouselElement > div:last-of-type img{
        width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    margin: auto;
}

/* 4eme section, about me */
#aboutContent{
    display: flex; flex-direction: column; align-items: center; justify-content: space-around;
}
#aboutContent > div:first-of-type{
    height: 70%;
    display: flex; flex-direction: row; justify-content: space-evenly; align-items: center;
}
#aboutContent > div:first-of-type p {
    width: 50%; height: 70%;
    margin: 0; padding: 0;
    font-size: 1.75rem;
    overflow: scroll;
}
#aboutContent > div:first-of-type > img {
    width: 30%; height: auto;
    border-radius: 100%;
}
#aboutContent >div:last-of-type{
    width: 100%;
    display: flex; flex-direction: row; align-content: center; justify-content: space-evenly; align-items: center;
}
#aboutContent >div:last-of-type > a {
    font-size: 1.3rem;
    color: #D4D2D5; text-decoration: none;
}
#aboutContent >div:last-of-type > a:hover,#aboutContent >div:last-of-type > span:hover{
    text-decoration: underline;
}
#aboutContent >div:last-of-type > span{
    font-size: 1.3rem;
}
#aboutContent >div:last-of-type > div:first-of-type{
    display: flex; flex-direction: column; align-items: center;
}
#aboutContent >div:last-of-type > div:first-of-type img{
    width: 60px; height: 60px;
    border-radius: 10px;
}
/* Form de contact */
#contactDiv{
    display: flex; align-items: center; justify-content: center;
    position: fixed; top: 0; left: 0;
    background-color: #0f0f0e;
    z-index: 5; visibility: hidden;
    width: 100%; height: 100%;
}
#contactDiv > div {
    height: 90%; width: 40%;
    background-color: #191716; color: #D4D2D5;
    border-radius: 10px;
    display: flex; flex-direction: column; justify-content: flex-start; align-items: center;
}
#contactDiv > div > div{
    width: 100%; height: 15%;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    box-sizing: border-box; margin: 2% 2% 0 2%; padding: 10px;
}
#contactDiv > div > div > button{
    font-size: 2rem; color: #D4D2D5;
    margin: 0;padding: 0; border: none;
    cursor: pointer;
    background-color: transparent;
    align-self: flex-end;
}
#contactDiv > div > div > h2{
    margin: 0;padding: 0;
    font-size: 3rem;
}
#contactDiv > div > div > span{
    font-size: 1.2rem;
}
#contactDiv > div > hr{
    width: 90%;
}
#contactDiv > div > form{
    width: 100%; height: 75%;
    display: flex; flex-direction: column; align-content: center; align-items: center; justify-content: center;
}
#contactDiv > div > form > div{
    width: 100%;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
}
#contactDiv > div > form > div > label{
    font-size: 1.3rem;
}
#contactDiv > div > form > div > input{
    width: 65%; height: 30%; border-radius: 20px;
}
#contactDiv > div > form > div:first-of-type,
#contactDiv > div > form > div:nth-of-type(2){
    height: 20%;
}
#contactDiv > div > form > div:nth-of-type(3){
    height: 40%;
}
#contactDiv > div > form > div:nth-of-type(3) > textarea{
    width: 65%; height: 50%; border-radius: 7px;
}
#contactDiv > div > form > div:nth-of-type(4){
    height: 20%; 
}
#contactDiv > div > form > div:nth-of-type(4) > input{
    height: 60%; font-size: 2.5rem;
}
#contactDiv input[type="submit"]{
    cursor: pointer;
}

@media screen and (max-width : 800px)
{
    nav{
        display: none;
    }

    /* Header */
    header > div:last-of-type{
        display: flex; flex-direction: column; justify-content: center;
    }
    header a{
        width: 60dvw;
    }

    /* Projects */
    #projectHeader > div{
        flex-direction: column; justify-content: space-around; align-items: center;
        height: 40%;
    }
    #projectHeader >div label{
        font-size: 2rem;
    }
    #projectHeader >div select{
        font-size: 1.80rem;
    }
    #projects{
        padding-right: 0;
    }
    .project{
        flex: 0 0 95%;
    }
    .buttonProject > button{
        font-size: 5rem;
    }
    #projectListing{
        width: 80%;
    }

    /* Project Presentation */
    #projectPresentation > div:last-of-type button{
        border-radius: 20px;
    }
    #projectPresentation > div:first-of-type > p{
        font-size: 1.25rem;
    }
    
    /* Skill */
    #skillSection .sectionTitle{
        font-size: 6rem;
    }
    #skillCarrousel > .carrouselElement > div:last-of-type img{
        max-width: 80%;
    }
    #skillCarrousel > .carrouselElement > div:first-of-type > h3{
        font-size: 3.2rem;
    }

    /* About */
    #aboutContent > div:first-of-type p{
        font-size: 1.4rem;
    }

    /* Contact */
    #contactDiv > div{
        width: 80%;
    }
}

@media screen and (max-width : 450px) {
    .sectionTitle{
        font-size: 3.4rem !important;
    }
    /* Header */
    header a{
        width: 80dvw;
    }

    /* projects */
    #projectHeader >div select{
        width: 55%;
    }
    .buttonProject{
        display: none;
    }
    #projects{
        padding: 0;height: 60%;
    }
    #projectListing{
        width: 100%;
    }

    /* Project Presentation */
    #projectPresentation > div:last-of-type button{
        height: 80%;
    }
    #slider{
        width: 95%; height: 60%;
    }
    #slider > img{
        display: none;
    }
    #sliderContent > div{
        min-width: 85%; max-width: 85%;
    }
    #projectPresentation > div:first-of-type{
        flex-direction: column;
    }
    #projectPresentation > div:first-of-type > p{
        width: 95%; margin-right: 0;
    }

    /* Skills */
    #skillSection > div:last-of-type > div:nth-of-type(odd){
        display: none;
    }
    #skillCarrousel > .carrouselElement > div:first-of-type > h3{
        font-size: 2.8rem;
    }
    #skillCarrousel{
        width: 85%; 
    }
    #skillCarrousel > .carrouselElement{
        height: 90%; width: 85%; min-width: 85%;
        border: 3px solid black; border-radius: 20px; border-collapse: collapse;
    }
    /* About */
    #aboutContent > div:first-of-type{
        flex-direction: column;
    }
    #aboutContent > div:first-of-type p{
        width: 80%; font-size: 1.36rem;
    }

    /* Contact */
    #contactDiv > div > form > div > label{
        font-size: 1.6rem;
    }
    #contactDiv > div > form > div > input, #contactDiv > div > form > div:nth-of-type(3) > textarea{
        width: 90%; font-size: 1.4rem;
    }
    #contactDiv > div > form > div:nth-of-type(3) > textarea{
        height: 80%;
    }
}