/* --- VARIABLES & RESET --- */
:root {
    --bg-darker: #05070a;
    --bg-dark: #0a0e14;
    --bg-card: #11161f;
    --bg-card-lighter: #1a202c;
    --primary-yellow: #FFD700;
    --primary-green: #00C853;
    --accent-blue: #2196F3;
    --accent-purple: #9c27b0;
    --text-white: #ffffff;
    --text-gray: #a0a0a0;
    --font-head: 'Orbitron', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --section-spacing: 80px;
}

* { box-sizing: border-box; }
body {
    margin: 0; padding: 0;
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-body);
    overflow-x: hidden; /* Empêche le scroll horizontal indésirable */
}

/* --- TYPOGRAPHIE & COULEURS --- */
h1, h2, h3, h4 { font-family: var(--font-head); margin-top: 0; }
h1 { font-weight: 900; letter-spacing: 2px; }
.text-yellow { color: var(--primary-yellow); }
.text-green { color: var(--primary-green); }
.text-white { color: var(--text-white); }
.highlight-yellow { color: var(--primary-yellow); }

/* --- COMPOSANTS RÉUTILISABLES --- */
.btn-primary {
    background: var(--primary-yellow); color: #000; padding: 12px 25px; border-radius: 50px;
    text-decoration: none; font-weight: bold; font-family: var(--font-head); transition: 0.3s;
    display: inline-block;
}
.btn-primary:hover { background: #e6c200; transform: translateY(-2px); }

.btn-green-skew {
    background: var(--primary-green); color: white; padding: 15px 35px; text-decoration: none;
    border-radius: 4px; font-weight: bold; font-family: var(--font-head);
    transform: skew(-15deg); display: inline-block; transition: 0.3s;
}
.btn-green-skew:hover { background: #00a844; transform: skew(-15deg) translateY(-2px); }

.badge { display: inline-block; padding: 6px 12px; border-radius: 4px; font-size: 0.75rem; font-weight: bold; font-family: var(--font-head); letter-spacing: 1px; margin-bottom: 15px;}
.badge-yellow-outline { border: 1px solid var(--primary-yellow); color: var(--primary-yellow); border-radius: 20px;}
.badge-green { background: rgba(0,200,83,0.2); color: var(--primary-green); }
.badge-blue { background: rgba(33,150,243,0.2); color: var(--accent-blue); }
.badge-purple { background: rgba(156,39,176,0.2); color: var(--accent-purple); }
.badge-gold-solid { background: var(--primary-yellow); color: black; }

/* --- NAVBAR RESPONSIVE --- */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 5%; background: rgba(10, 14, 20, 0.98);
    position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid #222;
}
.logo { font-family: var(--font-head); font-weight: 900; font-size: 1.5rem; display: flex; align-items: center;}
.logo-icon { font-size: 1.8rem; margin-right: 10px; color: var(--primary-yellow); }
.nav-menu { display: flex; align-items: center; }
.nav-links a { color: var(--text-white); text-decoration: none; margin: 0 20px; font-weight: 500; font-size: 0.9rem; transition: color 0.3s;}
.nav-links a:hover { color: var(--primary-yellow); }

/* Hamburger Menu (Caché sur PC) */
.nav-toggle { display: none; }
.nav-toggle-label { display: none; cursor: pointer; }

/* --- HERO SECTION --- */
.hero {
    position: relative; padding: 100px 20px 150px; text-align: center;
    /* Fond Cyberpunk VILLE DE NUIT */
    background: linear-gradient(rgba(5,7,10,0.8), rgba(5,7,10,0.9)), url('https://images.unsplash.com/photo-1518640467707-6811f4a6ab73?q=80&w=2000&auto=format&fit=crop');
    background-size: cover; background-position: center top;
}
.hero h1 { font-size: 4.5rem; line-height: 1; margin: 20px 0; text-transform: uppercase; }
.hero-subtitle { max-width: 700px; margin: 0 auto 40px; color: var(--text-gray); font-size: 1.2rem; line-height: 1.6; }
.cta-group { display: flex; justify-content: center; align-items: center; gap: 30px; }
.link-arrow { color: white; text-decoration: none; font-weight: bold; transition: 0.3s; }
.link-arrow:hover { color: var(--primary-yellow); }

/* Animation du bandeau défilant */
.ticker-wrap {
    position: absolute; bottom: 0; left: 0; width: 100%; overflow: hidden;
    background: rgba(0,0,0,0.5); border-top: 1px solid #333; border-bottom: 1px solid #333;
    padding: 10px 0; white-space: nowrap;
}
.ticker { display: inline-block; animation: ticker 30s linear infinite; }
.ticker span { color: var(--primary-yellow); font-family: var(--font-head); font-size: 0.9rem; letter-spacing: 2px; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* --- STATS SECTION --- */
.stats-container {
    display: flex; justify-content: center; gap: 30px; padding: 60px 5%;
    background: var(--bg-darker); position: relative; z-index: 2; margin-top: -50px;
}
.stat-box {
    background: var(--bg-card); padding: 30px 40px; border-radius: 4px; border: 1px solid #222;
    text-align: center; min-width: 200px; box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.stat-box h3 { font-size: 2.5rem; margin-bottom: 10px; }
.stat-box p { color: var(--text-gray); font-size: 0.8rem; font-family: var(--font-head); letter-spacing: 1px; margin: 0;}

/* --- SECTION FONDATEUR --- */
.founder-section { padding: var(--section-spacing) 5%; }
.founder-card {
    display: flex; background: var(--bg-card); border-radius: 12px; overflow: hidden;
    border: 1px solid #222; max-width: 1200px; margin: 0 auto; box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.founder-image-container { flex: 2; position: relative; min-height: 400px; }
.founder-img { width: 100%; height: 100%; object-fit: cover; }
.founder-overlay-info {
    position: absolute; bottom: 0; left: 0; width: 100%; padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}
.founder-overlay-info h3 { font-size: 1.8rem; margin: 0; }
.founder-overlay-info p { color: var(--primary-yellow); margin: 5px 0 0; }

.founder-text-container { flex: 3; padding: 60px; display: flex; flex-direction: column; justify-content: center; }
.label-gold { color: var(--primary-yellow); font-family: var(--font-head); font-weight: bold; letter-spacing: 2px; font-size: 0.9rem; }
.founder-text-container h2 { font-size: 2.5rem; margin: 20px 0 30px; line-height: 1.2; }
.founder-quote-body { color: var(--text-gray); line-height: 1.8; margin-bottom: 20px; font-size: 1.05rem; }
.founder-quote-body strong { color: var(--text-white); }

.features-grid { display: flex; gap: 20px; margin-top: 40px; }
.feature-box { background: var(--bg-card-lighter); padding: 20px; border-radius: 8px; display: flex; align-items: flex-start; gap: 15px; flex: 1; border: 1px solid #333;}
.feature-icon { font-size: 2rem; }
.feature-box h4 { margin: 0 0 5px; font-size: 1rem; }
.feature-box small { color: var(--text-gray); display: block; line-height: 1.4; }

/* --- SOLUTIONS SECTION --- */
.solutions-section { padding: var(--section-spacing) 5%; text-align: center; }
.section-title { font-size: 2.5rem; margin-bottom: 10px; }
.section-subtitle { color: var(--text-gray); margin-bottom: 50px; }

.tabs-nav { display: flex; justify-content: center; gap: 15px; margin-bottom: 50px; flex-wrap: wrap; }
.tab-btn {
    background: var(--bg-card); border: 1px solid #333; color: var(--text-gray);
    padding: 12px 30px; border-radius: 30px; cursor: pointer; font-size: 1rem;
    font-family: var(--font-body); font-weight: 500; transition: 0.3s; display: flex; align-items: center; gap: 10px;
}
.tab-btn:hover, .tab-btn.active { border-color: var(--primary-yellow); color: var(--text-white); background: rgba(255, 215, 0, 0.05); }

.tab-content {
    display: flex; background: var(--bg-card); border-radius: 12px; overflow: hidden;
    border: 1px solid #222; max-width: 1200px; margin: 0 auto; text-align: left;
    animation: fadeUp 0.6s ease;
}
.tab-content.active { display: flex; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

.tab-text-col { flex: 1; padding: 60px; }
.tab-text-col h2 { font-size: 2.2rem; margin: 20px 0; }
.tab-text-col p { color: var(--text-gray); line-height: 1.7; margin-bottom: 30px; }
.check-list { list-style: none; padding: 0; }
.check-list li { margin-bottom: 15px; display: flex; align-items: center; font-size: 1.1rem; }
.check-icon { color: var(--primary-yellow); margin-right: 15px; background: rgba(255, 215, 0, 0.1); width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 0.8rem;}

.tab-image-col { flex: 1; min-height: 400px; }
.tab-image-col img { width: 100%; height: 100%; object-fit: cover; }

/* =========================================
   MEDIA QUERIES (LA RESPONSIVITÉ EST ICI !)
========================================= */

/* --- TABLETTES ET PETITS LAPTOPS (max-width: 1024px) --- */
@media (max-width: 1024px) {
    .hero h1 { font-size: 3.5rem; }
    .stats-container { flex-wrap: wrap; }
    .stat-box { flex: 1 1 40%; } /* 2 par ligne */
    .founder-text-container { padding: 40px; }
    .tab-text-col { padding: 40px; }
}

/* --- MOBILES (max-width: 768px) --- */
@media (max-width: 768px) {
    :root { --section-spacing: 50px; }

    /* Navbar Mobile (Burger) */
    .navbar { padding: 15px 20px; }
    .nav-toggle-label { display: block; height: 25px; width: 30px; position: relative; z-index: 1001;}
    .nav-toggle-label span, .nav-toggle-label span::before, .nav-toggle-label span::after {
        display: block; background: var(--primary-yellow); height: 3px; width: 100%; position: absolute; top: 10px; transition: 0.3s;
    }
    .nav-toggle-label span::before { content: ''; top: -8px; }
    .nav-toggle-label span::after { content: ''; top: 8px; }
    
    .nav-menu {
        position: fixed; top: 0; right: -100%; height: 100vh; width: 80%; max-width: 300px;
        background: var(--bg-card); flex-direction: column; padding: 80px 30px;
        transition: 0.4s ease-in-out; box-shadow: -5px 0 15px rgba(0,0,0,0.5);
    }
    .nav-links { flex-direction: column; width: 100%; margin-bottom: 30px; }
    .nav-links a { margin: 15px 0; font-size: 1.2rem; }
    /* Quand la checkbox est cochée, on affiche le menu */
    .nav-toggle:checked ~ .nav-menu { right: 0; }

    /* Hero Mobile */
    .hero { padding-top: 60px; padding-bottom: 100px; }
    .hero h1 { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1rem; }
    .cta-group { flex-direction: column; }
    .btn-green-skew { width: 100%; text-align: center; transform: skew(0deg); }

    /* Stats Mobile */
    .stats-container { padding: 30px 20px; gap: 15px; margin-top: 0; }
    .stat-box { flex: 1 1 100%; padding: 20px; } /* 1 par ligne */

    /* Fondateur Mobile */
    .founder-card { flex-direction: column; }
    .founder-image-container, .founder-text-container { flex: auto; width: 100%; }
    .founder-image-container { height: 300px; }
    .founder-text-container { padding: 30px 20px; }
    .founder-text-container h2 { font-size: 1.8rem; }
    .features-grid { flex-direction: column; }

    /* Solutions Mobile */
    .section-title { font-size: 2rem; }
    .tab-content { flex-direction: column-reverse; } /* Image au dessus du texte sur mobile */
    .tab-image-col { height: 250px; }
    .tab-text-col { padding: 30px 20px; }
    .tab-text-col h2 { font-size: 1.8rem; }
    .tab-btn { padding: 10px 20px; font-size: 0.9rem; flex: 1 1 45%; } /* Boutons plus petits sur 2 colonnes */
}
/* --- SECTION PROJETS --- */
.projets-section { padding: 80px 5%; background: var(--bg-darker); text-align: center; }
.projets-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 50px; }
.projet-card { background: var(--bg-card); border-radius: 12px; overflow: hidden; border: 1px solid #222; transition: 0.3s; }
.projet-card:hover { transform: translateY(-10px); border-color: var(--primary-yellow); }
.projet-card img { width: 100%; height: 200px; object-fit: cover; }
.projet-info { padding: 25px; text-align: left; }
.projet-info h3 { margin: 10px 0; font-size: 1.4rem; }
.projet-info p { color: var(--text-gray); font-size: 0.9rem; }

/* --- SECTION CONTACT & FORMULAIRE --- */
.contact-section { padding: 100px 5%; background: var(--bg-dark); }
.contact-container { max-width: 1000px; margin: 0 auto; display: flex; gap: 50px; align-items: center; }
.contact-text { flex: 1; }
.contact-form { flex: 1.5; background: var(--bg-card); padding: 40px; border-radius: 15px; border: 1px solid #333; }
.input-group { display: flex; gap: 20px; margin-bottom: 20px; }
.contact-form input, .contact-form textarea {
    width: 100%; padding: 15px; background: #0a0e14; border: 1px solid #333; color: white; border-radius: 5px; margin-bottom: 20px; font-family: var(--font-body);
}
.contact-form input:focus { border-color: var(--primary-green); outline: none; }

/* --- FOOTER --- */
.footer { background: var(--bg-darker); padding: 80px 5% 20px; border-top: 1px solid #222; }
.footer-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; margin-bottom: 50px; }
.footer-links h4, .footer-contact h4 { font-family: var(--font-head); color: var(--primary-yellow); margin-bottom: 20px; }
.footer-links a { display: block; color: var(--text-gray); text-decoration: none; margin-bottom: 10px; transition: 0.3s; }
.footer-links a:hover { color: white; padding-left: 5px; }
.footer-bottom { border-top: 1px solid #222; padding-top: 20px; text-align: center; color: #555; font-size: 0.8rem; }

/* --- RESPONSIVE CONTACT --- */
@media (max-width: 768px) {
    .contact-container { flex-direction: column; text-align: center; }
    .input-group { flex-direction: column; gap: 0; }
}