/* ==========================================================
   Ravalement Bordeaux : feuille de style
   Palette : pierre blonde de Bordeaux, ardoise, terre cuite
   ========================================================== */

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

:root {
    /* Pierre */
    --pierre-50: #faf6ee;
    --pierre-100: #f3ead9;
    --pierre-200: #e9dcc3;
    --pierre-300: #d9c49e;
    --pierre-500: #b79a6b;
    /* Ardoise / anthracite */
    --ardoise-900: #161e25;
    --ardoise-800: #1f2a33;
    --ardoise-700: #2c3a45;
    --ardoise-500: #51626f;
    --ardoise-300: #9aa7b1;
    /* Terre cuite (accent) */
    --terre: #b5532f;          /* fond de bouton, texte blanc : 4,9:1 */
    --terre-hover: #9a4425;
    --terre-texte: #9a4425;    /* liens sur fond clair : 5,7:1 sur pierre-50 */
    --terre-clair: #e7a17f;    /* accent sur fond ardoise : 7,4:1 sur ardoise-800 */
    /* Neutres */
    --blanc: #ffffff;
    --texte: #23292e;
    --texte-doux: #4d565d;     /* 7,6:1 sur blanc */
    --bordure: #e3dccd;
    --succes: #2f6b45;
    --erreur: #b42318;

    --radius: 6px;
    --radius-lg: 14px;
    --shadow: 0 2px 10px rgba(22, 30, 37, .07);
    --shadow-lg: 0 14px 40px rgba(22, 30, 37, .16);
    --transition: .22s ease;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'DM Serif Display', Georgia, 'Times New Roman', serif;
    --container: 1200px;
}

html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-body);
    color: var(--texte);
    background: var(--blanc);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--terre-texte); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color var(--transition); }
a:hover { color: var(--ardoise-800); }
:focus-visible { outline: 3px solid var(--terre); outline-offset: 2px; }

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

h1, h2, h3 { font-family: var(--font-heading); font-weight: 400; color: var(--ardoise-800); line-height: 1.18; letter-spacing: -.005em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.45rem); }
h4 { font-family: var(--font-body); font-weight: 600; font-size: 1.05rem; color: var(--ardoise-800); }
strong { font-weight: 600; }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--ardoise-800); color: var(--blanc); padding: 10px 16px; border-radius: var(--radius); }
.skip-link:focus { left: 8px; }

/* --- Boutons --- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 28px; border-radius: var(--radius); border: 2px solid transparent;
    font: 600 .97rem/1.2 var(--font-body); letter-spacing: .01em;
    text-decoration: none; cursor: pointer; transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.btn-primary { background: var(--terre); color: var(--blanc); }
.btn-primary:hover { background: var(--terre-hover); color: var(--blanc); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(181, 83, 47, .3); }
.btn-outline { background: transparent; color: var(--ardoise-800); border-color: var(--ardoise-800); }
.btn-outline:hover { background: var(--ardoise-800); color: var(--blanc); }
.btn-ghost { background: transparent; color: var(--blanc); border-color: rgba(255, 255, 255, .55); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); color: var(--blanc); border-color: var(--blanc); }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 18px; font-size: .9rem; }
.btn:active { transform: translateY(0); }

/* --- Barre haute --- */
.topbar { background: var(--ardoise-900); color: var(--pierre-200); font-size: .84rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.topbar a { color: var(--pierre-100); text-decoration: none; font-weight: 600; }
.topbar a:hover { color: var(--blanc); }

/* --- En-tête --- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .97); backdrop-filter: saturate(1.2) blur(6px); border-bottom: 1px solid var(--bordure); transition: box-shadow var(--transition); }
.site-header.scrolled { box-shadow: 0 4px 22px rgba(22, 30, 37, .09); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ardoise-800); flex-shrink: 0; }
.brand-text { font-family: var(--font-heading); font-size: 1.35rem; line-height: 1; }
.brand-text strong { font-weight: 400; color: var(--terre-texte); }
.brand:hover { color: var(--ardoise-800); }

.main-nav { margin-left: auto; }
.main-nav > ul { display: flex; align-items: center; gap: 2px; list-style: none; }
.main-nav a { display: block; padding: 10px 12px; color: var(--ardoise-800); text-decoration: none; font-weight: 500; font-size: .94rem; border-radius: var(--radius); }
.main-nav a:hover, .main-nav a.active { color: var(--terre-texte); background: var(--pierre-50); }
.has-dropdown { position: relative; display: flex; align-items: center; }
.dropdown-toggle { display: none; }
.dropdown {
    position: absolute; top: 100%; left: 0; min-width: 290px; list-style: none;
    background: var(--blanc); border: 1px solid var(--bordure); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
    padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: all var(--transition);
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { padding: 9px 12px; font-size: .92rem; }
.nav-cta-mobile { display: none; }
.btn-header { padding: 11px 20px; flex-shrink: 0; }

.burger { display: none; width: 44px; height: 44px; margin-left: auto; background: none; border: 0; cursor: pointer; border-radius: var(--radius); flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.burger span { display: block; width: 24px; height: 2px; background: var(--ardoise-800); transition: transform var(--transition), opacity var(--transition); }
.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Hero accueil --- */
.hero { position: relative; isolation: isolate; color: var(--blanc); overflow: hidden; background: var(--ardoise-800); }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 60%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(22, 30, 37, .92) 0%, rgba(22, 30, 37, .78) 45%, rgba(22, 30, 37, .45) 100%); }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 64px 24px 72px; }
.hero-badge { display: inline-block; font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--pierre-200); border: 1px solid rgba(233, 220, 195, .45); padding: 6px 14px; border-radius: 99px; margin-bottom: 20px; }
.hero h1 { color: var(--blanc); margin-bottom: 18px; }
.hero h1 em { font-style: italic; color: var(--pierre-200); }
.hero-lead { font-size: 1.1rem; color: rgba(255, 255, 255, .9); max-width: 560px; margin-bottom: 24px; }
.hero-lead a { color: var(--pierre-100); }
.hero-points { list-style: none; display: grid; gap: 10px; margin-bottom: 28px; }
.hero-points li { display: flex; gap: 10px; align-items: flex-start; color: rgba(255, 255, 255, .92); }
.hero-points li::before { content: ""; flex: 0 0 18px; height: 18px; margin-top: 4px; border-radius: 50%; background: var(--terre) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center/12px no-repeat; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-form { background: var(--blanc); color: var(--texte); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 26px 26px 22px; border-top: 5px solid var(--terre); }

/* --- Bandeau de réassurance --- */
.trust-band { background: var(--pierre-200); border-bottom: 1px solid var(--pierre-300); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-top: 22px; padding-bottom: 22px; }
.trust-item { display: flex; align-items: center; gap: 12px; color: var(--ardoise-800); }
.trust-item svg { flex-shrink: 0; color: var(--terre-texte); }
.trust-item strong { display: block; font-size: .98rem; line-height: 1.3; }
.trust-item span { display: block; font-size: .85rem; color: var(--texte-doux); line-height: 1.3; }

/* --- Sections --- */
.section { padding: 84px 0; }
.section-alt { background: var(--pierre-50); }
.section-stone { background: var(--pierre-100); }
.section-dark { background: var(--ardoise-800); color: var(--pierre-100); }
.section-dark h2, .section-dark h3 { color: var(--blanc); }
.section-dark a { color: var(--terre-clair); }
.section-header { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.section-header h2 { margin-bottom: 14px; }
.section-header p { color: var(--texte-doux); font-size: 1.05rem; }
.section-dark .section-header p { color: var(--pierre-200); }
.section-label { display: inline-block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--terre-texte); margin-bottom: 10px; }
.section-dark .section-label { color: var(--terre-clair); }

/* --- Cartes services --- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; }
.service-card { position: relative; display: flex; flex-direction: column; background: var(--blanc); border: 1px solid var(--bordure); border-radius: var(--radius-lg); overflow: hidden; transition: transform var(--transition), box-shadow var(--transition); }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-card-img { aspect-ratio: 3 / 2; overflow: hidden; background: var(--pierre-100); }
.service-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.service-card:hover .service-card-img img { transform: scale(1.04); }
.service-card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.service-card h3 { margin-bottom: 8px; }
.service-card h3 a { color: inherit; text-decoration: none; }
.service-card h3 a::after { content: ""; position: absolute; inset: 0; }
.service-card p { color: var(--texte-doux); font-size: .95rem; flex: 1; }
.service-link { margin-top: 14px; font-weight: 600; font-size: .92rem; color: var(--terre-texte); }
.service-link::after { content: " \2192"; }

/* --- Deux colonnes texte + image --- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.split h2 { margin-bottom: 16px; }
.split p { color: var(--texte-doux); margin-bottom: 14px; }
.check-list { list-style: none; display: grid; gap: 10px; margin: 18px 0 24px; }
.check-list li { position: relative; padding-left: 28px; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 16px; border-radius: 4px; background: var(--pierre-200) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239a4425' stroke-width='3.2'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center/11px no-repeat; }

/* --- Étapes --- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: none; }
.step { background: var(--blanc); border-radius: var(--radius-lg); padding: 26px 24px; border: 1px solid var(--bordure); position: relative; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: var(--ardoise-800); color: var(--pierre-100); font-family: var(--font-heading); font-size: 1.3rem; margin-bottom: 14px; }
.step h3 { font-size: 1.22rem; margin-bottom: 8px; }
.step p { color: var(--texte-doux); font-size: .95rem; }

/* --- Prix --- */
.price-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-lg); border: 1px solid var(--bordure); background: var(--blanc); }
.price-table, .info-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.price-table th, .price-table td, .info-table th, .info-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--bordure); vertical-align: top; }
.price-table thead th, .info-table thead th { background: var(--ardoise-800); color: var(--pierre-100); font-weight: 600; font-size: .88rem; text-transform: uppercase; letter-spacing: .05em; }
.price-table tbody tr:nth-child(even) td, .info-table tbody tr:nth-child(even) td { background: var(--pierre-50); }
.price-table td:nth-child(2) { white-space: nowrap; font-weight: 600; color: var(--ardoise-800); }
.price-table tr:last-child td, .info-table tr:last-child td { border-bottom: 0; }
.table-caption { font-size: .85rem; color: var(--texte-doux); margin-top: 10px; }

/* --- FAQ --- */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { background: var(--blanc); border: 1px solid var(--bordure); border-radius: var(--radius); }
.faq-item summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 22px; font-weight: 600; color: var(--ardoise-800); position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--terre-texte); border-bottom: 2px solid var(--terre-texte); transform: translateY(-70%) rotate(45deg); transition: transform var(--transition); }
.faq-item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-answer { padding: 0 22px 20px; color: var(--texte-doux); }
.content-main .faq { margin: 18px 0 8px; }

/* --- Zones --- */
.zone-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 980px; margin: 0 auto; }
.zone-tag { display: inline-block; padding: 8px 16px; border-radius: 99px; background: var(--blanc); border: 1px solid var(--bordure); color: var(--ardoise-800); font-size: .92rem; text-decoration: none; }
a.zone-tag { border-color: var(--pierre-300); font-weight: 600; }
a.zone-tag:hover { background: var(--ardoise-800); color: var(--blanc); border-color: var(--ardoise-800); }
.zones-section .zone-tag { background: rgba(255, 255, 255, .06); border-color: rgba(233, 220, 195, .3); color: var(--pierre-100); }
.zones-section a.zone-tag { border-color: var(--terre-clair); color: var(--blanc); }
.zones-section a.zone-tag:hover { background: var(--terre); border-color: var(--terre); }

/* --- Bandeau d'appel --- */
.section-cta { padding: 0 0 84px; }
.section-alt + .section-cta, .section-stone + .section-cta { padding-top: 84px; }
.cta-banner { display: flex; align-items: center; justify-content: space-between; gap: 32px; background: var(--ardoise-800) linear-gradient(120deg, var(--ardoise-800) 55%, var(--ardoise-700)); color: var(--pierre-100); border-radius: var(--radius-lg); padding: 44px 48px; border-left: 6px solid var(--terre); }
.cta-banner h2 { color: var(--blanc); margin-bottom: 8px; }
.cta-banner p { color: var(--pierre-200); max-width: 620px; }
.cta-actions { display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; }

/* --- Bandeau de page --- */
.page-hero { position: relative; isolation: isolate; background-color: var(--ardoise-800); background-size: cover; background-position: center 45%; color: var(--blanc); padding: 70px 0 64px; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(95deg, rgba(22, 30, 37, .93) 0%, rgba(22, 30, 37, .8) 55%, rgba(22, 30, 37, .6) 100%); }
.page-hero h1 { color: var(--blanc); max-width: 860px; margin-bottom: 12px; }
.page-hero p { color: rgba(255, 255, 255, .9); max-width: 720px; font-size: 1.07rem; }
.breadcrumb { font-size: .86rem; color: var(--pierre-200); margin-bottom: 16px; }
.breadcrumb a { color: var(--pierre-100); }
.breadcrumb a:hover { color: var(--blanc); }
.breadcrumb span[aria-hidden] { margin: 0 6px; opacity: .6; }

/* --- Contenu + barre latérale --- */
.content-section { padding: 64px 0 80px; }
.content-wrapper { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 52px; align-items: start; }
.content-main { min-width: 0; }
.content-main > h2 { margin: 44px 0 14px; }
.content-main > h2:first-child { margin-top: 0; }
.content-main h3 { margin: 28px 0 10px; }
.content-main p { margin-bottom: 16px; }
.content-main ul, .content-main ol { margin: 0 0 18px 22px; }
.content-main li { margin-bottom: 8px; }
.content-main .check-list { margin-left: 0; }
.content-main figure { margin: 26px 0; }
.content-main figure img { border-radius: var(--radius-lg); }
.content-main figcaption { font-size: .85rem; color: var(--texte-doux); margin-top: 8px; }
.content-main .price-table-wrap, .content-main .info-wrap { margin: 18px 0 8px; }
.lead-paragraph { font-size: 1.12rem; color: var(--ardoise-700); }

aside.sidebar { position: sticky; top: 100px; display: grid; gap: 22px; }
.sidebar-card { background: var(--pierre-50); border: 1px solid var(--bordure); border-radius: var(--radius-lg); padding: 24px; }
.sidebar-card ul { list-style: none; }
.sidebar-card li { border-bottom: 1px solid var(--bordure); }
.sidebar-card li:last-child { border-bottom: 0; }
.sidebar-card li a, .sidebar-card li .is-current { display: block; padding: 9px 0; font-size: .93rem; text-decoration: none; color: var(--ardoise-800); }
.sidebar-card li a:hover { color: var(--terre-texte); }
.sidebar-card li .is-current { color: var(--terre-texte); font-weight: 600; }
.sidebar-title { font-family: var(--font-heading); font-size: 1.3rem; color: var(--ardoise-800); margin-bottom: 10px; line-height: 1.2; }
.sidebar-card--dark { background: var(--ardoise-800); border-color: var(--ardoise-800); color: var(--pierre-100); }
.sidebar-card--dark .sidebar-title { color: var(--blanc); }
.sidebar-card--dark p { font-size: .93rem; margin-bottom: 16px; color: var(--pierre-200); }
.sidebar-card--dark .btn + .btn { margin-top: 10px; }

/* --- Encadrés --- */
.note, .alert-box, .key-box { border-radius: var(--radius); padding: 18px 22px; margin: 22px 0; }
.note { background: var(--pierre-100); border-left: 4px solid var(--pierre-500); }
.alert-box { background: #fbefe9; border-left: 4px solid var(--terre); }
.key-box { background: var(--ardoise-800); color: var(--pierre-100); }
.key-box strong { color: var(--blanc); }
.key-box a { color: var(--terre-clair); }
.note p:last-child, .alert-box p:last-child, .key-box p:last-child { margin-bottom: 0; }
.source-note { font-size: .84rem; color: var(--texte-doux); border-top: 1px dashed var(--bordure); padding-top: 8px; margin-top: -4px; }
.source-note a { color: var(--texte-doux); }

.facts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 22px 0; }
.fact { background: var(--blanc); border: 1px solid var(--bordure); border-top: 4px solid var(--terre); border-radius: var(--radius); padding: 18px; }
.fact strong { display: block; font-family: var(--font-heading); font-weight: 400; font-size: 1.5rem; color: var(--ardoise-800); line-height: 1.1; margin-bottom: 6px; }
.fact span { font-size: .9rem; color: var(--texte-doux); }

/* --- Formulaires --- */
.lead-form { display: grid; gap: 14px; }
.lead-form-title { font-family: var(--font-heading); font-size: 1.55rem; color: var(--ardoise-800); line-height: 1.15; }
.lead-form-sub { font-size: .9rem; color: var(--texte-doux); margin-top: -10px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: grid; gap: 5px; }
.form-group--narrow { max-width: 320px; }
.form-group label { font-size: .86rem; font-weight: 600; color: var(--ardoise-800); }
.lead-form input[type=text], .lead-form input[type=email], .lead-form input[type=tel], .lead-form select, .lead-form textarea {
    width: 100%; font: 400 1rem/1.4 var(--font-body); color: var(--texte); background: var(--blanc);
    border: 1.5px solid #cfc6b4; border-radius: var(--radius); padding: 11px 13px; transition: border-color var(--transition), box-shadow var(--transition);
}
.lead-form select { appearance: none; background: var(--blanc) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f2a33' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 12px center/16px no-repeat; padding-right: 38px; }
.lead-form textarea { resize: vertical; min-height: 120px; }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { outline: none; border-color: var(--ardoise-700); box-shadow: 0 0 0 3px rgba(44, 58, 69, .15); }
.lead-form [aria-invalid="true"] { border-color: var(--erreur); }
.field-error { font-size: .82rem; color: var(--erreur); }
.form-alert { background: #fdecea; color: var(--erreur); border-radius: var(--radius); padding: 10px 14px; font-size: .9rem; font-weight: 600; }
.form-consent { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; font-size: .84rem; color: var(--texte-doux); line-height: 1.5; }
.form-consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--terre); }
.form-consent .field-error { grid-column: 2; }
.form-note { font-size: .82rem; color: var(--texte-doux); }
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-success { background: #ecf5ef; border: 1px solid #b9d8c4; border-left: 5px solid var(--succes); border-radius: var(--radius); padding: 22px 24px; color: var(--texte); }
.form-success h3 { color: var(--succes); margin-bottom: 8px; }
.form-success p { margin-bottom: 8px; }
.lead-form--compact { gap: 12px; }
.lead-form--compact .form-row { gap: 12px; }
.form-card { background: var(--blanc); border: 1px solid var(--bordure); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow); }

/* --- Blog --- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 26px; }
.blog-card { position: relative; display: flex; flex-direction: column; background: var(--blanc); border: 1px solid var(--bordure); border-radius: var(--radius-lg); overflow: hidden; transition: transform var(--transition), box-shadow var(--transition); }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.blog-card-img { aspect-ratio: 3 / 2; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.blog-card-meta { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--terre-texte); font-weight: 600; margin-bottom: 8px; }
.blog-card h2, .blog-card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.blog-card h2 a, .blog-card h3 a { color: inherit; text-decoration: none; }
.blog-card h2 a::after, .blog-card h3 a::after { content: ""; position: absolute; inset: 0; }
.blog-card p { color: var(--texte-doux); font-size: .94rem; flex: 1; }
.article-meta { font-size: .9rem; color: var(--pierre-200); }
.toc { background: var(--pierre-50); border: 1px solid var(--bordure); border-radius: var(--radius); padding: 18px 22px; margin: 0 0 28px; }
.toc p { font-weight: 600; margin-bottom: 6px; color: var(--ardoise-800); }
.toc ol { margin: 0 0 0 20px; }
.toc li { margin-bottom: 4px; }

/* --- Pied de page --- */
.site-footer { background: var(--ardoise-900); color: var(--ardoise-300); padding: 64px 0 0; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-col p { margin-bottom: 14px; color: #b9c3ca; }
.footer-title { font-family: var(--font-heading); font-size: 1.2rem; color: var(--pierre-100) !important; margin-bottom: 14px !important; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: #cfd7dc; text-decoration: none; }
.footer-col a:hover { color: var(--blanc); text-decoration: underline; }
.footer-col .btn { color: var(--blanc); }
.brand--footer { color: var(--pierre-100); margin-bottom: 16px; }
.brand--footer:hover { color: var(--blanc); }
.brand--footer .brand-text strong { color: var(--terre-clair); }
.footer-phone { font-size: 1.15rem; font-weight: 700; color: var(--blanc) !important; }
.footer-cities { border-top: 1px solid rgba(255, 255, 255, .1); padding: 22px 0; font-size: .86rem; line-height: 1.8; color: #aeb9c1; }
.footer-cities a { color: #dfe5e8; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 20px 0 26px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .82rem; color: #aeb9c1; }
.footer-bottom a { color: #dfe5e8; }

/* --- Barre d'appel mobile --- */
.mobile-cta { display: none; }

/* --- Apparition au défilement --- */
.js .fade-up { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .fade-up.visible { opacity: 1; transform: none; }
.steps .fade-up:nth-child(2), .services-grid .fade-up:nth-child(2) { transition-delay: .06s; }
.steps .fade-up:nth-child(3), .services-grid .fade-up:nth-child(3) { transition-delay: .12s; }

/* --- 404 --- */
.error-page { text-align: center; padding: 100px 0; }
.error-page .error-code { font-family: var(--font-heading); font-size: clamp(4rem, 12vw, 7rem); color: var(--pierre-300); line-height: 1; }
.error-page h1 { margin: 10px 0 14px; }
.error-page p { color: var(--texte-doux); max-width: 560px; margin: 0 auto 26px; }
.error-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1140px) {
    .btn-header { display: none; }
    .main-nav a { padding: 10px 9px; }
}

@media (max-width: 980px) {
    .burger { display: flex; }
    .main-nav {
        position: fixed; inset: 112px 0 0 0; background: var(--blanc); margin: 0;
        overflow-y: auto; transform: translateX(100%); transition: transform .3s ease; z-index: 99; padding: 12px 20px 120px;
    }
    .main-nav.open { transform: none; visibility: visible; transition: transform .3s ease; }
    .main-nav { visibility: hidden; transition: transform .3s ease, visibility 0s linear .3s; }
    /* backdrop-filter cree un bloc conteneur pour les enfants position:fixed : le menu se retrouvait
       ecrase dans l'en-tete (132 px) et debordait a droite (page large de 780 px sur mobile) */
    .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--blanc); }
    .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
    .main-nav > ul > li { border-bottom: 1px solid var(--bordure); }
    .main-nav a { padding: 15px 4px; font-size: 1.04rem; }
    .has-dropdown { flex-wrap: wrap; }
    .has-dropdown > a { flex: 1; }
    .dropdown-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; }
    .dropdown-toggle span { width: 10px; height: 10px; border-right: 2px solid var(--ardoise-800); border-bottom: 2px solid var(--ardoise-800); transform: rotate(45deg); transition: transform var(--transition); }
    .dropdown-toggle[aria-expanded="true"] span { transform: rotate(-135deg); }
    .dropdown { position: static; flex-basis: 100%; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 10px 12px; display: none; min-width: 0; }
    .has-dropdown.open .dropdown { display: block; }
    .has-dropdown:hover .dropdown { transform: none; }
    .nav-cta-mobile { display: block; border-bottom: 0 !important; padding-top: 18px; }
    .nav-cta-mobile .btn { display: flex; padding: 15px; color: var(--blanc); }

    .hero-inner { grid-template-columns: 1fr; gap: 32px; padding: 48px 24px 56px; }
    .hero::before { background: linear-gradient(180deg, rgba(22, 30, 37, .9) 0%, rgba(22, 30, 37, .82) 100%); }
    .trust-grid { grid-template-columns: repeat(2, 1fr); }
    .split { grid-template-columns: 1fr; gap: 32px; }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .content-wrapper { grid-template-columns: 1fr; gap: 40px; }
    aside.sidebar { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .cta-banner { flex-direction: column; align-items: flex-start; padding: 36px 30px; }
    .facts-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    body { padding-bottom: 68px; }
    .container { padding: 0 16px; }
    .topbar-zone { display: none; }
    .topbar-inner { justify-content: center; }
    .header-inner { min-height: 64px; }
    .main-nav { inset: 102px 0 0 0; }
    .brand-text { font-size: 1.18rem; }
    .section { padding: 60px 0; }
    .section-cta { padding-bottom: 60px; }
    .section-alt + .section-cta, .section-stone + .section-cta { padding-top: 60px; }
    .hero-inner { padding: 36px 16px 44px; }
    .hero-lead { font-size: 1.02rem; }
    .hero-form { padding: 22px 18px 18px; }
    .form-row { grid-template-columns: 1fr; }
    .trust-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
    .trust-item svg { width: 24px; height: 24px; }
    .steps { grid-template-columns: 1fr; }
    .services-grid, .blog-grid { grid-template-columns: 1fr; }
    .page-hero { padding: 48px 0 44px; }
    .content-section { padding: 44px 0 56px; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .price-table th, .price-table td, .info-table th, .info-table td { padding: 12px 12px; font-size: .9rem; }
    .price-table td:nth-child(2) { white-space: nowrap; text-align: right; }
    /* Tableau de prix empile : prestation + fourchette sur une ligne, explication dessous (plus de 3e colonne coupee) */
    .price-table, .price-table thead, .price-table tbody { display: block; }
    .price-table tr { display: grid; grid-template-columns: 1fr auto; column-gap: 0; }
    .price-table thead th:nth-child(3) { display: none; }
    .price-table thead th:nth-child(2) { text-align: right; }
    .price-table td:nth-child(1), .price-table td:nth-child(2) { border-bottom: 0; padding-bottom: 4px; }
    .price-table td:nth-child(3) { grid-column: 1 / -1; padding-top: 0; font-size: .86rem; color: var(--texte-doux); }
    .price-table tr:last-child td:nth-child(1), .price-table tr:last-child td:nth-child(2) { padding-bottom: 4px; }
    .cta-banner { padding: 30px 22px; }
    .cta-actions { width: 100%; }
    .cta-actions .btn { width: 100%; }
    .form-card { padding: 22px 18px; }

    .mobile-cta {
        display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
        background: var(--ardoise-900); padding: 8px; gap: 8px; box-shadow: 0 -6px 20px rgba(0, 0, 0, .18);
        padding-bottom: calc(8px + env(safe-area-inset-bottom));
    }
    .mobile-cta a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border-radius: var(--radius); font-weight: 600; text-decoration: none; font-size: .98rem; }
    .mobile-cta-phone { background: var(--ardoise-700); color: var(--blanc); flex: 0 0 38%; }
    .mobile-cta-devis { background: var(--terre); color: var(--blanc); }
    .mobile-cta a:hover { color: var(--blanc); }
    .mobile-cta { transition: transform .25s ease; }
    .mobile-cta.is-hidden { transform: translateY(110%); }
}

@media (max-width: 400px) {
    .trust-grid { grid-template-columns: 1fr; }
    .hero-buttons .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
    .js .fade-up { opacity: 1; transform: none; }
}

@media print {
    .topbar, .site-header, .mobile-cta, .site-footer, aside.sidebar, .section-cta { display: none !important; }
    .page-hero { background: none !important; color: #000; padding: 0; }
    .page-hero h1, .page-hero p { color: #000; }
}

/* --- Grille de 4 cartes (accueil) --- */
@media (min-width: 1101px) {
    .blog-grid--4 { grid-template-columns: repeat(4, 1fr); gap: 22px; }
    .services-grid--4 { grid-template-columns: repeat(4, 1fr); gap: 22px; }
    .services-grid--4 .service-card-body { padding: 20px 20px 22px; }
}
.service-card--dark { background: var(--ardoise-800); border-color: var(--ardoise-800); color: var(--pierre-100); justify-content: center; }
.service-card--dark h3 { color: var(--blanc); }
.service-card--dark p { color: var(--pierre-200); }
.service-card--dark .service-link { color: var(--terre-clair); }
.service-card--dark .service-card-body { justify-content: center; padding: 30px 26px; }
.section-dark .step h3 { color: var(--ardoise-800); }
.section-dark .step p { color: var(--texte-doux); }
.section-dark .faq-item summary { color: var(--ardoise-800); }
.hero-jump { display: none; }
@media (max-width: 980px) { .hero-jump { display: inline-flex; } }
[id] { scroll-margin-top: 96px; }
