* {
    margin: 0;
    padding: 0;
    font-family: "Open Sans", sans-serif;
}

::selection {
    background-color: rgb(79, 172, 189);
    /* Couleur de fond de la sélection */
    color: white;
    /* Couleur du texte dans la sélection */
}


/********************************* HEADER *******************************/

header {
    background-color: white;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1;
    filter: drop-shadow(0px 0px 5px black);
}



#slash {
    position: relative;
}

#slash::before {
    content: "";
    position: absolute;
    top: 15px;
    /* Positionne le slash un peu plus bas */
    left: 6;
    /* Aligne le slash avec le bord gauche */
    width: 100%;
    /* S'étend sur toute la largeur */
    height: 64px;
    /* Définit une hauteur pour le slash */
    background-color: rgb(79, 172, 189);
    /* Couleur du slash */
    transform: rotate(-7deg);
    /* Inclinaison */
    transform-origin: top left;
    z-index: 3;
    /* Assure que le slash reste au-dessus des autres éléments */
}

#slash2 {
    position: relative;
    /* Nécessaire pour le pseudo-élément */
}

#slash2::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 99px;
    width: 100%;
    height: 135px;
    background-color: rgb(237, 180, 64);
    transform: rotate(-7deg);
    transform-origin: top left;
    z-index: 2;
}

nav {
    display: flex;
    position: relative;
    z-index: 100;
    align-items: center;
    justify-content: space-between;
}



header img {
    width: 145px;
}

#header_menu {
    width: 100%;
    align-items: center;
    display: flex;
    margin-left: 2%;
}

.nav_links {
    display: flex;
}

.nav_links li {
    position: relative;
    list-style: none;
    width: 200px;
    text-align: center;
    padding: 18px 0px;
    border-radius: 16px;
    text-align: start;
}

.nav_links li:first-child {
    width: 98px;
}

.nav_links li:nth-child(3) {
    width: 135px;
}

.nav_links li::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 0px;
    height: 3px;
    width: 25%;
    background-color: #0097a7;
    transition: width 0.3s ease-in-out;
}

.nav_links li:hover::after {
    width: 75%;
}

.nav_links span {
    font-size: 17px;
}

#log_area {
    display: flex;
    position: absolute;
    right: 10px;
    top: 31%;
    gap: 5px;
}


#login_button {
    display: none;
    position: absolute;
    right: 20px;
    padding: 10px;
    font-size: 24px;
    background-color: rgb(237, 180, 64);
    color: white;
    border-radius: 17px;
    transition: filter 0.5s, background-color 0.5s, color 0.5s, padding 0.5s;
}

#login_button:hover {
    background-color: rgb(79, 172, 189);
    filter: drop-shadow(0px 0px 8px black);
}

#login_button.active {
    display: flex;
}

#admin_button {
    padding: 10px;
    font-size: 24px;
    background-color: rgb(237, 180, 64);
    color: white;
    border-radius: 17px;
    transition: filter 0.5s, background-color 0.5s, color 0.5s, padding 0.5s;
}

#admin_button:hover {
    background-color: rgb(79, 172, 189);
    filter: drop-shadow(0px 0px 8px black);
}

#logout_button {
    padding: 10px;
    font-size: 24px;
    background-color: rgb(237, 180, 64);
    color: white;
    border-radius: 17px;
    transition: filter 0.5s, background-color 0.5s, color 0.5s, padding 0.5s;
}

#logout_button:hover {
    background-color: red;
    filter: drop-shadow(0px 0px 8px black);
}

a {
    text-decoration: none;
    color: black;
}

/********************************* MAIN *******************************/

.qualibat {
    width: 93px;
    position: absolute;
    right: 45px;
    top: 8px;
}

main {
    margin-top: 144px;
}

.container {
    display: flex;
    margin: 60px 14%;
}


/********************************* FOOTER *******************************/

footer {
    display: flex;
    justify-content: center;
    background-color: white;
    filter: drop-shadow(0px 0px 5px black);
    width: 100%;
    height: 200px;
    align-items: center;
}

.footer_links {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-around;
}

.footer_links li {
    list-style: none;
}

footer a {
    font-weight: bold;
    color: rgb(79, 172, 189);
}

footer a:hover {
    text-decoration: underline;
}

/*******************************************************************************************************************/

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



    nav {
        justify-content: center;
    }

    #header_menu {
        position: fixed;
        display: flex;
        flex-direction: column;
        right: -150%;
        top: 136px;
        height: 450px;
        background-color: #ffffff3d;
        width: 100%;
    }

    #burger {
        position: fixed;
        top: 50px;
        right: 50px;
        width: 30px;
        height: 24px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        cursor: pointer;
        transition: 0.3s ease-in-out;
    }

    #burger.active {
        transform: rotate(180deg);
    }


    #burger span {
        display: block;
        width: 100%;
        height: 4px;
        background-color: #0097a7;
        transition: all 0.3s ease-in-out;
    }

    #burger.active span:nth-child(1) {
        transform: translateY(10px) rotate(45deg);
        background-color: #f5a623;
    }

    #burger.active span:nth-child(2) {
        opacity: 0;
        /* Ligne centrale disparaît */
    }

    #burger.active span:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg);
        background-color: #f5a623;
    }




    .nav_links {
        flex-direction: column;
    }

    .qualibat {
        position: absolute;
        top: 289px;
    }

    #log_area {
        display: flex;
        flex-direction: column;
        position: initial;
    }

    #contact_button {
        position: initial;
    }

    #slash::before {
        width: 101%;
        top: 0px;
        left: -12px;
    }


}