/* Emploi Touramakhan — design repris de touramakhan-offres (static/styles.css) : barre latérale vert foncé, cartes,
   pastilles, filtres en rubriques. Même palette, mêmes composants ; s'y ajoutent les pages propres à Emploi. */
:root {
  --green-900: #0b3d33; --green-800: #0f5c4d; --green-700: #157060; --green-200: #bfe3d3; --green-100: #e5f0ec;
  --lime: #8fd3b6; --bg: #f5f6f2; --surface: #ffffff; --surface-2: #eef1ec; --text: #1b2421; --muted: #5d6662;
  --border: #dcdfd7; --warn: #8a5300; --warn-bg: #fff3dc; --danger: #a8322d; --danger-bg: #fde8e6; --ok: #1f6a3b;
  --ok-bg: #e3f3e7; --field-border: #8a938e; --focus: var(--green-700); --link: var(--green-700); --radius: 10px; --shadow: 0 1px 2px rgba(0,0,0,.05), 0 2px 8px rgba(0,0,0,.04);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #111614; --surface: #1a201e; --surface-2: #222a27; --text: #e6ece9; --muted: #9aa7a1; --border: #313b37;
    --green-100: #1b332c; --green-200: #285447; --warn: #f0b45a; --warn-bg: #3a2c12; --danger: #f08a82;
    --danger-bg: #3d1d1b; --ok: #79cf94; --ok-bg: #19301f; --field-border: #75827c; --focus: var(--lime); --link: var(--lime); --shadow: none; }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--text); }
a { color: var(--link); }
h1 { font-size: 22px; line-height: 1.25; margin: 0 0 4px; } h2 { font-size: 17px; margin: 18px 0 8px; } h3 { font-size: 15px; margin: 12px 0 6px; }
h2.h3 { font-size: 15px; margin: 12px 0 6px; }
.muted { color: var(--muted); } .small { font-size: 13px; } .error { color: var(--danger); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 8px; top: 8px; background: var(--surface); padding: 6px 10px; z-index: 60; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.sidebar :focus-visible, .language-switch :focus-visible { outline-color: var(--lime); }   /* fond vert foncé */

/* structure : barre latérale + contenu */
.shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.sidebar { background: var(--green-900); color: #e9f5ef; display: flex; flex-direction: column; padding: 16px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; padding: 4px 8px 16px; }
.brand b { display: block; font-size: 17px; font-weight: 500; } .brand small { display: block; color: var(--lime); font-size: 12px; letter-spacing: .04em; }
.brand-lg { color: var(--text); padding: 0; } .brand-lg small { color: var(--green-700); }
.logo { width: 30px; height: 30px; border-radius: 8px; background: var(--lime); flex: none; position: relative; }
.logo::after { content: ""; position: absolute; inset: 8px 7px; border-top: 3px solid var(--green-900); border-bottom: 3px solid var(--green-900); }
.nav { display: grid; gap: 2px; }
.nav a { color: #cfe6dc; text-decoration: none; padding: 9px 12px; border-radius: 8px; display: flex; justify-content: space-between; align-items: center; }
.nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav a.active { background: var(--green-800); color: #fff; box-shadow: inset 3px 0 0 var(--lime); }
.nav-label { padding: 0 12px 6px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #9fbfb2; }
.account a.nav-bottom { color: #cfe6dc; text-decoration: none; padding: 9px 12px; margin: 0 -8px; border-radius: 8px; font-size: 15px; }
.account a.nav-bottom:hover { background: rgba(255,255,255,.07); color: #fff; }
.account a.nav-bottom.active { background: var(--green-800); color: #fff; box-shadow: inset 3px 0 0 var(--lime); }
.nav .pill { background: var(--lime); color: var(--green-900); border-radius: 999px; padding: 0 7px; font-size: 12px; font-weight: 600; }
.account { margin-top: auto; border-top: 1px solid rgba(255,255,255,.12); padding: 12px 8px 0; font-size: 13px; display: grid; gap: 8px; }
.account p { margin: 0; } .account .muted { color: #9fbfb2; } .account a:not(.btn) { color: var(--lime); }
.account .who { overflow-wrap: anywhere; } .account .role { color: var(--lime); }
.account .btn, .account button { background: transparent; color: #e9f5ef; border-color: rgba(255,255,255,.25); justify-content: flex-start; text-align: start; }
.account .btn:hover, .account button:hover { background: rgba(255,255,255,.08); }
.account .btn-primary { background: var(--lime); border-color: var(--lime); color: var(--green-900); }
.account .btn-primary:hover { background: #a6dec6; }
.account form { margin: 0; }
main { padding: 22px clamp(16px, 3vw, 32px) 24px; min-width: 0; outline: none; display: flex; flex-direction: column; min-height: 100vh; }
main > .foot { margin-top: auto; }
.foot { border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; padding: 14px 0 0; margin-top: 32px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; } .foot p { margin: 0; }
.menu-toggle { display: none; }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 250px; z-index: 30; transform: translateX(-100%); }
  .sidebar.animate { transition: transform .2s, visibility .2s; }   /* seulement après un appui : pas d'animation au chargement */
  .js .sidebar:not(.open) { visibility: hidden; }   /* menu fermé : ni visible ni parcouru au clavier */
  .sidebar.open { transform: none; box-shadow: 0 0 30px rgba(0,0,0,.3); }
  html:not(.js) .sidebar { position: static; width: auto; height: auto; transform: none; }   /* sans JavaScript : menu en haut */
  .menu-toggle { display: block; position: fixed; top: 10px; right: 12px; z-index: 31; background: var(--green-900); color: #fff; border: 0; }
  html:not(.js) .menu-toggle { display: none; }
  main { padding-top: 56px; min-height: 0; }
  html:not(.js) main { padding-top: 22px; }
}

/* page de connexion (comme Offres) */
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: var(--green-900); }
.login-card { background: var(--surface); padding: 28px; border-radius: 14px; width: min(440px, 100%); display: grid; gap: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.login-card h1 { font-size: 20px; } .login-card p { margin: 0; } .login-card form p, .login-card form > div { margin: 0 0 10px; }
.login-card input:not([type=checkbox]):not([type=radio]) { max-width: none; }
.login-card form button[type=submit] { width: 100%; justify-content: center; }

/* contrôles */
input, select, textarea { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--field-border); border-radius: 8px; padding: 8px 10px; max-width: 100%; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], input[type=url], input[type=date],
input[type=file], input:not([type]), select, textarea { width: 100%; max-width: 32rem; }
textarea { min-height: 70px; }
input[type=checkbox], input[type=radio] { width: 16px; height: 16px; margin: 0; accent-color: var(--green-800); flex: none; }
button, .btn, input[type=submit] { font: inherit; font-weight: 500; cursor: pointer; border-radius: 8px; padding: 8px 13px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
button:hover, .btn:hover { background: var(--surface-2); }
button:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary, form button[type=submit]:not(.linklike):not(.btn):not(.btn-sm):not(.btn-danger):not(.star) { background: var(--green-800); border-color: var(--green-800); color: #fff; }
.btn-primary:hover, form button[type=submit]:not(.linklike):not(.btn):not(.btn-sm):not(.btn-danger):not(.star):hover { background: var(--green-700); }
.btn-sm { padding: 4px 9px; font-size: 13px; }
.btn-danger { color: var(--danger); border-color: var(--danger); background: var(--surface); }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--link); cursor: pointer; text-decoration: underline; }
form p, form > div { margin: 0 0 12px; }
label { display: block; font-weight: 500; margin-bottom: 4px; }
.helptext, form .helptext, form small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.errorlist { color: var(--danger); margin: 4px 0; padding-left: 18px; font-size: 14px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.row form, form.row { margin: 0; }
.spacer { flex: 1; }
.head { display: flex; gap: 12px; align-items: end; justify-content: space-between; flex-wrap: wrap; margin-bottom: 14px; }
.head p { margin: 4px 0 0; }

/* blocs */
.card, .hero, .tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card { padding: 14px 16px; }
.hero { padding: clamp(20px, 4vw, 34px); }
.hero h1 { font-size: clamp(22px, 3vw, 28px); margin-bottom: 10px; }
.hero .lead { font-size: 16px; color: var(--muted); max-width: 46rem; margin: 0 0 14px; }
section { margin-top: 24px; } section.hero { margin-top: 0; } .hero + section { margin-top: 28px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.tile { padding: 14px 16px; display: grid; gap: 6px; align-content: start; } .tile p { margin: 0; color: var(--muted); font-size: 14px; }
.tile h2, .tile h3 { font-size: 15px; margin: 0; }
.steps { padding-left: 22px; display: grid; gap: 6px; margin: 0; }
.doc-actions { gap: 6px; margin: 6px 0; } .doc-actions form, form.inline { display: inline; margin: 0; }
.badge { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; background: var(--green-100); color: var(--green-800); font-weight: 500; }
@media (prefers-color-scheme: dark) { .badge { color: var(--lime); } }
.badge.warn { background: var(--warn-bg); color: var(--warn); } .badge.bad { background: var(--danger-bg); color: var(--danger); }
.badge.ok { background: var(--ok-bg); color: var(--ok); } .badge.grey { background: var(--surface-2); color: var(--muted); }
.hero > .badge { margin-bottom: 10px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.table-wrap { overflow-x: auto; padding: 0; } .table-wrap table { min-width: 0; width: 100%; }
/* Largeur minimale réservée aux tableaux larges (G-STA-5) : les petits tableaux des cartes (Statistiques, tarifs
   des jetons) tiennent dans leur cadre ; les zones .wide défilent et prennent le focus (tabindex, aria-label). */
.table-wrap.wide table { min-width: 720px; }

/* messages */
.messages { margin: 16px; display: grid; gap: 8px; }
.js .messages { position: fixed; inset-block-start: max(16px, env(safe-area-inset-top)); inset-inline-end: 16px;
  z-index: 80; width: min(26rem, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto;
  margin: 0; padding: 2px; pointer-events: none; }
.notification { display: flex; align-items: start; gap: 12px; border: 1px solid var(--border);
  box-shadow: 0 6px 24px rgba(0,0,0,.16); pointer-events: auto; overflow-wrap: anywhere; }
.notification > span { flex: 1; min-width: 0; }
.notification-close { flex: none; padding: 2px 6px; border: 0; background: transparent; color: inherit;
  font-size: 22px; line-height: 1; }
@media print { .messages { display: none; } }
.msg { padding: 10px 14px; border-radius: 8px; background: var(--green-100); }
.msg.error { background: var(--danger-bg); color: var(--danger); } .msg.warning { background: var(--warn-bg); color: var(--warn); }
.msg.success { background: var(--ok-bg); color: var(--ok); }

/* recherche et filtres (comme les opportunités d'Offres) */
.hero-search { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 12px; max-width: 40rem; }
.hero-search input { flex: 1; min-width: 12rem; max-width: none; }
.searchbar { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 8px; margin-bottom: 10px; }
.searchbar input { max-width: none; }
@media (max-width: 700px) { .searchbar { grid-template-columns: 1fr; } .searchbar > button { justify-content: center; } }
.layout { display: grid; grid-template-columns: 260px 1fr; gap: 18px; align-items: start; }
@media (max-width: 1100px) { .layout { grid-template-columns: 1fr; } }
.filters { display: grid; gap: 12px; position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; }
.filters-toggle { display: none; }
@media (max-width: 1100px) {
  .filters { position: static; max-height: none; }
  .js .filters-toggle { display: block; width: 100%; text-align: left; }
  .js .filters:not(.open) > :not(.filters-toggle) { display: none; }
}
.filters fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 4px; min-width: 0; }
.filters legend, .filters .legend { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; margin-bottom: 2px; padding: 0; }
.filters .field { margin: 0; display: grid; gap: 2px; }
.filters input, .filters select { max-width: none; }
.filters > button[type=submit] { justify-content: center; }
.filters p { margin: 0; }
.checks { display: grid; gap: 2px; } .checks.scroll { max-height: 200px; overflow: auto; }
.checks label, .filters .check { display: flex; gap: 6px; font-size: 14px; align-items: center; font-weight: 400; margin: 0; }
.checks label.muted { color: var(--muted); }
.checks .count { color: var(--muted); font-size: 13px; }
.checks .group { font-size: 12px; color: var(--muted); font-weight: 600; margin: 6px 0 2px; }
.checks .group:first-child { margin-top: 0; }
.results-col { min-width: 0; margin: 0; }
.tools { margin-bottom: 10px; } .tools label.inline { margin: 0; font-weight: 400; } .tools select { width: auto; }
.criteria { justify-content: space-between; margin-bottom: 10px; flex-wrap: wrap; } .criteria p { margin: 0; }
.save-search { margin: 0; flex-wrap: nowrap; } .save-search input { width: 12rem; max-width: 40vw; padding: 4px 9px; font-size: 13px; }
.results { display: grid; gap: 10px; min-width: 0; }
.results.grid { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; align-items: start; }
.star { font-size: 17px; line-height: 1; padding: 4px 8px; background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.star[aria-pressed=true] { background: var(--green-100); border-color: var(--green-700); color: var(--green-800); }
.js .opp[data-href] { cursor: pointer; }

/* carte d'offre (comme .opp d'Offres) */
.opp { display: grid; gap: 6px; }
.opp:hover { border-color: var(--green-200); }
.opp h3 { margin: 0; font-size: 15px; line-height: 1.35; font-weight: 500; }
.opp h3 a { color: var(--text); text-decoration: none; }
.opp h3 a:hover { color: var(--link); text-decoration: underline; }
.meta { display: flex; gap: 6px 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.geo { font-size: 12px; color: var(--muted); border-left: 3px solid var(--lime); padding-left: 8px; }
.empty { padding: 20px; } .empty h2 { margin-top: 0; }
.pager { display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 16px; }

/* fiche */
.detail { padding: clamp(16px, 3vw, 26px); }
.detail h1 { margin-bottom: 6px; }
.detail .lead { font-size: 16px; margin: 0 0 12px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0; }
dl.kv { display: grid; grid-template-columns: 190px 1fr; gap: 6px 12px; margin: 14px 0; font-size: 14px; }
dl.kv dt { color: var(--muted); } dl.kv dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 600px) { dl.kv { grid-template-columns: minmax(88px, 32%) 1fr; gap: 4px 10px; } dl.kv dd { margin-bottom: 0; } }
.detail section { margin-top: 18px; border-top: 1px solid var(--border); padding-top: 6px; }
.description { overflow-wrap: anywhere; font-size: 14px; } .description table { display: block; overflow-x: auto; }

/* espace personnel et gestion : sous-navigation en onglets (comme .tabs d'Offres) */
.space { display: block; }
.space-nav { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 14px; flex-wrap: wrap; }
.space-nav a { padding: 8px 12px; border-radius: 8px 8px 0 0; color: var(--text); text-decoration: none; font-weight: 500; }
.space-nav a:hover { background: var(--surface-2); }
.space-nav a[aria-current=page] { background: var(--green-100); color: var(--green-800); box-shadow: inset 0 -2px 0 var(--green-800); }
@media (prefers-color-scheme: dark) { .space-nav a[aria-current=page] { color: var(--lime); box-shadow: inset 0 -2px 0 var(--lime); } }
.space-main { padding: clamp(14px, 3vw, 22px); min-width: 0; }
.space-main > h1:first-child, .space-main > h2:first-child { margin-top: 0; }

/* espace candidat */
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 10px; }
.chips a { padding: 3px 10px; border-radius: 999px; border: 1px solid var(--border); text-decoration: none; color: var(--text); font-size: 13px; }
.chips a[aria-current=page] { background: var(--green-800); border-color: var(--green-800); color: #fff; }
.badge.st-enregistree { background: var(--surface-2); color: var(--muted); }
.badge.st-en_preparation { background: var(--warn-bg); color: var(--warn); }
.badge.st-envoyee, .badge.st-entretien { background: var(--green-100); color: var(--green-800); }
.badge.st-retenue { background: var(--ok-bg); color: var(--ok); }
.badge.st-ecartee { background: var(--danger-bg); color: var(--danger); }
.track-box { margin: 12px 0; padding: 12px 14px; border-radius: 8px; background: var(--green-100); }
.track-box p { margin: 0 0 8px; } .track-box form { margin: 0; }
.history { padding-left: 18px; }
.history-list { list-style: none; margin: 0; padding: 4px 16px; } .history-list li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--border); }
.history-list li:last-child { border-bottom: 0; } .history-date { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cv-history { margin-top: 8px; } .cv-history .history-list { padding: 0; } .cv-history .cv-history-title { font-size: 13px; margin: 0; }
 .danger-zone { margin-top: 24px; border-top: 1px solid var(--border); padding-top: 14px; }
.resolve { padding: 14px; margin-bottom: 14px; } .resolve input { max-width: 26rem; }
.saved { padding-left: 18px; display: grid; gap: 6px; } .saved li { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .saved form { margin: 0; }
@media (max-width: 640px) {
  .table-wrap.stack table { min-width: 0; }
  .table-wrap.stack thead { display: none; }
  .table-wrap.stack tr { display: block; border-bottom: 1px solid var(--border); padding: 8px 0; }
  .table-wrap.stack td { display: block; border: 0; padding: 2px 0; }
  .table-wrap.stack td[data-label]::before { content: attr(data-label) " : "; color: var(--muted); font-size: 13px; }
  .table-wrap.stack td.num { text-align: left; } .table-wrap.stack td.num br { display: none; } .table-wrap.stack td.num a { margin-left: 8px; }
}

/* compteurs (gestion, tableau de bord) */
.counters { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 12px 0 16px; }
.counter { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; }
.counter b { display: block; font-size: 24px; font-variant-numeric: tabular-nums; color: var(--green-800); }
@media (prefers-color-scheme: dark) { .counter b { color: var(--lime); } }
.counter span { font-size: 12px; color: var(--muted); }
.counter a { text-decoration: none; }
.counter span.counter-sub { display: block; margin-top: 2px; font-size: 11.5px; }
.counter span:not(.counter-sub) { display: block; color: var(--text); font-size: 12.5px; }
.add-candidate { margin: 10px 0 16px; } .add-candidate summary { cursor: pointer; font-weight: 600; }
.opp .row select, .opp .row input { max-width: 14rem; }
pre.code { background: var(--surface-2); padding: 10px; border-radius: 8px; overflow: auto; font-size: 12px; }
.entrance { max-width: 30rem; margin: 12px auto; padding: 24px; } .entrance h1 { font-size: 20px; }

/* fiche en panneau latéral (comme .drawer d'Offres) */
.drawer { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 40; display: flex; justify-content: flex-end; }
.drawer-panel { background: var(--bg); width: min(760px, 100%); height: 100%; overflow: auto; padding: 16px 20px 40px; outline: none; }
.drawer-panel > .head { position: sticky; top: -16px; background: var(--bg); padding: 4px 0 10px; margin: 0 0 6px; z-index: 1; align-items: center; }
.drawer-panel > .head h2 { margin: 0; }
.drawer-panel .detail { box-shadow: none; }
body.drawer-open { overflow: hidden; }

/* sources et collecte (gestion) */
.plans h2 { margin-top: 0; }
.plan-list { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 6px; }
.plan-list li { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.plan-list li > span:first-child { flex: 1; min-width: 14rem; }
.plan-list form { margin: 0; }
.sources-setup { display: grid; gap: 12px; }
.source-card { display: grid; gap: 8px; scroll-margin-top: 16px; }
.source-card h3 { margin: 0; font-size: 16px; }
.source-card:target { border-color: var(--green-700); box-shadow: 0 0 0 2px var(--green-200); }
.steps-line { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; counter-reset: step; }
.steps-line li { counter-increment: step; font-size: 13px; padding: 3px 10px 3px 6px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.steps-line li::before { content: counter(step); display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%;
  margin-right: 6px; font-size: 11px; font-weight: 600; background: var(--border); color: var(--text); }
.steps-line li.done { background: var(--ok-bg); color: var(--ok); } .steps-line li.done::before { content: "✓"; background: var(--ok); color: #fff; }
.steps-line li.current { background: var(--warn-bg); color: var(--warn); font-weight: 600; } .steps-line li.current::before { background: var(--warn); color: #fff; }
.next-step { margin: 0; color: var(--warn); }
.setup summary { cursor: pointer; font-weight: 500; font-size: 14px; }
.setup-form { display: grid; grid-template-columns: 1.2fr 2fr .7fr auto; gap: 8px; align-items: end; margin: 8px 0 0; }
.setup-form > div { margin: 0; } .setup-form label { font-size: 12px; color: var(--muted); }
.setup-form input, .setup-form select { max-width: none; }
@media (max-width: 900px) { .setup-form { grid-template-columns: 1fr; } }
.source-card .actions { margin: 0; } .source-card .actions form { margin: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.results-mini p { margin: 0; }
.legend { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; margin: 0 0 2px; }

/* refonte 2026-11 : Mon compte, envoi d'une candidature */
.account-rows { display: grid; gap: 10px; max-width: 920px; }
.row-item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; }
.row-item p { margin: 2px 0 0; }
.send-box { background: var(--surface-2); border-radius: var(--radius); padding: 10px 14px; margin: 8px 0; }
.send-box p { margin: 0 0 6px; }
.nav .pill.warn { background: var(--warn-bg); color: var(--warn); }
.report { margin-top: 18px; border-top: 1px solid var(--border); padding-top: 10px; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--border); margin: 0 0 14px; }
.tabs a { padding: 8px 14px; text-decoration: none; color: var(--muted); }
.tabs a[aria-current="page"] { color: var(--green-800); border-bottom: 2px solid var(--green-800); font-weight: 600; }


/* Statistiques (refonte, lot 3) : graphiques SVG rendus côté serveur, aucun style en ligne (CSP). */
.chart { margin: 8px 0 4px; }
.chart svg { width: 100%; height: auto; display: block; }
.chart .grid { stroke: var(--border); stroke-width: 1; }
.chart .axis { stroke: var(--muted); stroke-width: 1; }
.chart .tick { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart .mark { fill: var(--green-700, #1f6b4f); }
.chart .hit { fill: transparent; }
.chart .bar:hover .mark { fill: var(--green-800); }
.chart .bar:hover .hit { fill: var(--surface-2); }
@media (prefers-color-scheme: dark) { .chart .mark { fill: var(--lime); } .chart .bar:hover .mark { fill: #b5e6cf; } }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; margin: 12px 0; }
.stat-grid > .card { margin: 0; }
.stat-block table td, .stat-block table th { padding: 5px 6px; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.share-cell { width: 110px; }
.share-bar { width: 56px; height: 6px; vertical-align: middle; }
.share-bar .track { fill: var(--surface-2); }
.share-bar .fill { fill: var(--green-700, #1f6b4f); }
@media (prefers-color-scheme: dark) { .share-bar .fill { fill: var(--lime); } }
.funnel { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 8px; }
.funnel li { display: grid; grid-template-columns: minmax(160px, 1fr) 2fr 60px; align-items: center; gap: 10px; font-size: 14px; }
.funnel .share-bar { width: 100%; height: 8px; }
.funnel b { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .funnel li { grid-template-columns: 1fr 60px; } .funnel .share-bar { grid-column: 1 / -1; grid-row: 2; } }
@media (max-width: 640px) { .chart { overflow-x: auto; } .chart svg { min-width: 620px; } .chart figcaption { min-width: 0; } }

/* CV et lettres (refonte, lot 4) : éditeur intégré. */
.editor-form { display: grid; gap: 10px; }
.editor-toolbar { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; position: sticky; top: 0; z-index: 2;
  background: var(--surface); padding: 6px 0; border-bottom: 1px solid var(--border); }
.editor-toolbar .btn { padding: 4px 9px; font-size: 13px; min-height: 32px; }
.editor-toolbar .sep { width: 1px; height: 22px; background: var(--border); margin: 0 4px; }
.editor-page { min-height: 480px; max-width: 794px; width: 100%; margin: 0 auto; padding: 40px 48px; background: #fff; color: #1b2421;
  border: 1px solid var(--border); border-radius: 4px; box-shadow: var(--shadow); line-height: 1.5; font-size: 15px; outline: none; }
.editor-page:focus { border-color: var(--green-700); }
.editor-page h2 { font-size: 20px; margin: 18px 0 6px; color: #0f5c4d; }
.editor-page h3 { font-size: 16px; margin: 14px 0 4px; }
.editor-page p { margin: 0 0 8px; }
.editor-actions { position: sticky; bottom: 0; background: var(--surface); padding: 8px 0; border-top: 1px solid var(--border); }
textarea.editor-fallback { width: 100%; font: inherit; }
.versions { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.versions li { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 14px; }
.steps { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 10px; counter-reset: step; }
.steps > li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; }
.steps > li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 26px; height: 26px;
  border-radius: 50%; background: var(--green-100); color: var(--green-800); font-weight: 600; font-size: 13px; }
.steps > li.done::before { content: "✓"; background: var(--green-800); color: #fff; }
.steps form.row { margin: 4px 0 0; }
@media (max-width: 640px) { .editor-page { padding: 20px 16px; min-height: 360px; } }
@media (prefers-color-scheme: dark) { .steps > li::before { background: var(--surface-2); color: var(--lime); } }
.editor-toolbar[hidden], .editor-page[hidden] { display: none; }
.editor-page strong, .editor-page b { font-weight: 700; }
.editor-page h2, .editor-page h3 { font-weight: 700; }
.editor-page h3 { text-transform: uppercase; letter-spacing: .03em; font-size: 13.5px; color: #0f5c4d; border-bottom: 1px solid #d7e2dc; padding-bottom: 2px; }
.editor-toolbar b { font-weight: 800; }
.card fieldset.stack { border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 12px 10px; margin: 0; }
.card fieldset.stack legend { padding: 0 4px; font-size: 14px; }
/* Source proposée : validation ou rejet depuis sa page (G-PRP-1). */
.to-validate .validate-form { display: grid; gap: 8px; margin-top: 12px; max-width: 640px; }
.to-validate fieldset.stack label { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; min-height: 32px; }
.to-validate .validate-form button { justify-self: start; }
/* Jetons (refonte, lot 5) */
.pack-row { display: grid; grid-template-columns: 2fr 1fr 1fr 130px 96px 120px; gap: 8px; align-items: center; padding: 6px 0;
  border-bottom: 1px solid var(--border); }
.pack-row input:not([type=checkbox]), .pack-row select { width: 100%; margin: 0; }
.pack-row .pack-note { grid-column: 1 / -1; margin: 0; }
.pack-row label { display: flex; gap: 4px; align-items: center; margin: 0; font-weight: 400; }
.pack-head span { text-align: left; }
.pack-row .btn { width: 100%; }
.pack-head { border-bottom: 0; padding-bottom: 0; text-transform: uppercase; letter-spacing: .04em; font-size: 11.5px; }
@media (max-width: 760px) { .pack-row { grid-template-columns: 1fr 1fr; } .pack-head { display: none; } }
/* Assistant (refonte, lot 6) */
.badge.danger { background: var(--danger-bg); color: var(--danger); }
.corrections { list-style: none; padding: 0; margin: 8px 0 12px; display: grid; gap: 8px; }
.corrections label { display: block; font-weight: 400; line-height: 1.5; }
.corrections del { color: var(--danger); } .corrections ins { color: var(--ok); text-decoration: none; font-weight: 600; }
.assist { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
/* Support (refonte, lot 7) */
.chat { display: grid; gap: 10px; }
.bubble { max-width: 640px; padding: 10px 14px; border-radius: 14px; font-size: 14.5px; }
.bubble p { margin: 0 0 6px; } .bubble p:last-child { margin-bottom: 0; }
.bubble.bot { background: var(--surface-2); border-top-left-radius: 4px; }
.bubble.me { background: var(--green-800); color: #fff; justify-self: end; border-top-right-radius: 4px; }
.chat-input { display: flex; gap: 8px; } .chat-input input { flex: 1; margin: 0; }
/* Filtres dynamiques (Mes offres) */
.live-filters .live-hide { display: none; }
.results-col[aria-busy="true"] .results { opacity: .55; transition: opacity .15s; }
/* Versions */
.account a.version { color: inherit; text-decoration: none; } .account a.version:hover { text-decoration: underline; }
.changelog h3 { font-size: 15px; margin: 14px 0 4px; } .changelog ul { margin: 4px 0 8px; }
.changelog.current { border-color: var(--green-700); }

/* Suivi des candidatures envoyées (1.10.0) */
.todo-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.todo-list li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px 10px; font-size: 14px; }
.todo-list .due-date { font-weight: 600; white-space: nowrap; }
.todo-list form { margin: 0; }
@media (max-width: 640px) {
  .todo-list li { grid-template-columns: 1fr auto; }
  .todo-list .todo-text { grid-column: 1 / -1; grid-row: 2; }
}
.todo-list .due-retard .due-date, .todo-list li.due-retard .due-date { color: var(--danger); }
.todo-list li.due-aujourdhui .due-date { color: var(--warn); }
.track-line { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 10px 0 4px; }
.track-card > p.small { margin: 4px 0; }
.card.opp + .card.opp { margin-top: 12px; }
.track-line li { font-size: 13px; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.track-line li.done { background: var(--green-100); color: var(--green-800); }
.track-line li.current { background: var(--surface); color: var(--green-800); box-shadow: inset 0 0 0 1.5px var(--green-800); font-weight: 600; }
.track-line li.done.ok { background: var(--ok-bg); color: var(--ok); font-weight: 600; }
.track-line li.done.ko { background: var(--danger-bg); color: var(--danger); font-weight: 600; }
.next-action { gap: 8px; align-items: center; margin: 2px 0 10px; }
.track-actions { gap: 8px; align-items: center; }
.track-actions form { margin: 0; }
.pop > summary { list-style: none; cursor: pointer; display: inline-block; }
.pop > summary::-webkit-details-marker { display: none; }
.pop[open] > summary { margin-bottom: 6px; }
.pop form { gap: 8px; align-items: center; }
.track-links { margin: 8px 0 0; }
.chips .count { opacity: .7; font-size: 12px; margin-left: 2px; }

.error-page { max-width: 640px; margin: 10vh auto; padding: 0 16px; }

/* ===== Pages du visiteur : présentation reprise d'Offres 2.20 (2026-11-05), aucun comportement modifié ===== */
.inline-icon { display: inline-block; vertical-align: -.18em; flex-shrink: 0; }
input[type=checkbox] { accent-color: var(--green-800); flex-shrink: 0; }

/* En-tête : titre, une phrase, une ligne de chiffres. */
.page-header { align-items: end; margin-bottom: 10px; gap: 12px; }
.page-header > div { min-width: 0; flex: 1 1 340px; }
.page-description { color: var(--muted); margin: 4px 0 0; max-width: 74ch; font-size: 13px; }
.page-metrics { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0 0 6px; }
.metric { display: inline-flex; flex-direction: row-reverse; align-items: baseline; gap: 6px; margin: 0; }
.metric dt { color: var(--muted); font-size: 13px; }
.metric dd { margin: 0; font-size: 15px; font-weight: 600; color: var(--green-800); font-variant-numeric: tabular-nums; }
.freshness { margin: 0 0 14px; }

/* Recherche : un libellé au-dessus de chaque champ. */
.searchbar.card { padding: 0; background: none; border: 0; box-shadow: none; margin-bottom: 12px; gap: 12px; align-items: end;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) auto; }
.search-field { display: grid; gap: 7px; min-width: 0; margin: 0; font-size: 12px; font-weight: 600; color: var(--muted); }
.search-field input { width: 100%; min-width: 0; max-width: none; font-weight: 400; font-size: 14px; color: var(--text); }
.searchbar.card > button { min-height: 42px; justify-content: center; }
@media (max-width: 1100px) { .searchbar.card { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .searchbar.card { grid-template-columns: minmax(0, 1fr); } }

/* Barre d'outils des résultats et filtres. */
.results-toolbar { margin: 0 0 16px; padding: 0 0 12px; border-bottom: 1px solid var(--border); gap: 10px; }
.results-toolbar .result-count { color: var(--text); font-weight: 600; }
.filters.card { padding: 6px 16px 16px; box-shadow: none; }
.filters fieldset + fieldset { border-top: 1px solid var(--border); padding-top: 12px; }
.filters legend { padding-top: 4px; }
.filters select { width: 100%; }
.checks label { display: grid; grid-template-columns: 16px minmax(0, 1fr) max-content; gap: 8px; align-items: start;
  line-height: 1.5; min-height: 30px; padding: 2px 0; }
.checks .check-label-text { min-width: 0; overflow-wrap: anywhere; }
.checks .count { white-space: nowrap; font-variant-numeric: tabular-nums; }
.checks input[type=checkbox] { width: 14px; height: 14px; margin: 3px 0 0; }

/* Carte d'offre : pastilles, titre, lieu et clôture avec icônes, rattachement, source sous un filet. */
.results { gap: 16px; }
.opp { position: relative; padding: 16px 18px; gap: 8px; transition: border-color .15s, box-shadow .15s; }
.opp:hover { border-color: var(--green-700); box-shadow: var(--shadow); }
.opp h3 { font-size: 16px; font-weight: 600; line-height: 1.45; }
.opp > .meta:last-child { border-top: 1px solid var(--border); padding-top: 12px; }
.opp > .row:first-child:has(.star) { padding-right: 50px; min-height: 44px; }
.opp > .row:first-child .star { position: absolute; top: 16px; right: 18px; }
.badge { padding: 3px 9px; line-height: 1.4; }
.star { font-size: 25px; line-height: 1; min-width: 44px; min-height: 44px; padding: 6px; border-radius: 10px; color: var(--green-800);
  display: inline-grid; place-items: center; text-decoration: none; }
.star:focus-visible { outline: 3px solid var(--green-700); outline-offset: 2px; }
@media (max-width: 700px) { .opp { padding: 16px; } .opp > .row:first-child .star { top: 16px; right: 16px; } }
@media (prefers-color-scheme: dark) { .metric dd, .star, .star[aria-pressed=true] { color: var(--lime); } }
@media (prefers-reduced-motion: reduce) { .opp { transition: none; } }

/* Choix de la langue (comme Offres) : bas de la barre latérale sur ordinateur, haut de l'écran sur mobile. */
.language-switch { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; }
.language-switch label { margin: 0; font-weight: 400; }
.language-switch select { width: auto; font-size: 13px; padding: 4px 8px; }
@media (min-width: 861px) {
  .language-switch { position: fixed; left: 0; bottom: 0; width: 240px; z-index: 31; justify-content: space-between;
    padding: 10px 20px 14px; background: var(--green-900); border-top: 1px solid rgba(255,255,255,.12); color: #cfe6dc; }
  .language-switch select { background: var(--green-800); color: #fff; border-color: rgba(255,255,255,.25); }
  .sidebar { padding-bottom: 64px; }
}
@media (max-width: 860px) {
  .language-switch { position: absolute; top: 10px; left: 16px; min-height: 40px; }
}

/* Arabe : lecture de droite à gauche (dir="rtl"). La grille place déjà la barre latérale à droite ; les positions
   et bordures physiques sont inversées ici. */
[dir=rtl] .nav a.active, [dir=rtl] .account a.nav-bottom.active { box-shadow: inset -3px 0 0 var(--lime); }
[dir=rtl] .skip { left: auto; right: -999px; } [dir=rtl] .skip:focus { right: 8px; }
[dir=rtl] .geo { border-left: 0; padding-left: 0; border-right: 3px solid var(--lime); padding-right: 8px; }
[dir=rtl] .steps, [dir=rtl] .errorlist, [dir=rtl] .history, [dir=rtl] .saved { padding-left: 0; padding-right: 22px; }
[dir=rtl] th, [dir=rtl] td, [dir=rtl] .js .filters-toggle { text-align: right; }
[dir=rtl] .num, [dir=rtl] .funnel b { text-align: left; }
[dir=rtl] .chips .count { margin-left: 0; margin-right: 2px; }
[dir=rtl] .opp > .row:first-child:has(.star) { padding-right: 0; padding-left: 50px; }
[dir=rtl] .opp > .row:first-child .star { right: auto; left: 18px; }
@media (max-width: 700px) { [dir=rtl] .opp > .row:first-child .star { left: 16px; } }
@media (min-width: 861px) { [dir=rtl] .language-switch { left: auto; right: 0; } }
@media (max-width: 860px) {
  [dir=rtl] .sidebar { inset: 0 0 0 auto; transform: translateX(100%); }
  [dir=rtl] .sidebar.open { transform: none; }
  [dir=rtl] .menu-toggle { right: auto; left: 12px; }
  [dir=rtl] .language-switch { left: auto; right: 16px; }
}

/* Éditeur mis en page (2026-11-05) : modèles, couleur, police, photo ; feuille A4 de static/css/cv.css. */
.design-panel { border: 1px solid var(--border); border-radius: var(--radius); padding: 6px 12px 10px; }
.design-panel > summary { cursor: pointer; font-weight: 600; padding: 4px 0; }
.tpl-choice { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 4px 0 0; }
.tpl-choice legend { margin-bottom: 4px; }
.tpl-card { display: grid; justify-items: center; gap: 4px; cursor: pointer; font-size: 12.5px; }
.tpl-card input { position: absolute; opacity: 0; pointer-events: none; }
.tpl-card:has(input:checked) .tpl-thumb { outline: 2px solid var(--green-700); outline-offset: 2px; }
.tpl-card input:focus-visible + .tpl-thumb { outline: 2px dashed var(--green-700); outline-offset: 2px; }
.tpl-thumb { position: relative; display: block; width: 64px; height: 88px; background: #fff; border: 1px solid #cfd6d3; border-radius: 4px; overflow: hidden; }
.tpl-thumb i { position: absolute; left: 8px; right: 8px; height: 3px; background: #c9d2ce; border-radius: 2px; }
.tpl-thumb i:nth-child(1) { top: 10px; height: 6px; right: 26px; background: #1b2421; }
.tpl-thumb i:nth-child(2) { top: 24px; background: #0f5c4d; height: 2px; }
.tpl-thumb i:nth-child(3) { top: 34px; bottom: 30px; height: auto; background: repeating-linear-gradient(#c9d2ce 0 3px, transparent 3px 8px); }
.tpl-thumb i:nth-child(4) { top: 64px; bottom: 8px; height: auto; background: repeating-linear-gradient(#c9d2ce 0 3px, transparent 3px 8px); }
.tt-moderne i:nth-child(1) { top: 0; left: 0; right: 0; height: 22px; background: #1f4e8c; border-radius: 0; }
.tt-moderne i:nth-child(2) { top: 28px; background: #e7eef8; height: 5px; }
.tt-colonnes::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 21px; background: #e6f1ec; }
.tt-colonnes i { left: 26px; }
.tt-sobre i:nth-child(2) { background: #1b2421; height: 1px; }
.tt-impact i:nth-child(1) { top: 0; left: 0; right: 0; height: 26px; background: #0b0e1a; border-radius: 0; }
.tt-impact i:nth-child(2) { top: 22px; left: 6px; right: 6px; height: 9px; border-radius: 3px;
  background: linear-gradient(to right, #c6ff3d 0 24%, transparent 24% 26%, #fff 26% 49%, transparent 49% 51%, #fff 51% 74%, transparent 74% 76%, #3d2bff 76%); box-shadow: 0 0 0 1px #0b0e1a inset; }
.tt-impact i:nth-child(3) { right: 26px; }
.tt-impact::after { content: ""; position: absolute; right: 6px; top: 36px; width: 16px; height: 30px; background: #f1f2f8; border-radius: 3px; }
.tt-editorial i:nth-child(1) { top: 12px; height: 9px; right: 18px; background: #0b0e1a; }
.tt-editorial i:nth-child(2) { top: 27px; height: 1px; background: #0b0e1a; }
.tt-editorial i:nth-child(3) { top: 36px; right: 24px; }
.tt-editorial::after { content: ""; position: absolute; right: 6px; top: 36px; bottom: 8px; width: 1px; background: #c9d2ce; }
.tt-executive i:nth-child(1) { top: 0; left: 0; right: 0; height: 20px; background: #14234b; border-radius: 0; }
.tt-executive i:nth-child(2) { top: 20px; left: 0; right: 0; height: 5px; background: #f1f2f8; border-radius: 0; }
.tt-executive i:nth-child(3), .tt-executive i:nth-child(4) { left: 26px; }
.tt-executive::after { content: ""; position: absolute; left: 20px; top: 32px; bottom: 8px; width: 1px; background: #c9d2ce; }
.tt-timeline i:nth-child(1) { left: 12px; background: #0b0e1a; }
.tt-timeline::before { content: ""; position: absolute; left: 6px; top: 8px; width: 3px; height: 12px; background: #3d2bff; }
.tt-timeline i:nth-child(3), .tt-timeline i:nth-child(4) { left: 16px; }
.tt-timeline::after { content: ""; position: absolute; left: 10px; top: 34px; bottom: 8px; width: 2px;
  background: repeating-linear-gradient(#3d2bff 0 4px, #dfe1ec 4px 16px); }
.tpl-help { margin: 4px 0 6px; min-height: 1.2em; }
.design-row { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: flex-start; }
.design-row > [hidden] { display: none; }
.design-row select { min-height: 34px; }
.swatches { display: flex; gap: 6px; border: 0; padding: 0; margin: 0; flex-wrap: wrap; }
.swatches legend { margin-bottom: 4px; width: 100%; }
.swatch { width: 26px; height: 26px; border-radius: 50%; cursor: pointer; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--border); }
.swatch input { position: absolute; opacity: 0; pointer-events: none; }
.swatch:has(input:checked) { box-shadow: 0 0 0 2px var(--green-700); }
.swatch:has(input:focus-visible) { outline: 2px dashed var(--green-700); outline-offset: 2px; }
.sw-vert { background: #0f5c4d; } .sw-bleu { background: #1f4e8c; } .sw-electrique { background: #3d2bff; } .sw-bordeaux { background: #7a1f3d; }
.sw-ardoise { background: #334155; } .sw-orange { background: #b45309; } .sw-violet { background: #5b21b6; }
.photo-controls .row { gap: 6px; align-items: center; margin: 2px 0; }
.photo-controls input[type=file] { max-width: 240px; font-size: 13px; }
.photo-controls p { margin: 2px 0 0; max-width: 420px; }
.editor-toolbar select { min-height: 32px; font-size: 13px; max-width: 190px; }
.editor-toolbar .mono { font-family: "JetBrains Mono", monospace; font-size: 12px; }
.editor-toolbar .btn-soft { background: var(--green-100); }
.tb-menu { position: relative; }
.tb-menu > summary { list-style: none; cursor: pointer; }
.tb-menu > summary::-webkit-details-marker { display: none; }
.tb-pop { position: absolute; top: calc(100% + 4px); inset-inline-start: 0; z-index: 5; display: flex; gap: 6px; align-items: center; padding: 8px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); white-space: nowrap; }
.tb-pop.tb-col { flex-direction: column; align-items: stretch; }
.tb-pop .btn.small { min-height: 30px; padding: 3px 9px; font-size: 13px; justify-content: flex-start; text-align: start; }
.tb-pop .dot { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--border); cursor: pointer; padding: 0; }
.tcs-accent { background: #0f5c4d; } .tcs-gris { background: #6b7280; } .tcs-rouge { background: #b91c1c; } .tcs-vert { background: #15803d; }
.tcs-bleu { background: #1d4ed8; } .tcs-orange { background: #c2410c; }
.hls-jaune { background: #fef08a; } .hls-vert { background: #bbf7d0; } .hls-bleu { background: #bfdbfe; } .hls-rose { background: #fbcfe8; }
.tb-a { font-weight: 800; border-bottom: 3px solid #b91c1c; line-height: 1; }
.tb-hl { background: #fef08a; color: #1b2421; padding: 0 3px; border-radius: 2px; }
.find-bar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 6px; border: 1px solid var(--border); border-radius: var(--radius); }
.find-bar[hidden] { display: none; }
.find-bar input { min-height: 32px; max-width: 220px; }
.sheet-wrap { overflow-x: auto; padding: 18px 0; background: var(--surface-2, #eef1ef); border-radius: var(--radius); }
.sheet-wrap[hidden], .sheet-note[hidden] { display: none; }
.sheet-wrap .cv-sheet { min-height: 1123px; box-shadow: 0 2px 14px rgba(0, 0, 0, .14); }
.sheet-wrap .cv-sheet::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 3;
  background: repeating-linear-gradient(to bottom, transparent 0, transparent 1121px, rgba(220, 38, 38, .45) 1121px, rgba(220, 38, 38, .45) 1123px); }
.cv-body { outline: none; min-height: 600px; }
.cv-body:focus-visible { outline: none; }
.sheet-wrap .cv-break { display: block; height: 0; border-top: 2px dashed #94a3b8; margin: 14px -48px; }
.editor-count { margin-inline-start: auto; }
body.editor-fullscreen { overflow: hidden; }
body.editor-fullscreen .editor-form { position: fixed; inset: 0; z-index: 50; margin: 0; border-radius: 0; overflow: auto; background: var(--surface); padding: 10px 16px; }
@media (max-width: 860px) { .sheet-wrap .cv-sheet { width: 794px; max-width: none; } }
.result-sheet { max-height: 900px; overflow: auto; }
.result-sheet .cv-sheet { min-height: 0; }
.result-sheet .cv-sheet::after { display: none; }
.match-table td { vertical-align: top; }
.editor-toolbar, .editor-actions { z-index: 6; }
.tb-pop { z-index: 7; }
body.editor-fullscreen .editor-form { display: block; }
body.editor-fullscreen .editor-form > * + * { margin-top: 10px; }

/* CV adapté : galerie des cinq modèles (vrais aperçus, même contenu) */
.model-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(166px, 1fr)); gap: 12px; margin-top: 10px; }
.model-card { display: flex; flex-direction: column; gap: 6px; padding: 10px; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--surface); }
.model-card h3 { margin: 4px 0 0; font-size: 14.5px; }
.model-card p { margin: 0; }
.model-card .btn { margin-top: auto; text-align: center; }
.model-card.is-selected { border-color: var(--green-700); box-shadow: 0 0 0 2px var(--green-700); }
.model-thumb { position: relative; width: 159px; height: 225px; margin: 0 auto; overflow: hidden; background: #fff;
  border: 1px solid #dfe1ec; border-radius: 6px; pointer-events: none; user-select: none; }
.model-thumb > .cv-sheet { position: absolute; top: 0; left: 0; width: 794px; max-width: none; min-height: 1123px;
  transform: scale(.2); transform-origin: 0 0; }
.model-downloads { margin-top: 10px; }
/* Paramètres du CV adapté */
.offer-form fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 14px; margin: 0 0 12px; }
.offer-form legend { font-weight: 600; padding: 0 4px; }
.offer-form .choice { display: flex; gap: 8px; align-items: flex-start; margin: 6px 0; }
.offer-form .choice input { margin-top: 4px; }
.offer-form textarea, .offer-form input[type=text], .offer-form select { width: 100%; max-width: 560px; }
.offer-models { margin: 8px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.offer-models li { display: flex; flex-direction: column; gap: 6px; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 860px) { .offer-models { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.offer-form .page-choice { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; margin-top: 10px; }
.offer-form .page-choice label { display: inline-flex; gap: 6px; align-items: center; margin: 0; }

/* ===== Audit du 6 novembre, lot 3 : ergonomie, accessibilité, mobile ===== */
/* Mode sombre : statuts et onglets lisibles (contraste 4,5:1). */
@media (prefers-color-scheme: dark) {
  .badge.st-envoyee, .badge.st-entretien, .track-line li.done { color: var(--lime); }
  .track-line li.current { color: var(--lime); box-shadow: inset 0 0 0 1.5px var(--lime); }
  .tabs a[aria-current="page"] { color: var(--lime); border-bottom-color: var(--lime); }
  .brand-lg small { color: var(--lime); }
}
/* En-tête des pages de l'espace : titre à gauche, boutons à droite (retour à la ligne sur mobile). */
.list-head { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: flex-end; justify-content: space-between; margin-bottom: 14px; }
.list-head > div:first-child { flex: 1 1 320px; min-width: 0; }
.list-head h1 { margin: 0 0 4px; } .list-head p { margin: 0; }
/* Cibles tactiles : 24 px au moins, 44 px sur mobile pour les actions fréquentes. */
.linklike, .card-foot a, .card-foot button { min-height: 24px; display: inline-flex; align-items: center; }
@media (max-width: 860px) { .btn, .card-foot a, .card-foot button, .track-actions .btn, .doc-actions .btn-sm { min-height: 44px; } }
/* Pied de carte : actions rares et destructrices, discrètes et éloignées des actions courantes. */
.card-foot { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; justify-content: flex-end; margin-top: 10px;
  padding-top: 8px; border-top: 1px dashed var(--border); font-size: 13px; }
.card-foot form { margin: 0; }
a.danger-link, .linklike.danger-link { color: var(--danger); }
/* Raison d'un bouton désactivé, lisible sans survol. */
.why { font-size: 12.5px; color: var(--muted); }
/* État de suivi sur les cartes d'offres. */
.tracked { font-size: 13px; text-decoration: none; }
/* Popups : en bas de l'écran sur mobile, pour ne jamais couvrir le menu ni la langue. */
@media (max-width: 860px) {
  .js .messages { inset-block-start: auto; inset-block-end: max(12px, env(safe-area-inset-bottom)); inset-inline: 12px; width: auto; max-height: 45dvh; }
}
/* Recherche sur mobile : le mot-clé seul ; ville et employeur sur demande. « Vue grille » inutile en une colonne. */
.search-more { display: none; }
@media (max-width: 700px) {
  .js .searchbar:not(.more) .search-extra { display: none; }
  .js .search-more { display: inline-flex; justify-self: start; }
  .view-toggle { display: none !important; }
  .page-description, .freshness { display: none; }
}
/* Pagination numérotée. */
.pager { flex-wrap: wrap; } .pager .current { font-weight: 700; padding: 8px 6px; } .pager .gap { color: var(--muted); }
/* Langue sur la page de connexion. */
.login-card .language-switch { position: static; width: auto; padding: 0; background: none; border: 0; color: var(--muted); justify-content: flex-end; }
.login-card .language-switch select { background: var(--surface); color: var(--text); border-color: var(--field-border); }
/* Case « Se souvenir de moi » à côté de son libellé. */
.login-card form p:has(> input[type=checkbox]) { display: flex; flex-direction: row-reverse; justify-content: flex-end; align-items: center; gap: 8px; }
.login-card form p:has(> input[type=checkbox]) label { margin: 0; font-weight: 400; }
/* Support : questions fréquentes cliquables. */
.faq-buttons { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 0; }
.faq-buttons button { font-size: 13px; padding: 5px 10px; text-align: start; }
/* Éditeur : menus de la barre d'outils jamais hors de l'écran. */
.tb-pop { max-width: min(92vw, 560px); white-space: normal; flex-wrap: wrap; }
.tb-pop.tb-end { inset-inline-start: auto; inset-inline-end: 0; }
@media (max-width: 640px) {
  .tb-menu { position: static; }
  .tb-pop, .tb-pop.tb-end { inset-inline: 0; max-width: none; }
}
/* Arabe : flèches orientées dans le sens de lecture. */
[dir=rtl] .flip { display: inline-block; transform: scaleX(-1); }
/* Réglages de collecte : cinq éléments, cinq colonnes. */
.setup-form { grid-template-columns: 1.2fr 1.4fr 1.4fr .7fr auto; }
@media (max-width: 900px) { .setup-form { grid-template-columns: 1fr; } }
/* Éditeur : téléchargements regroupés, menu ouvert vers le haut (barre collée en bas). */
.tb-pop.tb-up { top: auto; bottom: calc(100% + 4px); }
.export-menu .tb-pop { min-width: 16rem; }
.export-menu .tb-pop .btn { white-space: normal; }
@media (max-width: 640px) { .editor-actions .export-menu { position: static; } }

/* Plan d'application, lot 1 : encadrés de sécurité (accueil, fiche). Texte de la page sur fond d'alerte discret :
   contraste AA en clair comme en sombre (couleur du texte inchangée). */
.safety-note { margin-top: 24px; padding: 12px 16px; border-radius: var(--radius); background: var(--warn-bg);
  border-inline-start: 4px solid var(--warn); color: var(--text); display: grid; gap: 6px; }
.safety-note h2, .safety-note h3 { margin: 0; font-size: 16px; }
.safety-note p, .safety-note ul { margin: 0; }
.safety-note ul { padding-inline-start: 20px; }
/* Champ piège du signalement (P-FIC-2) : hors écran pour les personnes, rempli seulement par les robots. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
/* Fiche d'offre (P-FIC-5) : actions répétées en fin de fiche ; sur mobile, barre collée en bas d'écran dès que les
   boutons du haut sont sortis de l'écran (classe posée par site.js ; sans JavaScript, simple bloc en fin de fiche). */
.actions-end { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--border); }
@media (max-width: 700px) {
  .actions-end { position: sticky; bottom: 0; z-index: 5; background: var(--surface); margin-inline: -16px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -4px 14px rgba(0,0,0,.12); }
  .actions-end.is-hidden { display: none; }
  .drawer-panel .actions-end { position: static; box-shadow: none; margin-inline: 0; }
  .js body:has(.actions-end:not(.is-hidden)) .messages { inset-block-end: calc(84px + env(safe-area-inset-bottom, 0px)); }
}
.share { gap: 8px; margin: 2px 0 8px; }
/* Pages juridiques (P-CGU-2) : sommaire ancré, deux colonnes sur ordinateur. */
.toc { margin: 12px 0 4px; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); }
.toc .toc-title { margin: 0 0 6px; font-size: 14px; }
.toc ol { margin: 0; padding-inline-start: 22px; columns: 2; column-gap: 28px; }
.toc li { break-inside: avoid; padding: 2px 0; }
.toc a { display: inline-block; min-height: 24px; }
@media (max-width: 640px) { .toc ol { columns: 1; } }
.prose h2[id] { scroll-margin-top: 16px; }
@media (max-width: 860px) { .prose h2[id] { scroll-margin-top: 64px; } }
/* Journal de gestion (G-JOU-1) : détails d'une entrée, sur demande. */
dl.journal-details { grid-template-columns: max-content minmax(0, 1fr); margin: 6px 0 0; font-size: 13px; }
dl.journal-details dd { overflow-wrap: anywhere; }

/* Gestion → Comptes : tri par en-tête (G-CPT-2) */
a.th-sort { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
th[aria-sort="ascending"] a.th-sort::after { content: " ↑"; }
th[aria-sort="descending"] a.th-sort::after { content: " ↓"; }
/* Gestion → Comptes : cibles de 44 px sur mobile (G-CPT-3) */
@media (max-width: 860px) {
  .table-wrap.stack .linklike, .table-wrap.stack .btn-sm, .table-wrap.stack .account-actions a, .table-wrap.stack td[data-label="Jetons"] a { min-height: 44px; display: inline-flex; align-items: center; }
  .table-wrap.stack .account-actions, .table-wrap.stack td[data-label="Rôles"] .row { gap: 8px; }
  .table-wrap.stack td[data-label="Rôles"] label { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; }
}
/* Gestion → fiche de compte (G-CPT-4) */
.break-anywhere { overflow-wrap: anywhere; }
ul.plain { list-style: none; padding: 0; margin: 0; } ul.plain li { padding: 4px 0; }
.account-actions-block { border-top: 1px solid var(--border); padding-top: 10px; }
@media (max-width: 860px) { .account-actions-block .linklike, .account-actions-block .account-actions a { min-height: 44px; display: inline-flex; align-items: center; } .account-actions-block .account-actions { gap: 8px; } }
@media (max-width: 860px) { .table-wrap.stack a.cell-link { min-height: 44px; display: inline-flex; align-items: center; } }
/* Coût, solde et confirmation des actions payantes (C-TR-4) */
form.paid-action, .paid-action { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.token-cost { color: var(--muted); unicode-bidi: plaintext; }
.token-cost.warn { color: var(--warn); }
/* Gestion → IA : jauge du budget mensuel (G-IA-2) */
.budget-counter meter { width: 100%; height: 12px; margin: 4px 0; }
/* Gestion → Jetons sur mobile (G-JET-3) : libellés visibles des lots, cases de 24 px */
.pack-field { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pack-field .pack-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 860px) {
  .pack-field .pack-label { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; font-size: 13px; color: var(--muted); }
  .pack-row { grid-template-columns: 1fr 1fr; } .pack-head { display: none; }
}
.tokens-admin input[type=checkbox], .tokens-admin input[type=radio] { width: 24px; height: 24px; flex: none; }
/* État vide qui guide (C-SEL-2) */
.empty-guide .steps { margin: 8px 0 14px; padding-inline-start: 22px; } .empty-guide .steps li { margin: 4px 0; }
@media (max-width: 860px) { .empty-guide .btn { min-height: 44px; } }
/* Mes sélections : actions secondaires et note sur place (C-SEL-3) */
.card-more .more-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 8px 0; }
.note-edit textarea { width: 100%; margin: 6px 0; }
.analyses { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
/* Mes candidatures : suivi en lignes compactes (C-CAN-5) */
.track-card h3 { margin: 6px 0 2px; }
.track-more > summary { cursor: pointer; padding: 6px 0; min-height: 24px; }
@media (max-width: 860px) { .track-more > summary { min-height: 44px; } }
.sent-search input[type=search] { flex: 1 1 220px; }
/* Annuler un changement en un clic (C-CAN-6) */
.undo-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 10px; margin-bottom: 8px; border-radius: 6px; background: var(--warn-bg); }
@media (max-width: 860px) { .undo-banner .btn { min-height: 44px; } }
.agenda-link { min-height: 24px; display: inline-flex; align-items: center; }
@media (max-width: 860px) { .agenda-link { min-height: 44px; } }
/* Mes alertes : critères, nouveautés, renommage (C-ALE-1) */
.saved.alerts { list-style: none; padding: 0; gap: 12px; } .saved.alerts li { border-bottom: 1px solid var(--border); padding-bottom: 10px; }
.alert-head { display: flex; flex-direction: column; gap: 2px; flex: 1 1 100%; }
/* « À faire » : lien agenda et « Fait » sur la même ligne (C-CAN-7) ; cartes de suivi resserrées (C-CAN-5) */
.todo-list li { grid-template-columns: auto 1fr auto auto; }
.track-card { padding-top: 10px; padding-bottom: 8px; }
.track-card > .row:first-of-type { margin-bottom: 0; }
.track-card h3 { margin: 4px 0 0; }
.track-card .meta { margin: 2px 0; }
.track-more > summary { padding: 0; }
details.more > summary, .track-more > summary { display: list-item; min-height: 24px; line-height: 24px; }
@media (max-width: 860px) {
  .todo-list li { grid-template-columns: 1fr auto auto; }
  details.more > summary, .track-more > summary { min-height: 44px; line-height: 44px; }
}
/* Carte d'offre : titre d'abord, signet en haut, actions en pied (P-OFF-4) */
.opp { position: relative; }
.opp > .card-star { position: absolute; top: 14px; inset-inline-end: 14px; min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.opp:has(> .card-star) > h3 { padding-inline-end: 52px; }
.opp > .card-actions { margin-top: 4px; }
@media (max-width: 860px) { .opp > .card-star { min-width: 44px; min-height: 44px; } .opp > .card-actions .btn { min-height: 44px; } }
.opp > .meta.source-line { border-top: 1px solid var(--border); padding-top: 12px; }
/* Critères actifs en puces retirables (P-OFF-6) */
.active-criteria { list-style: none; padding: 0; margin: 0; }
.active-criteria a { min-height: 24px; display: inline-flex; align-items: center; gap: 4px; }
@media (max-width: 860px) { .active-criteria a { min-height: 44px; } }
/* Mots trouvés dans les titres (P-FIL-2) */
.opp h3 mark { background: #fff0a6; color: inherit; padding: 0 1px; border-radius: 2px; }
@media (prefers-color-scheme: dark) { .opp h3 mark { background: #5a4a00; color: #fff; } }
/* Accueil : offres par pays (P-ACC-1) */
.country-chips ul { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.country-chips a { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 4px 12px; border: 1px solid var(--border); border-radius: 999px; text-decoration: none; color: var(--text); background: var(--surface); font-size: 14px; }
.country-chips a:hover { border-color: var(--green-700); }
.country-chips .count { color: var(--muted); }
.country-chips a.all { color: var(--link); text-decoration: underline; }
@media (max-width: 860px) { .country-chips a { min-height: 44px; } }
/* Recherche de l'accueil avec le pays (P-ACC-5) */
.hero-search { max-width: 52rem; }
.hero-search select { flex: 0 1 14rem; max-width: 14rem; margin: 0; }
@media (max-width: 600px) { .hero-search { flex-direction: column; } .hero-search input, .hero-search select { max-width: none; width: 100%; flex: none; } .hero-search button { width: 100%; min-height: 44px; } }
@media (max-width: 860px) { .hero-search select, .hero-search input { min-height: 44px; } }
/* Pages d'entrée : offre en cours (P-CON-1) */
.resume-offer { border: 1px solid var(--border); border-inline-start: 4px solid var(--green-700); border-radius: 8px; padding: 10px 12px; margin: 10px 0; background: var(--surface-2, var(--surface)); }
.resume-offer p { margin: 2px 0; }
/* Afficher le mot de passe (P-CON-2) */
.pw-wrap { display: flex; gap: 6px; align-items: stretch; }
.pw-wrap input { flex: 1; min-width: 0; }
.pw-toggle { flex: none; min-height: 24px; padding: 0 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); cursor: pointer; font-size: 14px; }
@media (max-width: 860px) { .pw-toggle { min-height: 44px; } }
/* Connexion : lien « Mot de passe oublié » et bascule vers l'inscription (P-CON-3) */
.login-card .helptext a, .login-card .entrance-switch a { display: inline-flex; align-items: center; min-height: 24px; }
@media (max-width: 860px) { .login-card .helptext a, .login-card .entrance-switch a { min-height: 44px; } }
/* Inscription : bénéfices du compte (P-INS-1) */
.benefits { margin: 6px 0 12px; padding-inline-start: 20px; } .benefits li { margin: 2px 0; }
/* Pied de page : offres par pays (P-TR-2) */
.foot-countries { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-bottom: 8px; }
.foot-countries a { display: inline-flex; align-items: center; min-height: 24px; }
/* Résumé des erreurs de formulaire (P-TR-3) */
.error-summary { border: 2px solid var(--danger); border-radius: 8px; padding: 10px 14px; margin: 0 0 14px; background: var(--danger-bg); }
.error-summary h2 { font-size: 16px; margin: 0 0 6px; color: var(--danger); }
.error-summary ul { margin: 0; padding-inline-start: 18px; }
.error-summary a { color: var(--danger); font-weight: 600; display: inline-flex; min-height: 24px; align-items: center; }
.error-summary:focus { outline: 3px solid var(--danger); outline-offset: 2px; }
/* Appareils connectés (C-SES-1) */
.device-list { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 10px; }
.device { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 14px; }
.device p { margin: 2px 0; overflow-wrap: anywhere; }
@media (max-width: 860px) { .device .btn, .device-list + form .btn { min-height: 44px; } }
/* Éditeur sur téléphone (C-ED-2) : rédaction qui se redistribue, aperçu A4 réduit à la demande */
@media (max-width: 860px) {
  .sheet-wrap.is-reflow { overflow-x: hidden; padding: 8px 0; }
  .sheet-wrap.is-reflow .cv-sheet { width: auto; max-width: 100%; min-height: 0; padding: 20px 16px; }
  .sheet-wrap.is-reflow .cv-sheet::after { display: none; }
  .sheet-wrap.is-reflow .cv-cols { display: block; }
  .sheet-wrap.is-reflow .cv-figures { grid-template-columns: repeat(2, 1fr); }
  .sheet-wrap.is-reflow .cv-break { margin: 14px 0; }
  .sheet-wrap.is-a4 { overflow: hidden; height: var(--sheet-h, auto); }
  .sheet-wrap.is-a4 .cv-sheet { width: 794px; max-width: none; margin: 0; transform: scale(var(--sheet-scale, .45)); transform-origin: top left; }
  [dir=rtl] .sheet-wrap.is-a4 .cv-sheet { transform-origin: top right; }
  .sheet-view { min-height: 44px; margin: 6px 0; }
  .editor-toolbar > .btn, .editor-toolbar > details > summary, .editor-toolbar > select { flex: none; min-height: 44px; }
}
/* Vérifications gratuites du CV (C-ED-3) */
.checks { margin: 10px 0; } .checks > summary { cursor: pointer; font-weight: 600; min-height: 24px; }
.checks-list { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 4px; font-size: 14px; }
.checks-list .mark { display: inline-block; width: 1.4em; text-align: center; font-weight: 700; }
.checks-list .ok .mark { color: var(--ok); } .checks-list .todo .mark { color: var(--warn); }
/* Photo sans effet sur le modèle choisi : bloc grisé (C-ED-6) */
.photo-controls.is-off > .row { opacity: .45; }
/* Mes CV : miniature de la première page (C-CV-1) */
.cv-card { display: grid; grid-template-columns: 159px 1fr; gap: 16px; align-items: start; }
.cv-card-body { min-width: 0; display: grid; gap: 8px; }
.cv-thumb-link { display: block; border-radius: 6px; }
.cv-thumb-link:focus-visible { outline: 3px solid var(--green-700); outline-offset: 2px; }
@media (max-width: 600px) {
  .cv-card { grid-template-columns: 1fr; }
  .cv-thumb-link .model-thumb { width: 120px; height: 170px; margin: 0; }
  .cv-thumb-link .model-thumb > .cv-sheet { transform: scale(.151); }
}
/* Mes CV : titres de cartes en h2 (apparence d'un h3), formulaire « Ajouter un CV » (C-CV-6) */
.opp h2.card-title { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.45; }
.opp h2.card-title a, .opp h3.card-title a { color: var(--text); text-decoration: none; }
.choice-line { display: flex; align-items: center; gap: 8px; min-height: 24px; }
fieldset:has(input[value="vierge"]:checked) input[type=file] { display: none; }
@media (max-width: 860px) { .choice-line { min-height: 44px; } }
/* Résultat de l'assistant : action toujours visible (C-RES-1) */
.result-actions-bar { position: sticky; top: 0; z-index: 6; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px;
  padding: 10px 14px; margin-bottom: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.result-actions-bar p { margin: 0; }
.result-actions-bar form { margin: 0; }
.result-actions-bar .small.muted { display: none; }
@media (max-width: 860px) { .result-actions-bar .btn { min-height: 44px; } }
/* « Avant d'utiliser ce CV » (C-RES-2) */
.check-off { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 6px; }
.check-off label { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; margin: 0; }
.check-off input { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.check-off .check-text { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }   /* un seul bloc de texte (C-RES-8) */
/* Résultat de l'assistant lisible sur mobile (C-RES-4) */
@media (max-width: 640px) {
  .match-table thead { display: none; }
  .match-table, .match-table tbody, .match-table tr, .match-table td { display: block; width: 100%; }
  .match-table tr { padding: 10px 0; border-bottom: 1px solid var(--border); }
  .match-table td { padding: 2px 0; border: 0; }
  .match-table td[data-label]:not(:first-child)::before { content: attr(data-label) " : "; color: var(--muted); font-size: 13px; }
}
@media (max-width: 860px) {
  .result-sheet.is-fit { max-height: none; overflow: hidden; height: var(--fit-h, auto); }
  .result-sheet.is-fit .cv-sheet { width: 794px; max-width: none; margin: 0; transform: scale(var(--fit-scale, .45)); transform-origin: top left; }
  [dir=rtl] .result-sheet.is-fit .cv-sheet { transform-origin: top right; }
}
/* Éditeur de lettre : rappel de l'offre (C-LET-2) */
.offer-recall { margin: 10px 0; } .offer-recall > summary { cursor: pointer; font-weight: 600; min-height: 24px; }
.offer-recall p { margin: 8px 0; overflow-wrap: anywhere; }
/* Tableau de bord candidat (C-TR-1) */
.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.dash-grid .dash-todo { grid-column: 1 / -1; }
.dash-counts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 0; }
.dash-counts div { display: flex; flex-direction: column-reverse; } .dash-counts dd { margin: 0; font-size: 22px; font-weight: 600; }
.dash-counts dt { color: var(--muted); font-size: 13px; }
/* Barre de navigation basse sur mobile (C-TR-3) */
.bottom-nav { display: none; }
@media (max-width: 860px) {
  .bottom-nav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; inset-inline: 0; bottom: 0; z-index: 20;
    background: var(--surface); border-top: 1px solid var(--border); padding-bottom: env(safe-area-inset-bottom); }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 56px;
    font-size: 12px; color: var(--text); text-decoration: none; position: relative; }
  .bottom-nav a[aria-current=page] { color: var(--green-800); font-weight: 600; }
  .bottom-nav .bn-icon { font-size: 18px; line-height: 1; }
  .bottom-nav .pill { position: absolute; top: 4px; inset-inline-end: 18%; font-size: 10px; }
  body:has(.bottom-nav) main { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  body:has(.bottom-nav) .js .messages, .js body:has(.bottom-nav) .messages { bottom: calc(72px + env(safe-area-inset-bottom)); }
  body:has(.bottom-nav) :focus-visible { scroll-margin-bottom: 80px; }
  .is-fullscreen ~ .bottom-nav, body.editor-fullscreen .bottom-nav { display: none; }
}

/* Premiers pas sur le tableau de bord (C-TR-2) */
.first-steps-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.first-steps-head h2 { margin: 0; }
.first-steps-head form { margin-inline-start: auto; }
.first-steps .steps > li.done s { color: var(--muted); }
.first-steps .steps p { margin: 2px 0 0; }

/* Cibles d'au moins 24 × 24 px dans l'espace candidat (WCAG 2.5.8, C-TR-5) ; 44 px de haut sous 640 px pour les
   commandes (boutons, menus). Les liens au fil d'une phrase restent en ligne (exception de la règle). */
.skip { padding: 6px 10px; }
.foot a, p.small > a:only-child, .helptext > a:only-child, .history-links > a, .card-title a, h3 > a { display: inline-block; padding-block: 4px; }
.card-title a, h3 > a { padding-block: 2px; }
.tb-pop .dot { flex: none; min-width: 24px; min-height: 24px; }
.editor-toolbar button { min-width: 24px; }
input[type=checkbox], input[type=radio] { width: 20px; height: 20px; }
@media (max-width: 640px) {
  input[type=checkbox], input[type=radio] { width: 24px; height: 24px; }
  .btn, .btn-sm, select { min-height: 44px; }
  button.linklike { padding-block: 6px; }
  .tb-pop .dot { min-width: 32px; min-height: 32px; }
}

/* Support : toutes les questions par thème (C-SUP-2) */
.faq details { border-top: 1px solid var(--border); }
.faq details:first-of-type { border-top: 0; }
.faq summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: 6px; padding: 6px 0; }
.faq-theme > summary { font-weight: 600; }
.faq-item { margin-inline-start: 12px; }
.faq-item > summary { font-size: 14px; }
.faq-item > p { margin: 0 0 10px; font-size: 14px; }
.faq summary:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }

/* Gestion du support : résumés de réponses sur plusieurs lignes, cibles de 24 px (44 px sous 860 px) (G-SUP-3) */
.support-answers details.more > summary { line-height: 1.4; padding-block: 4px; }
@media (max-width: 860px) { .support-answers details.more > summary { line-height: 1.4; padding-block: 12px; } }

/* Gestion : santé de l'exploitation (G-TAB-1) */
.health.health-bad { border-color: var(--danger); }
.health-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
/* Une ligne cliquable en entier par cause (G-TAB-5). */
.health-item { display: block; color: inherit; text-decoration: none; border-radius: var(--radius); padding: 4px 6px; margin: -4px -6px; }
.health-item:hover b, .health-item:focus-visible b { text-decoration: underline; }
.health-more { margin: 4px 0 0; } .health-more ul { margin: 4px 0 0; padding-left: 18px; }
@media (max-width: 860px) { .health-item { min-height: 44px; padding: 10px 6px; margin-bottom: 8px; } .health-more summary { min-height: 44px; display: flex; align-items: center; } }

.bad-text { color: var(--danger); }   /* « À traiter » en attente depuis plus de 48 h (G-TAB-3) */

/* Socle mobile des pages de gestion (G-TRA-2) : cibles de 44 px, 8 px d'espacement, onglets sur une ligne
   défilante. Limité à body.gestion : aucune page candidat ou visiteur n'est touchée. */
@media (max-width: 860px) {
  body.gestion main button, body.gestion main .btn, body.gestion main .btn-sm, body.gestion main .linklike,
  body.gestion main .chips a, body.gestion main summary, body.gestion main select {
    min-height: 44px;
  }
  body.gestion main .linklike, body.gestion main .chips a { display: inline-flex; align-items: center; }
  body.gestion main summary { display: flex; align-items: center; gap: 6px; line-height: 1.4; }
  body.gestion main details.more > summary { display: list-item; line-height: 44px; }
  body.gestion main .row, body.gestion main .chips, body.gestion main .account-actions { gap: 8px; }
  body.gestion main form.inline + form.inline, body.gestion main .linklike + .linklike { margin-inline-start: 8px; }
  body.gestion main td a, body.gestion main .row > a, body.gestion main h2 > a { display: inline-block; padding-block: 4px; }
  body.gestion main td.num a { min-width: 24px; text-align: center; }
  body.gestion .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
  body.gestion .tabs a { flex: none; white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; }
}

/* Gestion → Offres : comparaison de deux offres (G-OFF-2) ; colonnes empilées sous 860 px */
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 860px) { .compare-grid { grid-template-columns: 1fr; } }
dl.kv.compare { grid-template-columns: 140px 1fr; }
dl.kv.compare dd.differs { background: var(--warn-bg); color: var(--text); padding: 0 4px; border-radius: 4px; }

/* Gestion → Offres : barre de filtres (G-OFF-3) */
.filters-bar { align-items: flex-end; gap: 8px 12px; }
.filters-bar label { display: grid; gap: 2px; font-size: 13px; color: var(--muted); }
.offers-table td { vertical-align: top; }

/* Moteur : revue des offres retenues (G-MOT-2) */
.held-list { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 8px; }
.held-list li { display: grid; grid-template-columns: 24px 1fr; gap: 8px; align-items: start; }
.held-list label { display: grid; gap: 2px; }
.held-excerpt { color: var(--muted); }

/* Sources et collecte : page d'une source (G-COL-3) */
.timeline { list-style: none; padding: 0 0 0 14px; margin: 0; border-inline-start: 2px solid var(--border); display: grid; gap: 8px; }
.timeline li { position: relative; font-size: 14px; }
.timeline li::before { content: ""; position: absolute; inset-inline-start: -20px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--green-800); }

/* Moteur : jauge du budget LLM (G-MOT-3) */
.budget-meter { width: 100%; height: 10px; margin: 4px 0; }

/* Pages juridiques servies sous /ar/ : texte français de gauche à droite (P-CONF-1) */
.legal[dir=ltr] th, .legal[dir=ltr] td { text-align: start; }

/* Pages juridiques : « L'essentiel », dans la langue et la direction de la page (P-CONF-2) */
.legal-summary { background: var(--surface-2); border-radius: var(--radius); padding: 12px 16px; margin: 14px 0; }
.legal-summary h2 { margin-top: 0; }
.legal-summary ul { margin: 0; padding-inline-start: 20px; }
.legal-summary li + li { margin-top: 6px; }
/* Repères restants dans l'éditeur de lettre (C-LET-4) : tient dans la barre d'actions à 390 px. */
.letter-markers { white-space: nowrap; }
/* Documents pas prêts à l'étape « Envoyer » (C-CAN-10) : avertissement sans blocage. */
.send-warnings { margin: 6px 0 10px; overflow-wrap: anywhere; }
.send-warnings p { margin: 0 0 4px; } .send-warnings ul { margin: 0; padding-inline-start: 20px; }
/* Comparaison de deux doublons possibles (G-DBL-1) : une ligne par champ, différences marquées sur toute la ligne ;
   sous 640 px, chaque ligne se lit « Champ », puis n° A, puis n° B. */
.compare-table tbody th { text-align: start; font-weight: 600; vertical-align: top; }
.compare-table tr.differs td, .compare-table tr.differs th { background: var(--warn-bg); }
@media (max-width: 640px) { .table-wrap.stack .compare-table tbody th { display: block; padding: 2px 0; } }
/* Accueil (P-ACC-9) : sous 600 px, les raccourcis pays tiennent sur une rangée défilante (liens tous présents). */
@media (max-width: 600px) {
  .country-chips ul { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; overscroll-behavior-inline: contain;
                      padding-block-end: 6px; }
  .country-chips li { flex: 0 0 auto; scroll-snap-align: start; }
  .country-chips a { white-space: nowrap; }
  .hero { padding: 16px; }
  .hero .lead { margin-bottom: 10px; }
}
/* Ligne de prudence dans le premier écran de l'accueil (P-ACC-11). */
.safety-line { margin: 12px 0 0; padding: 8px 12px; font-size: 14px; background: var(--warn-bg); color: var(--text);
               border-inline-start: 4px solid var(--warn); border-radius: 6px; }
/* « À faire » actionnable (C-CAN-9) et annulation sur le tableau de bord (C-ESP-2) : cibles de 44 px sur téléphone. */
.todo-actions { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.todo-actions form { margin: 0; }
@media (max-width: 860px) { .todo-actions .btn-sm, .undo-banner .btn { min-height: 44px; display: inline-flex; align-items: center; } }
/* En-tête mobile (C-TR-7) : nom du site en haut à gauche (à droite en arabe), sélecteur de langue à côté du menu. */
.brand-mobile { display: none; }
@media (max-width: 860px) {
  .brand-mobile { display: inline-flex; align-items: center; gap: 8px; position: absolute; top: 10px; left: 16px;
                  min-height: 40px; color: var(--text); text-decoration: none; font-size: 17px; }
  .brand-mobile .logo { width: 26px; height: 26px; }
  .language-switch { left: auto; right: 64px; }
  [dir=rtl] .brand-mobile { left: auto; right: 16px; }
  [dir=rtl] .language-switch { right: auto; left: 64px; }
}
/* Barre d'outils compacte sur téléphone (C-ED-9) : une rangée (style, gras, italique, puces, annuler, rétablir,
   « Plus d'outils ») ; les autres commandes se déplient en place sous la première rangée, sans menu flottant. */
.tb-more-toggle, .tb-break { display: none; }
@media (max-width: 640px) {
  .editor-toolbar { gap: 4px; }
  .editor-toolbar > .sep { display: none; }
  .editor-toolbar > .tb-essential { order: 0; }
  .editor-toolbar > .tb-more-toggle { display: inline-flex; align-items: center; order: 1; }
  .editor-toolbar > .tb-break { order: 2; flex-basis: 100%; height: 0; }
  .editor-toolbar > :not(.tb-essential):not(.tb-more-toggle):not(.tb-break) { order: 3; }
  .editor-toolbar:not(.more-open) > :not(.tb-essential):not(.tb-more-toggle) { display: none; }
  .editor-toolbar.more-open > .tb-break { display: block; }
  .editor-toolbar > select.tb-style { max-width: 112px; }
  .editor-toolbar > .btn { padding: 4px 8px; }
  html:has(.editor-actions) { scroll-padding-bottom: 72px; }
}
/* Support (G-SUP-4) : liste des réponses en lecture, relecture en deux colonnes (l'une sous l'autre sur téléphone). */
.answer-list { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 8px; }
.answer-list li { padding: 6px 0; border-bottom: 1px solid var(--border); overflow-wrap: anywhere; }
.review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 760px) { .review-grid { grid-template-columns: 1fr; } }
.pre-line { white-space: pre-line; }
