/* Animations avancées */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes shake {
    0%, 100% {
        transform: rotate(0deg);
    }
    20% {
        transform: rotate(-8deg);
    }
    40% {
        transform: rotate(8deg);
    }
    60% {
        transform: rotate(-4deg);
    }
    80% {
        transform: rotate(4deg);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Application des animations */
.service-card i {
    animation: float 3s ease-in-out infinite;
}

.btn:hover {
    animation: pulse 1s ease-in-out infinite;
}

.slide-left {
    opacity: 0;
    animation: slideInFromLeft 0.8s ease-out forwards;
}

.slide-right {
    opacity: 0;
    animation: slideInFromRight 0.8s ease-out forwards;
}

/* Effet de parallaxe */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Animation du menu mobile */
.nav-links.active {
    animation: slideInFromRight 0.3s ease-out forwards;
}

/* Effet de survol sur les cartes de service */
.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Animation du formulaire */
.form-group input:focus,
.form-group textarea:focus {
    transform: scale(1.01);
    transition: all 0.3s ease;
}

/* Animation des icônes dans le footer */
.footer-contact i {
    transition: transform 0.3s ease;
}

.footer-contact i:hover {
    transform: scale(1.2) rotate(360deg);
}

/* Loading animation pour le bouton d'envoi */
.btn.loading {
    position: relative;
    pointer-events: none;
}

.btn.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Effet de brillance au survol */
.shine-effect {
    position: relative;
    overflow: hidden;
}

.shine-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    z-index: 2;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,.3) 100%);
    transform: skewX(-25deg);
    transition: all 0.75s;
}

.shine-effect:hover::before {
    animation: shine 0.75s;
}

@keyframes shine {
    100% {
        left: 125%;
    }
}
