
/*------------------------------------- HEADER --------------------------------*/
.header{
    position: sticky;
    top: 0;
    z-index: 10;
}

header{
    display: flex;
    justify-content: flex-start;
    align-items: center;
    position: absolute;
    top: 0;
    padding: 2em 1em;
    z-index: 200;
}

header.scrolled{
    background-color: #ffffff29;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 4em;
    margin: 1.5em 1em;
    padding: 0.5em 0;
    
}

.container_header{
    display: flex;
    align-items: center;
    padding: 0 2em;
}

.container_img_header{
    position: relative;
}

.img_section{
    width: 100%;
    height: auto;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.img_header{
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
    border-bottom: 1px solid var(--primary-color);
}

.CV{
    position: absolute;
    bottom: 90px;
    right: 60px;
    text-decoration: none;
    color: var(--primary-color);
    border-radius: 2em;
    padding: 0.7em 0.9em;
    font-size: 0.9em;
    border: 1px solid var(--primary-color);
    font-family: "Sofia pro soft", sans-serif;
    background-color: rgba(255, 255, 255, 0.70);
    transition: all 0.4s ease;
}

.CV:hover{
    background-color: var(--primary-color);
    color: white;
}

.container_imgheader{
    position: absolute;
    top: 0;
}

.logo{
    width: 10%;
}

.btn_header {
    display: flex;
    gap: 1em;
}

.btn{
    text-decoration: none;
    color: var(--primary-color);
    font-family: "Sofia pro soft", sans-serif;
    border: 1px solid var(--primary-color);
    border-radius: 1.5em;
    padding: 0.4em;
    white-space: nowrap;
}

.btn-scrolled{

}

.btn_select{
    background-color: var(--primary-color);
    font-family: "Sofia pro soft", sans-serif;
    border-radius: 1.5em;
    padding: 0.4em;
    color: white;
}


/*------------------------------------------ RESPONSIVE -----------------------------*/
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    margin-left: auto;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 1em;
}

@media (max-width: 768px) {
    .header{
        position: static;
    }

    .logo{
        width: 15%;
        position: relative;
        z-index: 150;
    }

    .btn_header {
        flex-direction: column;
        position: absolute;
        top: 0;
        right: 0;
        left: 0;
        background-color: white;
        padding: 6em 3em 3em 3em;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        z-index: 99;
        width: 100%;
        box-sizing: border-box;
        border-bottom-left-radius: 1em;
        border-bottom-right-radius: 1em;

        transform: translateY(-100%);
        transition: transform 0.6s ease;
        pointer-events: none; /* ignore les clics quand caché */
    }

    .btn_header.active {
        transform: translateY(0);
        pointer-events: auto; /* clics réactivés */
    }

    .burger {
        display: flex;
        z-index: 150;
    }

    .img_section{
        border-bottom: 1px solid var(--primary-color);
    }

    .img_header {
        transform: scale(1.15); /* zoom */
        transform-origin: center;
    }


    #linkedin{
        width: 1.4em;
        height: 1.4em;
    }

    #gmail{
        width: 1.7em;
        height: 1.25em;
    }

    #insta{
        width: 1.4em;
        height: 1.4em;
    }

    .CV{
        position: absolute;
        bottom: 15px;
        right: 20px;
        padding: 0.7em 0.9em;
        font-size: 0.5em;
    }

}




/*------------------------------------- FOOTER ------------------------------*/

footer{
    font-family: "elza-round-variable", sans-serif;
    font-variation-settings: "wght" 700;
    font-size: 1.05em;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 2.5em;
    padding: 3em 0;
}

.container_logo_footer{
    display: flex;
    flex-direction: row;
    gap: 1em;
    justify-content: center;
    align-items: center;
}
.logo_footer{
    width: 25px; /* ou essaye 2em / 3vw selon le cas */
    height: auto;
    display: block;
}

