/* ========================================
   HERO SECTION - IMMERSIF BRUTALISTE
   ======================================== */

/* Alignement à gauche pour le contenu Hero */
.hero-content-left {
    text-align: left !important;
    align-items: flex-start !important;
    max-width: 900px;
    /* Limite la largeur pour la lisibilité */
}

/* Titre XXL avec outline géant qui chevauche */
.text-outline-xxl {
    font-size: clamp(2.5rem, 12vw, 10rem) !important;
    line-height: 0.85 !important;
    margin-top: -0.3em !important;
    /* Chevauche le texte au-dessus */
    display: block !important;
}

/* Titre XXL en texte PLEIN (sans stroke) */
.text-solid-xxl {
    font-size: clamp(2.5rem, 12vw, 5rem) !important;
    line-height: 0.85 !important;
    margin-top: 0.2em !important;
    /* Chevauche le texte au-dessus */
    display: block !important;
    color: var(--color-primary) !important;
    font-weight: 800 !important;
    -webkit-text-fill-color: var(--color-primary) !important;
    text-shadow: 0 4px 20px rgba(0, 102, 179, 0.3);
}

/* Alignement correct du paragraphe hero-subtitle */
/* Alignement correct du paragraphe hero-subtitle */
.hero-subtitle {
    text-align: left !important;
    max-width: 600px;
    margin-left: 0 !important;
    margin-right: auto !important;
    padding-left: 2px;
    /* Micro-ajustement visuel pour aligner avec le titre */
}

/* Bouton principal imposant */
.btn-hero-primary {
    min-width: 350px;
    padding: 20px 40px !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    box-shadow: 0 10px 40px rgba(0, 102, 179, 0.4) !important;
}

.btn-hero-primary:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 15px 50px rgba(0, 102, 179, 0.6) !important;
}

/* Container CTA Brutalist (colonne) */
.hero-cta-brutalist {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-top: var(--spacing-lg);
}

/* Lien secondaire WhatsApp discret */
.hero-link-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 8px 0;
    border-bottom: 1px solid transparent;
}

.hero-link-secondary:hover {
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.5);
    gap: 12px;
    /* Espace augmente au hover */
}

.hero-link-secondary svg {
    transition: transform 0.3s ease;
}

.hero-link-secondary:hover svg {
    transform: translate(2px, -2px);
    /* Flèche ↗ */
}

/* ========================================
   ANIMATIONS - SLIDE UP & FADE IN
   ======================================== */

@keyframes heroSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-slide-up {
    animation: heroSlideUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    /* Initialement invisible */
}

/* ========================================
   EFFET ZOOM CINÉMATIQUE SUR BACKGROUND
   ======================================== */

.hero-bg-zoom {
    animation: cinematicZoom 20s ease-in-out infinite alternate;
}

@keyframes cinematicZoom {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.1);
        /* Zoom avant de 10% */
    }
}

/* ========================================
   RESPONSIVE - MOBILE (CORRECTION URGENTE)
   ======================================== */

@media (max-width: 768px) {

    /* ─────────────────────────────────────────────
       1. CENTRAGE GLOBAL DU CONTENU HERO
       ───────────────────────────────────────────── */

    .hero-content-left {
        text-align: center !important;
        align-items: center !important;
        padding-left: 20px;
        padding-right: 20px;
    }

    /* ─────────────────────────────────────────────
       2. TITRE H1 - UNIFORMISATION TOTALE
       ───────────────────────────────────────────── */

    .hero-content h1 {
        font-size: 2.5rem !important;
        /* Taille unique pour TOUT le titre */
        line-height: 1.1 !important;
        /* Line-height compact et puissant */
        font-weight: 800 !important;
        text-align: center !important;
        margin-bottom: 24px !important;
        padding: 0 !important;
    }

    /* Force la même taille sur TOUS les enfants du titre */
    .hero-content h1,
    .hero-content h1 span,
    .hero-content h1 .text-gradient,
    .hero-content h1 .text-solid,
    .hero-content h1 .text-solid-xxl {
        font-size: 2.5rem !important;
        line-height: 1.1 !important;
    }

    /* ─────────────────────────────────────────────
       3. SUPPRESSION DE L'EFFET OUTLINE MOBILE
       ───────────────────────────────────────────── */

    .text-outline-xxl {
        /* Supprime complètement l'effet outline XXL sur mobile */
        -webkit-text-stroke: 0 !important;
        text-stroke: 0 !important;
        font-size: 2.5rem !important;
        /* Même taille que le reste */
    }

    .text-solid-xxl {
        /* Neutralise l'effet "solid" spécial - tout devient uniforme */
        -webkit-text-fill-color: inherit !important;
        text-shadow: none !important;
        font-size: 2.5rem !important;
        margin-top: 0 !important;
    }

    /* ─────────────────────────────────────────────
       4. PARAGRAPHE & BADGE - CENTRAGE
       ───────────────────────────────────────────── */

    .hero-subtitle {
        text-align: center !important;
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        font-size: 16px !important;
        line-height: 1.6 !important;
    }

    .hero-badge {
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* ─────────────────────────────────────────────
       5. BOUTONS CTA - LARGEUR PLEINE & CENTRAGE
       ───────────────────────────────────────────── */

    .btn-hero-primary {
        min-width: 100% !important;
        width: 100% !important;
        padding: 18px 30px !important;
        font-size: 16px !important;
        text-align: center !important;
        justify-content: center !important;
    }

    .hero-cta-brutalist {
        align-items: center !important;
        /* Centre les boutons */
        width: 100%;
    }

    .hero-link-secondary {
        justify-content: center !important;
        text-align: center !important;
    }

    /* ─────────────────────────────────────────────
       6. OUTLINE EN ARRIÈRE-PLAN (Caché sur mobile)
       ───────────────────────────────────────────── */

    .hero-title-outline {
        display: none !important;
        /* Masque complètement l'outline background sur mobile */
    }

    /* ─────────────────────────────────────────────
       7. ESPACEMENT & PADDING MOBILE
       ───────────────────────────────────────────── */

    .hero {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero .container {
        padding-left: 0;
        padding-right: 0;
    }
}

/* TRÈS PETITS ÉCRANS (< 375px - iPhone SE) */
@media (max-width: 375px) {

    .hero-content h1,
    .hero-content h1 span,
    .hero-content h1 .text-gradient,
    .hero-content h1 .text-solid,
    .hero-content h1 .text-solid-xxl {
        font-size: 2rem !important;
        /* Réduit légèrement pour très petits écrans */
    }

    .hero-subtitle {
        font-size: 15px !important;
    }
}