/*
 * Barre de navigation légère, rendue côté serveur.
 * Elle est remplacée par le méga-menu complet dès la première interaction
 * (voir public/js/menu-differe.js).
 */

.menu-leger {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}

.menu-leger__liste {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px 8px;
    margin: 0;
    padding: 10px 12px;
    list-style: none;
}

.menu-leger__liste a {
    display: block;
    padding: 10px 14px;
    color: #1f2937;
    font-family: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    /* 44px de haut minimum : cible tactile confortable sur mobile. */
    min-height: 44px;
    line-height: 24px;
    transition: background-color .15s, color .15s;
}

.menu-leger__liste a:hover,
.menu-leger__liste a:focus {
    background: #f3f4f6;
    color: #111827;
    text-decoration: none;
}

.menu-leger__liste a:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

@media (max-width: 576px) {
    .menu-leger__liste {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        /* La barre défile horizontalement plutôt que de casser la mise en page. */
        -webkit-overflow-scrolling: touch;
    }

    .menu-leger__liste a {
        white-space: nowrap;
        font-size: 14px;
        padding: 10px 12px;
    }
}
