/* ===== AMÉLIORATION FILTRES MOBILES - FICHIER SÉPARÉ ===== */

/* Bouton pour toggle les filtres sur mobile */
.mobile-filter-toggle {
    display: none;
    background: var(--primary-color);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 1rem 0;
    width: 100%;
    position: relative;
    box-shadow: 0 2px 8px rgba(75, 85, 99, 0.3);
    align-items: center;
    justify-content: space-between;
}

.mobile-filter-toggle:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(75, 85, 99, 0.4);
}

.mobile-filter-toggle .filter-arrow {
    transition: transform 0.3s ease;
}

.mobile-filter-toggle.active .filter-arrow {
    transform: rotate(180deg);
}

.mobile-filter-badge {
    background: var(--warning-color);
    color: white;
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    margin-left: 0.5rem;
    font-weight: 600;
    display: none;
}

/* Animation pour la sidebar sur mobile */
@media (max-width: 768px) {
    .mobile-filter-toggle {
        display: flex;
    }

    .filters-sidebar {
        transition: all 0.3s ease;
        overflow: hidden;
    }

    /* État fermé sur mobile */
    .filters-sidebar.mobile-collapsed {
        max-height: 0;
        padding: 0;
        margin-bottom: 0;
        opacity: 0;
        border: none;
        background: transparent;
    }

    /* État ouvert sur mobile */
    .filters-sidebar:not(.mobile-collapsed) {
        max-height: 2000px;
        opacity: 1;
        padding: 1.5rem;
        background: var(--bg-card);
        border: 1px solid var(--border-color);
        border-radius: 8px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
        margin-bottom: 1.5rem;
    }

    /* Masquer le bouton toggle original sur mobile */
    .filter-toggle-btn {
        display: none !important;
    }
}