.navbar>.container {
  display: flow !important;
}

.navbar {
  margin-bottom: 20px !important;
  padding-top: 0px !important;
}

.navbar>.logo {
  width: 150px;
}

.navbar .nav-link.active {
    font-weight: 600;
}

.nav-icon-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    padding: 0 !important;
    border-radius: 8px;
}

.dropdown-toggle {
    margin-right: 10px;
}

.nav-icon-link .bi {
    font-size: 1.25rem;
    line-height: 1;
}

.nav-message-badge,
.tabbar-message-badge {
    display: inline-grid;
    place-items: center;
    min-width: 1.25rem;
    height: 1.25rem;
    border-radius: 999px;
    background: var(--bs-danger);
    color: #fff;
    font-size: .72rem;
    line-height: 1;
}

.nav-message-badge {
    position: absolute;
    top: -.15rem;
    right: calc(-.15rem + 10px);
}

.tabbar-message-badge {
    position: absolute;
    top: .15rem;
    right: .8rem;
}

.nav-icon-link__label,
.tabbar-menu__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.main-mobile-menu {
    display: flex !important;
    flex-direction: row !important;
    gap: .35rem;
    overflow-x: auto;
    overflow-y: visible;
    padding-bottom: .25rem;
    scrollbar-width: thin;
}

.main-mobile-menu .nav-item {
    flex: 0 0 auto;
}

.dropdown-menu[data-bs-popper] {
    right: 0 !important;
    left: auto !important;
}


/*---------Menu Tablet-------------------------------------------------*/

/* évite que le contenu passe sous la tabbar */
body {
    padding-bottom: 58px!important;
}

/* conteneur global */
.tabbar {
    position: fixed;
    left: 0;
    bottom: 0;
    z-index: 1050;
    width: 100%;
    background: #282828;
    color: #fff;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, .25);
}

/* bande sélecteur rôle */
.tabbar-role {
    display: flex;
    justify-content: center;
    padding: 6px 10px;
    background: #333;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.tabbar-role__form {
    width: 100%;
    max-width: 420px;
}

.tabbar-role__select {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

/* menu mobile */
.tabbar-menu {
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
    background: #282828;
}

.tabbar-menu__item {
    flex: 1 1 0;
    min-width: 0;
}

.tabbar-menu__link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    padding: 6px 4px;
    color: #fff;
    text-decoration: none;
    text-align: center;
}

.tabbar-menu__icon {
    font-size: 1.25rem;
    line-height: 1;
}

.tabbar-menu__link::after {
    bottom: calc(100% + 8px);
}

/* actif + hover */
.tabbar-menu__item.active .tabbar-menu__link,
.tabbar-menu__link:hover {
    background: #0074BC;
    border-bottom: 3px solid #00d9ff;
}

/* si trop petit : icône seulement */
@media (max-width: 420px) {
    .tabbar-menu__link {
        min-height: 54px;
    }

    .tabbar-menu__icon {
        font-size: 1.45rem;
    }

    body {
        padding-bottom: 64px;
    }
}

/* si beaucoup d'items : icône seulement */
