:root {
    --nav-hsl1: 180 100% 75%;
    --lien1-hsl: 60 70% 70%;
}


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


*, *::before, *::after, html {
    box-sizing: border-box;
}

a {
    text-decoration: none;

    &:hover {
        text-decoration: underline;
    }
}

.parser-erreur {
    border: 2px solid red;
    background-color: white;
    white-space: nowrap;
    &::before {
        font-size: 66%;
        content: " ❌ ";
    }
}


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


body {
    background-color: white;
    width: 100vw;
    height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1rem;
    color: hsl(0 0 25%);
    margin: 0;
    padding: 0;

    display: grid;
    grid-template-columns: 16rem 1fr 19rem;
    grid-template-rows: 4rem 1fr;
    grid-template-areas:
            "selects1 main selects2"
            "nav main aside";
}


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


#selects1 {
    grid-area: selects1;
}

#selects2 {
    grid-area: selects2;
}

.selects {
    padding-top: 1rem;
    text-align: center;

    > select {
        color: white;
        background-color: hsl(0 100% 25%);
        border: none;
        margin: 0 2px;
        padding: 0.4rem;

        font-family: sans-serif;
        font-size: 0.7rem;
    }
}


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


nav {
    grid-area: nav;
}

aside {
    grid-area: aside;
}

nav, aside {
    max-height: 100vh;
    overflow: hidden auto;

    font-family: var(--pfont-family);
    font-size: var(--pfont-size);
    text-align: center;

    .menu {
        display: flex;
        flex-direction: column;
        gap: 1rem;

        background-color: hsl(20 75% 35%);
        border-radius: 5rem 5rem 2rem 2rem;
        width: fit-content;
        margin: 0 auto 2rem auto;
        padding: 1rem;

        a {
            color: hsl(var(--lien1-hsl));
        }

        > .entete {
            text-align: center;

            > div:nth-child(1) {
                color: white;
                font-weight: bolder;
                font-size: 133%;
            }

            > div:nth-child(2) {
                color: hsl(var(--nav-hsl1));
            }
        }
    }
}



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


nav .menu {
    > .debut-fin {
        text-align: right;
        text-transform: uppercase;
    }

    > .section {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;

        > :first-child {
            font-family: sans-serif;
            font-size: 0.8rem;
            color: white;
            text-align: right;
        }

        > .sous-section {
            width: 100%;
            display: flex;
            flex-direction: row;
            flex-wrap: nowrap;
            justify-content: space-between;

            > a {
                color: hsla(var(--nav-hsl1) / 0.75);

                &:first-of-type {
                    padding-right: 1rem;
                }
                &:last-of-type {
                    padding-left: 1rem;
                }
                &:hover {
                    color: hsla(var(--nav-hsl1) / 1.0);
                    text-decoration: none;
                }
            }

            > div {
                color: hsl(60 30% 90%);
                text-transform: uppercase;
            }
        }
    }

    > .indexes {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        gap: 0.5rem;
        text-align: right;
    }
}


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


main {
    grid-area: main;
    padding: 2rem 1rem 5rem 1rem;
    overflow: hidden visible;

    h1, h2, h3, h4, h5, h6 {
        font-family:  var(--pfont-family);
        text-transform: uppercase;
        text-align: center;
    }
}
