/* CONTAINER -------------------------------------------------------------------------------*/
#general_container{
    overflow: hidden;    
    transform-origin: center;
    border-radius: 15px;
    background-color: rgba(255, 255, 255, .6);
}

#nav_content_contener{
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

#content_contener{
    overflow: hidden;
    height: 100%;
    width: 100%;
}


/* NAV -------------------------------------------------------------------------------*/
h1, h2{
    height: 100% !important;
    box-sizing: border-box;
    border-right: var(--border);
}

h2{
    font-variation-settings: 'wght' 600;
    font-size: clamp(1.3rem, 1.25vw, 3rem);
    white-space: nowrap;
    cursor: pointer;
    width: fit-content;
}

h2 p{
    transition: 150ms all;
}

h2:hover p{
    text-decoration: var(--text_decoration);
    rotate: -12deg;
}

.active_categorie{
    text-decoration: var(--text_decoration);
}

/* ACCUEIL --------------------------------------------------------------------------------------------------*/
#accueil{
    position: absolute;
    background-color: rgba(210,210,210,1);
    /* background-color: white; */
    width: 100%;
    height: 100%;
    z-index: 100000000;
    display: none;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
    transition: 500ms opacity, 200ms background-color, 1000ms transform, 900ms margin-top;
    overflow: hidden;
    outline: var(--border);
}

#accueil.visible{
    display: flex;
}

#accueil span{
    outline: var(--border);
    display: block;
    width: 20%;
    height: 25%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: clamp(5rem, 6.5vw, 10rem);
    margin-left: 0px;
    z-index: 10;
    background-color: white;
    transition: 250ms background-color, 200ms opacity, 300ms rotate;
    cursor: default;
    rotate: 0deg;
}

#dg_contener{
    display: flex !important;
}

#dg_contener2{
    display: none !important;
}

.dg{
    font-size: clamp(1.7rem, 2vw, 7rem);
    font-family: "red_hat";
    line-height: 1.2;
}

#go{
    width: 100% !important;
    font-size: clamp(4rem, 4.5vw, 7rem) !important;
    font-family: "red_hat";
    font-variation-settings: 'wght' 400 !important;
    line-height: 1.2;
    cursor: pointer !important;
    rotate: 0deg !important;
    background-color: white !important;
}

#go:hover{
    background-color: rgba(210,210,210,1) !important;
}

/* CONTAINER PROJECTS -------------------------------------------------------------------*/
.container_content{
    flex-direction: row;
    height: 100% !important;
    position: relative;
    /* width: calc(100% + 4px); */
    width: 101%;
    display: none;
    /* will-change: display; */
    overflow-x: hidden;
    overflow-y: scroll;
}

.container_content_visible{
    display: flex !important;
}

.container_content_hidden{
    display: none !important;
}

.grid{
    position: relative;
    display: block;
    height: 100%;
    min-height: 100%;
}

#project_list_container{
    display: flex;
}

#project_container{
    width: 100%;
    opacity: 0;
    transition: 300ms opacity;
}

#experimentations_list_container{
    display: flex;
    position: relative;
    top: 0%;
    right: -200%;
}

#experimentation_container{
    width: 100%;
}

#project_list_container .list_element, #experimentations_list_container .list_element{
    position: absolute;
}

.list_element{
    position: relative;
    display: block;
    height: fit-content;
    overflow: hidden;
    outline: var(--border);
    background-color: white;
    box-sizing: border-box;
    transition: var(--transition);
    width: calc(33.3% - 2px);
    transition: 900ms margin-top, 900ms margin-left, 0ms opacity, 700ms top;
    margin: 0px 2px 0px 0px !important;
}

.list_element_hiden_desktop{
    margin-top: -105% !important;
    
}

.list_element_hiden_mobile{
    margin-left: unset !important;
}

.list_element_hiden_mobile_bis{
    margin-left: unset !important;
}

.experimentation{
    box-sizing: border-box;
}

.projets_elements, .contacts_elements, .cv_elements, .a_propos_elements, .experimentations_elements{
    opacity: 1;
    visibility: hidden;
    z-index: 900;
    transition: 900ms margin-top, 900ms margin-left, 0ms opacity, 700ms top;
    will-change: margin-top, opacity;
}

/* .projets_elements img, .experimentations_elements img{
    min-height: 400px !important;
} */

.contacts_elements img, .cv_elements img{
    filter: none !important;
}

.contacts_elements:hover .color_contacts{
    opacity: 1 !important;
}


.list_element:nth-child(3n){
    border-right: none !important;
}

.list_element img{
    width: 100%;
    height: auto;
    mix-blend-mode: darken !important;
    box-sizing: border-box;
    filter: saturate(0);
}

.projets_elements{
    visibility: visible;
    /* min-height: 500px; */
}

.color, .color_contacts{
    position: absolute;
    z-index: 0;
    top: 0%;
    left: 0%;
    width: 100%;
    height: 100%;
    inset: 0;
    background-color: rgba(210,210,210,1);
    opacity: 0;
    transition: 200ms opacity, 200ms background-color;
}

.list_element figcaption{
    position: relative;
    z-index: 10;
    width: 100%;
    height: fit-content;
    line-height: 1.5;
    padding: 20px;
    box-sizing: border-box;
    background-color: white;
    margin-top: -5px;
    box-sizing: border-box;
    overflow: hidden;
    border-top: var(--border);
}

.list_element figcaption h3{
    font-size: clamp(1.3rem, 1.15vw, 3rem);
    font-variation-settings: 'wght' 600;
    line-height: 1.3;
    width: fit-content;
}

.list_element figcaption h4{
    font-family: 'red_hat';
    font-size: clamp(1.1rem, 1vw, 3rem);
    font-variation-settings: 'wght' 450;
    width: fit-content;
}



/* CV ------------------------------------------------------------------------------*/
#cv_container{
    width: fit-content;
    height: 98%;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
}

#cv_container img{
    width: auto;
    height: 100%;
    position: relative;
    z-index: 2;
    outline: var(--border);
}

#cv_container a{
    position: relative;
    z-index: 0;
    width: 50px;
    height: fit-content;
    outline: var(--border);
    padding: 10px 10px 5px 12px;
    box-sizing: border-box;
    background-color: white;
}

#cv_container a img{
    width: 100%;
    height: auto;
    border: none;
    outline: none;
}




/* A PROPOS --------------------------------------------------------------------------*/
#a_propos_container{
    background-color: white;
    outline: var(--border);
    width: 40vw;
    min-width: 600px;
    height: fit-content;
    padding: 30px 40px;
    box-sizing: border-box;
}

#a_propos_container p{
    font-family: 'red_hat';
    font-size: clamp(1.15rem, 1.15vw, 3rem);
    font-variation-settings: 'wght' 400;
    opacity: 1 !important;
    line-height: 1.35;
    transform: unset !important;
}

.center{
    border-right: var(--border);
    border-left: var(--border);
    margin-left: 50%;
    transform: translate(-50%, 0%) !important;
}



/* MOBILE -----------------------------------------------------------------------------------------------*/
@media screen and (max-width: 1400px) {
    h2:hover p{
        text-decoration: var(--text_decoration) !important;
        rotate: -7deg !important;
    }
}

@media screen and (max-width: 1100px) {
    body{
        background-color: white;
    }

    .list_element{
        box-sizing: border-box;
        width: calc(50% - 2px) !important;
        height: fit-content;
        overflow: unset !important;
    }

    .list_element_hiden_desktop{
        margin-top: -160% !important;
    }

    .contacts_elements{
        margin-top: 0px;
    }

    .contacts_elements:last-of-type{
        border-bottom: none;
    }

    #a_propos_container{
        width: 70%;
        border-right: none;
        border-left: none;
        padding: 20px;
        min-width: unset;
    }

    .container_content{
        flex-direction: row;
        flex-wrap: wrap;
        /* height: fit-content !important; */
    }

    /* #project_list_container{
        height: fit-content !important;
    } */

    #cv_container{
        width: 100%;
        height: 100%;
        flex-direction: column;
        align-items: flex-start;
    }

    #cv_container img{
        width: 70%;
        height: auto;
    }

    .list_element figcaption{
        padding: 12px 15px 12px 15px !important;
    }
    
    .list_element figcaption h3{
        font-size: clamp(1.3rem, 2vw, 3rem);
    }
    
    .list_element figcaption h4{
        font-size: clamp(1.1rem, 1.15vw, 3rem);
    }

    h2:hover p{
        text-decoration: var(--text_decoration);
        rotate: -9deg;
    }
}

@media screen and (max-width: 800px) {

    #accueil{
        width: 101%;
    }

    #accueil span{
        width: 33.33%;
        height: 16.6%;
        font-size: clamp(3.7rem, 6.5vw, 10rem);
    }

    #dg_contener{
        display: none !important;
    }

    #dg_contener2{
        display: flex !important;
    }

    .dg{
        font-size: clamp(1.25rem, 2vw, 7rem);
        order: 6;
    }

    #go{
        font-size: clamp(2.7rem, 4.5vw, 7rem) !important;
    }

    .no_color{
        background-color: white !important;
    }

    #a_propos_container p{
        font-size: clamp(1.05rem, 1.15vw, 3rem);
    }
}

@media screen and (max-width: 650px) {
    .no_background{
        background-color: white !important;
    }

    .container_content{
        flex-direction: column;
        flex-wrap: nowrap !important;
        height: 100% !important;
        overflow-x:color_img_contener hidden;
        overflow-y: scroll;
    }

    .list_element{
        width: 100% !important;
        /* max-height: 60vh; */
        overflow: hidden !important;
    }

    .contacts_elements{
        overflow: visible !important;
    }

    .list_element figure{
        /* max-height: 60vh; */
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
    }

    .color_img_contener{
        max-height: 45vh;
        display: flex;
        justify-content: center;
        align-items: center;
        overflow: visible;
    }

    .list_element img{
        min-height: 250px;
    }

    /* .list_element figcaption{
        position: absolute;
        bottom: 0%;
    } */

    .list_element_hiden_desktop{
        margin-top: unset !important;
    }

    .list_element_hiden_mobile{
        margin-left: 105% !important;
    }
    
    .list_element_hiden_mobile_bis{
        margin-left: -105% !important;
    }

    .projets_elements, .contacts_elements, .cv_elements, .a_propos_elements, .experimentations_elements{
        will-change: margin-left, opacity;
    }
/* 
    #project_list_container, #experimentations_list_container{
        height: 100% !important;
        overflow-x: hidden;
        overflow-y: scroll;
    } */

    #content_contener{
        height: 100% !important;
        overflow: hidden;
    }
    

    #experimentations_list_container .list_element{
        margin-left: -105%;
    }

    #experimentations_list_container{
        right: 105%;
    }

    #a_propos_container{
        width: 100%;
    }

    #cv_container img{
        width: 100% !important;
        height: auto;
    }
}

.resize{
    /* position: sticky; */
    /* opacity: 0; */
    display: flex !important;
}