/**
 * Styles pour le filtrage des écoles par région
 * 
 * @package Evofia
 * @since 1.0.0
 */

/* Section des filtres */
.ecoles-filters {
    margin-bottom: 2rem;
}

/* Boutons de filtre par région */
.region-filter-btn {
    font-size: 1rem;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border: 2px solid #004052;
    color: #004052;
    background-color: transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.region-filter-btn:hover {
    background-color: #004052;
    color: white;
    border-color: #004052;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 64, 82, 0.2);
}

.region-filter-btn.active {
    background-color: #004052;
    color: white;
    border-color: #004052;
    box-shadow: 0 4px 12px rgba(0, 64, 82, 0.3);
}

.region-filter-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 64, 82, 0.2);
}

/* Badge de compteur */
.region-filter-btn .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
}

.region-filter-btn.active .badge {
    background-color: #D98622 !important;
}

/* Animation de transition pour les écoles */
.ecole-item {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Message "Aucune école" */
#no-ecoles-message {
    background-color: #F0DCB4;
    border: 2px solid #D98622;
    color: #004052;
    padding: 1.5rem;
    border-radius: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .region-filter-btn {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }
    
    .ecoles-filters .d-flex {
        justify-content: flex-start !important;
    }
}

@media (max-width: 576px) {
    .region-filter-btn {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .ecoles-filters .d-flex {
        flex-direction: column;
    }
    
    .region-filter-btn .badge {
        float: right;
    }
}
