/* Élection québécoise 2026 : cybersécurité, vie privée et gouvernement numérique
   Design tokens and components from the Claude Design handoff (README.md). */

:root {
  --blue: #095797;
  --navy: #0b1a2e;
  --navy-deep: #07111f;
  --navy-line: #1d3a5c;
  --cyan: #00a6c7;
  --cyan-light: #7fd8ea;
  --teal: #00809b;
  --blue-light: #dae6f0;
  --ice: #e2f3f7;
  --ice-border: #bfe3ec;
  --sky: #4a98d9;
  --grey-bg: #f1f1f2;
  --zebra: #f7f9fb;
  --border: #c5cad2;
  --border-soft: #d7dce2;
  --border-row: #dde2e8;
  --muted: #4e5a66;
  --muted-dark: #3d4853;
  --yellow: #f8e69a;
  --yellow-light: #fff4c2;
  --red: #cb381f;
  --red-bg: #fdf1ee;
  --red-light: #fde7e3;
  --green-bg: #dff3e8;
  --green: #135c33;
  --font-body: "Open Sans", Arial, sans-serif;
  --font-head: Roboto, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --sticky-offset: 84px;
}

/* ---- Base (the design's global rules; :where() keeps them below component classes) ---- */
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--navy); font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
:where(a) { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
:where(a:hover) { color: var(--navy); text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
:where(sup a) { text-decoration: none; font-weight: 600; }
:where(li:target, tr:target) { background: var(--yellow-light); }

/* ---- Header ---- */
.site-header {
  background: var(--navy-deep);
  background-image: linear-gradient(rgba(74,152,217,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(74,152,217,.09) 1px, transparent 1px);
  background-size: 32px 32px;
  color: #fff;
}
.site-header__inner { max-width: 1320px; margin: 0 auto; padding: 18px 24px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.site-header__title { font-family: var(--font-head); font-weight: 700; font-size: 20px; }
.site-header__subtitle { font-size: 16px; color: var(--blue-light); }
.site-header__bar { height: 3px; background: linear-gradient(90deg, #00a6c7, #095797 60%, #0b1a2e); }

/* ---- Main menu ---- */
.menu { position: static; top: 0; z-index: 30; background: var(--navy); border-bottom: 1px solid var(--navy-line); box-shadow: 0 4px 14px rgba(7,17,31,.25); }
.menu--sticky { position: sticky; }
.menu__inner { max-width: 1320px; margin: 0 auto; padding: 0 16px; display: flex; flex-wrap: wrap; align-items: stretch; gap: 2px; }
.menu__cat { position: relative; }
.menu__btn { height: 56px; padding: 0 16px; background: transparent; border: 0; border-bottom: 3px solid transparent; color: #e6eef6; font-family: 'Open Sans', Arial, sans-serif; font-size: 15px; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.menu__btn:hover { color: var(--cyan-light); border-bottom: 3px solid var(--cyan); }
.menu__caret { font-size: 10px; color: var(--cyan-light); }
.menu__panel { position: absolute; top: 100%; left: 0; min-width: 290px; max-height: 70vh; overflow: auto; background: #fff; border: 1px solid var(--border); border-top: 3px solid var(--cyan); border-radius: 0 0 4px 4px; box-shadow: 0 12px 28px rgba(7,17,31,.22); padding: 8px; display: flex; flex-direction: column; gap: 2px; z-index: 40; }
.menu__panel[hidden] { display: none; }
.menu__panel--wide { min-width: 300px; }
.menu__link { display: flex; align-items: center; gap: 10px; padding: 10px 12px; color: var(--navy); text-decoration: none; font-size: 15px; border-radius: 3px; }
.menu__link:hover { background: var(--ice); color: var(--blue); }

/* ---- Party logo chips ---- */
.chip { background: #fff; border: 1px solid var(--border-soft); border-radius: 4px; padding: 3px 6px; display: inline-flex; align-items: center; box-sizing: border-box; flex: 0 0 auto; }
.chip img { width: auto; object-fit: contain; display: block; }
.chip--xs { height: 26px; }
.chip--xs img { height: 18px; max-width: 54px; }
.chip--sm { height: 30px; }
.chip--sm img { height: 22px; max-width: 66px; }
.chip--th { height: 28px; }
.chip--th img { height: 20px; max-width: 60px; }
.chip--lg { height: 38px; }
.chip--lg img { height: 30px; max-width: 90px; }

/* ---- Page layout ---- */
.layout { max-width: 1320px; margin: 0 auto; padding: 0 24px; display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.toc { flex: 0 0 240px; position: static; top: 24px; margin-top: 48px; padding: 20px; background: var(--grey-bg); border-radius: 4px; max-height: calc(100vh - 48px); overflow: auto; box-sizing: border-box; }
.toc--sticky { position: sticky; }
.menu--sticky ~ .layout .toc { top: var(--sticky-offset); }
.toc__title { font-family: var(--font-head); font-weight: 700; font-size: 18px; margin-bottom: 12px; }
.toc__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.35; }
.toc__sub { list-style: none; margin: 8px 0 0; padding: 0 0 0 14px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
@media (max-width: 899.98px) { .toc { display: none; } }
.main { flex: 1 1 0; min-width: 0; padding: 48px 0 80px; font-size: 18px; line-height: 1.6; }

/* ---- Typography ---- */
.page-title { font-family: var(--font-head); font-weight: 700; font-size: 40px; line-height: 1.2; margin: 0 0 28px; max-width: 900px; text-wrap: balance; }
.lead { margin: 0 0 32px; font-size: 20px; line-height: 1.6; max-width: 900px; text-wrap: pretty; }
.section { scroll-margin-top: var(--sticky-offset); }
.h2 { font-family: var(--font-head); font-weight: 700; font-size: 32px; line-height: 1.25; padding-bottom: 14px; background: linear-gradient(#00a6c7, #00a6c7) left bottom/72px 4px no-repeat; margin: 64px 0 24px; }
.h2--tight { margin: 56px 0 12px; }
.h2--near { margin: 56px 0 24px; }
.h2--legend { margin: 64px 0 20px; }
.h3 { font-family: var(--font-head); font-weight: 700; font-size: 24px; line-height: 1.3; margin: 40px 0 16px; }
.h3--top { margin: 0 0 8px; }
.h3--first { margin: 0 0 16px; }
.h3--gap { margin: 48px 0 16px; }
.text { margin: 0 0 16px; max-width: 900px; }
.text--24 { margin-bottom: 24px; }
.text--20 { margin-bottom: 20px; }
.text--28 { margin-bottom: 28px; }
.text-16 { margin: 0; font-size: 16px; line-height: 1.6; }
.note-muted { margin: 0 0 20px; font-size: 16px; color: var(--muted); max-width: 820px; }
.note-muted--table { margin: 0 0 16px; max-width: none; }
.on-dark { color: var(--cyan-light); }
.url { word-break: break-all; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 4px; background: var(--blue-light); color: var(--blue); font-size: 13px; font-weight: 700; margin-right: 4px; }
.card-links { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 15px; font-weight: 600; }

/* Accent top borders shared by the cards */
.accent-blue { border-top-color: #095797 !important; }
.accent-red { border-top-color: #cb381f !important; }
.accent-navy { border-top-color: #0b1a2e !important; }
.accent-sky { border-top-color: #4a98d9 !important; }
.accent-cyan { border-top-color: #00a6c7 !important; }

/* ---- Sommaire exécutif ---- */
.themes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 20px; }
.card-theme { scroll-margin-top: var(--sticky-offset); border: 1px solid var(--border); border-top: 6px solid; border-radius: 4px; padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; background: #fff; }
.card-title { font-family: var(--font-head); font-weight: 700; font-size: 22px; line-height: 1.3; margin: 0; }
.card-theme__list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; font-size: 16px; line-height: 1.55; }
.h3-nist { scroll-margin-top: var(--sticky-offset); font-family: var(--font-head); font-weight: 700; font-size: 26px; line-height: 1.3; margin: 48px 0 8px; }
.nist-summary { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.chart { flex: 1 1 420px; min-width: 0; margin: 0; border: 1px solid var(--border); border-radius: 4px; padding: 20px; background: #fff; }
.chart__caption { font-family: var(--font-head); font-weight: 700; font-size: 17px; margin-bottom: 4px; }
.chart__note { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.chart__scroll { overflow-x: auto; }
.scores { min-width: 460px; display: grid; grid-template-columns: 130px repeat(3, minmax(0, 1fr)); gap: 10px 16px; align-items: center; font-size: 14px; }
.scores__col { font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--teal); }
.flex-center { display: flex; align-items: center; gap: 8px; }
.meter { flex: 1; height: 14px; background: #eef0f3; border-radius: 2px; overflow: hidden; }
.meter__fill { height: 100%; background: linear-gradient(90deg, #095797, #00a6c7); }
.scores__value { font-family: var(--font-mono); font-size: 13px; font-weight: 700; min-width: 44px; text-align: right; }
.nist-cards { flex: 1 1 420px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.card-nist { border: 1px solid var(--border); border-top: 6px solid; border-radius: 4px; padding: 22px 24px; display: flex; flex-direction: column; gap: 12px; background: #fff; }
.card-nist__title { font-family: var(--font-head); font-weight: 700; font-size: 20px; line-height: 1.3; margin: 0; }
.card-nist__text { margin: 0; font-size: 16px; line-height: 1.55; }

/* ---- En bref ---- */
.bref-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.card-bref { border: 1px solid var(--border); border-top: 6px solid; border-radius: 4px; padding: 24px; background: #fff; }
.card-bref--critical { border: 2px solid var(--red); border-top: 6px solid var(--red); background: #fff6f4; }
.card-bref__title { font-family: var(--font-head); font-weight: 700; font-size: 22px; line-height: 1.3; margin: 0 0 12px; }
.nist-note { margin-top: 14px; padding: 12px 14px; background: var(--ice); border: 1px solid var(--ice-border); border-radius: 3px; font-size: 15px; line-height: 1.5; }
.nist-note__label { font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--teal); display: block; margin-bottom: 4px; }
.transversal { margin-top: 20px; padding: 16px 20px; background: var(--navy); color: #e6eef6; border-radius: 4px; font-size: 16px; line-height: 1.55; border-left: 0; }

/* ---- Documents ---- */
.docs-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 4px; }
.docs { width: 100%; min-width: 860px; border-collapse: collapse; font-size: 15px; line-height: 1.55; }
.docs thead tr { background: var(--navy); color: #fff; text-align: left; }
.docs th { padding: 14px 16px; font-family: var(--font-head); font-size: 16px; }
.docs th:nth-child(1) { width: 17%; }
.docs th:nth-child(2) { width: 41%; }
.docs tbody tr { border-bottom: 1px solid var(--border-soft); }
.docs tbody tr:nth-child(even) { background: var(--zebra); }
.docs tbody tr:last-child { border-bottom: 0; }
.docs td { padding: 16px; vertical-align: top; }
.docs__logo { height: 40px; display: flex; align-items: center; margin-bottom: 8px; }
.docs__logo img { height: 36px; width: auto; max-width: 108px; object-fit: contain; display: block; }
.party-label { font-family: var(--font-head); font-weight: 700; font-size: 18px; }
.docs__leader { color: var(--muted); }
.notes-list { margin: 0; padding-left: 24px; display: flex; flex-direction: column; gap: 12px; max-width: 900px; }

/* ---- Comparaison ---- */
.legend { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; padding: 16px 20px; background: var(--grey-bg); border-radius: 4px; font-size: 16px; margin-bottom: 32px; }
.legend__title { font-weight: 700; }
.legend__item { display: flex; gap: 8px; align-items: center; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.badge--spaced { margin-bottom: 8px; }
.badge--P { background: #095797; color: #fff; }
.badge--V { background: #f8e69a; color: #0b1a2e; }
.badge--A { background: #e3e7ec; color: #3d4853; }
.heat { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; margin-bottom: 40px; }
.heat__box { flex: 1 1 440px; min-width: 0; border: 1px solid var(--border); border-radius: 4px; padding: 20px; overflow-x: auto; }
.heat__grid { min-width: 420px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.heat__row { display: grid; grid-template-columns: minmax(150px, 1fr) repeat(5, 52px); gap: 6px; align-items: center; }
.heat__row--head { align-items: normal; font-family: var(--font-head); font-weight: 700; font-size: 14px; text-align: center; }
.heat__subject { text-align: left; align-self: end; }
.heat__party { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.heat__logo { height: 26px; display: flex; align-items: center; }
.heat__logo img { height: 24px; width: auto; max-width: 72px; object-fit: contain; display: block; }
.heat__cell { height: 30px; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.heat__cell--P { background: #095797; color: #fff; }
.heat__cell--V { background: #f8e69a; }
.heat__cell--A { display: block; background: #e3e7ec; }
.bars { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.bars__head { display: flex; justify-content: space-between; font-size: 15px; margin-bottom: 6px; }
.bars__head img { height: 22px; width: auto; max-width: 66px; object-fit: contain; display: block; }
.bars__track { display: flex; height: 28px; border-radius: 4px; overflow: hidden; font-size: 13px; font-weight: 700; }
.bars__seg { display: flex; align-items: center; justify-content: center; }
.bars__seg--P { background: #095797; color: #fff; }
.bars__seg--V { background: #f8e69a; }
.bars__seg--A { background: #e3e7ec; }
.bars__note { margin: 0; font-size: 14px; color: var(--muted); }
.cmp-wrap { overflow: auto; max-height: 85vh; border: 1px solid var(--border); border-radius: 4px; }
.cmp { border-collapse: separate; border-spacing: 0; min-width: 1320px; font-size: 15px; line-height: 1.55; }
.cmp thead th { position: sticky; top: 0; z-index: 2; background: var(--navy); color: #fff; padding: 14px 16px; text-align: left; font-family: var(--font-head); font-size: 18px; width: 20%; }
.cmp thead th:first-child { left: 0; z-index: 3; font-size: 16px; min-width: 190px; width: auto; }
.cmp__party { display: flex; align-items: center; gap: 10px; }
.cmp__logo { background: #fff; border-radius: 4px; padding: 4px 6px; display: flex; align-items: center; height: 30px; }
.cmp__logo img { height: 26px; width: auto; max-width: 78px; object-fit: contain; display: block; }
.cmp tbody th { position: sticky; left: 0; z-index: 1; background: var(--blue-light); padding: 16px; text-align: left; vertical-align: top; font-family: var(--font-head); font-size: 16px; border-bottom: 1px solid var(--border); }
.cmp tbody th[id] { scroll-margin-top: 140px; }
.cmp td { padding: 16px; vertical-align: top; border-bottom: 1px solid var(--border-soft); }
.cmp tbody tr:last-child > * { border-bottom: 0; }
.cmp td.is-warn { background: var(--red-bg); }
.cmp td.is-highlight { background: #eef4f9; }
.cmp td.is-muted { color: var(--muted); }
.cell-note { font-size: 13px; color: var(--muted); }
.cell-note--warn { color: #a02a14; font-weight: 700; }

/* ---- Détails par parti ---- */
.party-list { display: flex; flex-direction: column; gap: 28px; }
.party-card { scroll-margin-top: var(--sticky-offset); border: 1px solid var(--border); border-radius: 4px; overflow: hidden; }
.party-card__head { background: var(--blue-light); padding: 20px 24px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.party-card__head--tiers { background: var(--grey-bg); align-items: center; gap: 12px 20px; }
.party-card__id { display: flex; align-items: center; gap: 12px; }
.party-card__logo { background: #fff; border-radius: 4px; padding: 6px 8px; display: flex; align-items: center; height: 44px; }
.party-card__logo img { height: 40px; width: auto; max-width: 120px; object-fit: contain; display: block; }
.party-card__abbr { font-family: var(--font-head); font-weight: 700; font-size: 28px; color: var(--blue); }
.party-card__title { font-family: var(--font-head); font-weight: 700; font-size: 24px; line-height: 1.3; margin: 0; }
.party-card__body { padding: 24px; display: flex; flex-wrap: wrap; gap: 32px; }
.party-card__items { flex: 1 1 420px; min-width: 0; margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 14px; }
.party-card__subitems { margin: 8px 0 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.party-card__list { margin: 0; padding: 24px 24px 24px 46px; display: flex; flex-direction: column; gap: 14px; }
.party-card__groups { padding: 24px; display: flex; flex-direction: column; gap: 24px; }
.party-card__group-title { font-family: var(--font-head); font-weight: 700; font-size: 20px; margin: 0 0 10px; }
.party-card__group-list { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.party-card__text { margin: 0; padding: 24px; max-width: 900px; }
.savings { flex: 1 1 300px; min-width: 0; margin: 0; padding: 20px; background: var(--zebra); border-radius: 4px; }
.savings__plot { display: flex; align-items: flex-end; gap: 10px; height: 200px; border-bottom: 2px solid var(--navy); }
.savings__col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; }
.savings__value { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.savings__bar { width: 100%; background: #095797; border-radius: 3px 3px 0 0; }
.savings__bar--zero { height: 2px; border-radius: 0; }
.savings__years { display: flex; gap: 10px; margin-top: 8px; font-size: 13px; color: var(--muted); text-align: center; }
.savings__years > div { flex: 1; }
.charter { scroll-margin-top: var(--sticky-offset); margin: 0 24px 24px; border: 1px solid var(--border); border-radius: 4px; overflow: hidden; }
.charter__head { background: var(--navy); color: #fff; padding: 16px 20px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.charter__title { font-family: var(--font-head); font-weight: 700; font-size: 20px; margin: 0; color: #fff; }
.charter__source { font-size: 15px; color: #d6e4f0; }
.charter__list { margin: 0; padding: 20px 24px 20px 48px; display: flex; flex-direction: column; gap: 12px; font-size: 16px; line-height: 1.55; }
.charter__list .is-highlight { background: var(--ice); border-radius: 3px; padding: 8px 10px; margin-left: -10px; }
.charter__note { margin: 0; padding: 0 24px 20px; font-size: 14px; color: var(--muted); }

/* ---- Analyse d'expert ---- */
.analysis-list { margin: 0; padding-left: 24px; display: flex; flex-direction: column; gap: 14px; max-width: 900px; }
.fw-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 40px; }
.card-fw { border: 1px solid var(--border); border-top: 6px solid; border-radius: 4px; padding: 24px; }
.card-fw__title { font-family: var(--font-head); font-weight: 700; font-size: 24px; line-height: 1.3; margin: 0 0 14px; }
.card-fw__list { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 12px; font-size: 16px; }
.gaps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.gap { display: flex; gap: 12px; align-items: flex-start; padding: 16px; background: var(--red-bg); border-radius: 4px; font-size: 16px; }
.gap__dot { flex: 0 0 10px; height: 10px; margin-top: 8px; border-radius: 50%; background: var(--red); }
.reco { margin-top: 40px; padding: 28px; background: var(--navy); color: #fff; border-radius: 4px; }
.reco__title { font-family: var(--font-head); font-weight: 700; font-size: 24px; line-height: 1.3; margin: 0 0 14px; color: #fff; }
.reco__list { margin: 0; padding-left: 24px; display: flex; flex-direction: column; gap: 8px; }

/* ---- Report hero panels ---- */
.report { scroll-margin-top: var(--sticky-offset); margin-top: 72px; }
.report-hero {
  background: var(--navy-deep);
  background-image: linear-gradient(rgba(74,152,217,.10) 1px, transparent 1px), linear-gradient(90deg, rgba(74,152,217,.10) 1px, transparent 1px);
  background-size: 28px 28px;
  color: #fff; border-radius: 4px; padding: 36px 32px; border: 1px solid var(--navy-line);
}
.report-hero__title { font-family: var(--font-head); font-weight: 700; font-size: 34px; line-height: 1.25; margin: 0 0 16px; color: #fff; max-width: 900px; text-wrap: balance; }
.report-hero__lead { margin: 0 0 20px; font-size: 18px; color: #d6e4f0; max-width: 900px; }
.report-hero__chips { display: flex; flex-wrap: wrap; gap: 10px; }
.report-chip { font-family: var(--font-mono); font-size: 14px; color: var(--cyan-light); border: 1px solid #2d5b86; background: var(--navy); padding: 6px 12px; border-radius: 3px; text-decoration: none; }

/* ---- Report bodies (kramdown output) ---- */
.report-body section { scroll-margin-top: var(--sticky-offset); }
.report-body p { margin: 0 0 16px; max-width: 980px; text-wrap: pretty; }
.report-body code { font-family: var(--font-mono); font-size: .85em; background: #eef1f5; padding: 1px 4px; border-radius: 3px; }
.report-body h3 { font-family: var(--font-head); font-weight: 700; font-size: 28px; line-height: 1.3; margin: 64px 0 20px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.report-tag { font-family: var(--font-mono); font-size: 14px; color: var(--teal); font-weight: 700; }
.report-body h4 { scroll-margin-top: var(--sticky-offset); font-family: var(--font-head); font-weight: 700; font-size: 23px; line-height: 1.3; margin: 44px 0 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.report-body h5 { font-family: var(--font-head); font-weight: 700; font-size: 19px; margin: 22px 0 10px; }
.report-body ul, .report-body ol { margin: 0 0 16px; padding-left: 26px; display: flex; flex-direction: column; gap: 10px; }
.report-body li { padding-left: 2px; }
.report-body .sub { margin-top: 10px; display: flex; flex-direction: column; gap: 10px; }
.ref { color: var(--blue); text-decoration-line: underline; text-decoration-style: dotted; text-underline-offset: 3px; font-size: .92em; }
.nist { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: .8em; background: var(--ice); color: #054a5e; padding: 1px 5px; border-radius: 3px; text-decoration: none; border: 1px solid var(--ice-border); white-space: normal; }
.sec { font-weight: 600; }
.report-body .url { color: var(--blue); }
.np { display: inline-block; padding: 1px 8px; border-radius: 3px; background: #eef0f3; color: var(--muted-dark); font-size: 12px; font-weight: 700; margin-right: 4px; }
.fw { font-family: var(--font-mono); font-size: 12px; font-weight: 700; background: var(--navy); color: var(--cyan-light); padding: 3px 8px; border-radius: 3px; }
.verdict { display: inline-block; padding: 4px 10px; border-radius: 4px; font-size: 13px; font-weight: 700; line-height: 1.35; }
.verdict--aligne { background: var(--green-bg); color: var(--green); border: 1px solid #a9dcbf; }
.verdict--partiel { background: var(--yellow-light); color: #5c4700; border: 1px solid #efd87a; }
.verdict--non-traite { background: #eef0f3; color: var(--muted-dark); border: 1px solid #d3d8de; }
.verdict--contraire { background: var(--red-light); color: #8a1c0c; border: 1px solid #f3b4a8; }
.verdict--so { background: #f4f4f5; color: var(--muted); border: 1px dashed var(--border); }
.cell-stack { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.cell-party { font-weight: 700; font-family: var(--font-head); }
.alert-critical { display: block; border: 2px solid var(--red); background: #fff6f4; border-radius: 4px; padding: 22px 26px; margin: 8px 0 28px; box-shadow: 0 0 0 4px var(--red-light); }
.alert-critical__head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.alert-critical__tag { font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: .08em; background: var(--red); color: #fff; padding: 4px 10px; border-radius: 3px; }
.alert-critical__title { font-family: var(--font-head); font-size: 18px; line-height: 1.4; }

/* Report tables */
.table-wrap { overflow: auto; max-height: none; border: 1px solid var(--border); border-radius: 4px; margin: 20px 0 28px; }
.table-wrap--tall { max-height: 85vh; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; line-height: 1.55; }
.table--w760 { min-width: 760px; }
.table--w900 { min-width: 900px; }
.table--w1000 { min-width: 1000px; }
.table--w1250 { min-width: 1250px; }
.table--w1700 { min-width: 1700px; }
.table thead th { position: sticky; top: 0; z-index: 2; background: var(--navy); color: #fff; padding: 12px 14px; text-align: left; vertical-align: bottom; font-family: var(--font-head); font-size: 14px; font-weight: 700; border-bottom: 3px solid var(--cyan); }
.table tbody tr { background: #fff; }
.table tbody tr:nth-child(even) { background: var(--zebra); }
.table td { padding: 12px 14px; vertical-align: top; border-bottom: 1px solid var(--border-row); }
.table:not(.table--sbs) tbody td:first-child { min-width: 120px; }
.table--sbs thead th:first-child { left: 0; z-index: 3; min-width: 170px; }
.table--sbs tbody td:first-child { position: sticky; left: 0; z-index: 1; background: var(--blue-light); text-align: left; font-family: var(--font-head); font-size: 15px; font-weight: 700; min-width: 170px; }
.table--sbs tbody td:not(:first-child) { min-width: 210px; font-size: 14px; }
/* §3 scorecard and §6 matrix */
.table thead th.table__corner { border-bottom: 0; }
.table thead th.table__group { position: static; background: var(--navy); color: var(--cyan-light); padding: 10px 14px; text-align: center; font-family: var(--font-mono); font-size: 13px; letter-spacing: .06em; vertical-align: middle; border-bottom: 0; border-left: 1px solid #22405f; z-index: auto; }
.table__group a { color: var(--cyan-light); text-decoration: none; }
.table thead th.table__num { text-align: center; font-family: var(--font-mono); font-size: 13px; }
.table td.score { text-align: center; vertical-align: middle; font-family: var(--font-mono); font-size: 16px; font-weight: 700; }
.score--0 { background: #eef0f3; color: #5b6470; }
.score--1 { background: #d4e9f6; color: var(--navy); }
.score--2 { background: #8fc3e6; color: var(--navy); }
.score--3 { background: #2f7fc4; color: #fff; }
.score--4 { background: #095797; color: #fff; }
.table td.score--total { font-size: 18px; background: var(--navy); color: var(--cyan-light); }
.table td.verdicts { font-family: var(--font-mono); font-size: 13px; white-space: nowrap; }
.table td.mx { text-align: center; vertical-align: middle; font-weight: 700; font-family: var(--font-mono); font-size: 14px; }
.mx--yes { background: var(--green-bg); color: var(--green); }
.mx--no { background: #f6f7f9; color: #9aa3ad; }
.mx--contraire { background: var(--red-light); color: #8a1c0c; }
.mx--mixed { background: var(--yellow-light); color: #5c4700; }
.table td.mx--total { background: var(--navy); color: var(--cyan-light); font-size: 17px; }

/* ---- Méthodologie ---- */
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.step { display: flex; gap: 16px; align-items: flex-start; }
.step__num { flex: 0 0 36px; height: 36px; border-radius: 50%; background: var(--navy); color: var(--cyan-light); font-family: var(--font-mono); font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center; }
.step__title { font-family: var(--font-head); font-weight: 700; font-size: 20px; line-height: 1.3; margin: 4px 0 6px; }
.step__text { margin: 0; font-size: 16px; line-height: 1.6; max-width: 860px; }
.errata { margin-top: 32px; padding: 20px 24px; background: var(--yellow-light); border-radius: 4px; max-width: 900px; }
.errata__title { font-family: var(--font-head); font-weight: 700; font-size: 20px; line-height: 1.3; margin: 0 0 8px; }

/* ---- Mises en garde ---- */
.caveats { border-left: 0; background: var(--yellow-light); border-radius: 4px; padding: 24px; }
.caveats__list { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 12px; font-size: 16px; max-width: 900px; }

/* ---- Sources ---- */
.src-legend { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; padding: 14px 18px; background: var(--grey-bg); border-radius: 4px; font-size: 15px; margin-bottom: 24px; }
.src-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.src-badge--programme { background: #095797; color: #fff; }
.src-badge--officiel { background: var(--blue-light); color: var(--blue); }
.src-groups { display: flex; flex-direction: column; gap: 24px; font-size: 16px; line-height: 1.5; }
.src-group { border: 1px solid var(--border); border-radius: 4px; overflow: hidden; }
.src-group--public { margin-top: 24px; }
.src-group__head { background: var(--blue-light); padding: 16px 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.src-group__head--public { display: block; background: var(--grey-bg); }
.src-group__logo { background: #fff; border: 1px solid var(--border-soft); border-radius: 4px; padding: 6px 8px; display: flex; align-items: center; height: 44px; box-sizing: border-box; }
.src-group__logo img { height: 30px; width: auto; max-width: 110px; object-fit: contain; display: block; }
.src-group__body { padding: 20px; }
.src-group__note { margin: 0 0 10px; font-size: 15px; color: var(--muted-dark); }
.src-list { margin: 0; padding-left: 36px; display: flex; flex-direction: column; gap: 8px; }
.src-list--plain { display: block; }
.src-list > li { scroll-margin-top: var(--sticky-offset); padding-left: 4px; }
.src-item { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; }
.src-item a, .src-links a { word-break: break-word; }
.src-links { margin: 10px 0 0; padding-left: 36px; display: flex; flex-direction: column; gap: 6px; list-style: square; }
.back-top { margin: 40px 0 0; }

/* ---- Footer ---- */
.site-footer { background: var(--navy-deep); color: #fff; border-top: 3px solid var(--cyan); }
.site-footer__inner { max-width: 1320px; margin: 0 auto; padding: 24px; font-size: 15px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.site-footer a { color: #fff; }

/* ---- Publisher (Hackfest Communication) ---- */
.publisher-link { display: block; align-self: center; }
.site-footer__publisher a { color: #fff; }
.publisher-logo { display: block; height: 32px; width: auto; align-self: center; margin-right: 8px; }
.site-footer__publisher { max-width: 1320px; margin: 0 auto; padding: 24px 24px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 15px; color: var(--blue-light); }
.publisher-logo--footer { height: 40px; margin-right: 0; }

/* ---- Language switch (right end of the main menu) ---- */
.menu__lang { margin-left: auto; align-self: center; font-family: var(--font-mono); font-size: 14px; font-weight: 700; color: var(--cyan-light); border: 1px solid #2d5b86; background: var(--navy-deep); padding: 6px 12px; border-radius: 3px; text-decoration: none; }
.menu__lang:hover { color: #fff; border-color: var(--cyan); }
