/* Headpick · appels d'offres (28/10/2026). Charge APRES main.min.css et design-v2.css de JobSearch :
   le cadre (barre du haut, barre laterale, cartes, boutons, filtres) vient de ces deux fichiers. Ici,
   seulement les composants propres a Headpick, avec les variables de JobSearch (aucune couleur nouvelle
   hors des statuts d'appel, qui reprennent les teintes semantiques --green/--amber/--red/--indigo). */

/* Lot 3b : ni turquoise (Postes) ni cyan (couleur par defaut) dans les statuts, pour qu'une pastille ne se
   confonde pas avec une rubrique. Teintes reprises de design-v2 (etapes du Suivi de JobSearch). */
:root {
  --hh-s-a_appeler: var(--text-muted);
  --hh-s-discussion: var(--amber);
  --hh-s-message: var(--v2-prep);
  --hh-s-rappeler: var(--amber);
  --hh-s-appel: var(--amber);
  --hh-s-rdv: #0EA5E9;
  --hh-s-interesse: #22C55E;
  --hh-s-cv: var(--v2-violet);
  --hh-s-accord: var(--green);
  --hh-s-ecarte: var(--red);
}
[data-theme="light"] { --hh-s-interesse: #15803D; }

/* ── Une couleur par rubrique (lot 3b, retour Yannick « trop bleu partout ») ─────────────
   design-v2 colore la barre laterale par data-tab ; Headpick utilise data-v, d'ou le cyan partout.
   Tableau de bord = cyan (Aujourd'hui de JobSearch), Postes = turquoise (Offres), Candidats = rose
   (Reseau), Parametres = orange (Reglages). La page reprend la couleur de sa rubrique (--rub, pose par
   ao.js sur body[data-rub]) : barre du titre et liseret du bloc principal seulement. */
.sidebar .tab[data-v="dash"] { --nav: var(--v2-accent); }
.sidebar .tab[data-v="postes"] { --nav: var(--teal, #14B8A6); }
.sidebar .tab[data-v="cands"] { --nav: var(--pink, #EC4899); }
.sidebar .tab[data-v="suivi"] { --nav: #8B5CF6; }
.sidebar-link.hh-param { --nav: #F97316; }
.sidebar-link.hh-team { --nav: #22C55E; }
.sidebar-link.hh-team .tab-icon svg { color: #22C55E; }
.sidebar-link.hh-parcours { --nav: #22C55E; }
.sidebar-link.hh-parcours .tab-icon svg { color: #22C55E; }
body[data-rub="equipe"] { --rub: #22C55E; }
/* ── Mon equipe (BUG-4315 lot 1, 29/10/2026) : vert, couleur libre parmi les rubriques. ── */
.eq-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 1000px) { .eq-grid { grid-template-columns: minmax(0, 1fr); } }
.eq-who { display: flex; align-items: center; gap: 10px; min-width: 150px; }
.eq-av { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; color: #fff; background: var(--a, #22C55E); flex-shrink: 0; }
.eq-n { font-weight: 600; color: var(--text); word-break: break-word; }
.eq-m { font-size: 12px; color: var(--text-muted); word-break: break-word; }
.eq-form { display: flex; flex-direction: column; gap: 10px; }
.eq-form label { font-size: 12px; color: var(--text-secondary); display: flex; flex-direction: column; gap: 4px; }
.eq-radio { display: flex; flex-direction: column; gap: 6px; }
.eq-radio label { flex-direction: row; align-items: flex-start; gap: 8px; font-size: 14px; color: var(--text); cursor: pointer; }
.eq-radio small { display: block; color: var(--text-muted); font-size: 12px; }
.eq-acts { display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
.eq-acts .btn-secondary { font-size: 12px; padding: 4px 9px; min-height: 28px; white-space: nowrap; }
.eq-del { color: var(--red) !important; }
/* Fonction d'un membre (29/10/2026) : liste compacte dans le tableau de l'equipe. */
.eq-fonc { width: auto; min-height: 30px; padding: 4px 8px; font-size: 12px; }
.eq-note { margin: 10px 0 0; }
.eq-info { border-left: 3px solid #22C55E; padding: 10px 12px; border-radius: 8px; background: color-mix(in srgb, #22C55E 8%, transparent); color: var(--text-secondary); font-size: 13px; line-height: 1.5; margin-bottom: 16px; }
.eq-info b { color: var(--text); }
.sidebar .tab.active .tab-count, [data-theme="light"] .sidebar .tab.active .tab-count { background: var(--nav); color: #fff; }
body { --rub: var(--v2-accent); }
body[data-rub="postes"] { --rub: var(--teal, #14B8A6); }
body[data-rub="cands"] { --rub: var(--pink, #EC4899); }
body[data-rub="suivi"] { --rub: #8B5CF6; }
/* ── Suivi en Kanban (28/10/2026, demande de Yannick « comme dans JobSearch ») : colonnes et cartes
   .kanban-drop-col / .kanban-card de design-v2 (couleur --t = etape), defilement horizontal. ── */
/* 5 colonnes depuis le lot B (29/10/2026), 6 quand « Écartés » est affiche : elles tiennent dans l'ecran des
   769 px, sans defilement horizontal. Pas d'overflow ici : il couperait le menu « Plus » d'une carte. */
.hh-kb { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; padding-bottom: 10px; align-items: start; }
.hh-kb.hh-kb6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
/* Ancre a gauche de la carte : ancre a droite, le menu de la 1re colonne passait sous la barre laterale.
   La carte dont le menu est ouvert passe devant les cartes suivantes. */
.hh-kb .hh-plus-menu { min-width: 220px; left: 0; right: auto; }
.hh-kb .kanban-drop-col:last-child .hh-plus-menu { left: auto; right: 0; }
.hh-kb .kanban-card:has(.hh-plus[open]) { position: relative; z-index: 10; }
.hh-kb .hh-plus-menu .hh-f { padding: 4px 6px; }
.hh-kb .hh-plus-menu select { width: 100%; font-size: 13px; min-height: 32px; }
.hh-kb .kanban-drop-col { min-width: 0; padding: 8px; min-height: 160px; }
.hh-kb-h { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 13px; margin-bottom: 8px; color: var(--text); }
.hh-kb-h small { color: var(--t); font-weight: 700; }
.hh-kb .kanban-card { background: var(--bg-card, var(--bg)); border-radius: 10px; padding: 9px 10px; margin-bottom: 8px; cursor: grab; display: flex; flex-direction: column; gap: 5px; }
.hh-kb .kanban-card.is-drag { opacity: .45; }
.hh-kb .kanban-drop-col.drag-over { outline: 2px dashed var(--t); outline-offset: -4px; }
.hh-kc-n { font-weight: 700; font-size: 14px; color: var(--text); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.hh-kc-p { font-size: 12.5px; font-weight: 700; color: color-mix(in srgb, var(--accent) 55%, var(--text)); }
.hh-kc-row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.hh-kc-row select { font-size: 12px; padding: 3px 6px; min-height: 28px; border-radius: 6px; flex: 1 1 0; min-width: 0; }
.hh-kc-row .btn-secondary { font-size: 11px; padding: 3px 7px; min-height: 26px; }
.hh-cvbtn { cursor: pointer; border: 0; font: inherit; }
/* Rapport a imprimer (28/10/2026) : panneau plein ecran sur fond blanc ; a l'impression, seul lui sort. */
#hh-rapport { position: fixed; inset: 0; z-index: 3000; background: #fff; color: #111; overflow-y: auto; }
.hh-rap-barre { position: sticky; top: 0; display: flex; gap: 8px; justify-content: flex-end; padding: 10px 16px; background: #fff; border-bottom: 1px solid #ddd; }
.hh-rap-barre .btn-secondary { color: #111 !important; background: #fff !important; border: 1px solid #bbb !important; }
.hh-rap { max-width: 1000px; margin: 0 auto; padding: 16px; font: 13px/1.45 Arial, sans-serif; color: #111; }
.hh-rap h1 { font-size: 20px; margin: 0 0 2px; color: #111; }
.hh-rap h2 { font-size: 15px; margin: 22px 0 6px; border-bottom: 2px solid #8B5CF6; padding-bottom: 3px; color: #111; }
.hh-rap table { width: 100%; border-collapse: collapse; }
.hh-rap th, .hh-rap td { text-align: left; vertical-align: top; padding: 5px 6px; border-bottom: 1px solid #ddd; color: #111; }
.hh-rap th { font-size: 11px; text-transform: uppercase; color: #555; }
.hh-rap small, .hh-rap .sous, .hh-rap .vide { color: #555; }
.hh-rap .retard td:first-child { color: #B91C1C; font-weight: 700; }
/* Qui contacter (28/10/2026) : tableau a plat, comme dans Excel ; lignes alternees, en-tete fixe. */
.hh-rap-choix { display: flex; gap: 6px; margin-right: auto; flex-wrap: wrap; }
.hh-rap-barre { flex-wrap: wrap; }
.hh-rap-barre .btn-secondary.on { background: #8B5CF6 !important; color: #fff !important; border-color: #8B5CF6 !important; }
.hh-rap-large { max-width: 1400px; overflow-x: auto; }
.hh-rap-large table { border: 1px solid #ccc; }
.hh-rap-large th { background: #F3F0FF; border: 1px solid #ccc; }
.hh-rap-large td { border: 1px solid #ddd; font-size: 13px; }
.hh-rap-large tbody tr:nth-child(even) td { background: #FAFAFA; }
.hh-rap .quand { white-space: nowrap; }
.hh-rap .auj td:first-child { color: #B45309; font-weight: 700; }
.hh-rap .nom { font-weight: 700; }
.hh-rap .tel { white-space: nowrap; font-weight: 700; }
.hh-rap a { color: #111; }
.hh-rap .num { text-align: right; }
.hh-rap .manque { color: #888; font-style: italic; }
.hh-rap .poste + .poste { margin-top: 6px; padding-top: 6px; border-top: 1px dashed #ddd; }
.hh-rap .note { display: inline-block; min-width: 22px; padding: 0 4px; border-radius: 4px; background: #F3F0FF; color: #5B21B6; text-align: center; font-size: 12px; }
@media print { .hh-rap-large { max-width: none; } .hh-rap-large td { font-size: 11px; } }
@media print {
  body.hh-print > *:not(#hh-rapport) { display: none !important; }
  #hh-rapport { position: static; overflow: visible; }
  .hh-rap-barre { display: none; }
  .hh-rap { max-width: none; padding: 0; }
  .hh-rap h2 { break-after: avoid; }
  .hh-rap tr { break-inside: avoid; }
}
@media (max-width: 768px) {
  .hh-kb { grid-template-columns: minmax(0, 1fr); } .hh-kb .kanban-drop-col { width: 100%; }
  .hh-kc-row select { max-width: none; flex: 1 1 0; min-width: 0; }
}
/* --border-accent de JobSearch est un cyan a 32 % pose sur chaque carte, tuile, pastille et champ :
   ici, cadres neutres ; le cyan (ou la couleur de rubrique) ne reste que sur le bloc principal. */
.main .card, .main .stat-card, .hh-drawer .card, .hh-sheet .card, .hh-fact, .hh-dl, .hh-chip, .hh-input,
.hh-drawer, .hh-sheet, .hh-contact a, .hh-aide { border-color: var(--border) !important; }
.card.hh-key { border-top: 3px solid var(--rub) !important; }

/* ── Cadre ─────────────────────────────────────────────── */
.navbar { gap: 14px; }
.hh-logo { color: var(--accent); flex-shrink: 0; }
.hh-user { font-size: 13px; color: var(--text-secondary); white-space: nowrap; max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
.hh-hdr-btn { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--border-accent); background: var(--bg-input); color: var(--text-secondary); cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
.hh-side-note { margin: 18px 14px 96px; font-size: 12px; line-height: 1.5; color: var(--text-muted); }
.hh-side-note b { color: var(--text); }
/* La barre laterale de JobSearch reste foncee en theme clair : texte clair fixe, sinon invisible. */
[data-theme="light"] .hh-side-note { color: #9CA3AF; }
[data-theme="light"] .hh-side-note b { color: #E6EDF3; }
.sidebar-bug-btn { display: flex !important; align-items: center; gap: 10px; width: 100%; height: 44px; padding: 0 14px; font-size: 15px; background: none !important; border: none !important; box-shadow: none !important; color: var(--text-secondary); cursor: pointer; position: static !important; top: auto !important; right: auto !important; bottom: auto !important; left: auto !important; }
.sidebar-bug-btn svg { width: 18px; height: 18px; }

/* Robot d'aide : memes valeurs que JobSearch (coaching.js initGuideFab), en classe plutot qu'en ligne. */
#guide-fab { position: fixed; bottom: 24px; left: 24px; width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(155deg, #0a4d63 0%, #06283a 100%); border: 1px solid rgba(0, 204, 247, .45); cursor: pointer; z-index: 999; box-shadow: 0 4px 18px rgba(0, 204, 247, .32); display: flex; align-items: center; justify-content: center; padding: 0; line-height: 1; }
.hh-aide { position: fixed; left: 24px; bottom: 88px; width: min(420px, calc(100vw - 32px)); z-index: 1000; padding: 16px 18px; }

/* ── En-tete de page ───────────────────────────────────── */
.hh-page-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.hh-page-title { font-size: 24px; font-weight: 700; margin: 0; color: var(--text); display: flex; align-items: center; gap: 10px; }
.hh-page-title::before { content: ""; width: 6px; height: 22px; border-radius: 3px; background: var(--rub); }
.hh-dl { font-size: 12px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border-accent); color: var(--text-secondary); }
.hh-dl.hot { border-color: var(--border-warning); color: var(--amber); }
.hh-banner { padding: 12px 14px; border: 1px solid var(--border-warning); border-radius: var(--radius-lg); margin-bottom: 16px; color: var(--text-secondary); }

/* ── Tableau de bord ───────────────────────────────────── */
.hh-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 16px; }
.hh-kpi { padding: 14px 16px; }
.hh-v { font-size: 26px; font-weight: 700; color: var(--kc, var(--text)); line-height: 1.1; }
.hh-v small { font-size: 13px; font-weight: 500; color: var(--text-muted); }
.hh-l { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.hh-box h2 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--text-secondary); margin: 0 0 10px; }
.hh-h2-sp { margin-top: 14px !important; }
.hh-funnel { display: flex; height: 14px; border-radius: 7px; overflow: hidden; background: var(--bg-input); }
.hh-funnel i { display: block; height: 100%; }
.hh-legend small { font-size: inherit; }
/* Tableau de bord du dirigeant (28/10/2026) : cinq chiffres, sous-ligne d'explication, barre par poste. */
.hh-kpis5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
/* Membre d'equipe (sans les montants, D10) : 4 tuiles au tableau de bord, 3 cases dans l'essentiel d'un poste. */
.hh-kpis4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hh-ess.hh-ess3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* Marge par mandat (lot D) : jaune (argent), libre parmi les rubriques. */
.sidebar .tab[data-v="marge"] { --nav: #EAB308; }
body[data-rub="marge"] { --rub: #EAB308; }
.hh-mnt { width: 110px; text-align: right; font-variant-numeric: tabular-nums; padding: 6px 8px; }
.hh-pos { color: var(--green); }
.hh-neg { color: #ef4444; }
[data-theme="light"] .hh-neg { color: #b91c1c; }
.hh-kpi-s { font-size: 11px; color: var(--text-muted); margin-top: 2px; line-height: 1.3; }
.hh-funnel.hh-mini { height: 6px; border-radius: 3px; margin-top: 4px; width: 90px; }
/* Tableau de bord par role (29/10/2026) : chaque tuile est un bouton qui ouvre l'ecran ou l'on agit ; le
   proprietaire choisit la vue (dirigeant, recruteur, apporteur). */
.hh-kpi.stat-card-action { text-align: left; display: block; transition: border-color var(--transition); }
.hh-kpi.stat-card-action:hover { border-color: var(--kc, var(--accent)); }
.hh-tdb-vue { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.hh-tdb-vue select { width: auto; min-width: 190px; }
.hh-tbl th.hh-r, .hh-tbl td.hh-r { text-align: right; }
/* Import LinkedIn (29/10/2026) : marche a suivre et zone de depot reprises de JobSearch. */
.hh-li-etapes ol { margin: 0; padding-left: 18px; line-height: 1.8; color: var(--text-secondary); }
.hh-li-etapes a { color: var(--accent-text, var(--accent)); }
.hh-drop { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 26px 16px; margin: 12px 0; border: 2px dashed var(--border); border-radius: 10px; cursor: pointer; transition: border-color .2s; }
.hh-drop:hover, .hh-drop.is-over { border-color: var(--accent); }
.hh-drop small { color: var(--text-muted); }
/* Apercu de l'import de postes (fiches PDF, 30/10/2026) : reference sur une ligne, competences depliables. */
#hh-pimp td:first-child { white-space: nowrap; }
#hh-pimp td { overflow-wrap: anywhere; }
.hh-pimp-det summary { cursor: pointer; color: var(--accent); padding: 10px 0; }
.hh-pimp-det ul { margin: 2px 0 8px 18px; padding: 0; }
.hh-pimp-det li { margin: 2px 0; }
.hh-drop #hh-li-nom { color: var(--accent-text, var(--accent)); }
.hh-liurl { margin-top: -4px; }
.hh-liurl .hh-input { flex: 1 1 260px; min-width: 0; }
/* Postes : positionnees et potentielles a droite de chaque ligne (28/10/2026). */
.hh-orc-nums { display: flex; gap: 6px; flex-shrink: 0; margin-left: auto; }
.hh-orc-nums > div { min-width: 74px; text-align: center; padding: 4px 6px; border: 1px solid var(--border); border-radius: 10px; }
.hh-orc-nums b { display: block; font-size: 18px; line-height: 1.2; color: var(--text); font-variant-numeric: tabular-nums; }
.hh-orc-nums small { display: block; font-size: 11px; color: var(--text-muted); }
/* Fiche du candidat pour un poste : nom cliquable, adequation ligne par ligne, CV. */
.hh-namebtn { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--text); cursor: pointer; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--rub, var(--accent)) 60%, transparent); text-underline-offset: 3px; }
.hh-namebtn:hover { color: var(--accent-text, var(--accent)); }
.hh-adq { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.hh-adq li { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--text); }
.hh-adq li.is-non_trouvee { color: var(--text-secondary); }
.hh-adq .hh-trace { flex-shrink: 0; min-width: 18px; text-align: center; font-weight: 700; }
.hh-cvtxt { max-height: 60vh; overflow-y: auto; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-input); }
.hh-prof { margin-top: 8px; }
.hh-warn { color: var(--amber); }
.hh-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; font-size: 13px; color: var(--text-secondary); }
.hh-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.hh-cols { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 14px; align-items: start; }
.hh-tbl { overflow-x: auto; }
.hh-tbl table { width: 100%; border-collapse: collapse; font-size: 14px; }
.hh-tbl th { text-align: left; font-size: 12px; color: var(--text-muted); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--border); }
.hh-tbl td { padding: 8px; border-bottom: 1px solid var(--border); vertical-align: top; color: var(--text); }
.hh-click { cursor: pointer; }
.hh-click:hover td { background: var(--accent-soft); }
.hh-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.hh-ref { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); }
.hh-star { color: var(--amber); }
.hh-mini { display: inline-flex; height: 8px; border-radius: 4px; overflow: hidden; background: var(--bg-input); vertical-align: middle; }
.hh-calls { list-style: none; margin: 0; padding: 0; }
.hh-calls li { display: flex; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); }
.hh-calls li.hh-li-ouvre { cursor: pointer; border-radius: 6px; padding-left: 6px; padding-right: 6px; }
.hh-calls li.hh-li-ouvre:hover, .hh-calls li.hh-li-ouvre:focus-visible { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.hh-autre { color: var(--amber); font-weight: 600; }
/* Profil LinkedIn colle : ce qui a ete lu (30/10/2026) */
.hh-lilu { font-size: 12px; color: var(--text-secondary); margin: -4px 0 8px; }
.hh-lilu details summary { cursor: pointer; color: var(--text-muted); margin-top: 4px; }
.hh-lilu pre { max-height: 260px; overflow: auto; white-space: pre-wrap; font-size: 12px; }
/* Commentaires versionnes d'une fiche (30/10/2026) */
.hh-comm { padding: 8px 0; border-bottom: 1px solid var(--border); }
.hh-comm-t { font-size: 14px; color: var(--text); white-space: normal; overflow-wrap: anywhere; }
.hh-comm-m { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.hh-comm-acts, .hh-comm-new { display: flex; gap: 8px; align-items: flex-end; margin-top: 8px; flex-wrap: wrap; }
.hh-comm-new textarea { flex: 1 1 240px; }
.hh-comm-v summary { cursor: pointer; font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.hh-comm-old { font-size: 13px; color: var(--text-secondary); border-left: 2px solid var(--border); padding: 4px 0 4px 8px; margin-top: 6px; }
.hh-comm-old small { color: var(--text-muted); }
.hh-lien { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; font: inherit; text-decoration: underline; }
/* Présélection d'un poste (30/10/2026) : bloc a part en tete de l'onglet Étape, note minimum a cote de la recherche */
.hh-presel { border: 1px dashed var(--border); border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; background: color-mix(in srgb, var(--accent) 5%, transparent); }
.hh-presel h3 { margin: 0 0 2px; font-size: 14px; }
.hh-seuilp { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.hh-seuilp select { width: auto; }
/* Croix « Non retenu » des personnes d'un poste (30/10/2026) */
.hh-srow-x { width: 32px; height: 32px; }
.hh-srow .hh-acts { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.hh-nonretenus { margin-top: 10px; }
.hh-nonretenus > summary { cursor: pointer; font-size: 13px; color: var(--text-muted); padding: 6px 0; }
@media (max-width: 768px) { .hh-srow-x { width: 44px; height: 44px; } }
.hh-deja { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.hh-deja.is-autre { color: var(--amber); font-weight: 600; }
.hh-grow { flex: 1; min-width: 0; }
.hh-muted { color: var(--text-muted); }
.hh-small { font-size: 12px; }
.hh-pre { white-space: pre-line; margin-top: 6px; }
/* Fiche candidat (31/10/2026) : CV en tete, poste vise sous le nom, notes lisibles. */
.hh-cvise { margin-top: 2px; }
.hh-cvrow { margin: 10px 0 4px; }
.hh-notes { font-size: 15px; line-height: 1.55; margin-top: 0; }
.hh-notes-d > summary { cursor: pointer; list-style: none; }
.hh-notes-d > summary::-webkit-details-marker { display: none; }
.hh-notes-ap { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hh-notes-d[open] .hh-notes-ap { display: none; }
.hh-notes-d > summary h2::after { content: " ▾"; color: var(--text-muted); font-size: 13px; }
.hh-empty { padding: 18px; color: var(--text-muted); text-align: center; }
.hh-pill { display: inline-block; font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: 999px; color: var(--c); border: 1px solid color-mix(in srgb, var(--c) 60%, transparent); background: color-mix(in srgb, var(--c) 14%, transparent); white-space: nowrap; }
.hh-inline { display: flex; gap: 6px; align-items: center; margin: 2px 0; flex-wrap: wrap; }

/* ── Postes ────────────────────────────────────────────── */
.hh-toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.hh-input { background: var(--bg-input); border: 1px solid var(--border-accent); border-radius: var(--radius); color: var(--text); padding: 8px 10px; font: inherit; font-size: 14px; min-width: 0; }
.hh-toolbar .hh-input { flex: 1; min-width: 220px; }
.hh-filters { display: flex; gap: 6px; flex-wrap: wrap; }
/* Filtre de mandat (31/10/2026, tous les mandats par defaut) et titres de mandat dans Postes. */
.hh-fmandats { margin: 0 0 12px; }
@media (max-width: 640px) { .hh-fmandats { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .hh-fmandats .filter-btn { flex: none; white-space: nowrap; } }
.hh-fmandats small { opacity: .75; }
.hh-mgrp { font-size: 15px; margin: 16px 0 8px; }
.hh-mgrp:first-of-type { margin-top: 4px; }
/* Vue Postes en liste (28/10/2026, demande de Yannick « comme les offres dans JobSearch ») : lignes .orc
   de main.min.css, texte a gauche ; a partir de 1280 px, la fiche du poste devient le volet de droite
   (body.hh-split, pose par marquerVolets() dans ao.js), memes mesures que body.offres-split de JobSearch. */
.hh-plist { padding: 0 !important; overflow: hidden; }
.hh-plist .orc-main { align-items: flex-start; text-align: left; }
.hh-plist .orc-meta, .hh-plist .orc-badges { justify-content: flex-start; }
.hh-plist .orc-meta small { font-size: var(--fs-sm); }
.hh-plist .orc-meta b { color: var(--text); }
.hh-plist .orc-title { white-space: normal; }
.hh-plist .orc.card-selected { background: color-mix(in srgb, var(--accent) 12%, transparent); box-shadow: inset 3px 0 0 var(--accent); }
.hh-plist .hh-cands-l { gap: 4px; }
/* Postes a cocher dans la fiche du candidat (positionner des la creation). */
.hh-postes-choix { max-height: 210px; overflow-y: auto; border: 1px solid var(--border); border-radius: 8px; padding: 6px 10px; margin-top: 6px; }
.hh-postes-choix .hh-check { padding: 3px 0; }
.hh-postes-choix .hh-check[hidden] { display: none; }
/* Prochaine action (liste des postes, tableau de bord, Kanban, rapport) ; en retard : rouge. */
.hh-next { font-size: var(--fs-sm, 12px); color: var(--text-secondary); font-weight: 600; }
.hh-next.is-late { color: var(--red); }
.hh-plist .orc:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
@media (min-width: 1280px) {
  body.hh-split { --hh-pw: clamp(540px, 46vw, 760px); }
  body.hh-split.hh-poste-ouvert #hh-main { margin-right: calc(var(--hh-pw) + 16px); }
  body.hh-split #hh-layer .hh-scrim { display: none; }
  body.hh-split #hh-layer .hh-drawer { top: var(--hh-vt, 68px); right: 24px; bottom: 12px; width: var(--hh-pw); border: 1px solid var(--border); border-radius: 12px; z-index: 20; }
  body.hh-split #hh-layer .hh-drawer [data-close] { display: none; }
}
/* Pastilles a la ligne : sur une seule ligne, quatre libelles se comprimaient en « Prot… » illisibles. */
.hh-chips { display: flex; gap: 6px; flex-wrap: wrap; min-width: 0; }
.hh-chip { font-size: 12px; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--border-accent); color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.hh-chip.p { border-color: color-mix(in srgb, var(--rub) 55%, transparent) !important; color: var(--text); background: color-mix(in srgb, var(--rub) 12%, transparent); }
.hh-chip.more { color: var(--text-muted); }
.hh-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }

/* ── Fiche de poste (tiroir) ───────────────────────────── */
.hh-scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 1001; }
.hh-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(720px, 100%); background: var(--bg); border-left: 1px solid var(--border-accent); z-index: 1002; overflow-y: auto; }
.hh-in { padding: 16px 20px 24px; display: flex; flex-direction: column; gap: 12px; }
.hh-dhead { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.hh-dhead h1, .hh-sh h1 { font-size: 20px; margin: 4px 0 0; color: var(--text); }
.hh-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.hh-fact { border: 1px solid var(--border-accent); border-radius: var(--radius); padding: 8px 10px; }
.hh-fact.wide { grid-column: 1 / -1; }
.hh-fact .k { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .4px; }
.hh-fact .v { font-size: 15px; font-weight: 600; color: var(--text); }
.hh-fact.big .v { font-size: 19px; }
.hh-full { margin: 6px 0; padding-left: 18px; font-size: 13px; color: var(--text-secondary); }
.hh-full li { margin: 3px 0; }
details summary { cursor: pointer; font-size: 13px; color: var(--accent-text); margin-top: 8px; }
.hh-prow { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.hh-who { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.hh-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.hh-addrow { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; margin-top: 12px; }
/* Menu « Plus » d'un candidat positionne (lot A, BUG-4315) : meme principe que le menu des offres liees de
   JobSearch (.reseau-offres-dd : details, menu pose sous le bouton). Le summary garde l'allure d'un bouton. */
.hh-plus { position: relative; }
.hh-plus > summary { list-style: none; margin-top: 0; }
.hh-plus > summary::-webkit-details-marker { display: none; }
.hh-plus-menu { position: absolute; right: 0; top: calc(100% + 4px); z-index: 5; min-width: 270px; padding: 4px; background: var(--bg-card); border: 1px solid var(--border-accent); border-radius: 8px; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
.hh-plus-menu button { display: block; width: 100%; text-align: left; background: transparent; border: 0; border-radius: 6px; padding: 9px 10px; font: inherit; font-size: 14px; color: var(--text); cursor: pointer; }
.hh-plus-menu button:hover, .hh-plus-menu button:focus-visible { background: var(--accent-soft); }
.hh-plus-menu .is-danger { color: #ef4444; }
[data-theme="light"] .hh-plus-menu .is-danger { color: #b91c1c; }
.hh-plus.vers-haut .hh-plus-menu { top: auto; bottom: calc(100% + 4px); }
.hh-plus-sep { height: 1px; background: var(--border); margin: 4px 0; }
.hh-cherche { width: 100%; margin-bottom: 4px; }

/* ── Fenetres (fiche d'appel, candidat, parametres) ───── */
.hh-modal { position: fixed; inset: 0; z-index: 1003; display: flex; align-items: flex-start; justify-content: center; padding: 32px 16px; overflow-y: auto; }
.hh-modal .hh-scrim { z-index: 0; }
.hh-sheet { position: relative; z-index: 1; width: min(1040px, 100%); background: var(--bg); border: 1px solid var(--border-accent); border-radius: var(--radius-xl); }
.hh-sheet.hh-narrow { width: min(640px, 100%); }
.hh-sh { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.hh-push { margin-left: auto; }
.hh-sb { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; padding: 16px 18px; }
.hh-colstack { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.hh-colstack .card { margin-bottom: 0; }
.hh-copy { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 4px 0; }
.hh-mono { font-family: var(--font-mono); }
.hh-form2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hh-formwrap { padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.hh-f { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--text-muted); }
.hh-check { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--text); padding: 5px 0; cursor: pointer; }
.hh-check input { margin-top: 3px; accent-color: var(--accent); }
.hh-stbtns { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.hh-stbtns button { font: inherit; font-size: 13px; padding: 6px 10px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--c) 60%, transparent); background: transparent; color: var(--c); cursor: pointer; }
.hh-stbtns button.on { background: var(--c); color: var(--on-accent); }
.hh-end { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 10px; }
.hh-a-btn { text-decoration: none; text-align: center; }

/* ---------- Suivi d'une personne (ex-fiche d'appel), refonte du 29/10/2026 ----------
   Maquette validee par Yannick : etape suivante en tete, frise des etapes, onglets, medaille. */
.hh-sheet.hh-suivi { width: min(820px, 100%); }
.hh-su-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.hh-su-head h1 { font-size: 20px; margin: 0; line-height: 1.2; }
.hh-su-body { display: flex; flex-direction: column; gap: 14px; padding: 16px 18px 20px; }
.hh-av { width: 42px; height: 42px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: var(--text-secondary); background: var(--bg-card); border: 1px solid var(--border); }
.hh-medal { display: inline-flex; align-items: center; gap: 6px; flex: none; --m: #E3B341; }
.hh-medal.is-argent { --m: #B6BEC9; }
.hh-medal.is-bronze { --m: #C9824A; }
.hh-medal i { font-style: normal; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #010409; font-variant-numeric: tabular-nums; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--m) 55%, #fff) 0, var(--m) 62%); box-shadow: 0 0 0 2px color-mix(in srgb, var(--m) 35%, transparent); }
.hh-medal small { font-size: 11px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--m); }
[data-theme="light"] .hh-medal { --m: #B7871D; }
[data-theme="light"] .hh-medal.is-argent { --m: #6B7480; }
[data-theme="light"] .hh-medal.is-bronze { --m: #A35F2B; }
.hh-icbtn { width: 40px; min-height: 40px; padding: 0 !important; display: inline-flex !important; align-items: center; justify-content: center; }
.hh-tabp > h2, .hh-cr > h2 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--text-secondary); margin: 8px 0 2px; }
.hh-icbtn svg, .hh-ic svg, .hh-tab svg { width: 16px; height: 16px; flex: none; }
.hh-ic { display: inline-flex !important; align-items: center; gap: 8px; }
.hh-su-contacts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hh-su-next { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-left: 3px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; background: var(--accent-soft); }
.hh-su-next.is-late { border-left-color: var(--red); background: color-mix(in srgb, var(--red) 10%, transparent); }
.hh-su-next > b { font-size: 16px; color: var(--text); }
.hh-su-lab { font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--accent-text, var(--accent)); }
.hh-su-next.is-late .hh-su-lab { color: var(--red); }
.hh-su-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.hh-su-edit { margin-top: 8px; display: flex; flex-direction: column; gap: 8px; }
.hh-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.hh-steps button { font: inherit; font-size: 13px; min-height: 40px; padding: 6px 4px; border-radius: var(--radius); cursor: pointer; background: var(--bg-card); color: var(--text-muted); border: 0; border-top: 3px solid var(--border); }
.hh-steps button.fait { color: var(--text-secondary); border-top-color: color-mix(in srgb, var(--c) 60%, transparent); }
.hh-steps button.ici { color: var(--text); font-weight: 700; border-top-color: var(--c); background: color-mix(in srgb, var(--c) 14%, var(--bg-card)); }
.hh-steps button:hover, .hh-steps button:focus-visible { color: var(--text); }
.hh-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); overflow-x: auto; }
.hh-tab { font: inherit; font-size: 14px; background: transparent; border: 0; border-bottom: 2px solid transparent; color: var(--text-secondary); padding: 10px 12px; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; white-space: nowrap; }
.hh-tab.on { color: var(--accent-text, var(--accent)); border-bottom-color: var(--accent); font-weight: 700; }
.hh-cnt { font-size: 11px; font-weight: 600; background: var(--bg-card); border: 1px solid var(--border); border-radius: 999px; padding: 0 7px; color: var(--text-secondary); }
.hh-tabp { display: flex; flex-direction: column; gap: 6px; }
.hh-tiny { font-size: 12px; }
/* Lot 2 (Postes) : barre « en suivi / à proposer » sur la carte du poste, lignes a une seule action dans la fiche. */
.hh-pbar { display: flex; flex: none; align-self: stretch; width: 100%; height: 6px; border-radius: 99px; overflow: hidden; background: var(--bg-card); border: 1px solid var(--border); margin: 6px 0 2px; max-width: 320px; }
.hh-pbar i { display: block; height: 100%; }
.hh-pbar .is-suivi { background: var(--green); }
.hh-pbar .is-prop { background: #E3B341; opacity: .75; }
.hh-srow { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); }
.hh-tabp > .hh-srow:first-child, #hh-carnet-poste > .hh-srow:first-child { border-top: 0; }
.hh-srow.is-ecarte { opacity: .6; }
.hh-srow-n { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 700; }
.hh-srow-q { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }
.hh-srow-q b { color: var(--text); font-weight: 500; }
.hh-srow-q.is-late, .hh-srow-q.is-late b { color: var(--red); }
.hh-srow .hh-acts { display: flex; gap: 6px; align-items: center; flex: none; }
.hh-medal-vide { width: 34px; flex: none; }
.hh-ptabs { margin-top: 4px; }
.hh-drawer .hh-tabp { gap: 0; }
@media (max-width: 768px) {
  .hh-srow { flex-wrap: wrap; }
  .hh-srow .hh-grow { flex-basis: calc(100% - 50px); }
  .hh-srow .hh-acts { width: 100%; padding-left: 46px; }
  .hh-srow .hh-acts > .btn-primary, .hh-srow .hh-acts > .btn-secondary, .hh-srow .hh-acts > a { flex: 1; min-height: 44px; justify-content: center; }
  .hh-srow-q { font-size: 13px !important; }
  .hh-srow .hh-pill { font-size: 12px !important; }
}
/* Lot 3 (Candidats) : une ligne par personne, sans bouton ; la ligne ouvre la fiche. */
.hh-cfilt { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 12px; }
.hh-cfilt .hh-cnt { margin-left: 4px; }
.hh-ajout { margin-left: auto; }
.hh-ajout > summary { display: inline-flex; align-items: center; min-height: 40px; cursor: pointer; }
.hh-ajout .hh-plus-menu { min-width: 320px; }
.hh-ajout .hh-liurl { display: flex; flex-direction: column; gap: 6px; padding: 8px 10px; }
.hh-clist { display: flex; flex-direction: column; gap: 6px; }
/* Ligne compacte (31/10/2026, maquette validee, modele des lignes Offres et Suivi de JobSearch) : nom, une
   sous-ligne « poste · etape », icones puis note a droite. Environ 64 px au lieu de 108. */
.hh-crow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 10px 12px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; }
.hh-crow:hover, .hh-crow:focus-visible { border-color: var(--border-accent); }
.hh-cqui { min-width: 0; }
.hh-cn { display: flex; align-items: baseline; gap: 8px; min-width: 0; white-space: nowrap; }
.hh-cn b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; flex: none; max-width: 100%; }
.hh-cn .hh-src { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.hh-cposte { font-size: 13px; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.hh-cposte .hh-pill { font-size: 12px !important; vertical-align: 1px; }
.hh-cnote { display: flex; justify-content: flex-end; }
.hh-cics { display: flex; gap: 4px; }
.hh-cic { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 6px; color: var(--text-muted); opacity: .45; background: transparent; border: 0; padding: 0; }
.hh-cic.on { color: var(--accent-text, var(--accent)); opacity: 1; }
button.hh-cic { cursor: pointer; }
button.hh-cic:hover { background: var(--accent-soft); }
.hh-cic svg { width: 16px; height: 16px; }
@media (max-width: 768px) {
  /* Telephone : 7 personnes visibles au lieu de 2 ; source, telephone, e-mail et CV sont dans la fiche. */
  .hh-crow { grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; padding: 12px; border-radius: 12px; }
  .hh-cics, .hh-cn .hh-src, .hh-crow .hh-deja { display: none; }
  .hh-cn b { font-size: 17px; }
  .hh-cposte { font-size: 14px !important; }
  .hh-ajout .hh-plus-menu { min-width: 0; width: calc(100vw - 32px); right: 0; }
  /* Filtres sur une ligne qui glisse au doigt (ils prenaient trois lignes, 160 px). */
  .hh-cfilt { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -16px; padding-right: 16px; }
  .hh-cfilt::-webkit-scrollbar { display: none; }
  .hh-cfilt .filter-btn { min-height: 44px; flex: none; white-space: nowrap; }
}
/* « Fait » cliqué : la ligne se barre aussitôt, le temps du rechargement (1 à 2 s). */
.hh-is-fait { opacity: .45; transition: opacity .2s; }
.hh-is-fait b { text-decoration: line-through; }
/* display: flex l'emporterait sur l'attribut hidden : onglets et formulaire « Changer » restaient visibles. */
.hh-su-edit[hidden], .hh-tabp[hidden] { display: none; }
@media (max-width: 768px) {
  .hh-su-head { flex-wrap: wrap; padding: 14px; }
  .hh-su-head .hh-grow { flex-basis: calc(100% - 60px); }
  .hh-su-body { padding: 14px; }
  /* Frise sur deux lignes (3 + 2) plutot qu'une bande qui defile ; tailles forcees : la regle mobile globale grossit les textes. */
  .hh-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hh-steps button { min-height: 44px; font-size: 13px !important; line-height: 1.2; }
  .hh-tabs { overflow-x: visible; }
  .hh-tabp > h2, .hh-cr > h2 { font-size: 13px !important; }
  .hh-cnt { font-size: 11px !important; }
  .hh-su-btns > * { flex: 1 1 auto; justify-content: center; min-height: 44px; }
  .hh-su-contacts > * { min-height: 44px; }
  /* Les trois onglets tiennent dans la largeur (Dossier sortait de l'ecran a 375 px) : sans icone, partages. */
  .hh-tabs { gap: 0; }
  .hh-tab { flex: 1 1 auto; min-width: 0; justify-content: center; padding: 8px 2px; font-size: 13px !important; gap: 4px; }
  .hh-icbtn { width: 44px; min-height: 44px; }
  .hh-tab svg { display: none; }
  .hh-tabp > details > summary { min-height: 44px; display: flex; align-items: center; }
}
body.hh-busy button { cursor: progress; }
.hh-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 1100; background: var(--bg-card); color: var(--text); border: 1px solid var(--border-accent); border-radius: var(--radius-lg); padding: 10px 16px; box-shadow: var(--shadow-lg); }

/* ── L'essentiel d'un poste (lot 3b) : TJM, salaire, places, debut, lisibles d'un coup d'oeil ── */
.hh-ess { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
/* Contrat : un texte (« Indéterminée, 5 ans max »), pas un chiffre : plus petit pour tenir sur deux lignes. */
.hh-ess .v.hh-v-txt { font-size: 15px; }
.hh-ess .k { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .4px; }
.hh-ess .v { font-size: 20px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; line-height: 1.2; }
.hh-ess .s { font-size: 12px; color: var(--text-muted); }
/* <small> et non <span> : JobSearch grossit les span sur telephone (17 px mesures sur la maquette). */
/* Renouvellement (tableau du CCCC) : discret quand NON, accent ambre quand OUI (poste deja tenu par un externe). */
.hh-renouv { display: inline-block; font-size: 10px; font-weight: 600; padding: 0 6px; border-radius: 999px; color: var(--text-muted); border: 1px solid var(--border); vertical-align: 2px; margin-left: 4px; text-transform: none; letter-spacing: 0; }
.hh-renouv.is-on { color: var(--amber); border-color: color-mix(in srgb, var(--amber) 50%, transparent); }
.orc-meta .hh-renouv { margin-left: 0; vertical-align: 0; }
.hh-echelle { border-collapse: collapse; margin: 8px 0; font-size: 13px; font-variant-numeric: tabular-nums; }
.hh-echelle th, .hh-echelle td { padding: 4px 14px 4px 0; text-align: right; border-bottom: 1px solid var(--border); }
.hh-echelle th { font-weight: 600; color: var(--text-muted); font-size: 11px; text-transform: uppercase; letter-spacing: .4px; }
.hh-contact { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.hh-contact a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid; color: var(--text); text-decoration: none; font-size: 14px; }
.hh-contact a:hover { border-color: var(--rub) !important; }
.hh-src { font-size: 12px; color: var(--text-secondary); }
.hh-tbl td a { color: var(--text); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--rub) 60%, transparent); text-underline-offset: 3px; }
/* Note du profil pour un poste (lot 3f) ; « ? » et bord pointille = profil trop court pour bien juger. */
.hh-score { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 22px; padding: 0 6px; border-radius: 6px; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; vertical-align: middle; color: var(--nc); border: 1px solid color-mix(in srgb, var(--nc) 55%, transparent); background: color-mix(in srgb, var(--nc) 14%, transparent); cursor: help; }
.hh-score.is-faible { border-style: dashed; background: transparent; }
.hh-trace { font-size: 12px; white-space: normal; }
.hh-trace.is-couverte { color: var(--green); }
.hh-trace.is-partielle { color: var(--amber); }
.hh-trace.is-non_trouvee { color: var(--text-muted); }
.hh-pad { padding: 16px 18px 0; display: flex; flex-direction: column; gap: 12px; }

/* ── Petits ecrans (JobSearch bascule a 768 px) ───────── */
@media (max-width: 768px) {
  .hh-cols, .hh-sb, .hh-form2 { grid-template-columns: minmax(0, 1fr); }
  .hh-toolbar .hh-input { min-width: 0; flex-basis: 100%; }
  /* Candidats : recherche et « Ajouter » sur une ligne (111 px sur deux lignes avant, 31/10/2026). */
  .hh-toolbar:has(> .hh-ajout) { flex-wrap: nowrap; }
  .hh-toolbar:has(> .hh-ajout) .hh-input { flex: 1 1 0; }
  .hh-modal { padding: 0; }
  .hh-sheet { border-radius: 0; min-height: 100%; }
  /* La barre laterale devient la barre du bas : la note d'appel d'offres n'y a pas sa place, et le
     bouton de theme de la barre du haut (masque par JobSearch sur telephone) reste le seul acces au theme. */
  .hh-side-note { display: none; }
  .hh-ess { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hh-kpis5, .hh-kpis4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hh-ess.hh-ess3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hh-mnt { width: 100%; min-width: 90px; }
  /* Telephone : les deux nombres passent sous le poste, sur toute la largeur, au lieu d'ecraser son titre. */
  .hh-plist .orc-main { flex-basis: 100%; }
  .hh-orc-nums { width: 100%; margin-left: 0; }
  .hh-orc-nums > div { flex: 1; }
  .hh-kpis5 .hh-kpi:last-child { grid-column: 1 / -1; }
  .hh-hide-m { display: none; }
  /* Fiche de poste : la personne prend toute la largeur, ses boutons passent dessous (sinon deux boutons
     de 48 px ecrasent le nom sur une colonne de 70 px). */
  .hh-drawer .hh-prow > .hh-grow { flex-basis: 100%; }
  /* Suivi en une colonne : la carte prend toute la largeur, son menu s'ouvre vers la gauche (sinon il sort). */
  .hh-kb .hh-plus-menu { left: auto; right: 0; }
  .hh-box h2 { font-size: 13px !important; }
  .hh-hdr-btn { display: flex !important; }
  /* Bouton clair/sombre a 44 px, comme les icones d'en-tete de JobSearch (32 px de large avant). */
  #theme-toggle-header { width: 44px !important; height: 44px !important; min-width: 44px; }
  #guide-fab { bottom: 84px; left: 16px; }
  .hh-aide { left: 16px; bottom: 148px; }
}
@media (prefers-reduced-motion: reduce) { #guide-fab { animation: none !important; } }
/* Marge par mandat sur telephone (lot D) : une fiche par personne, deux colonnes, libelle au-dessus du montant
   (le tableau de 6 colonnes defilait de 263 px dans sa carte a 375 px). */
@media (max-width: 768px) {
  .hh-marge-tbl table, .hh-marge-tbl tbody, .hh-marge-tbl tr, .hh-marge-tbl td { display: block; width: auto; }
  .hh-marge-tbl thead { display: none; }
  .hh-marge-tbl tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
  .hh-marge-tbl td { border: 0 !important; padding: 0 !important; text-align: left !important; }
  .hh-marge-tbl td.hh-hide-m { display: none; }
  .hh-marge-tbl td:first-child { grid-column: 1 / -1; }
  .hh-marge-tbl td[data-l]::before { content: attr(data-l); display: block; font-size: 11px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .4px; margin-bottom: 2px; }
}
/* Priorites du tableau de bord (29/10/2026) : sur telephone, le bouton passe sous le texte (meme choix que la
   fiche de poste, lot A) ; le titre garde toute la largeur. */
@media (max-width: 768px) {
  .hh-prio li { flex-wrap: wrap; }
  .hh-prio li .hh-grow { flex: 1 1 100%; }
  .hh-prio li > .btn-secondary { margin-left: auto; }
}
/* Parametres (lot E, 29/10/2026) : sources des profils et echelle editables ; sur telephone, une source par carte. */
.hh-src-t td { padding: 4px 6px 4px 0; vertical-align: top; }
.hh-src-t .hh-input { width: 100%; min-width: 0; }
#hh-params .hh-box { margin-bottom: 12px; }
#hh-params .hh-sheet.hh-narrow { width: min(860px, 100%); }
@media (max-width: 768px) {
  .hh-src-t thead { display: none; }
  .hh-src-t tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px; padding: 8px 0; border-bottom: 1px solid var(--border); }
  .hh-src-t td { padding: 0; }
  .hh-src-t td:first-child { grid-column: 1 / -1; }
  .hh-src-t td:last-child { align-self: end; }
  .hh-src-t td[data-l]::before { content: attr(data-l); display: block; font-size: 11px; color: var(--text-muted); margin-bottom: 2px; }
}
/* Modele de CV (lot F) : le bouton « Déposer » est un label qui ouvre le choix du fichier. */
.hh-fichier { cursor: pointer; }
.hh-fichier input { display: none; }
#hh-p-modele summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; }
/* Croix de fermeture (29/10/2026, Yannick : « des croix au lieu du bouton Fermer ») et étoile « Prioritaire ». */
.hh-x { width: 40px; height: 40px; flex: none; display: inline-grid; place-items: center; padding: 0; border-radius: 8px; border: 1px solid transparent; background: transparent; color: var(--text-muted); cursor: pointer; }
.hh-x:hover, .hh-x:focus-visible { color: var(--text); background: var(--accent-soft); border-color: var(--border); }
.hh-x svg { width: 18px; height: 18px; }
.hh-etoile.on { color: #EAB308; }
.hh-etoile.on svg { fill: currentColor; }
.hh-dhead .hh-grow { min-width: 0; }
.hh-dhead > .hh-av { margin-top: 4px; }
@media (max-width: 768px) { .hh-x { width: 44px; height: 44px; } }
/* « ← Retour » de la fiche du candidat (31/10/2026, maquette validee, ecrans de detail de JobSearch) : au telephone
   seulement, en tete collante ; il remplace la croix. Ailleurs, la croix (ou le volet partage) reste. */
.hh-retour { display: none; }
@media (max-width: 768px) {
  .hh-drawer[data-cand] > .hh-in > .hh-dhead { position: sticky; top: 0; z-index: 3; align-items: center; gap: 10px; margin: -16px -20px 0; padding: calc(env(safe-area-inset-top, 0px) + 6px) 12px 6px; background: var(--bg-nav); border-bottom: 1px solid var(--border); }
  .hh-drawer[data-cand] > .hh-in > .hh-dhead > .hh-av, .hh-drawer[data-cand] > .hh-in > .hh-dhead .hh-x { display: none; }
  .hh-drawer[data-cand] > .hh-in > .hh-dhead h1 { font-size: 17px !important; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hh-drawer[data-cand] .hh-retour { display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 44px !important; padding: 0 14px 0 10px !important; border-radius: 10px !important; border: 1px solid var(--border); background: var(--bg-card); color: var(--text); font-size: 14px !important; font-weight: 600; }
  .hh-drawer[data-cand] > .hh-in > .hh-dhead .hh-acts > .btn-secondary { min-height: 44px !important; padding: 8px 14px !important; font-size: 15px !important; }
  /* « À lui proposer » : un poste = une ligne, « Positionner » a droite (5 grands boutons empiles avant). */
  .hh-srow.hh-srow-prop { flex-wrap: nowrap; }
  .hh-srow.hh-srow-prop .hh-grow { flex: 1; flex-basis: auto; min-width: 0; }
  .hh-srow.hh-srow-prop .hh-acts { width: auto; padding-left: 0; }
  /* Lignes de 152 a 192 px mesurees sur la vraie page : le metier revenait a la ligne (regle .card de main.min.css,
     en !important, d'ou le .card en tete) et le titre, un bouton, recevait la marge de 18 px de tous les boutons. */
  .card .hh-srow.hh-srow-prop .hh-srow-q { white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; }
  .hh-srow.hh-srow-prop .hh-namebtn { padding: 0 !important; min-height: 44px !important; text-align: left; }
  .hh-srow.hh-srow-prop .hh-acts > .btn-primary, .hh-srow.hh-srow-prop .hh-acts > .btn-secondary { flex: none; min-height: 44px !important; padding: 8px 14px !important; font-size: 15px !important; }
}
/* Candidats et Mandats en deux volets (29/10/2026) : la ligne choisie est marquée comme un poste choisi. */
.hh-clist .hh-crow.card-selected { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--bg-card)); }
.hh-drawer .hh-contact { margin: 8px 0 12px; }
.hh-drawer .hh-namebtn { text-align: left; }
/* Qui cherche sur ce poste (29/10/2026) : une ligne sous le titre, le menu « Confier » à droite. */
.hh-qui { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 4px 0 10px; font-size: 13px; }
.hh-qui .hh-plus { margin-left: auto; }
.hh-qui .hh-plus-menu { right: 0; left: auto; min-width: 200px; }
.hh-drawer .hh-prow .hh-check { align-items: flex-start; }
.hh-drawer .hh-su-btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 12px; }

/* Entretien du suivi et espace personnel du candidat (phase 7, 29/10/2026). */
.hh-su-ent { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius); }
.hh-portail-c p { margin: 0 0 4px; }
.hh-en-etat { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 99px; font-size: 11px; letter-spacing: 0; text-transform: none; background: var(--accent-soft); color: var(--text-muted); }
.hh-en-etat.is-ok { background: color-mix(in srgb, var(--green) 16%, transparent); color: var(--green); }
.hh-en-etat.is-att { background: color-mix(in srgb, var(--amber) 16%, transparent); color: var(--amber); }
.hh-en-date { font-size: 16px; color: var(--text); }
.hh-en-cr { list-style: none; margin: 0; padding: 0; }
.hh-en-cr li { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; border-top: 1px solid var(--border); font-size: 14px; }
.hh-en-cr li:first-child { border-top: 0; }
.hh-en-cr li.is-passe { color: var(--text-muted); text-decoration: line-through; }
.hh-en-form { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.hh-en-form[hidden], .hh-en-cr [hidden] { display: none; }
/* « Modifier » dans la fiche du candidat (31/10/2026, BUG-4315) : deux colonnes egales, aucun champ ne pousse la
   largeur du volet (une option longue, « Indisponible : déjà placé… », elargissait la premiere colonne). */
.hh-cand-volet .hh-form2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hh-cand-volet .hh-input { width: 100%; min-width: 0; box-sizing: border-box; }
.hh-cand-volet .hh-formwrap { display: flex; flex-direction: column; gap: 10px; }
.hh-cand-volet .hh-end { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; position: sticky; bottom: 0; padding: 10px 0; background: var(--bg); }
@media (max-width: 640px) { .hh-cand-volet .hh-form2 { grid-template-columns: minmax(0, 1fr); } }
/* Historique du candidat (31/10/2026, BUG-4315) */
.hh-histo { list-style: none; margin: 0; padding: 0; }
.hh-histo li { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 10px; padding: 6px 0; border-top: 1px solid var(--border); font-size: 13px; color: var(--text); }
.hh-histo li:first-child { border-top: 0; }
.hh-histo-q { color: var(--text-muted); font-size: 12px; white-space: nowrap; }
@media (max-width: 640px) { .hh-histo li { grid-template-columns: 1fr; gap: 2px; } }
/* Organiser l'entretien et vue semaine (31/10/2026, BUG-4315) */
.hh-eo-form { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.hh-eo-form [hidden], .hh-eo-form[hidden], .hh-eo [hidden] { display: none; }
.sem-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 6px 0; }
.sem-nav b { font-size: 14px; color: var(--text); }
.sem-b { min-width: 40px; min-height: 40px; border-radius: 8px; border: 1px solid var(--border); background: transparent; color: var(--text); font: inherit; font-size: 18px; cursor: pointer; }
.sem-b:disabled, .sem-cr:disabled { opacity: .4; cursor: default; }
.sem-g { display: grid; grid-template-columns: repeat(auto-fit, minmax(76px, 1fr)); gap: 6px; }
.sem-j { display: flex; flex-direction: column; gap: 4px; }
.sem-jt { font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: capitalize; }
.sem-cr { min-height: 36px; border-radius: 8px; border: 1px solid var(--border); background: transparent; color: var(--text); font: inherit; font-size: 13px; cursor: pointer; }
.sem-cr.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }
.sem-vide, .sem-rien { color: var(--text-muted); font-size: 12px; }
.hh-ag-jours { display: flex; flex-direction: column; gap: 6px; margin: 8px 0; }
.hh-ag-l { display: grid; grid-template-columns: 90px 1fr 1fr; gap: 8px; align-items: center; font-size: 13px; }
.hh-ag-p { display: flex; gap: 6px; align-items: center; }
.hh-ag-p .hh-input { min-width: 0; }
.hh-ag-del { display: flex; flex-wrap: wrap; gap: 4px 16px; }
@media (max-width: 640px) {
  .hh-ag-l { grid-template-columns: 1fr; }
  .sem-g { grid-template-columns: 1fr; }
  .sem-j { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .sem-jt { width: 100%; }
  .sem-cr { flex: 1 0 64px; min-height: 44px; }
  .sem-b { min-width: 44px; min-height: 44px; }
}
.hh-en-ligne { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, .9fr) 40px; gap: 8px; align-items: center; margin-bottom: 8px; }
.hh-en-form > .btn-secondary[data-en-plus] { align-self: flex-start; }
@media (max-width: 767px) {
  .hh-en-ligne { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px; }
  .hh-en-ligne [data-en-j] { grid-row: 1; grid-column: 1 / 3; }
  .hh-en-ligne [data-en-h] { grid-row: 2; grid-column: 1; }
  .hh-en-ligne [data-en-d] { grid-row: 2; grid-column: 2; }
  .hh-en-ligne .hh-x { grid-row: 1; grid-column: 3; width: 44px; height: 44px; }
  .hh-en-ligne .hh-input, .hh-en-cr .btn-secondary, .hh-en-form > .btn-secondary { min-height: 44px; }
}
/* Tout l'espace, comme JobSearch (30/10/2026, Yannick : « des marges de partout à droite ») : plus de largeur
   bornée à 1 400 px et centrée (58 px vides à gauche, une bande vide à droite sur un écran de 1 718 px). */
.app-shell > .main { max-width: none; margin-left: 0; margin-right: 0; }
@media (min-width: 1280px) {
  /* Le volet part juste sous la barre du haut (comme JobSearch) : le titre et ses échéances restent à gauche. */
  body.hh-split.hh-poste-ouvert .hh-page-head { margin-right: calc(var(--hh-pw) + 16px); }
  /* Suivi d'une personne et adéquation : par-dessus le volet de droite, même place, au lieu d'une fenêtre centrée. */
  body.hh-split .hh-modal.hh-volet { inset: auto; top: var(--hh-vt, 64px); right: 24px; bottom: 12px; left: auto; width: var(--hh-pw);
    padding: 0; display: block; z-index: 25; border-radius: 12px; }
  body.hh-split .hh-modal.hh-volet > .hh-scrim { display: none; }
  body.hh-split .hh-modal.hh-volet > .hh-sheet { width: 100%; min-height: 100%; border-radius: 12px; border-color: var(--border) !important; }
}
/* Fiche du candidat (30/10/2026, Yannick : « un tableau simple qui indique ce qui manque », sans marges inutiles).
   La ligne d'une personne en suivi s'ouvre d'un clic. */
.hh-srow-clic { cursor: pointer; border-radius: 8px; }
.hh-srow-clic:hover, .hh-srow-clic:focus-visible { background: var(--accent-soft); }
.hh-sheet.hh-fcand { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.hh-fc-head { display: flex; align-items: flex-start; gap: 8px; }
.hh-fc-nom { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hh-fc-nom h1 { font-size: 20px; margin: 0; color: var(--text); }
.hh-fc-acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.hh-fcand .hh-contact { margin: 0; }
.hh-adq-synth { font-size: 13px; color: var(--text-secondary); }
.hh-manque { width: 100%; border-collapse: collapse; font-size: 13px; }
.hh-manque th { text-align: left; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; color: var(--text-muted); padding: 6px 8px; border-bottom: 1px solid var(--border); }
.hh-manque td { padding: 8px; border-bottom: 1px solid var(--border); vertical-align: top; color: var(--text); }
.hh-manque tr.is-bloq td:first-child { box-shadow: inset 3px 0 0 var(--red); }
.hh-manque td:nth-child(2) { white-space: nowrap; }
.hh-ok { padding: 10px 12px; border-radius: 8px; background: color-mix(in srgb, var(--green) 12%, transparent); color: var(--text); font-size: 13px; }
/* CV en page (30/10/2026, comme JobSearch) : feuille blanche, rubriques en titres ; PDF et Word dans le volet. */
.hh-sheet.hh-cvv { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 10px; width: min(860px, 100%); }
.hh-cvv-zone { flex: 1; min-height: 0; }
.hh-cvv-page { background: #fff; color: #222; padding: 28px 32px; border-radius: 4px; box-shadow: 0 2px 12px rgba(0, 0, 0, .25); font: 13px/1.5 Arial, sans-serif; }
.hh-cvv-page h1 { font-size: 20px; margin: 0 0 6px; color: #111; }
.hh-cvv-page h2 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #0b5c73; margin: 16px 0 6px; padding-bottom: 3px; border-bottom: 1px solid #d5dde2; }
.hh-cvv-page p { margin: 0 0 4px; }
.hh-cvv-page ul { margin: 0 0 6px; padding-left: 18px; }
.hh-cvv-page li { margin: 0 0 2px; }
/* Feuille blanche dans les deux themes : le theme sombre colore p et li en gris clair (illisible sur blanc). */
.hh-cvv-page p, .hh-cvv-page li, .hh-cvv-page span { color: #222; }
.hh-cvv-row { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 12px; margin: 0 0 4px; }
.hh-cvv-row > span:first-child { color: #555; white-space: nowrap; }
.hh-cvv-pdf { width: 100%; height: calc(100vh - 200px); min-height: 480px; border: 0; border-radius: 4px; background: #fff; }
@media (max-width: 768px) { .hh-cvv-page { padding: 16px; } .hh-cvv-page, .hh-cvv-page * { font-size: 13px !important; } .hh-cvv-page h1 { font-size: 18px !important; } }
/* Plusieurs CV par candidat (30/10/2026) : une pastille par CV, puis Générer / Ajouter, puis le CV choisi. */
.hh-cvs { display: flex; gap: 8px; flex-wrap: wrap; }
.hh-cvs-p { font: inherit; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; min-height: 44px; padding: 6px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-card, transparent); color: var(--text); cursor: pointer; text-align: left; max-width: 100%; }
.hh-cvs-p b { font-size: 13px; }
.hh-cvs-p small { font-size: 11px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 240px; }
.hh-cvs-p.on { border-color: var(--hh-s-cv); box-shadow: inset 0 0 0 1px var(--hh-s-cv); }
.hh-cvs-acts, .hh-cvs-sel { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-start; }
.hh-cvs-acts:empty, .hh-cvs-sel:empty, .hh-cvs-res:empty { display: none; }
/* Une seule ligne : ses CV, Générer, Ajouter, Ouvrir, Supprimer ; le formulaire « Générer » et les messages passent
   dessous sur toute la largeur (31/10/2026). display: contents fait des boutons des elements de la ligne. */
.hh-cvs-barre { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.hh-cvs-barre .hh-cvs { margin: 0; }
.hh-cvs-barre .hh-cvs-acts, .hh-cvs-barre .hh-cvs-sel, .hh-cvs-barre .hh-cvs-boutons { display: contents; }
.hh-cvs-barre .hh-cvs-acts > p, .hh-cvs-barre .hh-cvs-gen { flex-basis: 100%; order: 10; }
.hh-cvs-boutons > *, .hh-cvs-barre .hh-cvs-sel > * { min-height: 44px; display: inline-flex; align-items: center; }
.hh-cvs-boutons .is-busy { opacity: .7; pointer-events: none; }
.hh-cvs-gen[hidden] { display: none; }
.hh-cvs-acts details { flex: 0 0 auto; min-width: 0; }
.hh-cvs-acts details[open] { flex-basis: 100%; order: 1; }
.hh-cvs-acts details > summary { list-style: none; display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; }
.hh-cvs-acts details > summary::-webkit-details-marker { display: none; }
.hh-cvs-acts details[open] > summary { margin-bottom: 8px; }
.hh-cvs-form { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px solid var(--border); border-radius: 10px; }
.hh-cvs-form .hh-end { margin-top: 0; }
.hh-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.hh-seg label { position: relative; }
.hh-seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.hh-seg span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--border); color: var(--text-secondary); font-size: 13px; }
.hh-seg input:checked + span { border-color: var(--accent); color: var(--text); font-weight: 600; box-shadow: inset 0 0 0 1px var(--accent); }
.hh-seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.hh-cvs-sel .is-danger { color: #ef4444; }
[data-theme="light"] .hh-cvs-sel .is-danger { color: #b91c1c; }
@media (max-width: 768px) { .hh-cvs-p { flex: 1 1 calc(50% - 4px); } .hh-cvs-p small { max-width: 100%; } .hh-seg span { min-height: 44px; } }
.hh-trouves summary { cursor: pointer; min-height: 36px; display: flex; align-items: center; font-size: 13px; color: var(--text-secondary); }
@media (max-width: 768px) {
  .hh-manque thead { display: none; }
  .hh-manque tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 8px; padding: 8px 0; border-bottom: 1px solid var(--border); }
  .hh-manque td { border: 0; padding: 0 8px; }
  .hh-manque td:first-child { grid-column: 1 / -1; }
  .hh-trouves summary, .hh-fc-acts > * { min-height: 44px; }
}
/* Compte rendu d'un appel (aide 2, 30/10/2026) : zones de saisie sur toute la largeur. */
.hh-cr { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--border); }
.hh-cr textarea, .hh-cr #hh-cr-next { width: 100%; box-sizing: border-box; }
/* Arguments pour le client (aide 3, 30/10/2026) : en tete du dossier, tableau de preuves (meme forme que « ce qui manque »). */
.hh-cr.hh-cr-haut { margin: 4px 0 14px; padding: 0 0 12px; border-top: 0; border-bottom: 1px solid var(--border); }
.hh-arg-acc { font-size: 14px; color: var(--text); margin: 8px 0; }
.hh-arg { margin: 6px 0 10px; }
@media (max-width: 768px) { .hh-arg tr { grid-template-columns: auto minmax(0, 1fr); } }
/* Message a la personne (aide 4, 30/10/2026) : lien de messagerie coupe quand le message est trop long. */
.hh-msg { margin-top: 10px; }
.hh-a-btn.is-off { opacity: .45; pointer-events: none; }
/* Analyse des manques (aide 5, 30/10/2026) : sur telephone, la question a poser prend toute la largeur. */
.hh-man { margin-top: 12px; }
@media (max-width: 768px) { .hh-man-tab td:nth-child(4) { grid-column: 1 / -1; } }
/* Simulation « Voir comme » (30/10/2026) : bandeau ambre, toujours visible, avec sa sortie. */
.eq-info.hh-simu { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: color-mix(in srgb, var(--amber) 16%, transparent); border-color: color-mix(in srgb, var(--amber) 50%, transparent); }
.eq-info.hh-simu .btn-secondary { margin-left: auto; }
/* Mon équipe (30/10/2026) : membres prévus sans accès, droits sur les montants, cartes de droite empilées. */
.eq-cote { display: flex; flex-direction: column; gap: 16px; }
.eq-droits { display: flex; flex-direction: column; gap: 2px; font-size: 12px; min-width: 110px; }
.eq-droits .hh-check { min-height: 24px; }
.eq-prevu .eq-m { color: var(--amber); }
@media (max-width: 768px) { .eq-droits .hh-check { min-height: 44px; } .eq-acts .btn-secondary { min-height: 44px; } }
/* Actions visibles au lieu du menu ⋮ (30/10/2026) : fiche du candidat et fiche de suivi. */
.hh-su-head { flex-wrap: wrap; }
.hh-su-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.hh-su-acts .btn-secondary, .hh-fc-acts .btn-secondary { padding: 5px 10px; }
.btn-secondary.is-danger { color: #ef4444; }
[data-theme="light"] .btn-secondary.is-danger { color: #b91c1c; }
/* E-mail a copier-coller (30/10/2026) : adresse, objet et message, chacun avec son bouton Copier.
   Au-dessus de la fiche de suivi, qui se rouvre juste apres l'enregistrement des creneaux. */
#hh-copie { z-index: 1010; }
body.hh-split #hh-copie.hh-volet { z-index: 30; }
.hh-sheet.hh-cp { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 12px; }
.hh-cp-l { display: flex; flex-direction: column; gap: 4px; }
.hh-cp-t { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; }
.hh-cp-t .btn-secondary { padding: 4px 12px; }
.hh-cp textarea { resize: vertical; font: 13px/1.5 inherit; }
/* Parametres en page complete et « Le cabinet » dans Mon equipe (31/10/2026, maquette validee par Yannick). */
.hh-ppage { max-width: 1180px; }
/* Mon equipe : « Le cabinet » prend la largeur de la grille des membres au-dessus, sinon une bande vide a droite. */
#hh-cabinet.hh-ppage { max-width: none; }
.hh-psous { margin: 0 0 14px; }
.hh-psep { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); margin: 26px 0 10px; }
.hh-ppage .hh-formwrap.hh-pgrid { padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.hh-ppage .hh-pgrid > .card { margin: 0; }
.hh-ppage .hh-pgrid > .hh-pfull { grid-column: 1 / -1; }
.hh-ag-relie { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--green, #047857); border-radius: 10px; background: color-mix(in srgb, var(--green, #047857) 8%, transparent); margin: 6px 0 4px; }
.hh-ag-relie > svg { width: 20px; height: 20px; color: var(--green, #047857); flex: none; }
.hh-ag-choix { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 8px 0; }
.hh-ag-opt { display: flex; flex-direction: column; gap: 6px; padding: 12px; border: 1px solid var(--border); border-radius: 10px; }
.hh-ag-opt .btn-primary { justify-content: center; margin-top: 4px; }
@media (max-width: 900px) {
  .hh-ppage .hh-formwrap.hh-pgrid, .hh-ag-choix { grid-template-columns: minmax(0, 1fr); }
}

/* ── Aide : panneau, parcours d'accueil, assistant, visite guidee (31/10/2026, public/js/aide.js) ── */
.hh-aide { display: flex; flex-direction: column; max-height: min(640px, calc(100vh - 170px)); }
.hh-aide .hh-sh h1 { font-size: 18px; margin: 0; }
/* !important : une regle mobile commune (main.min.css) remet overflow a visible et le contenu debordait du panneau. */
#hh-aide .hh-aide-corps { overflow-y: auto !important; flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 12px; padding-top: 8px; }
.hh-aide-corps > * { flex-shrink: 0; }
#hh-aide .hh-aide-h2 { font-size: 15px !important; font-weight: 700; margin: 4px 0 0; }
.hh-aide-parcours, .hh-aide-doc { border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; }
.hh-aide-parcours summary, .hh-aide-doc > summary { cursor: pointer; font-weight: 700; font-size: 14px; min-height: 32px; display: flex; align-items: center; gap: 6px; }
.hh-aide-parcours ol { list-style: none; margin: 6px 0 10px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.hh-aide-parcours li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.hh-aide-parcours li.ok { color: var(--text-secondary); }
.hh-aide-ck { flex: 0 0 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.hh-aide-parcours li.ok .hh-aide-ck { border-color: var(--success, #16a34a); background: var(--success, #16a34a); color: #fff; }
.hh-aide-go { min-height: 36px; padding: 4px 12px; font-size: 13px; }
.hh-aide-fil { display: flex; flex-direction: column; gap: 8px; max-height: 300px; overflow-y: auto; }
.hh-aide-m { padding: 8px 12px; border-radius: 12px; font-size: 14px; line-height: 1.45; max-width: 90%; white-space: pre-wrap; }
.hh-aide-m.moi { align-self: flex-end; background: var(--bg-hover, rgba(127, 127, 127, .12)); }
.hh-aide-m.ia { align-self: flex-start; border: 1px solid var(--border); }
.hh-aide-m .btn-secondary { margin-top: 8px; min-height: 36px; }
.hh-aide-sugg { display: flex; flex-direction: column; gap: 6px; }
.hh-aide-sugg .btn-secondary { text-align: left; justify-content: flex-start; min-height: 40px; font-size: 13px; }
.hh-aide-form { display: flex; gap: 8px; }
.hh-aide-form .hh-input { flex: 1; min-height: 44px; border-width: 2px; }
.hh-aide-pied { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.hh-aide-pied .hh-lien { color: var(--accent-text); }
.hh-aide-fiche { border-top: 1px solid var(--border); padding: 6px 0; }
.hh-aide-fiche summary { cursor: pointer; font-size: 14px; min-height: 32px; display: flex; align-items: center; }
.hh-aide-fiche p, .hh-aide-fiche ul { font-size: 13px; line-height: 1.5; color: var(--text-secondary); margin: 4px 0 6px; }
.hh-aide-fiche ul { padding-left: 18px; }
.hh-aide-vis { display: flex; }
.hh-aide .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Visite : carte centree comme dans JobSearch (.tour-voile de main.min.css, Yannick 31/10/2026) ; voile transparent,
   la rubrique presentee est entouree. */
.hh-visite-carte h2 { font-size: 18px; margin: 4px 0 8px; }
.hh-visite-carte p { font-size: 15px; line-height: 1.55; margin: 0 0 14px; }
.hh-visite-n { font-size: 12px; color: var(--text-secondary); }
.hh-visite-acts { flex-wrap: wrap; }
.hh-tour-cible { outline: 3px solid var(--accent-text); outline-offset: 2px; border-radius: 10px; z-index: 2950; }
.tab.hh-tour-cible, .sidebar-link.hh-tour-cible { position: relative; }
#guide-fab.hh-tour-cible { border-radius: 50%; outline-offset: 4px; }
@media (max-width: 768px) {
  .hh-aide { max-height: calc(100svh - 170px); }
  .hh-visite-acts .btn-secondary, .hh-visite-acts .btn-primary { min-height: 44px; }
}
/* Accueil en trois ecrans (public/js/aide.js) : la carte et le schema viennent de main.min.css (.ccm-*, JobSearch). */
.hh-ccm-p { margin: 0 0 16px; }
.hh-ccm-l { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 8px; }
.hh-ccm-l li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.hh-ccm-l li.ok { color: var(--text-secondary); }
.hh-ccm-l li.ok .hh-aide-ck { border-color: var(--success, #16a34a); background: var(--success, #16a34a); color: #fff; }
.hh-ccm-l .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hh-aide-vis { flex-wrap: wrap; gap: 8px; }
