/* Carte des adhérents AFTE. Adaptez les variables ci-dessous à la charte du site. */
.afte-carte {
  --ac-bg: #f5f7f8; --ac-panel: #fff; --ac-fg: #14222b; --ac-muted: #5b6b75; --ac-line: #dbe2e6;
  --ac-empty: #e7ecef; --ac-s1: #d3e6ef; --ac-s2: #a9cfe0; --ac-s3: #77b2cd; --ac-s4: #4a93b7;
  --ac-s5: #2a729b; --ac-s6: #17537a; --ac-s7: #0b3756;
  --ac-stroke: #fff; --ac-halo: rgba(255,255,255,.75); --ac-sel: #e0792b; --ac-accent: #17537a;
  color: var(--ac-fg); font-size: 15px; line-height: 1.45; display: grid; gap: 20px;
}
.afte-carte *, .afte-carte *::before, .afte-carte *::after { box-sizing: border-box; }
.afte-carte__head { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: flex-end; justify-content: space-between; }
.afte-carte__kpis { display: flex; gap: 28px; flex-wrap: wrap; }
.afte-carte__kpi b { display: block; font-size: 28px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.afte-carte__kpi span, .afte-carte__eyebrow, .afte-carte h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ac-muted); }
.afte-carte__updated { font-size: 12.5px; color: var(--ac-muted); margin: 0; }
.afte-carte__toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.afte-carte__seg { display: inline-flex; border: 1px solid var(--ac-line); border-radius: 999px; padding: 3px; background: var(--ac-panel); }
.afte-carte__seg button { font: inherit; font-size: 13px; font-weight: 600; border: 0; background: none; color: var(--ac-muted); padding: 6px 14px; border-radius: 999px; cursor: pointer; }
.afte-carte__seg button[aria-pressed="true"] { background: var(--ac-accent); color: #fff; }
.afte-carte button:focus-visible, .afte-carte .ac-dep:focus-visible, .afte-carte input:focus-visible { outline: 2px solid var(--ac-sel); outline-offset: 2px; }
.afte-carte__legend { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 12px; color: var(--ac-muted); }
.afte-carte__legend .sw { display: flex; }
.afte-carte__legend .sw i { width: 30px; height: 10px; display: block; }
.afte-carte__legend .lb { display: flex; font-size: 11px; font-variant-numeric: tabular-nums; }
.afte-carte__legend .lb span { width: 30px; }
.afte-carte__main, .afte-carte__lower { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.afte-carte__lower { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
.afte-carte__map, .afte-carte__card { position: relative; background: var(--ac-panel); border: 1px solid var(--ac-line); border-radius: 10px; padding: 14px 18px; min-width: 0; }
.afte-carte__map { padding: 12px; }
.afte-carte__map svg { display: block; width: 100%; height: auto; }
.afte-carte .ac-dep { stroke: var(--ac-stroke); stroke-width: .8; cursor: pointer; transition: opacity .15s; }
.afte-carte .ac-dep:hover { opacity: .82; }
.afte-carte .ac-dep.is-sel { stroke: var(--ac-sel); stroke-width: 2.2; }
.afte-carte .ac-lbl { font-size: 11px; font-weight: 600; pointer-events: none; text-anchor: middle; dominant-baseline: central; paint-order: stroke; stroke-width: 2.4px; stroke-linejoin: round; font-variant-numeric: tabular-nums; }
.afte-carte .ac-lbl.is-zero { font-weight: 400; opacity: .55; }
.afte-carte .ac-rlbl { font-size: 18px; font-weight: 700; stroke-width: 3px; }
.afte-carte .ac-rname { font-size: 9px; letter-spacing: .04em; text-transform: uppercase; stroke-width: 2px; }
.afte-carte__inset { position: absolute; left: 12px; bottom: 96px; width: 21%; min-width: 130px; background: var(--ac-panel); border: 1px solid var(--ac-line); border-radius: 8px; padding: 6px; }
.afte-carte__inset p { margin: 0 0 2px; font-size: 11px; color: var(--ac-muted); text-transform: uppercase; letter-spacing: .06em; }
.afte-carte__inset .ac-lbl { font-size: 2.6px; stroke-width: .5px; }
.afte-carte__tip { position: absolute; pointer-events: none; background: var(--ac-fg); color: #fff; font-size: 12px; padding: 6px 9px; border-radius: 6px; white-space: nowrap; transform: translate(-50%, -120%); z-index: 2; }
.afte-carte h3 { font-size: 22px; font-weight: 700; margin: 0; line-height: 1.15; }
.afte-carte h4 { margin: 16px 0 6px; font-weight: 600; }
.afte-carte__eyebrow { margin: 0 0 4px; }
.afte-carte__stats { display: flex; gap: 24px; margin: 12px 0; }
.afte-carte__stats b { display: block; font-size: 24px; line-height: 1; font-variant-numeric: tabular-nums; }
.afte-carte__stats span { font-size: 12px; color: var(--ac-muted); }
.afte-carte__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.afte-carte__chips span { font-size: 12.5px; background: var(--ac-bg); border: 1px solid var(--ac-line); border-radius: 999px; padding: 2px 10px; }
.afte-carte__chips em { font-style: normal; color: var(--ac-muted); margin-left: 4px; font-size: 11px; }
.afte-carte input[type="search"] { width: 100%; font: inherit; font-size: 14px; padding: 7px 10px; border: 1px solid var(--ac-line); border-radius: 6px; background: var(--ac-bg); color: var(--ac-fg); }
.afte-carte__list { list-style: none; margin: 8px 0 0; padding: 0; max-height: 360px; overflow: auto; border-top: 1px solid var(--ac-line); }
.afte-carte__list li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 2px; border-bottom: 1px solid var(--ac-line); font-size: 13.5px; margin: 0; }
.afte-carte__list li b { font-weight: 500; color: var(--ac-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.afte-carte__list small { color: var(--ac-muted); }
.afte-carte__bars { display: grid; gap: 6px; margin-top: 10px; }
.afte-carte__bar { display: grid; grid-template-columns: minmax(0, 190px) 1fr 64px; gap: 10px; align-items: center; font: inherit; font-size: 13.5px; background: none; border: 0; color: inherit; text-align: left; padding: 2px 0; cursor: pointer; }
.afte-carte__bar .t { height: 12px; border-radius: 2px; background: var(--ac-empty); overflow: hidden; }
.afte-carte__bar .t i { display: block; height: 100%; background: var(--ac-s5); }
.afte-carte__bar .n { font-size: 12px; text-align: right; font-variant-numeric: tabular-nums; }
.afte-carte__bar.is-on .name { color: var(--ac-sel); font-weight: 600; }
.afte-carte__note { font-size: 12.5px; color: var(--ac-muted); }
@media (max-width: 860px) {
  .afte-carte__main, .afte-carte__lower { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .afte-carte__inset { position: static; width: auto; max-width: 240px; margin: 8px auto 0; }
  .afte-carte__bar { grid-template-columns: minmax(0, 130px) 1fr 52px; }
  .afte-carte__legend { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .afte-carte .ac-dep { transition: none; } }
