/* --- 1. RESET & VARIABLES GLOBALES --- */
:root {
    --pure-red: #FF0000;      /* ROUGE PUR EXIGÉ */
    --black: #000000;         /* NOIR ABSOLU */
    --dark-grey: #0A0A0A;     /* GRIS DARK POUR LES SECTIONS */
    --card-bg: #111111;       /* BACKGROUND DES CARTES */
    --white: #FFFFFF;
    --text-grey: #A0A0A0;
    --border-color: #222222;
    --font-main: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --container-width: 1240px;
}

* { margin: 0; padding: 0; box-sizing: border-box; outline: none; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--black);
    color: var(--white);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden; /* Empêche tout débordement horizontal */
}

/* --- 2. LAYOUT UTILS --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 25px;
}

.highlight-red { color: var(--pure-red); }

/* --- 3. HEADER & NAVIGATION --- */
.main-header {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--pure-red);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-identity {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo { height: 45px; }

.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text .name { font-weight: 900; font-size: 1.3rem; letter-spacing: 1px; }
.brand-text .sub { color: var(--pure-red); font-size: 0.65rem; letter-spacing: 3px; font-weight: 700; margin-top: 3px; }

.nav-list { display: flex; list-style: none; gap: 30px; }
.nav-link {
    color: var(--white);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    opacity: 0.7;
    transition: var(--transition);
}
.nav-link:hover, .nav-link.active { opacity: 1; color: var(--pure-red); }

.btn-emergency-pulse {
    background: var(--pure-red);
    color: var(--white);
    text-decoration: none;
    padding: 10px 20px;
    font-size: 0.8rem;
    font-weight: 800;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: alertPulse 2s infinite;
}

/* --- 4. HERO SECTION --- */
.hero-block {
    padding-top: 180px;
    padding-bottom: 100px;
    position: relative;
    overflow: hidden;
}

.matrix-grid-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(var(--pure-red) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.03;
    z-index: -1;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.hero-main-text .top-label { display: flex; align-items: center; gap: 15px; margin-bottom: 25px; }
.hero-main-text .line { width: 40px; height: 2px; background: var(--pure-red); }
.hero-main-text .label-txt { font-family: var(--font-mono); font-size: 0.8rem; font-weight: 700; color: var(--pure-red); }

.hero-main-text h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem); /* Taille dynamique sécurisée */
    line-height: 1.1;
    font-weight: 900;
    margin-bottom: 30px;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-grey);
    max-width: 580px;
    margin-bottom: 45px;
}

.hero-cta-group { display: flex; gap: 20px; }

.btn-primary {
    background: var(--pure-red);
    color: var(--white);
    padding: 18px 35px;
    text-decoration: none;
    font-weight: 800;
    border-radius: 4px;
    transition: var(--transition);
}

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
    padding: 18px 35px;
    text-decoration: none;
    font-weight: 800;
    border-radius: 4px;
    transition: var(--transition);
}

.btn-primary:hover { transform: translateY(-5px); background: #cc0000; }
.btn-outline:hover { background: var(--white); color: var(--black); }

/* TERMINAL VISUAL */
.hero-terminal {
    background: #050505;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    overflow: hidden;
}

.terminal-header {
    background: #1a1a1a;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.terminal-header .dots { display: flex; gap: 8px; }
.terminal-header .dots span { width: 10px; height: 10px; border-radius: 50%; background: #333; }
.terminal-header .title { font-size: 0.65rem; font-family: var(--font-mono); color: var(--text-grey); }

.terminal-body {
    padding: 25px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: #00FF41; /* Vert terminal */
}

.alert-red { color: var(--pure-red); font-weight: 700; }
.cursor { animation: blink 1s infinite; }

/* FEATURES BAR */
.hero-features-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    border-top: 1px solid var(--border-color);
    padding-top: 40px;
}

.feat-item { display: flex; align-items: center; gap: 20px; }
.feat-item i { font-size: 2.2rem; color: var(--pure-red); }
.feat-info strong { display: block; font-size: 1rem; margin-bottom: 3px; }
.feat-info span { font-size: 0.8rem; color: var(--text-grey); }

/* --- 5. EXPERTISE SECTION --- */
.expertise-section {
    background: var(--dark-grey);
    padding: 120px 0;
}

.section-heading { text-align: center; margin-bottom: 80px; }
.section-title { font-size: 2.5rem; font-weight: 900; margin-bottom: 15px; }
.section-subtitle { color: var(--text-grey); font-size: 1.1rem; }

.services-detailed-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-detail-card {
    background: var(--card-bg);
    padding: 50px 40px;
    border: 1px solid var(--border-color);
    position: relative;
    transition: var(--transition);
}

.service-detail-card:hover {
    border-color: var(--pure-red);
    transform: translateY(-10px);
}

.service-detail-card.red-featured {
    border: 2px solid var(--pure-red);
}

.card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
}

.card-head i { font-size: 3rem; color: var(--pure-red); }
.service-id { font-family: var(--font-mono); color: rgba(255,255,255,0.1); font-weight: 900; font-size: 1.5rem; }

.service-detail-card h3 { font-size: 1.4rem; margin-bottom: 20px; font-weight: 800; }
.service-detail-card p { font-size: 0.95rem; color: var(--text-grey); margin-bottom: 30px; }

.service-features {
    list-style: none;
    border-top: 1px solid #222;
    padding-top: 25px;
}

.service-features li {
    font-size: 0.85rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-features li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--pure-red);
    font-size: 0.7rem;
}

/* --- 6. LABORATOIRE SECTION --- */
.lab-section { padding: 120px 0; background: var(--black); }
.lab-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }

.lab-visual { position: relative; }
.lab-visual img { width: 100%; border-radius: 4px; filter: grayscale(1); }
.visual-accent { position: absolute; top: -20px; left: -20px; width: 100px; height: 100px; border-top: 5px solid var(--pure-red); border-left: 5px solid var(--pure-red); }

.lab-tag { color: var(--pure-red); font-weight: 800; font-size: 0.8rem; letter-spacing: 3px; }
.title-xl { font-size: 3.5rem; font-weight: 900; margin: 20px 0; }

.lab-capabilities { margin-top: 40px; }
.cap-item { margin-bottom: 30px; border-left: 3px solid var(--pure-red); padding-left: 20px; }
.cap-item h4 { font-size: 1.2rem; margin-bottom: 10px; }
.cap-item p { color: var(--text-grey); font-size: 0.95rem; }

/* --- 7. ACADÉMIE --- */
.academy-section { padding: 120px 0; background: #080808; }
.courses-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 60px; }
.course-card { text-align: center; background: var(--card-bg); padding: 40px; border: 1px solid var(--border-color); }
.course-img { width: 80px; height: 80px; background: rgba(255,0,0,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 25px; }
.course-img i { font-size: 2rem; color: var(--pure-red); }
.course-card h4 { font-size: 1.2rem; margin-bottom: 15px; }

/* --- 8. SECTION URGENCE --- */
.emergency-section { padding: 120px 0; background: var(--black); }
.emergency-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #111;
    border: 2px solid var(--pure-red);
    border-radius: 8px;
    overflow: hidden;
}

.emergency-content { padding: 60px; background: linear-gradient(135deg, #111 0%, #200 100%); }
.alert-header { display: flex; align-items: center; gap: 20px; margin-bottom: 30px; }
.alert-header i { font-size: 3.5rem; color: var(--pure-red); animation: alertBlink 1s infinite; }
.alert-header h2 { font-size: 2.2rem; font-weight: 900; }

.emergency-steps { margin-top: 40px; }
.step { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; font-weight: 700; }
.step span { width: 35px; height: 35px; border: 1px solid var(--pure-red); color: var(--pure-red); display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 0.8rem; }

.emergency-form-area { padding: 60px; background: #1a1a1a; }
.cyber-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.input-group { margin-bottom: 25px; }
.input-group label { display: block; font-size: 0.75rem; font-weight: 900; color: var(--pure-red); margin-bottom: 10px; letter-spacing: 1px; }

.input-group input, .input-group select, .input-group textarea {
    width: 100%;
    background: #0a0a0a;
    border: 1px solid #333;
    padding: 15px;
    color: var(--white);
    font-family: var(--font-main);
}

.input-group input:focus { border-color: var(--pure-red); }

.btn-submit-emergency {
    width: 100%;
    background: var(--pure-red);
    color: var(--white);
    border: none;
    padding: 20px;
    font-weight: 900;
    letter-spacing: 2px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit-emergency:hover { background: #cc0000; }

/* --- 9. FOOTER --- */
.main-footer { padding: 100px 0 40px; border-top: 1px solid #222; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 60px; margin-bottom: 60px; }
.footer-col h4 { color: var(--pure-red); font-size: 0.9rem; margin-bottom: 30px; letter-spacing: 2px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 15px; }
.footer-col a { color: var(--text-grey); text-decoration: none; font-size: 0.9rem; transition: var(--transition); }
.footer-col a:hover { color: var(--white); padding-left: 5px; }

.footer-bottom {
    border-top: 1px solid #222;
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #444;
}

/* --- ANIMATIONS --- */
@keyframes alertPulse { 0% { box-shadow: 0 0 0 0 rgba(255,0,0,0.4); } 70% { box-shadow: 0 0 0 15px rgba(255,0,0,0); } 100% { box-shadow: 0 0 0 0 rgba(255,0,0,0); } }
@keyframes alertBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1024px) {
    .hero-layout, .services-detailed-grid, .lab-wrapper, .courses-grid, .emergency-box, .footer-grid { grid-template-columns: 1fr; }
    .hero-features-bar { grid-template-columns: 1fr; }
    .nav-list { display: none; } /* On pourrait ajouter un menu burger ici */
}

:root {
    --red: #FF0000;
    --black: #000000;
    --dark: #080808;
    --grey: #121212;
    --text: #A5A5A5;
    --white: #FFFFFF;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: var(--black); color: var(--white); font-family: 'Inter', sans-serif; overflow-x: hidden; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* HEADER & LOGO SIZE OPTIMIZATION */
.main-header {
    background: rgba(0,0,0,0.98);
    border-bottom: 2px solid var(--red);
    padding: 10px 0;
    position: fixed; width: 100%; top: 0; z-index: 9999;
}
.header-container { display: flex; justify-content: space-between; align-items: center; }

/* Taille fixe pour le logo pour éviter tout décalage */
.brand-logo { 
    height: 55px; /* Taille idéale pour un logo pro */
    width: auto;
    display: block;
}

.brand-identity { display: flex; align-items: center; gap: 15px; }
.brand-text .name { font-weight: 900; font-size: 1.4rem; letter-spacing: 1px; }
.brand-text .sub { color: var(--red); font-size: 0.7rem; font-weight: 700; display: block; margin-top: -5px; }

.nav-list { display: flex; list-style: none; gap: 20px; }
.nav-link { color: var(--white); text-decoration: none; font-size: 0.8rem; font-weight: 700; transition: 0.3s; }
.nav-link:hover { color: var(--red); }

.btn-emergency-pulse {
    background: var(--red); color: var(--white); padding: 10px 20px; border-radius: 4px;
    text-decoration: none; font-weight: 800; font-size: 0.75rem;
    animation: pulse 1.5s infinite;
}

/* HERO */
.hero-block { padding: 180px 0 100px; }
.hero-layout { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 50px; align-items: center; }
.hero-main-text h1 { font-size: 4.5rem; font-weight: 900; line-height: 1; margin-bottom: 30px; }
.highlight-red { color: var(--red); }
.hero-description { color: var(--text); font-size: 1.2rem; margin-bottom: 40px; }
.hero-cta-group { display: flex; gap: 20px; }

.btn-primary { background: var(--red); color: var(--white); padding: 18px 35px; font-weight: 800; text-decoration: none; }
.btn-outline { border: 2px solid var(--white); color: var(--white); padding: 18px 35px; font-weight: 800; text-decoration: none; }

/* SOFTWARE SECTION */
.software-section { padding: 100px 0; background: var(--grey); }
.software-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 50px; }
.soft-card { background: #1a1a1a; padding: 40px; border-top: 4px solid var(--red); }
.soft-icon i { font-size: 2.5rem; color: var(--red); margin-bottom: 20px; }
.soft-card h3 { margin-bottom: 15px; }
.price-tag { display: inline-block; margin-top: 20px; color: var(--red); font-weight: 900; font-family: 'JetBrains Mono'; }

/* SECTIONS COMMUNE */
.section-title { font-size: 2.5rem; font-weight: 900; margin-bottom: 40px; }
.center { text-align: center; }
.expertise-section { padding: 100px 0; }
.services-detailed-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.service-detail-card { background: #0c0c0c; padding: 40px; border: 1px solid #222; transition: 0.4s; }
.service-detail-card:hover { border-color: var(--red); transform: translateY(-10px); }
.service-detail-card i { font-size: 2.5rem; color: var(--red); margin-bottom: 20px; }

/* LAB SECTION */
.lab-section { padding: 100px 0; background: var(--black); }
.lab-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.lab-tag { color: var(--red); font-weight: 800; letter-spacing: 4px; font-size: 0.8rem; }
.lab-specs { margin-top: 30px; }
.spec-item { margin-bottom: 20px; border-left: 2px solid var(--red); padding-left: 20px; }
.lab-image-container { height: 400px; background: url('https://images.unsplash.com/photo-1550751827-4bd374c3f58b?q=80&w=2070'); background-size: cover; border: 1px solid var(--red); display: flex; align-items: flex-end; padding: 20px; }
.lab-overlay-info { background: var(--red); padding: 5px 15px; font-size: 0.7rem; font-weight: 800; }

/* CHAT BOT */
.chat-assistant { position: fixed; bottom: 30px; right: 30px; width: 300px; background: #111; border: 2px solid var(--red); z-index: 10000; }
.chat-header { background: var(--red); padding: 15px; cursor: pointer; display: flex; justify-content: space-between; font-weight: 900; }
.chat-body { padding: 15px; height: 350px; display: none; flex-direction: column; }
.msg { padding: 10px; border-radius: 4px; margin-bottom: 10px; font-size: 0.85rem; }
.msg.bot { background: #222; }
.chat-options { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.chat-options button { background: none; border: 1px solid var(--red); color: white; padding: 8px; cursor: pointer; font-size: 0.8rem; }
.chat-options button:hover { background: var(--red); }

/* ANIMATIONS */
@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } }

/* --- RÉPARATION ET DÉTAILS DE LA PARTIE SIGNALEMENT --- */
.emergency-section {
    padding: 120px 0;
    background: var(--black);
}

.emergency-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #080808; /* Fond très sombre */
    border: 2px solid var(--red); /* Bordure rouge pur */
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.2);
    min-height: 600px;
}

.emergency-info {
    padding: 60px;
    border-right: 1px solid #222;
}

.emergency-info h2 {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 30px;
    color: var(--white);
}

.emergency-list {
    list-style: none;
    margin-top: 40px;
}

.emergency-list li {
    margin-bottom: 25px;
    padding-left: 40px;
    position: relative;
    font-size: 1.1rem;
    color: var(--text);
}

.emergency-list li::before {
    content: "\f05e"; /* Icone de bouclier/interdiction */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--red);
    font-size: 1.5rem;
}

/* LE FORMULAIRE (LA PARTIE QUI NE S'APPLIQUAIT PAS) */
.emergency-form {
    padding: 60px;
    background: #0c0c0c;
}

.emergency-form form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.emergency-form input, 
.emergency-form select, 
.emergency-form textarea {
    width: 100%;
    background: #000000;
    border: 1px solid #333;
    padding: 18px;
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    border-radius: 0; /* Design carré et agressif */
    transition: all 0.3s ease;
}

.emergency-form input:focus, 
.emergency-form select:focus, 
.emergency-form textarea:focus {
    border-color: var(--red);
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
    outline: none;
}

.emergency-form .btn-submit {
    background: var(--red);
    color: var(--white);
    border: none;
    padding: 22px;
    font-weight: 900;
    font-size: 1rem;
    letter-spacing: 2px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.emergency-form .btn-submit:hover {
    background: #cc0000;
    transform: scale(1.02);
}

/* Responsivité pour le signalement */
@media (max-width: 992px) {
    .emergency-wrapper {
        grid-template-columns: 1fr;
    }
    .emergency-info, .emergency-form {
        padding: 40px 20px;
    }
}

/* --- 7. ACADÉMIE (DESIGN PROFESSIONNEL / AFFAIRES) --- */
.academy-section { 
    padding: 120px 0; 
    background: #080808; 
}

.courses-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px; 
    margin-top: 60px; 
}

.course-box { 
    background: var(--grey); /* #121212 */
    padding: 50px 40px; 
    border-left: 3px solid #222; /* Ligne de style corporate discrète à gauche */
    border-top: 1px solid #222;
    border-right: 1px solid #222;
    border-bottom: 1px solid #222;
    position: relative; 
    transition: var(--transition);
    
    /* Structure stricte pour alignement parfait */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%; 
}

/* Au survol : la bordure gauche s'allume en rouge pur d'un bloc uniforme */
.course-box:hover { 
    border-left-color: var(--red); 
    border-top-color: #333;
    border-right-color: #333;
    border-bottom-color: #333;
    transform: translateY(-5px); 
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.course-box h4 { 
    font-size: 1.4rem; 
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 20px; 
    color: var(--white);
    letter-spacing: -0.5px;
}

.course-box p {
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 40px;
}

/* Boutons d'action : Style sobre et sérieux */
.course-action {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: var(--transition);
    margin-top: auto; 
}

.course-action i {
    color: var(--red);
    font-size: 0.95rem;
    transition: transform 0.3s ease;
}

/* Interaction élégante au survol de la carte */
.course-box:hover .course-action {
    color: var(--white);
}

.course-box:hover .course-action i {
    transform: translateX(8px);
}

/* Responsive */
@media (max-width: 1024px) {
    .courses-grid { 
        grid-template-columns: 1fr; 
        gap: 25px;
    }
}

/* --- 9. FOOTER (CORRIGÉ ET ENRICHI) --- */
.main-footer { 
    background: var(--black);
    padding: 80px 0 30px; 
    border-top: 1px solid var(--border-color); 
}

.footer-grid { 
    display: grid; 
    grid-template-columns: 1.5fr 1fr 1fr; 
    gap: 40px; 
    margin-bottom: 50px; 
}

.footer-col h4 { 
    color: var(--white); 
    font-size: 0.85rem; 
    font-weight: 800;
    margin-bottom: 25px; 
    letter-spacing: 2px; 
    text-transform: uppercase;
}

.footer-col h4.footer-logo {
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.footer-desc {
    color: var(--text-grey);
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 320px;
}

.footer-col ul { 
    list-style: none; 
}

.footer-col li { 
    margin-bottom: 12px; 
    font-size: 0.9rem;
    color: var(--text-grey);
}

.footer-col a { 
    color: var(--text-grey); 
    text-decoration: none; 
    transition: var(--transition); 
}

.footer-col a:hover { 
    color: var(--white); 
    padding-left: 5px; 
}

/* Style spécifique pour la ligne numéro et adresse */
.footer-contacts li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-weight: 600;
}

.footer-contacts i {
    color: var(--pure-red);
    font-size: 0.9rem;
    width: 15px;
}

/* Ligne des droits tout en bas */
.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #555;
}

/* Reponsive Footer */
@media (max-width: 768px) {
    .footer-grid { 
        grid-template-columns: 1fr; 
        gap: 30px;
    }
}

/* Bouton Burger caché par défaut sur ordinateur */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 992px) {
    .mobile-menu-toggle {
        display: block; /* Devient visible sur mobile */
    }

    .navigation-hub {
        position: fixed;
        top: 80px; /* Se positionne juste en dessous du header */
        left: -100%; /* Caché à gauche par défaut */
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(0, 0, 0, 0.98);
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .navigation-hub.active {
        left: 0; /* Glisse à l'écran quand on l'active */
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        padding-top: 50px;
        gap: 35px !important;
    }

    .nav-link {
        font-size: 1.2rem !important; /* Plus grand pour cliquer facilement au doigt */
    }
}

/* ==========================================================
   STRICT FIX: SUPPRESSION DE L'OVERFLOW ET ALIGNEMENT MOBILE
   ========================================================== */

/* 1. Blocage radical du défilement horizontal sur tout le site */
html, body {
    max-width: 100% !important;
    overflow-x: hidden !important;
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
}

@media (max-width: 992px) {
    
    /* 2. Réduction des paddings globaux pour éviter que ça pousse sur les côtés */
    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
    }

    /* 3. Correction du Hero (Titres et Boutons "Nos services" / "Nos logiciels") */
    .hero-layout {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        grid-template-columns: 1fr !important; /* Annule la grille ordinateur */
    }

    .hero-main-text {
        width: 100% !important;
        max-width: 100% !important;
    }

    .hero-main-text h1 {
        font-size: 2.2rem !important; /* Évite que le gros titre ne sorte de l'écran */
        line-height: 1.2 !important;
        word-break: break-word !important;
    }

    /* Redressement des deux boutons principaux qui s'écrasaient */
    .hero-cta-group {
        display: flex !important;
        flex-direction: column !important; /* Les met l'un sous l'autre */
        gap: 15px !important;
        width: 100% !important;
        margin-top: 30px !important;
    }

    .btn-primary, .btn-outline {
        display: block !important;
        width: 100% !important; /* Prennent toute la largeur proprement */
        text-align: center !important;
        box-sizing: border-box !important;
    }

    /* 4. Correction de la grille des Logiciels (Securix Protect, Vault Guardian...) */
    /* C'est elle qui restait bloquée en mode ordinateur ! */
    .software-grid {
        display: flex !important;
        flex-direction: column !important; /* Force l'empilement vertical */
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        width: 100% !important;
    }

    .soft-card {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* 5. Correction de toutes les autres grilles du site */
    .services-detailed-grid, 
    .lab-grid, 
    .courses-grid, 
    .emergency-wrapper, 
    .footer-grid {
        display: flex !important;
        flex-direction: column !important; /* Tout passe à la ligne automatiquement */
        grid-template-columns: 1fr !important;
        gap: 25px !important;
        width: 100% !important;
    }

    /* 6. Section Laboratoire (R&D) */
    .lab-image-container {
        width: 100% !important;
        height: 200px !important; /* Évite que l'image prenne trop de place */
        margin-top: 20px !important;
    }

    /* 7. Header et actions */
    .header-container {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 10px 20px !important;
    }

    .header-actions {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
    }

    /* On cache le grand bouton d'incident sur petit mobile pour gagner de la place si nécessaire, 
       ou on le réduit */
    .btn-emergency-pulse {
        font-size: 0.75rem !important;
        padding: 8px 12px !important;
    }
}

/* Ajustement pour les écrans de téléphones extrêmement petits (< 480px) */
@media (max-width: 480px) {
    .section-title {
        font-size: 1.6rem !important;
    }
    
    .course-box {
        padding: 25px 20px !important;
    }
}