header {
    margin-bottom: 0;
    position: relative;
    background-color: #2f435e;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 5em;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    z-index: 10;
    border-bottom: 3px solid #000;
    

}

header h1 {
    margin: 0;
    margin-right: 0;
}

header a {
    height: 100%;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
    padding: 0;
}

.logo {
    width: 8em;
    height: 100%;
    margin-left: 1em;
    background-color: #2f435e;
    border: none;
    border-radius: 8px;
}

.logo:hover {
    background-color: #4b5e65;
}

.profile-button img {
    width: 8em;
    height: 80%;
    object-fit: cover;
    border: none;
    padding: 0;
}

.profile-button {
    width: 8em;
    height: 100%;
    background-color: #2f435e;
    border: none;
}

.langue {
    font-size: 1.2em;
    margin-right: 5%;
    border-radius: 8px;
    width: 5em;
    height: 80%;
    align-items: center;
}

.langue a {
    display: block;
    width: 100%;
    height: 100%;
    line-height: 3em;
    text-decoration: none;
}

.langue:hover {
    background-color: #4b5e65;
    color: #fff;
}

.header-navigation {
    margin-right: 20%;
    height: 100%;
    width: 80%;
    background-color: #2f435e;

}

.header-navigation ul {
    list-style: none;
    display: flex;
    height: 100%;
    align-items: center;
    

}

.header-navigation li {
    background-color: #2f435e;
    height: 80%;
    width: 10em;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    display: block;
    text-align: center;
    align-items: center;
    margin-left: 2%;
}

.header-navigation li:hover {
    background-color: #4b5e65;
    
}

.header-navigation a:hover {
    color: #fff;
}

.header-navigation a {
    display: block;
    text-decoration: none;
    color: #fff;
    height: 100%;
    width: 100%;
    line-height: 4em;
    white-space: nowrap;

}




@media (max-width: 768px) {
    /* Cachez le bouton burger sur les petits écrans */


    /* Masquez la navigation par défaut sur les petits écrans */
    .header {
        position: sticky;
        z-index: 999;
        height: 1em;
        top: 0;
        
    }

    .header-navigation {
        z-index: 999;
    }

    .header-navigation ul,
    .header-navigation li {
        display: block;
    }


    .header-navigation li {
        width: 100%;
        height: 3em;
        margin-left: 0;
        text-align: center;
        border-bottom: 1px solid #777;
        margin-top: 0.1em;

    }

    .header-navigation ul {
        margin: 0;
        height: auto;
        background-color: black;
        padding: 0;
        border-radius: 8px;


    }



    #menu-button {
        height: 100%;
        width: 20%;
        order: 2;
        align-items: center;
        overflow: hidden;
        background: #000;
        color: #fff;
        line-height: 50px;
        text-align: center;
        font-size: 40px;
        cursor: pointer;
        transition: all .5s;
        line-height: 2em;
        border-radius: 8px;
    }


    #menu-button::after {
        content: 'x';
    }

    #menu-button.close {
        color: #fff;
        background: #2f435e;
    }

    #menu-button.close:hover {
        background-color: #4b5e65;
    }

    #menu-button.close::after {
        content: '≡';
    }

    #menu {
        transition: transform .5s;
        position: absolute;
        width: 100%;
        
        z-index: 1;
        transform: translateY(-40em);

    }

    #menu.show-menu {
        transform: translateY(5em);
    }


}