/* -------------
    SOMMAIRE
------------- */

/*
    @AUTHOR : Nicolas BOUDOT

    MOLÉCULE : NAV-MOBILE
    Styles des éléments de navigation mobile
*/



.molecule_widgets-mobile-bottom {
    z-index: 3;
}
.molecule_widgets-mobile-bottom .molecule_widgets-mobile-bottom__buttons {
    height: 37px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    @media (min-width: 992px) {
        .molecule_widgets-mobile-bottom {
            display: none;
        }
    }

    /* Si connecté au BO */
    body.admin-bar .molecule_widgets-mobile-bottom {
        /* top: 46px; */
    }

        @media (min-width: 992px) {
            body.admin-bar .molecule_widgets-mobile-bottom {
                /* top: 32px; */
            }
        }

.molecule_nav-mobile {
    position: fixed;
    bottom: 100%;
    left: 0;
    background-color: var(--c-primary);
    width: 100vw;
    /* 100% - Barre admin - Widgets Mobile */
    height: 100vh;
    transition: opacity .4s, transform .4s;
    top: 0;
    overflow-y: auto;
}
.molecule_widgets-mobile-bottom .molecule_nav-mobile {
    padding-top: 6rem;
    height: 100vh !important;
}

    /* Not active */
    .molecule_nav-mobile:not(.active) {
        pointer-events: none;
        opacity: 0;
        transform: translateY(-10%);
    }

    /* Connecté au BO */
    body.admin-bar .molecule_nav-mobile {
        /* 100% - Barre admin - Widgets Mobile */
        height: calc(100vh - 46px - 54px);
    }


/* Géneral */
.molecule_nav-mobile nav ul > li > a {
    display: block;
    color: var(--white);
    font-weight: 500;
    padding: 13px 30px;
    font-size: 2.2rem;
}

/* Niveau 1 */
.molecule_nav-mobile nav ul.first-level > li > a {
    text-transform: uppercase;
    position: relative;
}
    .molecule_nav-mobile ul.first-level > li.menu-item-has-children > a::after {
        font-size: 1.5rem;
    }

/* Barre des widgets (dont le btn-burger) */
.molecule_nav-mobile__widgets-bar {
    padding: 25px 30px;
    background-color: var(--gray-300);
}

/* Niveau 2 */
.molecule_nav-mobile nav ul.second-level {
    background-color: var(--white);
    transition: transform .5s, opacity .5s;
}

    @media (max-width: 991px) {
        /* Not hover */
        .molecule_nav-mobile nav ul.first-level li:not(.sfhover) ul {
            pointer-events: none;
            padding: 0;
            height: 0;
            opacity: 0;
            transform: translateY(-10px);
        }
    }

.molecule_nav-mobile nav ul.second-level > li > a {
    padding: 15px 30px;
    color: var(--c-primary);
}

.logo-nav-active-mobile {
    margin-bottom: 32px;
}
.logo-nav-active-mobile > a{
    padding-left: 30px;
}
