/* Barre de navigation fixe en bas — style capsule (type Max It) */
body.has-bottom-nav {
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
}

body.has-bottom-nav .main-nav {
    display: none !important;
}

.mobile-bottom-nav {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10002;
    padding: 0 14px calc(12px + env(safe-area-inset-bottom, 0px));
    background: transparent;
    pointer-events: none;
    border: none;
    box-shadow: none;
}

.mobile-bottom-nav .mbn-inner {
    pointer-events: auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 520px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 28px;
    padding: 12px 8px 14px;
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.14),
        0 4px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.mbn-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 4px 2px;
    color: var(--gray);
    font-size: 11px;
    font-weight: 600;
    position: relative;
    max-width: 82px;
    text-align: center;
    line-height: 1.15;
    border-radius: 14px;
    transition: color 0.2s, background 0.2s;
}

.mbn-item i {
    font-size: 24px;
    line-height: 1;
    transition: transform 0.2s;
}

.mbn-item.mbn-active {
    color: var(--primary);
}

.mbn-item.mbn-active i {
    transform: translateY(-2px);
}

.mbn-item:hover {
    color: var(--primary);
    background: var(--light-pink);
}

.mbn-item.mbn-active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--secondary);
    opacity: 0.9;
}

.mbn-badge {
    position: absolute;
    top: -2px;
    right: 50%;
    transform: translateX(22px);
    min-width: 17px;
    height: 17px;
    padding: 0 5px;
    border-radius: 9px;
    font-size: 10px;
    font-weight: 700;
    line-height: 17px;
    text-align: center;
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 2px 6px rgba(255, 64, 129, 0.4);
}
