/* Styles pour la page de carte des membres */

/* Carte principale */
#members-map {
    border-radius: 0.5rem;
    border: 2px solid #dee2e6;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Popup des membres */
.member-popup {
    min-width: 250px;
    text-align: center;
}

.member-popup img {
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    margin-bottom: 0.5rem;
}

.member-popup h6 {
    color: #495057;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.member-popup p {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.member-popup .btn {
    font-size: 0.8rem;
    padding: 0.375rem 0.75rem;
}

/* Filtres */
.filters-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.filters-card .card-header {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: none;
}

/* Sélecteurs multiples */
select[multiple] {
    border-radius: 0.375rem;
    border-color: #dee2e6;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

select[multiple]:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Boutons de vue */
.btn-group .btn {
    border-radius: 0.375rem;
    margin: 0 2px;
}

.btn-group .btn.active {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
}

/* Statistiques */
.stats-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.stats-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.stats-card .card-body {
    padding: 1.5rem;
}

.stats-card i {
    opacity: 0.9;
}

/* Vue liste */
.table-responsive {
    border-radius: 0.5rem;
    overflow: hidden;
}

.table th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: #495057;
}

.table td {
    vertical-align: middle;
}

.member-avatar {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border: 2px solid #dee2e6;
}

/* Vue grille */
.member-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.member-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.member-card .card-body {
    padding: 1.5rem;
}

.member-card img {
    border: 3px solid #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Badges de compétences */
.skill-badge {
    font-size: 0.75rem;
    margin: 0.125rem;
}

.skill-badge.bg-secondary {
    background-color: #6c757d !important;
}

.skill-badge.bg-light {
    background-color: #f8f9fa !important;
    color: #6c757d !important;
    border: 1px solid #dee2e6;
}

/* Responsive */
@media (max-width: 768px) {
    #members-map {
        height: 400px;
    }
    
    .filters-card .card-body {
        padding: 1rem;
    }
    
    .btn-group {
        width: 100%;
        margin-top: 1rem;
    }
    
    .btn-group .btn {
        flex: 1;
        margin: 0;
    }
    
    .stats-card .card-body {
        padding: 1rem;
    }
    
    .stats-card h4 {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .col-md-4.col-lg-3 {
        width: 100%;
    }
    
    .member-card .card-body {
        padding: 1rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeIn 0.5s ease-out;
}

/* Mode sombre */
[data-theme="dark"] .filters-card {
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
}

[data-theme="dark"] .stats-card {
    background-color: #2d2d2d;
    border-color: #404040;
}

[data-theme="dark"] .table th {
    background-color: #2d2d2d;
    border-color: #404040;
    color: #ffffff;
}

[data-theme="dark"] .member-card {
    background-color: #2d2d2d;
    border-color: #404040;
}

/* Amélioration des contrôles de la carte */
.leaflet-control-layers {
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.leaflet-control-layers-toggle {
    background-color: #fff;
    border: 2px solid #dee2e6;
    border-radius: 0.375rem;
}

.leaflet-control-layers-toggle:hover {
    background-color: #f8f9fa;
}

/* Marqueurs personnalisés */
.custom-marker {
    background: transparent;
    border: none;
}

.custom-marker div {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease-in-out;
}

.custom-marker:hover div {
    transform: scale(1.2);
}
