/* Amélioration de l'affichage des filtres */

/* Effet hover sur les liens */
.hover-bg-light {
    transition: background-color 0.2s ease;
}

.hover-bg-light:hover {
    background-color: #f8f9fa !important;
}

/* Responsive sidebar offcanvas pour mobile */
@media (max-width: 991.98px) {
    .sidebar-filter {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background-color: white;
        z-index: 1050;
        transition: left 0.3s ease-in-out;
        overflow-y: auto;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        padding: 16px;
    }

    .sidebar-filter.active {
        left: 0;
    }

    .sidebar-filter .card {
        position: static !important;
        max-height: none !important;
        height: auto !important;
        box-shadow: none !important;
    }

    /* Bouton fermer fixe en haut sur mobile */
    .show-sidebar-filter-close {
        position: sticky;
        top: 0;
        z-index: 1051;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
}

/* Overlay pour fermer la sidebar sur mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* Personnalisation de la scrollbar */
.filter-select-category::-webkit-scrollbar,
.sidebar-filter::-webkit-scrollbar {
    width: 6px;
}

.filter-select-category::-webkit-scrollbar-track,
.sidebar-filter::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.filter-select-category::-webkit-scrollbar-thumb,
.sidebar-filter::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.filter-select-category::-webkit-scrollbar-thumb:hover,
.sidebar-filter::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Animation smooth pour les liens */
.sidebar-filter a {
    transition: all 0.2s ease;
}

/* Amélioration des badges de filtres actifs */
.badge {
    transition: all 0.2s ease;
}

.badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
