/* Mobile Hero Fixes */
@media (max-width: 768px) {
    .service-hero {
        /* On réduit le padding vertical pour éviter que le hero soit trop grand (fix Industrie) */
        padding: 4rem 0 3rem !important; 
        position: relative !important; /* Important pour que l'image absolue se cale ici */
        overflow: hidden;
        min-height: auto !important;
    }

    .hero-content {
        position: static !important; /* Laisse le parent service-hero gérer l'absolu */
        z-index: 10;
        /* On force l'affichage en colonne */
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
    }

    /* Ciblage du texte (y compris le wrapper .animate-in de la page Industrie) */
    .hero-content > div:not(.hero-visual) {
        position: relative;
        z-index: 20 !important; /* Au-dessus de l'image */
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 1.5rem;
        margin: 0 !important; /* Supprime les marges parasites */
    }
    
    /* Centrage du fil d'ariane */
    .breadcrumb {
        display: flex !important;
        justify-content: center !important;
        flex-wrap: wrap;
        width: 100%;
        margin-bottom: 0.75rem !important; /* Marge réduite */
    }
    
    /* Compacter le titre pour réduire la hauteur totale */
    .service-hero h1 {
        font-size: 2rem !important; /* Un peu plus petit */
        margin-bottom: 0.75rem !important;
        line-height: 1.1 !important;
        text-align: center !important;
        width: 100%;
    }
    
    /* Compacter le sous-titre */
    .service-hero .subtitle {
        margin-bottom: 1.25rem !important;
        font-size: 1rem !important;
        line-height: 1.4 !important;
        max-width: 100%;
        text-align: center !important;
    }

    /* Compacter les badges */
    .hero-badges {
        justify-content: center !important;
        margin-bottom: 1.5rem !important;
        gap: 0.5rem !important;
    }

    .cta-group {
        justify-content: center !important;
    }

    /* --- FIX IMAGE DE FOND --- */
    /* On s'assure que le conteneur de l'image prend TOUT l'espace disponible */
    .hero-visual {
        display: block !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: 100% !important;
        z-index: 1 !important;
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
    }

    .hero-visual img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
        border-radius: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Overlay sombre pour la lisibilité */
    .hero-visual::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(15, 23, 42, 0.75);
        z-index: 2;
    }

    /* Grilles Mobile */
    .projects-grid,
    .applications-grid,
    .features-grid,
    .process-grid,
    .platforms-grid,
    .benefits-grid,
    .usecases-grid,
    .services-grid,
    .tech-categories,
    .expertise-grid {
        grid-template-columns: 1fr !important;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }

    .stat-number {
        font-size: 1.8rem !important;
    }
}