* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #c89b3c;
    --secondary: #1f2933;
    --accent: #eab308;
    --text: #222;
    --bg: #fff;
    --light: #f5f5f5;
    --muted: #6b7280;
    --white: #fff;
    --radius: 16px;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
}

body {
    font-family: Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: min(92%, 1200px);
    margin: 0 auto;
}

/* =========================
   HEADER CORRIGÉ
========================= */

.site-header {
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.logo {
    font-size: 26px;
    font-weight: 900;
    color: var(--secondary);
    letter-spacing: 1px;
    white-space: nowrap;
}

.logo img {
    max-height: 55px;
    width: auto;
}

.logo::first-letter {
    color: var(--primary);
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    flex: 1;
}

.main-nav a {
    display: inline-block;
    font-weight: 700;
    color: var(--secondary);
    transition: 0.25s;
    white-space: nowrap;
    padding: 8px 0;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary);
}

.btn-header,
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 12px 20px;
    border-radius: var(--radius);
    font-weight: bold;
    transition: 0.25s;
    white-space: nowrap;
}

.btn-header,
.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-header:hover,
.btn-primary:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    background: var(--primary);
    color: #fff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 24px;
    cursor: pointer;
}

.mobile-devis {
    display: none;
}

.desktop-devis {
    display: inline-block;
}

/* =========================
   HERO
========================= */

.page-hero,
.home-hero {
    background:
        linear-gradient(rgba(31,41,51,0.78), rgba(31,41,51,0.78)),
        url('../images/building-hero.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
}

.page-hero {
    padding: 95px 0;
    text-align: center;
}

.home-hero {
    padding: 130px 0;
}

.home-hero-content {
    max-width: 760px;
}

.page-hero h1 {
    font-size: clamp(36px, 5vw, 64px);
    margin-bottom: 16px;
}

.home-hero h1 {
    font-size: clamp(42px, 6vw, 76px);
    line-height: 1.1;
    margin: 16px 0;
}

.page-hero p,
.home-hero p {
    font-size: 20px;
    color: #f3f4f6;
}

.page-hero p {
    max-width: 720px;
    margin: 0 auto;
}

.home-hero p {
    margin-bottom: 28px;
}

.home-hero span,
.small-label {
    color: var(--primary);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* =========================
   SECTIONS
========================= */

.services-section,
.detail-section,
.cta-section,
.about-home,
.projects-section,
.testimonials-section,
.ad-section,
.contact-section,
.quote-section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 50px;
}

.section-title span {
    color: var(--primary);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title h2 {
    font-size: clamp(30px, 4vw, 46px);
    margin: 10px 0;
    color: var(--secondary);
}

.section-title p {
    color: var(--muted);
}

/* =========================
   SERVICES
========================= */

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.service-card,
.testimonial-card,
.detail-content,
.sidebar-box,
.cta-box,
.contact-info,
.contact-form,
.quote-info {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.service-card {
    background: var(--white);
    overflow: hidden;
    transition: 0.3s;
}

.service-card:hover {
    transform: translateY(-8px);
}

.service-card img {
    width: 100%;
    height: 230px;
    object-fit: cover;
}

.service-content {
    padding: 24px;
}

.service-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: rgba(200,155,60,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 16px;
}

.service-content h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--secondary);
}

.service-content p {
    color: var(--muted);
    margin-bottom: 18px;
}

.service-link {
    color: var(--primary);
    font-weight: bold;
}

/* =========================
   ABOUT
========================= */

.about-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 34px;
    align-items: center;
}

.about-grid h2 {
    font-size: clamp(30px, 4vw, 46px);
    color: var(--secondary);
    margin: 12px 0;
}

.about-grid p {
    color: var(--muted);
    margin-bottom: 16px;
}

.about-card {
    background: var(--secondary);
    color: var(--white);
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.about-card h3 {
    color: var(--primary);
    margin-bottom: 18px;
}

.about-card ul {
    padding-left: 20px;
}

.about-card li {
    margin-bottom: 12px;
}

/* =========================
   DETAIL / PROJET
========================= */

.detail-grid {
    display: grid;
    grid-template-columns: 2fr 0.8fr;
    gap: 34px;
    align-items: start;
}

.detail-content,
.sidebar-box,
.cta-box {
    background: var(--white);
    padding: 30px;
}

.detail-image {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 24px;
}

.detail-icon {
    font-size: 42px;
    margin-bottom: 14px;
}

.detail-content h2 {
    font-size: 34px;
    margin-bottom: 18px;
    color: var(--secondary);
}

.rich-content {
    color: #374151;
    font-size: 17px;
}

.detail-actions {
    display: flex;
    gap: 14px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.detail-sidebar {
    display: grid;
    gap: 22px;
}

.sidebar-box h3 {
    margin-bottom: 16px;
    color: var(--secondary);
}

.sidebar-link {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
    color: var(--secondary);
    font-weight: 600;
}

.sidebar-link:hover {
    color: var(--primary);
}

.project-category {
    display: inline-block;
    background: rgba(200,155,60,0.15);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 12px;
}

.project-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 24px 0;
}

.project-info-grid div {
    background: #f9fafb;
    padding: 16px;
    border-radius: var(--radius);
}

.project-info-grid strong {
    display: block;
    color: var(--secondary);
    margin-bottom: 6px;
}

.project-info-grid span {
    color: var(--muted);
}

.before-after-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin-top: 30px;
}

.before-after-grid h3 {
    color: var(--secondary);
    margin-bottom: 12px;
}

.before-after-grid img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 100%;
    height: 280px;
    object-fit: cover;
}

/* =========================
   CONTACT / DEVIS
========================= */

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 34px;
    align-items: start;
}

.contact-info,
.contact-form {
    background: var(--white);
    padding: 32px;
}

.contact-info h2,
.quote-info h2 {
    font-size: 38px;
    color: var(--secondary);
    margin: 12px 0;
}

.contact-info p {
    color: var(--muted);
    margin-bottom: 18px;
}

.info-box {
    padding: 18px 0;
    border-bottom: 1px solid #e5e7eb;
}

.info-box h3 {
    color: var(--secondary);
    margin-bottom: 6px;
}

.contact-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 14px;
    border: 1px solid #d1d5db;
    border-radius: var(--radius);
    margin-bottom: 18px;
}

.contact-form textarea {
    min-height: 160px;
    resize: vertical;
}

.success-message {
    background: #dcfce7;
    color: #166534;
    padding: 14px;
    border-radius: var(--radius);
    margin-bottom: 18px;
}

.error-message {
    background: #fee2e2;
    color: #991b1b;
    padding: 14px;
    border-radius: var(--radius);
    margin-bottom: 18px;
}

.quote-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 34px;
    align-items: start;
}

.quote-info {
    background: var(--secondary);
    color: var(--white);
    padding: 34px;
}

.quote-info h2 {
    color: var(--white);
}

.quote-info p {
    color: #e5e7eb;
    margin-bottom: 24px;
}

.quote-steps {
    display: grid;
    gap: 16px;
}

.quote-steps div {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255,255,255,0.08);
    padding: 14px;
    border-radius: var(--radius);
}

.quote-steps strong {
    width: 36px;
    height: 36px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-grid-front {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

/* =========================
   TESTIMONIAL / CTA / AD
========================= */

.testimonial-card {
    background: var(--white);
    padding: 28px;
}

.stars {
    color: var(--primary);
    font-size: 22px;
    margin-bottom: 14px;
}

.testimonial-card p {
    color: var(--muted);
    margin-bottom: 18px;
}

.testimonial-card h3 {
    color: var(--secondary);
}

.testimonial-card span {
    color: var(--muted);
    font-size: 14px;
}

.cta-section {
    background: var(--light);
}

.cta-box {
    text-align: center;
}

.cta-box h2 {
    font-size: 34px;
    color: var(--secondary);
    margin-bottom: 10px;
}

.cta-box p {
    color: var(--muted);
    margin-bottom: 24px;
}

.ad-box {
    background: var(--primary);
    color: var(--white);
    padding: 30px;
    text-align: center;
    border-radius: var(--radius);
    font-size: 24px;
    font-weight: bold;
}

.ad-section img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* =========================
   POPUP / CHATBOT
========================= */

.ad-popup {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-popup-content {
    background: var(--white);
    padding: 28px;
    border-radius: var(--radius);
    width: min(92%, 480px);
    box-shadow: var(--shadow);
    position: relative;
    text-align: center;
}

.ad-popup-content button {
    position: absolute;
    top: 10px;
    right: 12px;
    border: none;
    background: var(--secondary);
    color: #fff;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
}

.ad-popup-content img {
    width: 100%;
    border-radius: var(--radius);
    margin: 18px 0;
}

.chatbot-widget {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 9999;
}

.chatbot-toggle {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    border: none;
    background: var(--primary);
    color: white;
    font-size: 26px;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.chatbot-box {
    display: none;
    width: 340px;
    max-width: 92vw;
    background: white;
    border-radius: var(--radius);
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
    overflow: hidden;
    margin-bottom: 14px;
}

.chatbot-box.active {
    display: block;
}

.chatbot-header {
    background: var(--secondary);
    color: white;
    padding: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header button {
    background: transparent;
    color: white;
    border: none;
    font-size: 22px;
    cursor: pointer;
}

.chatbot-messages {
    padding: 14px;
    height: 280px;
    overflow-y: auto;
    background: #f9fafb;
}

.bot-message,
.user-message {
    padding: 10px 12px;
    border-radius: 14px;
    margin-bottom: 10px;
    font-size: 14px;
}

.bot-message {
    background: white;
    color: var(--secondary);
}

.user-message {
    background: var(--primary);
    color: white;
    margin-left: auto;
    max-width: 80%;
}

.chatbot-form {
    display: flex;
    border-top: 1px solid #e5e7eb;
}

.chatbot-form input {
    flex: 1;
    border: none;
    padding: 13px;
    outline: none;
}

.chatbot-form button {
    border: none;
    background: var(--primary);
    color: white;
    padding: 0 14px;
    cursor: pointer;
}

/* =========================
   FOOTER
========================= */

.site-footer {
    background: var(--secondary);
    color: var(--white);
    padding-top: 55px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 28px;
    padding-bottom: 35px;
}

.site-footer h3,
.site-footer h4 {
    color: var(--primary);
    margin-bottom: 14px;
}

.site-footer p {
    color: #d1d5db;
    margin-bottom: 8px;
}

.footer-bottom {
    text-align: center;
    padding: 18px;
    background: rgba(0,0,0,0.18);
    color: #d1d5db;
}

/* =========================
   ANIMATION
========================= */

.service-card,
.detail-content,
.sidebar-box,
.cta-box {
    animation: fadeUp 0.5s ease both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   DASHBOARD STATS
========================= */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-card {
    background: #fff;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    text-align: center;
}

.stat-card h3 {
    font-size: 14px;
    color: #555;
}

.stat-card strong {
    font-size: 28px;
    color: #1f2933;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1024px) {
    .container {
        width: min(94%, 920px);
    }

    .header-inner {
        min-height: 76px;
        flex-wrap: wrap;
        padding: 12px 0;
        gap: 14px;
    }

    .logo {
        font-size: 22px;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .main-nav {
        display: none;
        flex-direction: column;
        width: 100%;
        flex: none;
        gap: 10px;
        background: #fff;
        padding: 14px;
        border-radius: var(--radius);
        box-shadow: var(--shadow);
    }

    .main-nav.active {
        display: flex;
    }

    .main-nav a {
        width: 100%;
        background: #f3f4f6;
        padding: 13px;
        border-radius: 12px;
        text-align: center;
        font-size: 15px;
    }

    .main-nav a:hover,
    .main-nav a.active {
        background: var(--primary);
        color: #fff;
    }

    .desktop-devis {
        display: none;
    }

    .mobile-devis {
        display: block;
        background: var(--primary) !important;
        color: #fff !important;
        font-weight: bold;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid,
    .contact-grid,
    .quote-grid,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        width: min(92%, 100%);
    }

    .home-hero {
        padding: 75px 0;
        text-align: center;
    }

    .home-hero h1 {
        font-size: 38px;
    }

    .home-hero p {
        font-size: 16px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions a,
    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }

    .services-section,
    .about-home,
    .projects-section,
    .testimonials-section,
    .contact-section,
    .quote-section,
    .detail-section,
    .cta-section {
        padding: 50px 0;
    }

    .services-grid,
    .about-grid,
    .contact-grid,
    .quote-grid,
    .detail-grid,
    .form-grid-front,
    .project-info-grid,
    .before-after-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        text-align: center;
    }

    .chatbot-widget {
        right: 12px;
        bottom: 12px;
    }

    .chatbot-box {
        width: calc(100vw - 24px);
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 19px;
    }

    .menu-toggle {
        width: 40px;
        height: 40px;
        font-size: 22px;
    }

    .home-hero h1 {
        font-size: 32px;
    }

    .page-hero h1 {
        font-size: 34px;
    }

    .section-title h2 {
        font-size: 28px;
    }

    .service-card img,
    .detail-image {
        height: 190px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}



/* =========================
   HEADER FINAL PROPRE
========================= */

/* Search */
.header-search {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.9);
    border-radius: 30px;
    padding: 5px 8px;
    width: 230px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.header-search input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 13px;
    text-align: center;
}

.header-search button {
    border: none;
    background: var(--primary);
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
}

/* Bouton retour */
.page-back {
    position: fixed;
    top: 90px;
    left: 20px;
    z-index: 999;
}

.page-back button {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 10px 14px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    cursor: pointer;
}

/* PC */
@media (min-width: 1025px) {
    .header-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 28px;
    }

    .logo img {
        max-height: 55px;
        width: auto;
    }

    .menu-toggle {
        display: none !important;
    }

    .main-nav {
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 28px;
        flex: 1;
        position: static;
    }

    .main-nav a {
        color: var(--secondary);
        font-weight: 700;
        font-size: 15px;
        white-space: nowrap;
    }

    .desktop-devis {
        display: inline-block !important;
    }

    .mobile-devis {
        display: none !important;
    }
}

/* Tablette + mobile */
@media (max-width: 1024px) {
    .header-inner {
        position: relative !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important;
        min-height: 64px !important;
        padding: 8px 0 !important;
    }

    .logo {
        order: 1;
        flex: 0 0 auto;
    }

    .logo img {
        max-height: 42px !important;
        width: auto;
    }

    .header-search {
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 45% !important;
        max-width: 220px !important;
        min-width: 150px !important;
        margin: 0 !important;
        z-index: 1 !important;
    }

    .menu-toggle {
        order: 3;
        display: flex !important;
        align-items: center;
        justify-content: center;
        margin-left: auto !important;
        width: 38px !important;
        height: 38px !important;
        border-radius: 50% !important;
        border: none !important;
        background: var(--primary) !important;
        color: #fff !important;
        font-size: 20px !important;
        cursor: pointer !important;
        z-index: 4 !important;
    }

    .desktop-devis {
        display: none !important;
    }

    .main-nav {
        position: absolute !important;
        top: 62px !important;
        right: 0 !important;
        width: 180px !important;
        display: none !important;
        flex-direction: column !important;
        align-items: flex-end !important;
        background: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
        z-index: 3000 !important;
    }

    .main-nav.active {
        display: flex !important;
        animation: slideDown 0.25s ease;
    }

    .main-nav a {
        width: auto !important;
        display: block !important;
        text-align: right !important;
        margin: 6px 0 !important;
        padding: 4px 0 !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        color: #22c55e !important;
        font-weight: 800 !important;
        font-size: 15px !important;
    }

    .main-nav a:hover {
        color: #16a34a !important;
    }

    .mobile-devis {
        display: block !important;
        color: #22c55e !important;
    }
}

/* Petit mobile */
@media (max-width: 480px) {
    .header-search {
        width: 48% !important;
        max-width: 190px !important;
    }

    .header-search input {
        font-size: 11px !important;
    }

    .logo img {
        max-height: 36px !important;
    }

    .menu-toggle {
        width: 34px !important;
        height: 34px !important;
        font-size: 18px !important;
    }
}

/* Animation menu */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Overlay */
.menu-overlay {
    display: none;
}

.menu-overlay.active {
    display: block;
}

.no-scroll {
    overflow: hidden;
}




@media (max-width: 768px) {
    .header-search {
        width: 48% !important;
        max-width: 230px !important;
        min-width: 150px !important;
    }

    .header-search input {
        font-size: 12px !important;
    }

    .menu-toggle {
        margin-right: 8px !important;
    }
}




.main-nav a.active {
    color: var(--primary) !important;
    font-weight: 900 !important;
}

@media (max-width: 1024px) {
    .main-nav a.active {
        color: #22c55e !important;
    }
}




/* HEADER MOBILE PLUS GRAND */
@media (max-width: 768px) {
    .site-header {
        min-height: 58px !important;
    }

    .header-inner {
        min-height: 58px !important;
        padding: 8px 12px !important;
    }

    .logo img {
        max-height: 46px !important;
        min-width: 58px !important;
        object-fit: contain !important;
    }

    .header-search {
        width: 52% !important;
        max-width: 260px !important;
        min-width: 170px !important;
        height: 34px !important;
        padding: 6px 10px !important;
    }

    .header-search input {
        font-size: 13px !important;
    }

    .header-search button {
        width: 28px !important;
        height: 28px !important;
        font-size: 13px !important;
    }

    .menu-toggle {
        width: 40px !important;
        height: 40px !important;
        font-size: 22px !important;
    }
}





.header-search {
    position: relative;
}

.search-suggestions {
    display: none;
    position: absolute;
    top: 44px;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    overflow: hidden;
    z-index: 9999;
}

.search-suggestions.active {
    display: block;
}

.suggestion-item {
    display: block;
    padding: 12px 14px;
    border-bottom: 1px solid #eee;
    color: var(--secondary);
}

.suggestion-item strong {
    display: block;
    font-size: 14px;
}

.suggestion-item span {
    font-size: 12px;
    color: var(--primary);
}

.suggestion-item:hover {
    background: #f3f4f6;
}

.suggestion-empty {
    padding: 12px;
    text-align: center;
    color: #777;
}




/* =========================
   MOBILE PIXEL STABLE FINAL
========================= */

@media (max-width: 768px) {

    body {
        padding-bottom: 72px;
    }

    .site-header {
        position: sticky !important;
        top: 0 !important;
        z-index: 5000 !important;
        background: #fff !important;
    }

    .header-inner {
        position: relative !important;
        height: 64px !important;
        min-height: 64px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important;
        padding: 0 10px !important;
    }

    .logo {
        width: 70px !important;
        flex: 0 0 70px !important;
        z-index: 3 !important;
    }

    .logo img {
        max-height: 42px !important;
        width: auto !important;
        object-fit: contain !important;
    }

    .header-search {
        position: absolute !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 52% !important;
        max-width: 230px !important;
        min-width: 160px !important;
        height: 34px !important;
        display: flex !important;
        align-items: center !important;
        background: #f3f4f6 !important;
        border-radius: 999px !important;
        padding: 4px 6px 4px 12px !important;
        box-shadow: 0 4px 14px rgba(0,0,0,0.08) !important;
        z-index: 2 !important;
    }

    .header-search input {
        font-size: 12px !important;
        text-align: center !important;
        border: none !important;
        outline: none !important;
        background: transparent !important;
        width: 100% !important;
    }

    .header-search button {
        width: 26px !important;
        height: 26px !important;
        min-width: 26px !important;
        border-radius: 50% !important;
        border: none !important;
        background: var(--primary) !important;
        color: #fff !important;
        font-size: 12px !important;
        cursor: pointer !important;
    }

    .menu-toggle {
        width: 38px !important;
        height: 38px !important;
        border-radius: 50% !important;
        border: none !important;
        background: var(--primary) !important;
        color: #fff !important;
        font-size: 21px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        z-index: 4 !important;
        margin-left: auto !important;
        cursor: pointer !important;
        box-shadow: 0 8px 18px rgba(0,0,0,0.18) !important;
    }

    .desktop-devis {
        display: none !important;
    }

    .main-nav {
        position: fixed !important;
        top: 64px !important;
        right: 12px !important;
        width: 190px !important;
        display: none !important;
        flex-direction: column !important;
        align-items: flex-end !important;
        background: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
        z-index: 6000 !important;
    }

    .main-nav.active {
        display: flex !important;
        animation: mobileMenuShow 0.25s ease both !important;
    }

    .main-nav a {
        display: block !important;
        width: auto !important;
        margin: 6px 0 !important;
        padding: 4px 0 !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        text-align: right !important;
        color: #22c55e !important;
        font-size: 15px !important;
        font-weight: 900 !important;
        text-shadow: 0 1px 2px rgba(0,0,0,0.25) !important;
    }

    .main-nav a:hover,
    .main-nav a.active {
        color: #16a34a !important;
    }

    .search-suggestions {
        position: absolute !important;
        top: 42px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 260px !important;
        background: #fff !important;
        border-radius: 14px !important;
        box-shadow: 0 14px 35px rgba(0,0,0,0.18) !important;
        z-index: 7000 !important;
    }
}

@keyframes mobileMenuShow {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   BARRE FLOTTANTE BAS MOBILE
========================= */

.mobile-bottom-bar {
    display: none;
}

@media (max-width: 768px) {
    .mobile-bottom-bar {
        position: fixed;
        left: 8px;
        right: 8px;
        bottom: 8px;
        height: 56px;
        background: #ffffff;
        border-radius: 18px;
        box-shadow: 0 12px 35px rgba(0,0,0,0.20);
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        align-items: center;
        z-index: 8000;
        overflow: hidden;
    }

    .mobile-bottom-bar a {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
        font-size: 11px;
        font-weight: 800;
        color: var(--secondary);
        text-align: center;
        border-right: 1px solid #f0f0f0;
    }

    .mobile-bottom-bar a:last-child {
        border-right: none;
        color: #22c55e;
    }

    .mobile-bottom-bar a:hover {
        background: #f9fafb;
        color: var(--primary);
    }
}