/* Carte Interactive des Écoles - Styles CSS */

#ecoles-map-container {
    max-width: 100%;
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Filtres */
.ecoles-filters {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #dee2e6;
}

.ecoles-filters h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #495057;
    font-size: 1.25rem;
    border-bottom: 2px solid #007cba;
    padding-bottom: 10px;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group h4 {
    margin-bottom: 10px;
    color: #6c757d;
    font-size: 1rem;
    font-weight: 600;
}

.filter-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px;
}

.filter-checkboxes label {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 5px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.filter-checkboxes label:hover {
    background-color: #e9ecef;
}

.filter-checkboxes input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.1);
}

.filter-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.filter-actions .button {
    padding: 10px 20px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.filter-actions .button-primary {
    background-color: #007cba;
    color: white;
}

.filter-actions .button-primary:hover {
    background-color: #005a87;
}

.filter-actions .button {
    background-color: #6c757d;
    color: white;
}

.filter-actions .button:hover {
    background-color: #545b62;
}

/* Carte */
#ecoles-map {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Popup de la carte */
.leaflet-popup-content-wrapper {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.ecole-popup {
    min-width: 250px;
    font-family: inherit;
}

.ecole-popup h4 {
    margin: 0 0 10px 0;
    color: #007cba;
    font-size: 1.1rem;
}

.ecole-popup .ecole-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    float: right;
    margin-left: 10px;
    border-radius: 4px;
}

.ecole-popup .ecole-info {
    margin: 5px 0;
    font-size: 0.9rem;
}

.ecole-popup .ecole-info strong {
    color: #495057;
}

.ecole-popup .ecole-formations {
    margin: 10px 0;
}

.ecole-popup .formation-tag {
    display: inline-block;
    background: #e9ecef;
    color: #495057;
    padding: 2px 6px;
    margin: 2px;
    border-radius: 3px;
    font-size: 0.8rem;
}

.ecole-popup .ecole-link {
    display: inline-block;
    margin-top: 10px;
    color: #007cba;
    text-decoration: none;
    font-weight: 500;
}

.ecole-popup .ecole-link:hover {
    text-decoration: underline;
}

/* Résultats */
#ecoles-map-results {
    margin-top: 20px;
}

#ecoles-count {
    padding: 10px;
    background: #e9ecef;
    border-radius: 4px;
    margin-bottom: 15px;
    font-weight: 500;
    color: #495057;
}

#ecoles-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.ecole-card {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.ecole-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.ecole-card h5 {
    margin: 0 0 10px 0;
    color: #007cba;
    font-size: 1.1rem;
}

.ecole-card .ecole-meta {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 5px 0;
}

.ecole-card .ecole-formations {
    margin: 10px 0;
}

.ecole-card .formation-tag {
    display: inline-block;
    background: #f8f9fa;
    color: #495057;
    padding: 3px 8px;
    margin: 2px;
    border-radius: 4px;
    font-size: 0.8rem;
    border: 1px solid #dee2e6;
}

/* Loading state */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive design */
@media (max-width: 768px) {
    .ecoles-filters {
        padding: 15px;
    }
    
    .filter-checkboxes {
        grid-template-columns: 1fr;
    }
    
    .filter-actions {
        justify-content: center;
    }
    
    #ecoles-list {
        grid-template-columns: 1fr;
    }
    
    #ecoles-map {
        height: 400px !important;
    }
}

@media (max-width: 480px) {
    .ecoles-filters {
        padding: 10px;
    }
    
    .filter-actions .button {
        width: 100%;
        text-align: center;
    }
} 