/* =====================================================
 * Talent Onboarding — single-column wizard (no preview)
 * Workflow client "VF Talent onb" habillé du design app.
 * Langage visuel : stepper sticky en haut, gold Tastellers,
 * une seule colonne centrée ~820px.
 * Ported verbatim from the canonical mockup (mockups/talent/onboarding)
 * so the real wizard is pixel-perfect. No inline CSS in the view.
 * ===================================================== */

/* === Shell tokens === */
.pb-shell {
  --pb-bg: #FFFFFF;
  --pb-surface: #FFFFFF;
  --pb-surface-warm: #FBF8F1;
  --pb-border: #E5E5E5;
  --pb-border-soft: #EFEAE0;
  --pb-text: #0A0A0A;
  --pb-text-muted: #737373;
  --pb-text-dim: #A3A3A3;
  --pb-gold-main: #A38543;
  --pb-gold-deep: #5A4A25;
  --pb-grad: linear-gradient(99deg, #BD9733 0%, #E5D29F 25%, #E8CC6E 50%, #E5D29F 75%, #FFF4C2 100%);
  --pb-grad-dark: linear-gradient(135deg, #5A4A25 0%, #422D05 100%);
  --pb-radius: 12px;
  --pb-radius-sm: 8px;
  font-family: 'Geist', system-ui, sans-serif;
  background: var(--pb-bg);
  color: var(--pb-text);
  min-height: 100vh;
}

/* === Sticky stepper === */
.pb-stepbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--pb-border);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.pb-brand {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.01em;
  color: var(--pb-text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.pb-brand-logo { height: 24px; width: auto; }

.pb-steps {
  display: inline-flex;
  align-items: center;
  gap: 0;
  flex: 1;
  justify-content: center;
}
.pb-step { display: inline-flex; align-items: center; gap: 8px; }
.pb-step-num {
  width: 24px;
  height: 24px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  border: 0;
  background: #F4F4F5;
  color: var(--pb-text-dim);
  cursor: pointer;
}
.pb-step-num:not(.done):not(.active) { background: #F4F4F5; color: var(--pb-text-dim); border: 1px dashed var(--pb-border); }
.pb-step-num.done { background: var(--pb-grad); color: #000; border: 0; }
.pb-step-num.active { background: #000; color: #E8CC6E; box-shadow: 0 0 0 3px rgba(163,133,67,.18); border: 0; }
.pb-step-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--pb-text-muted);
  white-space: nowrap;
  background: transparent;
  border: 0;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
}
.pb-step-label.active { color: var(--pb-text); font-weight: 600; }
.pb-step-line {
  width: 32px;
  height: 1px;
  background: var(--pb-border);
  margin: 0 12px;
}
.pb-step-line.done { background: linear-gradient(90deg, var(--pb-gold-main), #E8CC6E); height: 2px; }

.pb-header-right { display: flex; align-items: center; gap: 14px; }
.pb-help-link {
  font-size: 13px;
  color: var(--pb-text-muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 9999px;
  border: 1px solid var(--pb-border);
  transition: all .15s ease;
}
.pb-help-link:hover { border-color: var(--pb-gold-main); color: var(--pb-gold-main); }
.pb-exit {
  font-size: 13px;
  color: var(--pb-text-muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 9999px;
}
.pb-exit:hover { background: rgba(163,133,67,.06); color: var(--pb-gold-main); }

/* === Single-column layout === */
.pb-split {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px 56px;
  background: #FFFFFF;
}
.pb-pane-right {
  background: #FFFFFF;
  padding: 0;
  width: 100%;
  max-width: 820px;
}

/* ============ FORM ============ */
.tb-form { display: flex; flex-direction: column; gap: 24px; width: 100%; }
.tb-form-head { display: flex; flex-direction: column; gap: 6px; }
.tb-step-counter {
  font-size: 10px; font-weight: 700; letter-spacing: 0.18em;
  color: #A38543; text-transform: uppercase;
}
.tb-step-title {
  font-family: 'Geist', system-ui, sans-serif;
  font-size: 24px; font-weight: 700; color: #0A0A0A; line-height: 1.15;
}
.tb-step-title em { font-style: italic; color: var(--pb-gold-main); }
.tb-step-sub { font-size: 13px; color: #737373; line-height: 1.5; }
.tb-step-sub.tight { margin-top: -6px; }

.tb-section-card {
  background: #FAFAFA;
  border: 1px solid #EFEAE0;
  border-radius: 12px;
  padding: 18px 20px;
  display: flex; flex-direction: column; gap: 14px;
}
.tb-section-card.plain { background: #FFFFFF; }
.tb-section-card-title { font-size: 13px; font-weight: 700; color: #0A0A0A; }
.tb-section-card-title.with-opt { display: flex; align-items: center; gap: 8px; }
.tb-opt-pill {
  font-weight: 500; text-transform: none; letter-spacing: 0; color: #A3A3A3;
  background: #F0ECE4; padding: 2px 8px; border-radius: 9999px; font-size: 9px;
}
.tb-grid { display: grid; gap: 12px; }
.tb-grid.two { grid-template-columns: 1fr 1fr; }

.tb-field { display: flex; flex-direction: column; gap: 5px; }
.tb-field-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.12em;
  color: #525252; text-transform: uppercase;
  display: flex; align-items: center; gap: 6px;
}
.tb-field-label .req { color: #BD9733; margin-left: 2px; }
.tb-field-label .opt {
  font-weight: 500; text-transform: none; letter-spacing: 0;
  color: #A3A3A3;
  background: #F0ECE4; padding: 2px 8px; border-radius: 9999px; font-size: 9px;
}
.tb-input, .tb-select {
  width: 100%;
  border: 1px solid #E5E0D4;
  background: #FFFFFF;
  border-radius: 8px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 13px;
  color: #0A0A0A;
  transition: border-color .15s ease, background .15s ease;
  box-sizing: border-box;
}
.tb-input:focus, .tb-select:focus { outline: none; border-color: #BD9733; }
.tb-field-hint { font-size: 11px; color: #A3A3A3; line-height: 1.45; margin-top: 2px; }

/* SSO buttons */
.tb-sso-stack { display: flex; flex-direction: column; gap: 8px; }
.tb-sso-btn {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; padding: 13px 18px; border-radius: 10px;
  border: 1.5px solid #E5E0D8; background: #FFFFFF;
  font-family: inherit; font-size: 13px; font-weight: 500;
  color: #0A0A0A; cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.tb-sso-btn:hover { border-color: #BD9733; box-shadow: 0 2px 10px rgba(189,151,51,0.1); }
.tb-divider {
  display: flex; align-items: center; gap: 10px; margin: 4px 0;
  font-size: 11px; color: #A3A3A3;
}
.tb-divider::before, .tb-divider::after { content: ''; flex: 1; height: 1px; background: #E5E0D4; }

/* CGU checkbox */
.tb-cgu-row { display: flex; align-items: flex-start; gap: 10px; padding: 2px 0; }
.tb-cgu-row input[type="checkbox"] {
  width: 15px; height: 15px; accent-color: #BD9733; margin-top: 2px; flex-shrink: 0; cursor: pointer;
}
.tb-cgu-label { font-size: 11px; color: #525252; line-height: 1.6; cursor: pointer; }
.tb-cgu-label a { color: #A38543; text-decoration: underline; text-underline-offset: 2px; }

/* Univers selector (photo cards) */
.tb-univers-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tb-univers-card {
  position: relative;
  min-height: 110px;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background-size: cover;
  background-position: center;
  border: 2.5px solid transparent;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 14px;
}
.tb-univers-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,0.28); }
.tb-univers-card.is-selected {
  border-color: #BD9733;
  box-shadow: 0 0 0 3px rgba(189,151,51,0.30), 0 8px 22px rgba(0,0,0,0.22);
}
.tb-univers-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.20) 60%, rgba(0,0,0,0.05) 100%);
  pointer-events: none;
}
.tb-univers-title {
  position: relative; z-index: 1;
  font-size: 16px; font-weight: 700; color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.tb-univers-sub {
  position: relative; z-index: 1;
  font-size: 10.5px; color: rgba(255,255,255,0.82);
  margin-top: 3px; line-height: 1.35;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
.tb-univers-check {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  width: 22px; height: 22px; border-radius: 9999px;
  background: var(--pb-grad);
  color: #000; display: none; place-items: center;
  font-size: 12px; font-weight: 800;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.tb-univers-card.is-selected .tb-univers-check { display: grid; }

/* Domaine list (radio cards) */
.tb-domaine-list { display: flex; flex-direction: column; gap: 7px; }
.tb-domaine-btn {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 12px 14px; border-radius: 10px;
  border: 1.5px solid #E5E0D4; background: #FFFFFF;
  font-family: inherit; font-size: 13px; font-weight: 600; color: #525252;
  cursor: pointer; text-align: left; transition: all .15s ease;
}
.tb-domaine-btn:hover { border-color: #BD9733; }
.tb-domaine-btn.is-selected {
  background: #FBF4E0; border-color: #BD9733; color: #5A4A25;
  box-shadow: 0 0 0 3px rgba(189,151,51,0.12);
}

/* Pills */
.tb-pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tb-pill {
  padding: 9px 15px; border-radius: 9999px;
  border: 1px solid #E5E0D4; background: #FFFFFF;
  font-size: 12px; font-weight: 600; color: #525252;
  cursor: pointer; transition: all .15s ease; font-family: inherit;
  display: inline-flex; align-items: center; gap: 7px;
}
.tb-pill:hover { border-color: #BD9733; }
.tb-pill.is-selected { background: var(--pb-grad); color: #000; border-color: transparent; }
.tb-pill .em { font-size: 15px; line-height: 1; }

/* Suggestion chips (titre / km) */
.tb-sug-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tb-sug-chip {
  padding: 6px 12px; border-radius: 9999px;
  border: 1px solid #E5E0D4; background: #FFFFFF;
  font-size: 11px; font-weight: 600; color: #525252;
  cursor: pointer; transition: all .15s ease; font-family: inherit;
}
.tb-sug-chip:hover { border-color: #BD9733; }
.tb-sug-chip.is-selected { background: #FBF4E0; border-color: #BD9733; color: #5A4A25; }

/* Choice cards (format / contrat / disponibilité) */
.tb-choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tb-choice-grid.four { grid-template-columns: repeat(4, 1fr); }
.tb-choice-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; padding: 14px 8px; border-radius: 11px;
  border: 1.5px solid #E5E0D4; background: #FFFFFF;
  font-size: 12px; font-weight: 600; color: #525252;
  text-align: center; line-height: 1.3; min-height: 64px;
  cursor: pointer; transition: all .15s ease; font-family: inherit;
}
.tb-choice-card:hover { border-color: #BD9733; }
.tb-choice-card.is-selected {
  background: #FBF4E0; border-color: #BD9733; color: #5A4A25;
  box-shadow: 0 0 0 3px rgba(189,151,51,0.12);
}
.tb-choice-em { font-size: 20px; line-height: 1; }
.tb-choice-title { font-size: 13px; font-weight: 700; color: #0A0A0A; }
.tb-choice-sub { font-size: 10.5px; color: #737373; }
.tb-choice-card.is-selected .tb-choice-title { color: var(--pb-gold-deep); }

/* Range slider (salaire min/max) */
.tb-range-wrap { padding: 6px 2px 0; }
.tb-range-track {
  position: relative; height: 4px; border-radius: 2px;
  background: #E5E0D4; margin: 16px 0 30px;
}
.tb-range-fill {
  position: absolute; height: 4px; border-radius: 2px;
  background: var(--pb-gold-main); left: 0; width: 50%;
}
.tb-range-input {
  position: absolute; width: 100%; pointer-events: none;
  -webkit-appearance: none; appearance: none;
  height: 4px; background: transparent; top: 0; margin: 0; padding: 0;
}
.tb-range-input::-webkit-slider-thumb {
  pointer-events: all; -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: #fff; border: 2px solid var(--pb-gold-main);
  box-shadow: 0 2px 8px rgba(0,0,0,0.13); cursor: pointer; margin-top: -9px;
}
.tb-range-input::-moz-range-thumb {
  pointer-events: all; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 2px solid var(--pb-gold-main);
  box-shadow: 0 2px 8px rgba(0,0,0,0.13); cursor: pointer;
}
.tb-range-vals { display: flex; justify-content: space-between; align-items: flex-end; margin-top: -22px; }
.tb-range-block { display: flex; flex-direction: column; gap: 1px; }
.tb-range-block.right { align-items: flex-end; }
.tb-range-label { font-size: 9px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #A38543; }
.tb-range-amount { font-size: 18px; font-weight: 700; color: #0A0A0A; }

/* TJM prefix input */
.tb-tjm-wrap { position: relative; }
.tb-tjm-prefix {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  font-size: 13px; color: #A3A3A3; font-weight: 500; pointer-events: none;
}
.tb-input.tjm { padding-left: 28px; }

/* km radius pills */
.tb-km-pills { display: flex; gap: 6px; flex-wrap: wrap; }

/* Info card */
.tb-info-card {
  background: #FBF8F1; border: 1px solid #EFEAE0;
  border-radius: 10px; padding: 12px 14px;
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 12px; color: #525252; line-height: 1.55;
}
.tb-info-card strong { color: #A38543; }
.tb-info-icon { font-size: 16px; flex-shrink: 0; line-height: 1.3; }

/* ============ FINAL: WELCOME SCREEN ============ */
.tb-welcome-hero {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 6px; padding: 4px 0 8px;
}
.tb-welcome-check {
  width: 60px; height: 60px; border-radius: 9999px;
  background: var(--pb-grad);
  display: grid; place-items: center; color: #000;
  margin-bottom: 8px; box-shadow: 0 6px 18px rgba(189,151,51,0.3);
}
.tb-welcome-title {
  font-family: 'Geist', system-ui, sans-serif;
  font-size: 26px; font-weight: 700; color: #0A0A0A; line-height: 1.15;
}
.tb-welcome-title em { font-style: italic; color: var(--pb-gold-main); }
.tb-welcome-meta {
  font-size: 13px; color: #737373;
  display: inline-flex; align-items: center; gap: 8px;
}
.tb-welcome-meta .sep { color: #D4CCB8; }
.tb-welcome-sub { max-width: 440px; margin-top: 6px; }
.tb-status-dot {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600; color: #B8912A;
}
.tb-status-dot::before { content: ''; width: 7px; height: 7px; border-radius: 9999px; background: #B8912A; }

/* Activation checklist */
.tb-checklist { display: flex; flex-direction: column; gap: 8px; }
.tb-check-item {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 15px; border-radius: 12px;
  border: 1px solid #EFEAE0; background: #FFFFFF;
  cursor: pointer; transition: all .15s ease; text-decoration: none;
}
.tb-check-item:hover { border-color: #BD9733; }
.tb-check-item.mandatory { background: #FBF4E0; border-color: rgba(189,151,51,0.35); }
.tb-check-icon {
  width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 15px;
  background: #FBF4E0; color: #A38543;
}
.tb-check-item.mandatory .tb-check-icon { background: var(--pb-grad); color: #000; }
.tb-check-body { flex: 1; min-width: 0; }
.tb-check-label { font-size: 13px; font-weight: 600; color: #0A0A0A; }
.tb-check-sub { font-size: 11px; color: #737373; margin-top: 1px; }
.tb-check-badge {
  font-size: 9px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 9999px; white-space: nowrap; flex-shrink: 0;
}
.tb-check-badge.req { background: #FAF0D0; color: #A38543; border: 1px solid rgba(184,145,42,0.3); }
.tb-check-badge.ai { background: #fff; color: #A38543; border: 1px solid #E5D29F; }
.tb-check-arrow { color: #A3A3A3; font-size: 16px; flex-shrink: 0; }

/* Job cards (offres recommandées) */
.tb-job-stack { display: flex; flex-direction: column; gap: 8px; }
.tb-job-card {
  background: #FFFFFF; border: 1px solid #EFEAE0; border-radius: 12px;
  padding: 13px 14px; display: flex; align-items: flex-start; gap: 12px;
  transition: box-shadow .15s ease;
}
.tb-job-card:hover { box-shadow: 0 4px 16px rgba(38,28,8,0.08); }
.tb-job-avatar {
  width: 42px; height: 42px; border-radius: 10px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 13px; font-weight: 700; color: #fff;
}
.tb-job-body { flex: 1; min-width: 0; }
.tb-job-row1 { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 2px; }
.tb-job-title { font-size: 14px; font-weight: 600; color: #0A0A0A; }
.tb-job-badge {
  font-size: 10px; font-weight: 600; border-radius: 9999px; padding: 3px 8px; white-space: nowrap;
}
.tb-job-badge.match { background: #FBF6EC; color: #A38543; border: 1px solid rgba(163,133,67,0.25); }
.tb-job-badge.new { background: #F5F1EB; color: #737373; border: 1px solid rgba(0,0,0,0.08); }
.tb-job-sub { font-size: 12px; color: #737373; margin-bottom: 7px; }
.tb-job-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tb-job-tag {
  font-size: 11px; padding: 3px 9px; border-radius: 9999px;
  border: 1px solid rgba(0,0,0,0.08); background: #F5F1EB; color: #525252;
}
.tb-job-tag.gold { background: #FAF3DC; border-color: rgba(163,133,67,0.25); color: #A38543; }

.tb-feed-head {
  font-size: 10px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: #A38543; margin-bottom: -8px;
}

/* Form footer */
.tb-form-footer {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding-top: 8px;
}
.tb-form-footer .spacer { display: inline-block; }

/* CV upload dropzone (parse_cv, AC4.1) */
.tb-cv-drop {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  border: 1.5px dashed #E5D29F; border-radius: 12px;
  padding: 22px 18px; background: #FFFDF7; text-align: center; cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.tb-cv-drop:hover { border-color: #BD9733; background: #FBF4E0; }
.tb-cv-drop-icon { font-size: 24px; }
.tb-cv-drop-title { font-size: 13px; font-weight: 700; color: #0A0A0A; }
.tb-cv-drop-sub { font-size: 11px; color: #A3A3A3; }
.tb-cv-filename { font-size: 12px; font-weight: 600; color: #A38543; }

/* Step panel visibility */
.tb-step-panel { display: none; }
.tb-step-panel.active { display: flex; flex-direction: column; gap: 24px; }

/* Responsive */
@media (max-width: 760px) {
  .pb-step-label { display: none; }
  .pb-step-line { width: 12px; margin: 0 6px; }
  .pb-split { padding: 16px 12px 40px; }
}
@media (max-width: 600px) {
  .tb-grid.two { grid-template-columns: 1fr; }
  .tb-choice-grid.four { grid-template-columns: repeat(2, 1fr); }
  /* Onboarding top bar: drop the (future) help link and tighten so logo + steps
     + exit fit instead of overflowing the bar on narrow screens. */
  .pb-help-link { display: none; }
  .pb-header-right { gap: 8px; }
  .pb-step-line { width: 8px; margin: 0 4px; }
}
