/* --- 1. CONFIGURATION GÉNÉRALE --- */
:root {
    --primary-color: #3498db;    /* Bleu Acier */
    --secondary-color: #343d46;  /* Gris Anthracite RAL 7016 */
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f4f4f4;
}

* {
    box-sizing: border-box; /* Important pour le calcul des largeurs sur mobile */
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    line-height: 1.6;
    color: var(--text-dark);
    scroll-behavior: smooth;
    overflow-x: hidden; /* Évite le défilement horizontal parasite */
}

h1, h2, h3 {
    margin-top: 0;
}

/* --- 2. NAVIGATION & HEADER --- */
header {
    background: var(--secondary-color);
    color: var(--text-light);
    padding: 1rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative; /* Nécessaire pour positionner le menu mobile */
}

.logo { 
    font-size: 1.5rem; 
    font-weight: bold; 
    letter-spacing: 1px;
}

.logo span { 
    color: var(--primary-color); 
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

nav ul li { 
    margin-left: 25px; 
}

nav ul li a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 400;
    transition: 0.3s;
    display: block;
}

nav ul li a:hover {
    color: var(--primary-color);
}

.btn-contact {
    background: var(--primary-color);
    padding: 8px 20px;
    border-radius: 5px;
    font-weight: bold !important;
}

/* Menu Mobile (Burger) */
.menu-toggle {
    display: none; /* Masqué par défaut sur PC */
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
}

/* --- 3. SECTION HERO --- */
.hero {
    height: 80vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
                url('img/vitrine.jpeg'); 
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    padding: 0 20px;
}

.hero h1 { 
    font-size: 3rem; 
    margin-bottom: 1rem; 
    text-transform: uppercase;
}

.cta-button {
    background: var(--primary-color);
    color: white;
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.3s;
    font-weight: bold;
    display: inline-block;
}

/* --- 4. SERVICES --- */
#services { 
    padding: 80px 10%; 
    text-align: center; 
    background: var(--bg-light); 
}

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

.service-card {
    background: white;
    padding: 40px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* --- 5. RÉALISATIONS (LA GRILLE) --- */
#realisations { 
    padding: 80px 10%; 
    text-align: center; 
}

.realisations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

/* Important pour éviter les images géantes */
.realisations-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* --- 6. CONTACT --- */
#contact { 
    padding: 80px 10%; 
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
}

/* --- 7. FOOTER --- */
footer {
    text-align: center;
    padding: 50px 20px;
    background: var(--secondary-color);
    color: var(--text-light);
}

.powered-by {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.powered-by p {
    margin: 0 0 10px;
}

.powered-by a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-light);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
    transition: 0.3s;
}

.powered-by a:hover {
    color: var(--primary-color);
}

.powered-by a span {
    color: var(--primary-color);
}

.powered-by a:hover span {
    color: var(--text-light);
}

/* --- 8. RESPONSIVE (MOBILE) --- */
@media (max-width: 768px) {
    header {
        padding: 1rem 5%;
    }

    .menu-toggle {
        display: block; /* On affiche le bouton ☰ */
    }

    nav ul {
        display: none; /* On cache le menu par défaut */
        flex-direction: column;
        position: absolute;
        top: 100%; /* Se place juste en dessous du header */
        left: -5%; /* Réaligne avec les bords si padding header est 5% */
        width: 110%; /* Couvre toute la largeur */
        background: var(--secondary-color);
        padding: 20px 0;
        border-top: 1px solid rgba(255,255,255,0.1);
    }

    /* CLASSE ACTIVÉE PAR JS */
    nav ul.active {
        display: flex !important;
    }

    nav ul li {
        margin: 15px 0;
        margin-left: 0;
        width: 100%;
        text-align: center;
    }

    .hero h1 { font-size: 2rem; }

    #services, #realisations, #contact {
        padding: 50px 5%;
    }
}