﻿html { scroll-behavior: smooth; }
/* ==========================================================================
   Variables & Reset
   ========================================================================== */
:root {
    /* Couleurs principales de la marque */
    --color-primary: #14642e; /* Vert Forêt */
    --color-secondary: #a5c730; /* Vert Anis */
    
    /* Couleurs d'arrière-plan */
    --color-bg: #ffffff;
    --color-bg-light: #f8fafc;
    --color-bg-form: #fdfdfd;
    
    /* Couleurs de texte et d'interface */
    --color-text-main: #333333;
    --color-text-light: #666666;
    --color-text-muted: #555555;
    --color-border: #eaeaea;

    /* Typographie */
    --font-main: 'Poppins', sans-serif;
    
    /* Variables de design (Rayons et Ombres) */
    --radius: 8px;
    --radius-card: 8px;
    --radius-btn: 50px;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-light: 0 5px 20px rgba(0,0,0,0.05);
    
    /* Animations */
    --transition: all 0.3s ease;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html, body { margin: 0; padding: 0; width: 100%; overflow-x: hidden; }

body { font-family: var(--font-main); color: var(--color-text); background-color: var(--color-bg); line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: var(--color-primary); transition: var(--transition); }
a:hover { color: var(--color-secondary); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ==========================================================================
   Topbar
   ========================================================================== */
.topbar { background-color: var(--color-primary); color: white; padding: 8px 0; font-size: 0.85rem; width: 100%; display: block; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; }
.topbar-phone { color: white; display: flex; align-items: center; gap: 8px; font-weight: 500; }
.topbar-phone:hover { color: var(--color-secondary); }
.topbar-right { font-size: 0.85rem; font-weight: 300; }
@media (max-width: 768px) { .topbar-right { display: none; } }

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header { background: white; box-shadow: var(--shadow); position: sticky; top: 0; z-index: 1000; width: 100%; }
.header-inner { display: flex; justify-content: space-between; align-items: center; height: 90px; }
.logo-img { max-height: 70px; width: auto !important; }
.nav-list { display: flex; gap: 30px; align-items: center; }
.nav-list a { color: var(--color-text); font-weight: 500; font-size: 1rem; position: relative; padding-bottom: 5px; }
.nav-list a:hover { color: var(--color-text); }
.nav-list a::after { content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 3px; background: var(--color-primary); transition: width 0.3s ease; }
.nav-list a:hover::after, .nav-list a.active::after { width: 100%; }

.nav-cta { background: var(--color-primary); color: white !important; padding: 8px 24px; display: block; border-radius: 30px; font-weight: 600 !important; box-shadow: 0 4px 10px rgba(0,0,0,0.1); border: 2px solid transparent; transition: all 0.3s ease; display: inline-flex; align-items: center; justify-content: center; line-height: normal; }
.nav-cta::after { display: none; }
.nav-cta:hover { background: white; color: var(--color-primary) !important; border-color: var(--color-primary); box-shadow: 0 4px 15px rgba(20, 100, 46, 0.3); }

/* Mobile Menu Toggle */
.menu-toggle { display: none; flex-direction: column; justify-content: space-around; width: 30px; height: 25px; background: transparent; border: none; cursor: pointer; z-index: 1001; }
.menu-toggle span { width: 100%; height: 3px; background-color: var(--color-primary); border-radius: 10px; transition: var(--transition); }

@media (max-width: 992px) {
    .menu-toggle { display: flex; }
    .main-nav { position: fixed; top: 0; right: -100%; width: 100%; max-width: 300px; height: 100vh; background-color: white; box-shadow: -5px 0 15px rgba(0,0,0,0.1); transition: right 0.3s ease; padding-top: 90px; z-index: 1000; }
    .main-nav.active { right: 0; }
    .nav-list { flex-direction: column; gap: 0; }
    .nav-list li { width: 100%; text-align: center; border-bottom: 1px solid #f0f0f0; }
    .nav-list a { display: block; padding: 20px; font-size: 1.1rem; }
    .nav-cta { border-radius: 0; }
    .menu-toggle.active span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
    .menu-toggle.active span:nth-child(2) { opacity: 0; }
    .menu-toggle.active span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }
}

/* ==========================================================================
   Home & General Components
   ========================================================================== */
.section-padding { padding: 80px 0; }
.bg-light { background-color: var(--color-bg-light); }
.bg-primary { background-color: var(--color-primary); color: white; }
.bg-primary h2, .bg-primary p { color: white; }
.text-center { text-align: center; }

/* Buttons */
.btn { display: inline-block; padding: 12px 28px; border-radius: var(--radius); font-weight: 600; cursor: pointer; text-align: center; transition: var(--transition); border: 2px solid transparent; }
.btn-primary { 
    background-color: var(--color-primary) !important; 
    color: #ffffff !important; 
    border: 2px solid var(--color-primary) !important;
    transition: all 0.3s ease !important;
}
.btn-primary:hover { 
    background-color: transparent !important; 
    color: var(--color-primary) !important; 
    transform: none !important;
}

.btn-secondary { 
    background-color: var(--color-secondary) !important; 
    color: #0f172a !important; 
    border: 2px solid var(--color-secondary) !important;
    transition: all 0.3s ease !important;
}
.btn-secondary:hover { 
    background-color: transparent !important; 
    color: #0f172a !important; 
    transform: none !important;
}




.btn-outline { border: 2px solid white; color: white !important; background: transparent; }
.btn-outline:hover { background: white; color: var(--color-primary) !important; }
.btn-white { background: white; color: var(--color-primary) !important; }
.btn-white:hover { background: var(--color-secondary); color: white !important; }

/* Hero */
.hero { background-size: cover; background-position: center; color: white; padding: 120px 0; text-align: center; }
.hero h1 { font-size: 3rem; margin-bottom: 15px; font-weight: 700; line-height: 1.2; }
.hero-subtitle { font-size: 1.25rem; margin-bottom: 30px; font-weight: 300; }
.hero-features { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-bottom: 40px; font-weight: 500;}
.hero-features li { background: rgba(0,0,0,0.6); padding: 8px 16px; border-radius: 20px; }
.hero-actions { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }

/* Services */
.section-header { margin-bottom: 50px; }
.section-header h2 { color: var(--color-primary); font-size: 2.2rem; margin-bottom: 15px; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.service-card { background: transparent; padding: 20px; text-align: center; transition: var(--transition); }
.service-card:hover { border-bottom-color: var(--color-primary); }








.service-card h3 { color: var(--color-primary); margin-bottom: 15px; font-size: 1.4rem; }
.service-card p { color: var(--color-text-light); margin-bottom: 25px; }
.service-link { font-weight: 600; color: var(--color-secondary); }
.service-link:hover { color: var(--color-primary); }

/* Why Us */
.why-us-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.why-us-text h2 { color: var(--color-primary); font-size: 2.2rem; margin-bottom: 20px; }
.why-us-text p { margin-bottom: 20px; color: var(--color-text-light); }
.checklist li { position: relative; padding-left: 35px; margin-bottom: 15px; }
.checklist li::before { 
    content: ""; 
    position: absolute; 
    left: 0; 
    top: 3px; 
    width: 24px; 
    height: 24px; 
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a5c730' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}
.rounded-img { border-radius: var(--radius); width: 100%; object-fit: cover; }
.shadow { box-shadow: var(--shadow); }

/* FAQ */
.faq-grid { display: flex; flex-direction: column; gap: 15px; }
.faq-item { background: white; padding: 25px; border-radius: var(--radius); border: 1px solid #eaeaea; }
.faq-item h3 { color: var(--color-primary); margin-bottom: 10px; font-size: 1.2rem; display: flex; align-items: center; gap: 10px; }
.faq-item h3::before { 
    content: ""; 
    display: inline-block;
    width: 20px; height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314642e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cpath d='M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3'%3E%3C/path%3E%3Cline x1='12' y1='17' x2='12.01' y2='17'%3E%3C/line%3E%3C/svg%3E");
}

/* Page Header */
.page-header { background: var(--color-primary); color: white; padding: 60px 0; text-align: center; }
.page-header h1 { font-size: 2.5rem; }

/* Breadcrumb */
.breadcrumb-container { background-color: #f9f9f9; padding: 10px 0; font-size: 0.85rem; border-bottom: 1px solid #eee; }
.breadcrumb { display: flex; list-style: none; margin: 0; padding: 0; }
.breadcrumb li a { color: var(--color-text-light); }
.breadcrumb li a:hover { color: var(--color-primary); }
.breadcrumb .separator { margin: 0 10px; color: #ccc; }

/* Footer */
.footer { background-color: #fcfcfc; padding: 60px 0 0; border-top: 1px solid #eaeaea; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 50px; margin-bottom: 40px; }
.footer-logo { max-width: 180px; margin-bottom: 20px; }
.footer h2 { color: var(--color-primary); margin-bottom: 20px; font-size: 1.2rem; }
.footer ul li { margin-bottom: 12px; }
.footer ul li a { color: var(--color-text-light); }
.footer ul li a:hover { color: var(--color-secondary); }
.contact-list li { color: var(--color-text-light); margin-bottom: 15px; display: flex; flex-direction: column; }
.contact-list strong { color: var(--color-text); margin-bottom: 3px; }
.footer-bottom { background-color: var(--color-primary); color: white; text-align: center; padding: 20px 0; font-size: 0.9rem; margin-top: 40px; }
.sap-badge { max-width: 120px; margin-top: 15px; }

@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .why-us-inner, .footer-inner { grid-template-columns: 1fr; gap: 30px; }
}


/* Footer 4 cols update */
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 40px; }
@media (max-width: 992px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 576px) { .footer-inner { grid-template-columns: 1fr; } }


/* Footer 3 cols fix */
.footer-inner { grid-template-columns: 1.5fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 40px; }
@media (max-width: 992px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 576px) { .footer-inner { grid-template-columns: 1fr; } }








.service-icon { margin-bottom: 20px; display: inline-flex; align-items: center; justify-content: center; width: 100px; height: 100px; }




/* Responsive 4-col Services Grid */
.services-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
@media (max-width: 1200px) {
    .services-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}
@media (max-width: 768px) {
    .services-cards {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}
/* Custom Form Styles */
input[type='radio'], input[type='checkbox'] { accent-color: var(--color-primary); cursor: pointer; transform: scale(1.1); }

/* Bottom Nav (Mobile / Tablet) */
.bottom-nav { display: none; }

/* Mobile & Tablet Overrides */
@media (max-width: 992px) {
    /* Hide topbar, desktop menu and burger */
    .topbar { display: none !important; }
    .menu-toggle { display: none !important; }
    .main-nav { display: none !important; }
    
    /* Adjust header spacing */
    .header-main { padding: 5px 0 !important; } .header-inner { justify-content: center !important; height: 75px !important; }
    .logo-img { max-height: 50px !important; width: auto !important; margin-right: 5px; }
    .logo span { font-size: 1.2rem !important; }
    
    /* Show Bottom Nav */
    .bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: white;
        z-index: 9999;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        justify-content: space-around;
        align-items: center;
        padding: 12px 5px;
        padding-bottom: calc(12px + env(safe-area-inset-bottom));
        border-top: 1px solid #eaeaea;
    }
    
    .bottom-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: var(--color-text-light);
        font-size: 0.75rem;
        gap: 6px;
        transition: color 0.3s;
    }
    
    .bottom-nav-item i {
        font-size: 1.4rem;
    }
    
    .bottom-nav-item.active, .bottom-nav-item:hover {
        color: var(--color-primary);
        font-weight: 600;
    }
    
    /* Push body content up to prevent hiding behind bottom nav */
    body { padding-bottom: 75px; }
    
    /* Footer Accordion */
    .footer-accordion h3 {
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid #eaeaea;
        padding-bottom: 10px;
        margin-bottom: 0;
    }
    .footer-accordion h3::after {
        content: '\f107';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        transition: transform 0.3s;
    }
    .footer-accordion.active h3::after {
        transform: rotate(180deg);
    }
    .footer-accordion ul, .footer-accordion .contact-list {
        display: none;
        padding-top: 15px;
        margin-bottom: 20px;
    }
    .footer-accordion.active ul, .footer-accordion.active .contact-list {
        display: block;
    }
    
    /* Better section spacing on mobile */
    .section-padding { padding: 50px 0; }
    .hero h1 { font-size: 2.2rem !important; }
}
@media (max-width: 992px) {     
    /* Footer Mobile Centering & Logo */
    .footer-col { text-align: center; }
    .footer-brand a { display: block !important; text-align: center; }
    .footer-brand img { max-width: 65px !important; margin: 0 auto; }
    .footer-accordion h3 { justify-content: center; gap: 15px; } }

/* Layout pages services */
.page-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: start;
}
.highlight-box {
    background: var(--color-bg-light);
    border-top: 5px solid var(--color-primary);
    padding: 40px 30px;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
@media (max-width: 992px) {
    .page-grid { grid-template-columns: 1fr; gap: 30px; }
}


/* FAQ Accordion */
.faq-item { background: white; margin-bottom: 15px; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.03); overflow: hidden; border: 1px solid #eaeaea; }
.faq-question { padding: 20px; font-weight: 600; color: var(--color-primary); cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-size: 1.1rem; }
.faq-question::after { content: '\f107'; font-family: 'Font Awesome 6 Free'; font-weight: 900; transition: transform 0.3s; }
.faq-item.active .faq-question::after { transform: rotate(180deg); }
.faq-answer { padding: 0 20px 20px 20px; display: none; color: var(--color-text-light); line-height: 1.7; }
.faq-item.active .faq-answer { display: block; }

/* Gallery Grid */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.gallery-item { display: block; text-decoration: none; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); position: relative; aspect-ratio: 4/3; cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; background: #eaeaea; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-overlay { position: absolute; inset: 0; background: rgba(20, 100, 46, 0.85); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s; color: white; font-weight: bold; font-size: 1.2rem; text-align: center; padding: 20px; flex-direction: column; }
.gallery-item:hover .gallery-overlay { opacity: 1; }


/* ==========================================================================
   PAGE: CONTACT
   ========================================================================== */
.contact-header { background: var(--color-primary); color: white; text-align: center; display: none; }
.contact-header h1 { margin: 0; }
.contact-header p { opacity: 0.9; }

.contact-grid { display: grid; grid-template-columns: 1fr; gap: 40px; width: 100%; }
.contact-info-col { order: 2; background: white; padding: 30px; border-radius: var(--radius-card); box-shadow: var(--shadow-light); height: fit-content; }
.contact-form-col { order: 1; background: white; padding: 30px; border-radius: var(--radius-card); box-shadow: var(--shadow-light); }

.form-group { margin-bottom: 12px; text-align: left; }
.form-group label, .form-label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--color-text-main); }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 10px 15px; border: 2px solid var(--color-border); border-radius: var(--radius-card); font-family: var(--font-main); font-size: 1rem; background: var(--color-bg-form); color: var(--color-text-main); transition: all 0.3s; }
.form-group select { appearance: none; background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right 15px center; background-size: 16px; padding-right: 45px; cursor: pointer; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--color-primary); background: white; box-shadow: 0 0 0 4px rgba(20, 100, 46, 0.1); }
.form-row, .form-row-adresse { display: grid; grid-template-columns: 1fr; gap: 0; }

.submit-btn { width: 100%; padding: 15px; font-size: 1.1rem; border: none; cursor: pointer; transition: background 0.3s; background: var(--color-primary) !important; color: white !important; border-radius: var(--radius-btn); font-weight: 700; }
.submit-btn:hover { background: #0f4c23 !important; }

.radio-group { display: flex; flex-wrap: wrap; gap: 15px; }
.radio-card { flex: 1; min-width: 140px; position: relative; }
.radio-card input { position: absolute; opacity: 0; cursor: pointer; }
.radio-card label { display: flex; align-items: center; justify-content: center; width: 100%; padding: 10px 5px; text-align: center; background: var(--color-bg-form); border: 2px solid var(--color-border); border-radius: var(--radius-card); font-weight: 500; color: var(--color-text-muted); cursor: pointer; transition: all 0.3s; margin: 0; font-family: var(--font-main); font-size: 0.95rem; }
.radio-card input:checked + label { border-color: var(--color-primary); background: rgba(20, 100, 46, 0.05); color: var(--color-primary); font-weight: 700; box-shadow: 0 4px 10px rgba(20, 100, 46, 0.1); }

@media (min-width: 768px) {
    .form-row-submit { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 10px; }
    .form-row-adresse { display: grid; grid-template-columns: 2fr 1fr 1.5fr; gap: 20px; }
    .form-row { grid-template-columns: 1fr 1fr; gap: 20px; }
}
@media (min-width: 992px) {
    .contact-header { display: block; padding: 80px 0; }
    .contact-header h1 { font-size: 3rem; }
    .contact-header p { font-size: 1.2rem; margin-top: 15px; }
    .contact-grid { grid-template-columns: 5fr 7fr; gap: 60px; }
    .contact-info-col { order: 1; padding: 40px; }
    .contact-form-col { order: 2; padding: 40px; }
}

/* ==========================================================================
   PAGE: REALISATIONS
   ========================================================================== */
@media (max-width: 991px) {
    .page-header-realisations { display: none !important; }
}
/* Fil d'Ariane (Breadcrumbs) - Barre grise restructurée */
.breadcrumb-bar {
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 12px 0;
}
.breadcrumb-bar .breadcrumb {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.breadcrumb-bar .breadcrumb a {
    color: #475569;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}
.breadcrumb-bar .breadcrumb a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}
.breadcrumb-bar .breadcrumb .separator {
    color: #cbd5e1;
    display: flex;
    align-items: center;
}
.breadcrumb-bar .breadcrumb .current {
    color: #0f172a;
    font-weight: 600;
}