/* ═══════════════════════════════════════════════════════════════════
 * Back-office Kontakts : jetons du système « k » (refonte du 12/11/2026).
 * Décisions : docs/design/refonte-bo/PLAN.md et .interface-design/system.md.
 * Un seul bleu (action). Jaune = attention, rouge = alerte ou suppression, toujours avec un mot écrit.
 * Aucune couleur, taille, marge ou rayon en dur dans les vues : tout passe par ces jetons.
 * ═══════════════════════════════════════════════════════════════════ */

@font-face {
    font-family: 'Kt Text';
    src: url('/assets/fonts/atkinson-hyperlegible-next.woff2') format('woff2');
    font-weight: 200 800; font-style: normal; font-display: swap;
}

:root {
    /* Surfaces : une seule teinte, seule la clarté change */
    --k-fond: #F4F5F7;
    --k-papier: #FFFFFF;
    --k-creux: #ECEEF2;

    /* Encre : trois niveaux, tous lisibles sur papier et sur fond (AA) */
    --k-encre: #16191F;
    --k-encre-2: #434A57;
    --k-encre-3: #5F6775;

    /* Traits */
    --k-trait: rgba(22, 25, 31, .10);
    --k-trait-fort: rgba(22, 25, 31, .18);

    /* Action : le seul bleu du back-office */
    --k-action: #0057D9;
    --k-action-survol: #0044AA;
    --k-action-pale: #E3ECFA;
    --k-sur-action: #FFFFFF;

    /* Attention (jaune) et alerte (rouge). Les versions « encre » servent au texte. */
    --k-attention: #F2A900;
    --k-attention-encre: #855A00;
    --k-attention-pale: #FFF4D6;
    --k-alerte: #E3000F;
    --k-alerte-encre: #B4000C;
    --k-alerte-pale: #FDE7E9;

    /* Texte : Atkinson Hyperlegible Next, racine du back-office à 17 px */
    --k-police: 'Kt Text', 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --k-t-13: 0.765rem;
    --k-t-15: 0.882rem;
    --k-t-17: 1rem;
    --k-t-20: 1.176rem;
    --k-t-24: 1.412rem;
    --k-t-30: 1.765rem;
    --k-gras: 600;
    --k-tres-gras: 700;

    /* Espaces : grille de 4 */
    --k-1: 4px;
    --k-2: 8px;
    --k-3: 12px;
    --k-4: 16px;
    --k-6: 24px;
    --k-8: 32px;
    --k-12: 48px;

    /* Rayons */
    --k-r-controle: 8px;
    --k-r-carte: 12px;
    --k-r-feuille: 16px;
    --k-r-pastille: 999px;

    /* Mesures */
    --k-tactile: 44px;
    --k-page-max: 1120px;
    --k-texte-max: 56ch;
    --k-formulaire-max: 640px;
    --k-gouttiere: 16px;
    --k-onglets-h: 64px;

    /* Ce qui flotte (menu, feuille, fenêtre) : seule ombre du système */
    --k-ombre: 0 0 0 1px rgba(22, 25, 31, .08), 0 8px 24px rgba(22, 25, 31, .14), 0 2px 6px rgba(22, 25, 31, .08);
    --k-voile: rgba(22, 25, 31, .45);

    /* Mouvement */
    --k-vite: 120ms;
    --k-pose: 200ms;
    --k-courbe: cubic-bezier(.23, 1, .32, 1);
}

@media (min-width: 769px) {
    :root { --k-gouttiere: 32px; }
}
