/**
 * Hookeen V2 — composants d'interface (inc/hookeen-v2.php ; maquette : design-review/hookeen-v2-home-2026-11-10).
 * Préfixe hk- : aucune collision avec Superio / Elementor. Unités px (Superio : html { font-size: 10px }).
 * Police « Hookeen Display » (Montserrat) déclarée dans css/visual-v1.css.
 */

/* ---------- Jetons ---------- */

/* ---------- Base (zones V2 uniquement : header, footer, accueil) ---------- */
html { scroll-padding-top: 96px; }
@media (prefers-reduced-motion: no-preference) { html:has(.hk-home) { scroll-behavior: smooth; } }
.hk-header, .hk-drawer, .hk-footer, .hk-home { color: var(--hk-text); font: 16px/1.55 var(--hk-font-body); -webkit-font-smoothing: antialiased; }
.hk-home { background: var(--hk-navy-900); }
.hk-header *, .hk-drawer *, .hk-footer *, .hk-home * { box-sizing: border-box; }
.hk-header a, .hk-drawer a, .hk-footer a, .hk-home a { color: inherit; }
.hk-home svg, .hk-header svg, .hk-footer img, .hk-header img { display: block; max-width: 100%; }
/* !important : Superio retire tous les contours de focus (outline: none !important). */
.hk-header :focus-visible, .hk-drawer :focus-visible, .hk-footer :focus-visible, .hk-home :focus-visible { outline: 3px solid var(--hk-orange-soft) !important; outline-offset: 3px; border-radius: 6px; }
.hk-center { margin: 32px 0 0; text-align: center; }
.hk-eyebrow--blue { color: var(--hk-blue-soft); }
.hk-preview-bar { margin: 0; padding: 8px 16px; background: var(--hk-orange); color: var(--hk-navy-900); font: 600 13px/1.3 var(--hk-font-display); text-align: center; }
.hk-skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: var(--hk-r-sm); background: var(--hk-orange); color: var(--hk-navy-900); font-weight: 700; text-decoration: none; }
.hk-skip:focus { top: 12px; outline: 3px solid var(--hk-navy-900) !important; outline-offset: 2px; }
.hk-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hk-container { width: min(1200px, 100% - 32px); margin-inline: auto; }

/* ---------- Typographie ---------- */
.hk-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; color: var(--hk-orange-soft); font: 600 13px/1.2 var(--hk-font-display); letter-spacing: .08em; text-transform: uppercase; }
.hk-eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.hk-display { margin: 0; color: var(--hk-text); font: italic 800 clamp(38px, 6.2vw, 72px)/1.04 var(--hk-font-display); letter-spacing: -.02em; }
.hk-h2 { margin: 0; color: var(--hk-text); font: 800 clamp(28px, 3.6vw, 42px)/1.12 var(--hk-font-display); letter-spacing: -.015em; }
.hk-h3 { margin: 0; color: var(--hk-text); font: 800 19px/1.25 var(--hk-font-display); }
.hk-lead { margin: 0; color: var(--hk-muted); font-size: clamp(16px, 1.5vw, 19px); }
/* Trait décoratif sous le mot mis en évidence : fond du <em> resté en ligne, répété sur chaque ligne (clone). Un ::after
 * absolu disparaissait dès que le mot passait sur deux lignes (« next move. » sur téléphone : largeur négative -> 0).
 * padding-bottom .16em = l'ancien bottom: -.16em ; marge négative = padding gauche : aucune ligne ne bouge. */
.hk-accent, .hk-display em, .hk-h2 em {
	color: var(--hk-orange); font-style: inherit; padding: 0 .06em .16em; margin-left: -.06em;
	background: var(--hk-swoosh) left bottom / 100% .2em no-repeat; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* ---------- Boutons ---------- */
.hk-btn {
	--bg: var(--hk-orange); --fg: var(--hk-navy-900); --bd: var(--hk-orange);
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 46px; padding: 0 22px; border: 2px solid var(--bd); border-radius: var(--hk-radius-btn);
	background: var(--bg); color: var(--fg); font: 800 15px/1 var(--hk-font-display); text-decoration: none; white-space: nowrap; cursor: pointer;
	transition: transform .2s var(--hk-ease), box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
/* Les zones V2 font hériter la couleur des liens : le texte du bouton reste celui de sa variante. */
:is(.hk-header, .hk-drawer, .hk-footer, .hk-home, .hk-ds) .hk-btn { color: var(--fg); }
.hk-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(255, 138, 29, .32); }
.hk-btn:active { transform: translateY(1px); box-shadow: none; }
.hk-btn--ghost { --bg: transparent; --fg: var(--hk-text); --bd: rgba(243, 246, 255, .38); }
.hk-btn--ghost:hover { --bd: var(--hk-text); box-shadow: none; background: rgba(255, 255, 255, .06); }
.hk-btn--blue { --bg: var(--hk-blue-ink); --fg: var(--hk-on-blue); --bd: var(--hk-blue-ink); } /* blanc sur bleu vif = 3,9:1 : fond bleu profond (5,7:1) */
.hk-btn--blue:hover { box-shadow: 0 10px 26px rgba(47, 123, 255, .35); }
.hk-btn--lg { min-height: 54px; padding: 0 28px; font-size: 16px; }
.hk-btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; border-radius: var(--hk-radius-btn-sm); }
.hk-btn--icon { width: 44px; min-height: 44px; padding: 0; border-radius: var(--hk-radius-btn-sm); }

/* ---------- Puces / filtres ---------- */
.hk-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.hk-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 1px solid var(--hk-line); border-radius: var(--hk-radius-btn-sm); background: var(--hk-glass); color: var(--hk-muted); font: 600 13px/1 var(--hk-font-display); text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.hk-chip:hover { border-color: rgba(183, 195, 224, .4); color: var(--hk-text); }
.hk-chip[aria-pressed="true"] { border-color: var(--hk-orange); background: rgba(255, 138, 29, .14); color: var(--hk-text); }

/* ---------- Header ---------- */
.hk-header { position: sticky; top: 0; z-index: 50; background: rgba(5, 12, 36, .96); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, background-color .3s; }
.hk-header.is-scrolled { border-bottom-color: var(--hk-line); background: rgba(5, 12, 36, .9); }
.hk-header__bar { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.hk-header__logo { flex: none; }
.hk-header__logo img { width: 152px; height: auto; }
.hk-nav { display: flex; gap: 2px; margin: 0 auto 0 0; padding: 0; list-style: none; }
.hk-nav a { display: block; padding: 10px 14px; border-radius: var(--hk-radius-btn-sm); color: var(--hk-muted); font: 600 14.5px/1 var(--hk-font-display); text-decoration: none; transition: color .2s, background-color .2s; }
.hk-nav a:hover, .hk-nav a[aria-current="page"] { color: var(--hk-text); background: rgba(255, 255, 255, .06); }
.hk-header__actions { display: flex; align-items: center; gap: 8px; }
.hk-lang { min-height: 40px; min-width: 44px; padding: 0 12px; border: 1px solid var(--hk-line); border-radius: var(--hk-radius-btn-sm); background: transparent; color: var(--hk-muted); font: 600 13px/1 var(--hk-font-display); cursor: pointer; }
.hk-lang:hover { color: var(--hk-text); border-color: rgba(183, 195, 224, .4); }
.hk-burger, .hk-mobile-only { display: none; }
.hk-header__actions .hk-lang { display: inline-grid; place-items: center; text-decoration: none; }
.hk-header .hk-nav, .hk-drawer ul, .hk-footer ul { list-style: none; }
.hk-account { position: relative; }
.hk-account summary { display: block; list-style: none; cursor: pointer; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 34px; } /* block (pas flex) : l'ellipse ne s'applique pas à un conteneur flex */
.hk-account summary::-webkit-details-marker { display: none; }
.hk-account__panel { position: absolute; right: 0; top: calc(100% + 10px); z-index: 60; display: grid; min-width: 240px; padding: 8px; border: 1px solid var(--hk-line); border-radius: var(--hk-r); background: var(--hk-navy-800); box-shadow: 0 20px 50px rgba(0, 0, 0, .45); }
.hk-account__panel ul { margin: 0; padding: 0; list-style: none; }
.hk-account__panel a { display: block; padding: 10px 12px; border-radius: var(--hk-radius-btn-sm); color: var(--hk-muted); font: 600 14px/1.3 var(--hk-font-display); text-decoration: none; }
.hk-account__panel a:hover { background: rgba(255, 255, 255, .06); color: var(--hk-text); }
.hk-account__panel .hk-account__dash { color: var(--hk-text); }
.hk-drawer__account ul { margin: 0 0 16px; }
/* Notifications (API du plugin) */
.hk-notif summary { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; min-height: 0; padding: 0; line-height: 1; overflow: visible; }
.hk-notif__count { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--hk-radius-tag); background: var(--hk-orange); color: var(--hk-navy-900); font: 800 11px/18px var(--hk-font-display); }
.hk-notif__panel { width: min(340px, 90vw); }
.hk-notif__panel li { display: grid; gap: 4px; padding: 10px 12px; border-radius: 10px; color: var(--hk-muted); font-size: 14px; }
.hk-notif__panel li + li { border-top: 1px solid var(--hk-line); }
.hk-notif__panel li a { display: inline; padding: 0; color: var(--hk-text); font-weight: 700; }
.hk-notif__time { color: var(--hk-dim); font-size: 12px; }
.hk-notif__empty { margin: 0; padding: 10px 12px; color: var(--hk-muted); font-size: 14px; }
.hk-drawer { display: none; }
/* Navigation à 5 entrées : en FR, logo + menu + actions = ~1 326 px. Le header s'élargit donc à 1 360 px
   (le contenu reste à 1 200 px) et passe en menu compact sous 1 360 px de fenêtre. */
.hk-header .hk-container { width: min(1360px, 100% - 32px); }
.hk-nav a { padding: 10px 6px; white-space: nowrap; } /* menu FR complet dans 1366 px, barre de défilement Windows comprise */
.hk-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--hk-orange); }
.hk-header__bar { gap: 12px; }
@media (max-width: 1359px) { /* header compact : la navigation FR ne tient pas sur une ligne en dessous */
	.hk-nav, .hk-header__actions .hk-desktop-only, .hk-account:not(.hk-notif) { display: none; }
	.hk-header__bar { min-height: 64px; justify-content: space-between; gap: 12px; }
	.hk-header__bar > nav { display: none; } /* menu vide : ne doit plus consommer d'espacement */
	.hk-header__logo img { width: 128px; }
	.hk-header__actions .hk-mobile-only { display: inline-flex; }
	.hk-drawer__account a { padding: 12px 4px; font-size: 16px; color: var(--hk-muted); }
	.hk-header__actions { gap: 8px; }
	.hk-burger { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--hk-line); border-radius: var(--hk-radius-btn-sm); background: transparent; color: var(--hk-text); cursor: pointer; }
	.hk-burger span, .hk-burger span::before, .hk-burger span::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s var(--hk-ease), opacity .2s; }
	.hk-burger span { position: relative; }
	.hk-burger span::before, .hk-burger span::after { content: ""; position: absolute; left: 0; }
	.hk-burger span::before { top: -6px; }
	.hk-burger span::after { top: 6px; }
	.hk-burger[aria-expanded="true"] span { background: transparent; }
	.hk-burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
	.hk-burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
	.hk-drawer { position: fixed; inset: 64px 0 0; z-index: 49; display: block; padding: 20px 16px 32px; overflow-y: auto; background: var(--hk-navy-900); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .25s var(--hk-ease), visibility .25s; }
	.hk-drawer.is-open { opacity: 1; visibility: visible; transform: none; }
	.hk-drawer ul { margin: 0 0 24px; padding: 0; list-style: none; }
	.hk-drawer li a { display: block; padding: 16px 4px; border-bottom: 1px solid var(--hk-line); color: var(--hk-text); font: 800 20px/1.2 var(--hk-font-display); text-decoration: none; }
	.hk-drawer li a:hover, .hk-drawer li a[aria-current="page"] { color: var(--hk-orange); }
	.hk-drawer .hk-btn { width: 100%; margin-top: 10px; }
}

/* ---------- Hero ---------- */
.hk-hero { position: relative; isolation: isolate; overflow: clip; padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 112px); background: radial-gradient(70% 60% at 70% 30%, rgba(47, 123, 255, .2), transparent 70%), radial-gradient(60% 50% at 15% 85%, rgba(255, 138, 29, .1), transparent 70%), linear-gradient(180deg, var(--hk-navy-800), var(--hk-navy-900)); }
.hk-hero__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hk-hero__copy > * + * { margin-top: 20px; }
/* Titre du hero : taille calée sur la LARGEUR DE SA COLONNE (cqi), pas sur la fenêtre. FR « Plus de façons
   d'évoluer » mesure ~12,9 em et « professionnellement. » ~11,2 em (+ trait orange) : 7.5cqi tient en DEUX
   lignes dès que la colonne fait ≥ 13,3 em (desktop et tablette, colonne élargie à 1.2fr). Sur mobile, plancher
   lisible de 28 px (3 à 4 lignes) et, sous 330 px de colonne, césure française plutôt qu'un débordement. */
.hk-hero__copy { container-type: inline-size; }
.hk-hero__copy .hk-display { font-size: clamp(28px, 7.5cqi, 64px); overflow-wrap: break-word; }
@container (max-width: 330px) { .hk-hero__copy .hk-display { -webkit-hyphens: auto; hyphens: auto; } }
.hk-hero__search { margin-top: clamp(32px, 4vw, 48px); }
.hk-hero__search .hk-hero__trending { margin-top: 16px; }
.hk-hero__trending { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--hk-dim); font-size: 14px; }
/* Motif de marque : l'arc « lever de soleil » du loader, en fond du hero */
.hk-sunrise { position: absolute; z-index: -1; right: -12%; top: 6%; width: min(820px, 90vw); aspect-ratio: 1; pointer-events: none; }
.hk-sunrise svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 0 10px rgba(255, 138, 29, .5)); }
.hk-sunrise__flare { position: absolute; left: 22%; top: 13%; width: 16%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: radial-gradient(closest-side, #fff, #ffe2c2 14%, rgba(255, 138, 29, .45) 38%, transparent); animation: hk-breathe 4s ease-in-out infinite alternate; }

/* ---------- Recherche (même GET que le formulaire WP Job Board Pro) ---------- */
.hk-search { display: grid; grid-template-columns: 1.3fr 1fr 1fr auto; gap: 6px; padding: 8px; border: 1px solid rgba(183, 195, 224, .2); border-radius: var(--hk-radius-card); background: rgba(10, 24, 56, .78); box-shadow: 0 24px 60px rgba(0, 0, 0, .35); backdrop-filter: blur(10px); }
.hk-field { position: relative; display: flex; align-items: center; min-width: 0; }
.hk-field svg { position: absolute; left: 14px; width: 18px; color: var(--hk-dim); pointer-events: none; }
.hk-field input, .hk-field select { width: 100%; height: 52px; padding: 0 14px 0 42px; border: 1px solid transparent; border-radius: var(--hk-radius-field); background: rgba(255, 255, 255, .05); color: var(--hk-text); font: 500 15px/1 var(--hk-font-body); -webkit-appearance: none; appearance: none; transition: border-color .15s, background-color .15s, box-shadow .15s; }
.hk-field select { cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--hk-dim) 50%), linear-gradient(135deg, var(--hk-dim) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.hk-field select option { color: #141b2d; }
.hk-field input::placeholder { color: var(--hk-dim); }
.hk-field input:focus, .hk-field select:focus { outline: 2px solid transparent; border-color: var(--hk-orange); background-color: rgba(255, 255, 255, .08); box-shadow: 0 0 0 4px rgba(255, 138, 29, .2); }
.hk-search .hk-btn { height: 52px; border-radius: var(--hk-radius-btn); }
/* EF-037 : plusieurs lieux (liste déroulante native <details>, cases à cocher) */
.hk-field--multi { align-items: stretch; }
.hk-multi { position: relative; width: 100%; }
.hk-field--multi > svg { top: 17px; }
.hk-multi > summary { display: flex; align-items: center; height: 52px; padding: 0 36px 0 42px; border: 1px solid transparent; border-radius: var(--hk-radius-field); background: rgba(255, 255, 255, .05); background-image: linear-gradient(45deg, transparent 50%, var(--hk-dim) 50%), linear-gradient(135deg, var(--hk-dim) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; color: var(--hk-text); font: 500 15px/1 var(--hk-font-body); list-style: none; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hk-multi > summary::-webkit-details-marker { display: none; }
.hk-multi[open] > summary, .hk-multi > summary:focus-visible { border-color: var(--hk-orange); box-shadow: 0 0 0 4px rgba(255, 138, 29, .2); }
.hk-multi__list { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; right: 0; max-height: min(320px, 50vh); margin: 0; padding: 8px; overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--hk-line); border-radius: var(--hk-radius-field); background: var(--hk-navy-900, #0a1838); box-shadow: 0 18px 40px rgba(0, 0, 0, .45); }
.hk-multi__opt { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 8px; border-radius: 8px; color: var(--hk-text); font-size: 15px; cursor: pointer; }
.hk-multi__opt--sub { padding-left: 28px; }
.hk-multi__opt:hover, .hk-multi__opt:focus-within { background: rgba(255, 255, 255, .06); }
/* cases natives : le thème parent dessine les cases en interrupteurs (état coché invisible ici) */
.hk-multi__opt input[type=checkbox] { -webkit-appearance: checkbox; appearance: auto; position: static; flex: none; width: 18px; height: 18px; margin: 0; padding: 0; border: 0; background: none; box-shadow: none; opacity: 1; accent-color: var(--hk-orange); }
.hk-multi__opt input[type=checkbox]::before, .hk-multi__opt input[type=checkbox]::after { content: none; display: none; }
.hk-hero__alt { margin: 14px 0 0; }
@media (max-width: 860px) {
	.hk-search { grid-template-columns: 1fr 1fr; border-radius: var(--hk-radius-card); }
	.hk-search .hk-field:first-child, .hk-search .hk-btn { grid-column: 1 / -1; }
}
@media (max-width: 520px) { .hk-search { grid-template-columns: 1fr; } }
@media (max-width: 360px) { .hk-header__logo img { width: 108px; } .hk-header__actions { gap: 6px; } }

/* ---------- Accès aux espaces (orbes compactes) ---------- */
.hk-spaces { position: relative; display: grid; gap: 18px; }
.hk-space {
	--ring: var(--hk-blue); --ring-light: #a9c8ff;
	position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px;
	padding: 22px 22px 22px 18px; border: 2px solid transparent; border-radius: var(--hk-radius-card); text-decoration: none; color: var(--hk-text);
	background: radial-gradient(120% 140% at 0% 50%, color-mix(in srgb, var(--ring) 18%, #0b1a3f), var(--hk-navy-900) 70%) padding-box, linear-gradient(110deg, var(--ring), var(--ring-light) 30%, color-mix(in srgb, var(--ring) 40%, transparent) 70%, var(--ring)) border-box;
	box-shadow: 0 0 22px color-mix(in srgb, var(--ring) 45%, transparent), inset 0 0 26px color-mix(in srgb, var(--ring) 18%, transparent);
	transition: transform .35s var(--hk-ease), box-shadow .35s ease;
}
.hk-space--employer { --ring: var(--hk-orange); --ring-light: #ffd3a3; }
.hk-space:hover, .hk-space:focus-visible { transform: translateY(-3px); box-shadow: 0 0 32px var(--ring), inset 0 0 30px color-mix(in srgb, var(--ring) 30%, transparent); }
.hk-space__icon { display: grid; place-items: center; width: 64px; aspect-ratio: 1; border-radius: 12px; background: color-mix(in srgb, var(--ring) 22%, transparent); }
.hk-space__icon svg { width: 36px; }
.hk-space__title { display: block; font: 800 21px/1.15 var(--hk-font-display); }
.hk-space__text { display: block; margin-top: 2px; color: var(--hk-muted); font-size: 14px; line-height: 1.4; }
.hk-arrow { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--hk-radius-btn-sm); background: var(--hk-orange); color: var(--hk-navy-900); transition: transform .3s var(--hk-ease); }
.hk-arrow svg { width: 18px; }
.hk-space:hover .hk-arrow { transform: translateX(4px); }
.hk-ico-fill { fill: var(--hk-orange); stroke: var(--hk-orange); }
.hk-ico-cut { stroke: var(--hk-navy-900); }
.hk-floating { position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--hk-line); border-radius: 14px; background: rgba(10, 24, 56, .88); box-shadow: 0 16px 40px rgba(0, 0, 0, .35); font-size: 13px; color: var(--hk-muted); backdrop-filter: blur(8px); animation: hk-float 6s ease-in-out infinite alternate; }
.hk-floating strong { display: block; color: var(--hk-text); font: 800 16px/1.1 var(--hk-font-display); }
.hk-floating--a { top: -70px; right: 4%; }
.hk-dot { width: 10px; height: 10px; border-radius: 50%; background: #3ddc97; box-shadow: 0 0 0 4px rgba(61, 220, 151, .18); }

/* ---------- Chiffres ---------- */
.hk-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; overflow: hidden; border: 1px solid var(--hk-line); border-radius: var(--hk-r-lg); background: var(--hk-line); }
.hk-stats--overlap { position: relative; margin: -36px 0 0; }
.hk-stats--3 { grid-template-columns: repeat(3, 1fr); }
.hk-stat { display: flex; flex-direction: column-reverse; padding: 26px 24px; background: var(--hk-navy-900); }
.hk-stat__value { margin: 0; }
.hk-stat__value { display: block; font: 800 clamp(26px, 3vw, 36px)/1 var(--hk-font-display); }
.hk-stat__value em { font-style: normal; color: var(--hk-orange); }
.hk-stat__label { display: block; margin-top: 8px; color: var(--hk-muted); font-size: 14px; }
@media (max-width: 760px) { .hk-stats, .hk-stats--3 { grid-template-columns: 1fr; } }

/* ---------- Sections ---------- */
.hk-section { position: relative; padding: clamp(64px, 8vw, 112px) 0; }
.hk-section--alt { background: linear-gradient(180deg, var(--hk-navy-900), var(--hk-navy-800) 50%, var(--hk-navy-900)); }
.hk-section__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 32px; margin-bottom: 36px; }
.hk-section__head > div { max-width: 640px; }
.hk-section__head .hk-lead { margin-top: 12px; }
.hk-section__head--center { flex-direction: column; align-items: center; text-align: center; }

/* ---------- Carte d'offre (accueil, liste d'offres, tableau de bord) ---------- */
.hk-jobs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 18px; }
.hk-job { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 14px 16px; align-content: start; padding: 22px; border: 1px solid var(--hk-line); border-radius: var(--hk-r); background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .02)); transition: transform .3s var(--hk-ease), border-color .3s, box-shadow .3s; }
.hk-job:hover { transform: translateY(-3px); border-color: rgba(255, 138, 29, .45); box-shadow: 0 18px 40px rgba(0, 0, 0, .3); }
.hk-job[hidden] { display: none; }
.hk-avatar { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--c, var(--hk-navy-600)); color: #fff; font: 800 16px/1 var(--hk-font-display); }
.hk-job__title { margin: 0; font: 800 17px/1.3 var(--hk-font-display); }
.hk-job .hk-job__title a { color: var(--hk-text); text-decoration: none; }
.hk-job .hk-job__title a:hover { color: var(--hk-orange-soft); }
.hk-job__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* toute la carte est cliquable */
.hk-job__company { margin: 4px 0 0; color: var(--hk-muted); font-size: 14px; }
.hk-job__logo img { display: block; width: 48px; height: 48px; border-radius: 14px; object-fit: cover; background: #fff; }
.hk-job__logo:empty { width: 48px; height: 48px; border-radius: 14px; background: var(--hk-navy-600); }
.hk-job__meta > *, .hk-job__foot > * { display: inline-flex; align-items: center; gap: 6px; margin: 0; color: var(--hk-muted); font-size: 13px; }
.hk-job__meta > * { min-height: 28px; padding: 0 10px; border-radius: var(--hk-radius-tag); background: rgba(255, 255, 255, .06); }
.hk-job__meta a, .hk-job__foot a { position: relative; z-index: 1; color: inherit; text-decoration: none; }
.hk-job__meta i, .hk-job__foot i { color: var(--hk-dim); }
.hk-job__foot .job-salary { color: var(--hk-text); font: 800 15px/1.2 var(--hk-font-display); }
.hk-save { position: relative; z-index: 1; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--hk-line); border-radius: var(--hk-radius-btn-sm); background: transparent; color: var(--hk-muted); cursor: pointer; transition: color .2s, border-color .2s, background-color .2s; }
.hk-save svg { width: 16px; }
.hk-save:hover { color: var(--hk-text); border-color: rgba(183, 195, 224, .4); }
.hk-save[aria-pressed="true"] { color: var(--hk-orange); border-color: var(--hk-orange); background: rgba(255, 138, 29, .12); }
.hk-save[aria-pressed="true"] path { fill: currentColor; }
.hk-job__meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.hk-job__meta:empty, .hk-job__foot:empty { display: none; }
.hk-badge { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 10px; border-radius: var(--hk-radius-tag); background: rgba(255, 255, 255, .06); color: var(--hk-muted); font-size: 13px; }
.hk-badge--blue { background: rgba(47, 123, 255, .16); color: var(--hk-blue-soft); }
.hk-badge--orange { background: rgba(255, 138, 29, .15); color: var(--hk-orange-soft); }
.hk-badge--green { background: rgba(61, 220, 151, .13); color: #7be8b8; }
.hk-job__foot { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--hk-line); color: var(--hk-dim); font-size: 13px; }
.hk-job__foot strong { color: var(--hk-text); font: 800 15px/1.2 var(--hk-font-display); }
.hk-job__foot { flex-wrap: wrap; align-items: center; }
/* Type de contrat : Superio pose des couleurs en ligne, illisibles sur navy. */
.hk-job__meta .type-job { background: rgba(47, 123, 255, .18) !important; color: var(--hk-blue-soft) !important; }
@media (max-width: 520px) { .hk-job__foot { flex-direction: column; align-items: flex-start; gap: 6px; } }

/* ---------- Catégories ---------- */
.hk-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 14px; }
.hk-cat { display: flex; align-items: center; gap: 14px; padding: 18px; border: 1px solid var(--hk-line); border-radius: var(--hk-r); background: var(--hk-glass); text-decoration: none; transition: border-color .25s, background-color .25s, transform .3s var(--hk-ease); }
.hk-cat:hover { transform: translateY(-2px); border-color: rgba(47, 123, 255, .55); background: rgba(47, 123, 255, .08); }
.hk-cat__icon { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 12px; background: rgba(47, 123, 255, .15); color: var(--hk-blue-soft); }
.hk-cat__icon svg { width: 22px; }
.hk-cat__name { display: block; font: 800 15px/1.25 var(--hk-font-display); }
.hk-cat__count { display: block; color: var(--hk-dim); font-size: 13px; }

/* ---------- Onglets + étapes ---------- */
.hk-tabs { display: inline-flex; gap: 4px; padding: 5px; border: 1px solid var(--hk-line); border-radius: var(--hk-radius-field); background: var(--hk-glass); }
.hk-tab { min-height: 44px; padding: 0 20px; border: 0; border-radius: var(--hk-radius-btn-sm); background: transparent; color: var(--hk-muted); font: 800 14px/1 var(--hk-font-display); cursor: pointer; transition: background-color .25s, color .25s; }
.hk-tab[aria-selected="true"] { background: var(--hk-text); color: var(--hk-navy-900); }
.hk-tabpanel[hidden] { display: none; }
.hk-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 36px 0 0; padding: 0; list-style: none; counter-reset: step; }
.hk-step { position: relative; padding: 28px 24px; border: 1px solid var(--hk-line); border-radius: var(--hk-r-lg); background: var(--hk-glass); counter-increment: step; }
.hk-step::before { content: counter(step, decimal-leading-zero); display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 18px; border-radius: 12px; border: 2px solid var(--step, var(--hk-blue)); color: var(--hk-text); font: 800 16px/1 var(--hk-font-display); box-shadow: 0 0 18px color-mix(in srgb, var(--step, var(--hk-blue)) 55%, transparent); }
.hk-steps--employer { --step: var(--hk-orange); }
.hk-step p { margin: 8px 0 0; color: var(--hk-muted); font-size: 15px; }
@media (max-width: 860px) { .hk-steps { grid-template-columns: 1fr; } }

/* ---------- Avantages ---------- */
.hk-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hk-feature { padding: 30px 26px; border-radius: var(--hk-r-lg); border: 1px solid var(--hk-line); background: radial-gradient(120% 90% at 0% 0%, rgba(47, 123, 255, .12), transparent 60%), var(--hk-navy-900); }
.hk-feature__icon { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 20px; border-radius: 16px; background: rgba(255, 138, 29, .14); color: var(--hk-orange); }
.hk-feature__icon svg { width: 26px; }
.hk-feature p { margin: 10px 0 0; color: var(--hk-muted); font-size: 15px; }
@media (max-width: 860px) { .hk-features { grid-template-columns: 1fr; } }

/* ---------- Appels à l'action ---------- */
.hk-ctas { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.hk-cta { --ring: var(--hk-blue); position: relative; overflow: hidden; display: grid; align-content: space-between; gap: 28px; min-height: 260px; padding: clamp(28px, 4vw, 44px); border-radius: var(--hk-r-lg); border: 1px solid color-mix(in srgb, var(--ring) 45%, transparent); background: radial-gradient(90% 120% at 100% 100%, color-mix(in srgb, var(--ring) 32%, transparent), transparent 60%), var(--hk-navy-800); }
.hk-cta--employer { --ring: var(--hk-orange); }
.hk-cta::after { content: ""; position: absolute; right: -80px; bottom: -80px; width: 260px; aspect-ratio: 1; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--ring) 55%, transparent); box-shadow: 0 0 40px color-mix(in srgb, var(--ring) 40%, transparent); }
.hk-cta p { margin: 12px 0 0; color: var(--hk-muted); max-width: 30em; }
.hk-cta__actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 860px) { .hk-ctas { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.hk-footer { padding: 64px 0 28px; border-top: 1px solid var(--hk-line); background: var(--hk-navy-950); color: var(--hk-muted); font-size: 14px; }
.hk-footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.hk-footer__brand img { width: 150px; margin-bottom: 16px; }
.hk-footer h2 { margin: 0 0 14px; color: var(--hk-text); font: 800 14px/1.2 var(--hk-font-display); }
.hk-footer ul { margin: 0; padding: 0; list-style: none; }
.hk-footer li + li { margin-top: 10px; }
.hk-footer a { text-decoration: none; }
.hk-footer a:hover { color: var(--hk-text); }
.hk-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--hk-line); color: var(--hk-dim); font-size: 13px; }
@media (max-width: 760px) { .hk-footer__grid { grid-template-columns: 1fr 1fr; } .hk-footer__brand { grid-column: 1 / -1; } }
/* QA-038 : sur téléphone, la colonne « Hookeen » restait seule sous les deux autres (grand vide à droite) :
 * pleine largeur, ses liens sur deux colonnes alignées sur Candidats / Employeurs. */
@media (max-width: 760px) {
	.hk-footer__grid > nav:last-child { grid-column: 1 / -1; }
	.hk-footer__grid > nav:last-child ul { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 32px; }
	.hk-footer__grid > nav:last-child li + li { margin-top: 0; }
}

/* ---------- Apparition au défilement ---------- */
.hk-js .hk-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s var(--hk-ease); }
.hk-js .hk-reveal.is-in { opacity: 1; transform: none; }
.hk-sunrise__arc { stroke-dasharray: 100; animation: hk-draw 1.6s var(--hk-ease) .2s both; }

@keyframes hk-breathe { from { opacity: .6; } to { opacity: 1; } }
@keyframes hk-float { from { transform: translateY(0); } to { transform: translateY(-8px); } }
@keyframes hk-draw { from { stroke-dashoffset: 100; } }

/* ---------- Responsive hero ---------- */
@media (max-width: 960px) {
	.hk-hero__grid { grid-template-columns: 1fr; }
	/* Mobile : la recherche passe juste après le titre, avant le choix d'espace. */
	.hk-hero { display: flex; flex-direction: column; }
	.hk-hero__grid { display: contents; }
	.hk-hero__copy, .hk-spaces { width: min(1200px, 100% - 32px); margin-inline: auto; }
	.hk-hero__copy { order: 1; }
	.hk-hero__search { order: 2; margin-top: 28px; }
	.hk-spaces { order: 3; margin-top: 28px; }
	/* QA-027 : membre connecté, la carte « Welcome back » passe avant la recherche (même ordre, ordre du DOM). */
	.hk-spaces--member { order: 2; margin-top: 24px; }
	.hk-floating { display: none; }
	.hk-sunrise { right: -40%; top: -4%; width: 130vw; opacity: .7; }
}
@media (max-width: 520px) {
	.hk-cats { grid-template-columns: 1fr 1fr; gap: 10px; }
	.hk-cat { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; }
	.hk-space { grid-template-columns: auto 1fr; padding: 16px 16px 16px 14px; border-radius: var(--hk-radius-card); }
	.hk-space .hk-arrow { display: none; }
	.hk-space__icon { width: 52px; }
	.hk-space__icon svg { width: 30px; }
}

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
	.hk-header *, .hk-drawer *, .hk-home *, .hk-home *::before, .hk-home *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
	.hk-js .hk-reveal { opacity: 1; transform: none; }
}

/* =====================================================================
 * COMPOSANTS COMPLÉMENTAIRES (design system V2) — surfaces claires par défaut
 * (tableaux de bord, formulaires) ; variantes sombres via .hk-on-dark.
 * ===================================================================== */

/* ---------- Boutons : états communs ---------- */
.hk-btn:focus-visible { outline: var(--hk-focus-ring) !important; outline-offset: var(--hk-focus-offset); }
.hk-btn:disabled, .hk-btn[aria-disabled="true"] { opacity: var(--hk-disabled-opacity); cursor: not-allowed; transform: none; box-shadow: none; }
.hk-btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.hk-btn.is-loading::after { content: ""; position: absolute; width: 18px; height: 18px; border: 2px solid var(--fg); border-right-color: transparent; border-radius: 50%; animation: hk-spin .8s linear infinite; }
.hk-btn--outline { --bg: transparent; --fg: var(--hk-navy-700); --bd: var(--hk-navy-700); }
.hk-btn--outline:hover { --bg: var(--hk-navy-700); --fg: #fff; box-shadow: var(--hk-shadow-md); }
.hk-btn--success { --bg: var(--hk-success); --fg: #fff; --bd: var(--hk-success); }
.hk-btn--danger { --bg: var(--hk-error); --fg: #fff; --bd: var(--hk-error); }
.hk-btn--danger:hover, .hk-btn--success:hover { box-shadow: var(--hk-shadow-md); }

/* ---------- Champs ---------- */
.hk-form-field { display: grid; gap: 7px; margin: 0 0 18px; }
.hk-label { color: var(--hk-ink); font: var(--hk-fw-semibold) 14px/1.3 var(--hk-font-display); }
.hk-input, .hk-select { height: var(--hk-control-h); margin: 0; } /* Superio agrandit select et champs désactivés */
.hk-input, .hk-select, .hk-textarea {
	width: 100%; min-height: var(--hk-control-h); padding: 0 16px; border: 1.5px solid var(--hk-line-light); border-radius: var(--hk-radius-field);
	background: var(--hk-bg-light); color: var(--hk-ink); font: 15px/1.4 var(--hk-font-body);
	transition: border-color var(--hk-dur-fast) ease, box-shadow var(--hk-dur-fast) ease, background-color var(--hk-dur-fast) ease;
}
.hk-textarea { min-height: 120px; padding: 12px 16px; resize: vertical; }
.hk-input:hover, .hk-select:hover, .hk-textarea:hover { border-color: var(--hk-line-strong); }
.hk-input:focus, .hk-select:focus, .hk-textarea:focus { outline: 2px solid transparent; border-color: var(--hk-orange); background: #fff; box-shadow: var(--hk-halo-orange); }
.hk-input:disabled, .hk-select:disabled, .hk-textarea:disabled { opacity: var(--hk-disabled-opacity); cursor: not-allowed; }
.hk-input[aria-invalid="true"], .hk-form-field.is-error .hk-input { border-color: var(--hk-error); background: #fff; }
.hk-form-field.is-success .hk-input { border-color: var(--hk-success); }
.hk-help { margin: 0; color: var(--hk-ink-muted); font-size: 13px; }
.hk-help--error { color: var(--hk-error); font-weight: var(--hk-fw-semibold); }
.hk-help--success { color: var(--hk-success); font-weight: var(--hk-fw-semibold); }
.hk-select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--hk-ink-muted) 50%), linear-gradient(135deg, var(--hk-ink-muted) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 17px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }

/* ---------- Menu déroulant (details/summary, sans JavaScript) ---------- */
.hk-dropdown { position: relative; display: inline-block; }
.hk-dropdown > summary { list-style: none; }
.hk-dropdown > summary::-webkit-details-marker { display: none; }
.hk-dropdown__menu { position: absolute; left: 0; top: calc(100% + 8px); z-index: 30; display: grid; min-width: 220px; padding: 6px; border: 1px solid var(--hk-line-light); border-radius: var(--hk-radius-field); background: #fff; box-shadow: var(--hk-shadow-md); }
.hk-dropdown__menu a { padding: 10px 12px; border-radius: var(--hk-radius-btn-sm); color: var(--hk-ink); text-decoration: none; font-size: 14px; }
.hk-dropdown__menu a:hover, .hk-dropdown__menu a:focus-visible { background: var(--hk-bg-light); color: var(--hk-blue-ink); }

/* ---------- Alertes (validation, erreur, information) ---------- */
.hk-alert { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 16px; padding: 12px 14px; border: 1px solid transparent; border-left-width: 4px; border-radius: var(--hk-radius-field); font-size: 14px; }
.hk-alert--success { border-color: var(--hk-success); background: var(--hk-success-bg); color: var(--hk-success); }
.hk-alert--error { border-color: var(--hk-error); background: var(--hk-error-bg); color: var(--hk-error); }
.hk-alert--info { border-color: var(--hk-info); background: var(--hk-info-bg); color: var(--hk-info); }
.hk-alert--warning { border-color: var(--hk-warning); background: var(--hk-warning-bg); color: var(--hk-warning); }

/* ---------- Tableau / liste ---------- */
.hk-table-wrap { max-width: 100%; overflow-x: auto; } /* tableaux larges : défilement interne, jamais de la page */
.hk-table { width: 100%; border-collapse: separate; border-spacing: 0; overflow: hidden; border: 1px solid var(--hk-line-light); border-radius: var(--hk-radius-card); background: #fff; font-size: 14px; }
.hk-table th { padding: 12px 16px; background: var(--hk-bg-light); color: var(--hk-ink-muted); font: var(--hk-fw-semibold) 13px/1.3 var(--hk-font-display); text-align: left; }
.hk-table td { padding: 14px 16px; border-top: 1px solid var(--hk-line-light); color: var(--hk-ink); }
.hk-table tbody tr { transition: background-color var(--hk-dur-fast) ease; }
.hk-table tbody tr:hover { background: var(--hk-bg-light); }

/* ---------- Carte de profil (candidat / entreprise) ---------- */
.hk-profile { display: grid; grid-template-columns: auto 1fr; gap: 14px 16px; align-items: center; padding: 20px; border: 1px solid var(--hk-line-light); border-radius: var(--hk-radius-card); background: #fff; color: var(--hk-ink); transition: transform var(--hk-dur) var(--hk-ease), box-shadow var(--hk-dur) ease, border-color var(--hk-dur) ease; }
.hk-profile:hover, .hk-profile:focus-within { transform: var(--hk-lift); border-color: var(--hk-orange); box-shadow: var(--hk-shadow-md); }
.hk-profile__avatar { width: 56px; height: 56px; border-radius: 14px; background: var(--hk-navy-700); color: #fff; display: grid; place-items: center; font: var(--hk-fw-bold) 18px/1 var(--hk-font-display); }
.hk-profile__name { margin: 0; font: var(--hk-fw-bold) 17px/1.3 var(--hk-font-display); }
.hk-profile__meta { margin: 2px 0 0; color: var(--hk-ink-muted); font-size: 14px; }

/* ---------- Badges sur fond clair ---------- */
.hk-badge--light { background: var(--hk-bg-light); color: var(--hk-ink-muted); border: 1px solid var(--hk-line-light); }
.hk-badge--success { background: var(--hk-success-bg); color: var(--hk-success); }
.hk-badge--error { background: var(--hk-error-bg); color: var(--hk-error); }
.hk-badge--info { background: var(--hk-info-bg); color: var(--hk-info); }

/* ---------- Fenêtre modale (élément <dialog> natif) ---------- */
.hk-modal { width: min(520px, 100% - 32px); padding: 0; border: 0; border-radius: var(--hk-radius-card); background: #fff; color: var(--hk-ink); box-shadow: var(--hk-shadow-lg); }
.hk-modal::backdrop { background: rgba(3, 8, 23, .6); }
.hk-modal__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--hk-line-light); }
.hk-modal__title { margin: 0; font: var(--hk-fw-bold) 18px/1.3 var(--hk-font-display); }
.hk-modal__body { padding: 20px; }
.hk-modal__foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--hk-line-light); background: var(--hk-bg-light); }

/* ---------- Chargement ---------- */
.hk-spinner { display: inline-block; width: 22px; height: 22px; border: 2px solid var(--hk-line-strong); border-top-color: var(--hk-orange); border-radius: 50%; animation: hk-spin .8s linear infinite; }
.hk-skeleton { position: relative; overflow: hidden; border-radius: var(--hk-radius-xs); background: #e8edf6; }
.hk-skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent); animation: hk-shimmer 1.4s ease-in-out infinite; }
@keyframes hk-shimmer { to { transform: translateX(100%); } }
@keyframes hk-spin { to { transform: rotate(360deg); } }

/* ---------- Cartes interactives : élévation, bordure, ombre (sans décalage de mise en page) ---------- */
.hk-card { padding: 22px; border: 1px solid var(--hk-line-light); border-radius: var(--hk-radius-card); background: #fff; color: var(--hk-ink); transition: transform var(--hk-dur) var(--hk-ease), box-shadow var(--hk-dur) ease, border-color var(--hk-dur) ease; }
a.hk-card { display: block; text-decoration: none; }
a.hk-card:hover, a.hk-card:focus-visible, .hk-card:focus-within { transform: var(--hk-lift); border-color: var(--hk-blue); box-shadow: var(--hk-shadow-md), var(--hk-halo-blue); }

@media (prefers-reduced-motion: reduce) {
	.hk-btn.is-loading::after, .hk-spinner, .hk-skeleton::after { animation: none; }
}

/* ---------- Page « Design system » (templates/hookeen-design-system.php) ---------- */
.hk-ds { background: var(--hk-bg-light); color: var(--hk-ink); font: 15px/1.55 var(--hk-font-body); }
.hk-ds *, .hk-ds *::before, .hk-ds *::after { box-sizing: border-box; }
.hk-ds :focus-visible { outline: var(--hk-focus-ring-light) !important; outline-offset: var(--hk-focus-offset); }
.hk-ds__band { padding: var(--hk-space-7) 0; background: radial-gradient(60% 120% at 80% 0%, rgba(47, 123, 255, .25), transparent 70%), linear-gradient(180deg, var(--hk-navy-800), var(--hk-navy-950)); color: var(--hk-text); }
.hk-ds__band .hk-lead { max-width: 60ch; margin-top: 12px; }
.hk-ds__body { padding: var(--hk-space-6) 0 var(--hk-space-8); }
.hk-ds__section { margin: 0 0 var(--hk-space-7); }
.hk-ds__h { margin: 0 0 var(--hk-space-4); padding-bottom: 8px; border-bottom: 2px solid var(--hk-orange); color: var(--hk-ink); font: var(--hk-fw-bold) 20px/1.2 var(--hk-font-display); }
.hk-ds__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hk-ds__grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.hk-ds__swatches { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.hk-ds__swatch { display: grid; gap: 4px; padding: 10px; border: 1px solid var(--hk-line-light); border-radius: var(--hk-radius-field); background: #fff; font-size: 13px; }
.hk-ds__swatch span { height: 56px; border-radius: var(--hk-radius-btn-sm); border: 1px solid var(--hk-line-light); }
.hk-ds__swatch code { color: var(--hk-ink-muted); }
.hk-ds__card-title { margin: 10px 0 6px; color: var(--hk-ink); font: var(--hk-fw-bold) 17px/1.3 var(--hk-font-display); }
.hk-ds__skel { display: grid; gap: 8px; flex: 1; min-width: 200px; }
.hk-on-dark { padding: 8px; border-radius: var(--hk-radius-field); background: var(--hk-navy-900); }
ul.hk-on-dark { padding: 8px; }

/* Sélecteur flottant TranslatePress : doublon du bouton FR/EN du header V2 (visible à toutes les largeurs). */
.hk-v2 .trp-floating-switcher { display: none !important; }

/* ---------- Page 404 (404.php) : fond navy du hero, code en dégradé orange, une action principale ---------- */
.hk-404__hero { display: grid; align-items: center; min-height: clamp(460px, calc(100vh - 220px), 760px); }
.hk-404__inner { max-width: 760px; }
.hk-404__code { margin: 0 0 8px; color: var(--hk-orange); font: 800 clamp(88px, 18vw, 184px)/.9 var(--hk-font-display); letter-spacing: -.04em; }
@supports (-webkit-background-clip: text) or (background-clip: text) { .hk-404__code { background: linear-gradient(180deg, var(--hk-orange) 30%, rgba(255, 138, 29, .28)); -webkit-background-clip: text; background-clip: text; color: transparent; } }
.hk-404__title { margin-bottom: 18px; font-size: clamp(32px, 5.2vw, 60px); }
.hk-404 .hk-lead { max-width: 560px; }
.hk-404__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 36px; }
.hk-404__home { color: var(--hk-text); font: 600 16px/1.2 var(--hk-font-display); text-decoration: underline; text-decoration-color: rgba(255, 138, 29, .7); text-underline-offset: 5px; }
.hk-404__home:hover { color: var(--hk-orange-soft); }
.hk-v2 #apus-main-content .hk-404 :is(.hk-btn, .hk-404__home):focus-visible { outline: var(--hk-focus-ring) !important; outline-offset: var(--hk-focus-offset); } /* fond sombre : anneau orange clair, pas le bleu des pages claires */
@media (max-width: 480px) { .hk-404__actions .hk-btn { width: 100%; } }

/* HOOKEEN-ACCOUNT-CONTRAST-FIX
   Visibilité du compte connecté dans le header sombre.
*/
.hk-header .user-name,
.hk-header .display-name,
.hk-header .account-name,
.hk-header .profile-name,
.hk-header .header-account a,
.hk-header .header-user a,
.hk-header .header-user-btn,
.hk-header .header-user-link,
.hk-header .menu-user a,
.hk-header .topbar-user a {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  opacity: 1 !important;
}

.hk-header .header-account a:hover,
.hk-header .header-user a:hover,
.hk-header .header-user-btn:hover,
.hk-header .header-user-link:hover,
.hk-header .menu-user a:hover,
.hk-header .topbar-user a:hover {
  color: #ff8a1d !important;
  -webkit-text-fill-color: #ff8a1d !important;
}

.hk-header .header-account a:focus-visible,
.hk-header .header-user a:focus-visible,
.hk-header .header-user-btn:focus-visible,
.hk-header .header-user-link:focus-visible {
  outline: 2px solid #ff8a1d !important;
  outline-offset: 3px;
}

/* HOOKEEN-ACCOUNT-SUMMARY-FIX
   Bouton compte utilisateur connecté, header V2.
*/
.hk-header .hk-account > summary.hk-btn {
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
    opacity: 1 !important;
}

.hk-header .hk-account > summary.hk-btn:hover {
    color: #FF8A1D !important;
    -webkit-text-fill-color: #FF8A1D !important;
}

.hk-header .hk-account > summary.hk-btn:focus-visible {
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
    outline: 2px solid #FF8A1D !important;
    outline-offset: 3px;
}

/* Bannière de consentement Complianz sur téléphone : elle occupait 61 % de l'écran (428 px sur 700) et recouvrait le
   bouton « Menu » des filtres à la première visite. Rien n'est masqué : texte, liens et trois choix restent affichés.
   Accepter / Refuser côte à côte (même taille, même importance), hauteur limitée avec défilement interne, et réserve
   en bas de page tant que la bannière est ouverte, pour que tout contenu puisse défiler au-dessus d'elle. */
@media (max-width: 768px) {
	body .cmplz-cookiebanner.cmplz-show { max-height: 50vh; max-height: 50dvh; overflow-y: auto; overscroll-behavior: contain; padding: 12px 16px; gap: 8px; }
	body .cmplz-cookiebanner .cmplz-buttons { flex-direction: row; flex-wrap: wrap; gap: 8px; }
	body .cmplz-cookiebanner .cmplz-buttons .cmplz-btn { flex: 1 1 calc(50% - 4px); width: auto; min-height: 44px; white-space: normal; }
	body .cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-view-preferences,
	body .cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-save-preferences { flex-basis: 100%; }
	body:has(.cmplz-cookiebanner.cmplz-show) { padding-bottom: 50vh; padding-bottom: 50dvh; }
	/* même réserve dans les panneaux plein écran qui défilent seuls (menu du header, filtres) */
	body.hk-v2:has(.cmplz-cookiebanner.cmplz-show) :is(.hk-drawer, :is(.sidebar-left, .sidebar-right).sidebar.active) { padding-bottom: 50vh; padding-bottom: 50dvh; }
}

/* EF-031 phase 0 : recherche par phrase (accueil) et bandeau « Recherche interprétée » (résultats). */
.hk-search--phrase { position: relative; z-index: 0; grid-template-columns: 1fr auto; margin-top: 10px; }
.hk-search:not(.hk-search--phrase) { position: relative; z-index: 1; } /* la liste des lieux reste au-dessus du champ phrase */
.hk-rp { margin: 0 0 20px; padding: 16px; border-radius: var(--hk-radius-card); color: var(--hk-text); }
.hk-v2 #apus-main-content .hk-rp p { color: var(--hk-text); }
.hk-rp__titre { margin: 0 0 10px; font-weight: 700; }
.hk-rp__info { margin: 10px 0 0; font-size: 14px; }
.hk-rp .hk-chip { min-height: 44px; }
@media (max-width: 520px) { .hk-search--phrase { grid-template-columns: 1fr; } }
/* Accueil, liste des lieux ouverte (capture du 23/11) : le formulaire (backdrop-filter = contexte d'empilement) passait
   sous les cartes du héros, et le héros (isolation + overflow: clip) coupait la liste et passait sous les statistiques.
   Seulement pendant l'ouverture : la recherche passe au-dessus du héros, le héros au-dessus des sections suivantes (sous
   l'en-tête, z-index 50) et ne coupe plus verticalement (toujours horizontalement : pas de défilement latéral). */
.hk-search:has(.hk-multi[open]) { position: relative; z-index: 2; }
.hk-hero:has(.hk-multi[open]) { z-index: 3; overflow: clip visible; }
