/* =====================================================================
   TrouveTonJob — feuille de style unique
   Mobile d'abord. Deux points de rupture seulement : 720px et 1080px.
   ===================================================================== */

:root {
  --navy-900: #0C2A55;
  --navy-800: #12386F;
  --navy-700: #1B4B8F;
  --blue-500: #2563EB;
  --green-600: #16A97C;
  --green-100: #E6F7F0;
  --amber-500: #F59E0B;
  --red-600: #DC2626;
  --red-50: #FEF2F2;

  --bg: #F5F7FB;
  --surface: #FFFFFF;
  --surface-2: #F8FAFC;
  --border: #E3E8F0;
  --border-strong: #CBD5E1;
  --text: #0F172A;
  --text-muted: #5A6B85;
  --text-faint: #8494AC;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-full: 999px;

  --shadow-xs: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, .08), 0 1px 2px rgba(15, 23, 42, .04);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, .09);
  --shadow-lg: 0 12px 40px rgba(12, 42, 85, .16);

  --header-h: 60px;
  --wrap: 1240px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, "Noto Sans", sans-serif;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B1220;
    --surface: #131C2E;
    --surface-2: #18233A;
    --border: #263349;
    --border-strong: #35455F;
    --text: #EDF2F9;
    --text-muted: #9DAECA;
    --text-faint: #7789A5;
    --green-100: #0E3A2C;
    --red-50: #3A1A1A;
    --shadow-md: 0 4px 16px rgba(0, 0, 0, .45);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, .55);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 .75em; }
a { color: inherit; }
img, svg { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }

/* Toutes les icônes de l'interface sont des tracés, jamais des aplats.
   Sans cette base, un SVG inséré dans un conteneur sans règle dédiée est
   peint en noir plein — donc invisible sur ses parties creuses.
   Sélecteur d'élément (spécificité 0,0,1) : n'importe quelle règle de classe
   le surcharge, y compris les icônes volontairement pleines et les
   graphiques. */
svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 16px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--navy-900); color: #fff; padding: 12px 18px; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 2px; border-radius: 4px; }

/* =====================================================================
   En-tête
   ===================================================================== */

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; gap: 12px;
}

.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; flex: 0 0 auto; }
.brand-mark { border-radius: 9px; display: block; }
.brand-text {
  font-size: 1.06rem; font-weight: 500; letter-spacing: -.03em; white-space: nowrap;
}
.brand-text span { font-weight: 500; }
.brand-text b { color: var(--green-600); font-weight: 800; }

.header-nav { display: none; margin-left: 14px; gap: 4px; }
.header-nav a {
  padding: 8px 12px; border-radius: var(--radius-sm); text-decoration: none;
  color: var(--text-muted); font-weight: 500; font-size: .93rem;
}
.header-nav a:hover { background: var(--surface-2); color: var(--text); }
.header-nav a[aria-current="page"] { color: var(--navy-700); background: var(--surface-2); }

.header-actions { display: none; margin-left: auto; gap: 8px; align-items: center; }

.burger {
  margin-left: auto;
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  background: transparent; border: 1px solid var(--border); cursor: pointer;
}
.burger svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.mobile-menu {
  border-top: 1px solid var(--border); background: var(--surface);
  padding: 8px 16px 16px; display: grid; gap: 2px;
}
.mobile-menu a {
  padding: 12px 8px; text-decoration: none; border-radius: var(--radius-sm);
  font-weight: 500; color: var(--text);
}
.mobile-menu a:active { background: var(--surface-2); }
.mobile-menu-actions { display: grid; gap: 8px; margin-top: 10px; }

@media (min-width: 900px) {
  .header-nav, .header-actions { display: flex; }
  .burger, .mobile-menu { display: none !important; }
}

/* =====================================================================
   Boutons
   ===================================================================== */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: var(--radius);
  border: 1px solid transparent; background: var(--surface); color: var(--text);
  font-weight: 600; font-size: .94rem; text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, transform .06s;
  min-height: 44px; /* cible tactile confortable */
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.btn-primary { background: var(--navy-700); color: #fff; }
.btn-primary:hover { background: var(--navy-800); }

.btn-accent { background: var(--green-600); color: #fff; }
.btn-accent:hover { filter: brightness(.95); }

.btn-ghost { border-color: var(--border-strong); background: transparent; }
.btn-ghost:hover { background: var(--surface-2); }

.btn-quiet { background: transparent; color: var(--text-muted); padding: 8px 10px; min-height: 38px; }
.btn-quiet:hover { color: var(--text); background: var(--surface-2); }

.btn-block { width: 100%; }
.btn-lg { padding: 14px 24px; font-size: 1rem; min-height: 50px; }

.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--surface); cursor: pointer; color: var(--text-muted);
}
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); }
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn.is-on { color: var(--green-600); border-color: var(--green-600); background: var(--green-100); }

/* =====================================================================
   Barre de recherche
   ===================================================================== */

.searchbar {
  display: grid; gap: 8px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 8px;
  box-shadow: var(--shadow-md);
}

.search-field {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius);
  background: var(--surface-2); border: 1px solid transparent;
}
.search-field:focus-within { border-color: var(--navy-700); background: var(--surface); }
.search-field svg { width: 19px; height: 19px; flex: 0 0 auto; color: var(--text-faint); fill: none; stroke: currentColor; stroke-width: 1.9; }
.search-field input {
  flex: 1; min-width: 0; border: 0; background: transparent; outline: none;
  font-size: 16px; /* < 16px déclenche le zoom automatique sur iOS */
  padding: 2px 0;
}
.search-field input::placeholder { color: var(--text-faint); }

.searchbar .btn-primary { min-height: 48px; }

@media (min-width: 720px) {
  .searchbar { grid-template-columns: 1fr 1fr auto; align-items: center; }
}

/* Autocomplétion */
.suggest-wrap { position: relative; }
.suggest-list {
  position: absolute; inset-inline: 0; top: calc(100% + 6px); z-index: 40;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  overflow: hidden; list-style: none; margin: 0; padding: 4px;
}
.suggest-list li button {
  width: 100%; text-align: left; padding: 10px 12px; border: 0; background: transparent;
  border-radius: var(--radius-sm); cursor: pointer; font-size: .92rem;
}
.suggest-list li button:hover, .suggest-list li button.is-active { background: var(--surface-2); }

/* =====================================================================
   Accueil
   ===================================================================== */

.hero {
  background:
    radial-gradient(120% 120% at 15% 0%, rgba(27, 75, 143, .10) 0%, transparent 55%),
    radial-gradient(90% 90% at 95% 10%, rgba(22, 169, 124, .10) 0%, transparent 50%);
  padding: 40px 0 28px;
}
.hero h1 { font-size: clamp(1.8rem, 6vw, 3rem); max-width: 16ch; }
.hero .lede { color: var(--text-muted); font-size: 1.05rem; max-width: 52ch; margin-top: 12px; }
.hero .searchbar { margin-top: 26px; }

.trust-row {
  display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px;
  color: var(--text-muted); font-size: .87rem;
}
.trust-row span { display: inline-flex; align-items: center; gap: 6px; }
.trust-row svg { width: 15px; height: 15px; color: var(--green-600); fill: none; stroke: currentColor; stroke-width: 2.4; }

.quick-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.quick-chips a {
  padding: 7px 14px; border-radius: var(--radius-full); background: var(--surface);
  border: 1px solid var(--border); text-decoration: none; font-size: .87rem;
  color: var(--text-muted); font-weight: 500;
}
.quick-chips a:hover { border-color: var(--navy-700); color: var(--navy-700); }

.section { padding: 34px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-head p { color: var(--text-muted); margin: 4px 0 0; font-size: .92rem; }

.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.stat {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px;
}
.stat b { display: block; font-size: 1.6rem; letter-spacing: -.03em; }
.stat span { color: var(--text-muted); font-size: .85rem; }
@media (min-width: 720px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }

.how-grid { display: grid; gap: 14px; }
.how-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px;
}
.how-card .num {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: var(--navy-900); color: #fff; font-weight: 700; margin-bottom: 12px;
}
.how-card h3 { margin-bottom: 6px; }
.how-card p { color: var(--text-muted); margin: 0; font-size: .92rem; }
@media (min-width: 720px) { .how-grid { grid-template-columns: repeat(3, 1fr); } }

/* =====================================================================
   Page résultats — liste + détail
   ===================================================================== */

.results-topbar {
  position: sticky; top: var(--header-h); z-index: 50;
  background: var(--bg); border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.results-topbar .searchbar { box-shadow: var(--shadow-sm); }

.filter-row {
  display: flex; gap: 8px; margin-top: 10px;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}
.filter-row::-webkit-scrollbar { display: none; }

.chip {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: var(--radius-full);
  border: 1px solid var(--border-strong); background: var(--surface);
  font-size: .87rem; font-weight: 500; cursor: pointer; white-space: nowrap;
  min-height: 38px;
}
.chip:hover { border-color: var(--navy-700); }
.chip.is-active { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.chip .count {
  background: rgba(255, 255, 255, .22); border-radius: var(--radius-full);
  padding: 0 6px; font-size: .78rem; font-weight: 700;
}
.chip svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; }

.results-meta {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 0 10px; flex-wrap: wrap;
}
.results-meta .count { font-weight: 600; }
.results-meta .count small { color: var(--text-muted); font-weight: 400; }
.sort-select {
  border: 1px solid var(--border-strong); background: var(--surface);
  border-radius: var(--radius-sm); padding: 8px 10px; font-size: .88rem; min-height: 40px;
}

.results-layout { display: grid; gap: 14px; align-items: start; padding-bottom: 40px; }
@media (min-width: 1080px) {
  .results-layout { grid-template-columns: minmax(380px, 42%) 1fr; }
  .results-list { max-height: calc(100vh - var(--header-h) - 150px); overflow-y: auto; padding-right: 4px; }
  .detail-pane { position: sticky; top: calc(var(--header-h) + 150px); max-height: calc(100vh - var(--header-h) - 165px); overflow-y: auto; }
}

.results-list { display: grid; gap: 10px; }

/* --- Carte offre : la vue « très synthétique » --- */

.job-card {
  position: relative; display: block; width: 100%; text-align: left;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 16px;
  cursor: pointer; transition: border-color .15s, box-shadow .15s;
}
.job-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.job-card.is-selected { border-color: var(--navy-700); box-shadow: 0 0 0 1px var(--navy-700); }

.job-card-top { display: flex; gap: 12px; align-items: flex-start; }
.job-logo {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 10px;
  display: grid; place-items: center; font-weight: 700; font-size: 1rem;
  background: var(--surface-2); color: var(--navy-700); border: 1px solid var(--border);
}
.job-card h3 {
  font-size: 1rem; line-height: 1.35; margin-bottom: 3px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.job-company { color: var(--text-muted); font-size: .89rem; }

.job-facts {
  display: flex; flex-wrap: wrap; gap: 6px 8px; margin-top: 10px;
  font-size: .82rem; color: var(--text-muted);
}
.fact { display: inline-flex; align-items: center; gap: 5px; }
.fact svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }

.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: var(--radius-full);
  font-size: .76rem; font-weight: 600; letter-spacing: .01em;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text-muted);
}
.badge-contract { background: #EEF3FC; border-color: #D6E2F7; color: #1B4B8F; }
.badge-remote { background: var(--green-100); border-color: transparent; color: var(--green-600); }
.badge-salary { background: #FFF7E8; border-color: #FBE3B4; color: #96620A; }
.badge-new { background: var(--green-600); border-color: transparent; color: #fff; }
@media (prefers-color-scheme: dark) {
  .badge-contract { background: #16304F; border-color: #23486F; color: #9CC4F5; }
  .badge-salary { background: #3A2E12; border-color: #5A4718; color: #F1C475; }
}

.job-summary {
  margin: 10px 0 0; color: var(--text-muted); font-size: .88rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.job-card-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--border);
  font-size: .8rem; color: var(--text-faint);
}
.job-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

/* --- Volet détail --- */

.detail-pane {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px;
}
.detail-pane h2 { font-size: 1.3rem; margin-bottom: 6px; }
.detail-company { color: var(--text-muted); font-weight: 500; }
.detail-actions { display: grid; gap: 8px; margin: 18px 0; }
@media (min-width: 560px) { .detail-actions { grid-auto-flow: column; justify-content: start; } }
.detail-body {
  margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border);
  white-space: pre-wrap; font-size: .93rem; line-height: 1.65; color: var(--text-muted);
}
.detail-source {
  margin-top: 18px; padding: 12px 14px; border-radius: var(--radius);
  background: var(--surface-2); font-size: .84rem; color: var(--text-muted);
}

.detail-empty {
  display: grid; place-items: center; text-align: center; padding: 60px 24px;
  color: var(--text-muted); background: var(--surface); border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
}
.detail-empty svg { width: 46px; height: 46px; color: var(--border-strong); fill: none; stroke: currentColor; stroke-width: 1.5; margin-bottom: 12px; }

@media (max-width: 1079px) {
  .detail-pane.is-mobile-sheet {
    position: fixed; inset: 0; z-index: 90; border-radius: 0;
    overflow-y: auto; padding-bottom: 90px;
  }
  .sheet-close {
    position: sticky; top: 0; z-index: 2; margin: -22px -22px 14px; padding: 12px 16px;
    background: var(--surface); border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: 8px;
  }
}
@media (min-width: 1080px) { .sheet-close { display: none; } }

/* --- Mur payant --- */

.paywall {
  margin-top: 18px; padding: 20px; border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--navy-900), var(--navy-700));
  color: #fff;
}
.paywall h3 { margin-bottom: 8px; }
.paywall p { color: rgba(255, 255, 255, .85); font-size: .92rem; }
.paywall .btn { margin-top: 6px; }
.paywall-list { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 7px; font-size: .9rem; }
.paywall-list li { display: flex; gap: 9px; align-items: flex-start; color: rgba(255, 255, 255, .92); }
.paywall-list svg { width: 17px; height: 17px; flex: 0 0 auto; margin-top: 2px; color: #6EE7B7; fill: none; stroke: currentColor; stroke-width: 2.6; }

.quota-note {
  display: flex; align-items: center; gap: 8px; margin-bottom: 14px;
  padding: 10px 12px; border-radius: var(--radius);
  background: #FFF7E8; border: 1px solid #FBE3B4; color: #96620A; font-size: .86rem;
}
@media (prefers-color-scheme: dark) {
  .quota-note { background: #3A2E12; border-color: #5A4718; color: #F1C475; }
}

/* =====================================================================
   Tarifs
   ===================================================================== */

.plans { display: grid; gap: 16px; margin-top: 26px; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); align-items: start; } }

.plan {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px; position: relative;
}
.plan.is-popular { border-color: var(--navy-700); box-shadow: var(--shadow-md); }
.plan-tag {
  position: absolute; top: -11px; left: 24px;
  background: var(--navy-700); color: #fff; font-size: .74rem; font-weight: 700;
  padding: 4px 11px; border-radius: var(--radius-full); letter-spacing: .03em;
}
.plan-price { display: flex; align-items: baseline; gap: 6px; margin: 14px 0 4px; }
.plan-price b { font-size: 2.1rem; letter-spacing: -.03em; }
.plan-price span { color: var(--text-muted); font-size: .9rem; }
.plan ul { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 9px; font-size: .91rem; }
.plan li { display: flex; gap: 9px; align-items: flex-start; }
.plan li svg { width: 17px; height: 17px; flex: 0 0 auto; margin-top: 2px; color: var(--green-600); fill: none; stroke: currentColor; stroke-width: 2.6; }

/* =====================================================================
   Paiement mobile money
   ===================================================================== */

.pay-methods { display: grid; gap: 10px; margin: 6px 0 4px; }
.pay-method {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 14px; border-radius: var(--radius); cursor: pointer;
  border: 2px solid var(--border); background: var(--surface);
}
.pay-method:hover { border-color: var(--border-strong); }
.pay-method.is-selected { border-color: var(--navy-700); background: var(--surface-2); }
.pay-method .logo {
  width: 44px; height: 44px; border-radius: 11px; flex: 0 0 auto;
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: .95rem;
}
.pay-method b { display: block; font-size: .96rem; }
.pay-method small { color: var(--text-muted); font-size: .83rem; }
.pay-method .radio {
  margin-left: auto; width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--border-strong); flex: 0 0 auto;
}
.pay-method.is-selected .radio { border-color: var(--navy-700); border-width: 6px; }

.phone-input { display: flex; gap: 8px; }
.phone-input select {
  border: 1px solid var(--border-strong); border-radius: var(--radius);
  padding: 12px 8px; background: var(--surface); min-height: 48px; max-width: 130px;
}
.phone-input input { flex: 1; min-width: 0; }

.pay-summary {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-radius: var(--radius);
  background: var(--surface-2); border: 1px solid var(--border); margin: 16px 0;
}
.pay-summary b { font-size: 1.15rem; }

.pay-steps { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 12px; }
.pay-steps li { display: flex; gap: 12px; align-items: flex-start; font-size: .91rem; }
.pay-steps .n {
  flex: 0 0 auto; width: 25px; height: 25px; border-radius: 50%;
  display: grid; place-items: center; font-size: .78rem; font-weight: 700;
  background: var(--navy-900); color: #fff;
}

.pay-status { text-align: center; padding: 20px 0; }
.spinner {
  width: 42px; height: 42px; margin: 0 auto 16px; border-radius: 50%;
  border: 3px solid var(--border); border-top-color: var(--navy-700);
  animation: spin 850ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.5s; } }

.success-check {
  width: 62px; height: 62px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--green-100); display: grid; place-items: center;
}
.success-check svg { width: 32px; height: 32px; color: var(--green-600); fill: none; stroke: currentColor; stroke-width: 3; }

/* =====================================================================
   Formulaires
   ===================================================================== */

.form-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 26px;
  max-width: 460px; margin: 34px auto;
}
.field { display: grid; gap: 6px; margin-bottom: 15px; }
.field label { font-size: .87rem; font-weight: 600; }
.field .hint { font-size: .8rem; color: var(--text-muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--radius);
  border: 1px solid var(--border-strong); background: var(--surface);
  font-size: 16px; min-height: 48px;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--navy-700); box-shadow: 0 0 0 3px rgba(27, 75, 143, .14); }
.field.has-error input { border-color: var(--red-600); }
.field .error { color: var(--red-600); font-size: .82rem; }

.form-alert {
  padding: 11px 14px; border-radius: var(--radius); margin-bottom: 16px;
  background: var(--red-50); border: 1px solid rgba(220, 38, 38, .3);
  color: var(--red-600); font-size: .88rem;
}
.form-switch { text-align: center; margin-top: 18px; font-size: .9rem; color: var(--text-muted); }
.form-switch a { color: var(--navy-700); font-weight: 600; }

/* =====================================================================
   Modale
   ===================================================================== */

.modal-root {
  position: fixed; inset: 0; z-index: 120;
  display: grid; place-items: end center;
  background: rgba(10, 20, 40, .55); backdrop-filter: blur(3px);
  padding: 0;
}
@media (min-width: 640px) { .modal-root { place-items: center; padding: 24px; } }

.modal {
  background: var(--surface); width: 100%; max-width: 480px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 24px; max-height: 92vh; overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: sheet-up .22s cubic-bezier(.2, .8, .3, 1);
}
@media (min-width: 640px) { .modal { border-radius: var(--radius-lg); } }
@keyframes sheet-up { from { transform: translateY(18px); opacity: .6; } }
@media (prefers-reduced-motion: reduce) { .modal { animation: none; } }

.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.modal-head p { color: var(--text-muted); font-size: .9rem; margin: 5px 0 0; }

/* Panneau de filtre (menu sur desktop, feuille sur mobile) */
.filter-panel {
  position: fixed; z-index: 110; background: var(--surface);
  border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  border-radius: var(--radius-lg); padding: 16px; width: min(320px, calc(100vw - 24px));
  max-height: 70vh; overflow-y: auto;
}
@media (max-width: 719px) {
  .filter-panel {
    inset: auto 0 0 0; width: 100%; border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    max-height: 78vh; padding-bottom: 24px;
  }
}
.filter-option {
  display: flex; align-items: center; gap: 11px; padding: 10px 6px;
  border-radius: var(--radius-sm); cursor: pointer; font-size: .92rem;
}
.filter-option:hover { background: var(--surface-2); }
.filter-option input { width: 19px; height: 19px; accent-color: var(--navy-700); flex: 0 0 auto; }
.filter-option .n { margin-left: auto; color: var(--text-faint); font-size: .82rem; }
.filter-panel-foot { display: flex; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }

/* =====================================================================
   États, listes diverses
   ===================================================================== */

.empty-state { text-align: center; padding: 56px 20px; color: var(--text-muted); }
.empty-state h3 { color: var(--text); margin-bottom: 8px; }

.skeleton {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 16px;
}
.skeleton .line {
  height: 12px; border-radius: 6px; margin-bottom: 9px;
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--border) 50%, var(--surface-2) 75%);
  background-size: 200% 100%; animation: shimmer 1.3s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }
.skeleton .line.w60 { width: 60%; } .skeleton .line.w40 { width: 40%; } .skeleton .line.w80 { width: 80%; }

.pager { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 26px 0 10px; }
.pager span { font-size: .88rem; color: var(--text-muted); }

.list-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px; margin-bottom: 10px;
}
.list-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.data-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: .9rem; }
.data-row:last-child { border-bottom: 0; }
.data-row span:first-child { color: var(--text-muted); }

.status-pill { padding: 3px 10px; border-radius: var(--radius-full); font-size: .76rem; font-weight: 700; }
.status-succeeded { background: var(--green-100); color: var(--green-600); }
.status-pending { background: #FFF7E8; color: #96620A; }
.status-failed { background: var(--red-50); color: var(--red-600); }

/* =====================================================================
   Notifications
   ===================================================================== */

.toast-zone {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 20px; z-index: 200;
  display: grid; gap: 8px; width: min(440px, calc(100vw - 24px)); pointer-events: none;
}
.toast {
  background: var(--navy-900); color: #fff; padding: 13px 16px;
  border-radius: var(--radius); box-shadow: var(--shadow-lg); font-size: .9rem;
  animation: toast-in .2s ease-out;
}
.toast.is-error { background: var(--red-600); }
.toast.is-success { background: var(--green-600); }
@keyframes toast-in { from { transform: translateY(10px); opacity: 0; } }

/* =====================================================================
   Pied de page
   ===================================================================== */

.site-footer { border-top: 1px solid var(--border); background: var(--surface); margin-top: 40px; }
.footer-inner { padding-block: 30px; display: grid; gap: 20px; }
.footer-brand { display: flex; gap: 12px; align-items: flex-start; }
.footer-brand p { margin: 0; font-size: .9rem; color: var(--text-muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.site-footer nav a { color: var(--text-muted); text-decoration: none; font-size: .9rem; }
.site-footer nav a:hover { color: var(--text); text-decoration: underline; }
.footer-legal { font-size: .8rem; color: var(--text-faint); margin: 0; }
@media (min-width: 900px) {
  .footer-inner { grid-template-columns: 1fr auto; align-items: center; }
  .footer-legal { grid-column: 1 / -1; }
}

.demo-banner {
  background: #FFF7E8; border-bottom: 1px solid #FBE3B4; color: #96620A;
  padding: 9px 0; font-size: .85rem; text-align: center;
}
@media (prefers-color-scheme: dark) {
  .demo-banner { background: #3A2E12; border-color: #5A4718; color: #F1C475; }
}

[hidden] { display: none !important; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* =====================================================================
   PARTIE 2 — gratuité candidat, espace recruteur, paiement manuel
   ===================================================================== */

/* --- Jetons de visualisation ---------------------------------------
   Deux séries seulement, chacune sur son propre graphe : jamais deux
   échelles sur un même axe. Valeurs passées au validateur du système de
   design (bande de clarté, plancher de chroma, séparation daltonienne,
   contraste sur la surface réelle) en clair comme en sombre.            */
:root {
  --viz-1: #2a78d6;   /* vues */
  --viz-2: #16a97c;   /* candidatures */
  --viz-grid: #E6EAF2;
  --viz-axis: #8494AC;
}
@media (prefers-color-scheme: dark) {
  :root {
    --viz-1: #3987e5;
    --viz-2: #1fae7c;
    --viz-grid: #253148;
    --viz-axis: #7789A5;
  }
}

/* --- Conteneurs de page --------------------------------------------- */

.page-narrow { max-width: 720px; margin: 30px auto 50px; }
.page-wide { max-width: 1100px; margin: 26px auto 50px; }
.page-sub { color: var(--text-muted); margin: 8px 0 20px; max-width: 62ch; }
.muted { color: var(--text-muted); margin: 0; font-size: .93rem; }
.hint-inline { font-weight: 400; color: var(--text-muted); }
.hint-warn { color: #96620A; }
@media (prefers-color-scheme: dark) { .hint-warn { color: #F1C475; } }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px; margin-bottom: 16px;
}
.card-title { font-size: 1.05rem; margin-bottom: 12px; }

.field-row { display: grid; gap: 0 14px; }
@media (min-width: 620px) { .field-row { grid-template-columns: 1fr 1fr; } }

.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.check {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: var(--radius-full);
  border: 1px solid var(--border-strong); cursor: pointer; font-size: .89rem;
}
.check input { accent-color: var(--navy-700); width: 17px; height: 17px; }
.check:has(input:checked) { border-color: var(--navy-700); background: var(--surface-2); }
.check-block {
  display: flex; align-items: flex-start; border-radius: var(--radius);
  padding: 14px; margin: 6px 0 18px; width: 100%;
}

/* --- Encarts d'information ------------------------------------------ */

.notice {
  display: flex; gap: 11px; align-items: flex-start;
  padding: 13px 15px; border-radius: var(--radius); font-size: .9rem;
  margin-bottom: 14px;
}
.notice svg { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.notice-success { background: var(--green-100); color: #0F7A5A; }
.notice-info { background: #EEF3FC; color: #1B4B8F; }
.notice-warn { background: #FFF7E8; color: #96620A; }
.notice-block { align-items: center; }
.notice-block .btn { margin-left: auto; flex: 0 0 auto; }
@media (prefers-color-scheme: dark) {
  .notice-success { background: #0E3A2C; color: #7BE0B5; }
  .notice-info { background: #16304F; color: #9CC4F5; }
  .notice-warn { background: #3A2E12; color: #F1C475; }
}

/* --- Accueil : bandeaux --------------------------------------------- */

.hero-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 14px; border-radius: var(--radius-full);
  background: var(--green-100); color: #0F7A5A;
  font-size: .84rem; font-weight: 600; margin-bottom: 16px;
}
.hero-pill svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
@media (prefers-color-scheme: dark) { .hero-pill { background: #0E3A2C; color: #7BE0B5; } }

.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.hero-b2b { background:
  radial-gradient(120% 120% at 10% 0%, rgba(27, 75, 143, .14) 0%, transparent 55%),
  radial-gradient(90% 90% at 95% 0%, rgba(245, 158, 11, .10) 0%, transparent 50%); }

.how-icon {
  display: grid; place-items: center; width: 38px; height: 38px;
  border-radius: 11px; background: var(--surface-2); color: var(--navy-700);
  margin-bottom: 12px; border: 1px solid var(--border);
}
.how-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; }

.cta-band {
  display: grid; gap: 18px; padding: 28px;
  border-radius: var(--radius-lg); color: #fff;
  background: linear-gradient(140deg, var(--navy-900), var(--navy-700));
}
.cta-band h2 { margin-bottom: 8px; }
.cta-band p { color: rgba(255, 255, 255, .85); margin: 0; max-width: 62ch; }
@media (min-width: 800px) {
  .cta-band { grid-template-columns: 1fr auto; align-items: center; }
}

.quick-links { display: grid; gap: 10px; margin: 18px 0; }
@media (min-width: 620px) { .quick-links { grid-template-columns: repeat(2, 1fr); } }
.quick-link {
  display: flex; align-items: center; gap: 11px; padding: 16px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); text-decoration: none;
}
.quick-link:hover { border-color: var(--navy-700); }
.quick-link svg { width: 20px; height: 20px; color: var(--navy-700); fill: none; stroke: currentColor; stroke-width: 1.9; }

.list-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px; }

/* --- Badges spécifiques offres -------------------------------------- */

.badge-top { background: var(--navy-900); border-color: transparent; color: #FFD98A; }
.badge-top svg { width: 12px; height: 12px; fill: currentColor; stroke: none; }
.badge-sponsored { background: #FFF7E8; border-color: #FBE3B4; color: #96620A; }
.badge-verified { background: var(--green-100); border-color: transparent; color: #0F7A5A; }
.badge-verified svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.4; }
@media (prefers-color-scheme: dark) {
  .badge-sponsored { background: #3A2E12; border-color: #5A4718; color: #F1C475; }
  .badge-verified { background: #0E3A2C; color: #7BE0B5; }
}

/* Une annonce payée se voit, sans crier : un liseré, pas un fond criard. */
.job-card.is-promoted { border-color: var(--navy-700); box-shadow: inset 3px 0 0 var(--navy-700); }

/* --- Inscription : choix du rôle ------------------------------------ */

.role-switch { display: grid; gap: 10px; margin: 18px 0; }
@media (min-width: 520px) { .role-switch { grid-template-columns: 1fr 1fr; } }
.role-tab {
  display: flex; align-items: center; gap: 11px; text-align: left;
  padding: 15px; border-radius: var(--radius); cursor: pointer;
  border: 2px solid var(--border); background: var(--surface);
}
.role-tab:hover { border-color: var(--border-strong); }
.role-tab.is-active { border-color: var(--navy-700); background: var(--surface-2); }
.role-tab svg { width: 22px; height: 22px; flex: 0 0 auto; color: var(--navy-700); fill: none; stroke: currentColor; stroke-width: 1.9; }
.role-tab b { display: block; font-size: .93rem; }
.role-tab small { color: var(--text-muted); font-size: .81rem; }

.form-title { font-size: 1.4rem; margin-bottom: 6px; }
.form-sub { color: var(--text-muted); font-size: .9rem; margin: 0; }

/* --- Profil candidat ------------------------------------------------- */

.completeness-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 10px; }
.meter { height: 8px; border-radius: var(--radius-full); background: var(--surface-2); overflow: hidden; }
.meter-fill {
  height: 100%; border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--navy-700), var(--green-600));
  transition: width .4s ease;
}

.dropzone {
  display: grid; place-items: center; gap: 4px; text-align: center;
  padding: 26px 18px; border-radius: var(--radius); cursor: pointer;
  border: 2px dashed var(--border-strong); background: var(--surface-2);
}
.dropzone:hover { border-color: var(--navy-700); }
.dropzone svg { width: 26px; height: 26px; color: var(--text-faint); fill: none; stroke: currentColor; stroke-width: 1.7; }
.dropzone-sm { padding: 16px; }

.file-row {
  display: flex; align-items: center; gap: 12px; padding: 14px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2);
}
.file-row > svg { width: 22px; height: 22px; flex: 0 0 auto; color: var(--navy-700); fill: none; stroke: currentColor; stroke-width: 1.8; }
.file-row > span { flex: 1; min-width: 0; }

/* --- Espace recruteur : en-tête et onglets --------------------------- */

.rec-head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 18px; }
.rec-identity { display: flex; align-items: center; gap: 13px; flex: 1; min-width: 0; }
.rec-logo {
  width: 50px; height: 50px; border-radius: 14px; flex: 0 0 auto;
  display: grid; place-items: center; font-weight: 800; font-size: 1.1rem;
  background: linear-gradient(140deg, var(--navy-700), var(--navy-900)); color: #fff;
}
.rec-logo-admin svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; }
.rec-head h1 { font-size: 1.5rem; }
.rec-head .btn { flex: 0 0 auto; }
.rec-head .btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.2; }

.rec-tabs {
  display: flex; gap: 4px; margin-bottom: 20px; padding-bottom: 2px;
  overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--border);
}
.rec-tabs::-webkit-scrollbar { display: none; }
.rec-tab {
  display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto;
  padding: 11px 15px; text-decoration: none; color: var(--text-muted);
  font-weight: 500; font-size: .92rem; border-bottom: 2px solid transparent;
  margin-bottom: -1px; white-space: nowrap;
}
.rec-tab:hover { color: var(--text); }
.rec-tab.is-active { color: var(--navy-700); border-bottom-color: var(--navy-700); }
.rec-tab svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; }

/* --- Indicateurs clés ------------------------------------------------ */

.kpi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 16px; }
@media (min-width: 860px) { .kpi-grid { grid-template-columns: repeat(4, 1fr); } }
.kpi {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 17px;
}
/* Chiffres proportionnels sur les grandes valeurs : `tabular-nums` est
   réservé aux colonnes qui doivent s'aligner verticalement. */
.kpi b { display: block; font-size: 1.7rem; letter-spacing: -.03em; line-height: 1.1; }
.kpi span { display: block; font-size: .85rem; color: var(--text-muted); margin-top: 2px; }
.kpi small { display: block; font-size: .76rem; color: var(--text-faint); margin-top: 6px; }

/* --- Graphiques ------------------------------------------------------ */

.chart-grid { display: grid; gap: 14px; margin-bottom: 16px; }
@media (min-width: 940px) { .chart-grid { grid-template-columns: 1fr 1fr; } }

.chart {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 18px; margin: 0;
}
.chart-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.chart-head h3 { font-size: .98rem; }
.chart-head p { margin: 2px 0 0; font-size: .8rem; }
.chart-total { text-align: right; }
.chart-total b { font-size: 1.35rem; letter-spacing: -.02em; }
.chart-total span { display: block; font-size: .75rem; color: var(--text-muted); }

.chart-plot { position: relative; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }

.chart .grid { stroke: var(--viz-grid); stroke-width: 1; }
.chart .tick {
  fill: var(--viz-axis); font-size: 9px;
  font-family: var(--font); font-variant-numeric: tabular-nums;
}
.chart .peak { fill: var(--text); font-size: 10px; font-weight: 700; font-family: var(--font); }
.chart .bar { fill: var(--viz-1); transition: opacity .12s; }
.chart[data-series="2"] .bar { fill: var(--viz-2); }
.chart .bar-hit { fill: transparent; }
.chart .bar-group:hover .bar, .chart .bar-group:focus-visible .bar { opacity: .72; }
.chart .bar-group:hover .bar-hit { fill: color-mix(in srgb, var(--viz-1) 8%, transparent); }
.chart .bar-group:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 1px; }

.x-axis { position: relative; height: 18px; margin-top: 4px; }
.x-tick {
  position: absolute; transform: translateX(-50%); top: 0;
  font-size: .68rem; color: var(--viz-axis); white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* La vue tableau : toute valeur reste lisible sans survol ni couleur. */
.chart-table { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 10px; }
.chart-table summary { cursor: pointer; font-size: .82rem; color: var(--text-muted); }
.chart-table summary:hover { color: var(--text); }
.chart-table table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: .82rem; }
.chart-table th, .chart-table td { text-align: left; padding: 5px 8px; border-bottom: 1px solid var(--border); }
.chart-table td:last-child, .chart-table th:last-child { text-align: right; font-variant-numeric: tabular-nums; }

/* --- Tableaux de données --------------------------------------------- */

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 480px; }
.data-table th {
  text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .04em;
  color: var(--text-faint); padding: 8px 10px; border-bottom: 1px solid var(--border); font-weight: 700;
}
.data-table td { padding: 11px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.data-table code { font-size: .84rem; }

/* --- Annonces --------------------------------------------------------- */

.posting-card { padding: 18px; }
.posting-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 14px; }
.posting-head h3 { font-size: 1.02rem; }
.posting-stats { display: flex; gap: 20px; }
.posting-stats b { display: block; font-size: 1.25rem; letter-spacing: -.02em; }
.posting-stats span { font-size: .75rem; color: var(--text-muted); }
.posting-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.posting-actions svg { width: 15px; height: 15px; fill: currentColor; stroke: none; }

/* --- CVthèque --------------------------------------------------------- */

.cv-grid { display: grid; gap: 12px; }
@media (min-width: 760px) { .cv-grid { grid-template-columns: repeat(2, 1fr); } }

.cv-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 17px; display: grid; gap: 10px; align-content: start;
}
.cv-head { display: flex; align-items: center; gap: 11px; }
.cv-head > div { flex: 1; min-width: 0; }
.cv-avatar {
  width: 42px; height: 42px; border-radius: 12px; flex: 0 0 auto;
  display: grid; place-items: center; font-weight: 700;
  background: var(--surface-2); color: var(--navy-700); border: 1px solid var(--border);
}
.cv-avatar-locked svg { width: 20px; height: 20px; color: var(--text-faint); fill: none; stroke: currentColor; stroke-width: 1.8; }
.cv-card.is-locked { opacity: .96; }
.blurred { filter: blur(4px); user-select: none; }

.score-pill {
  flex: 0 0 auto; min-width: 38px; text-align: center;
  padding: 5px 9px; border-radius: var(--radius-full);
  font-weight: 800; font-size: .85rem; font-variant-numeric: tabular-nums;
}
/* Le score est aussi écrit en chiffres : la couleur ne porte jamais seule
   l'information. */
.score-high { background: var(--green-100); color: #0F7A5A; }
.score-mid { background: #FFF7E8; color: #96620A; }
.score-low { background: var(--surface-2); color: var(--text-muted); }
@media (prefers-color-scheme: dark) {
  .score-high { background: #0E3A2C; color: #7BE0B5; }
  .score-mid { background: #3A2E12; color: #F1C475; }
}

.match-reasons { list-style: none; padding: 0; margin: 0; display: grid; gap: 5px; font-size: .84rem; color: var(--text-muted); }
.match-reasons li { display: flex; gap: 7px; align-items: flex-start; }
.match-reasons svg { width: 14px; height: 14px; flex: 0 0 auto; margin-top: 2px; color: var(--green-600); fill: none; stroke: currentColor; stroke-width: 2.6; }

.cv-message {
  margin: 0; font-size: .87rem; color: var(--text-muted);
  background: var(--surface-2); padding: 11px 13px; border-radius: var(--radius);
}
.cv-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: .8rem; color: var(--text-muted); }
.cv-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.paywall-band {
  display: grid; gap: 16px; padding: 22px; margin-bottom: 16px;
  border-radius: var(--radius-lg); color: #fff;
  background: linear-gradient(140deg, var(--navy-900), var(--navy-700));
}
.paywall-band h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.paywall-band h3 svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; }
.paywall-band p { color: rgba(255, 255, 255, .85); margin: 0; font-size: .92rem; }
@media (min-width: 820px) { .paywall-band { grid-template-columns: 1fr auto; align-items: center; } }

/* --- Services et paiement -------------------------------------------- */

.service-grid { display: grid; gap: 14px; }
@media (min-width: 700px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .service-grid { grid-template-columns: repeat(4, 1fr); } }

.service-card {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px; display: flex; flex-direction: column;
}
.service-card.is-popular { border-color: var(--navy-700); box-shadow: var(--shadow-md); }
.service-card h3 { font-size: 1.02rem; margin-bottom: 6px; }
.service-card ul { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 8px; font-size: .87rem; flex: 1; }
.service-card li { display: flex; gap: 8px; align-items: flex-start; }
.service-card li svg { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 2px; color: var(--green-600); fill: none; stroke: currentColor; stroke-width: 2.6; }
.service-card .btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; }

.pay-channels-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 16px; }
.pay-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 13px; border-radius: var(--radius-full);
  font-size: .82rem; font-weight: 700; color: #fff; background: var(--chip, var(--navy-700));
}

.order-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid var(--border);
}
.order-row:last-child { border-bottom: 0; }
.order-row > div:first-child { flex: 1; min-width: 200px; }

.order-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; margin-bottom: 12px; background: var(--surface-2);
}
.order-card-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.order-card-head h3 { font-size: 1rem; margin: 4px 0 2px; }
.order-amount { text-align: right; }
.order-amount b { font-size: 1.2rem; }
.order-amount span { display: block; font-size: .78rem; }
.order-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.order-actions svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; }

.ref-strong { font-size: .95rem; font-weight: 700; letter-spacing: .06em; color: var(--navy-700); }

.proof-box {
  display: grid; gap: 9px; padding: 13px; margin-top: 13px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.proof-box .btn { justify-self: start; }

/* --- Écran de paiement (recruteur) ----------------------------------- */

.ref-box {
  padding: 15px; border-radius: var(--radius); margin-bottom: 14px;
  background: var(--surface-2); border: 1px dashed var(--border-strong);
}
.ref-value { display: flex; align-items: center; gap: 10px; margin-top: 5px; }
.ref-value code {
  font-size: 1.25rem; font-weight: 800; letter-spacing: .1em;
  color: var(--navy-700); flex: 1; word-break: break-all;
}
@media (prefers-color-scheme: dark) { .ref-value code { color: #9CC4F5; } }

.pay-tabs { display: flex; gap: 8px; margin: 16px 0 12px; }
.pay-tab {
  flex: 1; padding: 12px; border-radius: var(--radius); cursor: pointer;
  border: 2px solid var(--border); background: var(--surface);
  font-weight: 700; font-size: .92rem; min-height: 46px;
}
.pay-tab.is-active { border-color: var(--chip); color: var(--chip); background: color-mix(in srgb, var(--chip) 8%, transparent); }

.channel-panel { display: grid; gap: 14px; }
.pay-open {
  background: var(--chip); color: #fff; border: 0;
  text-decoration: none; text-align: center;
}
.pay-open:hover { filter: brightness(.94); }

.pay-number { display: grid; gap: 3px; }
.qr-block { display: grid; justify-items: center; gap: 8px; text-align: center; }
.qr-image {
  width: 200px; height: 200px; object-fit: contain; background: #fff;
  padding: 10px; border-radius: var(--radius); border: 1px solid var(--border);
}
.qr-image-sm { width: 120px; height: 120px; }
.qr-admin { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.qr-admin .dropzone { flex: 1; min-width: 200px; }
.qr-placeholder {
  width: 120px; height: 120px; display: grid; place-items: center; text-align: center;
  border: 1px dashed var(--border-strong); border-radius: var(--radius);
  color: var(--text-faint); font-size: .78rem; padding: 8px;
}

/* --- Administration --------------------------------------------------- */

.channel-card { border-left: 4px solid var(--chip); }
.channel-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 14px; }
.channel-head .card-title { margin: 0; flex: 1; }
.channel-badge {
  width: 34px; height: 34px; border-radius: 10px; flex: 0 0 auto;
  display: grid; place-items: center; color: #fff; font-weight: 800;
}
.switch { display: inline-flex; align-items: center; gap: 8px; font-size: .86rem; cursor: pointer; }
.switch input { width: 18px; height: 18px; accent-color: var(--green-600); }

.status-idle { background: var(--surface-2); color: var(--text-muted); }

.spinner-sm { width: 20px; height: 20px; border-width: 2px; margin: 0; }

.modal-wide { max-width: 620px; }

/* =====================================================================
   PARTIE 3 — circuit de recrutement
   Tri → contact → entretien → mérite → accueil → confirmation
   ===================================================================== */

.circuit-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; margin-bottom: 16px; }
.circuit-head .card-title { margin: 0; }

/* --- Barre d'étapes --------------------------------------------------- */

.stepper {
  display: flex; gap: 0; margin-bottom: 12px; padding: 4px 2px 10px;
  overflow-x: auto; scrollbar-width: none;
}
.stepper::-webkit-scrollbar { display: none; }

.step {
  position: relative; flex: 1 0 auto; min-width: 132px;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; cursor: pointer; text-align: left;
  background: transparent; border: 0; color: var(--text-muted);
}
/* Le trait de liaison passe DERRIÈRE les pastilles : il relie les étapes
   sans jamais couper un chiffre. */
.step::before {
  content: ''; position: absolute; top: 30px; left: 0; right: 50%;
  height: 2px; background: var(--border); z-index: 0;
}
.step::after {
  content: ''; position: absolute; top: 30px; left: 50%; right: 0;
  height: 2px; background: var(--border); z-index: 0;
}
.step:first-child::before, .step:last-child::after { display: none; }
.step.is-done::before, .step.is-done::after,
.step.is-current::before { background: var(--navy-700); }

.step-dot {
  position: relative; z-index: 1; flex: 0 0 auto;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: .88rem;
  background: var(--surface); border: 2px solid var(--border); color: var(--text-faint);
  transition: background .18s, border-color .18s, color .18s;
}
.step-dot svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 3; }
.step.is-done .step-dot { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }
.step.is-current .step-dot {
  background: var(--surface); border-color: var(--navy-700); color: var(--navy-700);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--navy-700) 14%, transparent);
}
.step-label { position: relative; z-index: 1; display: grid; line-height: 1.25; }
.step-label b { font-size: .88rem; }
.step-label small { font-size: .74rem; color: var(--text-faint); }
.step.is-current .step-label b { color: var(--navy-700); }
.step:hover .step-dot { border-color: var(--border-strong); }

.stage-intro { color: var(--text-muted); font-size: .92rem; margin: 0 0 18px; }
.stage-panel { margin-bottom: 18px; }

/* --- Étape 1 : tri des CV, barre de sélection ------------------------- */

.select-bar {
  position: sticky; top: calc(var(--header-h) + 4px); z-index: 30;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  padding: 12px 16px; margin-bottom: 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  transition: border-color .15s, box-shadow .15s;
}
.select-bar.is-armed { border-color: var(--green-600); box-shadow: 0 0 0 1px var(--green-600); }
.select-count { flex: 1; font-size: .88rem; font-weight: 600; color: var(--text-muted); }
.select-bar.is-armed .select-count { color: var(--green-600); }
.select-bar .btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.4; }

.pick-card { position: relative; padding-left: 52px; transition: border-color .15s, background .15s; }
.pick-card.is-picked { border-color: var(--green-600); background: color-mix(in srgb, var(--green-600) 5%, var(--surface)); }
.pick-check { position: absolute; left: 16px; top: 18px; }
.pick-check input { width: 22px; height: 22px; accent-color: var(--green-600); cursor: pointer; }
.pick-card .cv-actions svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.9; }

/* --- Étape 2 : contact ------------------------------------------------ */

.contact-block { display: grid; gap: 8px; }
.contact-line {
  display: flex; align-items: center; gap: 11px; padding: 12px 14px;
  border-radius: var(--radius); text-decoration: none;
  background: var(--surface-2); border: 1px solid var(--border);
}
.contact-line:hover { border-color: var(--navy-700); }
.contact-line > svg { width: 20px; height: 20px; flex: 0 0 auto; color: var(--navy-700); fill: none; stroke: currentColor; stroke-width: 1.9; }
.contact-line > span { flex: 1; min-width: 0; display: grid; }
.contact-line small { font-size: .72rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: .04em; }
.contact-line b { font-size: 1rem; letter-spacing: .01em; word-break: break-all; }
.contact-copy {
  flex: 0 0 auto; font-size: .78rem; font-weight: 600; color: var(--navy-700);
  padding: 5px 10px; border-radius: var(--radius-full); background: var(--surface);
  border: 1px solid var(--border-strong);
}
.contact-copy:hover { border-color: var(--navy-700); }

/* Un candidat déjà joint est grisé : il reste lisible, mais l'œil va
   d'abord vers ceux qui restent à contacter. */
.contact-card.is-contacted { opacity: .58; filter: saturate(.35); }
.contact-card.is-contacted:hover { opacity: 1; filter: none; }
.contacted-flag {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  padding: 4px 11px; border-radius: var(--radius-full);
  background: var(--green-100); color: #0F7A5A; font-size: .76rem; font-weight: 700;
}
.contacted-flag svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 3; }
@media (prefers-color-scheme: dark) { .contacted-flag { background: #0E3A2C; color: #7BE0B5; } }

/* --- Étape 3 : grille d'entretien ------------------------------------- */

.note-banner {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 14px 16px; margin-bottom: 16px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); color: #fff;
}
.note-banner > span:first-child { font-size: .82rem; color: rgba(255, 255, 255, .8); }
.note-banner b { font-size: 1.9rem; letter-spacing: -.03em; line-height: 1; }
.note-banner b small { font-size: .95rem; font-weight: 500; opacity: .75; }
.note-banner .hint { margin-left: auto; color: rgba(255, 255, 255, .75); }

.grid-criteria { display: grid; gap: 12px; margin-bottom: 18px; }
.criterion {
  padding: 14px; border-radius: var(--radius);
  background: var(--surface-2); border: 1px solid var(--border);
}
.criterion-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.criterion-head b { font-size: .94rem; }
.criterion-weight {
  font-size: .74rem; font-weight: 700; color: var(--text-faint);
  padding: 2px 8px; border-radius: var(--radius-full); background: var(--surface);
  border: 1px solid var(--border);
}
.criterion .hint { margin: 3px 0 10px; font-size: .81rem; }

.score-row { display: flex; gap: 6px; }
.score-dot { flex: 1; cursor: pointer; }
.score-dot input { position: absolute; opacity: 0; width: 0; height: 0; }
.score-dot span {
  display: grid; place-items: center; height: 42px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1.5px solid var(--border-strong);
  font-weight: 700; font-size: .92rem; color: var(--text-muted);
  transition: background .12s, border-color .12s, color .12s, transform .08s;
}
.score-dot:hover span { border-color: var(--navy-700); }
.score-dot.is-on span {
  background: var(--navy-700); border-color: var(--navy-700); color: #fff;
  transform: translateY(-1px);
}
.score-dot input:focus-visible + span { outline: 3px solid var(--blue-500); outline-offset: 2px; }

/* --- Étape 4 : classement au mérite ----------------------------------- */

.merit-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 14px;
}
.merit-toolbar .btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }

.merit-list { display: grid; gap: 10px; }
.merit-row {
  display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center;
  padding: 16px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.merit-row.is-podium { border-color: var(--border-strong); }
.merit-row.rank-1 { border-color: #D9A441; box-shadow: inset 3px 0 0 #D9A441; }
.merit-row.rank-2 { border-color: #9AA7B4; box-shadow: inset 3px 0 0 #9AA7B4; }
.merit-row.rank-3 { border-color: #C08457; box-shadow: inset 3px 0 0 #C08457; }

.merit-rank {
  display: grid; place-items: center; width: 46px; flex: 0 0 auto;
  color: var(--text-faint);
}
.merit-rank svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.merit-rank b { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.rank-1 .merit-rank { color: #D9A441; }
.rank-2 .merit-rank { color: #9AA7B4; }
.rank-3 .merit-rank { color: #C08457; }

.merit-identity { min-width: 0; display: grid; gap: 4px; }
.merit-identity b { font-size: 1rem; }
.merit-bar { height: 6px; border-radius: var(--radius-full); background: var(--surface-2); overflow: hidden; margin-top: 4px; }
.merit-bar-fill { height: 100%; border-radius: var(--radius-full); background: var(--viz-1); }

.merit-score { text-align: right; display: grid; gap: 5px; justify-items: end; }
.merit-score > b { font-size: 1.5rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.merit-score > b small { font-size: .8rem; color: var(--text-muted); font-weight: 500; }
.merit-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; padding-top: 12px; border-top: 1px solid var(--border); }
.merit-actions svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }

@media (min-width: 900px) {
  .merit-row { grid-template-columns: auto 1fr auto auto; }
  .merit-actions { grid-column: auto; border-top: 0; padding-top: 0; }
}

/* --- Étape 5 : accueil et induction ----------------------------------- */

.onboarding-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }

.ring { position: relative; width: 62px; height: 62px; flex: 0 0 auto; display: grid; place-items: center; }
.ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 5; }
.ring-track { stroke: var(--surface-2); }
.ring-fill { stroke: var(--green-600); stroke-linecap: round; transition: stroke-dashoffset .35s ease; }
.ring span { font-size: .95rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.ring span small { font-size: .62rem; font-weight: 600; color: var(--text-muted); }

.induction-list { list-style: none; padding: 0; margin: 8px 0 16px; display: grid; gap: 4px; }
.induction-item {
  display: flex; align-items: flex-start; gap: 11px; padding: 11px 13px;
  border-radius: var(--radius); cursor: pointer; font-size: .92rem;
  border: 1px solid transparent; transition: background .12s, border-color .12s;
}
.induction-item:hover { background: var(--surface-2); }
.induction-item input { width: 19px; height: 19px; flex: 0 0 auto; margin-top: 1px; accent-color: var(--green-600); }
.induction-item.is-done { background: var(--green-100); border-color: transparent; }
.induction-item.is-done span { color: var(--text-muted); text-decoration: line-through; text-decoration-thickness: 1px; }
@media (prefers-color-scheme: dark) { .induction-item.is-done { background: #0E3A2C; } }

/* --- Étape 6 : décision ----------------------------------------------- */

.decision-options { display: grid; gap: 9px; margin-bottom: 16px; }
.decision-option {
  display: flex; align-items: flex-start; gap: 11px; padding: 14px;
  border-radius: var(--radius); cursor: pointer;
  border: 2px solid var(--border); background: var(--surface);
}
.decision-option:hover { border-color: var(--border-strong); }
.decision-option.is-selected { border-color: var(--navy-700); background: var(--surface-2); }
.decision-option input { width: 19px; height: 19px; flex: 0 0 auto; margin-top: 2px; accent-color: var(--navy-700); }
.decision-option span { display: grid; gap: 2px; }
.decision-option small { color: var(--text-muted); font-size: .82rem; }

/* --- Candidats écartés ------------------------------------------------ */

.rejected-block summary { cursor: pointer; font-weight: 600; font-size: .92rem; color: var(--text-muted); }
.rejected-block summary:hover { color: var(--text); }
.rejected-list { margin-top: 12px; display: grid; gap: 6px; }
.rejected-list .list-row { padding: 12px; background: var(--surface-2); border-radius: var(--radius); }
.rejected-list svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }

/* =====================================================================
   PARTIE 4 — périmètre africain, sources multiples, recommandations
   ===================================================================== */

/* --- Sélecteur de zone sur l'accueil --------------------------------- */

.region-picker {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-top: 16px;
}
.region-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .82rem; font-weight: 600; color: var(--text-muted); margin-right: 2px;
}
.region-label svg { width: 16px; height: 16px; }
.region-pill {
  padding: 7px 14px; border-radius: var(--radius-full);
  border: 1px solid var(--border); background: var(--surface);
  font-size: .85rem; font-weight: 500; color: var(--text-muted); cursor: pointer;
  min-height: 36px;
}
.region-pill:hover { border-color: var(--navy-700); color: var(--navy-700); }
.region-pill.is-active {
  background: var(--navy-900); border-color: var(--navy-900); color: #fff; font-weight: 600;
}

/* --- Filtre de zone dans les résultats -------------------------------- */

.chip-zone svg:first-child { width: 15px; height: 15px; margin-right: 2px; }
.zone-panel { display: grid; gap: 2px; }
.zone-title {
  margin: 12px 0 4px; font-size: .74rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em; color: var(--text-faint);
}
.zone-title:first-child { margin-top: 0; }
.zone-countries { max-height: 240px; overflow-y: auto; }

/* --- Provenance des offres -------------------------------------------- */

.badge-curated { background: #EAF1FB; border-color: #CFE0F7; color: #0A66C2; }
@media (prefers-color-scheme: dark) {
  .badge-curated { background: #14284A; border-color: #1E3D6B; color: #8FBEF5; }
}

/* « Vue sur 3 sources » : la fusion des doublons, rendue visible. */
.multi-source { display: inline-flex; align-items: center; gap: 5px; color: var(--green-600); font-weight: 600; }
.multi-source svg { width: 13px; height: 13px; stroke-width: 2.8; }

/* --- Recommandations --------------------------------------------------- */

.reco-head { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 14px; margin-bottom: 8px; }
.reco-head h1 { display: flex; align-items: center; gap: 10px; }
.reco-head h1 svg { width: 26px; height: 26px; color: var(--amber-500); fill: none; stroke: currentColor; stroke-width: 1.8; }

.reco-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
  padding: 13px 16px; margin-bottom: 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.reco-bar > span:first-child { font-size: .92rem; }
.reco-bar .hint { flex: 1; }
.reco-bar a { color: var(--navy-700); font-weight: 600; }

.reco-grid { display: grid; gap: 12px; }
@media (min-width: 820px) { .reco-grid { grid-template-columns: repeat(2, 1fr); } }

.reco-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 17px;
  display: grid; gap: 11px; align-content: start;
  transition: opacity .2s, transform .2s, border-color .15s;
}
.reco-card:hover { border-color: var(--border-strong); }
.reco-card.is-leaving { opacity: 0; transform: translateY(-6px); }

.reco-top { display: flex; gap: 12px; align-items: flex-start; }
.reco-top h3 { font-size: 1rem; line-height: 1.35; margin-bottom: 3px; }
.reco-top .score-pill { flex: 0 0 auto; }

.reco-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.reco-actions .badge { margin-right: auto; }
.reco-foot { padding-top: 10px; border-top: 1px solid var(--border); font-size: .8rem; }

/* --- Engagement de confidentialité ------------------------------------ */

.dpa-law {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; margin-bottom: 14px; border-radius: var(--radius);
  background: var(--surface-2); border: 1px solid var(--border);
  border-left: 4px solid var(--navy-700);
}
.dpa-law > svg { width: 22px; height: 22px; flex: 0 0 auto; color: var(--navy-700); }
.dpa-law > div { display: grid; gap: 3px; }
.dpa-law b { font-size: .93rem; }

.dpa-intro { font-size: .93rem; color: var(--text); margin: 0 0 14px; }

.dpa-list { margin: 0 0 16px; padding-left: 0; list-style: none; counter-reset: dpa; display: grid; gap: 10px; }
.dpa-list li {
  counter-increment: dpa; position: relative;
  padding: 13px 14px 13px 46px; border-radius: var(--radius);
  background: var(--surface-2); border: 1px solid var(--border);
}
.dpa-list li::before {
  content: counter(dpa); position: absolute; left: 13px; top: 13px;
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; font-size: .74rem; font-weight: 800;
  background: var(--navy-900); color: #fff;
}
.dpa-list b { display: block; font-size: .92rem; margin-bottom: 3px; }
.dpa-list span { font-size: .87rem; color: var(--text-muted); line-height: 1.55; }

.dpa-closing { font-size: .87rem; color: var(--text-muted); margin: 0 0 12px; }

/* --- Boîte de messages du candidat ------------------------------------ */

.mail-item {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px 14px; margin-bottom: 8px; background: var(--surface-2);
}
.mail-item summary { cursor: pointer; font-weight: 600; font-size: .9rem; }
.mail-body {
  margin: 12px 0 0; padding: 12px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--border);
  font-family: inherit; font-size: .85rem; line-height: 1.6;
  color: var(--text-muted); white-space: pre-wrap; overflow-x: auto;
}

/* --- Divers ----------------------------------------------------------- */

.data-table tr.is-muted { opacity: .5; }
.data-table tr.is-muted b { text-decoration: line-through; }

/* --- Ajustements mobiles --------------------------------------------- */

@media (max-width: 620px) {
  .region-picker { gap: 6px; }
  .region-pill { font-size: .8rem; padding: 6px 11px; }
  .reco-bar { flex-direction: column; align-items: flex-start; }
  .step { min-width: 112px; padding: 10px; }
  .step-label b { font-size: .8rem; }
  .select-bar { position: static; }
  .merit-row { grid-template-columns: auto 1fr; }
  .merit-score { grid-column: 2; justify-items: start; text-align: left; }
  .note-banner .hint { margin-left: 0; width: 100%; }
  .score-dot span { height: 46px; }
  .rec-head { align-items: flex-start; }
  .rec-head .btn { width: 100%; }
  .posting-stats { gap: 16px; }
  .order-card-head { flex-direction: column; }
  .order-amount { text-align: left; }
  .pay-tabs { flex-direction: column; }
  .qr-image { width: 170px; height: 170px; }
}
