API-KA — plateforme centrale : collecte quotidienne des 8 services KA, historisation append-only et API publique sur www.api-ka.com
Python 60.9%
HTML 21%
TypeScript 7.3%
JavaScript 5.2%
CSS 4.8%
Shell 0.8%
1/* -----------------------------------------------------------------------------2 Auteur : Simon-Pierre Boucher — contact@spboucher.ai3 Fichier : ka-ui/tokens.css — SOURCE CANONIQUE (repo ka-ui sur spbgit)4 Desc. : Design system commun GROUPE KA « éditorial sharp » — tokens + socle5 de composants partagés par les 12 plateformes. Chaque site importe ce6 fichier PUIS surcharge uniquement son accent (voir accents.css).78 · Typo : display Space Grotesk / texte Inter / micro-étiquettes JetBrains Mono9 · Palette: papier #f5f3ee · encre #141814 · vert profond #1c5c41 + ACCENT du site10 · Signature : bordures encre 1,5–2 px + ombres décalées dures, grain de film,11 surlignés d'accent inclinés (néo-brutalisme raffiné)12 · Breakpoints communs : 360 / 768 / 1024 / 1440 px (mobile-first)13 · Zones tactiles ≥ 44×44 px, safe-areas iOS, typographie fluide (clamp)14----------------------------------------------------------------------------- */1516:root {17 /* ---- Palette fixe Groupe KA (identique sur les 12 sites) ---- */18 --paper: #f5f3ee;19 --surface: #ffffff;20 --surface-2: #faf9f5;21 --ink: #141814;22 --ink-2: #4d5551;23 --ink-3: #8b928c;24 --line: rgba(20, 24, 20, 0.14);25 --line-strong: rgba(20, 24, 20, 0.85);26 --green: #1c5c41;27 --green-deep: #123f2e;28 --amber: #e8a33d;29 --amber-soft: #fdf3e2;30 --danger: #b3423a;31 --danger-soft: #fbe9e7;3233 /* ---- ACCENT du site — SEULES variables surchargées par marque ---- */34 --accent: #d9f26b; /* défaut : lime Groupe KA */35 --accent-soft: #f0f9d2;36 --accent-deep: #123f2e;37 --on-accent: var(--ink); /* couleur du texte posé SUR l'accent */3839 /* alias rétro-compatibles (les satellites historiques utilisent --lime) */40 --lime: var(--accent);41 --lime-soft: var(--accent-soft);4243 /* ---- Géométrie sharp ---- */44 --r-card: 10px;45 --r-ctl: 6px;46 --r-pill: 999px;4748 /* ---- Ombres décalées — la signature du groupe ---- */49 --shadow-flat: 0 1px 2px rgba(20, 24, 20, 0.05);50 --shadow-off: 6px 6px 0 var(--ink);51 --shadow-off-soft: 8px 8px 0 rgba(20, 24, 20, 0.08);52 --shadow-off-mid: 4px 4px 0 rgba(20, 24, 20, 0.18);5354 /* ---- Typographie ---- */55 --font-display: "Space Grotesk", system-ui, sans-serif;56 --font-body: "Inter", system-ui, sans-serif;57 --font-mono: "JetBrains Mono", ui-monospace, monospace;5859 /* Échelle fluide (mobile-first, clamp) */60 --fs-h1: clamp(30px, 3.2vw + 18px, 54px);61 --fs-h2: clamp(23px, 1.8vw + 14px, 34px);62 --fs-h3: clamp(17px, 0.9vw + 12px, 22px);63 --fs-body: 15px;64 --fs-small: 13px;6566 /* Espacements */67 --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px;68 --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px;6970 /* Cible tactile minimale */71 --touch: 44px;7273 /* ---- Échelle z-index COMMUNE (obligatoire — aucune valeur arbitraire) ----74 grain de film body::before = 9999 (pointer-events:none, toujours au-dessus,75 purement visuel). Tout composant interactif se place sous 9999 : */76 --z-content: 1; /* contenu positionné ordinaire */77 --z-sticky: 300; /* éléments sticky de contenu (sous-nav…) */78 --z-header: 500; /* header du site */79 --z-bottombar: 600; /* tab bar / barre d'action basse */80 --z-dropdown: 700; /* menus déroulants (au-dessus des barres) */81 --z-overlay: 800; /* voile sous modale/panneau */82 --z-modal: 900; /* modales, panneaux de filtres, galeries */83 --z-toast: 950; /* notifications */8485 /* ---- Hauteur de viewport DYNAMIQUE (barre du navigateur mobile qui se86 replie au scroll) : toujours var(--vh100), JAMAIS 100vh en dur. ---- */87 --vh100: 100vh;88}89@supports (height: 100dvh) { :root { --vh100: 100dvh; } }9091/* ---- Socle ---- */92* { box-sizing: border-box; }93html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }94body {95 margin: 0;96 background: var(--paper);97 color: var(--ink);98 font-family: var(--font-body);99 font-size: var(--fs-body);100 line-height: 1.55;101 -webkit-font-smoothing: antialiased;102 padding-bottom: env(safe-area-inset-bottom);103 overflow-x: clip; /* jamais de débordement horizontal */104}105img, svg, video { max-width: 100%; height: auto; display: block; }106h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.03em; margin: 0 0 0.5em; }107h1 { font-size: var(--fs-h1); line-height: 1.06; }108h2 { font-size: var(--fs-h2); line-height: 1.15; }109h3 { font-size: var(--fs-h3); line-height: 1.25; }110a { color: inherit; }111::selection { background: var(--accent); color: var(--on-accent); }112:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }113114/* Grain de film pleine page — ⚠️ jamais de z-index sur body > * (position:115 relative seulement), sinon les utilitaires z-* sont écrasés. */116body::before {117 content: "";118 position: fixed; inset: 0; pointer-events: none; opacity: 0.35; z-index: 9999;119 background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.06'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");120}121body > * { position: relative; }122123/* ---- Conteneur commun ---- */124.container { max-width: 1152px; margin: 0 auto; padding: 0 var(--sp-4); }125@media (min-width: 768px) { .container { padding: 0 var(--sp-5); } }126127/* ---- Micro-typographie signature ---- */128.kicker {129 display: inline-flex; align-items: center; gap: 10px;130 font-family: var(--font-mono); font-size: 11.5px; font-weight: 500;131 text-transform: uppercase; letter-spacing: 0.12em; color: var(--green);132}133.kicker::before { content: ""; width: 22px; height: 2px; background: var(--green); }134.klabel {135 font-family: var(--font-mono); font-size: 10px; font-weight: 700;136 text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-3);137}138.hl {139 display: inline-block; background: var(--accent); color: var(--on-accent);140 border-radius: 8px; padding: 0 10px 2px; transform: rotate(-1deg);141}142.outline-txt { color: transparent; -webkit-text-stroke: 2px var(--ink); }143144/* ---- Boutons (cible ≥ 44 px) ---- */145.btn {146 display: inline-flex; align-items: center; justify-content: center; gap: 8px;147 min-height: var(--touch); padding: 10px 18px;148 font-family: var(--font-display); font-weight: 700; font-size: 14px;149 border: 1.5px solid var(--ink); border-radius: var(--r-ctl);150 background: var(--surface); color: var(--ink);151 cursor: pointer; text-decoration: none;152 transition: transform 0.15s, box-shadow 0.15s, background 0.15s, color 0.15s;153}154.btn:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-off-mid); }155.btn:active { transform: translate(0, 0); box-shadow: none; }156.btn:disabled { opacity: 0.45; pointer-events: none; }157.btn-primary { background: var(--ink); color: var(--accent); }158.btn-primary:hover { background: var(--accent-deep); }159.btn-accent { background: var(--accent); color: var(--on-accent); }160.btn-ghost { background: transparent; border-color: var(--line); }161.btn-ghost:hover { border-color: var(--ink); }162163/* ---- Cartes ---- */164.card {165 background: var(--surface); border: 1.5px solid var(--ink);166 border-radius: var(--r-card); box-shadow: var(--shadow-off-soft);167 overflow: hidden;168}169.card-hover { transition: transform 0.15s, box-shadow 0.15s; }170.card-hover:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-off); }171172/* ---- Chips / badges ---- */173.chip {174 display: inline-flex; align-items: center; gap: 6px;175 padding: 4px 11px; font-family: var(--font-mono); font-size: 11px; font-weight: 700;176 text-transform: uppercase; letter-spacing: 0.06em;177 border: 1.5px solid var(--ink); border-radius: var(--r-pill);178 background: var(--surface); color: var(--ink);179}180.chip-accent { background: var(--accent); color: var(--on-accent); }181.chip-soft { background: var(--accent-soft); border-color: var(--line); }182183/* ---- Champs ---- */184.input, .select, .textarea {185 width: 100%; min-height: var(--touch); padding: 10px 14px;186 font: inherit; color: var(--ink); background: var(--surface);187 border: 1.5px solid var(--ink); border-radius: var(--r-ctl);188}189.input:focus, .select:focus, .textarea:focus {190 outline: none; box-shadow: 3px 3px 0 var(--accent); border-color: var(--ink);191}192.input::placeholder { color: var(--ink-3); }193194/* ---- Badge « Un service Groupe KA » (header, cliquable → hub) ---- */195.gk-badge {196 display: inline-flex; align-items: center; gap: 7px;197 min-height: 30px; padding: 3px 10px 4px;198 font-family: var(--font-mono); font-size: 10px; font-weight: 700;199 letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;200 border: 1.5px solid var(--ink); border-radius: var(--r-pill);201 background: var(--surface); color: var(--ink-2); white-space: nowrap;202}203.gk-badge b {204 font-family: var(--font-display); font-size: 12px; letter-spacing: -0.02em;205 text-transform: none; color: var(--ink);206}207.gk-badge b .ka {208 display: inline-block; background: var(--ink); color: var(--accent);209 border-radius: 5px; padding: 0 5px 1px; margin-left: 3px; transform: rotate(-2deg);210}211.gk-badge:hover .ka { transform: rotate(0); }212.gk-badge--dark { background: transparent; border-color: rgba(245,243,238,0.4); color: rgba(245,243,238,0.75); }213.gk-badge--dark b { color: var(--paper); }214215/* ---- Footer commun (fond encre — voir react/KaFooter.tsx) ---- */216.ka-footer { margin-top: var(--sp-8); background: var(--ink); padding: 44px 0; font-size: 13px; color: rgba(245,243,238,0.75); }217.ka-footer a { text-decoration: none; }218.ka-footer .wordmark { font-family: var(--font-display); font-weight: 700; font-size: 30px; letter-spacing: -0.04em; color: var(--paper); text-decoration: none; }219.ka-footer .wordmark .ka { color: var(--accent); }220.ka-footer .desc { max-width: 640px; margin-top: var(--sp-4); }221.ka-footer .notice { max-width: 640px; margin-top: var(--sp-4); border-left: 2px solid var(--accent); padding-left: var(--sp-4); }222.ka-footer .notice b { color: var(--paper); }223.ka-footer .sites { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 26px 0 0; padding: 0; font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }224.ka-footer .sites a { color: rgba(245,243,238,0.65); }225.ka-footer .sites a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }226.ka-footer .contacts { display: grid; gap: 14px 32px; border-top: 1px solid rgba(245,243,238,0.15); margin-top: 30px; padding-top: 26px; }227@media (min-width: 768px) { .ka-footer .contacts { grid-template-columns: repeat(3, 1fr); } }228.ka-footer .contacts a { font-family: var(--font-mono); font-weight: 700; font-size: 12px; color: rgba(245,243,238,0.85); }229.ka-footer .contacts a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }230.ka-footer .contacts span { display: block; margin-top: 3px; font-size: 11px; color: rgba(245,243,238,0.5); }231.ka-footer .legal { margin-top: 30px; font-family: var(--font-mono); font-size: 11px; color: rgba(245,243,238,0.45); }232.ka-footer .legal a { color: inherit; }233.ka-footer .legal a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }234235/* ---- Tableaux → cartes empilées sous 768 px ---- */236.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }237@media (max-width: 767px) {238 .tbl-stack thead { display: none; }239 .tbl-stack tr { display: block; border: 1.5px solid var(--ink); border-radius: var(--r-card); margin-bottom: var(--sp-3); background: var(--surface); }240 .tbl-stack td { display: flex; justify-content: space-between; gap: var(--sp-3); padding: 8px 12px; border: 0; }241 .tbl-stack td::before { content: attr(data-label); font-family: var(--font-mono); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); }242}243244/* ---- Utilitaires responsive ---- */245.only-mobile { display: initial; } .only-desktop { display: none; }246@media (min-width: 768px) { .only-mobile { display: none; } .only-desktop { display: initial; } }247248/* =============================================================================249 SOCLE MOBILE OBLIGATOIRE (2026-08-19) — règles communes aux 13 sites.250 RÈGLES pour tout composant futur :251 · TAP, jamais :hover, pour ouvrir un menu (le survol n'existe pas au doigt) ;252 le :hover ne sert qu'aux effets décoratifs, sous @media (hover: hover).253 · var(--vh100) (dvh) et JAMAIS 100vh pour tout élément calé sur le viewport.254 · position:fixed exige qu'AUCUN ancêtre n'ait transform/filter/perspective/255 will-change/backdrop-filter — sinon monter l'élément à la racine (body).256 · Barre basse fixe = .ka-bottombar + classe has-bottombar sur <body>.257 · Menu/panneau ouvert = .ka-scroll-lock sur <html> (scroll arrière-plan gelé).258 · z-index : uniquement l'échelle --z-* ci-dessus.259 · Zones tactiles ≥ var(--touch) (44 px), champs ≥ 16 px (zoom iOS).260 ========================================================================== */261262/* Anti-zoom iOS : au doigt, aucun champ sous 16 px (le focus d'un champ <16 px263 déclenche un zoom automatique de page sur Safari iOS). !important assumé :264 c'est un filet d'accessibilité, un champ plus petit casse le zoom quoi265 qu'il arrive — ne s'applique qu'aux écrans tactiles. */266@media (hover: none) and (pointer: coarse) {267 input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),268 select, textarea { font-size: max(16px, 1em) !important; }269}270271/* Zone tactile du badge Groupe KA étendue à ≥44 px au doigt, sans changer272 son rendu (débord de la zone cliquable via pseudo-élément). */273@media (pointer: coarse) {274 .gk-badge { position: relative; }275 .gk-badge::after { content: ""; position: absolute; inset: -8px; }276}277278/* Hauteurs viewport dynamiques */279.h-viewport { height: 100vh; height: 100dvh; }280.min-h-viewport { min-height: 100vh; min-height: 100dvh; }281282/* Barre fixe basse fiable : safe-area iPhone incluse, immunisée contre les283 transforms accidentels, et compensation d'espace via body.has-bottombar. */284.ka-bottombar {285 position: fixed; left: 0; right: 0; bottom: 0;286 z-index: var(--z-bottombar);287 padding-bottom: env(safe-area-inset-bottom, 0px);288 background: var(--surface);289 border-top: 1.5px solid var(--ink);290 transform: none !important; filter: none !important;291}292body.has-bottombar { padding-bottom: calc(var(--bottombar-h, 64px) + env(safe-area-inset-bottom, 0px)); }293294/* Verrou de scroll d'arrière-plan (menu mobile, modale, panneau de filtres295 ouverts) : ajouter/retirer .ka-scroll-lock sur <html>. */296html.ka-scroll-lock, html.ka-scroll-lock body { overflow: hidden !important; overscroll-behavior: none; }297298/* Menu déroulant de référence : au-dessus de tout contenu (cartes Mapbox299 incluses), défilement interne avec élan, jamais plus haut que l'écran. */300.ka-menu {301 position: absolute; z-index: var(--z-dropdown);302 min-width: 180px;303 max-height: min(60vh, 420px); max-height: min(60dvh, 420px);304 overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;305 background: var(--surface); border: 1.5px solid var(--ink);306 border-radius: var(--r-card); box-shadow: var(--shadow-off-mid);307}308.ka-menu a, .ka-menu button, .ka-menu label, .ka-menu [role="menuitem"], .ka-menu [role="option"] {309 display: flex; align-items: center; min-height: var(--touch);310 padding: 10px 14px; width: 100%; text-decoration: none;311}312/* Voile plein écran sous une modale / un panneau */313.ka-overlay {314 position: fixed; inset: 0; z-index: var(--z-overlay);315 background: rgba(20, 24, 20, 0.45);316}317