/* Styles pour les modals de découverte de collectivités */

.collectivite-card {
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
}

.collectivite-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.collectivite-card .card-title {
    color: #5DADE2;
    font-weight: 600;
}

.collectivite-card .btn-group {
    gap: 8px;
}

.collectivite-card .btn {
    flex: 1;
}

/* Animations pour les alertes */
.alert {
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Style pour les badges de convention */
.badge {
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
}

/* Modal header personnalisé */
.modal-header.bg-primary {
    background-color: #5DADE2 !important;
}

.modal-header.bg-warning {
    background-color: #ffc107 !important;
}

/* Boutons dans les cards */
.btn-interest {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-download {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Styles pour les filtres */
.filter-container {
    border: 1px solid #e9ecef;
    background: #f8f9fa !important;
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    background: white;
    color: #6c757d;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.filter-pill-all {
    background: rgba(0, 123, 255, 0.12);
    color: #0d6efd;
}

.filter-pill-success {
    background: rgba(40, 167, 69, 0.12);
    color: #198754;
}

.filter-pill-warning {
    background: rgba(255, 193, 7, 0.16);
    color: #b58100;
}

.filter-pill-muted {
    background: rgba(108, 117, 125, 0.14);
    color: #6c757d;
}

.filter-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.filter-icon {
    display: flex;
    align-items: center;
}

.filter-text {
    white-space: nowrap;
}

.filter-count {
    background: rgba(0, 0, 0, 0.1);
    color: inherit;
    padding: 0.125rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 1.5rem;
    text-align: center;
}

/* États actifs des filtres */
.btn-check:checked + .filter-pill-all {
    background: #007bff;
    color: white;
    border-color: #007bff;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.btn-check:checked + .filter-pill-success {
    background: #28a745;
    color: white;
    border-color: #28a745;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-check:checked + .filter-pill-warning {
    background: #ffc107;
    color: #212529;
    border-color: #ffc107;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.btn-check:checked + .filter-pill-muted {
    background: #6c757d;
    color: white;
    border-color: #6c757d;
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.btn-check:checked + .filter-pill .filter-count {
    background: rgba(255, 255, 255, 0.2);
    color: inherit;
}

/* Responsive */
@media (max-width: 576px) {
    .collectivite-card .btn-group {
        flex-direction: column;
    }

    .collectivite-card .btn {
        width: 100%;
    }
    
    .filter-container {
        padding: 1rem !important;
    }
    
    .filter-container .row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .filter-pill {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .filter-count {
        font-size: 0.7rem;
        padding: 0.1rem 0.4rem;
    }
}

