/* ==========================================
 * MENU OFF-CANVAS MOBILE (L'Art Gravé Core)
 * ========================================== */

/* Modale globale plein écran invisible par défaut */
.lag-ocm-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999990; /* Élevé mais sous la Bottom App Bar */
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s, opacity 0.3s;
    display: flex;
    justify-content: flex-start; /* Le panneau s'alignera à gauche */
}

/* État ouvert */
.lag-ocm-modal.open {
    visibility: visible;
    opacity: 1;
}

/* Fond sombre translucide cliquable */
.lag-ocm-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    cursor: pointer;
}

/* Panneau latéral coulissant */
.lag-ocm-panel {
    position: relative;
    width: 80%;
    max-width: 400px;
    height: 100%;
    background: #ffffff;
    box-shadow: 5px 0 25px rgba(0,0,0,0.2);
    /* Placé hors de l'écran à gauche par défaut */
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
}

/* L'animation d'ouverture fait glisser le panneau */
.lag-ocm-modal.open .lag-ocm-panel {
    transform: translateX(0);
}

/* En-tête du menu (Titre + Croix) */
.lag-ocm-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #f1f2f6;
    background: #f8f9fa;
    flex-shrink: 0;
}

.lag-ocm-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Bouton de fermeture tactile */
.lag-ocm-close {
    background: none;
    border: none;
    font-size: 2.2rem;
    line-height: 1;
    color: #95a5a6;
    cursor: pointer;
    padding: 0 10px;
    transition: color 0.2s;
}

.lag-ocm-close:hover {
    color: #e74c3c;
}

/* Corps du menu (scrollable s'il y a beaucoup de liens) */
.lag-ocm-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px)); /* Espace pour la Bottom App Bar */
}

/* 
 * UI/UX Mobile des liens (Gros paddings)
 */
.lag-ocm-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.lag-ocm-nav-menu li {
    border-bottom: 1px solid #f1f2f6;
}

.lag-ocm-nav-menu li a {
    display: block;
    padding: 16px 20px;
    font-size: 1.05rem;
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}

/* Survol / Focus */
.lag-ocm-nav-menu li a:hover,
.lag-ocm-nav-menu li a:focus {
    background: #f8f9fa;
    color: #3498db;
    padding-left: 25px; /* Petit effet d'indentation dynamique */
}

/* Sous-menus imbriqués en cascade (Dropdowns natifs WP) */
.lag-ocm-nav-menu ul.sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    background: #fcfcfc;
    border-top: 1px dashed #ecf0f1;
}

.lag-ocm-nav-menu ul.sub-menu li:last-child {
    border-bottom: none;
}

.lag-ocm-nav-menu ul.sub-menu li a {
    padding: 12px 20px 12px 35px; /* Indentation plus forte pour simuler la hiérarchie */
    font-size: 0.95rem;
    color: #7f8c8d;
}

.lag-ocm-nav-menu ul.sub-menu li a:hover {
    color: #3498db;
    padding-left: 40px;
}
