/* animations.css - Animations pour Marché Connecté */

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Animation d'entrée des sections */
section {
    animation: fadeIn 0.8s ease-out;
}

/* Animation des cartes au scroll */
.feature-card, .testimonial-card, .pricing-card {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.feature-card.visible, .testimonial-card.visible, .pricing-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Animation du dashboard */
.dashboard-preview {
    animation: slideInUp 0.8s ease-out 0.3s both;
}

.floating-card {
    animation: float 3s ease-in-out infinite;
}

.card-2 {
    animation-delay: 1.5s;
}

/* Animation des icônes */
.feature-icon .icon-wrapper {
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon .icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

/* Animation des boutons */
.btn-primary {
    position: relative;
    overflow: hidden;
}

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

.btn-primary:hover::after {
    width: 300px;
    height: 300px;
}

/* Animation du logo */
.logo-icon {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Animation des stats */
.stat-value {
    display: inline-block;
    animation: countUp 2s ease-out;
}

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

/* Animation des étapes */
.process-step {
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.6s ease-out;
}

.process-step.visible {
    opacity: 1;
    transform: translateX(0);
}

.process-step:nth-child(2) {
    transition-delay: 0.2s;
}

.process-step:nth-child(3) {
    transition-delay: 0.4s;
}

/* Animation FAQ */
.faq-item {
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary-blue-light);
}