/* Urbaminute — page d'accueil de la note de renseignements d'urbanisme
 * (urbaminute.html, maquette « Bordeaux »). Page produite par
 * tools/generer_pages_urbaminute.py. */

:root {
  --ink: #0d293a;          /* bleu nuit du kit logo (31/10/2026) */
  --text: #3d4456;
  --muted: #6b7286;
  --line: #e3e6ee;
  --bg: #ffffff;
  --soft: #f6f7fb;
  --brand: #79344c;        /* bordeaux du kit logo */
  --brand-dark: #5f2639;
  --brand-ink: #4a1a2e;
  --brand-light: #e9a8bf;
  --tint: #e8f0f7;
  --on-brand: #ffffff;
  --foot-bg: #0d293a;
  --foot-ink: #ffffff;
  --ok: #1f8a4c;
  --warn: #c77700;
  --off: #8a90a2;
  --radius: 8px;
  --radius-lg: 14px;
  --shadow: 0 1px 2px rgba(20, 26, 46, .06), 0 8px 24px rgba(20, 26, 46, .08);
  --shadow-lg: 0 2px 4px rgba(20, 26, 46, .06), 0 24px 48px rgba(20, 26, 46, .14);
  --wrap: 1180px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-titres: "Outfit", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;   /* géométrique comme le lettrage du logo (kit du 31/10/2026) */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); }
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); font-weight: 800; letter-spacing: -.03em; }
h2 { font-size: clamp(1.55rem, 2.6vw, 2.05rem); font-weight: 750; }
h3 { font-size: 1.08rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: #fff; padding: 8px 14px; border-radius: var(--radius); z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: 0 20px;
  background: var(--brand); color: var(--on-brand);
  font: 600 .97rem/1 var(--font);
  border: 0; border-radius: var(--radius); cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .15s, transform .15s;
}
.btn:hover { background: var(--brand-dark); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--brand); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn.ghost:hover { background: var(--tint); }
.btn svg { width: 18px; height: 18px; flex: none; }
.ico { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- En-tête ---------- */
.topbar { background: var(--brand); color: #fff; font-size: .8rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 6px; padding-bottom: 6px; }
.topbar a { color: #fff; }
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 5px; text-decoration: none; color: var(--ink); line-height: 1; }
.brand img { display: block; width: 230px; height: auto; }
.brand b { font-size: 1.6rem; font-weight: 800; letter-spacing: -.035em; }
.brand b i { font-style: normal; color: var(--brand); }
.brand small { font-size: .72rem; color: var(--muted); letter-spacing: .01em; padding-left: 2px; }
@media (max-width: 560px) { .brand img { width: 176px; } }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-size: .9rem; font-weight: 500; white-space: nowrap; }
.nav a:hover { color: var(--brand); }
.site-header .btn { min-height: 42px; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1.5px solid var(--line); border-radius: 8px; padding: 8px 12px; font: 600 .9rem var(--font); color: var(--ink); cursor: pointer; }
@media (max-width: 1060px) {
  .site-header .header-cta { display: none; }
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 8px 16px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav .btn { margin-top: 12px; }
}
@media (min-width: 1061px) { .nav .btn { display: none; } }

/* ---------- Kicker, filets ---------- */
.kicker { display: inline-block; font-size: .76rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--brand); margin-bottom: 12px; }
.rule::before { content: ""; display: block; width: 48px; height: 3px; background: var(--brand); margin-bottom: 18px; }
.lead { font-size: 1.12rem; color: var(--text); }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.section { padding: 76px 0; }
.section.tint { background: var(--tint); }
.section.soft { background: var(--soft); }
.section + .section:not(.tint):not(.soft) { border-top: 1px solid var(--line); }
@media (max-width: 720px) { .section { padding: 54px 0; } }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head p { color: var(--muted); }

/* ---------- Recherche d'adresse ---------- */
.search { position: relative; }
.search-row { display: flex; gap: 10px; }
.field { position: relative; flex: 1; display: flex; align-items: center; }
.field .ico { position: absolute; left: 14px; color: var(--muted); pointer-events: none; }
.field input {
  width: 100%; min-height: 52px; padding: 0 14px 0 44px;
  font: 400 1rem var(--font); color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius);
  transition: border-color .15s, box-shadow .15s;
}
.field input::placeholder { color: #9aa0b1; }
.field input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 16%, transparent); }
.search .btn { min-height: 52px; }
.search-hint { margin: 10px 0 0; font-size: .85rem; color: var(--muted); }
@media (max-width: 560px) { .search-row { flex-direction: column; } .search .btn { width: 100%; } }
.suggest {
  position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px);
  margin: 0; padding: 6px; list-style: none;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  max-height: 340px; overflow: auto; text-align: left;
}
.suggest[hidden] { display: none; }
.suggest li { padding: 10px 12px; border-radius: calc(var(--radius) - 2px); cursor: pointer; color: var(--ink); font-size: .95rem; line-height: 1.35; }
.suggest li small { display: block; color: var(--muted); font-size: .8rem; }
.suggest li[aria-selected="true"], .suggest li:hover { background: var(--tint); }
.suggest .empty { color: var(--muted); cursor: default; }
.suggest .empty:hover { background: none; }

/* ---------- Statuts (vocabulaire de la note) ---------- */
.st { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600; white-space: nowrap; color: var(--ink); }
.st::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.st.concerne { color: #3c4a63; }
.st.sans-objet { color: var(--ok); }
.st.verifier { color: var(--warn); }
.st.non-publie { color: var(--off); }

/* ---------- Carte de zonage (image réelle + parcelle en SVG) ---------- */
.map { position: relative; overflow: hidden; background: #f3eded; }
.map img, .map svg.parcel { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.map svg.parcel path { fill: color-mix(in srgb, var(--brand) 38%, transparent); stroke: var(--brand-dark); stroke-width: 3; vector-effect: non-scaling-stroke; }
.map-tag { position: absolute; z-index: 2; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px 12px; font-size: .78rem; line-height: 1.4; color: var(--ink); max-width: 250px; }
.map-tag strong { display: block; font-size: .86rem; }
.map-credit { position: absolute; z-index: 2; right: 6px; bottom: 4px; font-size: .64rem; color: #5a6072; background: rgba(255,255,255,.82); padding: 1px 6px; border-radius: 3px; }

/* ---------- Définition ---------- */
.define { display: grid; grid-template-columns: 1.55fr 1fr; gap: 64px; align-items: center; }

.define-quote { font-size: 1.32rem; line-height: 1.45; color: var(--brand-ink); }
.define-quote strong { color: var(--brand); font-weight: 700; }
@media (max-width: 860px) { .define { grid-template-columns: 1fr; gap: 28px; } }

.page-thumb { display: block; width: 100%; padding: 0; border: 1px solid var(--line); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); cursor: zoom-in; position: relative; overflow: hidden; }
.page-thumb img { width: 100%; height: auto; }
.page-thumb .zoom { position: absolute; right: 8px; bottom: 8px; background: rgba(255,255,255,.95); border-radius: 999px; padding: 4px 10px; font: 600 .75rem var(--font); color: var(--brand); box-shadow: var(--shadow); }
.note-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; font-size: .82rem; color: var(--muted); }
.note-legend .st { font-size: .82rem; }

/* ---------- Règles relevées ---------- */
.rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; }
.rule-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.rule-card b { display: block; font-size: 1.45rem; color: var(--ink); letter-spacing: -.02em; }
.rule-card span { font-size: .85rem; color: var(--muted); }
.rules-title { margin: 48px 0 0; font-size: 1.15rem; max-width: 760px; }
.rule-card small { display: block; margin-top: 6px; font-size: .74rem; color: var(--brand); font-weight: 600; }
@media (max-width: 760px) { .rules { grid-template-columns: 1fr 1fr; } }

/* ---------- Étapes ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { display: flex; gap: 18px; align-items: flex-start; position: relative; }
.steps .n { flex: none; width: 54px; height: 54px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 1.45rem; font-weight: 800; }
.steps h3 { margin: 6px 0 4px; }
.steps p { margin: 0; color: var(--muted); font-size: .93rem; }
@media (min-width: 861px) { .steps li { padding-right: 28px; } }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

.ctable-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.ctable { width: 100%; min-width: 720px; border-collapse: collapse; font-size: .92rem; }
.ctable th, .ctable td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.ctable thead th { background: var(--soft); color: var(--ink); font-weight: 700; text-align: center; }
.ctable thead th.featured { background: var(--brand); color: #fff; }
.ctable tbody th { color: var(--ink); font-weight: 650; width: 18%; }
.ctable td.featured { background: color-mix(in srgb, var(--brand) 7%, #fff); color: var(--ink); font-weight: 600; }
.ctable tr:last-child th, .ctable tr:last-child td { border-bottom: 0; }
.notice { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 13px 18px; border-radius: var(--radius); background: color-mix(in srgb, var(--brand) 9%, #fff); color: var(--ink); font-size: .92rem; }
.notice .ico { color: var(--brand); }

/* ---------- PLU de votre commune ---------- */
.commune { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .commune { grid-template-columns: 1fr; gap: 24px; } }
.cities-label { font-size: .85rem; color: var(--muted); margin: 0 0 10px; }
.cities { display: flex; flex-wrap: wrap; gap: 8px; }
.cities button { font: 600 .88rem var(--font); color: var(--brand); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; cursor: pointer; }
.cities button:hover, .cities button[aria-pressed="true"] { border-color: var(--brand); background: var(--tint); }
.cities button { border-radius: 4px; border: 0; background: none; text-decoration: underline; padding: 6px 10px 6px 0; }
.commune-result { margin-top: 22px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: var(--radius); padding: 18px 20px; }
.commune-result[hidden] { display: none; }
.commune-result h3 { margin: 0 0 4px; }
.commune-result .badge { display: inline-block; font-size: .75rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; margin-bottom: 10px; }
.badge.ok { background: #e3f4ea; color: #17673a; }
.badge.attention { background: #fff1db; color: #8a5300; }
.badge.refus { background: #fde6e6; color: #a32020; }
.commune-result dl { display: grid; grid-template-columns: 170px 1fr; gap: 6px 14px; margin: 10px 0 14px; font-size: .9rem; }
.commune-result dt { color: var(--muted); }
.commune-result dd { margin: 0; color: var(--ink); font-weight: 600; }
.commune-result ul { margin: 0 0 14px; padding-left: 18px; font-size: .9rem; }
.commune-result .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.loading { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: .9rem; }
.loading::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--brand); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 520px) { .commune-result dl { grid-template-columns: 1fr; gap: 0 0; } .commune-result dd { margin-bottom: 8px; } }

/* ---------- Sources ---------- */
.sources { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.source { display: flex; gap: 14px; align-items: flex-start; text-decoration: none; color: inherit; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: border-color .15s, box-shadow .15s; }
.source:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.source .mark { display: none; }
.source strong { display: block; color: var(--ink); font-size: .95rem; }
.source span { display: block; font-size: .82rem; color: var(--muted); line-height: 1.45; margin-top: 2px; }
@media (max-width: 1000px) { .sources { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .sources { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 1fr 1.7fr; gap: 48px; }
@media (max-width: 900px) { .faq { grid-template-columns: 1fr; gap: 16px; } }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 17px 2px; font-weight: 650; color: var(--ink); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translate(-3px, -3px); transition: transform .2s; }
.faq-list details[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.faq-list details > div { padding: 0 2px 16px; color: var(--text); font-size: .95rem; }
.faq-list details > div p:last-child { margin-bottom: 0; }

/* ---------- Bandeau final ---------- */
.cta { background: var(--brand); color: #fff; padding: 56px 0; }
.cta .wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; }
.cta h2 { color: #fff; margin-bottom: 8px; }
.cta p { margin: 0; color: rgba(255,255,255,.82); }
.cta .field input { border-color: transparent; }
.cta .btn { background: #fff; color: var(--ink); }
.cta .btn:hover { background: var(--tint); }
.cta .search-hint { color: rgba(255,255,255,.7); }
.cta-price { font-size: 2.3rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.cta-price .u { font-size: 1rem; }
@media (max-width: 860px) { .cta .wrap { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Pied de page ---------- */
.footer { background: var(--foot-bg); color: var(--foot-ink); padding: 40px 0 28px; border-top: 1px solid var(--line); }
.footer .wrap { display: grid; grid-template-columns: 1.2fr 2fr 1.2fr; gap: 32px; align-items: start; }
.footer .brand, .footer .brand b { color: var(--foot-ink); }
.footer .brand b i { color: var(--brand-light); }
.footer .brand small { color: color-mix(in srgb, var(--foot-ink) 60%, transparent); }
.footer nav { display: flex; flex-wrap: wrap; gap: 10px 22px; padding-top: 6px; }
.footer nav a { color: var(--foot-ink); text-decoration: none; font-size: .88rem; opacity: .85; }
.footer nav a:hover { opacity: 1; text-decoration: underline; }
.footer .legal { font-size: .8rem; line-height: 1.6; opacity: .75; margin: 0; text-align: right; }
.footer .legal a { color: inherit; }
@media (max-width: 860px) { .footer .wrap { grid-template-columns: 1fr; gap: 18px; } .footer .legal { text-align: left; } }

/* ---------- Visionneuse ---------- */
dialog.viewer { border: 0; padding: 0; border-radius: var(--radius-lg); max-width: min(860px, 94vw); max-height: 92vh; box-shadow: var(--shadow-lg); }
dialog.viewer::backdrop { background: rgba(10, 14, 28, .62); }
.viewer-bar { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; background: #fff; border-bottom: 1px solid var(--line); z-index: 1; }
.viewer-bar p { margin: 0; font-size: .88rem; color: var(--muted); }
.viewer-bar .close { background: none; border: 0; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--ink); padding: 4px 8px; }
.viewer-body { padding: 14px; background: var(--soft); }
.viewer-body img { margin: 0 auto; box-shadow: var(--shadow); }
.viewer-nav { display: flex; gap: 8px; }
.viewer-nav button { font: 600 .82rem var(--font); background: var(--tint); color: var(--brand-ink); border: 0; border-radius: var(--radius); padding: 6px 10px; cursor: pointer; }

/* ---------- Composition de la maquette « Bordeaux » ---------- */
h1 { font-size: clamp(2.3rem, 4.6vw, 3.4rem); }
h1 em { font-style: normal; color: var(--brand); display: block; }
.hero { background: var(--tint); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: .9fr 1fr 1fr; min-height: 470px; }
.hero-copy { padding: 52px 32px 40px 0; }
.hero-copy .short-rule { width: 48px; height: 3px; background: var(--brand); margin: 26px 0; }
/* La carte de commande déborde sur la carte de zonage et la surplombe. */
.order-card { align-self: center; position: relative; z-index: 3; background: #fff; margin: 36px -150px 36px 0; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 2px 6px rgba(20, 26, 46, .10), 0 30px 60px rgba(20, 26, 46, .24); }
.order-card .inner { padding: 28px 28px 24px; }
.order-card h2 { font-size: 1.45rem; margin-bottom: 6px; }
.order-card .search-row { flex-direction: column; }
.order-card .btn { width: 100%; }
.order-price { display: flex; align-items: center; gap: 18px; background: var(--brand); color: #fff; padding: 18px 28px; }
.order-price b { font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; white-space: nowrap; }
.order-price b .u { font-size: 1.05rem; }
.order-price p { margin: 0; padding-left: 18px; border-left: 1px solid rgba(255,255,255,.4); font-size: .8rem; line-height: 1.5; }
.hero-map { position: relative; margin-right: calc(-1 * max(24px, (100vw - var(--wrap)) / 2 + 24px)); }
.hero-map .map { position: absolute; inset: 0; }
.hero-map .map-tag { right: 24px; bottom: 30px; min-width: 230px; }
.hero-map .map-tag ul { list-style: none; margin: 8px 0 0; padding: 8px 0 0; border-top: 1px solid var(--line); display: grid; gap: 5px; }
.hero-map .map-tag li { display: flex; justify-content: space-between; gap: 14px; }
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .order-card { margin-right: 0; }
  .hero-map { grid-column: 1 / -1; height: 320px; margin: 0 -24px; }
}
@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding: 36px 0 0; }
  .order-card { margin: 24px 0 32px; }
  .hero-map { margin: 0 -16px; height: 280px; }
  .hero-map .map-tag { display: none; }
}
.define-quote::before { content: ""; display: block; width: 48px; height: 3px; background: var(--brand); margin-bottom: 18px; }
.sample { display: grid; grid-template-columns: 1fr 1.5fr .9fr; gap: 40px; align-items: center; }
.sample-pages { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.sample-pages .page-thumb:first-child { transform: rotate(-2deg); }
.sample-pages .page-thumb:last-child { transform: rotate(1.5deg) translateY(16px); }
.topics h3 { font-size: 1.3rem; }
.topics ul { padding-left: 18px; margin: 0; }
.topics li { margin: 6px 0; }
.topics li::marker { color: var(--brand); }
@media (max-width: 1000px) { .sample { grid-template-columns: 1fr; } .sample-pages { max-width: 560px; } }
.steps .n { width: 46px; height: 46px; font-size: 1.15rem; }
.steps li { border-right: 1px solid var(--line); }
.steps li:last-child { border: 0; }
@media (max-width: 860px) { .steps li { border: 0; } }
.notice { background: #f8e9ee; }
.sources-row { display: grid; grid-template-columns: 1fr 2.2fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .sources-row { grid-template-columns: 1fr; } }
.sources { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 560px) { .sources { grid-template-columns: 1fr; } }
.source { border: 0; border-left: 1px solid var(--line); border-radius: 0; padding: 4px 18px; background: none; }
.source:hover { box-shadow: none; border-left-color: var(--brand); }
.cta .wrap { grid-template-columns: 1.4fr auto auto; }
.cta .cta-sep { border-left: 1px solid rgba(255,255,255,.35); padding-left: 36px; }
@media (max-width: 960px) { .cta .wrap { grid-template-columns: 1fr; } .cta .cta-sep { border: 0; padding: 0; } }

/* ---------- Cartes de guides (accueil et « À lire aussi ») ---------- */
.guide-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.guide-card { display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--brand); border-radius: var(--radius-lg); padding: 22px 22px 18px; text-decoration: none; color: inherit; transition: box-shadow .15s; }
.guide-card:hover { box-shadow: var(--shadow); }
.guide-card .kicker { margin: 0; }
.guide-card h3 { margin: 0; font-size: 1.1rem; }
.guide-card p { margin: 0; font-size: .9rem; color: var(--muted); }
.guide-card .read { margin-top: auto; padding-top: 8px; font-weight: 600; font-size: .9rem; color: var(--brand); }
@media (max-width: 900px) { .guide-cards { grid-template-columns: 1fr; } }

/* ---------- Gabarit de guide ---------- */
.breadcrumb { padding-top: 16px; padding-bottom: 0; font-size: .85rem; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.guide-hero { background: var(--tint); padding: 36px 0 40px; margin-top: 12px; }
.guide-hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); max-width: 900px; }
.guide-hero .lead { max-width: 820px; }
.guide-meta { margin: 0; font-size: .85rem; color: var(--muted); }
.guide-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; padding-top: 48px; padding-bottom: 72px; align-items: start; }
@media (max-width: 1000px) { .guide-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
.guide-body { max-width: 760px; font-size: 1.04rem; }
.guide-body h2 { margin-top: 48px; scroll-margin-top: 90px; font-size: clamp(1.4rem, 2.2vw, 1.75rem); }
.guide-body h2:first-child { margin-top: 0; }
.guide-body h3 { margin-top: 28px; font-size: 1.12rem; }
.guide-body ul, .guide-body ol { padding-left: 22px; margin: 0 0 1em; }
.guide-body li { margin: 8px 0; }
.guide-body li::marker { color: var(--brand); font-weight: 700; }
.guide-body .ctable-wrap { margin: 8px 0 22px; }
.guide-table { min-width: 560px; }
.guide-table thead th { text-align: left; }
.guide-table tbody th { width: 30%; }
.guide-body .faq-list { margin-top: 8px; }
.callout { margin: 24px 0; padding: 18px 22px; background: var(--tint); border-left: 4px solid var(--brand); border-radius: var(--radius); }
.callout strong { display: block; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 6px; }
.callout p { margin: 0; color: var(--ink); }
.callout.service { background: #f8e9ee; }
.guide-sources { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.guide-sources h2 { font-size: 1.1rem; margin: 0 0 8px; }
.guide-sources ul { font-size: .9rem; }
.guide-aside { position: sticky; top: 92px; display: grid; gap: 20px; }
@media (max-width: 1000px) { .guide-aside { position: static; } .guide-aside .toc { display: none; } }
.toc { display: grid; gap: 2px; border-left: 2px solid var(--line); padding-left: 16px; }
.toc a { color: var(--text); text-decoration: none; font-size: .9rem; padding: 5px 0; line-height: 1.35; }
.toc a:hover, .toc a[aria-current="true"] { color: var(--brand); }
.aside-order { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); padding: 20px; border-radius: var(--radius-lg); }
.aside-order b { display: block; color: var(--ink); font-size: 1.05rem; }
.aside-order p { font-size: .88rem; color: var(--muted); margin: 6px 0 10px; }
.aside-price { font-size: 1.9rem; font-weight: 800; color: var(--brand); letter-spacing: -.02em; margin-bottom: 12px; }
.aside-price .u { font-size: .9rem; }
.aside-order .search-row { flex-direction: column; }
.aside-order .btn { width: 100%; }

/* ---------- Page de commande ---------- */
.commande-hero { padding-bottom: 28px; }
.etapes-cmd { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 18px 0 0; padding: 0; font-size: .92rem; color: var(--muted); }
.etapes-cmd li { display: flex; align-items: center; gap: 8px; }
.etapes-cmd b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1.5px solid var(--line); color: var(--muted); font-size: .8rem; }
.etapes-cmd li[aria-current="step"] { color: var(--ink); font-weight: 650; }
.etapes-cmd li[aria-current="step"] b, .etapes-cmd li.fait b { background: var(--brand); border-color: var(--brand); color: #fff; }
.cmd-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; padding-top: 36px; padding-bottom: 72px; align-items: start; }
@media (max-width: 1000px) { .cmd-layout { grid-template-columns: 1fr; } }
.cmd-step h2 { font-size: 1.4rem; }
.cmd-carte { height: 420px; margin: 16px 0 6px; border-radius: var(--radius-lg); border: 1px solid var(--line); overflow: hidden; z-index: 0; }
@media (max-width: 640px) { .cmd-carte { height: 320px; } }
.cmd-elig { margin-top: 16px; padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--line); border-left: 4px solid var(--muted); background: #fff; font-size: .92rem; }
.cmd-elig.ok { border-left-color: #1f8a4c; }
.cmd-elig.attention { border-left-color: #c77700; }
.cmd-elig.refus { border-left-color: #a32020; }
.cmd-elig .badge { display: inline-block; font-size: .75rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; margin-bottom: 8px; }
.cmd-elig dl { display: grid; grid-template-columns: 170px 1fr; gap: 4px 14px; margin: 6px 0 8px; }
.cmd-elig dt { color: var(--muted); }
.cmd-elig dd { margin: 0; color: var(--ink); font-weight: 600; }
.cmd-elig ul { margin: 6px 0 0; padding-left: 18px; }
.cmd-elig p { margin: 0; }
@media (max-width: 520px) { .cmd-elig dl { grid-template-columns: 1fr; } }
.cmd-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 22px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.cmd-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.cmd-large { grid-column: 1 / -1; }
@media (max-width: 640px) { .cmd-grille { grid-template-columns: 1fr; } }
.cmd-champ { display: grid; gap: 6px; font-weight: 600; color: var(--ink); font-size: .92rem; }
.cmd-champ .small { font-weight: 400; }
.cmd-champ input, .cmd-champ textarea { width: 100%; min-height: 48px; padding: 10px 14px; font: 400 1rem var(--font); color: var(--ink); border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff; }
.cmd-champ textarea { min-height: 110px; resize: vertical; }
.cmd-champ input:focus, .cmd-champ textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 16%, transparent); }
.cmd-case { display: flex; gap: 12px; align-items: flex-start; margin: 14px 0 0; font-size: .95rem; color: var(--ink); line-height: 1.45; }
.cmd-case input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brand); flex: none; }
.cmd-case[hidden] { display: none; }
.cmd-erreur { margin: 16px 0 0; padding: 12px 16px; border-radius: var(--radius); background: #fde6e6; color: #8a1c1c; font-size: .92rem; }
.cmd-recap { display: grid; grid-template-columns: 200px 1fr; gap: 8px 16px; padding: 18px 20px; background: var(--soft); border-radius: var(--radius); margin: 0 0 6px; font-size: .95rem; }
.cmd-recap dt { color: var(--muted); }
.cmd-recap dd { margin: 0; color: var(--ink); font-weight: 600; }
@media (max-width: 520px) { .cmd-recap { grid-template-columns: 1fr; } }
.cmd-resume { position: sticky; top: 92px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 22px; }
@media (max-width: 1000px) { .cmd-resume { position: static; order: -1; } }
.cmd-resume > b { display: block; color: var(--ink); font-size: 1.05rem; }
.cmd-produit { margin: 6px 0 4px; color: var(--muted); font-size: .9rem; }
.cmd-resume dl { margin: 6px 0 12px; font-size: .9rem; }
.cmd-resume dt { color: var(--muted); font-size: .8rem; }
.cmd-resume dd { margin: 2px 0 0; color: var(--ink); font-weight: 600; }
.cmd-plus { margin: 0 0 12px; padding-left: 18px; font-size: .88rem; }
.cmd-plus li { margin: 4px 0; }
.cmd-plus li::marker { color: var(--brand); }
.leaflet-container { font: inherit; }

/* ---------- Retour de paiement, renonciation, pages juridiques ---------- */
.merci { max-width: 760px; padding-top: 48px; padding-bottom: 72px; }
.merci-etat { margin: 22px 0 10px; padding: 16px 18px; background: var(--soft); border-radius: var(--radius); color: var(--ink); font-weight: 600; }
.merci-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.renoncer { margin: 24px 0; }
.juridique { max-width: 820px; padding-top: 40px; padding-bottom: 72px; }
.juridique h1 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); }
.juridique h3 { margin-top: 32px; font-size: 1.15rem; }
.juridique h4 { margin-top: 20px; }
.juridique .ctable-wrap { margin: 12px 0 20px; }
.encadre-legal { margin: 18px 0; padding: 16px 20px; border: 2px solid var(--brand); border-radius: var(--radius); background: #fff; font-size: .92rem; }
.encadre-legal p { margin: 0 0 .6em; }
.encadre-legal.brouillon { border-color: #c77700; background: #fff1db; }

@media print {
  .site-header, .topbar, .cta, .search, dialog, .guide-aside { display: none !important; }
  .section { padding: 24px 0; }
}

/* ---------- Espace privé et administration (site/espace/, app/espace.php) ---------- */
.espace main { background: var(--soft); min-height: 60vh; }
.espace .nav.espace-entete { display: flex; align-items: center; gap: 14px; position: static; flex-direction: row; box-shadow: none; border: 0; padding: 0; background: none; }
.espace-entete form { margin: 0; }
.espace .espace-entete .btn { display: inline-flex; margin: 0; padding: 0 18px; border-bottom: 0; font-size: .9rem; font-weight: 600; }
.espace .espace-entete .btn:not(.ghost) { color: #fff; }
.espace-qui { font-size: .9rem; font-weight: 600; color: var(--ink); max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.espace-seul { padding-top: 48px; padding-bottom: 72px; }
.espace-boite { max-width: 520px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 36px 36px 28px; }
.espace-boite h1 { font-size: 1.9rem; }
.espace-form { display: grid; gap: 16px; margin-top: 18px; }
.espace-form .btn { justify-self: start; }
.espace-liens { margin: 16px 0 0; font-size: .92rem; }
.espace-encart { margin-top: 26px; padding: 18px 20px; border-radius: var(--radius); background: var(--soft); }
.espace-encart p { font-size: .92rem; margin: 6px 0 12px; }
.espace-cadre { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; padding-top: 32px; padding-bottom: 72px; align-items: start; }
.espace-menu { position: sticky; top: 92px; display: grid; gap: 2px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 10px; }
.espace-menu a { display: block; padding: 10px 12px; border-radius: var(--radius); color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.espace-menu a:hover { background: var(--soft); color: var(--brand); }
.espace-menu a[aria-current="page"] { background: color-mix(in srgb, var(--brand) 10%, #fff); color: var(--brand); font-weight: 700; }
.espace-admin .espace-menu { border-top: 4px solid var(--foot-bg); }
.espace-contenu { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-content: start; }
.espace-contenu h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0; }
.espace-contenu h2 { font-size: 1.2rem; margin: 0 0 .6em; }
.carte { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 24px; box-shadow: 0 1px 2px rgba(20, 26, 46, .04); }
.carte.alerte { border-left: 4px solid var(--warn); }
.carte > :last-child { margin-bottom: 0; }
.carte-tete { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.carte-tete h1, .carte-tete h2 { margin: 0; }
.espace-chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.espace-chiffre { display: grid; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px 20px; text-decoration: none; color: var(--muted); font-size: .88rem; }
.espace-chiffre b { font-size: 1.9rem; line-height: 1; color: var(--ink); }
a.espace-chiffre:hover { border-color: var(--brand); }
.espace-commander { background: var(--brand); border-color: var(--brand); color: #fff; }
.espace-commander b { color: #fff; }
a.espace-commander:hover { background: var(--brand-dark); }
.flash { margin: 0; padding: 12px 16px; border-radius: var(--radius); font-size: .94rem; background: var(--tint); color: var(--ink); }
.flash.ok { background: #e3f4ea; color: #155f35; }
.flash.erreur { background: #fde6e6; color: #8a1c1c; }
.flash + .flash { margin-top: 8px; }
.espace-boite .flash { margin: 14px 0; }
.tableau-defile { overflow-x: auto; margin: 0 -4px; }
.tableau { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tableau th { text-align: left; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tableau td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink); }
.tableau tr:last-child td { border-bottom: 0; }
.tableau .actions { text-align: right; white-space: nowrap; }
.tableau .actions > * { margin: 2px 0 2px 6px; }
.btn.petit { min-height: 34px; padding: 0 12px; font-size: .85rem; }
.btn.danger { background: #a32020; }
.btn.danger:hover { background: #7f1818; }
.btn.en-cours { opacity: .6; pointer-events: none; }
.form-ligne { display: inline; margin: 0; }
.pastille { display: inline-block; font-size: .76rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--soft); color: var(--muted); white-space: nowrap; }
.pastille.ok { background: #e3f4ea; color: #155f35; }
.pastille.info { background: var(--tint); color: #1d4f7a; }
.pastille.attente { background: #fdf0dc; color: #8a5300; }
.pastille.refus { background: #fde6e6; color: #8a1c1c; }
.texte-erreur { color: #8a1c1c; }
.liste-simple { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: .92rem; }
.filtres { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.filtres .cmd-champ { min-width: 200px; flex: 1; max-width: 360px; }
.cmd-champ select { width: 100%; min-height: 48px; padding: 10px 14px; font: 400 1rem var(--font); color: var(--ink); border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff; }
.pagination { display: flex; flex-wrap: wrap; gap: 6px; }
.pagination a { min-width: 38px; text-align: center; padding: 6px 10px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); text-decoration: none; }
.pagination a[aria-current="page"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.espace-danger { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.espace-danger summary { cursor: pointer; color: #a32020; font-weight: 600; }
.espace-danger[open] summary { margin-bottom: 10px; }
@media (max-width: 860px) {
  .espace-cadre { grid-template-columns: 1fr; gap: 16px; padding-top: 16px; }
  .espace-menu { position: static; display: flex; overflow-x: auto; padding: 6px; }
  .espace-menu a { white-space: nowrap; }
  .espace-qui { display: none; }
}
@media (max-width: 560px) {
  .espace .nav.espace-entete > .btn { display: none; }
  .espace-boite { padding: 24px 18px; }
  .carte { padding: 16px; }
}
@media (max-width: 640px) {
  .tableau thead { display: none; }
  .tableau, .tableau tbody, .tableau tr, .tableau td { display: block; width: 100%; }
  .tableau tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .tableau tr:last-child { border-bottom: 0; }
  .tableau td { padding: 3px 0; border: 0; }
  .tableau .actions { text-align: left; white-space: normal; padding-top: 8px; }
  .tableau .actions > * { margin: 4px 6px 0 0; }
}

/* ---------- Bandeau large (1 400 px) et accès à l'espace client ---------- */
.topbar .wrap, .site-header .wrap { max-width: 1400px; }
@media (min-width: 1061px) {
  .site-header .wrap:has(.nav-espace) { gap: 18px; }
  .site-header .nav:not(.espace-entete) { flex: 1; gap: 15px; align-items: center; }
  .nav-espace { margin-left: auto; }
}
.nav-espace { display: flex; align-items: center; gap: 18px; }
.nav a.nav-compte { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: var(--radius); box-shadow: inset 0 0 0 1.5px var(--brand); color: var(--brand); font-weight: 600; }
.nav a.nav-compte:hover { background: var(--tint); }
@media (max-width: 1060px) {
  .nav-espace { flex-direction: column; align-items: stretch; gap: 0; }
  .nav a.nav-compte { min-height: 0; padding: 12px 4px; border-radius: 0; box-shadow: none; }
}

/* ---------- Phase vitrine : « Commandes bientôt disponibles » ---------- */
.bientot { display: inline-block; margin: 10px 0 0; padding: 8px 12px; border-radius: var(--radius); background: color-mix(in srgb, var(--brand) 9%, #fff); color: var(--brand); font-weight: 600; font-size: .92rem; }
.order-card .vitrine-result { margin-top: 14px; border-left-width: 3px; padding: 14px 16px; }
.order-card .vitrine-result h3 { font-size: 1rem; }
.sample-vitrine { grid-template-columns: 1.2fr 1fr; }
@media (max-width: 1000px) { .sample-vitrine { grid-template-columns: 1fr; } }

/* ---------- Pages « PLU de <commune> » (tools/pages_communes.py) ---------- */
.fiche-commune { display: grid; grid-template-columns: 220px 1fr; gap: 8px 18px; margin: 8px 0 12px; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: var(--radius); }
.fiche-commune dt { color: var(--muted); font-size: .92rem; }
.fiche-commune dd { margin: 0; color: var(--ink); font-weight: 600; }
.commune-direct { margin: 14px 0 0; }
.voisines { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px 20px; }
.voisines a { font-weight: 600; }
.voisines.colonnes { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.section-sm { padding-top: 28px; padding-bottom: 56px; }
@media (max-width: 640px) { .fiche-commune { grid-template-columns: 1fr; gap: 2px; } .fiche-commune dd { margin-bottom: 8px; } }

/* ---------- Accueil : ce qui distingue la note ---------- */
.atouts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.atout { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 22px 18px; box-shadow: 0 1px 2px rgba(20, 26, 46, .04); }
.atout .ico { width: 30px; height: 30px; color: var(--brand); margin-bottom: 12px; }
.atout h3 { margin: 0 0 6px; font-size: 1.05rem; }
.atout p { margin: 0; font-size: .93rem; color: var(--text); }
.atouts-section .section-head a { font-weight: 600; }
@media (max-width: 1000px) { .atouts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .atouts { grid-template-columns: 1fr; } }

/* ---------- Pages communes : chiffres clés, carte, zonage ---------- */
.commune-hero .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.commune-hero .chips span { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: .82rem; color: var(--ink); font-weight: 600; }
.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin: 24px 0 0; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.kpi dt { font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.kpi dd { margin: 4px 0 0; font-size: 1.12rem; font-weight: 750; color: var(--ink); line-height: 1.25; }
.kpi dd.kpi-s { font-size: .8rem; font-weight: 500; color: var(--muted); margin-top: 2px; overflow-wrap: anywhere; }
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kpi { padding: 12px; } .kpi dd { font-size: 1rem; hyphens: auto; overflow-wrap: anywhere; } }
.carte-commune { margin: 16px 0 8px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--soft); }
#carte-commune { height: 420px; }
@media (max-width: 640px) { #carte-commune { height: 320px; } }
.carte-commune figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 10px 14px; font-size: .82rem; color: var(--muted); border-top: 1px solid var(--line); background: #fff; }
.carte-commune .credit { margin-left: auto; font-size: .75rem; }
.lg { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; background: #b8bcc8; }
/* couleurs de la légende du WMS zone_secteur du Géoportail de l'urbanisme */
.lg.u, .repartition .u { background: #e60000; } .lg.au, .repartition .au { background: #ff6565; } .lg.a, .repartition .a { background: #ffff00; box-shadow: inset 0 0 0 1px #d8d200; }
.lg.n, .repartition .n { background: #56aa02; } .lg.c, .repartition .c { background: #b11c00; } .lg.ca, .repartition .ca { background: #aa00cc; } .lg.nc, .repartition .nc { background: #aaff00; }
.lg.x, .repartition .x { background: #b8bcc8; }
.repartition { display: flex; height: 18px; border-radius: 999px; overflow: hidden; background: var(--soft); margin: 14px 0 12px; }
.repartition span { display: block; height: 100%; }
.repartition-legende { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: .9rem; }
.zones-table { min-width: 560px; }
.zones-table tbody th { width: auto; white-space: nowrap; }
.zones-table td:last-child { white-space: nowrap; text-align: right; }
.objets { list-style: none; padding: 0; margin: 12px 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.objets li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 16px; border-bottom: 1px solid var(--line); font-size: .93rem; }
.objets li:last-child { border-bottom: 0; }
.objets b { color: var(--ink); white-space: nowrap; }
.aside-guides { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px 20px; display: grid; gap: 8px; font-size: .9rem; }
.aside-guides b { color: var(--ink); }
.lead-sm { font-size: 1rem; color: var(--text); margin: 0 0 22px; max-width: 900px; }

/* Baromètre des documents d'urbanisme (tools/barometre.py) */
.baro-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 0; }
@media (max-width: 560px) { .baro-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.baro-kpis dd { font-size: 1.6rem; }
.baro-choix { margin-bottom: 14px; }
.baro-choix button { border: 1px solid var(--line); border-radius: 999px; background: #fff; text-decoration: none; padding: 8px 16px; }
.baro-choix button:hover, .baro-choix button[aria-pressed="true"] { border-color: var(--brand); background: var(--tint); }
.baro-carte { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.baro-carte svg { display: block; width: 100%; max-width: 720px; height: auto; margin: 0 auto; padding: 12px; box-sizing: border-box; }
.baro-carte path.dep { fill: #e9ebf1; stroke: #fff; stroke-width: .8; transition: fill .15s; }
.baro-carte path.dep.vide { fill: var(--soft); }
.baro-carte a:hover path.dep, .baro-carte a:focus path.dep { stroke: var(--ink); stroke-width: 1.4; }
.baro-carte a:focus { outline: none; }
.baro-carte figcaption { display: grid; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); font-size: .86rem; color: var(--text); }
.baro-info { font-weight: 600; color: var(--ink); min-height: 1.3em; }
.baro-legende p { margin: 0 0 4px; }
.baro-legende ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.baro-carte .credit { font-size: .76rem; color: var(--muted); }
.baro-table th button { font: inherit; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; color: var(--muted); background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.baro-table th button:hover, .baro-table th[aria-sort] button { color: var(--brand); }
.baro-table th[aria-sort="descending"] button::after { content: " ↓"; }
.baro-table th[aria-sort="ascending"] button::after { content: " ↑"; }
.baro-table td { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.baro-table tbody th { font-weight: 600; white-space: nowrap; }
.baro-table tfoot td, .baro-table tfoot th { font-weight: 750; border-top: 2px solid var(--line); color: var(--ink); }
.baro-table .total th { white-space: nowrap; }
@media (max-width: 760px) {
  .baro-table td { display: flex; justify-content: space-between; gap: 12px; text-align: right; white-space: normal; }
  .baro-table td::before { content: attr(data-l); color: var(--muted); font-size: .76rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; text-align: left; }
  .baro-table tfoot tr { display: block; padding: 12px 0; }
}
.baro-telecharger { margin: 18px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.baro-faits { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.baro-faits > div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px 20px; }
.baro-faits .large { grid-column: 1 / -1; }
.baro-faits h3 { font-size: 1rem; margin-bottom: 10px; }
.baro-faits ol { margin: 0; padding-left: 22px; }
.baro-faits li { padding: 4px 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.baro-faits li:last-child { border-bottom: 0; }
.baro-faits li b { float: right; color: var(--ink); margin-left: 10px; }
.baro-methode { max-width: 900px; }
.baro-methode li { margin-bottom: 10px; }

/* Pages communes : prescriptions nommées, régimes, sources complémentaires */
.noms { margin: 6px 0 16px; padding-left: 22px; font-size: .93rem; }
.noms li { padding: 3px 0; }
.guide-body h3 + .noms { margin-top: 2px; }
.fiche-commune.regimes { grid-template-columns: 180px 1fr; }
.fiche-commune.regimes dd { font-weight: 500; color: var(--text); font-size: .95rem; }
@media (max-width: 640px) { .fiche-commune.regimes { grid-template-columns: 1fr; gap: 2px 0; } .fiche-commune.regimes dt { margin-top: 8px; font-weight: 700; } }
.sources-liste { margin: 6px 0 0; padding-left: 20px; }
.sources-liste li { padding: 2px 0; }

/* Typographie des titres : Outfit, géométrique comme le lettrage du logo, sans rondeur ; le texte courant reste en Inter */
h1, h2, h3, .btn, .nav a, .kicker, .cta h2, .order-price b, .aside-price, .cta-price, .kpi dd, .brand small, .guide-card h3, .atout h3, .steps h3, .baro-faits h3, .commune-hero .chips span, .cities button, .toc .kicker { font-family: var(--font-titres); }
h1, h2, h3 { letter-spacing: -.015em; font-weight: 700; }
h1 { font-weight: 800; letter-spacing: -.025em; }
.nav a { font-weight: 600; }
.btn { font-weight: 700; }
.kicker { letter-spacing: .08em; }
