/* ============================================================
   1. VARIABLES & RESET & TYPOGRAPHIE
   ============================================================ */
:root {
    /* Palette Corporate */
    --primary-color: #004080;   /* Bleu Comitronic (Logos/Titres) */
    --secondary-color: #0073e6; /* Bleu Vif (Actions/Liens) */
    --accent-color: #ffcc00;    /* Jaune (Détails) */
    
    /* Palette Dark (Section Plateformes/Engagements) */
    --dark-bg: #0d1b2a;         /* Bleu Nuit Profond */
    
    /* Palette Engagement (Specifique Section RSE) */
    --eng-red: #cc0000;         /* Rouge Titres RSE */
    --eng-orange: #f39c12;      /* Orange Boutons RSE */
    --eng-btn-hover: #d35400;   
    
    /* Neutres */
    --text-dark: #333333;
    --text-light: #555555;      /* Un peu plus sombre pour la lisibilité */
    --bg-light: #f8f9fa;        /* Gris très pâle */
    --white: #ffffff;
    
    /* Formes */
    --border-radius: 8px;       /* Arrondis un peu plus doux */
    --shadow: 0 4px 15px rgba(0,0,0,0.08); /* Ombre plus douce et diffuse */
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.7; /* Augmenté pour aérer le texte */
    color: var(--text-dark);
    background-color: var(--white);
    font-size: 16px;
    scroll-behavior: smooth;
}

a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* ============================================================
   2. UTILITAIRES DE MISE EN PAGE
   ============================================================ */
.container { 
    width: 90%; 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 15px; 
}

.section { padding: 80px 0; } /* Plus d'espace entre les sections */

.bg-light { background-color: var(--bg-light); }
.bg-dark-blue { background-color: var(--dark-bg); color: white; }

/* Titres de Section */
.section-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 40px; /* Espace sous le titre */
    text-transform: uppercase;
    font-weight: 700;
    border-bottom: 4px solid var(--accent-color);
    display: inline-block;
    padding-bottom: 10px;
}

/* En-tête de section centré (Pour Engagements & Plateformes) */
.section-header-center { 
    text-align: center; 
    margin-bottom: 60px; /* Gros espace avant les cartes */
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.section-header-center h2 { font-size: 2.2rem; margin-bottom: 15px; }
.section-header-center p { font-size: 1.1rem; color: #b0c4de; } /* Bleu gris clair */

.text-white { color: white !important; }
.text-gray { color: #666; }
.mt-20 { margin-top: 20px; }

/* ============================================================
   3. BOUTONS
   ============================================================ */
.btn {
    display: inline-block;
    padding: 14px 28px; /* Boutons plus grands */
    border-radius: var(--border-radius);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.95rem;
    margin-right: 15px;
    letter-spacing: 0.5px;
}
.btn-primary { background-color: var(--secondary-color); color: var(--white); }
.btn-primary:hover { background-color: var(--primary-color); transform: translateY(-2px); }

.btn-outline { border: 2px solid var(--white); color: var(--white); }
.btn-outline:hover { background-color: var(--white); color: var(--primary-color); }

/* ============================================================
   4. HEADER & NAVIGATION
   ============================================================ */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky; top: 0; z-index: 1000;
}
.header-container { display: flex; justify-content: space-between; align-items: center; height: 80px; }

.logo { font-weight: 700; font-size: 1.3rem; color: var(--primary-color); display: flex; align-items: center; }
.logo img { height: 45px; margin-right: 12px; }

/* Menu Burger (Mobile) */
.menu-toggle { display: none; }
.menu-icon { cursor: pointer; padding: 20px; position: relative; }
.navicon { background: var(--text-dark); display: block; height: 3px; width: 22px; position: relative; border-radius: 2px; }
.navicon:before, .navicon:after {
    background: var(--text-dark); content: ''; display: block; height: 100%; position: absolute; width: 100%; transition: all .2s ease-out; border-radius: 2px;
}
.navicon:before { top: 7px; } .navicon:after { top: -7px; }

.nav-menu {
    position: absolute; top: 80px; left: 0; width: 100%;
    background: var(--white); border-top: 1px solid #eee;
    max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out;
    display: flex; flex-direction: column; align-items: center; box-shadow: 0 10px 10px rgba(0,0,0,0.05);
}
.nav-menu ul { width: 100%; text-align: center; padding: 20px 0; }
.nav-menu li { padding: 10px 0; }
.nav-menu a { font-weight: 500; font-size: 1.1rem; }
.menu-toggle:checked ~ .nav-menu { max-height: 1000px; }
.btn-contact { background: var(--primary-color); color: white !important; padding: 10px 20px; border-radius: 4px; }

/* ============================================================
   CORRECTIF FINAL V4 : MENU LANGUE (ANTI-CONFLIT DESKTOP)
   ============================================================ */

/* 1. CONTENEUR PRINCIPAL */
.lang-dropdown-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-top: 10px;
    z-index: 2000;
}

/* 2. CACHER LA CHECKBOX */
.lang-checkbox {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    opacity: 0 !important;
}

/* 3. LE BOUTON VISIBLE */
.lang-btn {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: white;
    user-select: none;
    transition: all 0.2s ease;
    min-width: 60px;
}

.lang-btn:hover { background-color: #f5f5f5; }
.flag-icon { font-size: 1.4rem; line-height: 1; }
.lang-arrow { font-size: 0.7rem; margin-left: 8px; color: #333; transition: transform 0.3s; }

/* 4. LE MENU DÉROULANT */
.dropdown-menu {
    /* LE CORRECTIF EST ICI : on force le masquage avec !important 
       pour écraser le style du menu principal qui force l'affichage */
    display: none !important; 
    
    background: white;
    border-radius: 4px;
    padding: 0;
    list-style: none;
    border: 1px solid #eee;
}

.dropdown-menu a {
    display: flex; align-items: center; padding: 10px 15px; 
    font-size: 0.95rem; color: #333; text-decoration: none; white-space: nowrap;
}
.dropdown-menu .flag-icon { margin-right: 10px; }

/* LOGIQUE D'OUVERTURE */
/* Quand c'est coché, on force l'affichage en Block */
.lang-checkbox:checked ~ .dropdown-menu { display: block !important; }
.lang-checkbox:checked ~ .lang-btn .lang-arrow { transform: rotate(180deg); }


/* ============================================================
   MOBILE SPECIFIC (< 992px)
   ============================================================ */
@media (max-width: 991px) {
    .lang-dropdown-wrapper {
        display: flex; flex-direction: column; width: 100%; align-items: center;
    }
    .dropdown-menu {
        position: static; margin-top: 5px; width: auto; min-width: 120px;
        text-align: center; background-color: #f9f9f9;
    }
    .dropdown-menu a { justify-content: center; }
}

/* ============================================================
   DESKTOP SPECIFIC (> 992px)
   ============================================================ */
@media (min-width: 992px) {
    .nav-menu { overflow: visible !important; }

    .lang-dropdown-wrapper { margin-top: 0; margin-left: 20px; }

    .lang-btn { background: transparent; border: 1px solid transparent; }
    .lang-btn:hover { background: #f9f9f9; border-color: #eee; }

    .dropdown-menu {
        position: absolute;
        top: 100%;
        right: 0;
        left: auto;
        margin-top: 5px;
        min-width: 150px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        z-index: 5000;
    }

    .dropdown-menu a:hover { background-color: #f0f0f0; color: var(--secondary-color); }
    
    /* Petite flèche décorative */
    .dropdown-menu::before {
        content: ''; position: absolute; top: -6px; right: 15px; width: 10px; height: 10px;
        background: white; transform: rotate(45deg);
        border-top: 1px solid #eee; border-left: 1px solid #eee;
    }
}


/* ============================================================
   MEDIA QUERY : VERSION ORDINATEUR (DESKTOP) > 992px
   ============================================================ */
@media (min-width: 992px) {

    /* IMPORTANT : On autorise les éléments à dépasser du header */
    .nav-menu { overflow: visible !important; }

    .lang-dropdown-wrapper { margin-top: 0; margin-left: 25px; }

    .lang-btn {
        background: transparent; border-color: transparent; padding: 5px;
    }

    /* Le menu devient flottant sur PC */
    .dropdown-menu {
        position: absolute; /* Flotte au-dessus */
        top: 100%;          /* Juste sous le bouton */
        right: 0;           /* Aligné à droite du bouton */
        left: auto;         /* On annule tout alignement gauche */
        margin-top: 10px;   /* Petit espace entre le bouton et le menu */
        width: auto;        /* Largeur automatique selon le contenu */
        min-width: 140px;
        background: var(--white);
        box-shadow: 0 5px 20px rgba(0,0,0,0.15); /* Belle ombre */
        border: 1px solid #eee;
        z-index: 5000;
        text-align: left;
    }

    .dropdown-menu a {
        justify-content: flex-start; /* Aligné à gauche */
        padding: 10px 15px;
    }

    .dropdown-menu a:hover {
        background-color: #f0f0f0; color: var(--secondary-color);
    }
}

/* ============================================================
   MEDIA QUERY : VERSION ORDINATEUR (DESKTOP)
   ============================================================ */
@media (min-width: 992px) { 
    
    /* IMPORTANT : On autorise le dépassement sur Desktop */
    .nav-menu { overflow: visible !important; }

    .lang-dropdown-wrapper { 
        margin-top: 0; 
        margin-left: 20px; 
    }

    .lang-btn {
        background: transparent;
        border-color: transparent;
        padding: 5px 10px;
    }

    /* Le menu devient flottant sur PC */
    .dropdown-menu {
        position: absolute; /* Flotte au-dessus */
        top: 100%; 
        left: 50%; 
        transform: translateX(-50%);
        width: auto; 
        min-width: 150px; 
        background: var(--white);
        box-shadow: 0 10px 30px rgba(0,0,0,0.15); /* Grosse ombre */
        border: 1px solid #eee;
        z-index: 5000; /* Au-dessus de tout */
    }

    .dropdown-menu a {
        justify-content: flex-start; /* Aligné gauche */
        padding: 10px 20px;
        border-top: none;
    }
    
    .dropdown-menu a:hover {
        background-color: var(--bg-light);
        color: var(--secondary-color);
    }
}

/* --- MENU DÉROULANT (VERSION MOBILE PAR DÉFAUT) --- */
.dropdown-menu {
    display: none; /* Complètement caché par défaut */
    background: var(--bg-light); /* Fond gris clair sur mobile pour différencier */
    border-radius: 4px;
    margin-top: 5px;
    padding: 0;
    width: 100%; /* Prend toute la largeur sur mobile */
    text-align: center;
}

/* Liens dans le menu déroulant */
.dropdown-menu a { 
    display: flex; 
    align-items: center; 
    justify-content: center; /* Centré sur mobile */
    padding: 12px 20px; 
    font-size: 0.95rem; 
    color: var(--text-dark);
    border-top: 1px solid #ddd; /* Séparation fine */
}

/* --- LOGIQUE D'OUVERTURE --- */

/* Quand la case est cochée, on affiche le menu en bloc */
.lang-checkbox:checked ~ .dropdown-menu { 
    display: block; 
}

/* Quand la case est cochée, on tourne la flèche */
.lang-checkbox:checked ~ .lang-btn .lang-arrow { 
    transform: rotate(180deg); 
}

/* ============================================================
   MEDIA QUERY : VERSION ORDINATEUR (Desktop)
   ============================================================ */
@media (min-width: 992px) { 
    
    .lang-dropdown-wrapper { 
        margin-top: 0; 
        margin-left: 20px; 
    }

    .lang-btn {
        background: transparent;
        border-color: transparent;
        padding: 5px 10px;
    }
    .lang-btn:hover { background: #f4f4f4; }

    /* Sur PC, le menu devient flottant (Absolu) */
    .dropdown-menu {
        position: absolute; /* Flotte au-dessus du reste */
        top: 100%; 
        left: 50%; 
        transform: translateX(-50%);
        width: auto; 
        min-width: 160px; /* Largeur min sur PC */
        background: var(--white);
        box-shadow: 0 5px 15px rgba(0,0,0,0.15);
        border: 1px solid #eee;
        z-index: 2000; /* Très haut pour passer au-dessus de tout */
    }

    .dropdown-menu a {
        justify-content: flex-start; /* Aligné à gauche sur PC */
        border-top: none;
    }

    .dropdown-menu a:hover { 
        background-color: var(--bg-light); 
        color: var(--secondary-color); 
    }
}

/* ============================================================
   5. HERO SECTION (Correction Espacements)
   ============================================================ */
.hero {
    background: url('assets/img/hero.jpg') no-repeat center center/cover;
    background-color: #1a2530; /* Fallback */
    height: 85vh; min-height: 600px; /* Hauteur minimale garantie */
    display: flex; align-items: center; position: relative;
    color: var(--white); text-align: center;
}
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(13, 27, 42, 0.8); } /* Plus sombre pour contraste */
.hero-content { position: relative; z-index: 1; max-width: 900px; padding: 0 20px; }

/* CORRECTION : Plus d'espace entre les éléments du Hero */
.hero h1 { 
    font-size: 2.5rem; 
    margin-bottom: 30px; /* Aéré */
    line-height: 1.3; 
    font-weight: 700;
}
.hero p { 
    font-size: 1.2rem; 
    margin-bottom: 50px; /* Gros espace avant les boutons */
    color: #e0e0e0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.highlight { color: var(--accent-color); }

/* ============================================================
   6. PRODUITS & CARTES GÉNÉRALES
   ============================================================ */
.card {
    background: var(--white); border-radius: var(--border-radius);
    box-shadow: var(--shadow); overflow: hidden; margin-bottom: 30px; 
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-8px); box-shadow: 0 10px 25px rgba(0,0,0,0.15); }
.card-img { height: 220px; background-color: #eee; background-size: cover; background-position: center; }
.card-body { padding: 30px; flex-grow: 1; display: flex; flex-direction: column; } /* Padding confortable */
.card-body h3 { color: var(--primary-color); margin-bottom: 15px; font-size: 1.3rem; }
.card-body p { margin-bottom: 20px; color: var(--text-light); flex-grow: 1; }
.read-more { color: var(--secondary-color); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-top: auto; }

/* ============================================================
   7. SECTION ENGAGEMENTS (HUB COMPLIANCE)
   ============================================================ */
/* Textes spécifiques */
.text-orange { color: var(--eng-orange) !important; border-color: var(--eng-orange) !important; }
.text-red { color: var(--eng-red); font-weight: 700; margin-bottom: 25px; font-size: 1.4rem; }

/* Carte Engagement Spécifique */
.engagement-card .card-body {
    padding: 40px; /* CORRECTION : Beaucoup d'espace intérieur */
    text-align: left;
}

/* Liste à puces aérée */
.custom-list { margin-bottom: 35px; flex-grow: 1; }
.custom-list li {
    position: relative; padding-left: 25px; margin-bottom: 15px; /* Espacement entre les puces */
    color: var(--text-dark); font-size: 1rem;
}
.custom-list li:before {
    content: '•'; color: var(--text-dark); position: absolute; left: 0;
    font-weight: bold; font-size: 1.5rem; line-height: 1rem; top: 2px;
}

/* Bouton Orange Pleine Largeur */
.btn-orange {
    background-color: var(--eng-orange); color: white; border: none;
    display: block; width: 100%; text-align: center;
    padding: 15px 0; font-size: 0.9rem; font-weight: 800;
}
.btn-orange:hover { background-color: var(--eng-btn-hover); color: white; }

/* ============================================================
   8. SECTION PLATEFORMES (Cartes Sombres)
   ============================================================ */
/* ============================================================
   CORRECTIF : PLATEFORMES (ESPACEMENT & MOBILE)
   ============================================================ */

.platform-grid {
    display: flex;       /* Plus flexible que grid sur mobile */
    flex-direction: column; /* Empile les cartes verticalement */
    gap: 15px;           /* L'ESPACE IMPORTANT ENTRE CHAQUE CARTE */
    width: 100%;
}

/* Style de la carte individuelle */
.platform-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px; /* Arrondi individuel */
    padding: 15px 20px; /* Espace interne pour aérer le texte */
    
    display: flex;
    align-items: center; /* Centre verticalement le drapeau et le texte */
    justify-content: space-between; /* Pousse la flèche tout à droite */
    
    text-decoration: none;
    transition: all 0.2s ease;
    margin-bottom: 0; /* Le 'gap' du parent gère l'espace */
}

/* Effet au survol */
.platform-card:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateX(5px);
}

/* ============================================================
   AJOUT : BARRE JAUNE (TECH CARD)
   ============================================================ */

.tech-card {
    /* La barre jaune de 5 pixels à gauche */
    border-left: 5px solid var(--accent-color) !important; 
    
    /* Petite astuce pour que le texte ne colle pas à la barre */
    padding-left: 20px;
}

/* Zone du texte (Drapeau + Titre + Description) */
.platform-content-wrapper {
    display: flex;
    align-items: center;
    flex-grow: 1; /* Prend toute la place disponible pour pousser la flèche */
    overflow: hidden; /* Evite que le texte déborde sur petits écrans */
}

.flag-icon {
    font-size: 1.8rem;
    margin-right: 15px; /* Espace entre drapeau et texte */
    flex-shrink: 0; /* Empêche le drapeau de s'écraser */
}

.platform-info {
    display: flex;
    flex-direction: column;
    padding-right: 10px; /* Espace de sécurité avec la flèche */
}

.platform-info h3 {
    font-size: 1rem;
    color: white;
    margin-bottom: 2px;
    font-weight: 600;
}

.platform-info p {
    font-size: 0.85rem;
    color: #b0b0b0;
    margin: 0;
    white-space: nowrap;      /* Force une seule ligne sur mobile... */
    overflow: hidden;         /* ...coupe si trop long... */
    text-overflow: ellipsis;  /* ...ajoute '...' */
    max-width: 200px;         /* Largeur max avant coupure */
}

/* La Flèche à droite */
.arrow-icon {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-left: 10px;
    flex-shrink: 0;
}


/* --- VERSION DESKTOP (GRANDE GRILLE) --- */
@media (min-width: 992px) {
    .platform-grid {
        display: grid; /* On repasse en grille sur PC */
        grid-template-columns: repeat(3, 1fr); /* 3 colonnes */
        gap: 25px; /* Espace plus grand sur PC */
    }
    
    /* ============================================================
   STYLE DES SOUS-TITRES (Jaune & Séparateur)
   ============================================================ */

.grid-subtitle {
    color: var(--accent-color); /* Remet le jaune (#ffcc00) */
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    
    margin-top: 30px;    /* Espace au-dessus */
    margin-bottom: 15px; /* Espace en-dessous */
    padding-bottom: 8px; /* Espace entre texte et ligne */
    
    border-bottom: 1px solid rgba(255, 255, 255, 0.2); /* Ligne de séparation fine */
    width: 100%; /* Force la pleine largeur */
}

/* SPÉCIFIQUE PC : Pour que le titre traverse les 3 colonnes de la grille */
@media (min-width: 992px) {
    .grid-subtitle {
        grid-column: 1 / -1; 
    }
}    
    .platform-card:hover {
        transform: translateY(-5px); /* Monte au lieu de glisser */
    }
}

/* ============================================================
   9. SECTION CONTACT (Sans Formulaire)
   ============================================================ */
.contact-box {
    background: var(--white); padding: 50px 30px; /* CORRECTION : Padding augmenté */
    border-radius: var(--border-radius); box-shadow: var(--shadow);
    text-align: center; transition: transform 0.3s;
    border-bottom: 5px solid transparent; height: 100%;
}
.contact-box:hover { transform: translateY(-10px); border-bottom-color: var(--secondary-color); }

.icon-circle {
    background: var(--bg-light); width: 80px; height: 80px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 25px; font-size: 2.2rem; color: var(--primary-color);
}
.contact-box h3 { color: var(--primary-color); margin-bottom: 15px; font-size: 1.3rem; font-weight: 700; }
.contact-box p { color: var(--text-light); margin-bottom: 25px; line-height: 1.6; }

.contact-link {
    display: inline-block; color: var(--secondary-color); font-weight: 700;
    border: 1px solid var(--secondary-color); padding: 12px 25px;
    border-radius: 50px; transition: 0.3s;
}
.contact-link:hover { background: var(--secondary-color); color: white; text-decoration: none; }

/* ============================================================
   10. LE GROUPE & FOOTER
   ============================================================ */
.check-list li { position: relative; padding-left: 30px; margin-bottom: 12px; }
.check-list li:before { content: '✓'; position: absolute; left: 0; color: var(--accent-color); font-weight: bold; font-size: 1.2rem; }

.footer { background: #111; color: #bbb; padding: 60px 0 0; font-size: 0.9rem; }
.footer-col { margin-bottom: 40px; }
.footer h4 { color: var(--white); margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; }
.footer ul li { margin-bottom: 12px; }
.footer a:hover { color: var(--accent-color); padding-left: 5px; } /* Petit effet au survol */
.footer-bottom { background: #000; text-align: center; padding: 20px; margin-top: 40px; border-top: 1px solid #222; }

/* ================= LE GROUPE (Correctif Image) ================= */

/* Permet de centrer verticalement le texte par rapport à l'image */
.align-center {
    align-items: center; 
}

/* Style spécifique pour l'image de l'usine */
.img-responsive-shadow {
    width: 100%;             /* Force l'image à prendre toute la largeur de sa colonne */
    height: auto;            /* Garde les proportions */
    max-height: 400px;       /* Évite qu'elle devienne trop géante sur les écrans immenses */
    object-fit: cover;       /* Remplit bien le cadre */
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15); /* Belle ombre portée pour le relief */
}

/* Ajustement de la liste pour l'aérer un peu comme sur la capture */
.check-list {
    margin: 25px 0;
}
.check-list li {
    font-size: 1.05rem;
    margin-bottom: 15px;
}

/* ============================================================
   11. MEDIA QUERIES (DESKTOP)
   ============================================================ */
@media (min-width: 992px) { /* Cible Tablette paysage et PC */
    
    /* Nav Desktop */
    .menu-icon, .menu-toggle { display: none; }
    .nav-menu {
        position: static; max-height: none; background: transparent;
        width: auto; border: none; display: block; box-shadow: none; padding: 0;
    }
    .nav-menu ul { display: flex; gap: 30px; align-items: center; padding: 0; }
    .lang-dropdown-wrapper { margin-top: 0; margin-left: 20px; }
    
    /* Grilles */
    .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
    .grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
    .grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
    
    .platform-grid { grid-template-columns: repeat(3, 1fr); gap: 25px; }
    .contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }

    /* Hero Desktop */
    .hero h1 { font-size: 3.5rem; } /* Titre encore plus grand sur PC */
    
    /* Animation Desktop */
    .platform-card:hover { transform: translateY(-5px); }
}

/* ============================================================
   CORRECTIF SPÉCIAL MOBILE (iPhone 12/13/Pro & Petits écrans)
   ============================================================ */

@media (max-width: 768px) {

    /* --- 1. HERO SECTION (Le haut avec l'image sombre) --- */
    .hero {
        /* On enlève la hauteur fixe qui écrase le contenu */
        height: auto !important; 
        min-height: 85vh; /* Hauteur minimum */
        padding-top: 100px; /* Espace pour le header */
        padding-bottom: 60px;
        background-position: center top; /* Cadrage image */
    }

    .hero h1 {
        font-size: 1.8rem; /* Titre plus petit */
        margin-bottom: 20px;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 30px;
        padding: 0 10px; /* Marge latérale de sécurité */
    }

    /* Les boutons du Hero s'empilent pour être plus faciles à cliquer */
    .hero-btns {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px; /* Espace entre les boutons */
    }

    .hero-btns .btn {
        width: 100%; /* Pleine largeur */
        margin-right: 0;
        margin-bottom: 0;
        max-width: 300px; /* Pas trop large non plus */
    }

    /* --- 2. CARTES (Produits & Engagements) --- */
    .card-body {
        padding: 25px 20px !important; /* Espace interne confortable */
    }

    .card h3 {
        font-size: 1.2rem; /* Titre de carte un peu plus petit */
        margin-bottom: 15px;
    }

    /* --- 3. SECTION ENGAGEMENTS (RSE) --- */
    .engagement-card .card-body {
        /* On s'assure que le bouton ne colle pas à la liste */
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .custom-list {
        margin-bottom: 30px; /* Gros espace avant le bouton orange */
    }

    .custom-list li {
        font-size: 0.95rem; /* Texte lisible mais compact */
        margin-bottom: 12px;
        line-height: 1.4;
    }

    /* Le bouton orange prend de la place pour respirer */
    .btn-orange {
        margin-top: auto; /* Pousse le bouton tout en bas */
        padding: 15px 10px;
        white-space: normal; /* Permet au texte du bouton de passer à la ligne si trop long */
        line-height: 1.2;
    }

    /* --- 4. TITRES DE SECTION --- */
    .section-title {
        font-size: 1.6rem; /* Un peu plus petit */
        margin-bottom: 30px;
    }
    
    .section {
        padding: 50px 0; /* Sections moins hautes */
    }
}

/* ============================================================
   CORRECTIF ESPACEMENT MOBILE (FINAL)
   ============================================================ */

@media (max-width: 768px) {

    /* 1. CORRECTION SECTION "LE GROUPE" (Bouton collé à l'image) */
    
    /* On ajoute une marge en bas du bloc de texte pour pousser l'image */
    #groupe .text-block {
        margin-bottom: 40px !important; /* Force l'espace sous le bouton */
    }

    /* On s'assure que l'image a aussi une petite marge au cas où */
    #groupe .img-block {
        margin-top: 10px;
    }

    /* 2. CORRECTION SECTION "CONTACT" (Espace entre les boites) */
    
    .contact-grid {
        display: flex; /* On passe en flex vertical sur mobile pour mieux gérer l'espace */
        flex-direction: column;
        gap: 40px !important; /* Gros espace entre chaque bloc contact */
    }

    .contact-box {
        margin-bottom: 0; /* Le gap gère l'espace, mais on nettoie les marges */
        width: 100%;
    }

    /* 3. SÉCURITÉ GÉNÉRALE POUR LES GRILLES */
    /* Cela empêche tout texte de coller à l'élément suivant sur mobile */
    .grid-2 {
        display: flex;
        flex-direction: column;
        gap: 40px; 
    }
}