/* =========================================
   STYLE.CSS - TI-WiTech
   Toutes les règles de design du site
========================================= */

/* --- 1. STYLES DE BASE --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background-color: #ffffff; color: #334155; overflow-x: hidden; line-height: 1.6; }

/* --- 2. EN-TÊTE ET NAVIGATION --- */
header { position: fixed; top: 0; left: 0; width: 100%; padding: 5px 5%; display: flex; justify-content: space-between; align-items: center; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); z-index: 1000; box-shadow: 0 2px 15px rgba(0,0,0,0.05); }
.logo img { height: 90px; width: auto; transition: 0.3s; }
nav { display: flex; align-items: center; gap: 30px; }
nav a { text-decoration: none; color: #0f172a; font-weight: 600; font-size: 15px; transition: 0.3s; position: relative; }
nav a:hover { color: #00f0ff; }
nav a::after { content: ''; position: absolute; width: 0; height: 2px; bottom: -5px; left: 0; background-color: #00f0ff; transition: 0.3s; }
nav a:hover::after { width: 100%; }
.lang-btn { padding: 8px 16px; border: 2px solid #0f172a; background: transparent; color: #0f172a; font-weight: 700; cursor: pointer; border-radius: 6px; transition: 0.3s; }
.lang-btn:hover { border-color: #00f0ff; color: #00f0ff; transform: scale(1.05); }

/* --- 3. BOUTONS GÉNÉRAUX --- */
.btn-container { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }
.btn-glowing { padding: 18px 36px; background: #0a192f; border: 2px solid #00f0ff; border-radius: 8px; font-family: 'Inter', sans-serif; font-weight: 700; font-size: 16px; color: white; text-decoration: none; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 10px 20px rgba(0, 240, 255, 0.3); display: inline-block; text-align: center;}
.btn-glowing:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(0, 240, 255, 0.5); background: #0d2342; }
.btn-facebook { background: transparent; color: #0a192f; border-color: #0a192f; box-shadow: none; }

/* --- 4. ACCUEIL - SECTION HERO --- */
.hero { position: relative; padding: 180px 5% 100px 5%; text-align: center; background-image: url('fond-lignes.png'); background-size: cover; background-position: center; background-repeat: no-repeat; min-height: 70vh; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.hero h1 { font-family: 'Orbitron', sans-serif; font-size: clamp(32px, 5vw, 56px); font-weight: 900; color: #0a192f; text-transform: uppercase; line-height: 1.1; letter-spacing: 1px; margin-bottom: 20px; }
.hero h2 { font-size: 18px; color: #00f0ff; font-family: 'Orbitron', sans-serif; margin-bottom: 25px; background: #0a192f; display: inline-block; padding: 8px 20px; border-radius: 4px; box-shadow: 0 4px 15px rgba(0, 240, 255, 0.2); }
.hero p { font-size: 20px; color: #475569; margin-bottom: 45px; font-weight: 500; max-width: 700px; }

/* --- 5. SECTIONS GÉNÉRALES --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 5%; }
.section { padding: 100px 0; }
.section h3 { font-family: 'Inter', sans-serif; font-size: 32px; font-weight: 800; color: #0a192f; text-transform: uppercase; margin-bottom: 50px; display: flex; align-items: center; gap: 20px; }
.section h3::after { content: ""; height: 3px; flex: 1; background: linear-gradient(to right, #00f0ff, transparent); }

/* --- 6. ACCUEIL - CARTES DE SERVICES --- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.service-card { text-decoration: none; display: block; background: #ffffff; padding: 40px 30px; border-radius: 12px; border: 1px solid #f1f5f9; border-bottom: 5px solid #00f0ff; box-shadow: 0 10px 30px rgba(0,0,0,0.02); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); cursor: pointer; text-align: center; }
.service-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.08); border-bottom-color: #0a192f; }
.service-card p { font-weight: 700; color: #0a192f; font-size: 18px; }

/* --- 7. ACCUEIL - À PROPOS & GALERIE --- */
.about-wrapper { display: grid; grid-template-columns: 1.2fr 0.8fr; align-items: center; gap: 60px; }
.about-content { flex: none; }
.about-text { font-size: 18px; color: #475569; line-height: 1.8; }
.about-image { border-radius: 20px; overflow: hidden; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15); position: relative; }
.about-image img { width: 100%; height: auto; display: block; }
.territory-box { background: #f8fafc; padding: 25px; border-radius: 12px; border-left: 5px solid #00f0ff; margin-top: 30px; display: block;}

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.gallery-item { border-radius: 15px; overflow: hidden; aspect-ratio: 16/10; box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; cursor: pointer; }
.gallery-item:hover img { transform: scale(1.1); }

/* --- 8. ACCUEIL - FORMULAIRE DE CONTACT --- */
.contact-info-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; margin-bottom: 40px; }
.contact-card { background: #0a192f; color: white; padding: 25px; border-radius: 12px; transition: 0.3s; display: flex; align-items: center; justify-content: center; gap: 15px; font-size: 18px; text-decoration: none; font-weight: 600; }
.contact-card:hover { background: #00f0ff; color: #0a192f; transform: translateY(-3px); }
.contact-form { background: #ffffff; padding: 50px; border-radius: 20px; border: 1px solid #f1f5f9; box-shadow: 0 30px 60px rgba(0,0,0,0.05); max-width: 1000px; margin: 0 auto 60px auto; }
.form-row { display: flex; gap: 20px; margin-bottom: 20px; }
.form-group { flex: 1; }
input[type="text"], input[type="email"], textarea, select { width: 100%; padding: 16px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 15px; background: #fcfdfe; }
.checkbox-section p { font-weight: 700; margin-bottom: 15px; color: #0a192f; }
.checkbox-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; background: #f8fafc; padding: 20px; border-radius: 12px; margin-bottom: 25px; }
.checkbox-label { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; font-weight: 600; }
.checkbox-label input { width: 18px; height: 18px; }

/* --- 9. PIED DE PAGE (FOOTER) --- */
footer { padding: 60px 20px; background: #0a192f; color: #94a3b8; text-align: center; }
footer a { color: #00f0ff; text-decoration: none; font-weight: 600; }

/* --- 10. PAGES DE SERVICES SPÉCIFIQUES --- */
.service-hero { position: relative; padding: 200px 5% 100px 5%; text-align: center; color: white; }
.service-hero h1 { font-family: 'Orbitron', sans-serif; font-size: clamp(32px, 4vw, 48px); font-weight: 900; color: #00f0ff; text-transform: uppercase; margin-bottom: 20px; letter-spacing: 1px;}
.service-hero p { font-size: 20px; color: #cbd5e1; max-width: 800px; margin: 0 auto; line-height: 1.8; }
.service-details { max-width: 1200px; margin: -50px auto 50px auto; padding: 0 5%; position: relative; z-index: 10; }
.details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; background: #ffffff; padding: 50px; border-radius: 20px; box-shadow: 0 20px 40px rgba(0,0,0,0.08); border-top: 5px solid #00f0ff; }
.details-text h2 { font-family: 'Orbitron', sans-serif; font-size: 24px; color: #0a192f; margin-bottom: 20px; }
.details-text p { margin-bottom: 20px; font-size: 16px; color: #475569; }
.feature-list { list-style: none; margin-top: 30px; }
.feature-list li { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 20px; font-size: 16px; font-weight: 600; color: #0a192f;}
.feature-list li span { font-size: 24px; color: #00f0ff; line-height: 1; }
.feature-list li p { font-size: 14px; color: #64748b; font-weight: 400; margin-top: 5px; margin-bottom: 0;}
.details-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.action-section { text-align: center; padding: 60px 5%; }

/* --- BOUTON HAMBURGER (Caché sur ordinateur) --- */
.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 30px;
    color: #121212; /* <-- LE NOIR/GRIS FONCÉ POUR LE MODE CLAIR */
    cursor: pointer;
    margin-left: 10px;
}

/* --- 11. ADAPTATION MOBILE (RESPONSIVE) --- */
@media(max-width: 900px) {
    /* On réduit un peu l'espacement de l'en-tête */
    header { padding: 8px 15px; } 
    
    /* LA MAGIE EST ICI : On rapetisse le logo pour les cellulaires */
    .logo img { height: 70px; } 
    
    /* On rend le bouton de langue un poil plus discret */
    .lang-btn { padding: 5px 12px; font-size: 13px; }

    /* --- NOUVEAU : MENU HAMBURGER --- */
    .hamburger {
        display: block; /* On affiche le bouton ☰ sur cellulaire */
    }

    /* Le menu de base (caché) */
    nav {
        display: none; 
        position: absolute;
        top: 100%; /* S'ouvre juste en dessous de la barre */
        left: 0;
        width: 100%;
        background-color: #0a192f;
        flex-direction: column;
        padding: 10px 0;
        box-shadow: 0 8px 15px rgba(0,0,0,0.8);
    }

    /* Le menu quand il est ouvert (actif) */
    nav.active {
        display: flex !important;
    }

/* Le look des textes dans le menu ouvert */
    nav a {
        display: block !important;
        padding: 15px 20px;
        text-align: center;
        border-bottom: 1px solid #1e3a5f;
        font-size: 18px;
        color: #ffffff !important; /* <-- L'AJOUT EST ICI : Force le texte en blanc */
    }
    nav a:last-child {
        border-bottom: none;
    }
    /* ---------------------------------- */

    .hero { padding-top: 120px; } /* On remonte un peu le texte puisque l'en-tête est plus petit */
    .about-wrapper { grid-template-columns: 1fr; gap: 30px; }
    .gallery-grid { grid-template-columns: 1fr; }
    .contact-info-cards { grid-template-columns: 1fr; }
    .checkbox-grid { grid-template-columns: 1fr 1fr; } /* Tes 2 colonnes qui fonctionnent bien ! */
    .form-row { flex-direction: column; gap: 20px; }
    .contact-form { padding: 30px 20px; }
    .section { padding: 60px 0; }
    .details-grid { grid-template-columns: 1fr; padding: 30px; }
}

/* --- 12. MODE SOMBRE (DARK MODE) BLINDÉ --- */
.theme-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    margin-right: 15px;
    transition: transform 0.3s ease;
}
.theme-btn:hover { transform: scale(1.1); }

body.dark-mode {
    background-color: #121212 !important;
    color: #e0e0e0 !important;
}
body.dark-mode header {
    background-color: #1a1a1a !important;
}
body.dark-mode nav a {
    color: #e0e0e0 !important;
}

/* 1. Couleurs des boîtes et formulaires */
body.dark-mode .service-card, 
body.dark-mode .contact-info-cards div,
body.dark-mode .contact-form,
body.dark-mode .details-text,
body.dark-mode .details-grid,
body.dark-mode .territory-box {
    background-color: #1e1e1e !important;
    color: #e0e0e0 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8) !important;
}

/* 2. Fond des cases à cocher */
body.dark-mode .checkbox-grid {
    background-color: #2a2a2a !important;
    border: 1px solid #555 !important;
}

/* 3. Boutons (EN/FR, Facebook, Hamburger) visibles en bleu néon */
body.dark-mode .lang-btn,
body.dark-mode .btn-outline,
body.dark-mode #cta-fb,
body.dark-mode .hamburger {
    color: #00f0ff !important; /* Le texte et l'icône deviennent néon */
}

/* On applique la bordure néon seulement aux boutons (pas au hamburger) */
body.dark-mode .lang-btn,
body.dark-mode .btn-outline,
body.dark-mode #cta-fb {
    border: 1px solid #00f0ff !important;
    background-color: transparent !important;
}

/* L'effet de survol (hover) pour ces boutons */
body.dark-mode .lang-btn:hover,
body.dark-mode .btn-outline:hover,
body.dark-mode #cta-fb:hover {
    background-color: #00f0ff !important;
    color: #0a192f !important;
}

/* 4. Textes et Titres */
body.dark-mode h1, body.dark-mode h2, body.dark-mode h3, 
body.dark-mode span {
    color: #00f0ff !important;
}

body.dark-mode p, body.dark-mode li, 
body.dark-mode .checkbox-grid label {
    color: #cccccc !important;
}

body.dark-mode footer {
    background-color: #0a0a0a !important;
    color: #888 !important;
}
body.dark-mode input, body.dark-mode select, body.dark-mode textarea {
    background-color: #2a2a2a !important;
    color: #ffffff !important;
    border: 1px solid #555 !important;
}
