/* ═══════════════════════════════════════════════════════════════════
   Menu "Plus" mobile — bottom sheet
   ═══════════════════════════════════════════════════════════════════ */

/* ── Overlay ─────────────────────────────────────────────────────── */
.more-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(20, 12, 8, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 998;

    /* Invisible et non-interactif par défaut */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

/* ── Bottom sheet ────────────────────────────────────────────────── */
.mobile-more-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: var(--bg);
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    border-top: 1px solid var(--border);
    padding: 0 1.25rem 2rem;
    box-shadow: 0 -8px 32px rgba(0,0,0,0.12);

    /* État fermé — invisible + décalé vers le bas */
    opacity: 0;
    visibility: hidden;
    transform: translateY(100%);

    /* Transition fluide sur toutes les propriétés */
    transition:
        transform 0.32s cubic-bezier(0.32, 0.72, 0, 1),
        opacity   0.28s ease,
        visibility 0.28s ease;

    /* Hauteur max pour éviter de couvrir tout l'écran */
    max-height: 80vh;
    overflow-y: auto;
}

/* ── État ouvert ─────────────────────────────────────────────────── */
.mobile-more-menu.open,
.more-menu-overlay.open {
    opacity: 1;
    visibility: visible;
}

.mobile-more-menu.open {
    transform: translateY(0);
}

/* ── Handle (poignée) ────────────────────────────────────────────── */
.more-menu-handle {
    width: 36px;
    height: 4px;
    background: var(--border-mid);
    border-radius: 2px;
    margin: 0.875rem auto 0;
}

/* ── En-tête ─────────────────────────────────────────────────────── */
.more-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0 0.75rem;
}

.more-menu-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}

/* ── Grille de liens ─────────────────────────────────────────────── */
.more-menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.625rem;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

/* ── Item de navigation ──────────────────────────────────────────── */
.more-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 0.75rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
    text-decoration: none;
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 500;
    text-align: center;
    transition: background 0.18s, transform 0.15s, box-shadow 0.18s;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
}

.more-nav-item:active {
    transform: scale(0.96);
    background: var(--bg-alt);
}

.more-nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--r-sm);
    background: var(--bg-alt);
    color: var(--clay);
    flex-shrink: 0;
}
.more-nav-icon svg { width: 1.25rem; height: 1.25rem; }

/* ── Dark mode ───────────────────────────────────────────────────── */
[data-theme="dark"] .mobile-more-menu { background: var(--bg); }
[data-theme="dark"] .more-nav-item    { background: var(--surface); }
[data-theme="dark"] .more-nav-icon    { background: var(--bg-alt); }
