/* ========================================
   UTILITIES.CSS — PRIMSO
   Animations & Responsive
   ======================================== */

/* ========================================
   ANIMATIONS KEYFRAMES
   ======================================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

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

@keyframes popIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes scrollRight {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes scrollLeft {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

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

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

/* Scroll reveal */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   RESPONSIVE — Tablette (max-width: 1024px)
   ======================================== */
@media (max-width: 1024px) {
    /* Hero */
    .hero-title { font-size: 38px; }
    .hero-description { font-size: 17px; }
    .hero-description .shelby { font-size: 32px; }
    .advantages-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
        max-width: 100%;
    }
    .hero-bottom {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .cta-buttons { align-items: center; }
    .hero-illustration {
        justify-self: center;
        margin-bottom: -70px;
    }
    .hero-illustration img { max-width: 350px; }

    /* Eligible */
    .eligible-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
    }
    .eligible-grid .eligible-card:last-child {
        grid-column: 1 / -1;
        max-width: 100%;
        margin: 0 auto;
    }
    .eligible-logos { gap: 30px; }

    /* Targets */
    .target-card {
        grid-template-columns: 1fr;
        margin-bottom: 50px;
    }
    .target-card:nth-child(even) { direction: ltr; }
    .target-image { height: 300px; }

    /* Steps */
    .steps-hero { grid-template-columns: 1fr; gap: 30px; }
    .steps-hero-illustration { justify-content: center; }
    .steps-row-1 { grid-template-columns: repeat(2, 1fr); }
    .steps-row-2 { grid-template-columns: 1fr; }

    /* Tools */
    .tools-services-hero { grid-template-columns: 1fr; gap: 30px; }
    .tools-services-illustration { text-align: center; }
    .tools-services-grid { grid-template-columns: repeat(2, 1fr); }
    .tools-services-grid .service-card:last-child {
        grid-column: 1 / -1;
        max-width: 50%;
        margin: 0 auto;
    }

    /* Why choose */
    .benefits-grid { grid-template-columns: repeat(2, 1fr); }

    /* FAQ */
    .faq-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* ========================================
   RESPONSIVE — Mobile (max-width: 768px)
   ======================================== */
@media (max-width: 768px) {
    /* Container global — réduction du padding latéral */
    .primso-container { padding: 0 15px; }

    /* Boutons — autoriser retour à la ligne */
    .btn { white-space: normal; text-align: center; }
    .btn-hero-cta { white-space: normal; text-align: center; }
    .btn-large { padding: 14px 24px; font-size: 16px; }

    /* Hero */
    .primso-hero { padding: 80px 15px 120px; }
    .hero-title { font-size: 30px; }
    .hero-description { font-size: 15px; }
    .hero-description .shelby { font-size: 28px; }
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        max-width: 100%;
        padding: 0;
    }
    .advantage-card { min-height: auto; }
    .hero-bottom { gap: 25px; }
    .hero-illustration img { max-width: 280px; }
    .hero-illustration { margin-bottom: -80px; }
    .btn-hero-cta {
        padding: 12px 24px;
        font-size: 14px;
    }

    /* Eligible */
    .primso-eligible { padding: 60px 15px; }
    .eligible-header h2 { font-size: 28px; }
    .eligible-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .eligible-grid .eligible-card:last-child {
        grid-column: auto;
        max-width: 100%;
        margin: 0;
    }
    .eligible-card { padding: 30px 20px 25px; }
    .eligible-logos {
        flex-direction: column;
        gap: 20px;
    }
    .eligible-logos img { max-width: 200px; }

    /* Intro */
    .intro-header h2 { font-size: 28px; }

    /* Targets */
    .target-card {
        margin-bottom: 30px;
        position: relative;
        top: auto !important;
    }
    .target-content { padding: 20px 15px; }
    .target-title { font-size: 22px; }
    .target-image { height: 200px; padding: 15px; }
    .target-image-container { border-radius: 20px; }
    .target-tag { font-size: 13px; padding: 6px 14px; }
    .target-description { font-size: 15px; }
    .target-link { font-size: 15px; padding: 10px 20px; }
    .target-mini-badge { font-size: 13px; padding: 5px 10px; }
    .targets-footer { margin-top: 30px; gap: 15px; }

    /* Steps */
    .primso-steps { padding: 60px 15px; }
    .steps-hero-text h2 { font-size: 27px; white-space: normal; }
    .steps-hero-illustration img { width: 200px; }
    .steps-row-1 { grid-template-columns: 1fr; gap: 30px; }
    .steps-row-2 { grid-template-columns: 1fr; gap: 30px; }
    .steps-stats {
        flex-direction: column;
        gap: 15px;
        padding: 25px 20px;
    }
    .steps-cta .btn { width: 100%; max-width: 320px; }

    /* Why choose */
    .primso-why-choose { padding: 60px 15px; }
    .why-choose-header {
        margin: 0px;
    }
    .why-choose-header h2 { font-size: 28px; }
    .why-choose-header p { font-size: 15px; }
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .benefit-card { padding: 25px 15px; }
    .benefit-icon {
        width: 56px;
        height: 56px;
        font-size: 28px;
        margin-bottom: 12px;
    }
    .benefit-title { font-size: 17px; margin-bottom: 8px; }
    .benefit-description { font-size: 13px; }
    .why-choose-cta .btn { width: 100%; max-width: 320px; }

    /* Tools */
    .primso-tools-services { padding: 60px 15px; }
    .tools-services-text h2 { font-size: 28px; }
    .tools-services-illustration img {
        width: 100%;
        max-width: 200px;
        height: auto;
    }
    .tools-services-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .tools-services-grid .service-card:last-child {
        grid-column: auto;
        max-width: 100%;
    }
    .service-card {
        max-width: 100%;
        padding: 15px 15px 25px;
    }

    /* Partners */
    .primso-partners { padding: 50px 15px; }
    .partners-title { font-size: 28px; margin-bottom: 30px; }
    .partners-track { gap: 40px; }
    .partners-track img { max-width: 100px; max-height: 40px; }

    /* FAQ */
    .primso-faq { padding: 30px 15px 30px; }
    .faq-title { font-size: 28px; }
    .faq-question { padding: 18px 10px; }
    .faq-question span { font-size: 14px; }
    .faq-item.active .faq-answer { padding: 0 10px 20px; }
    .faq-help-card { padding: 20px; }
    .faq-help-card .btn { width: 100%; }

    /* Carousel */
    .carousel-slide { width: 280px; height: 200px; }

    /* Badges */
    .badges-container {
        gap: 8px;
        padding: 0;
    }
    .badge {
        font-size: 13px;
        gap: 5px;
    }

    /* Dropdown toggle mobile */
    .dropdown-toggle { bottom: 2px; }

    /* Page hero */
    .page-hero { padding: 80px 15px 80px; }
    .page-hero h1 { font-size: 34px; }
    .page-hero p { font-size: 16px; }
}

/* ========================================
   RESPONSIVE — Petit mobile (max-width: 480px)
   ======================================== */
@media (max-width: 480px) {
    .primso-container { padding: 0 12px; }

    .hero-title { font-size: 26px; }
    .hero-description { font-size: 14px; }
    .hero-description .shelby { font-size: 24px; }
    .advantages-grid { max-width: 100%; }
    .hero-illustration img { max-width: 220px; }

    .eligible-header h2 { font-size: 24px; }
    .eligible-card { padding: 25px 15px 20px; }

    .target-title { font-size: 20px; }
    .target-description { font-size: 14px; }
    .target-content { padding: 15px 12px; }
    .target-image { height: 180px; padding: 10px; }

    .steps-hero-text h2 { font-size: 24px; white-space: normal; }
    .step-card h3 { font-size: 18px; }
    .step-card { padding: 20px 15px; }

    .why-choose-header h2 { font-size: 24px; }
    .tools-services-text h2 { font-size: 24px; }

    .faq-title { font-size: 24px; }
    .carousel-slide { width: 260px; height: 180px; }

    .badges-container {
        gap: 6px;
        padding-right: 20px;
        padding-left: 20px;
    }
    .badge { font-size: 12px; }

    .page-hero h1 { font-size: 28px; }
    .page-hero { padding: 70px 12px 70px; }

    /* Aides page responsive */
    .aides-mpr-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .aides-mpr-card-logo img {
        max-height: 65px;
    }

    .aides-mpr-card-logo {
        margin-bottom: 1px;
    }
}

/* ========================================
   UTILITAIRES
   ======================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.mt-40 { margin-top: 40px; }
.mb-40 { margin-bottom: 40px; }
.mx-auto { margin-left: auto; margin-right: auto; }
