/**
 * HOOKEEN V2 — DESIGN SYSTEM : jetons officiels (source unique).
 * Chargé avant toutes les feuilles Hookeen (visual-v1.css, hk-ui.css, hk-platform.css).
 * Ne définit que des variables : aucun effet visuel par lui-même.
 * Unités en px : Superio fixe html { font-size: 10px }.
 *
 * RÈGLE DES BOUTONS : rectangulaires. Rayon 8 px (6 px pour les boutons < 44 px de haut),
 * jamais plus de 15 % de la plus petite dimension. Seule exception : les deux grandes cartes
 * circulaires Candidats / Employeurs de la page de sélection (.hk-orb).
 *
 * Points de rupture (les variables CSS ne s'utilisent pas dans les media queries) :
 *   320 / 360 (très petit) · 520 (mobile) · 768 (tablette) · 960 (hero) · 1180 (header compact) · 1024 · 1440
 */
:root {
	/* ---------- Couleurs de marque ---------- */
	--hk-navy-950: #030817;   /* navy profond (officiel) */
	--hk-navy-900: #050c24;
	--hk-navy-800: #0a1838;
	--hk-navy-700: #10275a;   /* navy (officiel) */
	--hk-navy-600: #183676;
	--hk-orange: #ff8a1d;     /* orange principal (officiel) */
	--hk-orange-soft: #ffb15c;
	--hk-orange-ink: #a64f00; /* orange lisible sur blanc : 5,62:1 */
	--hk-blue: #2f7bff;       /* bleu lumineux (officiel) */
	--hk-blue-soft: #8fb8ff;
	--hk-blue-ink: #1d5fd6;   /* bleu lisible sur blanc : 5,74:1 ; fond des boutons bleus */
	--hk-bg-light: #f6f8fc;   /* fond clair (officiel) */
	--hk-white: #fff;

	/* ---------- Texte et lignes (contrastes vérifiés) ---------- */
	--hk-text: #f3f6ff;       /* sur navy 900 : 17,9:1 */
	--hk-muted: #b7c3e0;      /* sur navy 900 : 11,0:1 */
	--hk-dim: #8a97bb;        /* sur navy 900 : 6,7:1 (textes secondaires uniquement) */
	--hk-ink: #141b2d;        /* sur blanc : 17,2:1 */
	--hk-ink-muted: #4d5874;  /* sur blanc : 7,1:1 */
	--hk-line: rgba(183, 195, 224, .14);  /* bordure sur fond sombre */
	--hk-line-light: #dde3ef;             /* bordure sur fond clair */
	--hk-line-strong: #b4c1da;
	--hk-on-orange: var(--hk-navy-900);   /* texte sur orange : 8,2:1 */
	--hk-on-blue: #fff;                   /* sur --hk-blue-ink : 5,74:1 (blanc sur --hk-blue : 3,9:1, interdit pour du texte) */
	--hk-glass: rgba(255, 255, 255, .045);

	/* ---------- États ---------- */
	--hk-success: #137a4c;  --hk-success-bg: #e7f6ee; /* 4,8:1 */  --hk-success-on-dark: #7be8b8;
	--hk-error: #c0262d;    --hk-error-bg: #fdecec;   /* 5,2:1 */    --hk-error-on-dark: #ff9a9e;
	--hk-warning: var(--hk-orange-ink); --hk-warning-bg: #fff4e8;
	--hk-info: var(--hk-blue-ink);      --hk-info-bg: #eef4ff;
	--hk-disabled-opacity: .5;

	/* ---------- Typographie ---------- */
	--hk-font-display: "Hookeen Display", system-ui, sans-serif;  /* Montserrat (fonts/) */
	--hk-font-body: var(--superio-main-font, system-ui), -apple-system, "Segoe UI", sans-serif; /* Jost en production */
	--hk-fs-xs: 12px; --hk-fs-sm: 13px; --hk-fs-base: 15px; --hk-fs-md: 16px; --hk-fs-lg: 18px;
	--hk-fs-h3: 19px; --hk-fs-h2: clamp(26px, 3.6vw, 42px); --hk-fs-display: clamp(36px, 6.2vw, 72px);
	--hk-fw-regular: 400; --hk-fw-medium: 500; --hk-fw-semibold: 600; --hk-fw-bold: 800;

	/* ---------- Rayons ---------- */
	--hk-radius-xs: 4px;
	/* min(…, 15 %) : le rayon ne dépasse jamais 15 % du composant, quelle que soit sa taille. */
	--hk-radius-btn-sm: min(6px, 15%);  /* petits boutons, icônes-boutons, puces cliquables */
	--hk-radius-btn: min(8px, 15%);     /* boutons standards */
	--hk-radius-field: 10px;  /* champs de formulaire */
	--hk-radius-card: 16px;   /* cartes */
	--hk-radius-panel: 24px;  /* grands panneaux, bandeaux */
	--hk-radius-tag: 6px;     /* badges non cliquables */
	--hk-r-sm: var(--hk-radius-field); --hk-r: var(--hk-radius-card); --hk-r-lg: var(--hk-radius-panel); /* alias historiques */

	/* ---------- Espacements (échelle de 4) ---------- */
	--hk-space-1: 4px; --hk-space-2: 8px; --hk-space-3: 12px; --hk-space-4: 16px; --hk-space-5: 24px;
	--hk-space-6: 32px; --hk-space-7: 48px; --hk-space-8: 64px; --hk-space-section: clamp(56px, 8vw, 112px);

	/* ---------- Dimensions des contrôles (cibles tactiles ≥ 44 px) ---------- */
	--hk-control-h: 48px; --hk-control-h-lg: 54px; --hk-control-h-sm: 40px; --hk-touch-min: 44px;

	/* ---------- Ombres et halos ---------- */
	--hk-shadow-sm: 0 2px 8px rgba(10, 24, 56, .08);
	--hk-shadow-md: 0 12px 28px rgba(10, 24, 56, .12);
	--hk-shadow-lg: 0 24px 60px rgba(3, 8, 23, .35);
	--hk-shadow-orange: 0 10px 26px rgba(255, 138, 29, .32);
	--hk-shadow-blue: 0 10px 26px rgba(47, 123, 255, .3);
	--hk-halo-orange: 0 0 0 4px rgba(255, 138, 29, .2);
	--hk-halo-blue: 0 0 0 4px rgba(47, 123, 255, .2);
	--hk-focus-ring: 3px solid var(--hk-orange-soft);   /* sur fond sombre */
	--hk-focus-ring-light: 3px solid var(--hk-blue-ink); /* sur fond clair */
	--hk-focus-offset: 3px;

	/* ---------- Animations (désactivées si prefers-reduced-motion) ---------- */
	--hk-ease: cubic-bezier(.2, .8, .2, 1);
	--hk-dur-fast: 150ms; --hk-dur: 250ms; --hk-dur-slow: 400ms;
	--hk-lift: translateY(-2px);   /* élévation au survol : jamais de changement de mise en page */
	--hk-loader-duration: 1.6s;

	/* ---------- Motif de marque ---------- */
	--hk-swoosh: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 16' preserveAspectRatio='none'%3E%3ClinearGradient id='g'%3E%3Cstop offset='0' stop-color='%23ff8a1d' stop-opacity='0'/%3E%3Cstop offset='.35' stop-color='%23ff8a1d'/%3E%3Cstop offset='1' stop-color='%23ffb15c'/%3E%3C/linearGradient%3E%3Cpath d='M4 13C70 4 160 1 236 5C160 7 80 9 4 13Z' fill='url(%23g)'/%3E%3C/svg%3E");
}

@media (prefers-reduced-motion: reduce) {
	:root { --hk-dur-fast: 0ms; --hk-dur: 0ms; --hk-dur-slow: 0ms; --hk-lift: none; }
}
