/* =========================================================================
   _mobile_nav.css — Bottom Navigation Bar + menu "Plus"
   Visible uniquement sur mobile/tablette (≤ 768px)
   ========================================================================= */

.bottom-nav { display: none; }
.bottom-nav-more-overlay { display: none; }
.bottom-nav-more-panel { display: none; }

@media (max-width: 768px) {

    .sidebar { display: none !important; }

    body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }

    /* ── Barre principale ── */
    .bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0; left: 0; right: 0;
        height: 64px;
        background: #ffffff;
        border-top: 1px solid rgba(0,0,0,0.08);
        z-index: 200;
        justify-content: space-around;
        align-items: center;
        padding-bottom: env(safe-area-inset-bottom);
        box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
    }

    /* ── Item ── */
    .bottom-nav__item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        flex: 1;
        height: 100%;
        text-decoration: none;
        color: #999999;
        transition: color 0.2s ease;
        position: relative;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        font-family: inherit;
    }

    .bottom-nav__icon {
        font-size: 20px;
        line-height: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
    }

    .bottom-nav__label {
        font-size: 10px;
        font-weight: 500;
        line-height: 1;
        white-space: nowrap;
    }

    .bottom-nav__item.active { color: #667eea; }

    .bottom-nav__item.active::before,
    .bottom-nav__item--more.open::before {
        content: '';
        position: absolute;
        top: 6px;
        width: 32px;
        height: 32px;
        background: rgba(102,126,234,0.1);
        border-radius: 10px;
    }

    .bottom-nav__item:hover { color: #667eea; }
    .bottom-nav__item--more.open { color: #667eea; }

    /* ── Overlay fond sombre ── */
    .bottom-nav-more-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0);
        z-index: 198;
        pointer-events: none;
        transition: background 0.25s ease;
    }

    .bottom-nav-more-overlay.open {
        background: rgba(0,0,0,0.35);
        pointer-events: all;
    }

    /* ── Panneau Plus + Panneau QR ── */
    .bottom-nav-more-panel {
        display: block;
        position: fixed;
        bottom: 64px;
        left: 12px; right: 12px;
        background: #ffffff;
        border-radius: 16px;
        z-index: 199;
        padding: 8px 0 4px;
        box-shadow: 0 -4px 24px rgba(0,0,0,0.12);
        transform: translateY(110%);
        transition: transform 0.3s cubic-bezier(0.32,0.72,0,1);
    }

    .bottom-nav-more-panel.open { transform: translateY(0); }

    .bottom-nav-more-panel__handle {
        width: 36px;
        height: 4px;
        background: #e0e0e0;
        border-radius: 2px;
        margin: 0 auto 12px;
    }

    .bottom-nav-more-panel__title {
        font-size: 11px;
        font-weight: 600;
        color: #999;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        padding: 0 20px 8px;
    }

    .bottom-nav-more-panel__item {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 14px 20px;
        text-decoration: none;
        color: #1a1a1a;
        font-size: 15px;
        font-weight: 500;
        border-bottom: 1px solid #f5f5f5;
        transition: background 0.15s ease;
    }

    .bottom-nav-more-panel__item:last-child { border-bottom: none; }
    .bottom-nav-more-panel__item:hover { background: #f8f8f8; }
    .bottom-nav-more-panel__item--danger { color: #e24b4a; }

    .bottom-nav-more-panel__icon {
        font-size: 20px;
        width: 28px;
        text-align: center;
        flex-shrink: 0;
    }
}
