/**
 * Fichier  : /menus/main/assets/css/menu.css
 * Fonction : style du menu principal
 */


/* ==================================================
   VARIABLES
================================================== */

:root {
    --menu_height: 95px;
}


/* ==================================================
   MENU
================================================== */

.menu {
    width: 100%;
    height: var(--menu_height);
}

.menu {
    box-sizing: border-box;
}

.menu {
    padding: 0 3em;
}

.menu {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}


/* ==================================================
   POSITION
================================================== */

.menu.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}

.menu.nosticky {
    position: relative;
}

.menu.nosticky {
    width: 100%;
}

.menu.nosticky {
    background: var(--main-background);
}


/* ==================================================
   MENU BACKGROUND
================================================== */

.menu .background {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}

.menu .background {
    width: auto;
    height: var(--menu_height);
}


/* ==================================================
   MENU BACKGROUND STATES
================================================== */

.menu .background.sticky {
    box-shadow: 0 0 10px 0 #000;
}

.menu .background.sticky {
    animation: FadeInDown .5s;
}

.menu .background.transparent {
    background: transparent;
}

.menu .background.colorful {
    background: var(--menu-background);
    backdrop-filter: var(--glass-blur-soft);
    -webkit-backdrop-filter: blur(12px);
}


/* ==================================================
   LOGO BACKGROUND
================================================== */

.menu .logo .background_logo {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: -1;
}

.menu .logo .background_logo {
    width: 100%;
    height: var(--menu_height);
}

.menu .logo .background_logo {
    pointer-events: none;
}


/* ==================================================
   LOGO BACKGROUND STATES
================================================== */

.menu .logo .background_logo.hidden {
    display: none;
}

.menu .logo .background_logo.fadeInDown {
    display: block;
}

.menu .logo .background_logo.fadeInDown {
    background: var(--gradient-primary);
}

.menu .logo .background_logo.fadeInDown {
    animation: FadeInDown .5s;
}


/* ==================================================
   BUTTONS
================================================== */

.menu .buttons li a {
    display: flex;
    align-items: center;
    gap: .5em;
}


/* ==================================================
   RESPONSIVE
================================================== */

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

    :root {
        --menu_height: 75px;
    }

    .menu {
        padding: 0 1.5em;
    }

}