JavaScript 73.4%
CSS 25.3%
HTML 1.3%
1/* -----------------------------------------------------------------------------2 Auteur : Simon-Pierre Boucher — contact@spboucher.ai3 Fichier : ka-stats/public/styles.css4 Desc. : Ka·Stats — styles applicatifs par-dessus le design system ka-ui5 (tokens.css). Accent Ka·Stats = bleu Québec #095797.6----------------------------------------------------------------------------- */78@font-face { font-family: "Space Grotesk"; src: url("/fonts/SpaceGrotesk-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }9@font-face { font-family: "Space Grotesk"; src: url("/fonts/SpaceGrotesk-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }10@font-face { font-family: "Space Grotesk"; src: url("/fonts/SpaceGrotesk-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }11@font-face { font-family: "JetBrains Mono"; src: url("/fonts/JetBrainsMono-Regular.ttf") format("truetype"); font-weight: 400 500; font-display: swap; }12@font-face { font-family: "JetBrains Mono"; src: url("/fonts/JetBrainsMono-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }1314/* Accent Ka·Stats (bleu Québec) — seule surcharge de marque, comme les satellites */15:root {16 --accent: #095797;17 --accent-soft: #e2edf6;18 --accent-deep: #063a63;19 --on-accent: #ffffff;20}2122/* ---------- header ---------- */23#site-header {24 position: sticky; top: 0; z-index: var(--z-header);25 background: var(--paper); border-bottom: 1.5px solid var(--ink);26}27.header-inner { display: flex; align-items: center; gap: var(--sp-4); min-height: 62px; }28.brand { display: inline-flex; align-items: baseline; font-family: var(--font-display); font-weight: 700; font-size: 24px; letter-spacing: -0.04em; text-decoration: none; }29.brand-qc { color: var(--ink); }30.brand-dot { color: var(--ink-3); margin: 0 1px; }31.brand-stats { background: var(--accent); color: var(--on-accent); border-radius: 7px; padding: 0 8px 2px; transform: rotate(-2deg); }32.brand:hover .brand-stats { transform: rotate(0); }33.main-nav { display: flex; gap: 2px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; flex: 1; }34.main-nav::-webkit-scrollbar { display: none; }35.nav-link {36 display: inline-flex; align-items: center; min-height: var(--touch); padding: 6px 13px;37 font-family: var(--font-display); font-weight: 700; font-size: 14px; white-space: nowrap;38 text-decoration: none; border-radius: var(--r-ctl); color: var(--ink-2);39}40.nav-link:hover { color: var(--ink); background: var(--surface); }41.nav-link.active { color: var(--ink); box-shadow: inset 0 -3px 0 var(--accent); }4243/* ===== KA Nav v2 — menu mobile plein écran (standard 2026-08-25) =====44 Panneau position:fixed inset:0 (z-modal) → visible peu importe le scroll. */45.ka-mnav-btn {46 display: none; width: 44px; height: 44px; margin-left: auto; flex: none;47 flex-direction: column; align-items: center; justify-content: center; gap: 5px;48 background: var(--paper); border: 1.5px solid var(--ink); border-radius: 999px;49 cursor: pointer; padding: 0;50}51.ka-mnav-btn span {52 display: block; width: 18px; height: 2px; background: var(--ink);53 border-radius: 2px; transition: transform 0.18s ease, opacity 0.14s ease;54}55.ka-mnav-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }56.ka-mnav-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }57.ka-mnav-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }58.ka-mnav {59 position: fixed; inset: 0; z-index: var(--z-modal, 900); background: var(--paper);60 display: none; flex-direction: column; overflow-y: auto; overscroll-behavior: contain;61}62.ka-mnav.open { display: flex; animation: ka-mnav-in 0.16s ease; }63@keyframes ka-mnav-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }64.ka-mnav-top {65 display: flex; align-items: center; justify-content: space-between; flex: none;66 min-height: 62px; padding: 0 18px; border-bottom: 2px solid var(--ink); background: var(--paper);67}68.ka-mnav-close {69 width: 44px; height: 44px; flex: none; display: flex; align-items: center;70 justify-content: center; border: 1.5px solid var(--ink); border-radius: 999px;71 background: var(--ink); color: var(--paper); font-size: 17px; font-weight: 700;72 cursor: pointer; padding: 0; line-height: 1;73}74.ka-mnav-links { display: flex; flex-direction: column; justify-content: center; flex: 1; padding: 28px 24px; counter-reset: mnav; }75.ka-mnav-links a {76 display: flex; align-items: baseline; gap: 14px; padding: 17px 0;77 border-bottom: 1.5px dashed rgba(20, 24, 20, 0.18); color: var(--ink); text-decoration: none;78}79.ka-mnav-links a:last-child { border-bottom: 0; }80.ka-mnav-links a::before {81 counter-increment: mnav; content: "0" counter(mnav);82 font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--accent-deep);83}84.ka-mnav-links a b {85 font-family: var(--font-display); font-weight: 700; font-size: 26px;86 line-height: 1; letter-spacing: -0.03em; text-transform: uppercase;87}88.ka-mnav-foot {89 flex: none; border-top: 2px solid var(--ink); padding: 16px 24px;90 padding-bottom: max(20px, env(safe-area-inset-bottom));91}92html.ka-menu-locked, html.ka-menu-locked body { overflow: hidden; }9394/* ---------- sélecteur de période (une rangée au-dessus de tout) ---------- */95.period-bar { background: var(--surface); border-bottom: 1.5px solid var(--line); }96.period-inner { display: flex; align-items: center; gap: var(--sp-3); padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }97.period-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }98.pill {99 min-height: 34px; padding: 4px 13px; cursor: pointer;100 font-family: var(--font-mono); font-size: 11.5px; font-weight: 700; letter-spacing: 0.03em;101 border: 1.5px solid var(--line); border-radius: var(--r-pill); background: var(--surface); color: var(--ink-2);102}103.pill:hover { border-color: var(--ink); color: var(--ink); }104.pill.active { background: var(--ink); border-color: var(--ink); color: var(--accent-soft); }105.pill:disabled { opacity: 0.4; cursor: not-allowed; }106.period-custom { display: inline-flex; align-items: center; gap: 6px; margin-left: 4px; }107.date-in { width: 132px; min-height: 34px; padding: 3px 8px; font-size: 12.5px; border-color: var(--line); }108109/* ---------- héros ---------- */110.hero { padding: var(--sp-7) 0 var(--sp-6); border-bottom: 1.5px solid var(--ink); background:111 linear-gradient(180deg, var(--accent-soft) 0%, var(--paper) 78%); }112.lead { max-width: 720px; color: var(--ink-2); font-size: 16.5px; }113.hero-figure { margin-top: var(--sp-5); }114.hero-num { font-family: var(--font-display); font-weight: 700; font-size: clamp(52px, 8vw, 108px); line-height: 1; letter-spacing: -0.045em; color: var(--ink); }115.hero-sub { margin-top: 6px; font-family: var(--font-mono); font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; color: var(--accent); }116.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--sp-5); }117118.page-head { padding: var(--sp-6) 0 var(--sp-4); border-bottom: 1.5px solid var(--ink); background: linear-gradient(180deg, var(--accent-soft) 0%, var(--paper) 85%); }119.site-head { padding: var(--sp-5) 0 var(--sp-4); border-bottom: 1.5px solid var(--ink); background: linear-gradient(180deg, var(--accent-soft) 0%, var(--paper) 85%); }120.site-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--sp-4); }121.site-h1 { margin-bottom: 4px; }122.site-actions { display: flex; gap: 10px; align-items: center; position: relative; }123.crumb { margin-bottom: var(--sp-3); }124.crumb-link { font-family: var(--font-mono); font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; color: var(--ink-2); }125.crumb-link:hover { color: var(--ink); }126.fresh-row { display: flex; flex-wrap: wrap; gap: 8px; margin: var(--sp-4) 0 0; }127.fresh.stale { color: var(--danger); }128129/* ---------- sections ---------- */130.block { margin: var(--sp-7) 0; }131.sect-note { max-width: 720px; color: var(--ink-2); margin-top: -4px; }132.sect-note.warn { color: var(--danger); }133.sect-more { margin-top: var(--sp-4); }134135/* ---------- cartes de graphique ---------- */136.viz-card { margin: var(--sp-4) 0 var(--sp-5); padding: var(--sp-4) var(--sp-4) var(--sp-3); background: var(--surface); border: 1.5px solid var(--ink); border-radius: var(--r-card); box-shadow: var(--shadow-off-soft); }137figure.viz-card { margin-left: 0; margin-right: 0; }138.viz-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-3); margin-bottom: var(--sp-2); }139.viz-title { font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: -0.02em; }140.viz-plot { position: relative; }141.viz-svg { width: 100%; height: auto; display: block; }142.viz-tick { font-family: var(--font-mono); font-size: 10.5px; fill: var(--ink-3); font-variant-numeric: tabular-nums; }143.viz-endlbl { font-family: var(--font-mono); font-size: 11px; font-weight: 700; fill: var(--ink); paint-order: stroke; stroke: #fff; stroke-width: 3px; }144.viz-bar { cursor: default; }145.viz-cell { cursor: default; }146.viz-arc { cursor: default; }147.viz-donut-total { font-family: var(--font-display); font-weight: 700; font-size: 26px; fill: var(--ink); }148.viz-legend-txt { font-size: 12.5px; fill: var(--ink-2); }149.viz-legend-num { font-family: var(--font-mono); font-size: 11.5px; font-weight: 700; fill: var(--ink); font-variant-numeric: tabular-nums; }150.viz-empty { padding: var(--sp-6); text-align: center; color: var(--ink-3); background: var(--surface-2); border-radius: var(--r-ctl); font-size: 14px; }151.viz-empty.big { margin: var(--sp-6) 0; padding: var(--sp-7); }152153/* légende */154.viz-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 var(--sp-2); }155.viz-legend-item { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-2); }156.viz-key-line { width: 20px; height: 3px; border-radius: 2px; }157.viz-key-rect { width: 12px; height: 12px; border-radius: 3px; }158159/* infobulle */160.viz-tt {161 display: none; position: absolute; z-index: var(--z-dropdown); pointer-events: none;162 min-width: 130px; max-width: 260px; padding: 8px 11px;163 background: var(--ink); color: var(--paper); border-radius: 8px;164 font-size: 12px; line-height: 1.45; box-shadow: var(--shadow-off-mid);165}166.viz-tt-title { font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: rgba(245,243,238,0.65); margin-bottom: 4px; }167.viz-tt-row { display: flex; align-items: center; gap: 7px; }168.viz-tt-key { flex: 0 0 14px; height: 3px; border-radius: 2px; }169.viz-tt-val { font-variant-numeric: tabular-nums; }170.viz-tt-lbl { color: rgba(245,243,238,0.7); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }171172/* vue tableau jumelle */173.viz-data { margin-top: var(--sp-2); border-top: 1px solid var(--line); }174.viz-data > summary { cursor: pointer; padding: 8px 0 4px; font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); list-style: none; }175.viz-data > summary::before { content: "⊞ "; }176.viz-data[open] > summary { color: var(--ink); }177.viz-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }178.viz-table th { text-align: left; font-family: var(--font-mono); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink-3); padding: 6px 10px; border-bottom: 1.5px solid var(--line); white-space: nowrap; }179.viz-table td { padding: 5px 10px; border-bottom: 1px solid var(--line); }180.viz-table td.num { text-align: right; font-variant-numeric: tabular-nums; }181.viz-table tbody tr:nth-child(even) { background: var(--surface-2); }182.viz-data .tbl-wrap { max-height: 320px; overflow: auto; }183184/* résumé statistique */185.viz-summary { display: flex; flex-wrap: wrap; gap: 7px; margin-top: var(--sp-2); }186.viz-stat { display: inline-flex; align-items: baseline; gap: 6px; padding: 3px 10px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-pill); font-size: 12.5px; }187.viz-stat b { font-variant-numeric: tabular-nums; }188189/* deltas ▲▼ */190.viz-delta { font-family: var(--font-mono); font-size: 11px; font-weight: 700; white-space: nowrap; }191.viz-delta.up { color: var(--green); }192.viz-delta.down { color: var(--danger); }193194/* barres horizontales */195.viz-hbars { display: grid; gap: 12px; }196.viz-hbar-top { display: flex; justify-content: space-between; align-items: baseline; gap: var(--sp-3); margin-bottom: 3px; }197.viz-hbar-label { font-size: 13px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }198.viz-hbar-val { display: inline-flex; gap: 8px; align-items: baseline; }199.viz-hbar-val b { font-variant-numeric: tabular-nums; font-size: 13px; }200.viz-hbar-track { height: 12px; background: var(--surface-2); border-radius: 0 6px 6px 0; }201.viz-hbar-fill { height: 100%; border-radius: 0 6px 6px 0; min-width: 3px; }202203/* ---------- KPI ---------- */204.kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: var(--sp-4); margin: var(--sp-5) 0; }205.kpi { padding: var(--sp-4); box-shadow: var(--shadow-off-mid); }206.kpi-label { display: block; margin-bottom: 6px; }207.kpi-value { font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 2.4vw, 34px); letter-spacing: -0.03em; line-height: 1.05; }208.kpi-foot { margin-top: 5px; min-height: 16px; }209.kpi-spark { margin-top: 8px; }210.spark { display: block; }211212/* jauges */213.gauge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: var(--sp-4); margin: var(--sp-4) 0 var(--sp-5); }214.viz-gauge { padding: var(--sp-4); text-align: center; box-shadow: var(--shadow-off-mid); }215.viz-gauge svg { width: 100%; max-width: 200px; margin: 0 auto; }216.viz-gauge-val { font-family: var(--font-display); font-weight: 700; font-size: 24px; fill: var(--ink); }217.viz-gauge-lbl { margin-top: 4px; }218219/* ---------- grille des plateformes ---------- */220.site-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--sp-5); margin-top: var(--sp-4); }221.site-card { display: flex; flex-direction: column; }222.site-band { background: var(--accent); color: var(--on-accent); padding: 12px 16px; display: flex; flex-direction: column; gap: 1px; }223.site-wordmark { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.03em; }224.site-tagline { font-size: 12px; opacity: 0.9; }225.site-body { padding: 14px 16px 6px; flex: 1; }226.site-primary-val { font-family: var(--font-display); font-weight: 700; font-size: 30px; letter-spacing: -0.03em; line-height: 1.05; margin: 2px 0; }227.site-spark { margin: 8px 0 4px; }228.site-minis { display: grid; gap: 6px; margin-top: 8px; }229.site-mini { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding-top: 6px; }230.site-mini b { font-variant-numeric: tabular-nums; font-size: 13.5px; white-space: nowrap; }231.site-mini .klabel { text-align: right; }232.site-foot { display: flex; gap: 8px; padding: 12px 16px 16px; }233.site-btn { flex: 1; font-size: 13px; padding: 8px 10px; }234235/* pastille + chip de site */236.site-chip { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }237.site-dot { width: 9px; height: 9px; border-radius: 50%; border: 1px solid rgba(20,24,20,0.25); }238239/* indicateurs */240.ind-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--sp-4); margin-top: var(--sp-4); }241.ind-card { padding: var(--sp-4); display: flex; flex-direction: column; gap: 5px; align-items: flex-start; box-shadow: var(--shadow-off-mid); }242.ind-val { font-family: var(--font-display); font-weight: 700; font-size: 27px; letter-spacing: -0.03em; line-height: 1.05; }243244/* records */245.rec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--sp-4); margin-top: var(--sp-4); }246.rec-card { padding: var(--sp-4); display: flex; flex-direction: column; gap: 5px; align-items: flex-start; box-shadow: var(--shadow-off-mid); border-left: 5px solid var(--accent); }247.rec-val { font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: -0.02em; }248.rec-label { font-size: 13px; color: var(--ink-2); }249250/* deux colonnes de graphiques */251.two-col { display: grid; gap: var(--sp-4); }252@media (min-width: 1024px) { .two-col { grid-template-columns: 1fr 1fr; } .two-col .viz-card { margin: 0; } }253254/* tableaux interactifs */255.viz-tablecard .viz-head { flex-wrap: wrap; }256.viz-search { max-width: 230px; min-height: 36px; padding: 6px 12px; font-size: 13px; border-color: var(--line); }257.viz-th { background: none; border: 0; padding: 0; font: inherit; font-family: var(--font-mono); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink-3); cursor: pointer; }258.viz-th:hover { color: var(--ink); }259.viz-pager { display: flex; justify-content: space-between; align-items: center; margin-top: var(--sp-2); }260.viz-pager-nav { display: inline-flex; align-items: center; gap: 4px; }261.viz-pgbtn { min-height: 32px; padding: 2px 12px; font-size: 13px; }262.viz-table-lg { font-size: 13px; }263264/* menu PDF */265.pdf-menu { position: relative; }266.pdf-menu > summary { list-style: none; }267.pdf-menu > summary::-webkit-details-marker { display: none; }268.pdf-box { top: calc(100% + 6px); right: 0; }269.pdf-box a { color: var(--ink); font-size: 13.5px; }270.pdf-box a:hover { background: var(--accent-soft); }271272/* comparateur */273.cmp-controls { margin: var(--sp-5) 0 var(--sp-4); display: grid; gap: var(--sp-3); }274.cmp-chips, .cmp-mode { display: flex; flex-wrap: wrap; gap: 7px; }275.site-pill.active { font-weight: 700; }276277/* ---------- cartes commutables : barre d'outils (type + exports) ---------- */278.viz-switch { margin: var(--sp-4) 0 var(--sp-5); }279.viz-switch .viz-card { margin: 0; }280.viz-toolbar { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; margin-bottom: 6px; }281.viz-kindrow { display: flex; gap: 5px; }282.viz-kindpill { min-height: 28px; padding: 2px 11px; font-size: 10.5px; }283.viz-tools { display: flex; gap: 5px; margin-left: auto; }284.viz-toolbtn {285 display: inline-flex; align-items: center; gap: 4px; min-height: 28px; padding: 2px 10px;286 font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; letter-spacing: 0.03em;287 border: 1.5px solid var(--line); border-radius: var(--r-pill); background: var(--surface);288 color: var(--ink-2); cursor: pointer; text-decoration: none;289}290.viz-toolbtn:hover { border-color: var(--ink); color: var(--ink); }291.viz-toolbtn.danger:hover { border-color: var(--danger); color: var(--danger); }292.two-col .viz-switch { margin: 0; }293294/* légende interactive + bandeau zoom */295.viz-legend-btn { background: none; border: 0; padding: 2px 4px; font: inherit; cursor: pointer; border-radius: 6px; }296.viz-legend-btn:hover { background: var(--surface-2); }297.viz-legend-btn.dim { opacity: 0.35; text-decoration: line-through; }298.viz-zoombar { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; margin-bottom: 6px; }299.viz-zreset { min-height: 28px; padding: 2px 11px; font-size: 10.5px; }300301/* ---------- Studio ---------- */302.studio { padding: var(--sp-5); margin-top: var(--sp-5); overflow: visible; }303.studio-in { display: grid; gap: var(--sp-4); }304.studio-sel { display: flex; flex-wrap: wrap; gap: 8px; }305.studio-chip {306 display: inline-flex; align-items: center; gap: 8px; padding: 6px 8px 6px 12px;307 border: 1.5px solid var(--ink); border-radius: var(--r-pill); background: var(--surface-2);308 font-size: 13px;309}310.studio-x { border: 0; background: var(--ink); color: var(--paper); border-radius: 50%; width: 20px; height: 20px; font-size: 10px; cursor: pointer; line-height: 1; }311.studio-x:hover { background: var(--danger); }312.studio-search { position: relative; }313.studio-results {314 position: absolute; z-index: var(--z-dropdown); left: 0; right: 0; top: calc(100% + 4px);315 max-height: 340px; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;316 background: var(--surface); border: 1.5px solid var(--ink); border-radius: var(--r-card); box-shadow: var(--shadow-off-mid);317}318.studio-result {319 display: flex; align-items: center; gap: 10px; width: 100%; min-height: var(--touch);320 padding: 8px 14px; border: 0; border-bottom: 1px solid var(--line); background: none;321 font: inherit; font-size: 13px; text-align: left; cursor: pointer;322}323.studio-result:hover { background: var(--accent-soft); }324.studio-result:disabled { opacity: 0.4; cursor: not-allowed; }325.studio-r-label { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }326.studio-opt .period-row { margin-top: 6px; }327.studio-titlerow { display: flex; gap: 10px; flex-wrap: wrap; }328.studio-titlerow .input { flex: 1; min-width: 220px; }329.studio-saveditem { margin: var(--sp-5) 0; }330.studio-savedbar { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; margin-bottom: 6px; }331.studio-savedacts { display: flex; gap: 5px; }332.hero-cta { margin-top: var(--sp-5); }333334/* chargement : on garde le rendu précédent en opacité réduite (pas de squelette) */335#app.is-loading { opacity: 0.55; pointer-events: none; transition: opacity 0.2s; }336#app { transition: opacity 0.2s; }337338/* mobile */339@media (max-width: 767px) {340 .header-inner { flex-wrap: wrap; padding-top: 8px; padding-bottom: 4px; }341 .brand { font-size: 21px; }342 /* KA Nav v2 (2026-08-25) : la barre scrollable cède la place au hamburger343 + panneau plein écran fixed — menu visible peu importe le scroll */344 .main-nav { display: none; }345 .ka-mnav-btn { display: flex; }346 .site-head-row { align-items: flex-start; }347 .hero { padding-top: var(--sp-6); }348 .viz-data .tbl-wrap { max-height: 260px; }349}350351/* =============================================================================352 KA ÉDITORIAL v2 (2026-08-25) — aligné sur la refonte lou-ka / vrai-prix :353 typo géante, soulignés « brush » SVG, tuiles à filet (zéro boîte), cartes354 de graphique en hairline. Bloc volontairement en FIN de fichier : il355 surcharge la v1 « boîtes + ombres dures » sans toucher au markup (app.js).356 ========================================================================== */357:root { --hairline: rgba(20, 24, 20, 0.14); --hairline-strong: rgba(20, 24, 20, 0.6); }358359/* .hl : la pastille tournée devient un souligné brush (bleu Québec) */360.hl {361 background: transparent; color: inherit; border-radius: 0; transform: none;362 position: relative; display: inline-block; padding: 0 0.06em; z-index: 0;363}364.hl::after {365 content: ""; position: absolute; left: -3%; right: -3%; bottom: 0.05em; height: 0.34em;366 z-index: -1; transform: rotate(-0.6deg);367 background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 26' preserveAspectRatio='none'%3E%3Cpath d='M5 17 C 60 8, 118 21, 168 13 S 258 10, 295 15' fill='none' stroke='%23095797' stroke-width='11' stroke-linecap='round' opacity='.35'/%3E%3C/svg%3E") no-repeat center / 100% 100%;368}369370/* héros : composition typographique pleine page, plus de bande teintée */371.hero { background: var(--paper); border-bottom: 1px solid var(--hairline-strong); padding: 72px 0 52px; }372.hero h1 { font-size: clamp(40px, 5.6vw, 76px); line-height: 1.02; letter-spacing: -0.045em; max-width: 1000px; }373.page-head, .site-head { background: var(--paper); border-bottom: 1px solid var(--hairline-strong); }374375/* chips du héros → ligne de données vivantes (mono + filets) */376.hero-chips { gap: 0; row-gap: 10px; align-items: baseline; }377.hero-chips .chip {378 border: 0; border-radius: 0; background: transparent; min-height: 0;379 padding: 0 14px 0 0; margin-right: 14px; border-right: 1px solid var(--hairline);380 font-size: 12px; font-weight: 500; letter-spacing: 0.02em; text-transform: none; color: var(--ink-2);381}382.hero-chips .chip:last-child { border-right: 0; margin-right: 0; padding-right: 0; }383.hero-chips .chip-accent {384 color: var(--accent-deep); font-weight: 700; text-transform: uppercase;385 font-size: 10.5px; letter-spacing: 0.16em; border-right-color: var(--hairline-strong);386}387@media (max-width: 640px) {388 .hero-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; white-space: nowrap; margin-right: -16px; padding-right: 16px; }389 .hero-chips::-webkit-scrollbar { display: none; }390}391392/* période : bande discrète à filet */393.period-bar { background: transparent; border-bottom: 1px solid var(--hairline); }394.pill { border-color: var(--hairline-strong); border-width: 1px; background: transparent; }395.pill.active { background: var(--ink); border-color: var(--ink); }396397/* cartes : hairline discrète au lieu de l'encre 1.5px + ombre décalée */398.card { border: 1px solid var(--hairline-strong); box-shadow: none; }399.card-hover:hover { transform: none; box-shadow: none; }400.viz-card { border: 1px solid var(--hairline-strong); box-shadow: none; }401.studio.card, .studio { border: 1px solid var(--hairline-strong); box-shadow: none; }402403/* KPI, indicateurs, records, jauges : tuiles magazine à filet, zéro boîte */404.kpi.card, .kpi { border: 0; border-top: 2px solid var(--ink); border-radius: 0; background: transparent; box-shadow: none; padding: 14px 2px 0; }405.kpi-grid { gap: 24px 30px; }406.kpi-value { font-size: clamp(26px, 2.8vw, 38px); letter-spacing: -0.03em; }407.ind-card.card, .ind-card { border: 0; border-top: 2px solid var(--ink); border-radius: 0; background: transparent; box-shadow: none; padding: 14px 2px 0; }408.rec-card.card, .rec-card { border: 0; border-top: 3px solid var(--accent); border-left: 0; border-radius: 0; background: transparent; box-shadow: none; padding: 14px 2px 0; }409.ind-grid, .rec-grid { gap: 24px 30px; }410.viz-gauge.card, .viz-gauge { box-shadow: none; }411412/* chips & résumés statistiques : filets légers */413.chip { border-width: 1px; border-color: var(--hairline-strong); background: transparent; }414.chip-accent { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }415.viz-stat { background: transparent; border-color: var(--hairline); }416417/* boutons primaires : plus de fond encre (le bleu Québec y était illisible) */418.btn-primary { background: var(--accent); color: var(--on-accent); }419.btn-primary:hover { background: var(--accent-deep); color: #fff; }420