@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');

:root {
    --primary: #0c8001;
    --secondary: #db0000;
    --dark: #1a1a1a;
    --light: #f8f9fa;
    --shadow: rgba(0, 0, 0, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Montserrat', sans-serif; color: var(--dark); line-height: 1.7; background-color: #fff; }

/* NAVBAR */
.navbar {
    display: flex; align-items: center; padding: 0 5%; position: fixed;
    width: 100%; height: 90px; background: #fff; box-shadow: 0 2px 15px rgba(0,0,0,0.05); z-index: 1000;
}
.logo-img { height: 75px; object-fit: contain; }
.logo-img-link { margin-right: auto; display: flex; align-items: center; }
.logo-text { position: absolute; left: 50%; transform: translateX(-50%); font-size: 32px; font-weight: 700; color: var(--secondary); letter-spacing: 1px; }
.logo-text span { color: var(--primary); }
.hidden-check { display: none; }

.menu-toggle { margin-left: auto; position: relative; display: flex; align-items: center; }
.burger-label { cursor: pointer; padding: 10px; }
.bar { display: block; width: 25px; height: 3px; background: var(--dark); margin: 5px 0; transition: 0.3s; }

.nav-links {
    display: none; position: absolute; top: 60px; right: 0; background: #fff;
    width: 250px; padding: 20px; box-shadow: 0 5px 25px rgba(0,0,0,0.1); border-radius: 8px;
}
#burger-check:checked ~ .nav-links { display: block; }
.nav-links li { list-style: none; margin: 15px 0; }
.nav-links a { text-decoration: none; color: var(--dark); font-weight: 600; transition: color 0.2s; }
.nav-links a:hover { color: var(--primary); }
.nav-links .cta-nav { color: var(--primary); border-bottom: 2px solid var(--primary); padding-bottom: 2px; }

/* HERO */
.hero {
    height: 100vh; background: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)), url('photo-accueil.jpg');
    background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center;
    color: white; text-align: center; padding: 90px 5% 0;
}
.hero h1 { font-size: 42px; max-width: 900px; font-weight: 700; line-height: 1.3; margin-bottom: 15px; }
.hero p { font-size: 18px; max-width: 600px; margin: 0 auto 25px; font-weight: 400; opacity: 0.9; }
.cta-button {
    display: inline-block; padding: 16px 35px; background: var(--primary);
    color: white; text-decoration: none; border-radius: 30px; font-weight: 700; text-transform: uppercase; font-size: 14px; letter-spacing: 1px; transition: 0.3s ease;
}
.cta-button:hover { background: #0a6601; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(12, 128, 1, 0.3); }

/* SECTIONS GÉNÉRALES */
section { padding: 90px 8%; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 32px; font-weight: 700; position: relative; padding-bottom: 15px; }
.section-header h2 span { color: var(--primary); }
.section-header h2::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 60px; height: 3px; background: var(--primary); }
.section-header p { color: #666; margin-top: 10px; font-size: 16px; }

/* COMPOSANT À PROPOS (TEXTE RE-STYLISÉ) */
.about-content { max-width: 850px; margin: 0 auto; }
.lead-text { font-size: 18px; line-height: 1.8; color: #333; text-align: center; margin-bottom: 35px; }
.features-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 15px; list-style: none; margin-bottom: 40px; background: var(--light); padding: 25px; border-radius: 10px; }
.features-list li { font-weight: 600; font-size: 15px; color: #2c3e50; }
.long-text { border-top: 1px solid #eee; padding-top: 35px; }
.long-text p { margin-bottom: 20px; text-align: justify; color: #555; font-size: 15px; line-height: 1.7; }

/* GRILLE DES CHANTIERS (CARTES PREMIUM) */
.chantiers-accueil { background-color: var(--light); }
.grid-chantiers {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    align-items: stretch;
}
.card-chantier {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 18px var(--shadow);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
    height: 100%;
}
.card-chantier:hover {
    transform: translateY(-7px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}
.card-chantier img { width: 100%; height: 210px; object-fit: cover; }
.card-body { padding: 25px; display: flex; flex-direction: column; flex-grow: 1; }
.card-body h3 { font-size: 19px; margin-bottom: 12px; font-weight: 700; color: var(--dark); }
.card-body p { font-size: 14px; color: #666; line-height: 1.6; margin-bottom: 25px; flex-grow: 1; }
.btn-savoir {
    margin-top: auto; display: inline-block; padding: 12px 22px; background: #333; 
    color: #ffffff; text-decoration: none; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; border-radius: 4px; text-align: center; transition: 0.2s ease;
}
.card-chantier:hover .btn-savoir { background: var(--primary); }

/* SERVICES GRID (BANNIÈRES HORIZONTALES MODERNISÉES) */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.service-card {
    position: relative;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    display: block;
    text-decoration: none;
    box-shadow: 0 4px 15px var(--shadow);
}
.service-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.service-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.45); display: flex; align-items: center; justify-content: center; transition: background 0.3s ease;
}
.service-overlay span {
    color: white; font-size: 24px; font-weight: 700; text-transform: uppercase; text-align: center;
    padding: 10px 25px; border: 2px solid white; background: rgba(0,0,0,0.2); backdrop-filter: blur(2px); transition: 0.3s ease;
}
.service-card:hover img { transform: scale(1.05); }
.service-card:hover .service-overlay { background: rgba(12, 128, 1, 0.55); }
.service-card:hover .service-overlay span { border-color: white; background: transparent; }

/* REVIEWS (AVIS) */
.reviews-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; }
.review-box { background: var(--light); padding: 30px; border-radius: 12px; text-align: center; box-shadow: 0 3px 10px rgba(0,0,0,0.02); }
.review-box p { font-style: italic; color: #444; font-size: 14.5px; margin-bottom: 15px; }
.stars { margin-bottom: 15px; font-size: 16px; }
.review-box h3 { font-size: 16px; font-weight: 700; color: var(--dark); }
.google-link { text-align: center; margin-top: 40px; }
.google-link a { color: var(--primary); font-weight: 700; text-decoration: none; border: 2px solid var(--primary); padding: 12px 28px; border-radius: 50px; transition: 0.3s; font-size: 14px; }
.google-link a:hover { background: var(--primary); color: white; }

/* FOOTER & CTA BOTTOM */
footer { background: var(--dark); color: white; padding: 0; }
.cta-bottom { text-align: center; padding: 80px 5%; }
.cta-bottom h2 { font-size: 32px; font-weight: 700; margin-bottom: 10px; }
.cta-bottom p { opacity: 0.8; font-size: 16px; }
.btn-devis-white {
    display: inline-block; margin: 30px 0; padding: 16px 40px; border: 2px solid white;
    color: white; text-decoration: none; font-weight: 700; border-radius: 30px; text-transform: uppercase; font-size: 13px; letter-spacing: 1px; transition: 0.3s;
}
.btn-devis-white:hover { background: white; color: var(--primary); box-shadow: 0 5px 20px rgba(255,255,255,0.2); }
.footer-phone { font-size: 16px; margin-bottom: 25px; }
.footer-phone a { color: #fff; font-weight: 700; text-decoration: none; border-bottom: 1px dotted #fff; }
.copyright { font-size: 13px; opacity: 0.5; margin-top: 20px; border-top: 1px solid rgba(255,255,255,0.08); padding-top: 25px; }

/* INTERFACES BOUTONS SECONDAIRES & CO */
.more-photos-container { text-align: center; margin-top: 40px; }
.btn-secondary { display: inline-block; padding: 12px 30px; border: 2px solid var(--primary); color: var(--primary); text-decoration: none; border-radius: 5px; font-weight: bold; transition: all 0.3s ease; }
.btn-secondary:hover { background-color: var(--primary); color: white; transform: translateY(-3px); box-shadow: 0 5px 15px rgba(12, 128, 1, 0.2); }

/* --- PAGE DEVIS --- */
.devis-hero { background: var(--dark); color: white; text-align: center; padding: 140px 10% 60px; }
.devis-hero h1 { font-size: 32px; margin-bottom: 10px; }
.devis-section { background-color: var(--light); padding: 60px 5%; }
.form-container { max-width: 800px; margin: -80px auto 0; background: #fff; padding: 40px; border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.form-group { margin-bottom: 30px; }
.form-group h3 { color: var(--primary); margin-bottom: 20px; border-bottom: 2px solid var(--light); padding-bottom: 10px; }
.input-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.quote-form input, .quote-form select, .quote-form textarea { width: 100%; padding: 12px 15px; border: 1px solid #ddd; border-radius: 5px; font-family: inherit; font-size: 15px; }
.radio-options { display: flex; gap: 20px; margin-top: 10px; }
.submit-button { width: 100%; padding: 18px; background-color: var(--primary); color: white; border: none; border-radius: 5px; font-size: 18px; font-weight: bold; cursor: pointer; transition: background 0.3s; }
.submit-button:hover { background-color: var(--secondary); }
.form-note { text-align: center; margin-top: 15px; font-size: 14px; color: #666; }

/* RESPONSIVE DESIGN ENHANCEMENTS */
@media (max-width: 768px) {
    .navbar { justify-content: space-between; }
    .logo-text { position: relative; left: 0; transform: none; font-size: 20px; margin-left: 10px; }
    .hero h1 { font-size: 28px; }
    .service-card { height: 140px; }
    .service-overlay span { font-size: 18px; }
    section { padding: 60px 5%; }
    .input-grid { grid-template-columns: 1fr; }
    .form-container { padding: 20px; }
}