/* Version v2, design éditorial (page /v2/) : surcharge de ../styles.css.
   Principes : typographie et filets plutôt que boîtes, graphiques posés sur la page, vert réservé à la marque et à
   l'action, pictogrammes seulement s'ils servent, annotations directes sur les graphiques. */

body {
  font-size: 16px;
}
.kw {
  color: inherit;
}

/* Surtitres : un seul, en tête de page. */
.eyebrow {
  display: none;
}
.hero > .wrap > .eyebrow {
  display: block;
  color: var(--muted);
  letter-spacing: 0.08em;
}

/* ---------- En-tête : clair, le graphique fait l'ouverture ---------- */
.hero {
  background: #fff;
  color: var(--navy);
  padding: 24px 0 8px;
}
.hero::after {
  display: none;
}
.hero-top {
  margin-bottom: 64px;
}
.hero-top .edition {
  color: var(--muted-2);
}
.hero h1 {
  max-width: 18ch;
  font-size: clamp(36px, 5.6vw, 68px);
  font-weight: 500;
  letter-spacing: -0.035em;
}
.hero h1 .kw {
  font-weight: 800;
}
.hero .lead {
  color: var(--muted);
  max-width: 60ch;
}
.edition-line {
  margin-top: 20px;
  font-size: 13px;
  color: var(--muted-2);
}
.edition-line a {
  color: var(--muted);
}
.btn-ghost {
  border-color: var(--line-2);
  color: var(--navy);
}
.btn-ghost:hover {
  border-color: var(--navy);
  background: transparent;
  color: var(--navy);
}
.kpis {
  gap: 0;
  margin-top: 40px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.kpi {
  background: none;
  border: 0;
  border-radius: 0;
  padding: 18px 24px 18px 0;
}
.kpi + .kpi {
  border-left: 1px solid var(--line);
  padding-left: 24px;
}
.kpi strong {
  font-size: 30px;
}
.kpi span {
  color: var(--muted);
}
@media (max-width: 860px) {
  .kpi + .kpi {
    border-left: 0;
    padding-left: 0;
  }
  .kpi:nth-child(even) {
    border-left: 1px solid var(--line);
    padding-left: 16px;
  }
  .kpi:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}
.hero-pano {
  margin-top: 56px;
}
.hero-pano .block {
  padding: 0;
  border: 0;
}

/* ---------- Barre d'onglets : sans numéros, indicateur navy ---------- */
.tabs ol a .n {
  display: none;
}
.tabs ol a::after {
  background: var(--navy);
  height: 2px;
}

/* ---------- Sections : filets et espace, pas de cartes ---------- */
.section {
  padding-top: 112px;
}
.section + .section {
  border-top: 2px solid var(--navy);
}
.section-head h2 {
  font-size: clamp(34px, 4.4vw, 52px);
}
.block {
  border-top: 1px solid var(--line);
}
.block-head h3 {
  font-size: clamp(26px, 3vw, 36px);
}
.card {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}
.stack-card {
  padding: 0;
  border-top: 1px solid var(--navy);
  border-bottom: 1px solid var(--line);
}
.side {
  gap: 0;
}
.side .card {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.side .card:first-child {
  border-top: 2px solid var(--navy);
}
#e3 .card {
  border-top: 2px solid var(--navy);
  padding-top: 18px;
}
.bar-panel {
  border-top: 2px solid var(--navy);
  padding-top: 16px;
  justify-content: flex-start;
}
.map-card {
  background: transparent;
  border: 0;
  padding: 0;
}
.panel {
  padding: 0;
  border-top: 2px solid var(--navy);
  padding-top: 20px;
}
.stat {
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 12px 0;
}
.rank {
  border: 0;
  border-radius: 0;
  border-top: 2px solid var(--navy);
}
.rank li.head {
  background: transparent;
}
.tf .card {
  padding: 0;
  border-top: 2px solid var(--navy);
}
.theme {
  border-top: 2px solid var(--navy);
  padding-top: 18px;
}
.cv-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px;
}
@media (max-width: 640px) {
  .cv-card {
    padding: 20px 16px;
  }
}

/* ---------- Messages clés : une grande phrase, sans encadré ni icône ---------- */
.key {
  display: block;
  margin-top: 36px;
  padding: 20px 0 0;
  background: none;
  border-top: 2px solid var(--navy);
  border-radius: 0;
}
.key .ico {
  display: none;
}
.key h4 {
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 10px;
}
.key p {
  max-width: 46ch;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
}
.key p + p {
  margin-top: 14px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
}

/* ---------- Pictogrammes : seulement s'ils servent ---------- */
.theme h4 .ico,
.source .ico,
.acc-ico,
.bias-n,
.facts li svg,
.subsection > h3 .step {
  display: none;
}
.facts li {
  padding-left: 0;
}
.timeline::before {
  left: 21px;
}
.timeline .yr {
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--navy);
}

/* ---------- Sources : notes numérotées ---------- */
.sources {
  counter-reset: src;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  border-top: 2px solid var(--navy);
}
.source {
  counter-increment: src;
  display: grid;
  grid-template-columns: 32px 160px minmax(0, 1fr);
  gap: 4px 16px;
  align-items: baseline;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.source:first-child {
  border-top: 0;
}
.source::before {
  content: counter(src);
  font-weight: 800;
  color: var(--muted-2);
}
.source h4,
.source p,
.source a {
  margin: 0;
}
.source h4 {
  font-size: 16px;
}
.source a {
  grid-column: 3;
}
@media (max-width: 640px) {
  .source {
    grid-template-columns: 24px minmax(0, 1fr);
  }
  .source p,
  .source a {
    grid-column: 2;
  }
}

/* ---------- Accordéons, biais, notes ---------- */
.acc {
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
}
.acc + .acc {
  margin-top: 0;
}
.acc summary {
  padding-left: 0;
  padding-right: 0;
}
.acc-body {
  padding-left: 0;
  padding-right: 0;
}
.bias-summary {
  padding: 0;
  border-top: 2px solid var(--navy);
}
.bias-links,
.bias-links a {
  color: var(--muted);
}
.reading {
  border: 0;
  border-radius: 0;
  border-top: 2px solid var(--amber);
  background: transparent;
  padding: 18px 0 0;
}

/* ---------- Graphiques : annotations directes ---------- */
.line-label {
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
}

/* ---------- Pied de page clair ---------- */
.footer {
  background: #fff;
  color: var(--navy);
  border-top: 2px solid var(--navy);
}
.footer p {
  color: var(--muted);
}
.footer .fine {
  border-top-color: var(--line);
}

/* Passe qualité */
.acc summary .bias-ico + .chev,
.acc summary .chev {
  margin-left: auto;
}
@media (max-width: 640px) {
  .kpi strong {
    font-size: 24px;
  }
}

/* ---------- Moins de filets : l'espace sépare, les filets ne restent qu'entre sections et lignes de listes ---------- */
.block,
.stack-card,
.chart-notes.in-card,
.side .card,
.side .card:first-child,
#e3 .card,
.bar-panel,
.panel,
.stat,
.rank,
.tf .card,
.theme,
.key,
.sources,
.bias-summary,
.reading,
.kpis,
.kpi + .kpi,
.kpi:nth-child(even),
.kpi:nth-child(n + 3) {
  border-top: 0;
  border-bottom: 0;
  border-left: 0;
}
.block {
  padding-top: 72px;
}
.chart-notes.in-card {
  margin-top: 20px;
  padding-top: 0;
}
.side {
  gap: 20px;
}
.side .card {
  padding: 0;
}
#e3 .card,
.bar-panel,
.panel,
.tf .card,
.theme {
  padding-top: 0;
}
.stat {
  padding: 0;
}
.panel-grid {
  gap: 20px;
}
.key {
  margin-top: 40px;
  padding-top: 0;
}
.reading {
  padding-top: 0;
}
.kpis {
  gap: 24px;
  margin-top: 48px;
}
.kpi,
.kpi + .kpi,
.kpi:nth-child(even) {
  padding: 0;
}
.source:first-child {
  padding-top: 0;
}

/* Barre d'onglets en haut de page : son logo remplace celui de l'en-tête sur grand écran.
   Sur mobile, la barre n'affiche pas de logo : celui de l'en-tête reste visible. */
@media (min-width: 861px) {
  .hero-top {
    display: none;
  }
  .hero {
    padding-top: 72px;
  }
}
.hero .lead {
  max-width: 68ch;
}

/* ---------- Changement de section : alternance de fonds au lieu d'un filet pleine largeur ---------- */
.section + .section,
.footer {
  border-top: 0;
}
#analyse-detaillee,
.footer {
  background: #f7f7fa;
}
#analyse-detaillee {
  padding-bottom: 96px;
}
#methodologie {
  padding-top: 112px;
}
/* Éléments gris clair posés sur le fond de la section 2 : passés en blanc pour rester distincts. */
#analyse-detaillee .pills,
#analyse-detaillee .note,
#analyse-detaillee .chip,
#analyse-detaillee .search input,
#analyse-detaillee .map-legend button,
#analyse-detaillee .rank .pos,
#analyse-detaillee .rank .track {
  background: #fff;
}
#analyse-detaillee .note {
  border-color: var(--line);
}

/* ---------- En-tête : exemple 350 kWh et Espec moyen des trois régions ---------- */
.hero-sub {
  margin: 28px 0 0;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--navy);
}
.hero-ex {
  margin: 14px 0 0;
  font-size: 17px;
  line-height: 2;
  color: var(--navy);
}
.hero-ex .lbl {
  margin-right: 2px;
  vertical-align: 1px;
}
.hero-sub + .hero-ex + .lead {
  margin-top: 8px;
}
.hero-regions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 32px;
  margin-top: 48px;
}
.hr {
  display: grid;
  gap: 6px;
  padding-top: 14px;
  border-top: 3px solid var(--green);
}
.hr .k {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.hr.best .k {
  color: var(--navy);
}
.hr .v {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hr .v strong {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
  line-height: 1.1;
}
.hr .u {
  font-size: 13px;
  color: var(--muted);
}
@media (max-width: 640px) {
  .hero-ex {
    font-size: 16px;
  }
  .hero-regions {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 36px;
  }
  .hr .v strong {
    font-size: 30px;
  }
}
.hero-ex .nw {
  white-space: nowrap;
}

/* ---------- Fiche commune détaillée ---------- */
#search-result.result {
  max-width: 760px;
}
.cdetail {
  margin-top: 28px;
}
.crank {
  margin: 0 0 28px;
  font-size: 15px;
  color: var(--navy);
}
.crank b {
  font-size: 20px;
}
.crank sup {
  font-size: 0.6em;
}
.cdetail h5 {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.cdetail h5 ~ h5 {
  margin-top: 28px;
}
.ctab {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  color: var(--navy);
}
.ctab th,
.ctab td {
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}
.ctab thead th {
  padding-top: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  border-bottom-color: var(--line-2);
}
.ctab tbody th {
  font-weight: 700;
}
.ctab tbody th small,
.ctab td small {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}
.ctab td .num {
  font-weight: 700;
}
.ctab td .lbl {
  margin-left: 8px;
}
.ctab td.me {
  box-shadow: inset 0 -2px 0 var(--navy);
}
.ctab .gap {
  font-weight: 700;
}
.ctab .gap.down {
  color: var(--green-ink);
}
.ctab .gap.up {
  color: var(--danger);
}
.ctab-wrap {
  overflow-x: auto;
}
@media (max-width: 640px) {
  .ctab {
    font-size: 13px;
  }
  .ctab th,
  .ctab td {
    padding-right: 8px;
  }
  .ctab td .lbl {
    margin-left: 4px;
  }
}
/* Fiche commune : le label seul, sans valeur Espec. */
.ctab td .lbl:first-child {
  margin-left: 0;
}
.result .rv-k {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

/* ---------- Sélecteur de langue ---------- */
.lang-switch {
  display: inline-flex;
  flex-shrink: 0;
  padding: 3px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
}
.lang-switch a {
  display: inline-grid;
  place-items: center;
  min-width: 40px;
  height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-decoration: none;
}
.lang-switch a:hover {
  color: var(--navy);
}
.lang-switch a[aria-current='page'] {
  background: var(--navy);
  color: #fff;
}
.tabs .lang-switch {
  margin-left: 8px;
}
/* Mobile : la barre d'onglets occupe toute la largeur ; le sélecteur passe dans l'en-tête, à la place du nom
   de l'édition (déjà repris par le surtitre). Cibles tactiles de 48 px. */
@media (max-width: 860px) {
  .tabs .lang-switch,
  .hero-top .edition {
    display: none;
  }
  .hero-top .lang-switch a {
    min-width: 48px;
    height: 48px;
    font-size: 14px;
  }
}

/* ---------- Retour en haut de page ---------- */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(32, 32, 55, 0.55);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s, background 0.2s;
}
.to-top.show {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.to-top:hover {
  background: #33335a;
}
.to-top:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}
@media (max-width: 640px) {
  .to-top {
    right: 16px;
    bottom: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .to-top {
    transition: none;
  }
}

/* Lien certinergie.be dans la ligne de pied */
.footer .fine a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
  display: inline-block;
  padding: 14px 0;
  margin: -14px 0;
}
.footer .fine a:hover {
  text-decoration-thickness: 2px;
}

/* Classement des provinces : échelle PEB en filigrane, repère à la valeur (axe fixe, pas de barre « à 100 % »). */
.ptrack {
  position: relative;
  display: block;
  height: 6px;
  border-radius: 3px;
  overflow: visible;
}
.ptrack i {
  position: absolute;
  top: 0;
  bottom: 0;
  opacity: 0.35;
}
.ptrack i:first-child {
  border-radius: 3px 0 0 3px;
}
.ptrack i:nth-last-child(2) {
  border-radius: 0 3px 3px 0;
}
.ptrack b {
  position: absolute;
  bottom: calc(100% + 2px);
  width: 0;
  height: 0;
  margin-left: -6px;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid var(--navy);
}
.ptrack b::after {
  content: '';
  position: absolute;
  left: -1px;
  top: -2px;
  width: 2px;
  height: 14px;
  background: var(--navy);
}
@media (max-width: 760px) {
  .rank .ptrack {
    grid-area: track;
    margin: 12px 0 6px;
  }
}

/* ================= Rapport Pourbaix (v2, 14/10/2026) ================= */
/* Nouvel ordre des sections : alternance des fonds conservée (blanc, gris…). */
/* Page « Outils » (FR et NL) : convertisseur sur fond blanc avant le pied de page gris. */
#enjeux-reglementations,
#convertisseur {
  padding-top: 112px;
}
#convertisseur {
  padding-bottom: 112px;
}

/* T1 : introduction du baromètre, juste après le titre, sur toute la largeur (moins de hauteur). */
.hero-intro {
  margin: 28px 0 0;
  max-width: none;
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
}

/* F6 : messages clés sur toute la largeur disponible. */
.key p {
  max-width: none;
}

/* D1 : date d'extraction des données dans les sources. */
.source .extract {
  grid-column: 3;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
}
@media (max-width: 640px) {
  .source .extract {
    grid-column: 2;
  }
}

/* Aides : pastille de région dans le titre de la carte. */
.theme h4 .region-tag {
  margin-right: 4px;
}
#aides .rules-missing .region-tag {
  margin-right: 6px;
}

/* 4.3 : tableau des exigences, objectifs et échéances. */
.rules-table {
  width: 100%;
  margin-top: 24px;
  border-collapse: collapse;
  border-top: 2px solid var(--navy);
  font-size: 15px;
  line-height: 1.55;
}
.rules-table thead th {
  padding: 14px 16px 14px 0;
  text-align: left;
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
}
.rules-table tbody th,
.rules-table td {
  padding: 20px 24px 20px 0;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--line);
}
.rules-table tbody th {
  width: 140px;
  font-weight: 700;
}
.rules-table td {
  width: calc((100% - 140px) / 2);
  color: var(--navy);
}
.rules-table td p {
  margin: 0;
}
.rules-table td p + p {
  margin-top: 10px;
}
@media (max-width: 760px) {
  .rules-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .rules-table,
  .rules-table tbody,
  .rules-table tr,
  .rules-table tbody th,
  .rules-table td {
    display: block;
    width: auto;
  }
  .rules-table tr {
    padding: 20px 0;
    border-top: 1px solid var(--line);
  }
  .rules-table tr:first-child {
    border-top: 0;
  }
  .rules-table tbody th,
  .rules-table td {
    padding: 0;
    border-top: 0;
  }
  .rules-table td {
    margin-top: 14px;
  }
  .rules-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 800;
    color: var(--muted);
  }
}

/* Bandeau : titres courts sur une ligne (Comprendre / Explorer / Méthodologie / Calendriers). Sous 1281 px, la barre
   défile horizontalement (sans débordement de la page). */
.tabs ol a {
  white-space: nowrap;
}
@media (max-width: 1280px) {
  .tabs .wrap {
    padding-right: 0;
  }
  .tabs ol {
    margin: 0;
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
    justify-content: flex-start;
  }
  .tabs ol::-webkit-scrollbar {
    display: none;
  }
  .tabs li {
    flex: 0 0 auto;
  }
  .tabs ol a {
    white-space: nowrap;
    min-height: 48px;
  }
  .tabs .long {
    display: none;
  }
  .tabs .short {
    display: inline;
  }
}
/* Aides : deux cartes (Wallonie, Flandre) côte à côte, la note bruxelloise en dessous. */
@media (min-width: 761px) {
  #aides {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 48px;
  }
}
#aides .rules-missing {
  grid-column: 1 / -1;
}

/* Messages clés : textes du rapport Pourbaix nettement plus longs, style de paragraphe mis en avant
   au lieu de la grande phrase. */
.key p {
  font-size: clamp(16px, 1.4vw, 18px);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0;
  color: var(--navy);
}
.key p + p {
  font-size: 15px;
  color: var(--muted);
}
/* Repère du message clé : filet vert à gauche. */
.key {
  border-left: 3px solid var(--green);
  padding-left: 20px;
}
@media (max-width: 640px) {
  .key {
    padding-left: 14px;
  }
}

/* Bandeau : lien vers la page « Outils » et retour au baromètre, distincts des onglets de section. */
.tabs .nav-tools a,
.tabs .nav-back a {
  gap: 6px;
  color: var(--navy);
}
.tabs .nav-tools a::after,
.tabs .nav-back a::after {
  display: none;
}
.tabs .nav-tools {
  display: flex;
  align-items: center;
  margin-left: 8px;
}
.tabs .nav-tools a {
  height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  white-space: nowrap;
}
.tabs .nav-tools a:hover {
  border-color: var(--navy);
}
.tabs .nav-back a {
  white-space: nowrap;
  margin-right: 8px;
}
.tabs .nav-back svg {
  transform: rotate(90deg);
}
@media (max-width: 860px) {
  .tabs .nav-tools,
  .tabs .nav-back {
    flex: 0 0 auto;
  }
  .tabs .nav-tools a {
    height: 48px;
    padding: 0 10px;
  }
  /* Bouton « Outils » : pas d’icône entre 421 et 860 px. */
  .tabs .nav-tools svg {
    display: none;
  }
}

/* En-tête de la page « Outils » : titre seul. */
.hero-tools {
  padding-bottom: 24px;
}
.hero-tools ~ main > .section:first-child {
  padding-top: 64px;
}
/* Très petits écrans : onglets resserrés ; « Outils » en bouton icône (libellé gardé pour les lecteurs d'écran)
   pour que les quatre onglets et le bouton tiennent à 390 px. */
@media (max-width: 420px) {
  .tabs ol a {
    padding: 0 4px;
    font-size: 12.5px;
  }
  .tabs .nav-tools a {
    width: 48px;
    padding: 0;
    justify-content: center;
  }
  .tabs .nav-tools svg {
    display: block;
    width: 20px;
    height: 20px;
  }
  .tabs .nav-tools .lbl {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

/* T2 : terme défini, infobulle au survol, au focus ou au toucher. */
.term {
  display: inline;
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-decoration: underline dotted;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  text-decoration-color: var(--green, #83bf38);
  cursor: help;
}
.term:hover,
.term[aria-expanded='true'] {
  color: var(--navy);
}
.term:focus-visible {
  outline: 2px solid var(--green, #83bf38);
  outline-offset: 2px;
  border-radius: 2px;
}
.term-tip {
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  box-sizing: border-box;
  padding: 12px 14px;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
  box-shadow: 0 10px 24px -10px rgba(32, 32, 55, 0.6);
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.12s;
}
.term-tip.show {
  visibility: visible;
  opacity: 1;
}

/* Titre principal : accroche en grand, sous-titre (après les deux-points) plus petit, sur sa propre ligne. */
.hero h1 .h1-sub {
  display: block;
  max-width: 34ch;
  margin-top: 0.35em;
  font-size: 0.5em;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* ---------- Page « Outils » : hub (maquette « Page Outils PEB (hub marketing) », adaptée à la DA du baromètre) ---------- */
.hero-tools {
  padding-bottom: 40px;
}
.hub-project {
  margin-top: 36px;
}
.hub-q {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 800;
  color: var(--navy);
}
/* Choix du projet : pastilles qui passent à la ligne, toutes visibles (pas de défilement caché). */
.hub-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hub-pills button {
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.hub-pills button:hover:not([aria-pressed='true']) {
  border-color: var(--navy);
}
.hub-pills button[aria-pressed='true'] {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.hub-pills button:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
}
@media (max-width: 640px) {
  .hub-pills button {
    padding: 0 16px;
    font-size: 14px;
  }
}

.hub-kicker {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-ink);
}
.hub-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  flex-wrap: wrap;
}
.hub-head h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.hub-head h2 .kw {
  font-weight: 800;
}
.hub-meta {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

/* Cartes d'outils : filets plutôt que boîtes ; les outils recommandés pour le projet passent devant, filet vert. */
/* Quatre outils : grille 2 × 2 (pas de carte orpheline). */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px 64px;
  margin-top: 40px;
}
@media (max-width: 640px) {
  .hub-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
}
.tool {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 18px;
  border-top: 2px solid var(--line-2);
}
.tool.is-reco {
  border-top: 3px solid var(--green);
  padding-top: 17px;
}
.tool-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 26px;
}
.tool-n {
  font-size: 14px;
  font-weight: 800;
  color: var(--muted-2);
}
.tool-reco {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-ink);
  font-size: 12px;
  font-weight: 800;
}
.tool h3 {
  margin: 12px 0 0;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.tool p {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}
.tool-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin: 14px 0 22px;
  font-size: 13px;
  color: var(--muted);
}
.tool-time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--navy);
}
.tool-cta {
  margin-top: auto;
}
.tool-cta svg,
.hub-promo-cta svg {
  margin-left: 6px;
  flex: none;
}
/* Lien pas encore fourni : bouton grisé, non cliquable. */
.is-soon {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: auto;
}
.btn-primary.is-soon:hover {
  background: var(--green);
}
.btn-ghost.is-soon:hover {
  border-color: var(--line-2);
}

/* Bandeau d'offre selon le projet : bloc navy, comme le résultat du simulateur. */
.hub-promo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px 48px;
  margin-top: 64px;
  padding: 40px;
  border-radius: var(--radius-lg);
  background: var(--navy);
  color: #fff;
}
.hub-promo-k {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
}
.hub-promo h3 {
  margin: 10px 0 0;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #fff;
}
.hub-promo p {
  margin: 10px 0 0;
  max-width: 62ch;
  color: var(--line-2);
}
.hub-promo ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  font-weight: 700;
}
.hub-promo li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hub-promo li svg {
  color: var(--green);
}
.hub-promo-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 260px;
}
.btn-light {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
}
.btn-light:hover {
  border-color: #fff;
  color: #fff;
}
.btn-light.is-soon:hover {
  border-color: rgba(255, 255, 255, 0.35);
}
@media (max-width: 860px) {
  .hub-promo {
    grid-template-columns: minmax(0, 1fr);
    padding: 28px 24px;
  }
  .hub-promo-cta {
    min-width: 0;
  }
}

/* Services Certinergie : quatre colonnes à filets, comme les thèmes des réglementations. */
#services .hub-kicker {
  display: block;
}
.services {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin-top: 40px;
}
@media (max-width: 1024px) {
  .services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .services {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
}
.service {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 18px;
  border-top: 2px solid var(--navy);
}
.service h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
}
.service p {
  margin: 8px 0 14px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}
.service-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: auto;
  font-weight: 800;
  color: var(--green-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.section-head:has(+ .trust) {
  margin-bottom: 24px;
}
/* Repères Certinergie, juste sous l'introduction de la section (au-dessus des services). */
.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--muted);
}
.trust b {
  color: var(--navy);
}

/* Lettre d'information. */
.newsletter {
  margin-top: 96px;
  padding: 48px 0;
  background: var(--surface);
}
.newsletter .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 24px 48px;
}
.newsletter h2 {
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.newsletter h2 .kw {
  font-weight: 800;
}
.newsletter p {
  margin: 8px 0 0;
  color: var(--muted);
}
.nl-form {
  display: flex;
  gap: 10px;
}
.nl-form input {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: #fff;
  font: inherit;
  color: var(--navy);
}
.nl-form input:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 1px;
}
.nl-form .btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
@media (max-width: 760px) {
  .newsletter .wrap {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 420px) {
  .nl-form {
    flex-direction: column;
  }
}
.hub-disclaimer {
  margin-top: 32px;
  font-size: 13px;
  color: var(--muted);
}
.hub-disclaimer a {
  color: var(--green-ink);
}
.newsletter + .hub-disclaimer + * {
  margin-top: 0;
}
/* Hub : accroche sur deux lignes (« Votre PEB, en clair » / « et en euros. »). */
.hero-tools h1 {
  max-width: none;
}
.hero-tools h1 .kw {
  display: block;
}
/* Régions des cartes : pastilles compactes, sur une ligne. */
.tool-meta .region-tag {
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: none;
}
.service-link {
  gap: 4px;
}

/* ---------- Page « Outils » : Mes échéances PEB ---------- */
.ech-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 32px;
  align-items: flex-end;
}
.ech-year select {
  display: block;
  min-height: 48px;
  min-width: 120px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: #fff;
  font: inherit;
  font-weight: 700;
  color: var(--navy);
}
.ech-year[hidden] {
  display: none;
}
.ech-labels {
  margin-top: 24px;
}
.ech-label-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
/* Choix du label : la pastille de couleur du label, encadrée quand elle est choisie. */
.ech-label-row button {
  display: grid;
  place-items: center;
  min-width: 48px;
  min-height: 48px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--radius-lg);
  background: #fff;
  cursor: pointer;
}
.ech-label-row button:hover {
  border-color: var(--line-2);
}
.ech-label-row button[aria-pressed='true'] {
  border-color: var(--navy);
}
.ech-label-row button:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
}
.ech-card .cv-sentence {
  margin-top: 28px;
}
.ech-steps {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  border-top: 2px solid var(--navy);
}
.ech-steps li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 8px 16px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.ech-steps .yr {
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.ech-steps .tx {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  line-height: 1.45;
}
.ech-steps .tx .lbl {
  flex: none;
}
.ech-status {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
}
.ech-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  vertical-align: 1px;
}
.ech-tag.todo {
  background: var(--amber-soft);
  color: var(--amber-ink);
}
.ech-tag.done {
  background: var(--green-soft);
  color: var(--green-ink);
}
.ech-card .note {
  margin-top: 20px;
}
@media (max-width: 640px) {
  .ech-steps li {
    grid-template-columns: 52px minmax(0, 1fr);
  }
  .ech-status {
    grid-column: 2;
    text-align: left;
  }
  .ech-controls > div {
    width: 100%;
  }
  .ech-year select {
    width: 100%;
  }
}
/* Page « Outils », très petits écrans : l'onglet « Outils » (haut de page) est masqué pour que le bandeau tienne. */
@media (max-width: 420px) {
  .tabs .nav-hub {
    display: none;
  }
}

/* Section « Calendriers » : source des échéances sous le tableau. */
.rules-src {
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--muted, #5b5b73);
}
.rules-src .src {
  margin: 0;
  font-size: inherit;
}

/* ================= « Mes échéances PEB » : module Calendrier PEB Belgique (statut juridique au 16/10/2026) ================= */
.ech-sub {
  margin: 8px 0 0;
  max-width: 75ch;
  color: var(--muted);
}
.ech-info {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 22px;
  border-radius: 4px;
  background: var(--navy);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}
.ech-status {
  justify-self: end;
  padding: 3px 8px;
  border-radius: 5px;
  white-space: nowrap;
}
.ech-status.s-IN_FORCE {
  background: var(--green-soft);
  color: var(--green-ink);
}
.ech-status.s-VOTED {
  background: #e6ecfa;
  color: #2f4f9e;
}
.ech-status.s-PLANNED {
  background: var(--amber-soft);
  color: var(--amber-ink);
}
.ech-status.s-DROPPED {
  background: var(--surface);
  color: var(--muted);
}
.ech-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.ech-legend .ech-status {
  justify-self: auto;
}
.ech-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin-top: 40px;
}
.ech-facts h3,
.ech-legal h3 {
  margin: 0 0 14px;
  padding-top: 16px;
  border-top: 2px solid var(--navy);
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
}
.ech-flist {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ech-flist li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  font-size: 15px;
  color: var(--navy);
}
.ech-ftag {
  margin-top: 2px;
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.ech-ftag.f-v {
  background: var(--green-soft);
  color: var(--green-ink);
}
.ech-ftag.f-b {
  background: #e6ecfa;
  color: #2f4f9e;
}
.ech-ftag.f-p {
  background: var(--amber-soft);
  color: var(--amber-ink);
}
.ech-legal {
  margin-top: 40px;
}
.ech-legal p {
  margin: 0 0 10px;
  max-width: 85ch;
  font-size: 14px;
  color: var(--muted);
}
.ech-src a {
  color: var(--navy);
  font-weight: 700;
}
@media (max-width: 760px) {
  .ech-facts {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .ech-status {
    justify-self: start;
  }
}

/* Affichage desktop : rendu équivalent à un zoom navigateur de 95 %, jugé plus lisible (plus de contenu par écran,
   texte moins massif). Réservé aux écrans larges ; mobile et tablette gardent leur échelle d'origine. */
@media (min-width: 1024px) {
  html {
    zoom: 0.95;
  }
}

/* Desktop : aucun texte sous 13 px (les légendes, puces et notes de 11 à 12 px devenaient illisibles avec le zoom). */
@media (min-width: 1024px) {
  .annot text,
  .axis text,
  .bias-table td small,
  .bias-table th,
  .cdetail h5,
  .chip,
  .commune-row .nm small,
  .commune-row .vv small,
  .cover-row .kk,
  .cover-total span small,
  .ctab tbody th small,
  .ctab td small,
  .ctab thead th,
  .ech-ftag,
  .ech-info,
  .ech-status,
  .ech-tag,
  .eyebrow,
  .formula sub,
  .gain-period,
  .gain-region,
  .gain-row span,
  .hero-top .edition,
  .hr .k,
  .hub-kicker,
  .hub-promo-k,
  .key h4,
  .lbl.sm,
  .line-label,
  .panel h4,
  .pill-label,
  .proj-tag,
  .rank li.head,
  .reach,
  .reading b,
  .retain b,
  .scale-cap,
  .scale-cursor span,
  .scale-seg,
  .scale-ticks,
  .sguide b,
  .sn,
  .sseg small,
  .stat .k,
  .stat .v small,
  .sticks,
  .subsection > h3 .step,
  .suggest li small,
  .table-mini th,
  .tabs ol a .n,
  .tag,
  .timeline .yr,
  .tip small,
  .tool-meta .region-tag,
  .tool-reco,
  .warn-inline {
    font-size: 13px;
  }
}

/* Paragraphes justifiés, avec césure automatique (lang fr/nl) */
main p:not(.crank):not(.muted),
.foot p,
footer p {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;
}

/* Le chapeau du hero (hors <main>) est justifié lui aussi */
.hero-intro,
.hero .lead {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;
}

/* Bannière de consentement */
.cc {
  position: fixed;
  z-index: 60;
  left: 24px;
  bottom: 24px;
  width: min(420px, calc(100vw - 48px));
  padding: 22px 22px 20px;
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--line-2);
  border-top: 3px solid var(--green);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(32, 32, 55, 0.16);
  animation: cc-in 0.28s ease-out;
}
.cc-t {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.cc .cc-b {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  text-align: left;
  hyphens: manual;
}
.cc .cc-b a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cc-a {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.cc-btn {
  min-height: 48px;
  padding: 0 16px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--navy);
  border-radius: 999px;
  cursor: pointer;
}
.cc-btn:hover {
  background: #f1f1f6;
}
.cc-btn.cc-yes {
  background: var(--green);
  border-color: var(--green);
}
.cc-btn.cc-yes:hover {
  background: #95cf4a;
  border-color: #95cf4a;
}
.cc-btn:focus-visible,
.cc-link:focus-visible,
.cc .cc-b a:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
}
.cc-link {
  padding: 0;
  font: inherit;
  color: var(--navy);
  background: none;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
@keyframes cc-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}
@media (max-width: 640px) {
  .cc {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    padding: 18px 16px 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cc {
    animation: none;
  }
}

/* Carte des provinces : la région choisie s'efface au profit de ses provinces, colorées par label PEB. */
.region-shape.has-prov { opacity: 0; pointer-events: none; }
.map-svg.has-sel .region-shape.has-prov:not(.sel) { opacity: 0; }
.prov-shape {
  cursor: pointer;
  stroke: #fff;
  stroke-width: 2.5;
  stroke-linejoin: round;
  transition: opacity 0.2s, filter 0.2s;
}
.prov-shape:focus { outline: none; }
.prov-shape:focus-visible { stroke: var(--navy); stroke-width: 4; }
#prov-layer:has(.sel) .prov-shape:not(.sel) { opacity: 0.45; }
.prov-shape.sel { stroke: var(--navy); stroke-width: 3.5; }
@media (hover: hover) {
  .prov-shape:hover { filter: brightness(1.12) saturate(1.1); opacity: 1 !important; }
}
.prov-label {
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  fill: #fff;
  stroke: rgba(32, 32, 55, 0.9);
  stroke-width: 4px;
  stroke-linejoin: round;
  paint-order: stroke;
  pointer-events: none;
  letter-spacing: -0.01em;
}
@media (max-width: 640px) {
  .prov-label { font-size: 22px; }
}
.prov-card {
  margin: 4px 0 18px;
  padding: 14px 16px 16px;
  border-left: 3px solid var(--green);
  background: var(--surface);
  border-radius: 0 var(--radius-lg, 12px) var(--radius-lg, 12px) 0;
}
.prov-card h4 { margin-top: 0; }
.rank li.prow { cursor: pointer; }
.rank li.prow:hover, .rank li.prow.sel { background: var(--surface); }
.rank li.prow.sel { box-shadow: inset 3px 0 0 var(--green); }
.map-hint { margin: 10px 0 0; font-size: 13px; color: var(--muted); text-align: left; }
