/* DPE-Copro — feuille de style unique (mobile-first, zéro framework) */
:root {
  --green-900: #0d3b2e;
  --green-700: #14563f;
  --green-600: #1a7a52;
  --green-500: #1d9d55;
  --green-50: #eef7f1;
  --amber: #f0b13c;
  --red: #d43f3f;
  --ink: #1b2430;
  --ink-soft: #4a5568;
  --line: #e3e8ee;
  --bg: #ffffff;
  --bg-alt: #f6f9f7;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(13, 59, 46, 0.08);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.65; font-size: 16.5px; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--green-600); }
a:hover { color: var(--green-700); }
h1 { font-size: clamp(1.7rem, 4.2vw, 2.5rem); line-height: 1.18; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); line-height: 1.25; margin-top: 2.2rem; letter-spacing: -0.01em; }
h3 { font-size: 1.08rem; margin-bottom: 0.35rem; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.section { padding: 2.6rem 0; }
.section-alt { background: var(--bg-alt); }
.lead { font-size: 1.12rem; color: var(--ink-soft); }
.hint, .field-note { font-size: 0.88rem; color: var(--ink-soft); }
.sources { font-size: 0.85rem; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 0.8rem; margin-top: 2rem; }

/* ——— Boutons ——— */
.btn { display: inline-block; padding: 0.68rem 1.25rem; border-radius: 999px; border: 2px solid transparent; font-weight: 650; font-size: 1rem; text-decoration: none; cursor: pointer; transition: transform 0.06s ease, background 0.15s ease; font-family: inherit; }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--green-600); color: #fff; }
.btn-primary:hover { background: var(--green-700); color: #fff; }
.btn-light { background: #fff; color: var(--green-700); }
.btn-ghost { background: transparent; color: var(--green-700); border-color: var(--green-600); }
.btn-lg { padding: 0.85rem 1.7rem; font-size: 1.07rem; }

/* ——— Header ——— */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 0.6rem; padding-bottom: 0.6rem; }
.logo { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; }
.logo-text { font-weight: 800; font-size: 1.22rem; color: var(--green-900); letter-spacing: -0.02em; }
.logo-sep { color: var(--green-500); }
.site-nav { display: none; align-items: center; gap: 1.15rem; }
.site-nav a { text-decoration: none; color: var(--ink); font-weight: 550; font-size: 0.95rem; }
.site-nav a:hover { color: var(--green-600); }
.nav-pro { color: var(--ink-soft) !important; font-size: 0.88rem !important; }
.btn-nav, .btn-nav-mobile { padding: 0.5rem 1.05rem; font-size: 0.92rem; }
@media (min-width: 900px) { .site-nav { display: flex; } .btn-nav-mobile { display: none; } }

/* ——— Hero ——— */
.hero { background: linear-gradient(160deg, var(--green-50) 0%, #fff 70%); padding: 3rem 0 2.6rem; }
.hero-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 880px) { .hero-grid { grid-template-columns: 3fr 1.2fr; } }
.hero-kicker { display: inline-block; background: var(--green-900); color: #fff; font-size: 0.82rem; font-weight: 650; padding: 0.3rem 0.85rem; border-radius: 999px; margin-bottom: 0.9rem; }
.hero h1 { margin: 0 0 0.8rem; }
.hero h1 em { font-style: normal; color: var(--green-600); }
.hero-sub { font-size: 1.13rem; color: var(--ink-soft); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1.4rem 0 1rem; }
.hero-trust { list-style: none; padding: 0; margin: 0.6rem 0 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; font-size: 0.9rem; color: var(--ink-soft); }
.hero-visual { display: flex; justify-content: center; }
.hero-visual svg { filter: drop-shadow(0 6px 18px rgba(13, 59, 46, 0.18)); }

/* ——— Cartes / grilles ——— */
.check-grid, .why-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; margin: 1.4rem 0; }
@media (min-width: 700px) { .check-grid { grid-template-columns: repeat(2, 1fr); } .why-grid { grid-template-columns: repeat(2, 1fr); } }
.check-card, .why-grid > div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: var(--shadow); }
.check-card strong { color: var(--green-700); }
.check-card p, .why-grid p { margin: 0.35rem 0 0; color: var(--ink-soft); font-size: 0.95rem; }

.obligation-box { background: var(--green-50); border: 1px solid #cfe7d8; border-left: 5px solid var(--green-500); border-radius: var(--radius); padding: 1.1rem 1.3rem; margin: 1.6rem 0; }
.obligation-box h3 { margin-top: 0; }
.obligation-box p { margin-bottom: 0; }

/* ——— Étapes ——— */
.steps { list-style: none; counter-reset: s; padding: 0; display: grid; gap: 1rem; grid-template-columns: 1fr; margin: 1.5rem 0 0; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: s; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.2rem 1.2rem 1.2rem; box-shadow: var(--shadow); }
.steps li::before { content: counter(s); display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--green-600); color: #fff; font-weight: 800; margin-bottom: 0.6rem; }
.steps li strong { display: block; margin-bottom: 0.25rem; }
.steps li span { color: var(--ink-soft); font-size: 0.95rem; }

/* ——— Tableaux ——— */
.price-table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.price-table caption { caption-side: bottom; font-size: 0.84rem; color: var(--ink-soft); padding: 0.5rem 0; text-align: left; }
.price-table th, .price-table td { text-align: left; padding: 0.75rem 1rem; border-bottom: 1px solid var(--line); }
.price-table thead th { background: var(--green-900); color: #fff; font-size: 0.92rem; }
.price-table tbody tr:last-child td { border-bottom: none; }
.price-table tbody tr:nth-child(even) { background: var(--bg-alt); }

/* ——— FAQ ——— */
.faq { margin: 2.4rem 0; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 0.7rem; background: #fff; box-shadow: var(--shadow); }
.faq-item summary { padding: 0.9rem 1.15rem; font-weight: 650; cursor: pointer; list-style: none; position: relative; padding-right: 2.4rem; }
.faq-item summary::after { content: "+"; position: absolute; right: 1.1rem; top: 50%; transform: translateY(-50%); font-size: 1.3rem; color: var(--green-600); }
.faq-item[open] summary::after { content: "–"; }
.faq-a { padding: 0 1.15rem 1rem; color: var(--ink-soft); }

/* ——— CTA banner ——— */
.cta-banner { background: linear-gradient(120deg, var(--green-900), var(--green-700)); color: #fff; padding: 2.2rem 0; margin-top: 2.5rem; }
.cta-inner { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: center; justify-content: space-between; }
.cta-banner h2 { margin: 0 0 0.3rem; }
.cta-banner p { margin: 0; opacity: 0.92; max-width: 42em; }

/* ——— Articles / pages locales ——— */
.article h1 { margin-bottom: 0.6rem; }
.article ul li, .article ol li { margin-bottom: 0.45rem; }
.breadcrumb { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 1.2rem; }
.breadcrumb a { color: var(--ink-soft); }
.local-facts { display: flex; flex-wrap: wrap; gap: 0.5rem 1.6rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0.8rem 1.1rem; font-size: 0.92rem; color: var(--ink-soft); box-shadow: var(--shadow); }
.nearby { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.nearby li a { display: inline-block; background: var(--green-50); border: 1px solid #cfe7d8; color: var(--green-700); border-radius: 999px; padding: 0.35rem 0.9rem; text-decoration: none; font-size: 0.9rem; }
.nearby li a:hover { background: #dff0e6; }
.tips li { margin-bottom: 0.7rem; }

/* ——— Formulaires ——— */
.form-page h1 { margin-bottom: 0.4rem; }
.form-intro { color: var(--ink-soft); max-width: 44em; }
form { max-width: 720px; }
fieldset.step { border: none; padding: 0; margin: 1.6rem 0; }
legend { font-size: 1.25rem; font-weight: 750; margin-bottom: 0.4rem; letter-spacing: -0.01em; }
.q-label { font-weight: 650; margin: 1.2rem 0 0.5rem; }
.opt-grid { display: grid; gap: 0.65rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .opt-grid { grid-template-columns: repeat(2, 1fr); } }
.opt-card { display: flex; flex-direction: column; gap: 0.15rem; border: 2px solid var(--line); border-radius: var(--radius); padding: 0.85rem 1rem; cursor: pointer; background: #fff; transition: border-color 0.12s ease, background 0.12s ease; }
.opt-card:hover { border-color: var(--green-500); }
.opt-card:has(input:checked) { border-color: var(--green-600); background: var(--green-50); }
.opt-card input { position: absolute; opacity: 0; }
.opt-label { font-weight: 650; }
.opt-sub { font-size: 0.85rem; color: var(--ink-soft); }
.field { margin: 0.9rem 0; flex: 1; }
.field label { display: block; font-weight: 650; margin-bottom: 0.3rem; font-size: 0.95rem; }
.field input, .field textarea { width: 100%; padding: 0.7rem 0.9rem; border: 2px solid var(--line); border-radius: 10px; font-size: 1rem; font-family: inherit; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green-500); }
.field-row { display: flex; flex-wrap: wrap; gap: 0 1rem; }
.field-row .field { min-width: 240px; }
.field-note-inline { font-weight: 400; font-size: 0.82rem; color: var(--ink-soft); }
.consent { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.9rem; color: var(--ink-soft); margin: 1.1rem 0; cursor: pointer; }
.consent input { margin-top: 0.25rem; width: 1.05rem; height: 1.05rem; flex: none; }
.hp-field { position: absolute !important; left: -5000px !important; width: 1px; height: 1px; overflow: hidden; }
.progress { height: 7px; background: var(--line); border-radius: 999px; overflow: hidden; margin: 1.2rem 0 0; }
.progress-bar { height: 100%; background: linear-gradient(90deg, var(--green-500), var(--green-600)); border-radius: 999px; transition: width 0.25s ease; }
.form-nav { display: flex; gap: 0.8rem; margin-top: 1.4rem; }
.form-footnote { font-size: 0.84rem; color: var(--ink-soft); margin-top: 1rem; }
.notice { border-radius: 10px; padding: 0.8rem 1rem; font-size: 0.93rem; margin: 1rem 0; }
.notice-info { background: #eef4fb; border: 1px solid #c9dcf2; color: #1e4e79; }
.notice-error { background: #fdeeee; border: 1px solid #f2c9c9; color: #8f2020; }
.notice-ok { background: var(--green-50); border: 1px solid #cfe7d8; color: var(--green-700); }
.diag-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); }

/* ——— Footer ——— */
.site-footer { background: var(--green-900); color: #dce9e2; margin-top: 3rem; padding: 2.4rem 0 1rem; }
.site-footer a { color: #fff; }
.site-footer h3 { color: #fff; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.05em; }
.site-footer ul { list-style: none; padding: 0; margin: 0.4rem 0; }
.site-footer li { margin-bottom: 0.4rem; font-size: 0.93rem; }
.footer-grid { display: grid; gap: 1.6rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-tagline { font-size: 0.9rem; opacity: 0.85; }
.site-footer .logo-text { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.15); margin-top: 1.6rem; padding-top: 1rem; }
.footer-bottom p { font-size: 0.8rem; opacity: 0.75; }

/* ——— Admin ——— */
.admin-token { display: flex; gap: 0.7rem; align-items: flex-end; max-width: 560px; }
.admin-tabs { display: flex; gap: 0.5rem; margin: 1.4rem 0; }
.admin-tabs .tab { padding: 0.5rem 1.1rem; border-radius: 999px; border: 2px solid var(--line); background: #fff; font-weight: 650; cursor: pointer; font-family: inherit; font-size: 0.95rem; }
.admin-tabs .tab.active { border-color: var(--green-600); background: var(--green-50); color: var(--green-700); }
.admin-bar { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.6rem; }
.table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; background: #fff; }
.admin-table th, .admin-table td { padding: 0.5rem 0.7rem; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.admin-table th { background: var(--bg-alt); position: sticky; top: 0; }
.badge { display: inline-block; padding: 0.1rem 0.6rem; border-radius: 999px; font-size: 0.78rem; font-weight: 700; }
.badge-A { background: #dff3e6; color: var(--green-700); }
.badge-B { background: #fdf3dd; color: #8a6116; }
.badge-C { background: #fdeeee; color: #8f2020; }
