:root {
  --bg: #ffffff;
  --bg-alt: #f6f5f1;
  --text: #1a1a1a;
  --text-muted: #5f5e5a;
  --border: #e5e3da;
  --accent: #0c447c;
  --accent-bg: #e6f1fb;
  --success: #0f6e56;
  --max-w: 880px;
  --radius: 8px;
}
* { box-sizing: border-box; }
body { font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--text); margin: 0; background: var(--bg); }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1rem; }
.site-header { border-bottom: 1px solid var(--border); padding: 1rem 0; }
.site-header .container { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.brand { display: flex; flex-direction: column; gap: 2px; }
.logo { font-weight: 500; color: var(--text); text-decoration: none; font-size: 17px; }
.site-note { font-size: 12px; color: var(--text-muted); }
.site-header nav { display: flex; gap: 1.25rem; }
.site-header nav a { color: var(--text-muted); text-decoration: none; font-size: 14px; }
.site-header nav a:hover { color: var(--text); }
main { padding: 1.5rem 0 3rem; }
h1 { font-size: 26px; font-weight: 500; margin: 0 0 .25rem; }
h2 { font-size: 19px; font-weight: 500; margin: 1.75rem 0 .5rem; }
h3 { font-size: 16px; font-weight: 500; margin: 1rem 0 .25rem; }
.lead { color: var(--text-muted); margin: 0 0 1.5rem; font-size: 14px; }
.breadcrumb { font-size: 12px; color: var(--text-muted); margin-bottom: .75rem; }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--text); }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 1.5rem; }
.metric { background: var(--bg-alt); border-radius: var(--radius); padding: 12px; }
.metric-label { font-size: 12px; color: var(--text-muted); margin: 0 0 4px; }
.metric-value { font-size: 16px; font-weight: 500; margin: 0; }
.card { background: var(--bg); border-radius: 12px; border: 1px solid var(--border); padding: 1rem 1.25rem; margin-bottom: 1.25rem; }
.kv { width: 100%; font-size: 14px; border-collapse: collapse; }
.kv td { padding: 6px 0; vertical-align: top; }
.kv td:first-child { color: var(--text-muted); width: 40%; }
.acc-table { width: 100%; font-size: 14px; border-collapse: collapse; }
.acc-table th { text-align: left; font-weight: 500; padding: 8px 0; color: var(--text-muted); border-bottom: 1px solid var(--border); }
.acc-table td { padding: 6px 0; border-bottom: 1px solid var(--border); }
.acc-table tr:last-child td { border-bottom: none; }
a { color: var(--accent); }
.cta { background: var(--accent-bg); border-radius: 12px; padding: 1rem 1.25rem; margin: 1.5rem 0; }
.cta p { margin: 0 0 .25rem; color: var(--accent); font-size: 14px; }
.cta strong { font-weight: 500; }
.org-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.org-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; text-decoration: none; color: var(--text); display: block; }
.org-card:hover { border-color: #b9b6a8; }
.org-card-name { font-weight: 500; margin: 0 0 2px; font-size: 14px; }
.org-card-meta { font-size: 12px; color: var(--text-muted); margin: 0; }
.source-note { font-size: 12px; color: var(--text-muted); margin: 0 0 1.5rem; }
.site-footer { border-top: 1px solid var(--border); padding: 1.5rem 0; margin-top: 3rem; font-size: 12px; color: var(--text-muted); }
.site-footer p { margin: 0 0 .5rem; }
.site-footer a { color: var(--text-muted); }
.site-footer .origin-note { font-size: 13px; color: var(--text); }
.site-footer .origin-note a { color: var(--text); }
.article p { margin: 0 0 1rem; line-height: 1.7; }
.article ul, .article ol { margin: 0 0 1.25rem; padding-left: 1.5rem; line-height: 1.7; }
.article li { margin-bottom: .35rem; }
.article h2 { margin-top: 2rem; padding-top: .25rem; border-top: 1px solid var(--border); }
.article h3 { margin-top: 1.5rem; color: var(--text); }
.article blockquote { border-left: 3px solid var(--accent); padding: .5rem 0 .5rem 1rem; color: var(--text-muted); margin: 1rem 0; font-style: italic; }
.article .callout { background: var(--bg-alt); border-radius: var(--radius); padding: 1rem 1.25rem; margin: 1.25rem 0; }
.article .callout-info { background: var(--accent-bg); }
.article .callout p:last-child { margin-bottom: 0; }
.article .meta-row { font-size: 13px; color: var(--text-muted); margin: 0 0 1.5rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.article table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 14px; }
.article table th { text-align: left; font-weight: 500; padding: 8px; background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.article table td { padding: 8px; border-bottom: 1px solid var(--border); }
.related { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.related h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); margin: 0 0 .5rem; }
.faq summary { cursor: pointer; padding: .75rem 0; font-weight: 500; border-bottom: 1px solid var(--border); }
.faq details[open] summary { border-bottom: none; }
.faq details { margin-bottom: .5rem; }
.faq details > div { padding: .5rem 0 1rem; color: var(--text); }
.partial-note { background: var(--bg-alt); border-radius: var(--radius); padding: .75rem 1rem; font-size: 13px; color: var(--text-muted); margin: 0 0 1.5rem; }

/* Filtre par domaine (annuaire) et raccourcis de l'accueil */
[hidden] { display: none !important; }
.letter-nav { margin: 1rem 0; display: flex; flex-wrap: wrap; gap: 6px; }
.letter-nav a { display: inline-block; padding: 4px 8px; background: var(--bg-alt); border-radius: 4px; text-decoration: none; }
.letter-section { margin: 2rem 0; }
.letter-section h2 { font-size: 22px; border-bottom: 1px solid var(--border); padding-bottom: .25rem; }
.domain-filter { background: var(--bg-alt); border-radius: 12px; padding: 1rem 1.25rem; margin: 1.25rem 0 1.5rem; }
.domain-filter-label { font-size: 13px; font-weight: 500; color: var(--text-muted); margin: 0 0 .5rem; }
.domain-filter-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.domain-btn { font: inherit; font-size: 15px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; min-height: 44px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg); color: var(--text); cursor: pointer; }
.domain-btn:hover { border-color: #b9b6a8; }
.domain-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.domain-btn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.domain-btn-count { font-size: 12px; padding: 1px 7px; border-radius: 999px; background: var(--bg-alt); color: var(--text-muted); }
.domain-btn[aria-pressed="true"] .domain-btn-count { background: rgba(255,255,255,.2); color: #fff; }
.domain-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.domain-filter-status { font-size: 13px; color: var(--text-muted); margin: .75rem 0 0; }
.domain-filter-status strong { color: var(--text); font-weight: 500; }
.domain-filter-empty { font-size: 14px; margin: .5rem 0 0; }
.org-card-domains { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0 0; }
.domain-tag { font-size: 11px; padding: 1px 8px; border-radius: 999px; border: 1px solid transparent; }
.domain-dot--electricite { background: #c98a00; } .domain-tag--electricite { background: #fdf3dc; color: #6b4a00; }
.domain-dot--gaz { background: #1f6fb2; } .domain-tag--gaz { background: #e6f1fb; color: #0c447c; }
.domain-dot--incendie { background: #c0392b; } .domain-tag--incendie { background: #fbe9e7; color: #8a2116; }
.domain-dot--levage { background: #4f7a3a; } .domain-tag--levage { background: #e9f3e3; color: #2f5222; }
.domain-shortcuts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 0 0 .5rem; }
.domain-shortcut { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: var(--text); background: var(--bg); }
.domain-shortcut:hover { border-color: #b9b6a8; }
.domain-shortcut-name { font-weight: 500; }
.domain-shortcut-count { font-size: 12px; color: var(--text-muted); margin-left: auto; }
