/* =========================================================
   Styles spécifiques – Homepage
   ========================================================= */

/* ── Hero ─────────────────────────────────────────────── */
#hero {
    height: 90vh;
    max-height: 850px;
}

#hero .animate-bounce {
    animation: bounce 2s infinite;
}

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

/* ── Featured boxes ───────────────────────────────────── */
.featured-box {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.featured-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

/* ── Service cards ────────────────────────────────────── */
.service-card {
    transition: transform 0.2s ease;
}

.service-card:hover {
    transform: translateY(-2px);
}

/* ── Steps ────────────────────────────────────────────── */
.step-item .w-16::after {
    content: "";
    display: none; /* masqué par défaut (mobile) */
    position: absolute;
    right: -60%;
    top: 50%;
    width: 100%;
    height: 2px;
    background-color: #254387;
    transform: translateY(-50%);
}

@media (min-width: 1024px) {
    .step-item .w-16::after {
        display: block;
    }
    .step-item:last-child .w-16::after {
        display: none;
    }
}

/* ── Réalisations ─────────────────────────────────────── */
.realisation-card {
    transition: transform 0.2s ease;
}

.realisation-card:hover {
    transform: scale(1.02);
}

/* ── Testimonials ─────────────────────────────────────── */
.testimonial-item {
    animation: fadeIn 0.4s ease;
}

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

/* ── RDV / CTA section ────────────────────────────────── */
#contact {
    background-attachment: fixed;
}

@media (max-width: 768px) {
    #contact {
        background-attachment: scroll;
    }
}
