@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&family=Open+Sans:wght@400;600&display=swap');

:root {
    --primary: #0056b3; 
    --secondary: #00a8ff; 
    --dark: #0f172a; 
    --light: #f8fafc;
    --white: #ffffff;
    --shadow: 0 20px 40px rgba(0,0,0,0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Open Sans', sans-serif; background-color: var(--light); color: #334155; line-height: 1.7; overflow-x: hidden; }
h1, h2, h3, h4 { font-family: 'Montserrat', sans-serif; color: var(--dark); font-weight: 700; }
a { text-decoration: none; transition: 0.3s; }
ul { list-style: none; }

/* Top Bar */
.top-bar { background: var(--dark); color: rgba(255,255,255,0.8); padding: 10px 5%; font-size: 0.85rem; display: flex; justify-content: flex-end; gap: 25px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.top-bar i { color: var(--secondary); margin-right: 8px; }

/* Navigation */
nav { background: var(--white); padding: 0 5%; height: 90px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 4px 20px rgba(0,0,0,0.03); position: sticky; top: 0; z-index: 1000; }
.logo { font-size: 2rem; font-weight: 800; color: var(--primary); letter-spacing: -1px; display: flex; align-items: center; gap: 10px; }
.logo span { color: var(--dark); }

nav ul { display: flex; gap: 30px; }
nav a { color: var(--dark); font-weight: 600; font-size: 0.9rem; text-transform: uppercase; position: relative; padding: 10px 0; }
nav a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 3px; background: var(--secondary); transition: 0.3s; }
nav a:hover::after, nav a.active::after { width: 100%; }

/* Hero Section */
.hero { 
    height: 70vh; 
    background: linear-gradient(135deg, rgba(15,23,42,0.9) 0%, rgba(0,86,179,0.8) 100%), url('https://images.unsplash.com/photo-1556761175-5973dc0f32e7?auto=format&fit=crop&w=1920&q=80');
    background-size: cover; background-position: center; background-attachment: fixed;
    display: flex; align-items: center; justify-content: center; text-align: center;
    position: relative;
}
.hero.home { 
    height: 85vh; 
    /* Image Fibre Optique / RÃ©seau connectÃ© */
    background-image: linear-gradient(135deg, rgba(15,23,42,0.85) 0%, rgba(0,86,179,0.75) 100%), url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?auto=format&fit=crop&w=1920&q=80');
}

.hero-content { color: var(--white); max-width: 900px; padding: 20px; animation: fadeIn 1s ease-out; }
.hero h1 { font-size: 3.5rem; margin-bottom: 20px; text-transform: uppercase; letter-spacing: -1px; text-shadow: 0 10px 30px rgba(0,0,0,0.3); line-height: 1.1; }
.hero p { font-size: 1.2rem; margin-bottom: 40px; opacity: 0.9; font-weight: 300; }

.btn { display: inline-block; padding: 15px 40px; border-radius: 50px; font-weight: 700; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 1px; box-shadow: 0 10px 20px rgba(0, 168, 255, 0.3); }
.btn-primary { background: var(--secondary); color: var(--white); }
.btn-primary:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0, 168, 255, 0.5); background: var(--white); color: var(--primary); }

/* Elements généraux */
.container { max-width: 1200px; margin: 0 auto; padding: 80px 20px; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 15px; }
.separator { height: 4px; width: 70px; background: var(--secondary); margin: 0 auto; border-radius: 2px; }

/* Cartes (Services) */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.card { background: var(--white); border-radius: 15px; padding: 40px 30px; box-shadow: var(--shadow); transition: all 0.4s ease; border-bottom: 4px solid transparent; text-align: center; }
.card:hover { transform: translateY(-15px); border-bottom-color: var(--secondary); }
.card-icon { width: 70px; height: 70px; background: rgba(0, 168, 255, 0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; color: var(--secondary); margin: 0 auto 20px; }
.card h3 { font-size: 1.4rem; margin-bottom: 15px; }
.card p { color: #64748b; margin-bottom: 20px; font-size: 0.95rem; }

/* Page Société (About) */
.split-layout { display: flex; align-items: center; gap: 60px; }
.about-img { flex: 1; border-radius: 15px; overflow: hidden; box-shadow: var(--shadow); }
.about-img img { width: 100%; display: block; }
.about-text { flex: 1; }
.check-list li { margin-bottom: 15px; display: flex; align-items: center; font-weight: 600; }
.check-list i { color: var(--secondary); margin-right: 15px; background: rgba(0, 168, 255, 0.1); padding: 8px; border-radius: 50%; font-size: 0.8rem; }

/* Footer */
footer { 
    background: #0b1120; 
    color: #94a3b8; 
    padding: 60px 5%; 
    margin-top: 50px; 
}

.footer-grid { 
    display: flex;              /* Active l'alignement horizontal (sur la longueur) */
    justify-content: space-between; /* Ã‰carte les Ã©lÃ©ments pour occuper toute la largeur */
    align-items: flex-start;    /* Aligne les Ã©lÃ©ments vers le haut */
    flex-wrap: wrap;            /* Permet de passer Ã  la ligne sur petit Ã©cran (mobile) */
    gap: 40px; 
    max-width: 1400px;          /* Limite la largeur max pour que ce soit joli sur grand Ã©cran */
    margin: 0 auto;             /* Centre le tout */
}

.footer-col {
    flex: 1;                    /* Chaque colonne prend une place Ã©gale */
    min-width: 250px;           /* Largeur minimum pour rester lisible sur tablette */
}

.footer-col h4 { 
    color: var(--white); 
    margin-bottom: 20px; 
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Correction importante : Couleur des liens pour qu'ils soient lisibles */
.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    color: #94a3b8;            /* Gris clair (lisible sur fond noir) */
    text-decoration: none;
    transition: 0.3s;
}

.footer-col a:hover {
    color: var(--secondary);   /* Devient bleu au survol de la souris */
    padding-left: 5px;         /* Petit effet de mouvement sympa */
}

.footer-bottom { 
    border-top: 1px solid rgba(255,255,255,0.1); 
    padding-top: 30px; 
    text-align: center; 
    margin-top: 50px; 
    font-size: 0.9rem; 
}
/* Update pour correspondre à footer.php */
@media (max-width: 900px) {
    .footer-main-grid {
        grid-template-columns: 1fr; /* Force une seule colonne sur mobile */
        text-align: center;
        gap: 40px;
    }
    
    .footer-links h4::after, .footer-contact h4::after {
        left: 50%;
        transform: translateX(-50%); /* Centre le soulignement des titres */
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
    }
}
/* Formulaire Contact */
.form-input {
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: 0.3s;
    background: #f8fafc;
}
.form-input:focus {
    outline: none; border-color: var(--secondary); background: white; box-shadow: 0 0 0 4px rgba(0, 168, 255, 0.1);
}
textarea.form-input { resize: vertical; }

/* --- DARK MODE --- */
/* On redÃ©finit les variables quand la classe .dark-mode est active sur le body */
body.dark-mode {
    --light: #0f172a;       /* Le fond clair devient trÃ¨s sombre */
    --white: #1e293b;       /* Les cartes blanches deviennent gris ardoise */
    --dark: #f1f5f9;        /* Le texte sombre devient clair */
    --shadow: 0 20px 40px rgba(0,0,0,0.5); /* Ombres plus marquÃ©es */
}

/* Style du bouton de changement de mode */
.theme-toggle {
    background: none;
    border: 2px solid var(--secondary);
    color: var(--dark);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    margin-left: 15px;
}

.theme-toggle:hover {
    background: var(--secondary);
    color: white;
    transform: rotate(15deg);
}

/* Ajustement spÃ©cifique pour les textes dans le mode sombre */
body.dark-mode h1, 
body.dark-mode h2, 
body.dark-mode h3, 
body.dark-mode h4,
body.dark-mode nav a {
    color: var(--dark); /* Force les titres Ã  utiliser la couleur claire */
}

body.dark-mode p {
    color: #cbd5e1; /* Gris clair pour les paragraphes */
}
/* --- Mise en page de la grille --- */
.grid-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive automatique */
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Design de la Carte --- */
.service-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); /* Ombre douce par dÃ©faut */
}

/* Effet au survol de la carte (La carte monte et l'ombre grandit) */
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 168, 255, 0.15); /* Ombre bleutÃ©e au survol */
    border-color: rgba(0, 168, 255, 0.3);
}

/* --- Design de l'icÃ´ne --- */
.icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, rgba(0, 168, 255, 0.1) 0%, rgba(0, 168, 255, 0.05) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00a8ff;
    font-size: 2rem;
    transition: all 0.4s ease;
}

/* Animation de l'icÃ´ne au survol de la carte */
.service-card:hover .icon-wrapper {
    background: #00a8ff;
    color: #ffffff;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 20px rgba(0, 168, 255, 0.4);
}

/* --- Titres --- */
.service-card h3 {
    font-size: 1.5rem;
    color: #0f172a; /* Bleu trÃ¨s foncÃ© */
    margin-bottom: 20px;
    font-weight: 700;
}

/* --- Liste des services --- */
.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left; /* Plus lisible alignÃ© Ã  gauche */
    padding-left: 15px;
}

.service-list li {
    padding: 8px 0;
    color: #64748b; /* Gris texte */
    font-size: 0.95rem;
    position: relative;
    padding-left: 25px;
    border-bottom: 1px dashed rgba(0,0,0,0.05);
}

/* La petite coche bleue avant chaque Ã©lÃ©ment */
.service-list li::before {
    content: "\f00c"; /* Code FontAwesome pour la coche */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 10px;
    color: #00a8ff;
    font-size: 0.8rem;
}

.service-list li:last-child {
    border-bottom: none;
}

/* --- OPTIMISATION MOBILE --- */
/* Le bouton hamburger (caché sur PC) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary);
    font-size: 1.8rem;
    cursor: pointer;
}

@media (max-width: 900px) {
    /* 1. Correction de la barre d'info (Top Bar) */
    body > div:first-of-type { 
        flex-direction: column !important;
        height: auto !important;
        padding: 15px !important;
        gap: 15px;
        text-align: center;
    }
    
    body > div:first-of-type > div {
        width: 100%;
        justify-content: center !important;
        margin: 0 !important;
        flex-wrap: wrap; /* Permet aux éléments de passer à la ligne */
        white-space: normal !important; /* Autorise le texte à se couper */
    }

    /* 2. Menu Mobile */
    .menu-toggle {
        display: block; /* Affiche le bouton */
    }

    nav {
        padding: 0 20px;
        position: relative;
    }

    nav ul {
        display: none; /* Caché par défaut */
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        padding: 20px 0;
        z-index: 1000;
    }

    nav ul.active {
        display: flex !important; /* Affiche quand on clique */
    }

    nav ul li {
        width: 100%;
        text-align: center;
        margin: 10px 0;
    }

    /* 3. Ajustement du Hero (Index) */
    .hero-content {
        padding: 30px 20px !important; /* Réduit le padding */
        width: 90%;
        margin: 0 auto;
    }
    
    .hero h1 {
        font-size: 2rem !important; /* Réduit le titre */
    }
    
    .hero p {
        font-size: 1rem !important;
    }
    
    .btn {
        width: 100%; /* Bouton pleine largeur sur mobile */
        text-align: center;
        justify-content: center;
    }
}

/* --- FOOTER MODERNISÉ (ÉPURÉ) --- */

.footer-tech {
    background: #0b1120; /* Fond très sombre */
    color: #94a3b8;
    position: relative;
    padding-top: 80px;
    padding-bottom: 40px;
    font-size: 0.95rem;
    overflow: hidden;
    margin-top: 100px;
}

/* Effet de fond subtil */
.footer-tech::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(0, 168, 255, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(0, 86, 179, 0.05) 0%, transparent 20%);
    z-index: 0;
    pointer-events: none;
}

/* GRILLE PRINCIPALE */
.footer-main-grid {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr 1fr 1.2fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Identité */
.footer-logo {
    height: 50px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.brand-desc {
    line-height: 1.6;
    margin-bottom: 25px;
    max-width: 300px;
}

.tech-badges .badge {
    display: inline-block;
    background: rgba(255,255,255,0.05);
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    margin-right: 10px;
    border: 1px solid rgba(255,255,255,0.05);
}

/* Liens */
.footer-links h4, .footer-contact h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.footer-links h4::after, .footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: -8px; left: 0;
    width: 30px; height: 2px;
    background: #00a8ff;
}

.footer-links ul li { margin-bottom: 12px; }

.footer-links ul li a {
    color: #94a3b8;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
}

.footer-links ul li a:hover {
    color: #00a8ff;
    transform: translateX(5px);
}

/* Contact Card */
.contact-card {
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.05);
}

.contact-row {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.contact-row:last-child { margin-bottom: 0; }

.contact-row i {
    color: #00a8ff;
    margin-top: 5px;
}

.contact-row .label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.5;
    margin-bottom: 2px;
}

.phone-link {
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Bottom Bar */
.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    font-size: 0.85rem;
}

.legal-links a { color: #64748b; margin: 0 10px; }
.legal-links a:hover { color: #00a8ff; }
.sep { color: #334155; }

/* Responsive */
@media (max-width: 900px) {
    .footer-main-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 50px;
    }
    
    .footer-links h4::after, .footer-contact h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .contact-card { text-align: left; } /* Garde le contact aligné à gauche pour lisibilité */
}

/* --- AMÉLIORATION HEADER --- */

/* Effet Glassmorphism sur la Nav */
nav {
    background: rgba(255, 255, 255, 0.95); /* Légère transparence */
    backdrop-filter: blur(10px); /* Effet de flou derrière */
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* Liens du menu plus modernes */
nav a {
    font-weight: 700;
    font-size: 0.95rem;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

nav a:not(.btn-promo):hover {
    color: var(--secondary);
    background: rgba(0, 168, 255, 0.05);
}

/* Supprimer la ligne soulignée de l'ancien design pour un look plus propre */
nav a::after { display: none; }

/* --- BOUTON PROMO ROUGE --- */
.btn-promo {
    background: #e74c3c;
    color: white !important;
    
    /* MODIFICATION ICI : Moins d'espace à l'intérieur */
    padding: 5px 15px !important; 
    
    /* OPTIONNEL : Texte un peu plus petit */
    font-size: 0.85rem !important; 
    
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 5px; /* Espace réduit entre l'icône et le texte */
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
    position: relative;
    overflow: hidden;
    animation: pulse-red 2s infinite;
}

.btn-promo:hover {
    transform: translateY(-2px);
    background: #c0392b;
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.6);
}

.btn-promo i {
    font-size: 1.1em;
}

/* Animation de pulsation pour attirer l'oeil */
@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(231, 76, 60, 0); }
    100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0); }
}

/* --- STYLE DE LA POPUP PROMO --- */
.promo-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(5px);
    z-index: 10000;
    justify-content: center; align-items: center;
    opacity: 0; transition: opacity 0.3s ease;
}
.promo-overlay.active { opacity: 1; }

.promo-modal {
    background: white;
    width: 90%; max-width: 500px;
    border-radius: 20px;
    position: relative;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.9); transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}
.promo-overlay.active .promo-modal { transform: scale(1); }

.promo-close {
    position: absolute; top: 15px; right: 15px;
    background: transparent; border: none; font-size: 1.8rem;
    color: #94a3b8; cursor: pointer; transition: 0.3s; z-index: 2;
}
.promo-close:hover { color: #e74c3c; transform: rotate(90deg); }

.promo-content { padding: 40px 30px; }

.promo-icon {
    width: 70px; height: 70px; margin: 0 auto 20px;
    background: rgba(231, 76, 60, 0.1); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #e74c3c; font-size: 2rem;
    animation: bounce 2s infinite;
}

.promo-modal h2 {
    font-size: 2rem; color: #1e293b; margin-bottom: 5px;
    text-transform: uppercase; letter-spacing: -1px;
}
.promo-subtitle {
    color: #e74c3c; font-weight: 700; text-transform: uppercase;
    font-size: 0.9rem; letter-spacing: 1px; margin-bottom: 25px;
}

.promo-details {
    background: #fff; border: 1px dashed #cbd5e1;
    border-radius: 10px; padding: 20px; margin-bottom: 25px;
    text-align: left;
}
.promo-list { list-style: none; margin: 10px 0 0 0; padding: 0; }
.promo-list li { margin-bottom: 8px; color: #475569; display: flex; align-items: center; gap: 10px; }
.promo-list li i { color: #22c55e; } /* Coche verte */

.promo-cta {
    display: inline-block; background: #e74c3c; color: white;
    padding: 15px 35px; border-radius: 50px; text-decoration: none;
    font-weight: 700; font-size: 1.1rem;
    box-shadow: 0 10px 20px rgba(231, 76, 60, 0.3);
    transition: 0.3s;
}
.promo-cta:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(231, 76, 60, 0.5); }
.promo-footer { margin-top: 15px; font-size: 0.75rem; color: #94a3b8; }

/* Adaptation Dark Mode pour la Promo */
body.dark-mode .promo-modal { background: #1e293b; border: 1px solid rgba(255,255,255,0.1); }
body.dark-mode .promo-modal h2 { color: #fff; }
body.dark-mode .promo-details { background: #0f172a; border-color: rgba(255,255,255,0.1); }
body.dark-mode .promo-list li { color: #cbd5e1; }