html, body {
    height: 100%;
    margin: 0;
}

main {
    flex: 1;
}
:root {
    --header:#E6E7E9;
    --text-gris: #666666;
    --noir-blanc:#000000;
    --orange: #E84D0E;
    --ombre-noir-blanc: #000000;
    --bg-base:#FAF5E1;
    --btn:#95A57E;
    --tableau:#E4E4E4;
    --ligne-impair:#FAF5E1;
    --selected: rgba(222, 245, 187, 0.800);
}
.dark {
    --header:#E6E7E9;
    --text-gris:#999999;
    --noir-blanc:#FFFFFF;
    --orange: #e0602d;
    --ombre-noir-blanc: #FFFFFF;
    --bg-base:#050A1E;
    --btn:#95A57E;
    --tableau:#B7B7B7;
    --ligne-impair:#121b3b;
    --selected:rgba(222, 245, 187, 0.525);
}

body{
    background-color: var(--bg-base);
    color: var(--texte);
    display: flex;
    position: relative;
    flex-direction: column;
}
/*css du header*/
header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    top: 0; 
    left: 0;
    position: fixed;
    background-color: var(--header);
    padding: 0.7em 0;
    z-index: 1000;
    width: 100%;
    box-shadow: 0px 3px 20px black;
}

header article {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .pseudo {
    margin-left: 5em;
    font-weight: bold;
    font-size: 1.5em;
    font-style: italic;
}

header nav {
    display: flex;
    align-items: center;
}

header img {
    width: 3em;
    height: auto;
}
#toggle-theme {
    color: var(--texte);
    padding: 0;
    border: none;
    background-color: transparent;
}

#toggle-theme img {
    width: 2em;
}

header nav ul {
    display: flex;
    margin-left: auto;
    margin-right: 3em;
    align-items: center;
    margin-bottom: 0;
}

header li {
    list-style-type: none;
}

header nav a {
    margin-left: 2em;
    text-decoration: none;
    color: #000000;
}

header .btn_inscription, .btn_connection, .btn_deconnection, .boutons_admin{
    background-color: var(--btn);
    border-radius: 0.4em;
    color: #FFFFFF;
    border: 0.1em black solid;
    padding: 0.1em 0.3em;
}

header article button {
    display: none;
}

header .trait-horizontal {
    display: none;
}

.profil {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    top: 6em;
    right: 5%;
    background-color: var(--header);
    display: none;
    border-radius: 1.5em;
    box-shadow: 0px 0px 4px 0px rgb(0, 0, 0);
    padding: 0 2em 0.5em 0.5em;
    justify-content: center;
    text-align: left;
}

.profil_div {
    width: 100%;
    text-align: center;
}

footer {
    background-color: #E6E7E9;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 1.2em 0;
    box-shadow: 0px -3px 20px black;
}

footer article {
    flex-basis: 15%;
    flex-grow: 1;
    margin: 0 7em;
}

footer article p {
    padding: 0;
    margin: 0;
}

footer article img {
    margin-left: 1.2em;
}

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

    body {
        background-color: var(--header);
    }
     main {
        background-color: var(--bg-base);
     }

    header {
        position: relative;
        
    }

    header .pseudo {
        margin-left: 2em;
        font-size: 1em;
        font-style: italic;
    }

    header>article {
        width: 100%;
        justify-content: space-between;
    }

    header img {
        margin-left: 1em;
    }

    header article button {
        display:block;
        margin-right: 1em;
        border: none;
    }

    header button img {
        width: 2.5em;
        height: auto;
        transition: opacity 0.5s ease;
    }

    header li a {
        margin-left: 0;
        color: #000000;
    }

    .menu {
        flex-direction: column;
        position: absolute;
        left: 0;
        right: 0;
        width: 100%;
        background-color: var(--header);
        z-index: 999;
        margin: 0;
        padding: 0;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transition: max-height 0.5s ease, opacity 0.5s ease;
    }

    .menu li {
        margin-bottom: 0.7em;
    }

    .menu.active {
        max-height: 500px;
        opacity: 1;
    }

    .menu article {
        display: flex;
        gap: 0.5em;
    }

    header .btn-conn {
        margin-top: 0.7em;
    }

    .menu .trait-horizontal {
        display: block;
        height: 1px;
        width: 17em;
        background-color: #000000;
    }

    footer {
        flex-direction: column;
        gap: 2em;
    }
}