
/* ==========================================
   MENU PRINCIPAL - COMPTEUR BIZMANS
   Ordinateur, tablette et smartphone
========================================== */

/* MENU GLOBAL */

.navbar {
    position: relative;
    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;
    min-height: 65px;

    padding: 10px 25px;

    background: #1e293b;
    color: #ffffff;

    box-sizing: border-box;
}

/* LOGO */

.navbar .logo {
    display: flex;
    align-items: center;
    gap: 10px;

    color: #ffffff;
    font-size: 19px;
    font-weight: 700;

    white-space: nowrap;
}

.navbar .logo i {
    color: #38bdf8;
    font-size: 23px;
}

/* LISTE DU MENU */

.navbar .menu {
    display: flex;
    align-items: center;
    gap: 8px;

    list-style: none;
    margin: 0;
    padding: 0;
}

/* ELEMENTS */

.navbar .menu li {
    margin: 0;
    padding: 0;
}

/* LIENS */

.navbar .menu li a {
    display: flex;
    align-items: center;
    gap: 7px;

    padding: 12px 14px;

    color: #e2e8f0;
    text-decoration: none;

    font-size: 14px;
    font-weight: 500;

    border-radius: 7px;

    transition: background 0.2s ease, color 0.2s ease;
}

/* SURVOL */

.navbar .menu li a:hover {
    background: #334155;
    color: #ffffff;
}

/* PAGE ACTIVE */

.navbar .menu li a.active {
    background: #0ea5e9;
    color: #ffffff;
}

/* BOUTON HAMBURGER */

.navbar .menu-toggle {
    display: none;

    background: transparent;
    border: none;

    color: #ffffff;
    font-size: 25px;

    cursor: pointer;

    padding: 8px 10px;
    border-radius: 6px;
}

.navbar .menu-toggle:hover {
    background: #334155;
}

/* ==========================================
   TABLETTES ET SMARTPHONES
========================================== */

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

    .navbar {
        flex-wrap: wrap;
        min-height: 60px;
        padding: 10px 16px;
    }

    /* Affichage du bouton */

    .navbar .menu-toggle {
        display: block;
    }

    /* MENU FERMÉ */

    .navbar .menu {
        display: none;

        flex-direction: column;
        align-items: stretch;
        gap: 4px;

        position: absolute;
        top: 100%;
        left: 0;
        right: 0;

        width: 100%;

        padding: 12px 16px;

        background: #1e293b;

        box-sizing: border-box;

        box-shadow: 0 8px 15px rgba(0, 0, 0, 0.20);
    }

    /* MENU OUVERT */

    .navbar .menu.show {
        display: flex;
    }

    /* LIENS SUR MOBILE */

    .navbar .menu li {
        width: 100%;
    }

    .navbar .menu li a {
        width: 100%;
        min-height: 46px;

        padding: 12px 15px;

        box-sizing: border-box;

        font-size: 15px;
    }

    .navbar .menu li a:hover {
        background: #334155;
    }

    .navbar .menu li a.active {
        background: #0ea5e9;
    }

}

/* ==========================================
   PETITS SMARTPHONES
========================================== */

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

    .navbar {
        padding: 10px 12px;
    }

    .navbar .logo {
        font-size: 16px;
    }

    .navbar .logo i {
        font-size: 20px;
    }

    .navbar .menu-toggle {
        font-size: 23px;
    }

}
