/* Animations et effets visuels pour Des Plumes et des Pattes */

/* Animation de fondu des images */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Animation de déplacement des éléments */
@keyframes slideUp {
    from { 
        transform: translateY(30px);
        opacity: 0;
    }
    to { 
        transform: translateY(0);
        opacity: 1;
    }
}

.slide-up {
    animation: slideUp 0.8s ease-out;
}

/* Animation pour les images chargées via lazy loading */
img.loaded {
    animation: fadeIn 0.8s ease-out;
}

/* Animations pour les éléments de fond chargés via lazy loading */
.bg-loaded {
    animation: fadeIn 1s ease-out;
}

/* Animation pour le menu au survol */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Animation pour les cartes d'activités */
.activity-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.activity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Animation pour les boutons */
.btn {
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.btn:hover::after {
    width: 200%;
    height: 200%;
}

/* Animation pour les flèches de navigation */
.arrow-button {
    transition: transform 0.3s ease;
}

.arrow-button:hover {
    transform: scale(1.1);
}

/* Animation pour le menu hamburger */
.hamburger .bar {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Animation pour les icônes dans les sections d'info */
.info-icon, 
.service-icon, 
.feature-icon,
.mission-icon {
    transition: transform 0.3s ease, color 0.3s ease;
}

.info-item:hover .info-icon,
.service-card:hover .service-icon,
.feature-card:hover .feature-icon,
.mission-item:hover .mission-icon {
    transform: scale(1.1);
    color: var(--accent-color);
}

/* Animation pour les images de la galerie */
.gallery-item {
    overflow: hidden;
}

.gallery-item img {
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Animation pour les FAQ */
.faq-toggle {
    transition: transform 0.3s ease;
}

.faq-question:hover .faq-toggle {
    transform: rotate(90deg);
}

/* Animation pour les témoignages */
.testimonial-card {
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.testimonial-card.active {
    animation: fadeIn 0.8s ease-out;
}

/* Animation pour les éléments lors du défilement */
.animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate.show {
    opacity: 1;
    transform: translateY(0);
}

/* Accessibilité : focus pour le clavier */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus,
[tabindex]:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Animation pour les liens dans le footer */
.footer-link a {
    position: relative;
    transition: color 0.3s ease;
}

.footer-link a::before {
    content: '→ ';
    position: absolute;
    left: -25px;
    opacity: 0;
    transition: opacity 0.3s ease, left 0.3s ease;
}

.footer-link a:hover::before {
    opacity: 1;
    left: -20px;
}

/* Animation pour les icônes sociales */
.social-icon {
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px) scale(1.1);
}
