/* Baromètre PEB : direction artistique Certinergie (nouvelle UI, packages/ui d'order-particuliers). */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/plus-jakarta-sans-v12-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC,
    U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/plus-jakarta-sans-v12-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --navy: #202037;
  --navy-2: #3a3b5e;
  --green: #83bf38;
  --green-ink: #3f6a12;
  --green-soft: #e9f4db;
  --surface: #f2f3f8;
  --line: #dddee8;
  --line-2: #c9cad8;
  --muted: #5c5d75;
  --muted-2: #8c8da3;
  --amber: #e6a23c;
  --amber-ink: #8a5a0b;
  --amber-soft: #fdf4e4;
  --danger: #d9342b;
  --info-soft: #eef0f8;
  --wal: #1f4e79;
  --fla: #8a9bad;
  --bru: #4a8cc4;
  --bru-ink: #2b6ca3;
  --radius: 6px;
  --radius-lg: 8px;
  --focus: #3f6a12;
  --nav-h: 60px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
body {
  margin: 0;
  background: #fff;
  color: var(--navy);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
}
p {
  margin: 0;
}
a {
  color: var(--green-ink);
  text-underline-offset: 3px;
}
a:hover {
  color: var(--navy);
}
button {
  font: inherit;
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.on-navy :focus-visible,
.on-navy:focus-visible {
  --focus: #83bf38;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 640px) {
  .wrap {
    padding: 0 16px;
  }
}
.kw {
  color: var(--green-ink);
}
.on-navy .kw {
  color: var(--green);
}
.num {
  font-variant-numeric: tabular-nums;
}

/* ---------- En-tête ---------- */
.hero {
  background: var(--navy);
  color: #fff;
  padding: 28px 0 56px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  right: -120px;
  top: -80px;
  width: 520px;
  height: 520px;
  background: radial-gradient(closest-side, rgba(131, 191, 56, 0.18), transparent);
  pointer-events: none;
}
.hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 56px;
}
.hero-top .edition {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--line-2);
}
.eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-ink);
  margin-bottom: 10px;
}
.on-navy .eyebrow {
  color: var(--green);
}
.hero h1 {
  font-size: clamp(34px, 5.4vw, 60px);
  max-width: 16ch;
}
.hero .lead {
  margin-top: 20px;
  max-width: 54ch;
  font-size: 18px;
  color: var(--line-2);
}
.kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 40px;
  position: relative;
  z-index: 1;
}
.kpi {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: 18px 18px 16px;
}
.kpi strong {
  display: block;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.kpi span {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--line-2);
}
@media (max-width: 860px) {
  .kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .hero {
    padding: 20px 0 40px;
  }
  .hero-top {
    margin-bottom: 36px;
  }
  .hero .lead {
    font-size: 16px;
  }
  .kpi strong {
    font-size: 22px;
  }
}

/* ---------- Barre d'onglets ---------- */
.tabs {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s;
}
.tabs.scrolled {
  box-shadow: 0 6px 20px -12px rgba(32, 32, 55, 0.35);
}
.tabs .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--nav-h);
}
.tabs-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
  color: var(--navy);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.01em;
}
.tabs-brand .sep {
  width: 1px;
  height: 22px;
  background: var(--line-2);
}
.tabs ol {
  display: flex;
  gap: 4px;
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
  height: 100%;
}
.tabs li {
  height: 100%;
}
.tabs ol a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 100%;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}
.tabs .short {
  display: none;
}
.tabs ol a .n {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--surface);
  font-size: 12px;
  color: var(--muted);
}
.tabs ol a::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: -1px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--green);
  transform: scaleX(0);
  transition: transform 0.2s;
}
.tabs ol a:hover {
  color: var(--navy);
}
.tabs ol a[aria-current='true'] {
  color: var(--navy);
}
.tabs ol a[aria-current='true'] .n {
  background: var(--green);
  color: var(--navy);
}
.tabs ol a[aria-current='true']::after {
  transform: scaleX(1);
}
@media (max-width: 860px) {
  .tabs-brand {
    display: none;
  }
  .tabs .wrap {
    padding: 0 8px;
  }
  .tabs ol {
    margin: 0;
    width: 100%;
    justify-content: space-between;
    gap: 0;
  }
  .tabs li {
    flex: 1;
  }
  .tabs ol a {
    justify-content: center;
    padding: 0 6px;
    font-size: 13px;
    gap: 6px;
  }
  .tabs ol a::after {
    left: 8px;
    right: 8px;
  }
  .tabs .long {
    display: none;
  }
  .tabs .short {
    display: inline;
  }
}
@media (max-width: 380px) {
  .tabs .short {
  display: none;
}
.tabs ol a .n {
    display: none;
  }
}

/* ---------- Sections ---------- */
.section {
  padding: 88px 0 24px;
}
.section + .section {
  border-top: 1px solid var(--line);
}
.section-head {
  max-width: 760px;
  margin-bottom: 48px;
}
.section-head h2 {
  font-size: clamp(30px, 4vw, 44px);
}
.section-head p {
  margin-top: 16px;
  font-size: 17px;
  color: var(--muted);
}
.block {
  padding: 48px 0 56px;
  border-top: 1px solid var(--line);
}
.block:first-of-type {
  border-top: 0;
  padding-top: 0;
}
.block-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.block-head .intro {
  max-width: 640px;
}
.block-head h3 {
  font-size: clamp(24px, 2.8vw, 32px);
}
.block-head p {
  margin-top: 12px;
  color: var(--muted);
}
.block-head .controls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
@media (max-width: 640px) {
  .section {
    padding-top: 56px;
  }
  .section-head {
    margin-bottom: 32px;
  }
  .block {
    padding: 40px 0 44px;
  }
}

/* ---------- Sélecteur en pilule ---------- */
.pills {
  display: inline-flex;
  padding: 4px;
  gap: 2px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  max-width: 100%;
}
.pills button {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.pills button:hover:not(:disabled):not([aria-pressed='true']) {
  color: var(--navy);
  background: rgba(32, 32, 55, 0.06);
}
.pills button[aria-pressed='true'] {
  background: var(--navy);
  color: #fff;
}
.pills button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.pills button .dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 7px;
  vertical-align: 1px;
  box-shadow: 0 0 0 1.5px #fff;
}
.pill-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin: 0 0 6px 4px;
}
@media (max-width: 640px) {
  .block-head .controls,
  .block-head .controls > div {
    width: 100%;
  }
  .pills {
    display: flex;
    width: 100%;
  }
  .pills button {
    flex: 1 1 auto;
    padding: 0 10px;
    font-size: 13px;
  }
}

/* ---------- Cartes de donnée ---------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 960px) {
  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }
}
.region-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.region-tag::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--c, var(--navy));
}
.big {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 14px;
}
.big strong {
  font-size: 46px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}
.big .unit {
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}
.meta {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
}
.meta b {
  color: var(--navy);
}

/* Pastille de label */
.lbl {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 28px;
  padding: 0 7px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
  background: var(--lc);
  color: var(--lt, var(--navy));
}
.lbl.sm {
  min-width: 28px;
  height: 22px;
  font-size: 12px;
  padding: 0 5px;
}

/* Échelle PEB avec curseur */
.scale {
  margin-top: 26px;
}
.scale-bar {
  position: relative;
  display: flex;
  gap: 2px;
  padding-top: 38px;
}
.scale-seg {
  flex: 1;
  height: 30px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  background: var(--lc);
  color: var(--lt, var(--navy));
}
.scale-seg:first-child {
  border-radius: 5px 0 0 5px;
}
.scale-seg:last-of-type {
  border-radius: 0 5px 5px 0;
}
.scale-cursor {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: left 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.scale-cursor span {
  background: var(--navy);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}
.scale-cursor i {
  width: 2px;
  height: 44px;
  background: var(--navy);
  margin-top: 0;
}
.scale-cursor i::after {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  margin: 40px 0 0 -4px;
  border-radius: 50%;
  background: var(--navy);
  border: 2px solid #fff;
}
.scale-ticks {
  display: flex;
  gap: 2px;
  margin-top: 6px;
  font-size: 11px;
  color: var(--muted-2);
}
.scale-ticks span {
  flex: 1;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}
.scale-cap {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted-2);
}

/* ---------- Message clé et encadrés ---------- */
.key {
  display: flex;
  gap: 16px;
  margin-top: 28px;
  padding: 20px 24px;
  background: var(--green-soft);
  border-radius: var(--radius-lg);
}
.key .ico {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: var(--navy);
}
.key h4 {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-ink);
  margin-bottom: 6px;
}
.key p + p {
  margin-top: 8px;
}
.note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-lg);
  font-size: 14px;
  color: var(--navy);
}
.note svg {
  flex-shrink: 0;
  margin-top: 2px;
}
.note.warn {
  border-color: #f1d9ad;
  background: var(--amber-soft);
}
.note.warn svg {
  color: var(--amber-ink);
}
.note + .note {
  margin-top: 8px;
}
.warn-inline {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  color: var(--amber-ink);
}
@media (max-width: 640px) {
  .key {
    padding: 18px;
    gap: 12px;
  }
  .key .ico {
    width: 34px;
    height: 34px;
  }
}

/* ---------- Graphiques ---------- */
.chart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
  align-items: stretch;
}
@media (max-width: 960px) {
  .chart-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}
.chart-wrap {
  position: relative;
}
.chart-wrap svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.axis text {
  font-size: 12px;
  fill: var(--muted-2);
  font-family: inherit;
}
.grid line {
  stroke: var(--line);
  stroke-dasharray: 3 4;
}
.tip {
  position: absolute;
  z-index: 5;
  pointer-events: none;
  min-width: 150px;
  padding: 10px 12px;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  font-size: 13px;
  line-height: 1.4;
  box-shadow: 0 10px 24px -10px rgba(32, 32, 55, 0.6);
  transform: translate(-50%, calc(-100% - 14px));
  opacity: 0;
  transition: opacity 0.12s;
  white-space: nowrap;
}
.tip.show {
  opacity: 1;
}
.tip b {
  font-size: 15px;
}
.tip small {
  display: block;
  color: var(--line-2);
  font-size: 12px;
}
.pt {
  cursor: pointer;
  transition: r 0.12s;
}
.pt:hover,
.pt:focus-visible,
.pt.on {
  r: 7;
}
.pt:focus-visible {
  outline: none;
  stroke-width: 4;
}
.side {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.side .card {
  padding: 20px;
}
.gain-region {
  font-size: 12px;
}
.gains {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  margin-top: 10px;
}
.gain-row strong {
  display: block;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.gain-row span {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.delta {
  color: var(--green-ink);
}
.delta.up {
  color: var(--danger);
}
.gain-period {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted-2);
}
.bar {
  cursor: pointer;
  transition: opacity 0.15s;
}
.bars.has-on .bar:not(.on) {
  opacity: 0.45;
}
.bar:focus-visible {
  outline: none;
}
.bar:focus-visible rect.fill {
  stroke: var(--navy);
  stroke-width: 3;
}
.bar-panel {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 220px;
}
.bar-panel .hint {
  color: var(--muted);
  font-size: 14px;
}
.bar-panel .big strong {
  font-size: 52px;
}
.empty {
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 260px;
  padding: 24px;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius-lg);
  color: var(--muted);
  font-size: 14px;
}

/* Certifiés / à certifier */
.cover {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 18px;
}
.donut {
  flex-shrink: 0;
  width: 112px;
  height: 112px;
}
.cover-rows {
  flex: 1;
  min-width: 0;
}
.cover-row + .cover-row {
  margin-top: 14px;
}
.cover-row .k {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
.cover-row .k i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}
.cover-row .v {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-top: 2px;
}
.cover-row .v small {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0;
}
.cover-total {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.cover-total b {
  color: var(--navy);
}

/* ---------- Section 2 ---------- */
.filters {
  display: flex;
  gap: 16px 24px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
@media (max-width: 960px) {
  .map-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}
.map-card {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.map-card svg {
  display: block;
  width: 100%;
  height: auto;
}
.region-shape {
  cursor: pointer;
  stroke: #fff;
  stroke-width: 2.5;
  stroke-linejoin: round;
  transition: opacity 0.2s, filter 0.2s;
}
.region-shape:focus {
  outline: none;
}
.map-svg.has-sel .region-shape:not(.sel) {
  opacity: 0.38;
}
/* Survol réservé aux appareils à souris : sur écran tactile, l'état :hover resterait figé après un toucher. */
@media (hover: hover) {
  .map-svg .region-shape.hover,
  .map-svg .region-shape:hover {
    opacity: 1;
    filter: brightness(1.18) saturate(1.1);
  }
}
.region-shape:focus-visible {
  stroke: var(--navy);
  stroke-width: 3;
}
/* Région sélectionnée : signalée par l'estompage des autres régions, sans contour. */
.region-outline {
  display: none;
}
.map-label {
  font-family: inherit;
  font-size: 22px;
  font-weight: 800;
  fill: #fff;
  pointer-events: none;
  letter-spacing: -0.02em;
  /* Contour navy : lisible sur une région active (foncée) comme estompée (claire), quel que soit l'état. */
  stroke: rgba(32, 32, 55, 0.9);
  stroke-width: 5px;
  stroke-linejoin: round;
  paint-order: stroke;
}
.map-label.sm {
  font-size: 18px;
}
@media (max-width: 640px) {
  .map-label {
    font-size: 38px;
  }
  .map-label.sm {
    font-size: 30px;
  }
  .filters,
  .filters > div {
    width: 100%;
  }
  .bar-panel {
    min-height: 0;
  }
}
.chart-layout > .chart-wrap {
  align-self: start;
}
.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.map-legend button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.map-legend button i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}
.map-legend button[aria-pressed='true'] {
  border-color: var(--navy);
  box-shadow: inset 0 0 0 1px var(--navy);
}
.panel {
  padding: 24px;
}
.panel h3 {
  font-size: 28px;
  margin-top: 6px;
}
.active-sel {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--surface);
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  margin-top: 20px;
}
.stat {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.stat .k {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.stat .v {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.stat .v small {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0;
}
.stat .sub {
  font-size: 13px;
  font-weight: 700;
  margin-top: 2px;
}
.panel h4 {
  margin: 22px 0 10px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.mini-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mini-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.mini-list li:last-child {
  border-bottom: 0;
}
.mini-list .name {
  flex: 1;
  min-width: 0;
  font-weight: 700;
  overflow-wrap: break-word;
}
.mini-list .val {
  font-weight: 800;
  white-space: nowrap;
}
.two {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
}
@media (max-width: 520px) {
  .panel-grid,
  .two {
    grid-template-columns: 1fr;
    gap: 0 12px;
  }
  .panel-grid {
    gap: 10px;
  }
  .panel {
    padding: 20px 16px;
  }
}
.muted {
  color: var(--muted);
}
.sub-block {
  margin-top: 56px;
}
.sub-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px 24px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.sub-head h3 {
  font-size: clamp(22px, 2.6vw, 28px);
}
.sub-head p {
  margin-top: 8px;
  color: var(--muted);
}

/* Classement des provinces */
.rank {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.rank li {
  display: grid;
  grid-template-columns: 40px minmax(140px, 1.2fr) minmax(0, 2fr) 90px 110px 48px;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.rank li:first-child {
  border-top: 0;
}
.rank li.head {
  background: var(--surface);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 10px;
  padding-bottom: 10px;
}
.rank .pos {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--surface);
  font-weight: 800;
  font-size: 13px;
}
.rank .pname {
  font-weight: 800;
}
.rank .track {
  height: 10px;
  border-radius: 5px;
  background: var(--surface);
  overflow: hidden;
}
.rank .track i {
  display: block;
  height: 100%;
  border-radius: 5px;
  background: var(--navy-2);
  transition: width 0.4s;
}
.rank .r {
  text-align: right;
  font-weight: 800;
  white-space: nowrap;
}
.rank .r small {
  font-weight: 600;
  color: var(--muted);
}
.rank .cnt {
  text-align: right;
  color: var(--muted);
  white-space: nowrap;
}
@media (max-width: 760px) {
  .rank li {
    grid-template-columns: 34px minmax(0, 1fr) auto auto;
    grid-template-areas: 'pos name val lbl' 'pos track track cnt';
    gap: 6px 12px;
    padding: 12px 14px;
  }
  .rank li.head {
    display: none;
  }
  .rank .pos {
    grid-area: pos;
  }
  .rank .pname {
    grid-area: name;
  }
  .rank .track {
    grid-area: track;
  }
  .rank .r {
    grid-area: val;
  }
  .rank .cnt {
    grid-area: cnt;
    font-size: 12px;
  }
  .rank .lbl {
    grid-area: lbl;
  }
}

/* Top / flop */
.tf {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}
@media (max-width: 860px) {
  .tf {
    grid-template-columns: 1fr;
  }
}
.tf .card {
  padding: 8px 20px 12px;
}
.tf h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 4px;
  font-size: 15px;
}
.tf h4 .delta {
  font-size: 14px;
}
.commune-row {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto 40px;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.commune-row:first-of-type {
  border-top: 0;
}
.commune-row .i {
  font-weight: 800;
  color: var(--muted-2);
  font-size: 13px;
}
.commune-row .nm {
  font-weight: 800;
  min-width: 0;
}
.commune-row .nm small {
  display: block;
  font-weight: 600;
  font-size: 12px;
  color: var(--muted);
}
.commune-row .vv {
  text-align: right;
  font-weight: 800;
  white-space: nowrap;
}
.commune-row .vv small {
  display: block;
  font-weight: 600;
  font-size: 12px;
  color: var(--muted);
}

/* Recherche */
.search {
  position: relative;
  max-width: 560px;
}
.search label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}
.search-field {
  position: relative;
}
.search-field svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-2);
  pointer-events: none;
}
.search input {
  width: 100%;
  height: 52px;
  padding: 0 16px 0 46px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  font: inherit;
  font-size: 16px;
  color: var(--navy);
  background: #fff;
}
.search input:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(131, 191, 56, 0.35);
}
.suggest {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 32px -16px rgba(32, 32, 55, 0.4);
  max-height: 320px;
  overflow-y: auto;
}
.suggest li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 700;
}
.suggest li small {
  font-weight: 600;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.suggest li[aria-selected='true'],
.suggest li:hover {
  background: var(--surface);
}
.suggest .none {
  color: var(--muted);
  font-weight: 600;
  cursor: default;
}
.result {
  margin-top: 16px;
  max-width: 560px;
}
.result .card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.result h4 {
  font-size: 22px;
}
.result .rv {
  display: flex;
  align-items: center;
  gap: 12px;
}
.result .rv strong {
  font-size: 32px;
  letter-spacing: -0.04em;
}

/* Échéances et aides */
.themes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
}
@media (max-width: 1100px) {
  .themes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .themes {
    grid-template-columns: 1fr;
  }
}
.theme h4 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
}
.theme h4 .ico {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  background: var(--green-soft);
  color: var(--green-ink);
  flex-shrink: 0;
}
.theme > p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}
.timeline {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 25px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--line);
}
.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  align-items: center;
  padding: 7px 0;
}
.timeline .yr {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  height: 28px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}
.timeline .tx {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.facts {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}
.facts li {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.facts li:first-child {
  border-top: 0;
}
.facts li svg {
  flex-shrink: 0;
  color: var(--green-ink);
  margin-top: 2px;
}
.src {
  display: inline-flex;
  margin-right: 12px;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 700;
}
.table-mini {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
  font-size: 14px;
}
.table-mini th,
.table-mini td {
  text-align: left;
  padding: 8px 6px;
  border-top: 1px solid var(--line);
}
.table-mini th {
  font-size: 12px;
  color: var(--muted);
  font-weight: 800;
  border-top: 0;
}

/* ---------- Section 3 ---------- */
.sources {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 960px) {
  .sources {
    grid-template-columns: 1fr;
  }
}
.source {
  display: flex;
  flex-direction: column;
}
.source .ico,
.acc-ico {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  background: var(--surface);
  color: var(--navy);
  flex-shrink: 0;
}
.source h4 {
  margin-top: 16px;
  font-size: 20px;
}
.source p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  flex: 1;
}
.source a {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 14px;
  word-break: break-word;
}
.acc {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
}
.acc + .acc {
  margin-top: 10px;
}
.acc summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.01em;
  min-height: 64px;
}
.acc summary::-webkit-details-marker {
  display: none;
}
.acc summary .chev {
  margin-left: auto;
  flex-shrink: 0;
  transition: transform 0.2s;
  color: var(--muted);
}
.acc[open] summary .chev {
  transform: rotate(180deg);
}
.acc summary small {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0;
  margin-top: 2px;
}
.acc-body {
  padding: 0 20px 22px 80px;
  color: var(--navy);
  font-size: 15px;
}
.acc-body ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.acc-body > ul > li {
  position: relative;
  padding: 10px 0 10px 34px;
  border-top: 1px solid var(--line);
}
.acc-body > ul > li:first-child {
  border-top: 0;
}
.acc-body > ul > li > svg {
  position: absolute;
  left: 0;
  top: 12px;
  color: var(--green-ink);
}
.acc-body p + p,
.acc-body p + ul,
.acc-body ul + p {
  margin-top: 12px;
}
@media (max-width: 640px) {
  .acc summary {
    padding: 14px 16px;
    gap: 12px;
    font-size: 16px;
  }
  .acc-body {
    padding: 0 16px 18px;
  }
  .acc-ico {
    width: 38px;
    height: 38px;
  }
}
.formula {
  margin: 14px 0;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 16px;
  font-weight: 700;
  overflow-x: auto;
}
.formula sub {
  font-weight: 600;
  font-size: 11px;
}
.formula small {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.retain {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--green-soft);
}
.retain b {
  display: block;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-ink);
  margin-bottom: 4px;
}
.bias-n {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  flex-shrink: 0;
}
.bias .acc-body {
  color: var(--muted);
}
@media (max-width: 640px) {
  .bias-n {
    width: 36px;
    height: 36px;
  }
}
.subsection {
  margin-top: 56px;
}
.subsection:first-of-type {
  margin-top: 0;
}
.subsection > h3 {
  font-size: clamp(22px, 2.6vw, 28px);
  display: flex;
  align-items: center;
  gap: 12px;
}
.subsection > h3 .step {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--green-ink);
  text-transform: uppercase;
}
.subsection > p {
  margin: 10px 0 24px;
  color: var(--muted);
  max-width: 680px;
}
.reading {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid #f1d9ad;
  background: var(--amber-soft);
}
.reading svg {
  flex-shrink: 0;
  color: var(--amber-ink);
}
.reading b {
  display: block;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber-ink);
  margin-bottom: 4px;
}

/* ---------- Pied de page ---------- */
.footer {
  margin-top: 80px;
  background: var(--navy);
  color: #fff;
  padding: 56px 0 40px;
}
.footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
}
.footer h2 {
  font-size: clamp(26px, 3.4vw, 36px);
}
.footer p {
  color: var(--line-2);
  margin-top: 10px;
}
.mail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: var(--radius);
  background: var(--green);
  color: var(--navy);
  font-weight: 800;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}
.mail:hover {
  background: #95cf4a;
  color: var(--navy);
  transform: translateY(-1px);
}
.footer .fine {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 13px;
  color: var(--muted-2);
  width: 100%;
}

/* ---------- v2 : hero, convertisseur, échelles superposées, notes, biais ---------- */
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  position: relative;
  z-index: 1;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-weight: 800;
  font-size: 15px;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-primary {
  background: var(--green);
  color: var(--navy);
}
.btn-primary:hover {
  background: #95cf4a;
  color: var(--navy);
}
.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
}
.btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
@media (max-width: 640px) {
  .hero-cta .btn {
    width: 100%;
  }
}

/* Convertisseur */
.cv-card {
  padding: 28px;
}
.cv-input label {
  display: block;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 10px;
}
.cv-row {
  display: flex;
  align-items: center;
  gap: 20px;
}
.cv-row input[type='range'] {
  flex: 1;
  min-width: 0;
  height: 32px;
  accent-color: var(--navy);
  cursor: pointer;
}
.cv-field {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
.cv-field input {
  width: 96px;
  height: 48px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  font: inherit;
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
  text-align: right;
}
.cv-field input:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(131, 191, 56, 0.35);
}
.cv-unknown {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 700;
  min-height: 32px;
}
.cv-sentence {
  margin: 24px 0 8px;
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
}
.cv-sentence b {
  font-weight: 800;
}
@media (max-width: 640px) {
  .cv-card {
    padding: 20px 16px;
  }
  .cv-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
}

/* Échelles superposées : trois régions sur le même axe kWh/m²·an */
.stack-card {
  padding: 8px 24px 20px;
}
.stack {
  position: relative;
}
.srow {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.srow:first-child {
  border-top: 0;
}
.smeta {
  display: flex;
  align-items: center;
  gap: 14px;
}
.sletter {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: var(--lc);
  color: var(--lt);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.sval {
  margin-top: 2px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
}
.sval b {
  font-size: 24px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.03em;
}
.sn {
  font-size: 12px;
  color: var(--muted);
}
.sbar {
  position: relative;
  height: 46px;
}
.sseg {
  position: absolute;
  top: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--lc);
  color: var(--lt);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.1;
  border-right: 2px solid #fff;
  overflow: hidden;
  white-space: nowrap;
}
.sseg:first-child {
  border-radius: 6px 0 0 6px;
}
.sseg:nth-last-child(2) {
  border-radius: 0 6px 6px 0;
  border-right: 0;
}
.sseg small {
  font-size: 10px;
  font-weight: 600;
  opacity: 0.85;
}
.smark {
  position: absolute;
  top: -7px;
  bottom: -7px;
  width: 4px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--navy);
  box-shadow: 0 0 0 2px #fff;
  transition: left 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.saxis {
  padding: 4px 0 0;
  border-top: 0;
}
.sticks {
  position: relative;
  height: 34px;
  font-size: 11px;
  color: var(--muted-2);
}
.sticks span {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
}
.sticks span:first-child {
  transform: none;
}
.sticks span:last-of-type {
  transform: translateX(-100%);
}
.sticks em {
  position: absolute;
  right: 0;
  bottom: 0;
  font-style: normal;
  font-weight: 700;
}
/* Ligne commune du convertisseur : même valeur sur les trois échelles. */
.sguide {
  position: absolute;
  top: 0;
  bottom: 34px;
  left: calc(250px + 24px);
  right: 0;
  pointer-events: none;
}
/* La ligne commune remplace les curseurs par région ; sur mobile (sans ligne commune), les curseurs restent. */
@media (min-width: 761px) {
  .has-guide .smark {
    display: none;
  }
}
.sguide span {
  position: absolute;
  top: 30px;
  bottom: 0;
  border-left: 2px dashed var(--navy);
  transition: left 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.sguide b {
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(-50%, -100%);
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--navy);
  color: #fff;
  font-size: 12px;
}
.has-guide .srow:first-child {
  padding-top: 40px;
}
@media (max-width: 760px) {
  .srow {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  .sletter {
    width: 44px;
    height: 44px;
    font-size: 21px;
  }
  .sseg small {
    display: none;
  }
  .sseg {
    font-size: 11px;
    letter-spacing: -0.03em;
  }
  .sguide {
    display: none;
  }
  .has-guide .srow:first-child {
    padding-top: 16px;
  }
  .stack-card {
    padding: 4px 16px 16px;
  }
}

/* Notes sous les graphiques et renvois vers les biais */
.chart-notes {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}
.chart-notes.in-card {
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.foot {
  display: flex;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
.foot svg {
  flex-shrink: 0;
  margin-top: 3px;
}
.foot b {
  color: var(--navy);
}
.bias-links {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--amber-ink);
}
.bias-links a {
  color: var(--amber-ink);
}
.cover-row .kk {
  display: block;
  margin: 1px 0 0 18px;
  font-size: 11px;
  color: var(--muted-2);
}
.proj-tag {
  font-size: 12px;
  font-weight: 700;
  fill: var(--muted);
  font-family: inherit;
}
.annot text,
.reach {
  font-size: 11px;
  font-weight: 800;
  font-family: inherit;
}

/* Biais : synthèse, familles, pastilles */
.bias-summary {
  padding: 8px 20px;
  margin-bottom: 28px;
  overflow-x: auto;
}
.bias-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.bias-table th {
  text-align: left;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  padding: 10px 8px;
}
.bias-table td {
  padding: 10px 8px;
  border-top: 1px solid var(--line);
  vertical-align: top;
}
.bias-table td small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}
.bias-table a {
  font-weight: 700;
  color: var(--navy);
}
.bias-family + .bias-family {
  margin-top: 28px;
}
.bias-family h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 18px;
}
.bias-family h4 .acc-ico {
  width: 36px;
  height: 36px;
}
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
  background: var(--surface);
  color: var(--muted);
}
.impact-fort {
  background: #fbe3e1;
  color: #9b221b;
}
.impact-moyen {
  background: var(--amber-soft);
  color: var(--amber-ink);
}
.impact-faible {
  background: var(--green-soft);
  color: var(--green-ink);
}
.acc summary small.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.bias-effect {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
}
@media (max-width: 640px) {
  .bias-summary {
    padding: 4px 12px;
  }
  .bias-table thead,
  .bias-table td:nth-child(2) {
    display: none;
  }
  .bias-table tr {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    padding: 12px 0;
    border-top: 1px solid var(--line);
  }
  .bias-table tbody tr:first-child {
    border-top: 0;
  }
  .bias-table td {
    padding: 0;
    border: 0;
  }
  .bias-table td:first-child {
    width: 100%;
  }
  .bias-table td small {
    display: inline;
    margin-left: 4px;
  }
}
.section-head .sub-title {
  margin-top: 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
}
.rules-missing {
  grid-column: 1 / -1;
}

/* ---------- Passe qualité ---------- */
/* Repère de valeur : encoches au-dessus et en dessous de la barre, sans masquer les plages. */
.smark {
  top: -9px;
  bottom: -9px;
  width: 0;
  margin-left: 0;
  background: none;
  box-shadow: none;
}
.smark i {
  position: absolute;
  left: -7px;
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
}
.smark i:first-child {
  top: 0;
  border-top: 8px solid var(--navy);
}
.smark i:last-child {
  bottom: 0;
  border-bottom: 8px solid var(--navy);
}
@media (min-width: 761px) {
  .has-guide .smark {
    display: block;
  }
}
.sguide {
  top: 4px;
  bottom: auto;
  height: 26px;
}
.sguide b {
  top: 0;
  transform: translateX(-50%);
  transition: left 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
/* Plages de valeurs : affichées seulement si la barre est assez large pour elles. */
.sbar {
  container-type: inline-size;
}
@container (max-width: 640px) {
  .sseg small {
    display: none;
  }
}
/* Renvois vers les biais : texte continu. */
.bias-links {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  margin: 0;
}
.bias-links svg {
  flex-shrink: 0;
  margin-top: 2px;
}
/* Couverture du parc. */
.cover-total span small {
  display: block;
  font-size: 12px;
  color: var(--muted-2);
}
/* Gains : trois colonnes quand le graphique passe sur toute la largeur. */
@media (min-width: 641px) and (max-width: 960px) {
  .side {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.gain-row span {
  line-height: 1.35;
}
/* Détail d'un label : pas de grand vide quand le panneau passe sous l'histogramme. */
@media (max-width: 960px) {
  .bar-panel {
    min-height: 0;
  }
}
/* Accordéons des biais : pictogramme puis chevron, tout à droite. */
.bias-ico {
  margin-left: auto;
}
.acc summary .bias-ico + .chev {
  margin-left: 0;
}
.gain-row strong {
  white-space: nowrap;
}
@media (min-width: 641px) and (max-width: 960px) {
  .side .gains {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
}
.cv-unknown {
  display: inline;
}
.cv-unknown svg {
  vertical-align: -2px;
  margin-left: 4px;
}
/* Très petits écrans : les sélecteurs à libellés longs passent sur deux lignes au lieu de déborder. */
@media (max-width: 420px) {
  .pills {
    flex-wrap: wrap;
    border-radius: 22px;
  }
  .pills button {
    flex: 1 1 auto;
  }
}
/* Plages de valeurs dans les échelles : plus lisibles. */
.sseg small {
  font-size: 11px;
  font-weight: 700;
  opacity: 1;
  letter-spacing: -0.01em;
}
.gain-target {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}
.gain-target i {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  vertical-align: 1px;
}
.gain-target b {
  color: var(--navy);
}
/* Classement des provinces sur mobile : nom et label, puis barre, puis valeur et certificats (plus de chevauchement). */
@media (max-width: 760px) {
  .rank li {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    grid-template-areas: 'pos name lbl' 'pos track track' 'pos val cnt';
    gap: 6px 12px;
  }
  .rank .r {
    text-align: left;
  }
}
/* Textes d'introduction : lignes plus longues sur grand écran, et jamais un mot seul en fin de paragraphe. */
.section-head {
  max-width: 860px;
}
.block-head .intro {
  max-width: 760px;
}
.subsection > p {
  max-width: 820px;
}
p,
li,
.lead {
  text-wrap: pretty;
}
h1,
h2,
h3,
h4 {
  text-wrap: balance;
}
.reach-lead {
  stroke-width: 1;
  opacity: 0.7;
}
/* Listes côte à côte (3 plus petits / plus grands Espec, top 5 / flop 5) : lignes alignées d'une colonne à l'autre,
   même quand un nom passe sur deux lignes. Chaque colonne partage la grille de lignes de son conteneur (subgrid). */
.two {
  grid-template-rows: auto repeat(3, auto);
}
.two > div {
  display: grid;
  grid-row: span 4;
  grid-template-rows: subgrid;
  row-gap: 0;
}
.two .mini-list {
  display: contents;
}
.tf {
  grid-template-rows: auto repeat(5, auto);
}
.tf > .card {
  display: grid;
  grid-row: span 6;
  grid-template-rows: subgrid;
  row-gap: 0;
}
@media (max-width: 520px) {
  .two > div {
    display: block;
    grid-row: auto;
  }
  .two .mini-list {
    display: block;
  }
}
@media (max-width: 860px) {
  .tf > .card {
    display: block;
    grid-row: auto;
  }
}
/* Marges latérales : proportionnelles à la largeur d'écran (24 px sur mobile, jusqu'à 64 px). */
.wrap {
  max-width: calc(1180px + 2 * clamp(24px, 5vw, 64px));
  padding-left: clamp(24px, 5vw, 64px);
  padding-right: clamp(24px, 5vw, 64px);
}
@media (max-width: 640px) {
  .wrap {
    padding-left: 16px;
    padding-right: 16px;
  }
}
/* Page principale (texte du .docx) : intitulés de sections complets dans la barre d'onglets, sur deux lignes si besoin,
   et trois indicateurs clés. Règles limitées à la page principale (la page /v2/ porte data-design). */
@media (max-width: 860px) {
  body:not([data-design]) .tabs ol a {
    white-space: normal;
    text-align: center;
    line-height: 1.2;
    font-size: 12.5px;
  }
}
@media (max-width: 480px) {
  body:not([data-design]) .tabs ol a .n {
    display: none;
  }
}
body:not([data-design]) .kpis {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
body:not([data-design]) .hero-top .edition {
  text-wrap: balance;
  text-align: right;
}
@media (max-width: 640px) {
  body:not([data-design]) .kpis {
    gap: 8px;
  }
  body:not([data-design]) .kpi {
    padding: 14px 12px 12px;
  }
  body:not([data-design]) .kpi strong {
    font-size: 17px;
    white-space: nowrap;
  }
}
/* Plus Jakarta Sans : le point final a une large approche gauche à cette graisse, il paraît détaché du mot. */
.h1-dot {
  margin-left: -0.07em;
}

/* Curseur de l'échelle : trait fin en pointillé entre les deux flèches. Les textes des classes passent au-dessus,
   détourés de la couleur de leur classe pour ne pas être barrés par le trait. */
.smark {
  z-index: 1;
}
.smark::before {
  content: '';
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: -1px;
  border-left: 2px dotted var(--navy);
}
.sseg b,
.sseg small {
  position: relative;
  z-index: 2;
  font-weight: inherit;
  text-shadow: 0 0 2px var(--lc), 0 0 3px var(--lc), 0 0 4px var(--lc);
}
