/* ===================================================== */
/* ================== RESET GLOBAL ===================== */
/* ===================================================== */

* {
    margin: 0;
    padding: 0;

    font-family: "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}


/* ===================================================== */
/* ====================== HEADER ======================= */
/* ===================================================== */

header {
    background-color: black;
    width: 100%;
    height: 100vh;
}

header div.image {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    padding: 0;

    border-bottom: 0.5em solid white;

    background-image: url(../images/oh-dear-background.png);
    background-position: center;
    background-size: 100%;
    background-position-y: top;
    filter: saturate(750%);
}

/* ===================================================== */
/* ======================= NAV ========================= */
/* ===================================================== */

nav {
    position: sticky;
    top: 0;
    z-index: 100;

    display: flex;
    justify-content: center;

    /* background-color: rgba(12, 0, 37, 0.403); */
}
nav > ul {
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: 80%;

    background-color: rgb(85, 0, 255);
}

nav ul {
    display: flex;
    align-items: stretch;
    height: 100%;

    list-style-type: none;
}

/* Une balise nav */
nav ul li {
    flex-grow: 1;
    display: flex;
    position: relative;
    width: 100%;

    background-color: rgba(0, 0, 149, 0.545);
}

nav a {
    align-content: center;
    width: 100%;
    padding: 0.5em 0;
    text-align: center;

    text-align: center;
    text-decoration: none;
    text-shadow: black 1px 1px 2px;
    color: white;
    
    font-size: 1em;
    background: linear-gradient(
        to top,
        white 0%,
        rgba(200, 0, 255, 0.333) 50%,
        rgba(200, 0, 255, 0.333) 100%
    );
    background-size: 100% 300%;
    background-position: top;

    transition: background-position 4s ease-out, font-size .5s ease-in-out;
}   
nav a:hover {
    font-size: 0.8em;
    background-position: bottom;

    transition: background-position 0.25s ease-out, font-size .25s ease-in-out;
}

/* Submenu ULs */
nav ul li ul {
    position: absolute;

    display: none;
    flex-direction: column;
    width: 100%;

    top: 100%; /* below parent */
    left: 0;

    background-color: rgba(200, 0, 255, 0.333);
}
/* Submenu LIs */
nav ul li ul li {
    display: flex;

    min-height: 100%;
}

/* Default: submenu opens to the right */
nav ul li ul li ul {
    top: 0;
    left: 100%;
}
nav ul li ul li ul.submenu-left {
    left: auto;
    right: 100%;
}

/* Show submenu on hover */
nav ul li:hover > ul {
    display: flex;
}
