/* Animations — flat & subtiles */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes pulseSoft {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.7; }
}

@keyframes lineGrow {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

.hero-content {
    animation: fadeUp 0.7s ease-out both;
}

.hero-badge {
    animation: fadeIn 0.5s ease-out 0.15s both;
}

.hero-title {
    animation: fadeUp 0.6s ease-out 0.2s both;
}

.hero-description {
    animation: fadeUp 0.6s ease-out 0.35s both;
}

.hero-actions {
    animation: fadeUp 0.6s ease-out 0.45s both;
}

.hero-stats .stat {
    animation: fadeUp 0.5s ease-out both;
}

.hero-stats .stat:nth-child(1) { animation-delay: 0.55s; }
.hero-stats .stat:nth-child(2) { animation-delay: 0.65s; }
.hero-stats .stat:nth-child(3) { animation-delay: 0.75s; }

.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

@media (min-width: 769px) {
    .reveal {
        opacity: 0;
        transform: translateY(20px);
    }

    .reveal.is-visible {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card,
.pricing-card,
.value-card,
.gallery-item,
.faq-item,
.contact-card,
.pics-service-card,
.devis-benefit {
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.service-card:hover,
.pricing-card:hover,
.value-card:hover {
    transform: translateY(-4px);
}

.shape {
    animation: pulseSoft 8s ease-in-out infinite;
}

.shape.shape-2 { animation-delay: 2s; }
.shape.shape-3 { animation-delay: 4s; }

.nav-link.active::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent);
    transform-origin: left;
    animation: lineGrow 0.3s ease-out forwards;
}

.header.scrolled {
    box-shadow: var(--shadow-header);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
}
