/* Styles spécifiques pour la page Notre Réseau */

/* Lent effet de rotation pour l'étoile */
@keyframes spin-slow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.animate-spin-slow {
    animation: spin-slow 15s linear infinite;
}

/* Animations de transition sur les cartes */
.agent-card {
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
}

.agent-card:hover {
    border-color: #ebebeb;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.08), 0 8px 10px -6px rgb(0 0 0 / 0.08);
}

/* Cartes actives (sélectionnées) */
.agent-card.active-agent {
    border-color: var(--couleur-principale, #3b82f6);
    background-color: #f8fafc; /* slate-50 */
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.05), 0 4px 6px -4px rgb(0 0 0 / 0.05);
}

.agent-card.active-agent .absolute.top-0 {
    background: linear-gradient(to right, var(--couleur-principale), var(--couleur-secondaire)) !important;
    height: 4px;
}

.agent-card.active-agent .btn-select-agent {
    background-color: var(--couleur-principale);
    color: white;
    border-color: var(--couleur-principale);
}

.agent-card.active-agent .btn-select-agent .select-icon {
    font-weight: 900; /* fa-solid instead of fa-regular */
    color: #facc15; /* Jaune étoile */
}

/* Stylisation custom des fenêtres de dialogue (Popups) de la carte Leaflet */
.leaflet-popup-content-wrapper {
    border-radius: 1.25rem !important;
    padding: 0 !important;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid #f1f5f9;
}

.leaflet-popup-content {
    margin: 0 !important;
    width: 290px !important;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

.leaflet-popup-tip {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid #f1f5f9;
}

/* Structure interne du popup */
.popup-card-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 1rem 1.25rem;
    position: relative;
}

.popup-card-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, var(--couleur-principale), var(--couleur-secondaire));
}

.popup-card-body {
    padding: 1rem 1.25rem;
    background: white;
}

/* Amélioration visuelle du bouton de zoom / focus sur la liste */
.agent-card-clickable {
    cursor: pointer;
}

/* Effet focus au clic sur la carte */
.agent-card-focused {
    animation: pulse-glow 1.5s ease-in-out;
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}
