/* Diplodoku — identité « la ligne »
   Signalétique de plan de métro : un parcours d'études se lit comme une ligne, du diplôme (station) au métier (balise).
   Blanc, encre bleu nuit, bleu ligne pour agir, orange balise pour signaler. Archivo (étendue pour les titres) et IBM Plex Mono
   pour les codes officiels. Angles de 6 à 8 px, filets fins, pas d'ombres floues.
   Séries de graphiques : palette validée pour les daltonismes (--s1…--s8), réservée aux données.
   N'utilise ni la Marianne, ni le DSFR, ni la police Marianne (réservés à l'État). */

:root {
  --ink: #0B1A3A;
  --ink-2: #3A4664;
  --muted: #66708A;
  --bg: #FFFFFF;
  --bg-2: #F4F6FA;
  --card: #FFFFFF;
  --card-2: #F4F6FA;
  --line: #E2E6EE;
  --line-2: #EEF1F6;
  --line-3: #C3CAD8;
  --side: #FFFFFF;
  --blue: #1F49D6;
  --blue-hover: #1638AE;
  --blue-500: #5A7BE8;
  --blue-200: #C9D5FA;
  --blue-100: #EAEFFD;
  --blue-50: #F3F6FE;
  --orange: #E1252F;
  --orange-ink: #B5141D;
  --orange-100: #FBE1E0;
  --red-flag: #E1252F;
  --red: #C8322F;
  --red-100: #FBE5E4;
  --green: #0A6B3D;
  --green-100: #E3F3EA;
  --grid: #EEF1F6;
  --axis: #C3CAD8;
  --s1: #1F49D6; --s2: #E1252F; --s3: #1BAF7A; --s4: #EDA100; --s5: #E87BA4; --s6: #008300; --s7: #6250D6; --s8: #EB6834;
  --shadow-sm: none;
  --shadow: none;
  --shadow-lg: 0 12px 32px -12px rgba(11, 26, 58, .28);
  --radius: 8px;
  --radius-sm: 6px;
  --font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --side-w: 296px;
  color-scheme: light;
}

/* Thème clair par défaut ; le sombre n'est appliqué que sur demande (bouton « Thème »). */
:root[data-theme="dark"] {
  --ink: #EEF1F8; --ink-2: #C5CCDD; --muted: #949DB5; --bg: #0A1430; --bg-2: #101C3E; --card: #0E1938; --card-2: #13204A; --line: #24315A; --line-2: #1A2650; --line-3: #3A4870; --side: #0A1430;
  --blue: #8EA6FF; --blue-hover: #B4C4FF; --blue-500: #7C95F5; --blue-200: #2C3C78; --blue-100: #1A2A66; --blue-50: #142155;
  --orange: #FF7A45; --orange-ink: #FFB394; --orange-100: #3A2216; --red: #FF8A86; --red-100: #3A1A22; --green: #55D08F; --green-100: #12301F;
  --grid: #1A2650; --axis: #3A4870;
  --s1: #6F8DF5; --s2: #D95926; --s3: #199E70; --s4: #C98500; --s5: #D55181; --s6: #008300; --s7: #9085E9; --s8: #E66767;
  --shadow-lg: 0 12px 32px -12px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.55 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: var(--blue); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { line-height: 1.1; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); font-weight: 800; font-stretch: 125%; letter-spacing: -.04em; line-height: .98; }
h1 em { font-style: normal; color: var(--blue); }
h2 { font-size: clamp(1.45rem, 2.2vw, 2rem); font-weight: 800; font-stretch: 115%; letter-spacing: -.02em; }
h3 { font-size: 1.08rem; font-weight: 700; letter-spacing: -.005em; }
.h-card, .card-head h2 { font-size: 1.18rem; font-weight: 800; font-stretch: 110%; letter-spacing: -.015em; }
p { margin: 0 0 .9em; }
img, svg { max-width: 100%; }
::selection { background: var(--blue-200); }
.num, .tnum { font-variant-numeric: tabular-nums; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--blue); color: #fff; padding: 8px 12px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 2px; border-radius: 4px; }
.ambient { display: none; }

/* ───────────── structure ───────────── */
.app { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--side); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 30px 22px 18px; scrollbar-width: thin; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; padding: 0 6px 26px; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 44px; height: 44px; flex: none; overflow: visible; }
/* symbole : un diplôme (feuille à double cadre), la carte de France, l'euro au centre, le sceau orange */
.bm-sheet { fill: #FFFFFF; stroke: #0B1A3A; stroke-width: 2.2; }
.bm-frame { fill: none; stroke: #0B1A3A; stroke-width: .7; stroke-opacity: .45; }
.bm-fr { fill: #EAEFFD; stroke: #1F49D6; stroke-width: 1.3; stroke-linejoin: round; }
.bm-eur { fill: none; stroke: #0B1A3A; stroke-width: 1.65; stroke-linecap: round; }
.bm-ribbon { fill: #B5141D; }
.bm-seal { fill: #E1252F; stroke: #FFFFFF; stroke-width: 1.2; }
.bm-seal-ring { fill: none; stroke: #FFFFFF; stroke-width: .9; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-weight: 800; font-stretch: 125%; font-size: 1.62rem; letter-spacing: -.04em; text-transform: lowercase; }
.brand-sub { font-size: .76rem; color: var(--muted); font-weight: 500; margin-top: 5px; letter-spacing: 0; }
.side-search { position: relative; margin: 0 0 26px; }
.side-search input[type="search"] { width: 100%; height: 46px; padding: 0 38px 0 40px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-2); color: var(--ink); font: inherit; font-size: .95rem; }
.side-search input[type="search"]:focus { border-color: var(--blue); background: var(--card); box-shadow: 0 0 0 3px var(--blue-100); outline: none; }
.side-search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.side-search kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font: 500 .72rem var(--mono); color: var(--muted); border: 1px solid var(--line-3); border-radius: 4px; padding: 1px 6px; background: var(--card); }
.nav-group { margin: 0 0 24px; }
.nav-title { font: 600 .72rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 0 4px 8px; margin: 0; }
.nav-group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; position: relative; }
/* la ligne : un filet vertical relie les stations d'un même groupe */
.nav-group ul::before { content: ""; position: absolute; left: 17px; top: 22px; bottom: 22px; width: 2px; background: var(--line); }
.nav-group a { position: relative; display: flex; align-items: center; gap: 14px; min-height: 44px; padding: 0 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 1rem; transition: background .15s, color .15s; }
.nav-group a::before { content: ""; position: relative; z-index: 1; width: 12px; height: 12px; flex: none; border-radius: 50%; border: 3px solid var(--line-3); background: var(--side); box-sizing: border-box; transition: border-color .15s; }
.nav-group a svg { display: none; }
.nav-group a:hover { background: var(--bg-2); color: var(--ink); }
.nav-group a:hover::before { border-color: var(--blue); }
.nav-group a[aria-current="page"] { background: var(--blue-100); color: var(--blue); font-weight: 700; }
.nav-group a[aria-current="page"]::before { border: 0; background: var(--blue); box-shadow: 0 0 0 3px var(--blue-100), 0 0 0 5px var(--blue); }
.side-foot { margin-top: auto; padding: 16px 4px 4px; font-size: .8rem; color: var(--muted); border-top: 1px solid var(--line); }
.side-foot p { margin: 10px 0 0; line-height: 1.5; }
.theme-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; border: 1px solid var(--line-3); background: var(--card); color: var(--ink-2); border-radius: 6px; padding: 0 12px; font: inherit; font-size: .84rem; font-weight: 600; cursor: pointer; }
.theme-btn svg { width: 15px; height: 15px; }
.theme-btn:hover { border-color: var(--ink); color: var(--ink); }
.main { min-width: 0; }
.topbar { display: none; }
.page { max-width: 1160px; margin: 0 auto; padding: 48px 56px 80px; animation: page-in .45s var(--ease) both; }
@keyframes page-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.foot { max-width: 1160px; margin: 0 auto; padding: 28px 56px 48px; color: var(--muted); font-size: .84rem; border-top: 2px solid var(--ink); }
.foot-brand .brand { padding: 0 0 14px; }
.foot-brand .brand-mark { width: 32px; height: 32px; }
.foot-brand .brand-name { font-size: 1.3rem; }
.foot p { margin: 0 0 .4em; max-width: 820px; }

@media (max-width: 1023px) {
  .app { display: block; }
  .side { position: fixed; inset: 0 auto 0 0; width: min(88vw, 320px); z-index: 60; transform: translateX(-102%); transition: transform .32s var(--ease); box-shadow: var(--shadow-lg); }
  .side.open { transform: none; }
  .scrim { position: fixed; inset: 0; background: rgba(11, 26, 58, .4); z-index: 55; animation: fade .2s ease both; }
  .topbar { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); padding: 10px 16px; }
  .topbar .brand { padding: 0; }
  .topbar .brand-mark { width: 34px; height: 34px; }
  .topbar .brand-name { font-size: 1.35rem; }
  .topbar .brand-sub { display: none; }
  .menu-btn { margin-left: auto; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line-3); background: var(--card); color: var(--ink); border-radius: 8px; cursor: pointer; }
  .menu-btn svg { width: 20px; height: 20px; }
  .page { padding: 28px 16px 56px; }
  .foot { padding: 20px 16px 36px; }
  .side-search kbd { display: none; }
}
@keyframes fade { from { opacity: 0; } }

/* ───────────── en-têtes de page ───────────── */
.page-head { margin-bottom: 36px; padding-bottom: 28px; border-bottom: 2px solid var(--ink); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 .78rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--orange-ink); margin: 0 0 12px; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 760px; line-height: 1.5; margin: 0; }
.crumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 18px; font-size: .86rem; color: var(--muted); }
.crumb li + li::before { content: "/"; margin-right: 8px; }
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--ink); }
.meta { color: var(--muted); }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ───────────── accueil ───────────── */
.hero { padding: 24px 0 44px; margin-bottom: 40px; border-bottom: 2px solid var(--ink); }
.hero .eyebrow { margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.8rem, 6.4vw, 5.4rem); max-width: 900px; margin-bottom: 20px; }
.hero p { color: var(--ink-2); max-width: 600px; font-size: 1.22rem; line-height: 1.5; }
.hero-search { display: flex; flex-wrap: wrap; gap: 10px; max-width: 660px; margin-top: 26px; position: relative; }
.hero-search input[type="search"] { flex: 1 1 280px; min-width: 0; height: 58px; padding: 0 18px; border-radius: 8px; border: 2px solid var(--ink); font: inherit; font-size: 1.06rem; background: var(--card); color: var(--ink); }
.hero-search input[type="search"]:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-100); }
.hero-search .btn { height: 58px; padding: 0 28px; font-size: 1.06rem; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.hero-chips a { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; font-size: .92rem; font-weight: 500; color: var(--ink); text-decoration: none; border: 1px solid var(--line-3); border-radius: 6px; transition: border-color .15s, color .15s; }
.hero-chips a:hover { border-color: var(--blue); color: var(--blue); }
.hero-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 40px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.hero-kpis div { padding: 20px 22px; border-right: 1px solid var(--line); }
.hero-kpis div:last-child { border-right: 0; }
.hero-kpis strong { display: block; font-size: 2.3rem; font-weight: 700; font-stretch: 110%; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.05; }
.hero-kpis span { font-size: .88rem; color: var(--ink-2); }
@media (max-width: 760px) { .hero-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hero-kpis div:nth-child(2) { border-right: 0; } .hero-kpis div:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

/* ───────────── cartes et grilles ───────────── */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; min-width: 0; }
.card + .card { margin-top: 20px; }
.grid > .card + .card { margin-top: 0; }
.card-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px 16px; margin-bottom: 18px; }
.card-head h2, .card-head h3 { margin: 0; }
.card-head select { width: auto; }
.card-sub { color: var(--muted); font-size: .9rem; margin: 4px 0 0; max-width: 640px; line-height: 1.45; }
.card-foot { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .84rem; color: var(--muted); }
.card-foot p { margin: 0 0 .3em; }
.grid { display: grid; gap: 20px; margin-bottom: 20px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-wide { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .g2, .g3, .g-wide { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 420px) { .g4 { grid-template-columns: minmax(0, 1fr); } }
.section { margin: 48px 0 20px; }
.section > h2 { margin-bottom: 6px; }
.section > .card-sub { margin-bottom: 18px; }

/* chiffres clés : un bandeau, cases séparées par des filets */
.grid:has(> .kpi) { gap: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.grid:has(> .kpi) > .kpi { border: 0; border-radius: 0; border-right: 1px solid var(--line); }
.grid:has(> .kpi) > .kpi:last-child { border-right: 0; }
@media (max-width: 1100px) { .grid.g4:has(> .kpi) > .kpi:nth-child(2n) { border-right: 0; } .grid.g4:has(> .kpi) > .kpi:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
@media (max-width: 760px) { .grid.g2:has(> .kpi) > .kpi, .grid.g3:has(> .kpi) > .kpi { border-right: 0; border-bottom: 1px solid var(--line); } }
.kpi { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; min-width: 0; }
.kpi-label { font-size: .86rem; color: var(--ink-2); font-weight: 600; margin: 0 0 8px; line-height: 1.35; }
.kpi-value { font-size: 2.3rem; font-weight: 700; font-stretch: 110%; letter-spacing: -.03em; margin: 0; line-height: 1.05; font-variant-numeric: tabular-nums; }
.kpi-value .unit { font-size: 1.1rem; font-weight: 600; color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.kpi-value .na { font-size: 1.1rem; font-weight: 600; font-stretch: 100%; letter-spacing: 0; font-style: normal; }
.kpi-hint { font-size: .8rem; color: var(--muted); margin: 8px 0 0; line-height: 1.4; }
.kpi-delta { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; font-weight: 700; padding: 3px 8px; border-radius: 4px; margin-top: 8px; font-variant-numeric: tabular-nums; }
.up { color: var(--green); background: var(--green-100); }
.down { color: var(--orange-ink); background: var(--orange-100); }
.flat { color: var(--ink-2); background: var(--bg-2); }
.kpi.accent { background: var(--ink); color: #FFFFFF; }
.kpi.accent .kpi-label, .kpi.accent .kpi-hint { color: #C9D2E6; }
.kpi.accent .kpi-value { color: #FFFFFF; }
.kpi.accent .kpi-value .unit, .kpi.accent .na { color: #C9D2E6; }
.kpi.accent-red::after { content: ""; position: absolute; right: 18px; top: 20px; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); }
:root[data-theme="dark"] .kpi.accent { background: var(--blue-100); }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.tile { position: relative; display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 20px 18px; transition: border-color .2s, transform .3s var(--ease); }
.tile:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-2px); }
.tile svg { width: 22px; height: 22px; color: #FFFFFF; background: var(--blue); padding: 9px; box-sizing: content-box; border-radius: 6px; margin-bottom: 14px; }
.tile h3 { margin-bottom: 4px; font-size: 1.08rem; padding-right: 22px; }
.tile p { margin: 0; color: var(--ink-2); font-size: .9rem; line-height: 1.45; }
.tile::after { content: "→"; position: absolute; right: 18px; top: 18px; font-weight: 700; color: var(--muted); transition: transform .3s var(--ease), color .2s; }
.tile:hover::after { transform: translateX(4px); color: var(--blue); }

/* ───────────── éléments ───────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 8px; border: 2px solid var(--blue); background: var(--blue); color: #FFFFFF; font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn:hover { color: #FFFFFF; background: var(--blue-hover); border-color: var(--blue-hover); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: .88rem; border-radius: 6px; }
.badge { display: inline-flex; align-items: center; gap: 4px; min-height: 26px; font-size: .78rem; font-weight: 700; padding: 0 9px; border-radius: 4px; background: var(--bg-2); color: var(--ink-2); white-space: nowrap; }
.badge-blue { background: var(--blue-100); color: var(--blue); }
.badge-red, .badge-orange { background: var(--orange-100); color: var(--orange-ink); }
.badge-green { background: var(--green-100); color: var(--green); }
/* pastille de ligne : code de domaine de métiers affiché comme un numéro de ligne */
.line-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 24px; padding: 0 7px; border-radius: 4px; background: var(--lc, var(--s1)); color: #FFFFFF; font: 600 .8rem var(--mono); letter-spacing: .02em; vertical-align: 1px; text-decoration: none; }
.line-badge.light { color: #0B1A3A; }
.chip { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; border: 1px solid var(--line-3); background: var(--card); border-radius: 6px; padding: 0 13px; font: inherit; font-size: .9rem; font-weight: 500; color: var(--ink); text-decoration: none; cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip.on:hover { color: var(--bg); }
.chip .x { font-weight: 700; opacity: .7; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips.results { margin-top: 14px; transition: opacity .2s; }
.chips.results.busy { opacity: .5; }
.key { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; vertical-align: 0; margin-right: 4px; }
.small { font-size: .78rem; }
.na { color: var(--muted); font-style: normal; font-size: .92em; font-weight: 600; }
.na-block { color: var(--ink-2); background: var(--bg-2); border: 1px dashed var(--line-3); border-radius: var(--radius-sm); padding: 14px 16px; margin: 8px 0; font-size: .92rem; }
.hint { color: var(--muted); font-size: .84rem; line-height: 1.5; }
.callout { background: var(--bg-2); border-radius: var(--radius); padding: 22px 26px; margin: 20px 0; font-size: .95rem; border: 0; }
.callout-warn { background: var(--orange-100); }
.callout-title { font-weight: 800; font-size: 1.05rem; margin: 0 0 6px; }
.callout p:last-child { margin: 0; }
details.more { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 16px; margin-top: 14px; background: var(--card); }
details.more > summary { cursor: pointer; padding: 12px 0; font-weight: 700; font-size: .94rem; color: var(--ink); list-style: none; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::before { content: "+"; display: inline-block; width: 1em; color: var(--blue); margin-right: 6px; font-weight: 800; }
details.more[open] > summary::before { content: "−"; }
details.more > :last-child { margin-bottom: 14px; }
.mono { font-family: var(--mono); font-size: .88em; }
.muted { color: var(--muted); }
.list-plain { list-style: none; margin: 0; padding: 0; }
.list-plain li + li { margin-top: 6px; }
.split { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }

/* formulaires */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field label, .field legend, .field > span { font-size: .84rem; font-weight: 600; color: var(--ink-2); }
input[type="search"], input[type="number"], input[type="text"], select { font: inherit; font-size: .98rem; min-height: 46px; padding: 0 14px; border: 1px solid var(--line-3); border-radius: 8px; background: var(--card); color: var(--ink); min-width: 0; width: 100%; transition: border-color .15s, box-shadow .15s; }
input[type="search"]:focus, input[type="number"]:focus, input[type="text"]:focus, select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-100); }
select { appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2366708A' stroke-width='2.8' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; }
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; align-items: end; }
.filters .grow { grid-column: span 2; }
@media (max-width: 560px) { .filters .grow { grid-column: auto; } }
.seg { display: inline-flex; border: 1px solid var(--line-3); border-radius: 8px; overflow: hidden; flex-wrap: wrap; background: var(--card); }
.seg a, .seg button { display: inline-flex; align-items: center; min-height: 40px; padding: 0 15px; font: inherit; font-size: .88rem; font-weight: 600; color: var(--ink-2); text-decoration: none; background: none; border: 0; border-right: 1px solid var(--line-3); cursor: pointer; transition: background .15s, color .15s; }
.seg a:last-child, .seg button:last-child { border-right: 0; }
.seg a:hover, .seg button:hover { color: var(--ink); background: var(--bg-2); }
.seg a[aria-current="true"], .seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

/* onglets sans JavaScript (la liste d'onglets est le 1er div : panneau n = div n+1) */
.tabs { position: relative; }
.tabs > input { position: absolute; opacity: 0; pointer-events: none; }
.tab-list { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line-3); border-radius: 8px; overflow: hidden; margin-bottom: 22px; max-width: 100%; }
.tab-list label { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; font-weight: 600; font-size: .9rem; color: var(--ink-2); cursor: pointer; border-right: 1px solid var(--line-3); transition: background .15s, color .15s; }
.tab-list label:last-child { border-right: 0; }
.tab-list label:hover { color: var(--ink); background: var(--bg-2); }
.tab-panel { display: none; }
.tabs > input:nth-of-type(1):checked ~ .tab-list label:nth-of-type(1),
.tabs > input:nth-of-type(2):checked ~ .tab-list label:nth-of-type(2),
.tabs > input:nth-of-type(3):checked ~ .tab-list label:nth-of-type(3),
.tabs > input:nth-of-type(4):checked ~ .tab-list label:nth-of-type(4) { color: var(--bg); background: var(--ink); }
.tabs > input:nth-of-type(1):checked ~ .tab-panel:nth-of-type(2),
.tabs > input:nth-of-type(2):checked ~ .tab-panel:nth-of-type(3),
.tabs > input:nth-of-type(3):checked ~ .tab-panel:nth-of-type(4),
.tabs > input:nth-of-type(4):checked ~ .tab-panel:nth-of-type(5) { display: block; animation: page-in .4s var(--ease) both; }
.tabs > input:focus-visible ~ .tab-list { outline: 3px solid var(--blue-500); outline-offset: 3px; }

/* ───────────── visualisations ───────────── */
.bars { display: flex; flex-direction: column; gap: 15px; margin: 4px 0; padding: 0; list-style: none; }
.bar { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 4px 14px; align-items: center; }
.bar.norank { grid-template-columns: minmax(0, 1fr) auto; }
.bar-rank { font: 600 .86rem var(--mono); color: var(--muted); text-align: left; font-variant-numeric: tabular-nums; }
.bar:nth-child(-n+3) .bar-rank { color: var(--ink); }
.bar-main { display: block; min-width: 0; }
.bar-label { display: block; font-weight: 600; font-size: .98rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); text-decoration: none; }
a.bar-label:hover { color: var(--blue); text-decoration: underline; }
.bar-sub { display: block; font-size: .8rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { display: block; position: relative; height: 12px; background: var(--bg-2); margin-top: 7px; overflow: hidden; }
.bar-fill { position: absolute; inset: 0 auto 0 0; border-radius: 0 3px 3px 0; background: var(--s1); transform-origin: left center; }
.bar-fill.red { background: var(--orange); }
.bar-fill.soft { background: var(--blue-500); }
.bar-fill.soft-red { background: #EC8A86; }
.bar-range { position: absolute; top: 0; bottom: 0; background: var(--blue-200); border-radius: 3px; transform-origin: left center; }
.bar-track:has(.bar-med) { overflow: visible; }
.bar-med { position: absolute; top: -4px; bottom: -4px; width: 5px; margin-left: -2.5px; background: var(--blue); border-radius: 2px; }
.bar-val { display: block; font-weight: 700; font-variant-numeric: tabular-nums; font-size: 1.02rem; text-align: right; white-space: nowrap; }
.bar-val small { display: block; font-weight: 500; color: var(--muted); font-size: .76rem; }
.js .bars[data-reveal] .bar-fill, .js .bars[data-reveal] .bar-range { transform: scaleX(0); }
.js .bars[data-reveal].is-in .bar-fill, .js .bars[data-reveal].is-in .bar-range { transform: scaleX(1); transition: transform 1s var(--ease) calc(var(--i, 0) * 45ms); }
.js .bars[data-reveal] .bar-med { opacity: 0; }
.js .bars[data-reveal].is-in .bar-med { opacity: 1; transition: opacity .4s ease calc(var(--i, 0) * 45ms + .5s); }
@media (prefers-reduced-motion: reduce) { .js .bars[data-reveal] .bar-fill, .js .bars[data-reveal] .bar-range { transform: none; } .js .bars[data-reveal] .bar-med { opacity: 1; } .page { animation: none; } }

.chart { margin: 6px 0 0; }
.chart svg { display: block; width: 100%; height: auto; max-height: 340px; margin: 0 auto; overflow: visible; }
.chart .grid-line { stroke: var(--grid); stroke-width: 1; }
.chart .axis { fill: var(--muted); font-size: 12px; font-family: var(--font); }
.chart .axis-title { fill: var(--ink-2); font-size: 12px; font-weight: 600; font-family: var(--font); }
.chart .val { fill: var(--ink); font-size: 12px; font-weight: 700; font-family: var(--font); }
.chart .na-mark { fill: var(--muted); font-size: 12px; font-family: var(--font); }
.chart .pt { cursor: pointer; }
.chart .dotp { fill-opacity: .5; }
.chart .dotp:hover { fill-opacity: 1; }
.chart .trend { stroke: var(--ink); stroke-width: 2; fill: none; opacity: .75; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .84rem; color: var(--ink-2); margin: 12px 0 0; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 7px; vertical-align: 0; }
.legend i.line { height: 4px; width: 16px; border-radius: 2px; vertical-align: 3px; }
.spark { display: inline-block; vertical-align: middle; }
.spark .line { fill: none; stroke: var(--s1); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.spark .area { fill: var(--blue-100); stroke: none; }

/* îlots : rendu serveur en place (sans JS, robots), puis composant interactif */
.island { position: relative; }
.js:not(.no-islands) .island:not(.mounted):not(.failed) > .island-ssr { visibility: hidden; }
.island.mounted > .island-ssr { display: none; }
.js:not(.no-islands) .island:not(.mounted):not(.failed)::after { content: ""; position: absolute; inset: 0; border-radius: 8px; background: linear-gradient(90deg, transparent, var(--line-2), transparent) var(--bg-2); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.island-root { animation: fade .35s ease both; }
.skeleton { border-radius: 8px; background: linear-gradient(90deg, transparent, var(--line-2), transparent) var(--bg-2); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.viz { margin: 4px 0 0; }
.viz .recharts-surface { overflow: visible; }
.viz .recharts-cartesian-axis-tick text, .tool .recharts-cartesian-axis-tick text { font-family: var(--font); font-variant-numeric: tabular-nums; }
.recharts-wrapper:focus, .recharts-surface:focus { outline: none; }
.recharts-tooltip-wrapper { z-index: 20; transition: transform .18s var(--ease) !important; }
.viz-tip { background: #0B1A3A; color: #FFFFFF; border-radius: 8px; box-shadow: var(--shadow-lg); padding: 10px 12px; font-size: .84rem; min-width: 190px; max-width: 320px; }
.viz-tip-title { font-weight: 700; margin: 0 0 6px; color: #FFFFFF; line-height: 1.3; }
.viz-tip-row { display: flex; align-items: center; gap: 8px; margin: 3px 0 0; color: #C9D2E6; }
.viz-tip-row i { width: 9px; height: 9px; border-radius: 50%; flex: none; box-shadow: 0 0 0 1.5px #FFFFFF; }
.viz-tip-row span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viz-tip-row b { font-weight: 700; color: #FFFFFF; font-variant-numeric: tabular-nums; }
.viz-tip .na { color: #C9D2E6; }

/* ───────────── outils interactifs ───────────── */
.tool-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; align-items: end; }
.tool-bar .grow { grid-column: span 2; }
@media (max-width: 560px) { .tool-bar .grow { grid-column: 1 / -1; } }
.tool-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin: 20px 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.tool-stats > div { background: var(--card); padding: 14px 18px; border-right: 1px solid var(--line); }
.tool-stats > div:last-child { border-right: 0; }
.tool-stats span { display: block; font-size: .8rem; color: var(--ink-2); font-weight: 600; }
.tool-stats strong { display: block; font-size: 1.7rem; font-weight: 700; font-stretch: 110%; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin-top: 2px; }
.tool-stats .hl strong { color: var(--orange-ink); }
.tool-stats.compact { margin: 0 0 18px; }
.tool-stats.compact strong { font-size: 1.35rem; }
.tool-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 20px; align-items: start; }
.tool-chart { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px 12px; min-width: 0; }
.tool-side { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; position: sticky; top: 20px; }
@media (max-width: 980px) { .tool-grid { grid-template-columns: minmax(0, 1fr); } .tool-side { position: static; } }
.tool-chart .recharts-scatter-symbol { cursor: pointer; }
.pick h3 { font-size: 1.4rem; font-weight: 800; font-stretch: 115%; letter-spacing: -.02em; margin: 2px 0 4px; }
.pick dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0; }
.pick dt { font-size: .8rem; color: var(--muted); }
.pick dd { margin: 0; font-size: 1.35rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.pick .btn { margin: 4px 6px 0 0; }
.mini-bars { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.mini-bars li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; }
.mini-bars a { min-width: 0; text-decoration: none; color: var(--ink); }
.mini-bars .t { display: block; font-size: .9rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-bars .s { display: block; font-size: .76rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-bars a:hover .t { color: var(--blue); }
.mini-bars b { font-size: .9rem; font-weight: 700; font-variant-numeric: tabular-nums; grid-row: 1; grid-column: 2; }
.mb-track { grid-column: 1 / -1; height: 6px; background: var(--bg-2); overflow: hidden; }
.mb-track i { display: block; height: 100%; border-radius: 0 3px 3px 0; background: var(--s1); transition: width .7s var(--ease); }

/* classement animé (réordonnancement interpolé) */
.rank-list { position: relative; transition: height .5s var(--ease); }
.rank-row { position: absolute; left: 0; right: 0; top: 0; height: 58px; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 4px 14px; align-items: center; transition: transform .7s var(--ease); }
.rr-rank { font: 600 .86rem var(--mono); color: var(--ink); }
.rr-main { min-width: 0; }
.rr-label { display: flex; align-items: center; gap: 2px; font-weight: 600; font-size: .96rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rr-sub { display: block; font-size: .76rem; color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rr-track { display: block; position: relative; height: 12px; background: var(--bg-2); margin-top: 6px; }
.rr-range { position: absolute; top: 0; bottom: 0; border-radius: 3px; background: var(--blue-200); transition: left .7s var(--ease), width .7s var(--ease); }
.rr-med { position: absolute; top: -4px; bottom: -4px; width: 5px; margin-left: -2.5px; border-radius: 2px; transition: left .7s var(--ease); }
.rr-val { text-align: right; font-weight: 700; font-size: 1rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rr-val small { display: block; font-weight: 500; color: var(--muted); font-size: .74rem; }

.stack { display: flex; gap: 2px; height: 14px; overflow: hidden; background: var(--bg-2); }
.stack span { display: block; height: 100%; }
.stack span:first-child { border-radius: 3px 0 0 3px; }
.stack span:last-child { border-radius: 0 3px 3px 0; }
.stack-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .82rem; color: var(--ink-2); margin-top: 10px; }

.dumbbell { display: flex; flex-direction: column; gap: 16px; }
.db-row { display: grid; grid-template-columns: minmax(120px, 230px) minmax(0, 1fr) 160px; gap: 14px; align-items: center; }
.db-label { font-size: .92rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.db-track { position: relative; height: 24px; }
.db-track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: var(--line); }
.db-line { position: absolute; top: 50%; height: 6px; margin-top: -3px; background: var(--blue-200); transition: left .7s var(--ease), width .7s var(--ease); }
.db-dot { position: absolute; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; border: 3px solid var(--card); transition: left .7s var(--ease); }
.db-dot.a { background: var(--s1); }
.db-dot.b { background: var(--orange); }
.db-val { font-size: .86rem; text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.db-val b { font-weight: 700; color: var(--ink); }
@media (max-width: 560px) { .db-row { grid-template-columns: minmax(0, 1fr) auto; } .db-track { grid-column: 1 / -1; grid-row: 2; } }

.heat { border-collapse: separate; border-spacing: 3px; font-size: .8rem; }
.heat th { font-weight: 600; color: var(--ink-2); text-align: left; padding: 4px 6px; white-space: nowrap; }
.heat thead th { font-size: .74rem; color: var(--muted); vertical-align: bottom; height: 150px; }
.heat thead th span { display: inline-block; writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; max-height: 148px; overflow: hidden; text-overflow: ellipsis; }
.heat td { text-align: center; border-radius: 4px; padding: 8px 2px; font-weight: 700; font-variant-numeric: tabular-nums; min-width: 48px; }
.heat td:not(.empty):hover { outline: 2px solid var(--ink); outline-offset: 1px; }
.heat td.empty { background: var(--bg-2); color: var(--muted); font-weight: 400; }
.heat-wrap { overflow-x: auto; }
.scale { display: flex; align-items: center; gap: 8px; font-size: .78rem; color: var(--muted); margin-top: 10px; }
.scale i { display: block; height: 10px; width: 160px; border-radius: 2px; }

.tilemap { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; max-width: 560px; }
.tilemap a, .tilemap-drom a { display: flex; flex-direction: column; justify-content: space-between; aspect-ratio: 1.15; border-radius: 6px; padding: 8px; text-decoration: none; color: #0B1A3A; font-size: .7rem; font-weight: 600; line-height: 1.15; transition: transform .25s var(--ease); min-width: 0; overflow: hidden; }
.tilemap a:hover, .tilemap-drom a:hover { transform: scale(1.04); outline: 2px solid var(--ink); color: #0B1A3A; }
.tilemap a strong, .tilemap-drom a strong { font-size: 1.02rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.tilemap a.dark, .tilemap-drom a.dark, .tilemap a.dark:hover, .tilemap-drom a.dark:hover { color: #FFFFFF; }
.tilemap-drom { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-top: 10px; max-width: 560px; }
.tilemap-drom a { aspect-ratio: 1.6; }
@media (max-width: 480px) { .tilemap a { font-size: .6rem; padding: 5px; } .tilemap a strong { font-size: .82rem; } }

.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tbl th, .tbl td { padding: 11px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.tbl th { font: 600 .74rem var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border-bottom: 2px solid var(--ink); }
.tbl td.num, .tbl th.num { text-align: right; white-space: nowrap; }
.tbl tbody tr:hover { background: var(--bg-2); }

/* liste de formations (cartes) */
.flist { display: flex; flex-direction: column; gap: 12px; }
.fcard { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 20px; align-items: center; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: var(--radius); padding: 18px 22px; transition: border-color .2s; }
.fcard:hover { border-color: var(--ink); border-left-color: var(--blue); }
.fcard h3 { margin: 6px 0 2px; font-size: 1.12rem; font-weight: 800; font-stretch: 108%; letter-spacing: -.01em; }
.fcard h3 a { color: var(--ink); text-decoration: none; }
.fcard h3 a:hover { color: var(--blue); }
.fcard .meta { font-size: .88rem; margin: 0; color: var(--ink-2); }
.fmetrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; border-left: 1px solid var(--line); padding-left: 20px; }
.fm-label { font-size: .76rem; color: var(--muted); font-weight: 600; }
.fm-value { font-weight: 700; font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.fm-value .na { font-size: .82rem; }
.meter { height: 5px; background: var(--bg-2); margin-top: 6px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--s1); border-radius: 0 3px 3px 0; }
@media (max-width: 900px) { .fcard { grid-template-columns: minmax(0, 1fr); } .fmetrics { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 14px; } }

.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 26px 0; }
.pager a, .pager span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px; border-radius: 6px; border: 1px solid var(--line-3); background: var(--card); text-decoration: none; font-weight: 600; font-size: .92rem; color: var(--ink); }
.pager a:hover { border-color: var(--ink); }
.pager span[aria-current] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pager .gap { border: 0; background: none; }

/* fiche */
.fhero { position: relative; padding: 0 0 32px; margin-bottom: 32px; border-bottom: 2px solid var(--ink); }
.fhero h1 { font-size: clamp(2.2rem, 4.6vw, 4rem); }
.toc { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 24px; position: sticky; top: 0; z-index: 5; background: var(--bg); padding: 12px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 1023px) { .toc { top: 65px; } }
.jobs { columns: 2 240px; column-gap: 28px; margin: 0; padding: 0; list-style: none; }
.jobs li { break-inside: avoid; padding: 6px 0 6px 22px; position: relative; font-size: .95rem; }
.jobs li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 10px; height: 10px; border-radius: 50%; border: 3px solid var(--blue); box-sizing: border-box; }
.occ { border: 1px solid var(--line); border-top: 4px solid var(--lc, var(--s1)); border-radius: var(--radius); padding: 16px 18px; min-width: 0; background: var(--card); }
.occ h4 { margin: 0 0 6px; font-size: 1.05rem; font-weight: 800; font-stretch: 106%; }
.occ p { margin: 0; }

/* autocomplétion et infobulles */
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 70; list-style: none; margin: 0; padding: 6px; background: var(--card); border: 1px solid var(--ink); border-radius: 8px; box-shadow: var(--shadow-lg); max-height: 380px; overflow-y: auto; text-align: left; }
.suggest a { display: block; padding: 9px 10px; border-radius: 6px; text-decoration: none; color: var(--ink); font-size: .94rem; }
.suggest li[aria-selected="true"] a, .suggest a:hover { background: var(--blue-100); }
.suggest .k { display: inline-block; font: 600 .68rem var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--orange-ink); margin-right: 8px; }
.suggest .d { display: block; font-size: .78rem; color: var(--muted); }
.tooltip { position: fixed; z-index: 90; max-width: 320px; background: #0B1A3A; color: #FFFFFF; font-size: .8rem; padding: 8px 10px; border-radius: 6px; pointer-events: none; box-shadow: var(--shadow-lg); }

.sitemap-cols { columns: 3 240px; column-gap: 32px; }
.sitemap-cols section { break-inside: avoid; margin-bottom: 26px; }
.sitemap-cols h2 { font-size: 1.15rem; padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.sitemap-cols ul { list-style: none; padding: 0; margin: 0; font-size: .92rem; }
.sitemap-cols li { padding: 3px 0; }

@media print { .side, .topbar, .toc, .hero-search { display: none !important; } .app { display: block; } .island > .island-ssr { visibility: visible !important; display: block !important; } .island-root { display: none; } }
/* une seule case encre par bandeau : les suivantes restent claires */
.grid > .kpi.accent ~ .kpi.accent { background: var(--card); color: var(--ink); }
.grid > .kpi.accent ~ .kpi.accent .kpi-label { color: var(--ink-2); }
.grid > .kpi.accent ~ .kpi.accent .kpi-hint, .grid > .kpi.accent ~ .kpi.accent .kpi-value .unit { color: var(--muted); }
.grid > .kpi.accent ~ .kpi.accent .kpi-value { color: var(--ink); }

/* ───────────── accueil tricolore ───────────── */
.app::before { content: ""; position: fixed; z-index: 70; inset: 0 0 auto 0; height: 6px; background: linear-gradient(90deg, #1F49D6 0 33.33%, #FFFFFF 33.33% 66.66%, #E1252F 66.66%); box-shadow: 0 1px 0 var(--line); pointer-events: none; }
.red-dot { color: var(--red-flag); }
.home-hero { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; padding: 8px 0 40px; }
.home-hero-text { flex: 1 1 420px; min-width: 0; }
.home-hero h1 { font-size: clamp(2.8rem, 5.8vw, 5rem); margin: 6px 0 20px; }
.home-lead { font-size: 1.18rem; color: var(--ink-2); max-width: 520px; line-height: 1.5; }
.fr-map { flex: 0 1 430px; min-width: 290px; margin: 0; border: 1px solid var(--line); border-radius: 10px; padding: 20px 22px 18px; background: var(--card); }
.fr-map figcaption { display: flex; flex-direction: column; gap: 3px; margin-bottom: 14px; }
.fr-map figcaption strong { font-size: 1.08rem; font-weight: 800; font-stretch: 110%; }
.fr-map figcaption span { font-size: .82rem; color: var(--muted); }
.fr-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 62px; gap: 5px; }
.fr-drom { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; margin-top: 5px; }
.fr-drom .fr-tile { min-height: 46px; }
.fr-tile { display: flex; flex-direction: column; justify-content: space-between; border-radius: 6px; padding: 6px 7px; text-decoration: none; color: #0B1A3A; font-size: .68rem; font-weight: 600; line-height: 1.15; min-width: 0; overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.fr-tile span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fr-tile strong { font-size: .95rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.fr-tile.dark, .fr-tile.dark:hover { color: #FFFFFF; }
.fr-tile:hover { transform: scale(1.05); box-shadow: 0 0 0 2px var(--ink); color: #0B1A3A; z-index: 1; position: relative; }
.fr-scale { display: flex; align-items: center; gap: 10px; font-size: .76rem; color: var(--ink-2); margin-top: 14px; }
.fr-scale i { display: flex; flex: 1; height: 10px; border-radius: 2px; overflow: hidden; }
.fr-scale b { flex: 1; }
.home-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-bottom: 28px; }
.home-kpis > div { padding: 20px 22px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.home-kpis > div:last-child { border-right: 0; }
.home-kpis span { font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.home-kpis strong { font-size: 2.35rem; font-weight: 700; font-stretch: 110%; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.home-kpis small { font-size: .82rem; color: var(--muted); }
.home-kpis .kpi-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin: 0; }
.home-kpis .kpi-row strong { white-space: nowrap; }
.home-kpis .kpi-spark { width: 92px; height: 32px; flex: none; }
.home-kpis .ink { background: #0B1A3A; color: #FFFFFF; }
.home-kpis .ink span, .home-kpis .ink small { color: #C9D2E6; }
.home-grid { display: grid; gap: 24px; margin-bottom: 24px; }
.home-grid.g2 { grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); }
.home-grid.g3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
@media (max-width: 520px) { .home-grid.g2, .home-grid.g3 { grid-template-columns: minmax(0, 1fr); } }
.hcard { border: 1px solid var(--line); border-radius: 10px; padding: 24px; background: var(--card); min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.hcard > header h2 { font-size: 1.35rem; margin: 0; }
.hcard > header p { margin: 4px 0 0; font-size: .88rem; color: var(--muted); }
.hcard > .hint { margin: auto 0 0; }
.podium { list-style: none; margin: 0; padding: 0; }
.podium li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line-2); }
.podium li:last-child { border-bottom: 0; }
.podium a { min-width: 0; text-decoration: none; color: var(--ink); }
.podium a strong { display: block; font-size: .98rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium a span { display: block; font-size: .8rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium a:hover strong { color: var(--blue); }
.podium b { font-size: 1.12rem; font-variant-numeric: tabular-nums; }
.podium .rank { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; font: 600 .95rem var(--mono); background: var(--bg-2); color: var(--ink-2); box-sizing: border-box; }
.podium .r1 { background: #1F49D6; color: #FFFFFF; }
.podium .r2 { background: #FFFFFF; color: #0B1A3A; border: 2px solid #0B1A3A; }
.podium .r3 { background: #E1252F; color: #FFFFFF; }
.lolli { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.lolli li { display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 4px 10px; align-items: center; }
.lolli a { font-size: .86rem; font-weight: 600; color: var(--ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lolli a:hover { color: var(--blue); }
.lolli b { text-align: right; font-variant-numeric: tabular-nums; }
.lolli-track { grid-column: 1 / -1; position: relative; height: 10px; }
.lolli-track::before { content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 2px; background: var(--line); }
.lolli-track i { position: absolute; left: 0; top: 3px; height: 4px; border-radius: 2px; }
.lolli-track em { position: absolute; top: 0; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; }
.lolli .blue b { color: #1F49D6; } .lolli .blue i, .lolli .blue em { background: #1F49D6; }
.lolli .white b { color: var(--ink-2); } .lolli .white i { background: var(--line-3); } .lolli .white em { background: #FFFFFF; border: 2px solid var(--ink-2); box-sizing: border-box; }
.lolli .red b { color: #B5141D; } .lolli .red i { background: #EC8A86; } .lolli .red em { background: #E1252F; }
.dev-kpi { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0; }
.dev-kpi strong { font-size: 2.4rem; font-weight: 700; font-stretch: 110%; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.dev-kpi span { font-size: .82rem; font-weight: 700; padding: 3px 9px; border-radius: 4px; }
.cols { display: flex; align-items: flex-end; gap: 10px; height: 140px; border-bottom: 2px solid var(--ink); padding-bottom: 0; margin-bottom: 22px; }
.cols span { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; position: relative; }
.cols i { display: block; background: #1F49D6; border-radius: 3px 3px 0 0; transform-origin: bottom; }
.cols .last i { background: #E1252F; opacity: 1 !important; }
.cols small { position: absolute; bottom: -20px; left: 0; right: 0; text-align: center; font-size: .72rem; color: var(--muted); }
.js .cols i { animation: grow-up 1s var(--ease) both; }
.js .cols span:nth-child(2) i { animation-delay: .06s; } .js .cols span:nth-child(3) i { animation-delay: .12s; } .js .cols span:nth-child(4) i { animation-delay: .18s; } .js .cols span:nth-child(5) i { animation-delay: .24s; } .js .cols span:nth-child(6) i { animation-delay: .3s; }
@keyframes grow-up { from { transform: scaleY(0); } }
.tricolore-cta { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); border-radius: 10px; overflow: hidden; margin: 8px 0 24px; border: 1px solid var(--line); }
.tricolore-cta a { display: flex; flex-direction: column; gap: 8px; min-height: 150px; padding: 26px 28px; text-decoration: none; transition: filter .2s; }
.tricolore-cta a:hover { filter: brightness(1.06); }
.tricolore-cta span { font: 600 .82rem var(--mono); opacity: .85; }
.tricolore-cta strong { font-size: 1.4rem; font-weight: 800; font-stretch: 115%; letter-spacing: -.02em; }
.tricolore-cta em { font-style: normal; font-size: .95rem; }
.tricolore-cta .b { background: #1F49D6; color: #FFFFFF; }
.tricolore-cta .w { background: #FFFFFF; color: #0B1A3A; }
.tricolore-cta .r { background: #E1252F; color: #FFFFFF; }
.tricolore-cta .b:hover, .tricolore-cta .r:hover { color: #FFFFFF; }
.tricolore-cta .w:hover { color: #0B1A3A; }
