/* --- Variables & Reset --- */
:root {
    --bg-black: #0a0a0a;
    --bg-dark-gray: #121212;
    --primary-green: #00ff88;
    --text-white: #ffffff;
    --text-gray: #b3b3b3;
    
    --font-heading: 'Bebas Neue', sans-serif;
    --font-body: 'Montserrat', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-black);
    color: var(--text-white);
    font-family: var(--font-body);
    overflow-x: hidden;
}

/* NOUVEAU : Classe pour désactiver le scroll du body en mobile */
.no-scroll {
    overflow: hidden; 
}

/* --- Typography --- */
h1, h2, h3, .logo {
    font-family: var(--font-heading);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.text-green { color: var(--primary-green); }
.green-dot { color: var(--primary-green); font-size: 1.5rem; }

/* --- Navigation --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.logo { font-size: 2rem; font-weight: bold; }

.nav-links { list-style: none; display: flex; gap: 30px; }
.nav-links a {
    text-decoration: none;
    color: var(--text-white);
    font-weight: 600;
    font-size: 1.2rem;
    font-family: var(--font-heading);
    letter-spacing: 1px;
    transition: color 0.3s;
}
.nav-links a:hover { color: var(--primary-green); }

/* --- Menu Burger Style --- */
.burger {
    display: none; /* Caché par défaut sur desktop */
    cursor: pointer;
}

.burger div {
    width: 30px;
    height: 3px;
    background-color: var(--primary-green);
    margin: 6px;
    transition: all 0.3s ease;
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(circle at center, #1a1a1a 0%, var(--bg-black) 70%);
    position: relative;
}

.hero h1 {
    font-size: 5rem;
    line-height: 1;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 40px;
    font-weight: 300;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn:hover {
    background: var(--primary-green);
    color: var(--bg-black);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    width: 2px;
    height: 60px;
    background: rgba(255,255,255,0.2);
    overflow: hidden;
}
.scroll-indicator span {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--primary-green);
    animation: scrollDrop 2s infinite;
}
@keyframes scrollDrop {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

/* --- Sections General --- */
section { padding: 100px 20px; }
.container { max-width: 1200px; margin: 0 auto; }
.section-title {
    font-size: 3rem;
    margin-bottom: 60px;
    border-left: 5px solid var(--primary-green);
    padding-left: 20px;
}

/* --- Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: var(--bg-dark-gray);
    padding: 30px;
    text-align: center;
    border-top: 5px solid var(--primary-green);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 4px;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 255, 136, 0.1);
}

.service-card i {
    font-size: 3rem;
    color: var(--primary-green);
    margin-bottom: 20px;
    display: block;
}

.service-card h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.service-card p {
    color: var(--text-gray);
    font-weight: 300;
}

/* --- Portfolio Grid --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    background: var(--bg-dark-gray);
}

.project-img img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.overlay h3 { color: var(--primary-green); font-size: 2rem; margin-bottom: 10px; }
.overlay p { font-size: 1rem; }

.project-card:hover .project-img img { transform: scale(1.1); }
.project-card:hover .overlay { opacity: 1; }

/* --- Outils Section --- */
.outils {
    text-align: center;
    background: #0d0d0d;
}

.outils-intro {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: var(--text-gray);
    max-width: 800px;
    margin: 0 auto 60px;
}

.outils-subtitle {
    font-size: 2rem;
    margin-bottom: 20px;
    padding-bottom: 5px;
    color: var(--primary-green);
    margin-top: 40px;
}

.outils-logos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 50px;
    margin-bottom: 60px;
}

.logo-item {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 150px;
}

.logo-item i {
    font-size: 3.5rem;
    color: var(--primary-green);
    margin-bottom: 10px;
    transition: color 0.3s;
}

.materiel-list {
    list-style: none;
    padding: 0;
    max-width: 700px;
    margin: 0 auto;
}

.materiel-list li {
    background: var(--bg-dark-gray);
    margin-bottom: 15px;
    padding: 18px 25px;
    border-left: 5px solid var(--primary-green);
    text-align: left;
    font-weight: 300;
    display: flex;
    align-items: center;
    border-radius: 2px;
}

.materiel-list li i {
    margin-right: 15px;
    color: var(--primary-green);
    font-size: 1.2rem;
}


/* --- Clients Section --- */
.clients {
    text-align: center;
    padding-top: 80px;
    padding-bottom: 80px;
}

.clients .section-title {
    border-left: none;
    padding-left: 0;
    margin-bottom: 40px;
}

.clients-logos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    align-items: center;
    justify-items: center;
    margin-bottom: 60px;
}

.client-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100px;
    opacity: 0.8;
    transition: opacity 0.3s, transform 0.3s;
}

.client-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

.client-logo img {
    max-width: 100%;
    max-height: 80px;
    height: auto;
    filter: grayscale(100%) brightness(1.5);
    margin-bottom: 5px;
}

.client-logo:hover img {
    filter: grayscale(0%) brightness(1);
}

.client-logo p {
    font-size: 0.9rem;
    color: var(--text-gray);
    font-weight: 300;
}

.clients-cta {
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--text-white);
}

.clients-cta a {
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s;
}

.clients-cta a:hover {
    opacity: 0.8;
}


/* --- Contact Form --- */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-dark-gray);
    padding: 40px;
    border: 1px solid rgba(255,255,255,0.05);
}

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--text-gray); }

input, textarea {
    width: 100%;
    padding: 15px;
    background: var(--bg-black);
    border: 1px solid #333;
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

input:focus, textarea:focus {
    border-color: var(--primary-green);
}

.btn-submit {
    width: 100%;
    font-size: 1.1rem;
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 40px;
    border-top: 1px solid #222;
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* ==================================== */
/* MEDIA QUERIES MOBILE        */
/* ==================================== */

@media (max-width: 900px) {
    
    /* Cache les liens par défaut sur mobile/tablette */
    .nav-links {
        position: fixed;
        right: 0;
        top: 0;
        height: 100vh;
        width: 60%;
        background-color: var(--bg-dark-gray);
        display: flex;
        flex-direction: column;
        align-items: center;
        transform: translateX(100%); /* Masqué à droite */
        transition: transform 0.5s ease-in-out;
        padding-top: 100px;
        z-index: 999;
    }

    /* Affichage du menu activé par JS */
    .nav-active {
        transform: translateX(0%);
    }

    .nav-links li {
        opacity: 0; /* Caché pour l'animation */
    }

    .nav-links li a {
        font-size: 1.5rem;
        padding: 15px 0;
        display: block;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        width: 100%;
        text-align: center;
    }

    /* Affiche le bouton burger */
    .burger {
        display: block;
        z-index: 1001;
    }

    /* Animation du burger (X) */
    .toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    .toggle .line2 {
        opacity: 0;
    }
    .toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    /* Animation des liens */
    @keyframes navLinkFade {
        from {
            opacity: 0;
            transform: translateX(50px);
        }
        to {
            opacity: 1;
            transform: translateX(0px);
        }
    }

    .nav-active li {
        animation: navLinkFade 0.5s ease forwards;
    }
    .nav-active li:nth-child(1) { animation-delay: 0.1s; }
    .nav-active li:nth-child(2) { animation-delay: 0.2s; }
    .nav-active li:nth-child(3) { animation-delay: 0.3s; }
    .nav-active li:nth-child(4) { animation-delay: 0.4s; }
    .nav-active li:nth-child(5) { animation-delay: 0.5s; }
    .nav-active li:nth-child(6) { animation-delay: 0.6s; }
}

@media (max-width: 768px) {
    .navbar { padding: 20px; flex-direction: row; }
    .hero h1 { font-size: 3rem; }
    .section-title { font-size: 2.5rem; }
    
    .projects-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    
    .clients-logos-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
}