/* =========================================
   1. BASE ET RESET
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* TRES IMPORTANT : Empêche les marges d'agrandir les boites */
}

/* Empêche le site de dépasser sur la droite sur mobile */
html, body {
    width: 100%;
    overflow-x: hidden; 
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 100%; /* Prend toute la largeur */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

h1, h2, h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

/* =========================================
   2. HEADER ET NAVIGATION
   ========================================= */
header {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    width: 100%;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.3rem; /* Légèrement plus petit pour éviter que ça casse sur petits écrans */
    font-weight: 700;
    color: #1e5b9f;
    white-space: nowrap; /* Empêche le logo de se mettre sur 2 lignes */
}

/* Menu PC */
.nav-links {
    display: flex;
    align-items: center;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    font-weight: 500;
}

.nav-links a:hover {
    color: #1e5b9f;
}

.btn-devis {
    background-color: #1e5b9f;
    color: white !important;
    padding: 10px 20px;
    border-radius: 5px;
}

.btn-devis:hover {
    background-color: #164375;
}

/* Hamburger caché sur PC */
.hamburger {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #1e5b9f;
}

/* =========================================
   3. RESPONSIVE (MOBILE) - C'EST ICI QUE ÇA S'ADAPTE
   ========================================= */
@media (max-width: 768px) {
    
    .hamburger {
        display: block;
    }

    /* Le menu devient vertical */
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        border-top: 1px solid #eee;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 15px 0;
        margin-left: 0; /* Annule la marge de gauche du PC */
    }

    .hero h1 {
        font-size: 1.8rem; /* Titre plus petit sur mobile */
    }

    /* --- CORRECTIF FORMULAIRE MOBILE --- */
    .contact-wrapper {
        padding: 20px 15px !important; /* Réduit les marges intérieures */
        flex-direction: column; /* Force l'un en dessous de l'autre */
        width: 100%;
    }

    .contact-info, .contact-form {
        width: 100% !important; /* Force à prendre toute la largeur dispo */
        min-width: 0 !important; /* Annule toute largeur minimum bloquante */
        margin: 0;
    }

    /* On s'assure que les champs ne dépassent pas */
    .form-group input, 
    .form-group textarea {
        width: 100%;
        max-width: 100%;
    }
}

/* =========================================
   4. SECTIONS (HERO, SERVICES, ETC.)
   ========================================= */
.hero {
    background: linear-gradient(rgba(30, 91, 159, 0.8), rgba(30, 91, 159, 0.6)), url('https://images.unsplash.com/photo-1595846519845-68e298c2edd8?auto=format&fit=crop&w=1500&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 0; /* Un peu moins haut */
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    margin-bottom: 30px;
}

.btn-primary {
    display: inline-block;
    background-color: white;
    color: #1e5b9f;
    padding: 12px 30px;
    font-weight: bold;
    border-radius: 5px;
    margin-top: 20px;
}

/* Services */
.services-section {
    padding: 50px 0;
    background: white;
    text-align: center;
}

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

.service-card {
    padding: 25px;
    border: 1px solid #eee;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.service-card i {
    font-size: 2.5rem;
    color: #1e5b9f;
    margin-bottom: 15px;
}

.zone-info {
    margin-top: 40px;
    background-color: #eaf4ff;
    padding: 20px;
    border-radius: 8px;
    border-left: 5px solid #1e5b9f;
}

/* =========================================
   5. PORTFOLIO & CONTACT
   ========================================= */
.portfolio {
    padding: 50px 0;
    text-align: center;
}

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

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: 250px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: rgba(30, 91, 159, 0.9);
    color: white;
    padding: 10px;
    transform: translateY(100%);
    transition: 0.3s;
}

.gallery-item:hover .overlay { transform: translateY(0); }

/* CONTACT */
.contact-section {
    padding: 50px 0;
    background-color: #f4f4f4;
    flex: 1;
}

.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 30px;
    background: white;
    padding: 40px; /* Sur PC c'est 40px, sur mobile ça passe à 20px auto grâce au media query plus haut */
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.contact-info, .contact-form {
    flex: 1;
    min-width: 300px; /* Sur PC ok, annulé sur mobile */
}

.business-card-visual {
    margin-top: 30px;
    height: 100px;
    background: linear-gradient(135deg, white 50%, #1e5b9f 50%);
    border-radius: 5px;
    border: 1px solid #ddd;
}

/* FORMULAIRE */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 500; }

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px; /* Un peu plus facile à cliquer sur mobile */
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

.btn-submit {
    background-color: #1e5b9f;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    font-weight: bold;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: auto;
}

/* --- NOUVEAU : LISTE DES SOUS-TRAVAUX --- */
.details-container {
    background-color: white;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 30px;
    margin-top: 40px;
    text-align: left; /* Pour que la liste soit lisible */
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    max-width: 800px; /* Pas trop large pour rester joli */
    margin-left: auto;
    margin-right: auto;
}

.details-container h3 {
    color: #1e5b9f;
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.details-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* 2 colonnes sur PC, 1 sur mobile */
    gap: 15px;
}

.details-list li {
    font-size: 1.05rem;
    display: flex;
    align-items: center; /* Aligne l'icône et le texte */
}

.details-list li i {
    color: #2e7d32; /* Une petite coche verte */
    margin-right: 10px;
    font-size: 1.2rem;
}

.details-list li strong {
    color: #333;
    font-weight: 700;
    margin-right: 5px;
}
/* --- NOUVEAU BLOC : Prestations Spécifiques --- */
.specific-services-box {
    margin-top: 50px;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); /* Légère ombre */
    border: 1px solid #eee;
    text-align: left; /* On aligne le texte à gauche pour que ce soit lisible */
}

.specific-services-box h3 {
    text-align: center;
    color: #1e5b9f;
    margin-bottom: 30px;
}

.spec-grid {
    display: grid;
    /* Crée 2 colonnes automatiques sur PC, 1 sur mobile */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px;
}

.spec-item {
    display: flex; /* Aligne l'icône verte et le texte côte à côte */
    align-items: flex-start;
}

.spec-item i {
    color: #2e7d32; /* Vert pour la coche */
    font-size: 1.2rem;
    margin-right: 15px;
    margin-top: 4px; /* Petit ajustement pour aligner avec le texte */
}

.spec-text strong {
    display: block;
    color: #333;
    font-size: 1.05rem;
    margin-bottom: 5px;
}

.spec-text p {
    color: #666;
    margin: 0;
    font-size: 0.95rem;
}