/* ============================================
   LeadsMachine — Template Site Généré
   Design : clean, conversion, responsive
   Couleurs injectées via CSS variables dans header.php
   ============================================ */

:root {
    --primary: #2563eb;
    --primary-darker: #132f75;
    --primary-hover: #4b83f0;
    --primary-lighter: #7fa3f2;
    --primary-light: #dbeafe;
    --text: #1f2937;
    --text-light: #6b7280;
    --bg: #ffffff;
    --bg-card: #ffffff;
    --bg-alt: #f9fafb;
    --border: #e5e7eb;
    --success: #059669;
    --error: #dc2626;
    --radius: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 12px rgba(0,0,0,0.1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', system-ui, -apple-system, sans-serif; color: var(--text); background: var(--bg); line-height: 1.7; font-size: 16px; overflow-x: hidden; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

/* Container */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---- HEADER ---- */
.site-header { background: var(--bg-card); border-bottom: 1px solid var(--border); padding: 16px 0; }
.site-header .container { display: flex; align-items: center; gap: 24px; }
.logo { font-weight: 700; font-size: 1.15rem; color: var(--text); white-space: nowrap; display: flex; align-items: center; }
.logo:hover { text-decoration: none; }
.logo img { height: var(--logo-height, 36px); width: auto; }
.main-nav { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.main-nav a { color: var(--text-light); font-size: 0.9rem; font-weight: 500; }
.main-nav a:hover { color: var(--primary); text-decoration: none; }
.menu-toggle { display: none; background: none; border: 1px solid var(--border); padding: 6px 10px; border-radius: var(--radius); font-size: 1.2rem; cursor: pointer; }

/* ---- BREADCRUMBS ---- */
.breadcrumbs { background: var(--bg-alt); padding: 10px 0; font-size: 0.85rem; color: var(--text-light); border-bottom: 1px solid var(--border); }
.breadcrumbs a { color: var(--text-light); }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs .sep { margin: 0 6px; }

/* ---- HERO ---- */
.hero { text-align: center; padding: 60px 20px; background: linear-gradient(135deg, var(--primary-light) 0%, var(--bg-alt) 100%); border-radius: var(--radius); margin: 32px 0; }
.hero h1 { font-size: 2rem; margin-bottom: 12px; color: var(--text); }
.hero-sub { color: var(--primary-darker); font-size: 1.1rem; margin-bottom: 24px; font-weight: 500; }

/* ---- BUTTONS ---- */
.btn-cta { display: inline-block; background: var(--primary); color: #fff; padding: 12px 28px; border-radius: var(--radius); font-weight: 600; font-size: 1rem; border: none; cursor: pointer; transition: background 0.2s, transform 0.1s; }
.btn-cta:hover { background: var(--primary-hover); text-decoration: none; color: #fff; transform: translateY(-1px); }
.btn-lg { padding: 16px 36px; font-size: 1.1rem; }
.btn-cta-nav { background: var(--primary); color: #fff !important; padding: 8px 20px; font-size: 0.9rem; }
.btn-cta-nav:hover { color: #fff !important; }
.btn-outline { display: inline-block; border: 2px solid var(--primary); color: var(--primary); padding: 8px 20px; border-radius: var(--radius); font-weight: 600; font-size: 0.9rem; transition: background 0.2s, color 0.2s; }
.btn-outline:hover { background: var(--primary); color: #fff; text-decoration: none; }

/* ---- CONTENT ---- */
main { padding: 30px 0 32px; }

/* ---- LAYOUT CONTENT + SIDEBAR ---- */
.page-layout { display: flex; gap: 30px; align-items: flex-start; margin-top: 30px; }
.page-content { flex: 1; min-width: 0; }
.sidebar { width: 320px; flex-shrink: 0; position: sticky; top: 20px; }
.sidebar-cta { background: linear-gradient(160deg, var(--primary-darker) 0%, var(--primary) 100%); color: #fff; border-radius: 12px; padding: 32px 28px 28px; text-align: center; position: relative; overflow: hidden; box-shadow: 0 8px 30px rgba(0,0,0,0.15); }
.sidebar-cta::before { content: ''; position: absolute; top: -40px; right: -40px; width: 120px; height: 120px; background: rgba(255,255,255,0.06); border-radius: 50%; }
.sidebar-cta::after { content: ''; position: absolute; bottom: -60px; left: -30px; width: 150px; height: 150px; background: rgba(255,255,255,0.04); border-radius: 50%; }
.sidebar-badge { position: absolute; top: 18px; right: -32px; background: var(--success); color: #fff; font-size: 0.7rem; font-weight: 700; padding: 5px 40px; transform: rotate(45deg); letter-spacing: 0.5px; text-transform: uppercase; box-shadow: 0 2px 4px rgba(0,0,0,0.2); }
.sidebar-cta-icon { margin-bottom: 12px; opacity: 0.9; }
.sidebar-cta-icon svg { stroke: rgba(255,255,255,0.85); }
.sidebar-cta h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 8px; letter-spacing: -0.3px; }
.sidebar-sub { font-size: 0.85rem; opacity: 0.85; margin-bottom: 0; line-height: 1.5; }
.sidebar-divider { width: 40px; height: 2px; background: rgba(255,255,255,0.25); margin: 20px auto; border-radius: 1px; }
.sidebar-btn { background: #fff; color: var(--primary-darker) !important; width: 100%; text-align: center; font-weight: 700; font-size: 1rem; margin-bottom: 20px; border-radius: 8px; padding: 14px 20px; box-shadow: 0 4px 12px rgba(0,0,0,0.15); transition: all 0.2s ease; position: relative; z-index: 1; }
.sidebar-btn:hover { background: #fff; color: var(--primary-darker) !important; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.2); text-decoration: none; }
.sidebar-checks { list-style: none; text-align: left; font-size: 0.85rem; position: relative; z-index: 1; }
.sidebar-checks li { margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.sidebar-checks li svg { flex-shrink: 0; stroke: rgba(255,255,255,0.7); }
.content-block { font-size: 1.05rem; line-height: 1.8; background: var(--bg-card); padding: 32px; border-radius: var(--radius); word-wrap: break-word; overflow-wrap: break-word; }
.content-block h1 { line-height: 1.3; }
.content-block h2 { font-size: 1.5rem; margin: 32px 0 16px; color: var(--text); }
.content-block h3 { font-size: 1.2rem; margin: 24px 0 12px; }
.content-block p { margin-bottom: 16px; }
.content-block ul, .content-block ol { margin: 0 0 16px 24px; }
.content-block li { margin-bottom: 6px; }
.table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 16px 0; max-width: 100%; display: block; }
.content-block table { width: 100%; min-width: 500px; border-collapse: collapse; margin: 0; }
.content-block th, .content-block td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border); }
.content-block th { background: var(--primary-light); font-weight: 600; font-size: 0.9rem; color: var(--primary-darker); }
.content-block strong { color: var(--text); }
.content-block blockquote { border-left: 4px solid var(--primary-darker); padding: 12px 20px; margin: 16px 0; background: var(--bg-alt); border-radius: 0 var(--radius) var(--radius) 0; font-style: italic; }
.content-block blockquote p { margin-bottom: 0; }
.content-block a, .content-block a:visited { color: var(--primary); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
.content-block a:hover { color: var(--primary-hover); }
.published-date { text-align: center; color: var(--text-light); font-size: 0.85rem; margin-bottom: 24px; }

/* Outils interactifs générés par Claude dans le contenu */
.content-block select, .content-block input[type="number"], .content-block input[type="text"], .content-block input[type="range"] {
    padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius);
    font-size: 1rem; font-family: inherit; background: var(--bg-card); color: var(--text);
    transition: border-color 0.2s; margin: 4px 0;
}
.content-block select:focus, .content-block input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.content-block select { cursor: pointer; min-width: 180px; }
.content-block button:not([style*="background"]) {
    padding: 10px 24px; background: var(--primary); color: #fff; border: none; border-radius: var(--radius);
    font-size: 1rem; font-weight: 600; cursor: pointer; transition: background 0.2s, transform 0.1s; margin: 8px 0;
}
.content-block button:not([style*="background"]):hover { background: var(--primary-hover); transform: translateY(-1px); }
.content-block button[style*="background"] {
    cursor: pointer; transition: background 0.2s; border-radius: var(--radius); font-size: 0.95rem;
}
.content-block button[style*="background"]:hover { opacity: 0.85; }
.content-block label { font-weight: 500; margin-right: 8px; display: block; margin-bottom: 4px; }
.content-block #resultat-budget, .content-block [id*="resultat"] {
    background: var(--primary-light); padding: 16px 20px; border-radius: var(--radius);
    margin-top: 12px; border-left: 4px solid var(--primary);
}
.content-block #resultat-budget:empty, .content-block [id*="resultat"]:empty { display: none; }
.content-block [id*="calculateur"] > div, .content-block [id*="estimateur"] > div,
.content-block [id*="quiz"] > div, .content-block [id*="outil"] > div {
    margin-bottom: 12px;
}

/* ---- SIMULATEURS sim-* (outils interactifs articles) ---- */
.sim-wrapper {
    background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 20px; margin: 20px 0;
}
.sim-title {
    font-size: 1.15rem; font-weight: 700; color: var(--primary-darker);
    margin-top: 0 !important; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 2px solid var(--primary-light);
}
.sim-body { display: flex; flex-direction: column; gap: 12px; }
.sim-field { display: flex; flex-direction: column; gap: 4px; }
.sim-label { font-weight: 600; font-size: 0.9rem; color: var(--text); }
.sim-select {
    padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius);
    font-size: 1rem; font-family: inherit; background: var(--bg-card); color: var(--text);
    cursor: pointer; transition: border-color 0.2s;
}
.sim-select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.sim-btn {
    display: inline-block; padding: 12px 28px; background: var(--primary); color: #fff; border: none;
    border-radius: var(--radius); font-size: 1rem; font-weight: 600; cursor: pointer;
    transition: background 0.2s, transform 0.1s; margin-top: 8px; align-self: flex-start;
}
.sim-btn:hover { background: var(--primary-hover); transform: translateY(-1px); }
.sim-result {
    background: var(--primary-light); padding: 16px 20px; border-radius: var(--radius);
    margin-top: 12px; border-left: 4px solid var(--primary);
}
.sim-result-label { font-weight: 600; font-size: 0.9rem; color: var(--text-light); margin-bottom: 4px; }
.sim-result-value { font-size: 1.15rem; font-weight: 700; color: var(--primary-darker); margin-bottom: 4px; }
.sim-result-note { font-size: 0.85rem; color: var(--text-light); margin-bottom: 0; }
@media (max-width: 768px) {
    .sim-wrapper { padding: 16px; margin: 20px 0; }
    .sim-select { width: 100% !important; }
    .sim-btn { width: 100%; text-align: center; }
}

/* ---- VUD WIDGET (devis) ---- */
.page-devis [id^="vd"] { border-radius: var(--radius); overflow: hidden; }
.page-devis #vud_mb_js_box,
.page-devis .vud_reinitialise,
.page-devis #vud_devis { border-radius: var(--radius) !important; overflow: hidden; }
.page-devis #vud_mb_js_box { border: 1px solid var(--border); background: var(--bg-card); box-shadow: var(--shadow); margin-bottom: 24px; }

/* ---- BLOG ---- */
.page-h1 { font-size: 1.8rem; margin-bottom: 24px; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 32px; }
.blog-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.blog-card { display: flex; flex-direction: column; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color 0.2s, box-shadow 0.2s; text-decoration: none; color: var(--text); }
.blog-card:hover { border-color: var(--primary); box-shadow: var(--shadow-lg); text-decoration: none; }
.blog-card-image { aspect-ratio: 16/9; overflow: hidden; }
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.blog-card:hover .blog-card-image img { transform: scale(1.03); }
.blog-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.blog-card-body h2, .blog-card-body h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--text); line-height: 1.4; }
.blog-card-body p { font-size: 0.85rem; color: var(--text-light); margin-bottom: 8px; flex: 1; }
.blog-card-meta { font-size: 0.75rem; color: var(--text-light); margin-top: auto; }
.blog-pagination { display: flex; justify-content: center; gap: 8px; margin: 32px 0; }
.blog-pagination a, .blog-pagination .current { padding: 8px 14px; border-radius: var(--radius); font-size: 0.9rem; }
.blog-pagination a { background: var(--bg-card); border: 1px solid var(--border); color: var(--text); text-decoration: none; }
.blog-pagination a:hover { border-color: var(--primary); color: var(--primary); }
.blog-pagination .current { background: var(--primary); color: #fff; font-weight: 600; }
.related-articles { margin-top: 32px; }
.related-articles h2 { margin-bottom: 16px; }
.published-date { font-size: 0.85rem; color: var(--text-light); text-align: center; margin-bottom: 24px; }

/* ---- CTA INLINE ---- */
.cta-inline { background: var(--primary-light); padding: 28px; border-radius: var(--radius); text-align: center; margin: 32px 0; border: 1px solid var(--border); }
.cta-inline h3 { margin-bottom: 8px; color: var(--primary-darker); }
.cta-inline p { color: var(--text-light); margin-bottom: 16px; }

/* ---- GEO GRIDS ---- */
.geo-grid-section { margin: 40px 0; }
.geo-grid-section h2 { margin-bottom: 20px; }
.geo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.geo-grid.cols-3 { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.geo-grid.cols-4 { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.geo-card { display: block; padding: 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color 0.2s, box-shadow 0.2s; }
.geo-card:hover { border-color: var(--primary); box-shadow: var(--shadow); text-decoration: none; }
.geo-card strong { display: block; color: var(--text); font-size: 0.95rem; }
.geo-card span { color: var(--text-light); font-size: 0.8rem; }

/* ---- LINK GRIDS ---- */
.link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.link-grid.cols-3 { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.link-grid.cols-4 { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.link-grid a { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; background: var(--bg-alt); border-radius: var(--radius); font-size: 0.9rem; color: var(--text); transition: background 0.2s; }
.link-grid a:hover { background: var(--primary-light); text-decoration: none; }
.link-grid a small { color: var(--text-light); font-size: 0.75rem; }

/* ---- STATS ---- */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 16px; margin: 16px 0; }
.stat { text-align: center; padding: 16px; background: var(--bg-alt); border-radius: var(--radius); border: 1px solid var(--border); }
.stat-value { display: block; font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.stat-label { font-size: 0.8rem; color: var(--text-light); }

/* ---- SERVICES GRID ---- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.service-card { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); transition: border-color 0.2s; }
.service-card:hover { border-color: var(--primary); }
.service-card h3 { margin-bottom: 8px; font-size: 1.1rem; color: var(--primary-darker); }
.service-card p { color: var(--text-light); font-size: 0.9rem; margin-bottom: 12px; }

/* ---- SOMMAIRE (TOC) ---- */
.toc-accordion { border: 1px solid var(--border); border-radius: var(--radius); margin: 8px 0 32px; overflow: hidden; }
.toc-accordion summary { padding: 14px 18px; font-weight: 700; font-size: 1.1rem; cursor: pointer; background: var(--bg-alt); transition: background 0.2s; color: var(--text); list-style: none; display: flex; align-items: center; gap: 8px; }
.toc-accordion summary::-webkit-details-marker { display: none; }
.toc-accordion summary::before { content: '\25B6'; font-size: 0.7rem; transition: transform 0.2s; color: var(--primary); }
.toc-accordion[open] summary::before { transform: rotate(90deg); }
.toc-accordion[open] summary { border-bottom: 1px solid var(--border); }
.toc-accordion ul { list-style: none; margin: 0; padding: 12px 18px; }
.toc-accordion li { margin-bottom: 0; padding: 6px 0; border-bottom: 1px solid var(--bg-alt); }
.toc-accordion li:last-child { border-bottom: none; }
.toc-accordion a { color: var(--text); font-size: 0.95rem; font-weight: 400; display: block; padding: 2px 0; transition: color 0.2s; }
.toc-accordion a:hover { color: var(--primary); text-decoration: none; }

/* ---- FAQ ---- */
.faq { margin: 32px 0; }
.faq h2 { margin-bottom: 16px; }
.faq details { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 8px; overflow: hidden; }
.faq summary { padding: 14px 18px; font-weight: 600; cursor: pointer; background: var(--bg-alt); transition: background 0.2s; }
.faq summary:hover { background: var(--primary-light); }
.faq details[open] summary { border-bottom: 1px solid var(--border); }
.faq details p { padding: 14px 18px; }

/* ---- FORM ---- */
.devis-form { max-width: 700px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.9rem; font-weight: 500; margin-bottom: 6px; color: var(--text); }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius);
    font-size: 1rem; font-family: inherit; background: var(--bg-card); color: var(--text); transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.content-block .form-group input, .content-block .form-group textarea, .content-block .form-group select { background: var(--bg); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-notice { font-size: 0.8rem; color: var(--text-light); margin-top: 12px; }

/* Flash messages */
.flash { padding: 14px 20px; border-radius: var(--radius); margin-bottom: 24px; font-weight: 500; }
.flash-success { background: #ecfdf5; border: 1px solid var(--success); color: var(--success); }
.flash-error { background: #fef2f2; border: 1px solid var(--error); color: var(--error); }

/* ---- CTA SECTION (pré-footer) ---- */
.cta-section { background: var(--primary-darker); color: #fff; padding: 48px 0; text-align: center; margin-top: 48px; }
.cta-section h2 { font-size: 1.6rem; margin-bottom: 12px; color: #fff; }
.cta-section p { opacity: 0.9; margin-bottom: 24px; font-size: 1.05rem; }
.cta-section .btn-cta { background: #fff; color: var(--primary-darker); font-weight: 700; }
.cta-section .btn-cta:hover { background: #f0f0f0; color: var(--primary-darker); }

/* ---- FOOTER ---- */
.site-footer { background: #111827; color: #d1d5db; padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 32px; }
.site-footer h4 { color: #fff; margin-bottom: 16px; font-size: 1rem; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #9ca3af; font-size: 0.9rem; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #374151; padding-top: 20px; text-align: center; font-size: 0.85rem; color: #6b7280; }

/* ---- 404 ---- */
.page-404 { text-align: center; padding: 80px 20px; }
.page-404 h1 { font-size: 2rem; margin-bottom: 16px; }
.page-404 p { color: var(--text-light); margin-bottom: 24px; }

/* ---- ARTISANS ---- */
.artisans-section { margin-top: 32px; }
.artisans-section h2 { margin-bottom: 16px; }
.artisans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.artisan-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; transition: background 0.2s, border-color 0.2s; }
.artisan-card:hover { background: var(--primary-light); border-color: var(--primary-lighter); }
.artisan-card h3 { font-size: 1rem; margin-bottom: 6px; color: var(--text); }
.artisan-rating { margin-bottom: 8px; font-size: 0.9rem; }
.artisan-rating .stars { color: #f59e0b; letter-spacing: 1px; }
.artisan-rating .rating-value { font-weight: 600; margin-left: 4px; }
.artisan-rating .rating-count { color: var(--text-light); font-size: 0.8rem; }
.artisan-address { font-size: 0.85rem; color: var(--text-light); margin-bottom: 4px; }
.artisan-phone { font-size: 0.9rem; }
.artisan-phone a { color: var(--primary); font-weight: 500; }
.artisan-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 24px 0; }
.artisan-rating-header { text-align: center; margin-bottom: 24px; }
.artisan-rating-header .stars { font-size: 1.5rem; color: #f59e0b; }
.artisan-rating-header .rating-detail { font-size: 1.1rem; font-weight: 600; color: var(--text-light); }
.mobile-break { display: none; }

/* Sections sous le contenu */
.ville-infos, .nearby, .dept-links, .related-services { margin-top: 32px; }
.nearby h2, .dept-links h2 { margin-bottom: 16px; }

/* Navigation links */
.more-link { margin-top: 12px; }
.back-link { margin-top: 24px; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .content-block { padding: 16px; max-width: calc(100vw - 24px); box-sizing: border-box; overflow-x: hidden; line-height: 1.6; }
    .content-block h1, .page-h1 { font-size: 1.5rem; line-height: 1.3; }
    .content-block *:not(table):not(thead):not(tbody):not(tr):not(th):not(td) { max-width: 100% !important; box-sizing: border-box !important; }
    .container { padding: 0 12px; overflow-x: hidden; }
    .main-nav { display: none; }
    .main-nav.open { display: flex; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; background: var(--bg-card); border-bottom: 1px solid var(--border); padding: 16px 20px; gap: 12px; box-shadow: var(--shadow-lg); }
    .menu-toggle { display: block; margin-left: auto; }
    .hero h1 { font-size: 1.5rem; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .geo-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .page-layout { flex-direction: column; gap: 0; width: 100%; overflow: hidden; }
    .page-content { width: 100%; overflow: hidden; }
    .sidebar { display: none; }
    .blog-grid { grid-template-columns: 1fr; }
    .blog-grid.cols-2 { grid-template-columns: 1fr; }
    .artisans-grid { grid-template-columns: 1fr; }
    .artisan-info-grid { grid-template-columns: 1fr; }
    .mobile-break { display: block; }
    .artisans-grid:not(#annuaire-liste) .artisan-card:nth-child(n+6) { display: none; }
    /* Forcer les outils inline à respecter la largeur mobile */
    .content-block div[style*="max-width"] { max-width: 100% !important; padding: 1rem !important; }
    .content-block button[style*="width:100%"], .content-block button[style*="width: 100%"] { font-size: 0.85rem !important; }
    .content-block select, .content-block input[type="number"], .content-block input[type="text"] { width: 100% !important; box-sizing: border-box; }
}
