/* ===================================================================
   Kelvy Énergies — Design system
   =================================================================== */

:root {
  --primary: #0F6E4F;
  --primary-dark: #0A4F38;
  --primary-light: #E7F5EE;
  --accent: #B8501A;
  --accent-dark: #9A4212;
  --accent-bright: #E8722C;
  --ink: #142A22;
  --ink-soft: #4B5F58;
  --bg: #FFFFFF;
  --bg-alt: #F5F9F7;
  --border: #E1EAE6;
  --white: #FFFFFF;
  --success: #1E8E5A;
  --shadow-sm: 0 2px 8px rgba(15, 46, 34, 0.08);
  --shadow-md: 0 8px 24px rgba(15, 46, 34, 0.12);
  --shadow-lg: 0 20px 48px rgba(15, 46, 34, 0.16);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --font-body: 'Inter', 'Inter Fallback', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-head: 'Poppins', 'Poppins Fallback', 'Inter', system-ui, sans-serif;
  --container-w: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .6em; color: var(--primary-dark); }
h1 { font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; color: var(--ink-soft); }
.container { max-width: var(--container-w); margin: 0 auto; padding: 0 24px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: .95rem; padding: 14px 26px; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  font-family: var(--font-body);
}
.btn-primary { background: var(--accent); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary-light); }
.btn-white { background: var(--white); color: var(--primary-dark); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.header-phone { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--primary-dark); }
.header-phone-label { font-size: .72rem; font-weight: 600; color: var(--ink-soft); line-height: 1.3; }
.header-phone-label strong { display: block; font-size: .92rem; color: var(--primary-dark); }

/* ---------- Breadcrumb ---------- */
.breadcrumb { background: var(--bg-alt); padding: 12px 0; font-size: .85rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; color: var(--ink-soft); list-style: none; margin: 0; padding: 0; }
.breadcrumb li:not(:last-child)::after { content: '/'; margin-left: 6px; color: var(--border); }
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb li[aria-current] { color: var(--primary-dark); font-weight: 600; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(155deg, var(--primary-light) 0%, var(--bg) 60%); padding: 64px 0 80px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--white); border: 1px solid var(--border); padding: 6px 14px; border-radius: 999px; font-size: .8rem; font-weight: 700; color: var(--primary-dark); box-shadow: var(--shadow-sm); margin-bottom: 20px; }
.hero h1 { margin-bottom: .4em; }
.hero p.lead { font-size: 1.15rem; max-width: 46ch; }
.hero-ctas { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 24px; margin-top: 36px; flex-wrap: wrap; }
.hero-trust div { display: flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600; color: var(--ink-soft); }
.hero-visual { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 11/9; }
.hero-visual svg, .hero-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-visual-badge { position: absolute; bottom: 24px; left: 24px; background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); padding: 14px 20px; text-align: center; }
.hero-visual-badge strong { display: block; font-family: var(--font-head); font-size: 1.7rem; color: var(--accent); line-height: 1; }
.hero-visual-badge span { font-size: .74rem; color: var(--ink-soft); font-weight: 600; }

/* ---------- Sections generic ---------- */
section { padding: 72px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.eyebrow { display: inline-block; color: var(--accent); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: .78rem; margin-bottom: 10px; }
.bg-alt { background: var(--bg-alt); }

/* ---------- Cards / services ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 32px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-icon { width: 52px; height: 52px; border-radius: var(--radius-sm); background: var(--primary-light); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; color: var(--primary); }
.card a.card-link { font-weight: 700; color: var(--primary); display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; }

/* ---------- Steps / process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { text-align: center; position: relative; }
.step-num { width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 800; margin: 0 auto 16px; }

/* ---------- Simulator ---------- */
.simulator { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; max-width: 760px; margin: 0 auto; }
.sim-progress { display: flex; background: var(--bg-alt); }
.sim-progress-bar { height: 6px; flex: 1; background: var(--border); }
.sim-progress-bar.done { background: var(--primary); }
.sim-body { padding: 40px; min-height: 360px; }
.sim-step-label { color: var(--accent); font-weight: 800; text-transform: uppercase; font-size: .78rem; letter-spacing: .05em; margin-bottom: 8px; display: block; }
.sim-options { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; }
.sim-option { border: 2px solid var(--border); border-radius: var(--radius-md); padding: 20px; text-align: center; cursor: pointer; font-weight: 700; background: var(--white); transition: all .15s ease; }
.sim-option:hover { border-color: var(--primary); background: var(--primary-light); }
.sim-option.selected { border-color: var(--primary); background: var(--primary-light); color: var(--primary-dark); }
.sim-options-icon.sim-options { grid-template-columns: repeat(3, 1fr); }
.sim-options-stack.sim-options { grid-template-columns: 1fr; text-align: left; }
.sim-options-stack .sim-option { text-align: left; }
.sim-options-icon .sim-option { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 12px; }
.sim-option-icon { font-size: 1.8rem; line-height: 1; }
.sim-note { margin-top: 24px; background: var(--bg-alt); border: 1px dashed var(--border); border-radius: var(--radius-md); padding: 18px 20px; font-size: .88rem; color: var(--ink-soft); }
.sim-note-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.btn-sm { padding: 10px 18px; font-size: .82rem; }
.sim-field { margin-top: 24px; }
.sim-field label { display: block; font-weight: 700; margin-bottom: 8px; }
.sim-field input, .sim-field select { width: 100%; padding: 14px 16px; border: 2px solid var(--border); border-radius: var(--radius-sm); font-size: 1rem; font-family: var(--font-body); }
.sim-field input:focus, .sim-field select:focus { outline: none; border-color: var(--primary); }
.sim-consent-label { display: flex; gap: 10px; align-items: flex-start; margin-top: 22px; font-size: .85rem; color: var(--ink-soft); background: var(--bg-alt); border-radius: var(--radius-sm); padding: 14px 16px; cursor: pointer; }
.sim-consent-label input { margin-top: 3px; flex-shrink: 0; }
.sim-footer { display: flex; justify-content: space-between; padding: 24px 40px; border-top: 1px solid var(--border); }
.sim-result { text-align: center; }
.sim-result-check { width: 64px; height: 64px; border-radius: 50%; background: var(--primary); color: var(--white); font-size: 1.8rem; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.sim-result h3 { font-size: 1.6rem; }
.sim-result-callnow { font-weight: 700; }
.sim-result-callnow a { color: var(--primary); }
.sim-result .btn { margin-top: 8px; }
.sim-result-amount { font-family: var(--font-head); font-size: 3rem; font-weight: 800; color: var(--primary); margin: 12px 0; }
.sim-result-breakdown { text-align: left; background: var(--bg-alt); border-radius: var(--radius-md); padding: 20px 24px; margin: 24px 0; }
.sim-result-breakdown li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--border); font-weight: 600; }
.sim-result-breakdown li:last-child { border-bottom: none; padding-top: 14px; font-size: 1.1rem; color: var(--primary-dark); }
.sim-consent { font-size: .78rem; color: var(--ink-soft); margin-top: 14px; }
.sim-error { color: var(--accent-dark); font-weight: 600; font-size: .85rem; margin-top: 8px; display: none; }

/* ---------- Double usage (hiver/été) ---------- */
.usage-closing { text-align: center; font-weight: 700; color: var(--primary-dark); font-size: 1.1rem; margin-top: 8px; }

/* ---------- Stat band ---------- */
.stat-band { text-align: center; }
.stat-band-amount { font-family: var(--font-head); font-size: clamp(2.4rem, 6vw, 3.6rem); font-weight: 800; color: var(--primary); }
.stat-band-icons { display: flex; justify-content: center; gap: 40px; margin-top: 32px; flex-wrap: wrap; }
.stat-band-icons div { text-align: center; }
.stat-band-icons strong { display: block; font-family: var(--font-head); font-size: 1.6rem; color: var(--primary-dark); }
.stat-band-icons span { font-size: .8rem; color: var(--ink-soft); font-weight: 600; }

/* ---------- Réalisations gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery-item { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.gallery-visual { aspect-ratio: 3/4; background: var(--primary-light); display: flex; align-items: center; justify-content: center; color: var(--primary); overflow: hidden; }
.gallery-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-caption { padding: 14px 16px; font-size: .88rem; font-weight: 600; color: var(--ink); }
.gallery-badges { text-align: center; margin-top: 24px; font-size: .85rem; color: var(--ink-soft); }
.gallery-note { text-align: center; margin-top: 10px; font-size: .78rem; color: var(--ink-soft); opacity: .8; max-width: 620px; margin-left: auto; margin-right: auto; }

/* ---------- Bandeau de confiance ---------- */
.trust-bar { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; text-align: center; padding: 40px 0; }
.trust-bar div strong { display: block; font-family: var(--font-head); font-size: 1.3rem; color: var(--primary-dark); }
.trust-bar div span { font-size: .8rem; color: var(--ink-soft); font-weight: 600; }

/* ---------- Barre CTA sticky mobile ---------- */
.sticky-cta-bar { display: none; }

/* ---------- Before / after ---------- */
.before-after { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.ba-panel { position: relative; }
.ba-label { position: absolute; top: 16px; left: 16px; background: rgba(20,42,34,.85); color: var(--white); padding: 6px 14px; border-radius: 999px; font-size: .78rem; font-weight: 700; }

/* ---------- Comparatif avant / après ---------- */
.compare { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.compare-head { display: grid; grid-template-columns: 1fr 1.4fr 1.4fr; background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.compare-head-cell { padding: 18px 22px; font-family: var(--font-head); font-weight: 700; font-size: .95rem; display: flex; align-items: center; gap: 10px; }
.compare-head-apres { color: var(--primary-dark); background: var(--primary-light); }
.compare-head .ba-label { position: static; padding: 4px 11px; font-size: .68rem; letter-spacing: .03em; text-transform: uppercase; }
.ba-label-avant { background: var(--ink-soft); }
.ba-label-apres { background: var(--primary); }
.compare-row { display: grid; grid-template-columns: 1fr 1.4fr 1.4fr; border-top: 1px solid var(--border); }
.compare-row:first-of-type { border-top: none; }
.compare-cell { padding: 18px 22px; font-size: .92rem; line-height: 1.55; }
.compare-poste { font-weight: 700; color: var(--ink); background: var(--bg-alt); display: flex; align-items: center; }
.compare-avant { color: var(--ink-soft); }
.compare-apres { color: var(--ink); background: rgba(231,245,238,.45); font-weight: 600; }
.compare-tag { display: none; }

@media (max-width: 860px) {
  .compare-head { display: none; }
  .compare-row { grid-template-columns: 1fr; border-top: 8px solid var(--bg-alt); }
  .compare-poste { font-family: var(--font-head); font-size: 1rem; padding-bottom: 12px; }
  .compare-cell { padding: 14px 20px; }
  .compare-tag { display: inline-block; margin-right: 9px; padding: 3px 10px; border-radius: 999px; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--white); vertical-align: 1px; }
  .compare-avant .compare-tag { background: var(--ink-soft); }
  .compare-apres .compare-tag { background: var(--primary); }
}

/* ---------- Testimonials ---------- */
.testimonial-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 28px; box-shadow: var(--shadow-sm); }
.testimonial-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.avatar { width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 2px 6px rgba(15,46,34,.18); }
.avatar-photo { object-fit: cover; }
.testimonial-stars { color: var(--accent); letter-spacing: 2px; margin-bottom: 8px; }
.testimonial-name { font-weight: 700; color: var(--ink); }
.testimonial-meta { font-size: .8rem; color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question { width: 100%; text-align: left; background: none; border: none; padding: 22px 0; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--ink); display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-answer p { padding-bottom: 20px; }
.faq-item.open .faq-answer { max-height: 1600px; } /* réponses longues sur mobile : 400px les tronquait */
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-icon { transition: transform .2s ease; font-size: 1.4rem; color: var(--primary); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--primary-dark), var(--primary)); color: var(--white); border-radius: var(--radius-lg); padding: 56px; display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: var(--white); margin-bottom: .3em; }
.cta-band p { color: rgba(255,255,255,.85); }

/* ---------- Reassurance band ---------- */
.reassurance-band { background: #FFF6ED; border-top: 1px solid #F2DCC2; border-bottom: 1px solid #F2DCC2; padding: 18px 0; }
.reassurance-band p { margin: 0; font-size: .9rem; color: #7A4A1B; text-align: center; }
.reassurance-band a { color: var(--accent-dark); font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { background: var(--primary-dark); color: rgba(255,255,255,.8); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 48px; }
.footer-col h3 { color: var(--white); font-size: .95rem; margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: .88rem; color: rgba(255,255,255,.72); }
.footer-col a:hover { color: var(--white); }
.footer-brand p { color: rgba(255,255,255,.7); font-size: .88rem; margin-top: 12px; }
.footer-cert { font-size: .78rem !important; color: rgba(255,255,255,.55) !important; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding: 22px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .82rem; }
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-legal a { color: rgba(255,255,255,.72); }

/* ---------- Content pages (pillar/blog) ---------- */
.page-hero { padding: 48px 0 40px; background: var(--bg-alt); }
.content-layout { display: grid; grid-template-columns: 2.2fr 1fr; gap: 56px; align-items: start; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.2em; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.4em; color: var(--ink-soft); }
.prose li { margin-bottom: .4em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .92rem; }
.prose th, .prose td { border: 1px solid var(--border); padding: 10px 14px; text-align: left; }
.prose th { background: var(--bg-alt); font-family: var(--font-head); }
.prose blockquote { border-left: 4px solid var(--primary); background: var(--primary-light); padding: 16px 22px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 1.5em 0; }
.sidebar-card { background: var(--bg-alt); border-radius: var(--radius-md); padding: 24px; margin-bottom: 24px; }
.sidebar-card h3 { font-size: 1rem; }
.sidebar-card ul { display: flex; flex-direction: column; gap: 10px; }
.sidebar-card a { font-weight: 600; color: var(--primary-dark); font-size: .9rem; }
.updated-date { font-size: .82rem; color: var(--ink-soft); font-style: italic; }
figure.illustration { margin: 0 0 1.5em; border-radius: var(--radius-md); overflow: hidden; }
figure.illustration figcaption { font-size: .8rem; color: var(--ink-soft); padding: 8px 0; text-align: center; }

/* ---------- Local landing (ville) ---------- */
.local-map { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--border); }
.local-map iframe { width: 100%; height: 320px; border: 0; display: block; }

/* ---------- Contact form ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { margin-bottom: 18px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { display: block; font-weight: 700; margin-bottom: 6px; font-size: .9rem; }
.form-field input, .form-field select, .form-field textarea { width: 100%; padding: 13px 16px; border: 2px solid var(--border); border-radius: var(--radius-sm); font-family: var(--font-body); font-size: .95rem; }
.alert { padding: 16px 20px; border-radius: var(--radius-sm); margin-bottom: 24px; font-weight: 600; }
.alert-success { background: #E7F5EE; color: var(--primary-dark); border: 1px solid #BFE3D0; }
.alert-error { background: #FDECEA; color: #A3311C; border: 1px solid #F3C7C0; }

/* ---------- Cookie banner ---------- */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 300; background: var(--primary-dark); color: rgba(255,255,255,.92); box-shadow: 0 -8px 24px rgba(0,0,0,.18); }
.cookie-banner-inner { max-width: var(--container-w); margin: 0 auto; padding: 18px 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cookie-banner-inner p { margin: 0; font-size: .85rem; color: rgba(255,255,255,.85); max-width: 60ch; }
.cookie-banner-inner a { color: #fff; text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: 12px; flex-shrink: 0; }
.cookie-banner-actions .btn { padding: 10px 20px; font-size: .85rem; }
.cookie-banner-actions .btn-outline { border-color: rgba(255,255,255,.4); color: #fff; }
.cookie-banner-actions .btn-outline:hover { background: rgba(255,255,255,.1); }
@media (max-width: 600px) { .cookie-banner-inner { flex-direction: column; align-items: stretch; text-align: center; } }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--primary); color: var(--white); padding: 12px 20px; z-index: 200; }
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .content-layout { grid-template-columns: 1fr; }
  .before-after { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .header-actions .header-phone { display: none; }
  .header-inner .btn-primary { padding: 11px 18px; font-size: .85rem; }
  .grid-3, .grid-2, .form-grid { grid-template-columns: 1fr; }
  .sim-options { grid-template-columns: 1fr 1fr !important; }
  .sim-options-icon.sim-options { grid-template-columns: repeat(3, 1fr) !important; }
  .sim-options-stack.sim-options { grid-template-columns: 1fr !important; }
  .sim-body { padding: 26px; }
  .sim-footer { padding: 18px 26px; }
  .cta-band { flex-direction: column; text-align: center; padding: 40px 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  section { padding: 52px 0; }
  .gallery-grid { grid-template-columns: 1fr; }
  .trust-bar { gap: 28px; padding: 28px 0; }
  .stat-band-icons { gap: 24px; }
  .hero-visual-badge { left: 12px; bottom: 12px; padding: 10px 14px; }
  body { padding-bottom: 66px; }
  .sticky-cta-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 250; background: var(--white); border-top: 1px solid var(--border); box-shadow: 0 -6px 20px rgba(0,0,0,.08); padding: 10px 14px; gap: 10px; }
  .sticky-cta-bar .btn { flex: 1; padding: 13px 10px; font-size: .88rem; }
  #cookie-banner.cookie-banner { bottom: 66px; }
}

/* ---------- Pages villes : données locales (INSEE + ADEME) ---------- */
.parc-kpis { display: flex; gap: 14px; flex-wrap: wrap; margin: 22px 0 6px; }
.parc-kpi { flex: 1 1 150px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 14px 16px; box-shadow: var(--shadow-sm); }
.parc-kpi strong { display: block; font-family: var(--font-head); font-size: 1.45rem; color: var(--primary-dark); line-height: 1.1; }
.parc-kpi span { font-size: .8rem; color: var(--ink-soft); }
.parc-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; margin: 20px 0 8px; }
.dpe-chart { display: flex; flex-direction: column; gap: 6px; }
.dpe-row { display: grid; grid-template-columns: 30px 1fr 132px; align-items: center; gap: 10px; font-size: .86rem; }
.dpe-letter { display: inline-block; width: 30px; height: 26px; line-height: 26px; text-align: center; border-radius: 6px; color: #fff; font-weight: 800; font-family: var(--font-head); }
.dpe-bar { height: 14px; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.dpe-fill { display: block; height: 100%; border-radius: 999px; }
.dpe-A { background: #00a06d; } .dpe-B { background: #52b153; } .dpe-C { background: #a5c93a; }
.dpe-D { background: #f1e42d; } .dpe-letter.dpe-D { color: #3a3a1a; }
.dpe-E { background: #f2b10e; } .dpe-F { background: #ec7a1c; } .dpe-G { background: #d7261e; }
.dpe-val { font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
.dpe-val small { color: var(--ink-soft); }
.energies-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.energies-list li { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 14px; display: flex; justify-content: space-between; font-size: .92rem; }
.parc-source { font-size: .78rem; color: var(--ink-soft); margin-top: 12px; }
.ville-cta { background: var(--primary); color: #fff; border-radius: var(--radius-lg); padding: 26px 28px; margin-top: 36px; display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.ville-cta p { margin: 0; max-width: 60ch; color: #fff; }
@media (max-width: 860px) {
  .parc-grid { grid-template-columns: 1fr; }
  .dpe-row { grid-template-columns: 28px 1fr 110px; }
}


/* ---------- Navigation principale (header) ---------- */
.main-nav ul { display: flex; gap: 22px; }
.main-nav a { font-weight: 600; font-size: .92rem; color: var(--ink); padding: 6px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover { color: var(--primary); border-bottom-color: var(--primary); }
@media (max-width: 1080px) {
  /* Sous 1080 px : la navigation passe sur une seconde ligne, défilable horizontalement (pas de JS, pas de menu caché) */
  .header-inner { flex-wrap: wrap; height: auto; padding-top: 10px; row-gap: 6px; column-gap: 12px; } /* padding-top seulement : .header-inner est aussi .container (marges latérales) */
  .header-inner .logo { flex: 0 1 auto; }
  .header-inner .logo img { width: 150px; height: auto; }
  .header-actions { margin-left: auto; flex: 0 0 auto; }
  .main-nav { order: 3; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin: 0 -24px; padding: 0 24px 8px; }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav ul { gap: 18px; white-space: nowrap; }
  .main-nav a { font-size: .86rem; padding: 4px 0; }
}

/* ---------- Carte OpenStreetMap : façade cliquable (Leaflet ne se charge qu'à la demande) ---------- */
.map-facade { position: relative; height: 320px; background: linear-gradient(160deg, #e7f5ee 0%, #f5f9f7 55%, #e1eae6 100%); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; cursor: pointer; border: 0; width: 100%; font-family: var(--font-body); }
.map-facade::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(15,110,79,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(15,110,79,.08) 1px, transparent 1px); background-size: 28px 28px; }
.map-facade .map-pin { position: relative; width: 34px; height: 34px; border-radius: 50% 50% 50% 0; background: var(--accent); transform: rotate(-45deg); box-shadow: var(--shadow-md); }
.map-facade .map-pin::after { content: ''; position: absolute; inset: 9px; border-radius: 50%; background: #fff; }
.map-facade span { position: relative; font-weight: 700; color: var(--primary-dark); font-size: .92rem; }
.map-facade small { position: relative; color: var(--ink-soft); font-size: .78rem; }

/* ---------- Hubs départementaux ---------- */
.dept-villes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0 8px; }
.dept-ville { display: flex; flex-direction: column; gap: 4px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 14px 16px; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease; }
.dept-ville:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.dept-ville strong { color: var(--primary-dark); font-size: .98rem; }
.dept-ville span { font-size: .8rem; color: var(--ink-soft); }
.prose .dept-villes { padding: 0; list-style: none; }

/* ---------- Zones : régions → départements → villes ---------- */
.zones-region { margin-bottom: 44px; }
.zones-depts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.zones-dept { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px 22px; box-shadow: var(--shadow-sm); }
.zones-dept h3 { margin-bottom: 8px; font-size: 1.05rem; }
.zones-dept h3 a { color: var(--primary-dark); }
.zones-dept ul { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.zones-dept li a { font-size: .86rem; color: var(--ink-soft); }
.zones-dept li a:hover { color: var(--primary); }
.zones-dept .zones-more { font-weight: 700; color: var(--primary); }

/* ---------- Pages villes : liens vers les guides et villes proches ---------- */
.ville-liens ul { padding-left: 1.2em; list-style: disc; }
.ville-liens a { color: var(--primary-dark); font-weight: 600; text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 3px; }
.ville-liens a:hover { text-decoration-color: var(--primary); }
.ville-liens li { margin-bottom: .5em; }
.proches-km { font-size: .78rem; color: var(--ink-soft); font-weight: 500; }

/* ---------- Accueil : accès au silo géographique ---------- */
.home-zones { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.home-zones a { display: block; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 14px 16px; font-weight: 700; color: var(--primary-dark); font-size: .92rem; box-shadow: var(--shadow-sm); }
.home-zones a span { display: block; font-weight: 500; color: var(--ink-soft); font-size: .78rem; margin-top: 2px; }
.home-zones a:hover { border-color: var(--primary); }
@media (max-width: 960px) { .zones-depts { grid-template-columns: 1fr 1fr; } .home-zones { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .zones-depts, .dept-villes, .home-zones { grid-template-columns: 1fr; } }

/* Tableaux de données des pages villes enrichies */
.table-scroll { overflow-x: auto; margin: 1.5em 0; -webkit-overflow-scrolling: touch; }
.table-scroll table { margin: 0; }
.table-scroll table.comparaison { min-width: 760px; }
.prose caption { caption-side: top; text-align: left; font-family: var(--font-head); font-weight: 700; padding: 0 0 8px; }
.prose th[colspan] { text-align: left; }
.fiche-ville td:first-child { font-weight: 600; }
