:root {
  color-scheme: light;
  --page: #f3f4f7;
  --surface: #ffffff;
  --line: #e1e4e9;
  --line-strong: #c2c8d1;
  --ink: #14161a;
  --ink-soft: #444b56;
  --ink-faint: #69717e;
  --brand: #ffd60a;
  --brand-deep: #e6bd00;
  --brand-tint: #fff5c2;
  --header: #ffd60a;
  --header-ink: #14161a;
  --link: #1746c7;
  --plate: #1746c7;
  --electricite: #ffd60a;
  --electricite-ink: #7a5c00;
  --electricite-tint: #fff5c2;
  --eau: #1677d9;
  --eau-ink: #0f5aa8;
  --eau-tint: #e3f0fc;
  --gaz: #e8590c;
  --gaz-ink: #a33d05;
  --gaz-tint: #fde8da;
  --live: #d92d20;
  --late: #a65a00;
  --ok: #1c7c45;
  --logo-bg: #14161a;
  --logo-fg: #ffd60a;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 22, 26, .07);
  --head: "Bricolage Grotesque", "Arial Narrow", "Helvetica Neue", sans-serif;
  --body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
}
html[data-theme="dark"] {
  color-scheme: dark;
  --page: #0d0f12;
  --surface: #16191e;
  --line: #272c34;
  --line-strong: #3b424d;
  --ink: #f1f3f6;
  --ink-soft: #b7bfca;
  --ink-faint: #8a93a0;
  --brand-deep: #6b5a00;
  --brand-tint: #2b2600;
  --header: #16191e;
  --header-ink: #f1f3f6;
  --link: #94b4ff;
  --plate: #3562e3;
  --electricite-ink: #ffd60a;
  --electricite-tint: #2b2600;
  --eau-ink: #7cbcf5;
  --eau-tint: #0f2940;
  --gaz-ink: #ff9a63;
  --gaz-tint: #3a1b08;
  --live: #ff5a4f;
  --late: #f0a73a;
  --ok: #4cc17f;
  --logo-bg: #ffd60a;
  --logo-fg: #14161a;
  --shadow: none;
}
.utility-electricite { --u: var(--electricite); --u-ink: var(--electricite-ink); --u-tint: var(--electricite-tint); --u-on: #14161a; --u-ring: #14161a; }
.utility-eau { --u: var(--eau); --u-ink: var(--eau-ink); --u-tint: var(--eau-tint); --u-on: #ffffff; --u-ring: #ffffff; }
.utility-gaz { --u: var(--gaz); --u-ink: var(--gaz-ink); --u-tint: var(--gaz-tint); --u-on: #ffffff; --u-ring: #ffffff; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 12px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 16.5px/1.5 var(--body); overflow-x: clip; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2 { font-family: var(--head); line-height: 1.06; letter-spacing: -.015em; }
h1 { font-size: clamp(31px, 4.1vw, 48px); font-weight: 800; }
h2 { font-size: clamp(23px, 2.6vw, 31px); font-weight: 700; }
h3 { font-size: 17px; font-weight: 700; line-height: 1.25; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { color: inherit; font: inherit; }
button, select { cursor: pointer; }
img, svg { display: block; }
b, strong { font-weight: 700; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }
.icon { display: inline-block; width: 1em; height: 1em; flex: none; vertical-align: -.14em; fill: none; stroke: currentColor; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; z-index: 100; left: 12px; top: 12px; padding: 10px 14px; background: var(--surface); border: 2px solid var(--ink); border-radius: 8px; }
.wrap { width: min(100% - 48px, 1240px); margin-inline: auto; }
.text-link, .prose a, .page-lead a, .note a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.text-link:hover, .prose a:hover, .note a:hover { text-decoration-thickness: 2px; }
.number { font-variant-numeric: tabular-nums; }

/* En-tête */
.site-header { background: var(--header); color: var(--header-ink); }
html[data-theme="dark"] .site-header { border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 26px; min-height: 66px; }
.logo { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.logo-mark { width: 32px; height: 32px; }
.logo-mark rect { fill: var(--logo-bg); }
.logo-mark path { fill: none; stroke: var(--logo-fg); stroke-width: 3; stroke-linecap: round; }
.logo-word { font-family: var(--head); font-size: 25px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.logo-word span { font-weight: 600; opacity: .62; }
.site-nav { display: flex; align-items: center; gap: 2px; min-width: 0; }
.site-nav a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 9px; font-weight: 700; white-space: nowrap; }
.site-nav a .icon { font-size: 17px; }
.site-nav a:hover { background: color-mix(in srgb, var(--header-ink) 11%, transparent); }
.site-nav a[aria-current="page"] { background: var(--header-ink); color: var(--header); }
.header-status { display: inline-flex; align-items: center; gap: 9px; margin-left: auto; font-size: 15px; white-space: nowrap; }
.header-status a { display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 13px; border-radius: 999px; background: var(--header-ink); color: var(--header); font-weight: 600; }
.header-status a b { font-variant-numeric: tabular-nums; }
.header-status a:hover { text-decoration: underline; text-underline-offset: 3px; }
.header-status span { font-variant-numeric: tabular-nums; opacity: .78; }
.theme-toggle { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; padding: 0; border: 1.5px solid color-mix(in srgb, var(--header-ink) 55%, transparent); border-radius: 10px; background: transparent; color: var(--header-ink); font-size: 18px; }
.theme-toggle:hover { background: color-mix(in srgb, var(--header-ink) 11%, transparent); }
.theme-toggle .theme-sun, html[data-theme="dark"] .theme-toggle .theme-moon { display: none; }
html[data-theme="dark"] .theme-toggle .theme-sun { display: inline-grid; }
.menu-button { display: none; align-items: center; gap: 8px; min-height: 40px; padding: 0 13px; border-radius: 10px; background: var(--header-ink); color: var(--header); font-weight: 700; }
.menu-button .icon { font-size: 20px; }

/* Menu latéral */
.menu-backdrop { position: fixed; z-index: 80; inset: 0; background: rgba(13, 15, 18, .58); opacity: 0; pointer-events: none; transition: opacity .2s; }
.menu-open .menu-backdrop { opacity: 1; pointer-events: auto; }
.menu-open { overflow: hidden; }
.site-menu { position: fixed; z-index: 90; top: 0; right: 0; bottom: 0; width: min(88vw, 372px); overflow-y: auto; overscroll-behavior: contain; background: var(--surface); box-shadow: -14px 0 40px rgba(0, 0, 0, .28); transform: translateX(105%); visibility: hidden; transition: transform .24s ease, visibility 0s .24s; }
.menu-open .site-menu, .site-menu:target { transform: none; visibility: visible; transition: transform .24s ease; }
.menu-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; min-height: 62px; padding: 0 10px 0 18px; background: var(--header); color: var(--header-ink); }
html[data-theme="dark"] .menu-head { border-bottom: 1px solid var(--line); }
.menu-close { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; font-size: 24px; }
.menu-close:hover { background: color-mix(in srgb, var(--header-ink) 11%, transparent); }
.menu-status { padding: 12px 20px; border-bottom: 1px solid var(--line); background: var(--page); font-size: 15.5px; }
.menu-group { display: grid; padding: 8px; border-bottom: 1px solid var(--line); }
.menu-group > a, .menu-regions summary { display: flex; align-items: center; gap: 13px; min-height: 50px; padding: 0 12px; border-radius: 10px; font-size: 17.5px; font-weight: 700; }
.menu-group > a:hover, .menu-regions summary:hover { background: var(--page); }
.menu-group > a[aria-current="page"] { background: var(--brand-tint); }
.menu-group > a > .icon, .menu-regions summary > .icon:first-child { width: 32px; height: 21px; color: var(--ink-soft); }
.menu-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--u); color: var(--u-on); font-size: 18px; }
.menu-group b { margin-left: auto; min-width: 34px; padding: 2px 9px; border-radius: 999px; background: var(--ink); color: var(--surface); font-size: 15px; text-align: center; font-variant-numeric: tabular-nums; }
.menu-regions summary { cursor: pointer; list-style: none; }
.menu-regions summary::-webkit-details-marker { display: none; }
.menu-regions summary > .icon:last-child { margin-left: auto; color: var(--ink-faint); transition: transform .15s; }
.menu-regions[open] summary > .icon:last-child { transform: rotate(180deg); }
.menu-regions div { display: grid; padding: 2px 12px 8px 57px; }
.menu-regions div a { padding: 8px 0; font-size: 16px; }
.menu-regions div a:hover { text-decoration: underline; text-underline-offset: 3px; }
.theme-toggle.menu-theme { display: flex; align-items: center; justify-content: center; gap: 10px; width: calc(100% - 32px); height: 48px; margin: 16px 16px calc(20px + env(safe-area-inset-bottom)); border: 1px solid var(--line-strong); color: var(--ink); font-size: 16px; font-weight: 700; }
.theme-toggle.menu-theme:hover { background: var(--page); }
.menu-theme-light, html[data-theme="dark"] .menu-theme-dark { display: none; }
html[data-theme="dark"] .menu-theme-light { display: inline; }
.tab-bar { display: none; }

/* Tête de page */
.page-head { padding: 26px 0 30px; background: var(--surface); border-bottom: 1px solid var(--line); }
.page-head[class*="utility-"] { border-bottom: 5px solid var(--u); }
.page-head.is-home { padding: 34px 0 52px; background: var(--header); color: var(--header-ink); border-bottom: 0; }
html[data-theme="dark"] .page-head.is-home { border-bottom: 1px solid var(--line); }
.is-home .page-lead { font-size: clamp(17.5px, 1.65vw, 20.5px); }
.is-home .search-box { height: 62px; border-radius: 15px; box-shadow: 0 6px 0 rgba(20, 22, 26, .13); }
.is-home .search-box:focus-within { outline-color: var(--ink); outline-width: 3px; }
.is-home .search-examples, .is-home .search-examples a { color: color-mix(in srgb, var(--header-ink) 78%, transparent); }
.is-home .search-examples a { text-decoration-color: color-mix(in srgb, var(--header-ink) 40%, transparent); }
.is-home .search-examples a:hover { color: var(--header-ink); }
.is-home .service-card { border-color: transparent; background: var(--surface); color: var(--ink); box-shadow: 0 6px 0 rgba(20, 22, 26, .13); }
.is-home .service-card:hover { border-color: var(--ink); }
html[data-theme="dark"] .is-home .service-card, html[data-theme="dark"] .is-home .search-box { box-shadow: none; }
html[data-theme="dark"] .is-home .service-card { background: var(--page); border-color: var(--line); }
.crumbs { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-bottom: 14px; color: var(--ink-soft); font-size: 14.5px; }
.crumbs a { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.crumbs a:hover { text-decoration-color: currentColor; }
.crumbs span { color: var(--ink-faint); }
.dept-tag { display: inline-flex; align-items: center; gap: .55em; margin-left: .35em; padding-right: .7em; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); font: 600 15.5px/1 var(--body); letter-spacing: 0; vertical-align: middle; white-space: nowrap; }
.dept-tag b { padding: 8px 8px; background: var(--plate); color: #fff; font-variant-numeric: tabular-nums; }
a.dept-tag:hover { border-color: var(--ink); }
.page-lead { margin-top: 14px; font-size: clamp(17px, 1.55vw, 19.5px); line-height: 1.45; }
.page-meta { margin-top: 8px; color: var(--ink-faint); font-size: 14.5px; }
.page-body { padding: 32px 0 64px; }
.section { margin-top: 52px; }
.section:first-child { margin-top: 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 18px; margin-bottom: 16px; }
.section-head p, .section-head a { color: var(--ink-faint); font-size: 15px; }
.section-head > a { padding: 6px 13px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--ink); font-weight: 700; }
.section-head > a:hover { border-color: var(--ink); }
.section-head h2 a { color: inherit; font-size: inherit; }
.section-head h2 a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.columns { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.columns.is-even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.note { color: var(--ink-soft); font-size: 15.5px; }
.prose p { margin-top: 12px; font-size: 17px; line-height: 1.6; }
.prose p:first-child { margin-top: 0; }
.prose.is-wide { columns: 2; column-gap: 40px; }
.prose.is-wide p { break-inside: avoid; }
.prose h2 { margin: 30px 0 4px; font-size: 24px; }
.prose h2:first-child { margin-top: 0; }

.state { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 10px; border-radius: 999px; background: var(--page); font-weight: 700; }
.state::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--live); }
.state.is-plan::before { background: transparent; border: 2px solid var(--ink); }
.state.is-late { color: var(--late); }
.state.is-late::before { background: var(--late); }
.state.is-arch { color: var(--ink-faint); }
.state.is-arch::before { background: var(--ink-faint); }

/* Recherche et accueil */
.search { margin-top: 22px; }
.search-box { position: relative; display: flex; align-items: center; gap: 10px; height: 58px; padding: 0 7px 0 17px; background: var(--surface); border: 2px solid var(--ink); border-radius: 13px; }
.search-box > .icon { color: var(--ink-faint); font-size: 21px; }
.search-box input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font-size: 18px; }
.search-box input::placeholder { color: var(--ink-faint); }
.search-box:focus-within { outline: 4px solid var(--brand); outline-offset: 0; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 20px; border: 0; border-radius: 9px; background: var(--ink); color: var(--surface); font-weight: 700; white-space: nowrap; }
.button:hover { opacity: .86; }
.suggestions { position: absolute; z-index: 30; inset: calc(100% + 8px) -2px auto; padding: 5px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: 0 12px 30px rgba(20, 22, 26, .16); }
.suggestions li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: center; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.suggestions li:hover, .suggestions li[aria-selected="true"] { background: var(--page); }
.suggestions li .icon { color: var(--ink-faint); }
.suggestions strong, .suggestions small { display: block; }
.suggestions small { color: var(--ink-faint); font-size: 13.5px; }
.search-examples { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 18px; color: var(--ink-faint); font-size: 15px; }
.search-examples a { color: var(--ink-soft); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.search-examples a:hover { color: var(--ink); text-decoration-color: currentColor; }
.home-head { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.is-home h1 { font-size: clamp(34px, 4.7vw, 58px); line-height: 1; letter-spacing: -.025em; }
.service-summary { display: grid; gap: 12px; }
.service-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "icon name total" "icon detail total"; align-items: center; column-gap: 16px; padding: 18px 24px 18px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--page); }
.service-card:hover { border-color: var(--ink); }
.service-card-icon { grid-area: icon; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 14px; box-shadow: inset 0 0 0 1.5px rgba(20, 22, 26, .16); background: var(--u); color: var(--u-on); font-size: 27px; }
.service-card-name { grid-area: name; align-self: end; font-size: 19px; font-weight: 700; line-height: 1.2; }
.service-card-detail { grid-area: detail; align-self: start; color: var(--ink-soft); font-size: 15px; }
.service-card b { grid-area: total; font-family: var(--head); font-size: clamp(40px, 4.2vw, 56px); font-weight: 800; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

/* Liste et carte */
.board-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; margin-bottom: 14px; }
.province-select { position: relative; display: inline-flex; align-items: center; }
.province-select .icon { position: absolute; right: 12px; pointer-events: none; font-size: 15px; color: var(--ink-faint); }
.province-select select { appearance: none; min-height: 42px; padding: 6px 36px 6px 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); font-weight: 700; }
.board-panel { overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(20, 22, 26, .05), 0 10px 30px -18px rgba(20, 22, 26, .25); }
html[data-theme="dark"] .board-panel { box-shadow: none; }
.board-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.filter-services { display: flex; flex-wrap: wrap; gap: 6px; margin-right: auto; }
.service-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 4px 14px 4px 11px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); font-weight: 700; }
.service-chip::before { content: ""; width: 12px; height: 12px; border-radius: 4px; background: var(--u, var(--ink)); box-shadow: inset 0 0 0 1px rgba(20, 22, 26, .18); }
.service-chip b { color: var(--ink-faint); font-weight: 400; font-variant-numeric: tabular-nums; }
.service-chip:hover { border-color: var(--ink); }
.service-chip[aria-current="true"] { border-color: var(--ink); background: var(--u-tint, var(--page)); }
.filter-status { display: inline-flex; padding: 3px; border-radius: 11px; background: var(--page); }
.filter-status button { min-height: 34px; padding: 3px 13px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-soft); font-size: 15px; font-weight: 700; }
.filter-status button[aria-pressed="true"] { background: var(--ink); color: var(--surface); }
.filter-reset { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 3px 11px; border: 1px dashed var(--line-strong); border-radius: 9px; background: transparent; font-size: 15px; }
.filter-reset:hover { border-style: solid; border-color: var(--ink); }
.search-answer { padding: 13px 16px; border-bottom: 1px solid var(--line); background: var(--brand-tint); }
.search-answer strong { display: block; font-size: 17.5px; }
.search-answer p { color: var(--ink-soft); font-size: 15.5px; }
.search-answer a { display: inline-block; margin-top: 4px; color: var(--link); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.results-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 40px; padding: 4px 16px; border-bottom: 1px solid var(--line); color: var(--ink-faint); font-size: 14.5px; }
.mobile-view { display: none; }
.board-grid { display: grid; grid-template-columns: minmax(380px, 500px) minmax(0, 1fr); height: 640px; }
.board-list { display: flex; flex-direction: column; min-width: 0; min-height: 0; border-right: 1px solid var(--line); }
.incident-list { flex: 1; min-height: 0; overflow: auto; scrollbar-width: thin; }
.incident-list.is-static { overflow: visible; }
.incident { position: relative; display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.incident:hover { background: var(--page); }
.incident.is-selected { background: var(--brand-tint); box-shadow: inset 4px 0 var(--ink); }
.incident-link { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 14px; align-items: center; flex: 1; min-width: 0; padding: 13px 6px 13px 16px; }
.incident-link > .icon { display: none; }
.utility-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; box-shadow: inset 0 0 0 1.5px rgba(20, 22, 26, .14); background: var(--u); color: var(--u-on); font-size: 19px; }
.incident-copy { display: block; min-width: 0; }
.incident h3 { font-size: 16.5px; }
.incident-impact { display: block; color: var(--ink-soft); font-size: 14.5px; }
.incident-side { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; text-align: right; white-space: nowrap; }
.incident-side b { display: inline-flex; align-items: center; gap: 7px; padding: 2px 9px 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--live) 11%, transparent); font-size: 14px; font-variant-numeric: tabular-nums; }
.incident.is-plan .incident-side b { background: var(--page); }
.incident.is-late .incident-side b { background: color-mix(in srgb, var(--late) 13%, transparent); }
.incident-side b::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--live); }
.incident.is-plan .incident-side b::before { background: transparent; border: 1.8px solid var(--ink); }
.incident.is-late .incident-side b { color: var(--late); }
.incident.is-late .incident-side b::before { background: var(--late); }
.incident-side span { color: var(--ink-faint); font-size: 13.5px; }
.row-map { display: inline-grid; place-items: center; flex: none; width: 38px; height: 38px; margin-right: 6px; padding: 0; border: 0; border-radius: 9px; background: transparent; color: var(--ink-faint); font-size: 18px; }
.row-map:hover { background: var(--line); color: var(--ink); }
.incident-list.is-static .row-map { display: none; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 15px; }
.pager a { display: inline-flex; align-items: center; gap: 6px; color: var(--link); font-weight: 700; }
.pager p { color: var(--ink-faint); }
.empty-state { margin: auto; padding: 30px 22px; text-align: center; }
.empty-state strong { display: block; font-family: var(--head); font-size: 21px; }
.empty-state p { margin-top: 6px; color: var(--ink-soft); }
.empty-state button { margin-top: 12px; border: 0; background: none; color: var(--link); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.board-map { position: relative; z-index: 0; min-height: 320px; background: #dfe5ec; }
.board-map .map-canvas { position: absolute; inset: 0; }
.map-title { position: absolute; z-index: 500; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 9px; background: #fff; color: #14161a; font-size: 14.5px; font-weight: 700; box-shadow: 0 1px 4px rgba(20, 22, 26, .25); }
.map-controls { position: absolute; z-index: 500; right: 12px; top: 12px; display: grid; gap: 8px; }
.map-controls div { display: grid; overflow: hidden; border-radius: 9px; box-shadow: 0 1px 4px rgba(20, 22, 26, .25); }
.map-controls button { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-bottom: 1px solid #e1e4e9; background: #fff; color: #14161a; font-size: 18px; }
.map-controls button:last-child { border-bottom: 0; }
.map-controls button:hover { background: #f4f5f7; }
.map-legend { position: absolute; z-index: 500; left: 12px; bottom: 12px; display: flex; gap: 14px; padding: 7px 12px; border-radius: 9px; background: #fff; color: #14161a; font-size: 13.5px; box-shadow: 0 1px 4px rgba(20, 22, 26, .25); }
.map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.map-legend i { width: 12px; height: 12px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(20, 22, 26, .3); }
.map-note { position: absolute; z-index: 500; left: 12px; right: 12px; bottom: 54px; padding: 8px 12px; border-radius: 9px; background: #fff; color: #14161a; font-size: 14.5px; }
.count-pin { width: auto !important; height: auto !important; }
.count-pin.is-mixed { --u: #14161a; --u-on: #fff; --u-ring: #fff; }
.count-dot, .count-bubble { display: inline-flex; align-items: center; gap: 6px; transform: translate(-50%, -50%); white-space: nowrap; }
.count-dot i, .count-bubble i { display: grid; place-items: center; min-width: 32px; height: 32px; padding: 0 8px; border: 2px solid var(--u-ring, #fff); border-radius: 999px; background: var(--u, #14161a); color: var(--u-on, #fff); font-style: normal; box-shadow: 0 1px 5px rgba(20, 22, 26, .4); }
.count-dot .icon, .count-bubble .icon { display: none; }
.count-dot b, .count-bubble b { font-size: 14.5px; font-variant-numeric: tabular-nums; }
.count-bubble small { padding: 2px 8px; border-radius: 6px; background: #fff; color: #14161a; font-size: 13px; font-weight: 700; box-shadow: 0 1px 3px rgba(20, 22, 26, .3); }
.count-pin.is-selected i, .map-marker.is-selected { outline: 3px solid #14161a; outline-offset: 2px; }
.map-marker { display: grid !important; place-items: center; width: 30px !important; height: 30px !important; border: 2px solid var(--u-ring, #fff); border-radius: 50%; background: var(--u, #14161a); color: var(--u-on, #fff); font-size: 15px; box-shadow: 0 1px 5px rgba(20, 22, 26, .4); }
.leaflet-popup-content { margin: 12px 14px; font: 400 15px/1.4 var(--body); color: #14161a; }
.leaflet-popup-content strong { display: block; font-size: 16px; }
.leaflet-popup-content a { display: inline-block; margin-top: 6px; color: #1746c7; font-weight: 700; }
.map-popup-time { display: block; margin-top: 3px; color: #444b56; }
.leaflet-container { font-family: var(--body); }

/* Listes, tableaux */
.link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.link-grid a { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 46px; padding: 7px 10px 7px 14px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.link-grid a:hover { border-color: var(--ink); }
.link-grid b { min-width: 32px; padding: 1px 9px; border-radius: 999px; background: var(--ink); color: var(--surface); font-size: 15px; text-align: center; font-variant-numeric: tabular-nums; }
.link-grid .is-zero { color: var(--ink-soft); }
.link-grid .is-zero b { background: none; color: var(--ink-faint); font-weight: 400; }
.link-grid a:not(.is-zero):has(b) { border-color: var(--line-strong); font-weight: 700; }
.dept-code { display: inline-block; min-width: 2.2em; margin-right: 8px; color: var(--ink-faint); font-style: normal; font-variant-numeric: tabular-nums; }
.table-scroll { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.data-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.data-table th, .data-table td { padding: 11px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.data-table thead th { background: var(--page); color: var(--ink-soft); font-size: 14px; font-weight: 600; white-space: nowrap; }
.data-table tbody tr:last-child th, .data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody th { font-weight: 700; }
.data-table td a { color: var(--link); font-weight: 700; }
.data-table tbody th a:hover, .data-table td a:hover { text-decoration: underline; text-underline-offset: 3px; }
.data-table .is-number { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.data-table .is-quiet, .data-table tr.is-zero td { color: var(--ink-faint); }
.count { display: inline-block; min-width: 30px; padding: 0 8px; border-radius: 999px; background: var(--u-tint); color: var(--u-ink); text-align: center; }
.service-dot { display: inline-block; width: 12px; height: 12px; margin-right: 8px; border-radius: 4px; background: var(--u); box-shadow: inset 0 0 0 1px rgba(20, 22, 26, .18); vertical-align: -1px; }
.history li { display: grid; grid-template-columns: 170px minmax(0, 1fr) auto; gap: 4px 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.history time { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.history a { font-weight: 700; }
.history a:hover { text-decoration: underline; text-underline-offset: 3px; }
.history span { color: var(--ink-faint); font-size: 15px; }
.clear-note { display: flex; align-items: center; gap: 12px; padding: 17px 19px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); font-size: 17px; }
.clear-note .icon { display: grid; padding: 5px; width: 30px; height: 30px; border-radius: 50%; background: var(--ok); color: #fff; }
.list-panel { overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.list-panel .incident:last-child { border-bottom: 0; }
.list-group { padding: 9px 16px; border-bottom: 1px solid var(--line); background: var(--page); color: var(--ink-soft); font-size: 14.5px; font-weight: 700; }

/* Fiche d'une coupure */
.outage-head { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 40px; align-items: start; }
.outage-head .state { margin-bottom: 12px; }
.outage-head h1 small { display: block; margin-top: 8px; font-family: var(--body); font-size: clamp(18px, 1.8vw, 21px); font-weight: 400; line-height: 1.35; letter-spacing: 0; }
.eta-box { padding: 18px 20px 16px; background: var(--brand-tint); border: 1px solid var(--brand-deep); border-radius: var(--radius); }
.eta-label { color: var(--ink-soft); font-size: 15px; font-weight: 600; }
.eta-time { font-family: var(--head); font-size: 60px; font-weight: 800; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.eta-time.is-text { font-size: 30px; line-height: 1.15; letter-spacing: -.015em; }
.eta-day { margin-top: 4px; font-weight: 700; }
.eta-left { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--brand-deep); color: var(--ink-soft); font-size: 15px; }
.facts div { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--ink-soft); }
.facts dd { font-weight: 700; }
.facts dd small { display: block; color: var(--ink-faint); font-size: 14.5px; font-weight: 400; }
.street-list { display: flex; flex-wrap: wrap; gap: 7px; }
.street-list a, .street-list span { padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--surface); font-size: 15.5px; }
.street-list a:hover { border-color: var(--ink); }
.notice-text { padding: 15px 19px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.notice-text p + p { margin-top: 8px; }
.notice-text footer { margin-top: 10px; color: var(--ink-faint); font-size: 14.5px; }
.street-map { position: relative; z-index: 0; height: 350px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #dfe5ec; }
.street-map .map-canvas { position: absolute; inset: 0; z-index: 1; }
.map-still { position: absolute; inset: 0; z-index: 2; overflow: hidden; }
.map-still img { position: absolute; max-width: none; }
.map-still .map-marker { position: absolute; left: calc(50% - 15px); top: calc(50% - 15px); }
.side-box { padding: 17px 19px 19px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.side-box + .side-box { margin-top: 16px; }
.side-box h2 { font-size: 22px; }
.side-box p { margin-top: 7px; color: var(--ink-soft); font-size: 15.5px; }
.phone-number { display: inline-flex; align-items: center; gap: 10px; margin-top: 9px; padding: 9px 16px 9px 12px; border-radius: 11px; background: var(--brand); color: #14161a; font-family: var(--head); font-size: 25px; font-weight: 800; line-height: 1.1; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.phone-number .icon { font-size: 21px; }
.phone-number:hover { background: var(--brand-deep); }
html[data-theme="dark"] .phone-number:hover { background: #ffe14d; }
.vote-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.vote-actions button { min-height: 46px; padding: 6px 10px; border: 1.5px solid var(--ink); border-radius: 10px; background: var(--surface); font-weight: 700; }
.vote-actions button:hover { background: var(--page); }
.vote-actions button.is-on { background: var(--ink); color: var(--surface); }
.nearby-list li { border-bottom: 1px solid var(--line); }
.nearby-list li:last-child { border-bottom: 0; }
.nearby-list a { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; }
.nearby-list a:hover b { text-decoration: underline; text-underline-offset: 3px; }
.nearby-list small { display: block; color: var(--ink-faint); font-size: 14px; }
.nearby-list span { color: var(--ink-soft); font-size: 14.5px; white-space: nowrap; }

/* Pages du site */
.doc-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.doc-nav a { padding: 7px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); font-size: 15px; font-weight: 600; }
.doc-nav a:hover { border-color: var(--ink); }
.doc-nav a[aria-current="page"] { border-color: var(--ink); background: var(--ink); color: var(--surface); }
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 5px; font-weight: 700; }
.form input, .form select, .form textarea { width: 100%; padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); font-weight: 400; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid var(--brand); outline-offset: 0; border-color: var(--ink); }
.form .button { justify-self: start; min-height: 48px; }
.form-message { padding: 13px 16px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); }
.form-message.is-error { border-color: var(--live); }
.news-list li { border-bottom: 1px solid var(--line); }
.news-list a { display: block; padding: 16px 0; }
.news-list h2 { font-size: 24px; }
.news-list a:hover h2 { text-decoration: underline; text-underline-offset: 4px; }
.news-list p { margin-top: 5px; color: var(--ink-soft); }
.news-list time { display: block; margin-top: 6px; color: var(--ink-faint); font-size: 14.5px; }
.bar { display: block; height: 10px; min-width: 60px; border-radius: 5px; background: var(--line); }
.bar i { display: block; height: 100%; border-radius: 5px; background: var(--ink); }

/* Pied de page */
.site-footer { margin-top: 24px; padding: 40px 0 30px; background: var(--surface); border-top: 5px solid var(--brand); }
.footer-columns { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr) minmax(0, 1.9fr) minmax(0, .9fr); gap: 36px; }
.footer-columns h2 { margin-bottom: 9px; font-family: var(--body); font-size: 15px; color: var(--ink-faint); font-weight: 400; letter-spacing: 0; }
.footer-columns p { margin-top: 14px; color: var(--ink-soft); font-size: 15.5px; }
.footer-columns nav a { display: block; padding: 3px 0; }
.footer-columns nav a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-regions { columns: 2; column-gap: 28px; }
.footer-note { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--ink-faint); font-size: 14.5px; }

@media (max-width: 1100px) {
  .header-status span { display: none; }
  .site-nav a { padding: 8px 9px; }
  .header-row { gap: 16px; }
}
@media (max-width: 1040px) {
  .columns, .columns.is-even, .home-head, .outage-head { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .columns.is-outage aside { order: -1; }
  .prose.is-wide { columns: 1; }
  .footer-columns { grid-template-columns: 1fr 1fr; }
  .service-summary { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
}
@media (max-width: 920px) {
  .site-nav, .site-header .theme-toggle { display: none; }
  .menu-button { display: inline-flex; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 58px; }
  body { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
  .wrap { width: min(100% - 28px, 1240px); }
  .site-header { position: sticky; z-index: 60; top: 0; }
  .header-row { min-height: 58px; gap: 10px; }
  .logo { gap: 8px; }
  .logo-mark { width: 30px; height: 30px; }
  .logo-word { font-size: 22px; }
  .header-status a { padding: 5px 11px; font-size: 14px; }
  .menu-button { width: 44px; height: 42px; padding: 0; justify-content: center; }
  .menu-button span { display: none; }
  .menu-button .icon { font-size: 22px; }
  .tab-bar { position: fixed; z-index: 70; left: 0; right: 0; bottom: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); padding-bottom: env(safe-area-inset-bottom); background: var(--surface); border-top: 1px solid var(--line-strong); }
  .tab-bar a { position: relative; display: grid; justify-items: center; align-content: center; gap: 3px; min-height: 60px; color: var(--ink-faint); font-size: 12.5px; font-weight: 700; }
  .tab-bar .icon { font-size: 23px; }
  .tab-bar a[aria-current="page"] { color: var(--ink); }
  .tab-bar a[aria-current="page"] .icon { box-sizing: content-box; padding: 3px 14px; margin: -3px 0; border-radius: 999px; background: var(--u, var(--brand)); color: var(--u-on, #14161a); }
  h1 { font-size: 30px; }
  h2 { font-size: 23px; }
  .page-head { padding: 18px 0 22px; }
  .page-head.is-home { padding: 16px 0 26px; }
  .is-home .search-box { height: 58px; box-shadow: 0 4px 0 rgba(20, 22, 26, .13); }
  .is-home .service-card { box-shadow: 0 4px 0 rgba(20, 22, 26, .13); }
  .is-home h1 { font-size: 34px; }
  .page-lead { margin-top: 10px; font-size: 17px; }
  .page-body { padding: 22px 0 40px; }
  .section { margin-top: 36px; }
  .crumbs { flex-wrap: nowrap; margin: 0 -14px 12px; padding: 0 14px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
  .crumbs::-webkit-scrollbar { display: none; }
  .dept-tag { display: flex; width: max-content; margin: 10px 0 0; }
  .search { margin-top: 16px; }
  .search-box { height: 56px; padding-left: 14px; }
  .search-box input { font-size: 17px; }
  .button { min-height: 42px; padding: 0 16px; }
  .home-head { gap: 18px; }
  .service-summary { gap: 8px; }
  .service-card { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "icon total" "name name" "detail detail"; row-gap: 2px; column-gap: 10px; padding: 12px 13px 12px; }
  .service-card-icon { width: 40px; height: 40px; border-radius: 11px; font-size: 22px; }
  .service-card b { justify-self: end; font-size: 36px; }
  .service-card-name { margin-top: 6px; font-size: 16.5px; }
  .service-card-detail { font-size: 13.5px; line-height: 1.25; }
  .board-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .province-select { display: flex; width: 100%; }
  .province-select select { flex: 1; width: 100%; min-height: 46px; font-size: 16.5px; }
  .board-panel { overflow: visible; margin-inline: -14px; border-left: 0; border-right: 0; border-radius: 0; }
  .board-filters { display: grid; gap: 9px; padding: 12px 14px; }
  .filter-services { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 7px; margin: 0; }
  .service-chip { justify-content: center; min-height: 44px; padding: 4px 6px; }
  .filter-status { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .filter-status button { min-height: 40px; padding: 3px 4px; }
  .results-bar { position: sticky; z-index: 5; top: 58px; min-height: 52px; padding: 6px 14px; background: var(--surface); box-shadow: 0 1px 0 var(--line); }
  .mobile-view { display: inline-flex; padding: 3px; border-radius: 11px; background: var(--page); }
  .mobile-view button { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 2px 14px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-soft); font-size: 15.5px; font-weight: 700; }
  .mobile-view button[aria-pressed="true"] { background: var(--ink); color: var(--surface); }
  .board-grid { grid-template-columns: minmax(0, 1fr); height: auto; }
  .board-list { border-right: 0; }
  .incident-list { overflow: visible; }
  .board-grid[data-view="map"] .board-list, .board-grid[data-view="list"] .board-map { display: none; }
  .board-map { height: calc(100dvh - 58px - 52px - 62px - env(safe-area-inset-bottom)); min-height: 360px; }
  .row-map { display: none; }
  .incident-link { gap: 12px; padding: 13px 14px; }
  .incident h3 { font-size: 17px; }
  .incident-impact { font-size: 15px; }
  .incident-side b { font-size: 15px; }
  .pager { padding: 14px; }
  .pager a { min-height: 40px; }
  .list-panel { margin-inline: -14px; border-left: 0; border-right: 0; border-radius: 0; }
  .link-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 7px; }
  .link-grid a { min-height: 50px; padding-left: 12px; }
  .history li { grid-template-columns: minmax(0, 1fr); gap: 1px; padding: 12px 0; }
  .facts div { grid-template-columns: 128px minmax(0, 1fr); }
  .eta-time { font-size: 52px; }
  .outage-head { gap: 16px; }
  .side-box { padding: 15px 16px 17px; }
  .phone-number { display: flex; justify-content: center; min-height: 58px; margin-top: 11px; font-size: 27px; }
  .vote-actions button { min-height: 52px; font-size: 17px; }
  .street-map { height: 290px; }
  .data-table th, .data-table td { padding: 10px 11px; }
  .data-table.is-stacked thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .data-table.is-stacked, .data-table.is-stacked tbody, .data-table.is-stacked tr, .data-table.is-stacked th, .data-table.is-stacked td { display: block; }
  .data-table.is-stacked tr { padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .data-table.is-stacked tr:last-child { border-bottom: 0; }
  .data-table.is-stacked th, .data-table.is-stacked td { padding: 2px 0; border: 0; text-align: left; }
  .data-table.is-stacked tbody th { margin-bottom: 4px; font-size: 18px; }
  .data-table.is-stacked td { display: flex; justify-content: space-between; gap: 14px; text-align: right; }
  .data-table.is-stacked td::before { content: attr(data-label); flex: none; color: var(--ink-faint); font-size: 15px; text-align: left; }
  .form input, .form select, .form textarea { min-height: 48px; font-size: 17px; }
  .form .button { justify-self: stretch; min-height: 52px; }
  .doc-nav { flex-wrap: nowrap; margin-inline: -14px; padding-inline: 14px; overflow-x: auto; scrollbar-width: none; }
  .doc-nav a { white-space: nowrap; }
  .footer-columns { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 18px; }
  .footer-columns > div:first-child, .footer-columns > nav:nth-child(3) { grid-column: 1 / -1; }
  .footer-columns nav a { padding: 7px 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .incident, .site-nav a, .service-chip, .service-card, .menu-group > a { transition: background-color .12s, border-color .12s; }
}
[tabindex="-1"]:focus { outline: none; }
