/* =============================== */
/* 0. IMPORTS DES POLICES GOOGLE   */
/* =============================== */
@import url('https://fonts.googleapis.com/css2?family=Acme&family=Montserrat:wght@400;700&display=swap');

/* =============================== */
/* 1. VARIABLES ET STYLES DE BASE  */
/* =============================== */
:root {
    --primary-blue: #1B4962;       /* Bleu Foncé (Titres, Fond Principal) */
    --secondary-brown: #64524A;    /* Marron Foncé (Accents, Blocs Secondaires) */
    --text-dark: #0E0E0D;          /* Noir/Gris Foncé (Texte Courant) */
    --bg-light: #F4F5F6;           /* Blanc/Clair (Fond de Page) */
    --text-light: #FFFFFF;         /* Blanc pour le texte sur fonds foncés */

    /* NOUVELLES POLICES */
    --font-heading: 'Acme', sans-serif;
    --font-body: 'Montserrat', sans-serif;
}

body {
    font-family: var(--font-body); /* Montserrat pour le corps de texte */
    margin: 0;
    padding: 0;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

h1, h2, h3 {
    color: var(--primary-blue);
    font-family: var(--font-body); /* Les sous-titres restent Montserrat (plus lisible) */
}
/* Application de la police Acme uniquement au titre du logo */
.site-title {
    font-family: var(--font-heading); /* Acme pour le titre principal */
    color: var(--text-light);
    margin: 0;
    font-size: 1.8em;
}


/* =============================== */
/* 2. HEADER ET NAVIGATION         */
/* =============================== */
.header {
    background-color: var(--primary-blue);
    padding: 15px 0;
    height: 90px; /* Hauteur fixe pour le header */
    display: flex;
    align-items: center;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
}

.logo-group {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo-img {
    height: 60%; 
    max-height: 54px; 
    vertical-align: middle;
    margin-right: 15px;
}

.nav a {
    color: var(--text-light);
    text-decoration: none;
    margin-left: 25px;
    font-weight: bold;
    transition: color 0.3s;
}

.nav a:hover {
    color: var(--secondary-white);
}

/* Bouton principal (Call-to-Action) */
.btn-primary {
    background-color: var(--secondary-brown);
    color: var(--text-light);
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
    transition: background-color 0.3s;
    text-transform: uppercase;
    margin-top: 20px;
}

.btn-primary:hover {
    background-color: #584a42; 
}

.btn-contact {
    background-color: var(--secondary-brown);
    padding: 8px 15px;
    border-radius: 3px;
}

.btn-contact:hover {
    color: #F4F5F6;
}
/* =============================== */
/* 3. SECTIONS GÉNÉRALES           */
/* =============================== */

section {
    padding: 80px 0;
    text-align: center;
}

/* Section Hero - Bannière */
#hero {
    background: linear-gradient(rgba(27, 73, 98, 0.8), rgba(27, 73, 98, 0.8)), url('placeholder-chantier.jpg') no-repeat center center/cover;
    color: var(--text-light);
    padding: 120px 0;
}

#hero h2 {
    color: var(--text-light);
    font-size: 2.8em;
    margin-bottom: 15px;
    font-family: var(--font-heading); /* Acme pour le titre de la bannière */
}

/* Section Services (FOND BLEU) */
#services {
    background-color: var(--primary-blue);
    color: var(--text-light); 
}

#services h2, #services h3 {
    color: var(--text-light); 
}

.service-list {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 40px;
}

.service-item {
    background-color: rgba(255, 255, 255, 0.1); 
    padding: 30px 20px;
    margin: 15px;
    width: 200px;
    border-radius: 5px;
    text-align: left;
}

.service-item h3 {
    color: var(--secondary-brown); 
    margin-top: 0;
    font-family: var(--font-heading); /* Acme pour les titres de service */
}

/* Section Réalisations (FOND MARRON) */
#realisations {
    background-color: var(--secondary-brown);
    color: var(--text-light); 
}
#realisations h2 {
    color: var(--text-light); 
    font-family: var(--font-heading); /* Acme pour les titres de section */
}

.gallery {
    display: flex;
    justify-content: space-around;
    margin-top: 40px;
}

.gallery-item {
    width: 30%;
    height: 200px;
    background-color: #38302c; 
    line-height: 200px;
    text-align: center;
    color: var(--bg-light);
    border-radius: 5px;
    font-style: italic;
}

/* =============================== */
/* 4. ENGAGEMENTS                  */
/* =============================== */
#engagements .engagement-grid {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
}

.engagement-item {
    width: 22%;
    padding: 20px;
    border: 2px solid var(--secondary-brown);
    border-radius: 5px;
    text-align: left;
}

.engagement-item h3 {
    font-family: var(--font-heading); /* Acme pour les titres d'engagement */
}

/* Styles pour la page Contact (à ajouter pour le formulaire) */
.devis-form label {
    display: block;
    margin-top: 15px;
    font-weight: bold;
}
.devis-form input, .devis-form select, .devis-form textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Inclure padding et border dans la largeur */
}

/* =============================== */
/* 5. FOOTER (FOND BLEU)           */
/* =============================== */
.footer {
    background-color: var(--primary-blue);
    color: var(--text-light);
    padding: 40px 0 20px;
    text-align: left;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-content div {
    width: 30%;
    min-width: 150px;
    margin-bottom: 20px;
}

.footer-content h3 {
    color: var(--secondary-brown); 
    border-bottom: 1px solid var(--secondary-brown);
    padding-bottom: 5px;
    font-family: var(--font-heading); /* Acme pour les titres du footer */
}

.footer-content a {
    color: var(--text-light);
    text-decoration: none;
}

.footer-content a:hover {
    color: var(--secondary-brown);
    text-decoration: underline;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 20px;
    font-size: 0.8em;
}

/* =============================== */
/* 6. RESPONSIVE DESIGN            */
/* =============================== */
@media (max-width: 768px) {
    /* ... (les règles responsive restent les mêmes) ... */
    .header .container {
        flex-direction: column;
        align-items: flex-start;
    }
    .nav {
        margin-top: 15px;
        width: 100%;
        display: flex;
        justify-content: space-around;
    }
    .nav a {
        margin: 5px;
    }
    .service-list, .engagement-grid {
        flex-direction: column;
        align-items: center;
    }
    .service-item, .engagement-item, .footer-content div {
        width: 90%;
        margin-bottom: 20px;
    }
    .contact-grid {
        flex-direction: column;
    }
    .contact-info, .contact-form-wrapper {
        width: 100% !important;
    }
}