/* Styles pour les boutons de filtre de période */



.row.mb-4 {
    --bs-gutter-x: 2rem;
}

.filters.col-lg-7 {
    padding: 0 1rem 0 1rem !important;
}

.temporal-filters {
    margin: 1rem 0;
    border-bottom: 1px solid #e0e0e0; 
    padding-bottom: 1rem;
}

.temporal-filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    width: 100%;
    margin: 1rem 0;
}

.temporal-filter-group button {
    flex: 1;
    min-width: 150px; /* Ajustez selon vos besoins */
}

.category-filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    width: 100%;
    margin-bottom: 1rem;

}

.category-filter-group button {
    flex: 0 1 auto;
    min-width: 100px; 
    max-width: fit-content;
}
   
.filters {
    background-color: white;
    border-radius: 12px;
    padding: 1rem;
}

.btn-primary.active {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white;
}

.btn-primary {
    background-color: transparent ;
    border-color: var(--primary-color) ;
    color: var(--primary-color) ;
}

.btn-primary:hover {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}
.btn .badge {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    min-width: 24px;
    height: 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 500;
}

.btn .badge {
    background-color: var(--primary-color);
    color: white;
    border-radius: 12px;
    padding: 0.25rem 0.5rem;
}

.btn-primary.active .badge {
    background-color: white;
    color: var(--primary-hover);
    border-radius: 12px;
    padding: 0.25rem 0.5rem;
}

.btn-primary.disabled {
    background-color: transparent ;
    border-color: var(--primary-color) ;
    color: var(--primary-color) ;
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

.btn-light, .btn-primary {
    position: relative;
    padding-right: 2.5rem;
}

.btn-group {
    display: flex;
    width: 100%;
    gap: 10px;
}



/* Pastille pour bouton actif */
.btn-primary::after {
    background: white;
    color: var(--primary-color);
}





/* Pastille pour bouton inactif */
.btn-light::after {
    content: attr(data-count);
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    min-width: 24px;
    height: 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 500;
    background: var(--primary-color);
    color: white;
} 



#resetFilters {
    color: var(--success-color);
    text-decoration: none;
}

#resetFilters:hover {
    color: var(--success-hover);
}



.btn-outline-primary {
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    background-color: transparent !important;
}

.btn-outline-primary:hover {
    background-color: var(--primary-hover) !important;
    color: white !important;
}
/


/* Styles spécifiques pour les boutons avec compteurs */
.event-filters .btn {
    position: relative;
    padding-right: 2.5rem;
}

.event-filters .btn::after {
    content: attr(data-count);
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    min-width: 24px;
    height: 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 500;
}

.event-filters .btn-light::after {
    background: var(--primary-color);
    color: white;
}

.event-filters .btn-primary::after {
    background: white;
    color: var(--primary-color);
}

.filter-group:last-child {
    margin-bottom: 0;
}

/* Styles des badges pour les filtres */




/* Bouton inactif (non sélectionné) */
.filter-group .btn-light {
    background-color: transparent !important;
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
    margin-top: 16px;
}

.filter-group .btn-light .badge {
    background-color: var(--primary-color) !important;
    color: white !important;
}

/* Bouton désactivé */
.filter-group .btn-secondary {
    background-color: transparent !important;
    border-color: #6c757d !important;
    color: #6c757d !important;
}

.filter-group .btn-secondary .badge {
    background-color: #6c757d !important;
    color: white !important;
}

/* Style commun des badges */
.filter-group .btn .badge {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    min-width: 24px;
    height: 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 500;
}




.btn-light {
    background-color: white;
    border: 1px solid #dee2e6;
}

.btn-light:hover {
    background-color: var(--filter-hover);
}



.bg-primary{
    background-color: white !important;
    color: var(--primary-color) !important;
    border-radius: 50px;

}

.btn-light{ 
    border-color : var(--primary-color) !important;
}

.btn-outline-primary{
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-outline-primary:hover{
    background-color: transparent !important;
}

.btn-outline-primary .badge{
    color: white !important;
    background-color: var(--primary-color) !important;
}

.filters {
    background-color: white;
    border-radius: 12px;
    padding: 1rem;
}

.temporal-filters {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.temporal-filters .btn {
    width: 100%;
    border: 1px solid var(--primary-color);
    border-radius: 25px;
    text-align: left;
    position: relative;
}

@media (max-width: 771px) {
    .temporal-filter-group {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .temporal-filters .btn {
        width: 100%;
        margin: 0;
    }

    .category-filters {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .category-filters .btn {
        flex: 0 1 auto;
    }
}