/* Styles personnalisés pour SubventionMatch */

.result-card {
    @apply border border-gray-200 rounded-lg p-4 mb-4 hover:shadow-md transition-shadow;
}

.result-card:hover {
    @apply border-blue-300;
}

.score-badge {
    @apply inline-flex items-center px-2 py-1 rounded-full text-xs font-medium;
}

.score-excellent { @apply bg-green-100 text-green-800; }
.score-good { @apply bg-blue-100 text-blue-800; }
.score-medium { @apply bg-yellow-100 text-yellow-800; }
.score-low { @apply bg-red-100 text-red-800; }

.tag {
    @apply inline-block bg-gray-100 text-gray-700 px-2 py-1 rounded text-xs mr-1 mb-1;
}

.tag-priority { @apply bg-blue-100 text-blue-700; }
.tag-environmental { @apply bg-green-100 text-green-700; }
.tag-energy { @apply bg-yellow-100 text-yellow-700; }
.tag-social { @apply bg-purple-100 text-purple-700; }

/* Animation pour le chargement */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* Styles pour la vue cartographie */
.heatmap-cell {
    transition: all 0.2s ease;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

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

.grid-container {
    min-height: 400px;
}

/* Styles pour les onglets actifs */
.active-tab {
    @apply border-blue-500 text-blue-600;
}

.tab-link {
    transition: all 0.2s ease;
}

.tab-link:hover {
    @apply border-gray-300 text-gray-700;
}

/* Animations pour les statistiques */
.stat-counter {
    animation: countUp 0.6s ease-out;
}

@keyframes countUp {
    from { 
        opacity: 0; 
        transform: translateY(10px) scale(0.9); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}

/* Responsive pour la cartographie */
@media (max-width: 768px) {
    .heatmap-cell {
        min-height: 60px;
        font-size: 0.75rem;
    }
    
    .grid-container .grid {
        gap: 0.25rem;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .result-card {
        @apply p-3 text-sm;
    }
}