/* Styles spécifiques pour la page de présentation */

/* Animation des cartes */
.competence-card, .commune-card, .valeur-card {
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Délai d'animation pour chaque carte */
.competence-card:nth-child(1), .commune-card:nth-child(1), .valeur-card:nth-child(1) { animation-delay: 0.1s; }
.competence-card:nth-child(2), .commune-card:nth-child(2), .valeur-card:nth-child(2) { animation-delay: 0.2s; }
.competence-card:nth-child(3), .commune-card:nth-child(3) { animation-delay: 0.3s; }
.competence-card:nth-child(4), .commune-card:nth-child(4) { animation-delay: 0.4s; }
.competence-card:nth-child(5), .commune-card:nth-child(5) { animation-delay: 0.5s; }
.competence-card:nth-child(6), .commune-card:nth-child(6) { animation-delay: 0.6s; }
.commune-card:nth-child(7) { animation-delay: 0.7s; }
.commune-card:nth-child(8) { animation-delay: 0.8s; }
.commune-card:nth-child(9) { animation-delay: 0.9s; }
.commune-card:nth-child(10) { animation-delay: 1s; }
.commune-card:nth-child(11) { animation-delay: 1.1s; }
.commune-card:nth-child(12) { animation-delay: 1.2s; }

/* Effet de survol */
.competence-card:hover, .commune-card:hover, .valeur-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 106, 179, 0.2);
}

/* Mode nuit */
.dark .competence-card:hover, .dark .commune-card:hover, .dark .valeur-card:hover {
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.dark .competence-card svg, .dark .valeur-card svg {
    stroke: #60a5fa;
}

/* Mode contraste élevé */
.high-contrast .competence-card, .high-contrast .commune-card, .high-contrast .valeur-card {
    background-color: #000 !important;
    color: #fff !important;
    border: 1px solid #fff !important;
    box-shadow: none !important;
}

.high-contrast .competence-card h3, .high-contrast .commune-card h3, .high-contrast .valeur-card h3 {
    color: #ffff00 !important;
}

.high-contrast .competence-card p, .high-contrast .commune-card p, .high-contrast .valeur-card p {
    color: #fff !important;
}

/* Accessibilité */
@media (prefers-reduced-motion: reduce) {
    .competence-card, .commune-card, .valeur-card {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .competence-card:hover, .commune-card:hover, .valeur-card:hover {
        transform: none !important;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .competence-card, .valeur-card {
        margin-bottom: 1rem;
    }
}

/* Styles pour les communes */
.commune-card {
    transition: all 0.3s ease;
}

.commune-card:hover {
    background-color: rgba(0, 106, 179, 0.05);
}

.dark .commune-card:hover {
    background-color: rgba(59, 130, 246, 0.1);
}

/* Styles pour la section gouvernance */
.bg-gray-50.dark\:bg-gray-700 {
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.bg-gray-50.dark\:bg-gray-700:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dark .bg-gray-50.dark\:bg-gray-700:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
