.territory-page .mast-territory { padding-block: clamp(26px,4.6vw,67px); }
.health-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 19px; }
.health-overview, .health-map-section, .health-map-grid, .health-professions { scroll-margin-top: 90px; }
.health-overview { padding-block: clamp(22px,4.2vw,50px) 0; }
.health-overview-heading { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 10px 18px; margin-bottom: 15px; }
.health-overview-heading h2 { margin-top: 5px; font-size: clamp(1.55rem,3vw,2.55rem); }
.health-scopes, .care-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.health-scopes a, .care-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid #dbd7e8;
  border-radius: 22px;
  background: #fffdfa;
  color: #42355d;
  font-size: .79rem;
  font-weight: 800;
  text-decoration: none;
}
.health-scopes a:hover, .care-filter:hover { background: #f0eaf8; }
.health-scopes a[aria-current], .care-filter[aria-current] { background: #3f305f; color: #fff8f0; border-color: #3f305f; }
.health-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin: 0; }
.health-metric {
  --metric-ink: #274d70;
  --metric-surface: #e4effb;
  --metric-accent: #caddf8;
  min-width: 0;
  padding: clamp(12px,2vw,23px);
  border: 1px solid color-mix(in srgb,var(--metric-accent) 78%,#fff);
  border-radius: 17px;
  background: var(--metric-surface);
  color: var(--metric-ink);
}
.metric-pro { --metric-ink: #4c376d; --metric-surface: #f0e7f7; --metric-accent: #e2d4f0; }
.metric-places { --metric-ink: #315a43; --metric-surface: #e7f2dc; --metric-accent: #d4e7c5; }
.health-metric dt { display: flex; align-items: center; gap: 8px; min-height: 32px; font-size: clamp(.78rem,1.2vw,.98rem); font-weight: 800; line-height: 1.25; }
.metric-icon { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--metric-accent); }
.metric-icon svg { width: 17px; height: 17px; }
.health-metric dd { margin: 6px 0 0; font-size: clamp(1.85rem,4.3vw,3.55rem); font-weight: 800; line-height: 1.06; letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.health-metric .metric-source { margin-top: 5px; font-size: .74rem; font-weight: 650; letter-spacing: 0; line-height: 1.4; }
.health-populations { display: flex; flex-wrap: wrap; gap: 6px 13px; margin: 13px 0 0; padding: 0; list-style: none; }
.health-populations li { display: flex; flex-wrap: wrap; gap: 5px; color: var(--muted); font-size: .79rem; }
.health-populations li strong { color: var(--ink); }
.care-filters { margin: 0 0 13px; }
.kind-all, .kind-cluster { --kind-ink: #443565; }
.kind-proximite { --kind-ink: #135f64; }
.kind-hopitaux { --kind-ink: #9a3b57; }
.kind-pharmacies { --kind-ink: #37713d; }
.kind-examens { --kind-ink: #305c9b; }
.kind-psy { --kind-ink: #76449a; }
.kind-accompagnement { --kind-ink: #8c5326; }
.kind-domicile { --kind-ink: #73522b; }
.kind-exercice { --kind-ink: #68458b; }
.care-dot { flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--kind-ink,#443565); }
.care-filter[aria-current] .care-dot { background: #eeefae; }
.care-count { padding: 1px 6px; border-radius: 14px; background: #eee9f4; color: #5c4875; font-size: .71rem; }
.health-map-grid { display: grid; grid-template-columns: minmax(0,1.8fr) minmax(270px,1fr); gap: 12px; align-items: start; }
.care-map .map-card-head { padding-block: 12px; }
.care-map .care-map-caption { display: grid; gap: 2px; }
.care-map-caption strong { display: flex; align-items: center; gap: 7px; }
.care-map-caption > span { color: #5b6f6f; font-weight: 650; }
.care-map-all { width: fit-content; color: #513872; text-underline-offset: 2px; }
.care-commune-overview { padding: 9px 12px 11px; border-top: 1px solid #e7ddef; background: #f6eff8; }
.care-commune-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 6px; }
.care-commune-heading h3 { color: #3e2c57; font-size: .91rem; }
.care-commune-heading .text-link { color: #513872; font-size: .75rem; }
.care-commune-heading .icon { width: 13px; height: 13px; }
.care-commune-professions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px; margin: 0; padding: 0; list-style: none; }
.care-commune-professions a { display: grid; grid-template-columns: minmax(0,1fr) auto 13px; align-items: center; gap: 5px; height: 100%; min-height: 33px; padding: 5px 7px; border-radius: 7px; background: #fffdfb; color: #513872; text-decoration: none; }
.care-commune-professions a:hover { background: #eae0f4; }
.care-commune-professions span { color: #53465e; font-size: .73rem; overflow-wrap: anywhere; }
.care-commune-professions strong { color: #442d61; font-size: .82rem; font-variant-numeric: tabular-nums; }
.care-commune-professions .icon { width: 13px; height: 13px; }
.care-practice-coverage { margin-bottom: 4px; color: #61536b; font-size: .8rem; }
.care-commune-overview .care-map-all { font-size: .75rem; font-weight: 750; }
.care-map .care-map-tools { gap: 4px; }
.care-map .care-map-tools[hidden] { display: none; }
.care-map-tools button {
  min-width: 38px;
  min-height: 38px;
  border: 1px solid #ddd4e8;
  border-radius: 9px;
  background: #f5eff8;
  color: #3f305f;
  font: 800 1.18rem/1 system-ui,sans-serif;
  cursor: pointer;
}
.care-map-tools button:not(:disabled):hover { background: #e8dcf2; }
.care-map-tools button:disabled { opacity: .48; cursor: default; }
.care-map-tools .care-map-reset { padding-inline: 8px; font-size: .72rem; }
.care-map-level { min-width: 3.2ch; text-align: center; color: #5c4875; font-variant-numeric: tabular-nums; }
.care-map-canvas .territory-svg { touch-action: pan-y; user-select: none; }
.care-map-canvas .territory-svg:focus-visible { outline: 3px solid #76569d; outline-offset: -3px; }
.care-map-canvas .is-map-zoomed { touch-action: none; cursor: grab; }
.care-map-canvas .is-map-dragging, .care-map-canvas .is-map-dragging :is(.care-pin,.map-commune) { cursor: grabbing; }
.care-map.is-zoomed .map-neighbor, .care-map .is-map-zoomed .map-neighbor { display: none; }
.care-map .map-grid, .care-map .map-local-roads { display: none; }
.care-map .shows-local-roads .map-local-roads { display: inline; }
.care-map .map-context { vector-effect: non-scaling-stroke; stroke-width: .8; }
.care-map .map-shape { vector-effect: non-scaling-stroke; stroke-width: 1.35; fill-opacity: .77; }
.care-map .map-commune[aria-current] .map-shape { fill-opacity: .96; stroke: #50386c; stroke-width: 2.4; }
.care-map .map-commune:is(:hover,:focus-visible) .map-shape { fill-opacity: 1; stroke: #4c3568; stroke-width: 3; }
.care-map .map-city-label > circle { display: none; }
.care-map .map-city-label > text { opacity: .82; }
.care-pin { cursor: pointer; }
.care-pin-dot { fill: var(--kind-ink,#443565); }
.care-pin text { fill: #fff; font-family: system-ui,sans-serif; font-weight: 750; pointer-events: none; }
.care-pin:focus-visible { outline: none; }
.care-pin:is(:hover,:focus-visible,.is-selected) .care-pin-dot { stroke: #fff8b1; stroke-width: 4.5; }
.care-pin.is-selected .care-pin-dot { fill: #2c2047; }
.care-directory {
  min-width: 0;
  border: 1px solid #e2d9e9;
  border-radius: 17px;
  background: #fffcf8;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.care-directory-head { padding: 12px; background: #f3edf7; border-bottom: 1px solid #e7ddef; }
.care-directory-head h3 { margin: 3px 0 9px; color: #35274d; font-size: 1.28rem; }
.care-search { display: flex; gap: 5px; }
.care-search input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 7px 8px;
  color: var(--ink);
  background: #fffdfb;
  border: 1px solid #dcd2e8;
  border-radius: 8px;
  font-size: .81rem;
}
.care-search button { min-height: 42px; padding-inline: 9px; flex-shrink: 0; }
.care-list { max-height: min(51vh,460px); min-height: 130px; overflow: auto; overscroll-behavior: contain; }
.care-place { padding: 10px 12px; border-bottom: 1px solid #eee6ed; scroll-margin-top: 102px; }
.care-place:is(:target,.is-selected) { background: #f5eef9; }
.care-place-kind { display: flex; align-items: center; gap: 5px; color: var(--kind-ink); font-size: .7rem; font-weight: 800; }
.care-place h4 { margin: 4px 0; color: #3b2d51; font-size: .92rem; line-height: 1.32; overflow-wrap: anywhere; }
.care-place-address, .care-place small { color: #5d5666; font-size: .79rem; line-height: 1.42; }
.care-place small { display: block; margin-top: 4px; font-size: .72rem; }
.care-place-actions { display: flex; flex-wrap: wrap; gap: 4px 9px; margin-top: 4px; }
.care-place-actions a { display: inline-flex; align-items: center; gap: 3px; color: #503a75; font-size: .75rem; font-weight: 800; text-underline-offset: 2px; }
.care-place-actions a[hidden] { display: none; }
.care-place-actions svg { width: 13px; height: 13px; }
.care-selection { margin-top: 9px; font-size: .78rem; }
.care-selection p { color: #45305f; font-weight: 800; }
.care-selection button { padding: 3px 0; border: 0; background: transparent; text-decoration: underline; }
.care-empty { padding: 13px; color: var(--muted); font-size: .84rem; }
.health-professions { background: #f3edf6; border-block: 1px solid #e7deed; }
.profession-section { max-width: 900px; padding-block: clamp(22px,3.2vw,40px); }
.profession-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 11px; }
.profession-heading h2 { font-size: clamp(1.55rem,3vw,2.35rem); }
.profession-heading p { color: #63546e; font-size: .78rem; font-weight: 700; }
.profession-browser { overflow: hidden; border: 1px solid #dfd6e9; border-radius: 14px; background: #fffdf9; }
.profession-controls { display: grid; grid-template-columns: minmax(0,1fr) minmax(152px,auto); gap: 7px; padding: 9px 10px; border-bottom: 1px solid #e8deed; background: #f8f2fa; }
.profession-controls[hidden] { display: none; }
.profession-controls :is(input,select) {
  min-width: 0;
  min-height: 40px;
  width: 100%;
  padding: 6px 9px;
  border: 1px solid #d7cbe3;
  border-radius: 8px;
  background: #fffdfb;
  color: #38284b;
  font: inherit;
  font-size: .85rem;
}
.profession-status { padding: 8px 12px; color: #63546e; font-size: .82rem; }
.profession-row { --compare-width: 105px; position: relative; border-bottom: 1px solid #eee7f2; }
.profession-map-link, .profession-compare > summary, .profession-more > summary {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto 10px;
  align-items: center;
  gap: 10px;
  min-height: 41px;
  padding: 6px 12px;
  list-style: none;
  color: #35274a;
  font-size: .87rem;
  font-weight: 760;
  cursor: pointer;
}
.profession-map-link { grid-template-columns: minmax(0,1fr) auto 16px; margin-inline-end: var(--compare-width); text-decoration: none; }
.profession-map-link .icon { width: 16px; height: 16px; color: #68458b; }
.profession-map-link:hover, .profession-map-link[aria-current="true"] { background: #f7f0fa; color: #513872; }
.profession-compare > summary { position: absolute; top: 0; right: 0; width: var(--compare-width); grid-template-columns: minmax(0,1fr) 10px; border-left: 1px solid #eee7f2; color: #5c4376; font-size: .76rem; }
.profession-compare > summary::-webkit-details-marker, .profession-more > summary::-webkit-details-marker { display: none; }
.profession-compare > summary::after, .profession-more > summary::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 2px solid #785d8f;
  border-bottom: 2px solid #785d8f;
  transform: translateY(-2px) rotate(45deg);
}
.profession-compare[open] > summary::after, .profession-more[open] > summary::after { transform: translateY(2px) rotate(225deg); }
.profession-compare > summary:hover, .profession-compare[open] > summary { background: #f7f0fa; }
.profession-browser :is(summary,.profession-map-link):focus-visible { outline-offset: -3px; }
.profession-row strong {
  min-width: 3.1ch;
  padding: 2px 7px;
  border-radius: 7px;
  background: #eee4f6;
  color: #4c3467;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.profession-counts { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 5px; margin: 0; padding: 0 12px 10px; background: #f7f0fa; }
.profession-counts > div { padding: 6px 8px; border-radius: 7px; background: #fffdfb; }
.profession-counts dt { color: #61536b; font-size: .73rem; overflow-wrap: anywhere; }
.profession-counts dd { margin: 0; color: #3a2b51; font-size: .99rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.profession-more > summary { grid-template-columns: minmax(0,1fr) 10px; color: #563a73; background: #f8f2fa; }
.profession-more > summary:hover { background: #f1e7f7; }
.profession-more[open] > summary { border-bottom: 1px solid #e8deed; }
.profession-less-label, .profession-more[open] > summary .profession-more-label { display: none; }
.profession-more[open] > summary .profession-less-label { display: inline; }
.health-method { margin-top: 9px; padding: 9px 12px; border: 1px solid #e3d9eb; border-radius: 11px; background: #fffaf7; color: #5b4b63; font-size: .82rem; }
.health-method summary { color: #442f61; font-size: .93rem; font-weight: 800; cursor: pointer; }
.health-method ul { margin: 8px 0; padding-left: 18px; }
.health-method li + li { margin-top: 7px; }
.health-method a { text-underline-offset: 2px; }
.health-downloads { display: flex; flex-wrap: wrap; gap: 5px 14px; }
@media (max-width: 799px) {
  .health-map-grid { grid-template-columns: 1fr; }
  .care-list { max-height: 330px; }
}
@media (max-width: 590px) {
  .health-metrics { grid-template-columns: 1fr; gap: 6px; }
  .health-metric { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 2px 8px; }
  .health-metric dd { margin: 0; font-size: 1.9rem; }
  .health-metric .metric-source { grid-column: 1/-1; }
  .health-scopes a, .care-filter { min-height: 38px; font-size: .73rem; padding-inline: 8px; }
  .profession-counts { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .profession-row { --compare-width: 42px; }
  .profession-compare > summary { grid-template-columns: 10px; justify-content: center; }
  .profession-compare > summary > span { display: none; }
}
@media (max-width: 425px) {
  .profession-controls { grid-template-columns: 1fr; }
}

