/* =========================================================
   BG Peinture Décoration - Feuille de style principale
   Palette verte inspirée du véhicule de l'entreprise
   ========================================================= */

:root {
    --primary:        #7CB342;
    --primary-dark:   #558B2F;
    --primary-light:  #AED581;
    --primary-bg:     #F1F8E9;
    --accent:         #33691E;
    --dark:           #1B1B1B;
    --text:           #2C2C2C;
    --muted:          #666666;
    --border:         #E0E0E0;
    --white:          #FFFFFF;
    --shadow-sm:      0 2px 8px rgba(0,0,0,0.06);
    --shadow-md:      0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg:      0 12px 32px rgba(0,0,0,0.12);
    --radius:         10px;
    --radius-lg:      20px;
    --transition:     all 0.3s ease;
    --container:      1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
    background: var(--white);
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-dark); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary); }

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.25;
    margin-bottom: 0.8em;
}
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: clamp(1.3rem, 2.3vw, 1.6rem); }
h4 { font-size: 1.2rem; }

p { margin-bottom: 1rem; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* ===================== HEADER TOP BAR ===================== */
.top-bar {
    background: var(--dark);
    color: #cfcfcf;
    font-size: 0.88rem;
    padding: 8px 0;
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.top-bar a { color: #cfcfcf; }
.top-bar a:hover { color: var(--primary-light); }
.top-bar-left, .top-bar-right { display: flex; gap: 20px; flex-wrap: wrap; }
.top-bar .icon { color: var(--primary); margin-right: 6px; }

/* ===================== HEADER / NAV ===================== */
header.site-header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    flex-wrap: wrap;
    gap: 12px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--dark);
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    line-height: 1.05;
}
.logo-mark {
    width: 54px; height: 54px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 900;
    font-size: 1.35rem;
    letter-spacing: -1px;
    box-shadow: var(--shadow-sm);
}
.logo-text { display: flex; flex-direction: column; }
.logo-text small {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}
.nav-toggle {
    display: none;
    background: none;
    border: 0;
    font-size: 1.6rem;
    color: var(--dark);
    cursor: pointer;
}
nav.main-nav ul {
    display: flex;
    list-style: none;
    gap: 4px;
    align-items: center;
    flex-wrap: wrap;
}
nav.main-nav a {
    color: var(--dark);
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 8px;
    display: block;
}
nav.main-nav a:hover,
nav.main-nav a.active {
    background: var(--primary-bg);
    color: var(--primary-dark);
}
nav.main-nav .has-sub { position: relative; }
nav.main-nav .submenu {
    position: absolute;
    top: 100%; left: 0;
    background: var(--white);
    min-width: 230px;
    padding: 10px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: var(--transition);
    display: block;
    z-index: 100;
}
nav.main-nav .has-sub:hover > .submenu,
nav.main-nav .has-sub:focus-within > .submenu {
    opacity: 1; visibility: visible; transform: translateY(0);
}
nav.main-nav .submenu li { width: 100%; }
nav.main-nav .submenu a { padding: 8px 12px; font-size: 0.95rem; }

.btn-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white) !important;
    padding: 10px 22px !important;
    border-radius: 50px !important;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(124,179,66,0.3);
}
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(124,179,66,0.4); }

/* ===================== BUTTONS ===================== */
.btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
    line-height: 1.2;
    transition: var(--transition);
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    box-shadow: 0 6px 16px rgba(124,179,66,0.35);
}
.btn-primary:hover { color: var(--white); transform: translateY(-3px); box-shadow: 0 10px 22px rgba(124,179,66,0.45); }
.btn-outline {
    background: transparent;
    color: var(--primary-dark);
    border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-white {
    background: var(--white);
    color: var(--primary-dark);
}
.btn-white:hover { background: var(--primary-bg); color: var(--accent); }

/* ===================== HERO ===================== */
.hero {
    position: relative;
    background:
        linear-gradient(135deg, rgba(27,27,27,0.72) 0%, rgba(85,139,47,0.78) 100%),
        url('../img/hero-peinture.jpg') center/cover no-repeat;
    color: var(--white);
    padding: 110px 0;
    min-height: 600px;
    display: flex;
    align-items: center;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(circle at 30% 40%, rgba(124,179,66,0.25) 0%, transparent 60%);
}
.hero .container { position: relative; z-index: 2; }
.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: center;
}
.hero h1 {
    color: var(--white);
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    margin-bottom: 20px;
}
.hero h1 span { color: var(--primary-light); }
.hero .lead {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-trust {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.2);
}
.hero-trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
}
.hero-trust-item strong { color: var(--primary-light); font-size: 1.4rem; display:block; }

.hero-card {
    background: var(--white);
    color: var(--text);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.hero-card h3 { color: var(--dark); margin-bottom: 6px; }
.hero-card .small { color: var(--muted); margin-bottom: 20px; display:block; font-size: 0.9rem; }

/* ===================== FORM ===================== */
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--dark);
}
.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
    background: var(--white);
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(124,179,66,0.15);
}
textarea.form-control { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ===================== SECTIONS ===================== */
section { padding: 80px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 50px; }
.section-head .tagline {
    display: inline-block;
    color: var(--primary-dark);
    background: var(--primary-bg);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.section-head p { color: var(--muted); font-size: 1.05rem; }
.bg-light { background: var(--primary-bg); }
.bg-dark  { background: var(--dark); color: #DDD; }
.bg-dark h2, .bg-dark h3 { color: var(--white); }

/* ===================== SERVICE CARDS ===================== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; align-items: center; }

.service-card {
    background: var(--white);
    padding: 32px 28px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--primary-light); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
    width: 60px; height: 60px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 18px;
    box-shadow: 0 6px 14px rgba(124,179,66,0.3);
}
.service-card h3 { color: var(--dark); margin-bottom: 10px; font-size: 1.22rem; }
.service-card p { color: var(--muted); margin-bottom: 16px; font-size: 0.95rem; }
.service-card .link {
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex; align-items: center; gap: 6px;
}
.service-card .link::after { content: '→'; transition: transform 0.2s; }
.service-card:hover .link::after { transform: translateX(4px); }

/* ===================== FEATURES ===================== */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.feature {
    text-align: center;
    padding: 28px 20px;
}
.feature-icon {
    width: 76px; height: 76px;
    border-radius: 50%;
    background: var(--primary-bg);
    color: var(--primary-dark);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 2rem;
    margin-bottom: 16px;
    border: 3px solid var(--primary);
}
.feature h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* ===================== ABOUT / 2 COL ===================== */
.about-img {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}
.about-badge {
    position: absolute;
    bottom: -30px; right: -30px;
    background: var(--primary);
    color: var(--white);
    width: 140px; height: 140px;
    border-radius: 50%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    font-weight: 700;
    text-align: center;
    box-shadow: var(--shadow-lg);
    line-height: 1.1;
    padding: 10px;
}
.about-badge strong { font-size: 2.2rem; display: block; }
.check-list { list-style: none; padding: 0; }
.check-list li {
    padding: 10px 0 10px 34px;
    position: relative;
}
.check-list li::before {
    content: '✓';
    position: absolute; left: 0; top: 10px;
    width: 24px; height: 24px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

/* ===================== CITIES ===================== */
.cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}
.city-item {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 10px;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    color: var(--dark);
    font-weight: 500;
}
.city-item:hover {
    border-color: var(--primary);
    background: var(--primary-bg);
    transform: translateX(4px);
    color: var(--primary-dark);
}
.city-item .zip { color: var(--muted); font-size: 0.82rem; font-weight: 400; }

/* ===================== TESTIMONIALS ===================== */
.testimonial {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    position: relative;
    border-top: 4px solid var(--primary);
}
.testimonial .stars { color: #F9A825; margin-bottom: 12px; font-size: 1.1rem; }
.testimonial-text { font-style: italic; color: var(--text); margin-bottom: 18px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.avatar {
    width: 46px; height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
}
.testimonial-author strong { display: block; }
.testimonial-author small { color: var(--muted); }

/* ===================== CTA BAND ===================== */
.cta-band {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 70px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-band::before {
    content: '';
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: 0.3;
}
.cta-band h2 { color: var(--white); }
.cta-band .lead { font-size: 1.15rem; margin-bottom: 30px; opacity: 0.95; }
.cta-band .btn-white { background: var(--white); color: var(--primary-dark); }
.cta-band .container { position: relative; }

/* ===================== FAQ ===================== */
.faq-item {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 12px;
    margin-bottom: 14px;
    overflow: hidden;
    transition: var(--transition);
}
.faq-item.open { border-color: var(--primary); }
.faq-q {
    padding: 18px 22px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--dark);
    gap: 16px;
}
.faq-q::after {
    content: '+';
    font-size: 1.6rem;
    color: var(--primary);
    transition: transform 0.3s;
    line-height: 1;
}
.faq-item.open .faq-q::after { content: '−'; }
.faq-a {
    max-height: 0;
    overflow: hidden;
    padding: 0 22px;
    transition: max-height 0.4s ease, padding 0.3s;
    color: var(--muted);
}
.faq-item.open .faq-a { max-height: 500px; padding: 0 22px 20px; }

/* ===================== PAGE HEAD ===================== */
.page-head {
    background: linear-gradient(135deg, var(--dark) 0%, var(--accent) 100%);
    color: var(--white);
    padding: 80px 0 60px;
    text-align: center;
}
.page-head h1 { color: var(--white); margin-bottom: 10px; }
.page-head p { color: #cfe8b7; max-width: 700px; margin: 0 auto; font-size: 1.05rem; }
.breadcrumbs {
    margin-top: 16px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
}
.breadcrumbs a { color: var(--primary-light); }
.breadcrumbs .sep { margin: 0 8px; opacity: 0.6; }

/* ===================== FOOTER ===================== */
footer.site-footer {
    background: #0F0F0F;
    color: #BBB;
    padding: 70px 0 20px;
}
footer h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 10px;
}
footer h4::after {
    content: '';
    position: absolute; bottom: 0; left: 0;
    width: 40px; height: 3px;
    background: var(--primary);
    border-radius: 2px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid ul { list-style: none; padding: 0; }
.footer-grid li { padding: 5px 0; }
.footer-grid a { color: #BBB; }
.footer-grid a:hover { color: var(--primary-light); padding-left: 4px; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact .ico { color: var(--primary); min-width: 18px; margin-top: 3px; }
.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #222;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.88rem;
}

/* ===================== FLOATING CALL BUTTON ===================== */
.float-call {
    position: fixed;
    bottom: 22px; right: 22px;
    z-index: 999;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    width: 62px; height: 62px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 22px rgba(124,179,66,0.5);
    font-size: 1.5rem;
    animation: pulse 2s infinite;
}
.float-call:hover { color: var(--white); transform: scale(1.1); }
@keyframes pulse {
    0% { box-shadow: 0 8px 22px rgba(124,179,66,0.5), 0 0 0 0 rgba(124,179,66,0.5); }
    70% { box-shadow: 0 8px 22px rgba(124,179,66,0.5), 0 0 0 20px rgba(124,179,66,0); }
    100% { box-shadow: 0 8px 22px rgba(124,179,66,0.5), 0 0 0 0 rgba(124,179,66,0); }
}

/* ===================== REALISATIONS GALLERY ===================== */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.gallery-item {
    aspect-ratio: 4/3;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: var(--transition);
}
.gallery-item img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s ease;
}
.gallery-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item .caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 16px 18px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: var(--white);
    font-weight: 600;
    font-size: 0.95rem;
}

/* ===================== ALERT ===================== */
.alert {
    padding: 14px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}
.alert-success { background: #E8F5E9; color: #2E7D32; border-left: 4px solid #2E7D32; }
.alert-error   { background: #FFEBEE; color: #C62828; border-left: 4px solid #C62828; }

/* ===================== TEXT UTIL ===================== */
.text-center { text-align: center; }
.text-primary { color: var(--primary-dark); }
.mt-0 { margin-top: 0; } .mt-2 { margin-top: 20px; } .mt-4 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 20px; } .mb-4 { margin-bottom: 40px; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 992px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .features { grid-template-columns: repeat(2, 1fr); }
    .hero-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    section { padding: 60px 0; }
    .grid-2 { grid-template-columns: 1fr; }
    .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .features { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .gallery { grid-template-columns: 1fr; }
    .hero { padding: 70px 0; min-height: auto; }
    .hero-trust { gap: 18px; }

    .nav-toggle { display: block; }
    nav.main-nav {
        position: fixed;
        top: 0; right: -100%;
        width: 85%; max-width: 340px;
        height: 100vh;
        background: var(--white);
        box-shadow: -4px 0 24px rgba(0,0,0,0.1);
        padding: 80px 22px 22px;
        transition: right 0.4s ease;
        overflow-y: auto;
        z-index: 1500;
    }
    nav.main-nav.open { right: 0; }
    nav.main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
    nav.main-nav a { padding: 12px 14px; }
    nav.main-nav .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 0 0 0 16px;
        margin: 0;
        background: transparent;
    }
    .nav-close {
        position: absolute;
        top: 18px; right: 18px;
        background: none; border: 0;
        font-size: 1.8rem;
        color: var(--dark);
        cursor: pointer;
        display: block;
    }
    .nav-overlay {
        position: fixed; inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 1400;
        display: none;
    }
    .nav-overlay.active { display: block; }

    .top-bar { font-size: 0.8rem; padding: 6px 0; }
    .top-bar-left { display: none; }
    .top-bar .container { justify-content: center; }

    .about-badge { width: 100px; height: 100px; bottom: -20px; right: -10px; }
    .about-badge strong { font-size: 1.6rem; }
}
