/* Menu footer mobile — réservation */

.ns-mbar {
    display: none;
}

@media (max-width: 900px) {
    body.ns-body {
        padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px));
    }

    body.ns-booking-open {
        padding-bottom: 0;
    }

    body.ns-booking-open .ns-mbar {
        display: none;
    }

    .ns-mbar {
        display: block;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 95;
        pointer-events: none;
    }

    .ns-mbar__bar,
    .ns-mbar__sheet {
        pointer-events: auto;
    }

    .ns-mbar__bar {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 0.35rem;
        padding: 0.55rem 0.65rem calc(0.55rem + env(safe-area-inset-bottom, 0px));
        background: rgba(255, 255, 255, 0.96);
        border-top: 1px solid rgba(5, 10, 24, 0.08);
        box-shadow: 0 -8px 28px rgba(5, 10, 24, 0.08);
        backdrop-filter: blur(12px);
    }

    .ns-mbar__btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.3rem;
        min-height: 58px;
        padding: 0.45rem 0.35rem;
        border: none;
        border-radius: 14px;
        background: transparent;
        color: rgba(5, 10, 24, 0.55);
        font-family: var(--ns-font-body);
        font-size: 0.68rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        cursor: pointer;
        transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    }

    .ns-mbar__btn-icon {
        display: grid;
        place-items: center;
        width: 28px;
        height: 28px;
    }

    .ns-mbar__btn-icon svg {
        width: 22px;
        height: 22px;
    }

    .ns-mbar__btn--featured {
        color: #fff;
        background: linear-gradient(165deg, var(--ns-red), var(--ns-red-dark));
        box-shadow: 0 6px 18px rgba(255, 45, 58, 0.35);
    }

    .ns-mbar__btn.is-active:not(.ns-mbar__btn--featured) {
        color: var(--ns-night);
        background: rgba(26, 53, 104, 0.08);
    }

    .ns-mbar__btn--featured.is-active {
        transform: translateY(-2px);
        box-shadow: 0 10px 24px rgba(255, 45, 58, 0.42);
    }

    .ns-mbar__sheet {
        position: absolute;
        left: 0.75rem;
        right: 0.75rem;
        bottom: calc(100% + 0.55rem);
        z-index: 2;
    }

    .ns-mbar__sheet-card {
        background: #fff;
        border-radius: 18px;
        box-shadow:
            0 16px 40px rgba(5, 10, 24, 0.16),
            0 0 0 1px rgba(5, 10, 24, 0.06);
        overflow: hidden;
        animation: nsMbarSheetIn 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    }

    @keyframes nsMbarSheetIn {
        from {
            opacity: 0;
            transform: translateY(12px) scale(0.98);
        }
        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }

    .ns-mbar__sheet-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        padding: 1rem 1rem 0.75rem;
        border-bottom: 1px solid rgba(5, 10, 24, 0.06);
    }

    .ns-mbar__sheet-title {
        font-family: var(--ns-font-display);
        font-size: 0.95rem;
        text-transform: uppercase;
        color: var(--ns-night);
        line-height: 1.2;
    }

    .ns-mbar__sheet-close {
        display: grid;
        place-items: center;
        width: 34px;
        height: 34px;
        border: none;
        border-radius: 10px;
        background: rgba(5, 10, 24, 0.05);
        color: var(--ns-night);
        cursor: pointer;
    }

    .ns-mbar__sheet-close svg {
        width: 18px;
        height: 18px;
    }

    .ns-mbar__sheet-list {
        list-style: none;
        margin: 0;
        padding: 0.35rem 0 0.5rem;
        max-height: min(52vh, 360px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .ns-mbar__option {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        width: 100%;
        padding: 0.95rem 1rem;
        border: none;
        border-bottom: 1px solid rgba(5, 10, 24, 0.06);
        background: #fff;
        text-align: left;
        cursor: pointer;
        transition: background 0.2s ease;
    }

    .ns-mbar__sheet-list li:last-child .ns-mbar__option {
        border-bottom: none;
    }

    .ns-mbar__option:hover,
    .ns-mbar__option:focus-visible {
        background: rgba(26, 53, 104, 0.05);
    }

    .ns-mbar__option-text {
        display: flex;
        flex-direction: column;
        gap: 0.2rem;
        min-width: 0;
    }

    .ns-mbar__option-text strong {
        font-size: 0.92rem;
        font-weight: 700;
        color: var(--ns-night);
    }

    .ns-mbar__option-text small {
        font-size: 0.78rem;
        color: rgba(5, 10, 24, 0.55);
        line-height: 1.35;
    }

    .ns-mbar__option-chevron {
        flex-shrink: 0;
        width: 18px;
        height: 18px;
        color: var(--ns-red);
    }

    .ns-mbar.is-sheet-open::before {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(5, 10, 24, 0.28);
        pointer-events: auto;
        z-index: 1;
    }

    .ns-booking__tab {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ns-mbar__sheet-card {
        animation: none;
    }
}
