/**
 * Fichier  : /menus/main/assets/css/menu.css
 * Fonction : style du menu principal
 */


/* ==================================================
   VARIABLES
================================================== */

:root {
    --menu_height: 95px;
}


/* ==================================================
   MENU
================================================== */

.menu {
    height: var(--menu_height);
    width: 100%;
}

.menu {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.menu {
    box-sizing: border-box;
    padding: 0 3em;
}


/* ==================================================
   POSITIONS
================================================== */

.menu.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}

.menu.nosticky {
    position: relative;
    width: 100%;
}


/* ==================================================
   BACKGROUND
================================================== */

.menu .background {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}

.menu .background {
    width: auto;
    height: var(--menu_height);
}


/*** ÉTATS ***/

.menu .background.sticky {
    box-shadow: 0 0 10px 0 #000;
    animation: FadeInDown .5s;
}

.menu .background.transparent {
    background: transparent;
}

.menu .background.colorful {
    background: var(--gradient__2);
}


/* ==================================================
   RESPONSIVE
================================================== */

@media screen and (max-width: 1024px) {

    :root {
        --menu_height: 75px;
    }

    .menu {
        padding: 0 1.5em;
    }

}