/* ==============================================================
   ViralScripts — Plateforme de recrutement
   Design inspiré du site viralscripts.fr (dark + accents violet)
   ============================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg:           #07060B;
  --bg-2:         #0E0C18;
  --surface:      #15121F;
  --surface-2:    #1B172A;
  --border:       #2A2340;
  --border-light: #3B3155;

  --text:         #F4F2FA;
  --text-dim:     #B5B0C8;
  --text-mute:    #7A7591;

  --primary:      #7C3AED;
  --primary-2:    #6D28D9;
  --primary-soft: #A855F7;
  --primary-glow: rgba(124, 58, 237, 0.45);

  --success:      #10B981;
  --warn:         #F59E0B;
  --danger:       #EF4444;
  --info:         #3B82F6;

  --radius:       14px;
  --radius-lg:    20px;

  --container:    1180px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(900px 600px at 10% -10%, rgba(124, 58, 237, 0.20), transparent 60%),
    radial-gradient(900px 600px at 110% 5%, rgba(168, 85, 247, 0.10), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}

/* Subtle grid overlay (comme sur viralscripts.fr) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  z-index: 0;
}

a { color: var(--primary-soft); text-decoration: none; }
a:hover { color: var(--text); }

img { max-width: 100%; display: block; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.vs-nav {
  position: relative;
  z-index: 5;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.vs-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.vs-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  font-size: 14px;
  color: var(--text);
  text-transform: uppercase;
}
.vs-logo svg { width: 22px; height: 22px; }
.vs-nav-links {
  display: flex;
  gap: 22px;
  align-items: center;
  font-size: 14px;
  color: var(--text-dim);
}
.vs-nav-links a:hover { color: var(--text); }

/* ============================================================
   HERO
   ============================================================ */
.vs-hero {
  position: relative;
  padding: 80px 0 60px;
  text-align: center;
  z-index: 1;
}
.vs-eyebrow {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.45);
  color: var(--primary-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.vs-h1 {
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.05;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin: 24px 0 18px;
}
.vs-h1 .accent { color: var(--primary-soft); }
.vs-sub {
  color: var(--text-dim);
  font-size: clamp(15px, 1.6vw, 18px);
  max-width: 720px;
  margin: 0 auto;
}

/* ============================================================
   SECTION TITLES
   ============================================================ */
.vs-section { padding: 60px 0; position: relative; }
.vs-section-title {
  text-align: center;
  margin-bottom: 48px;
}
.vs-section-eyebrow {
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--primary-soft);
  font-weight: 700;
}
.vs-section-title h2 {
  margin: 10px 0 0;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.vs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  text-decoration: none;
}
.vs-btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 24px -8px var(--primary-glow);
}
.vs-btn-primary:hover { background: var(--primary-2); transform: translateY(-1px); color: #fff; }

.vs-btn-light {
  background: #fff;
  color: var(--primary);
}
.vs-btn-light:hover { background: #F1EBFF; color: var(--primary-2); }

.vs-btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-light);
}
.vs-btn-ghost:hover { background: var(--surface); color: var(--text); }

.vs-btn-sm { padding: 9px 16px; font-size: 12px; }

.vs-btn[disabled], .vs-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none;
}

/* ============================================================
   JOB GRID (page d'accueil)
   ============================================================ */
.vs-job-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.vs-job-card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  text-decoration: none;
  color: var(--text);
}
.vs-job-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: 0 20px 40px -20px var(--primary-glow);
  color: var(--text);
}
.vs-job-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(400px 200px at 80% 0%, rgba(124, 58, 237, 0.18), transparent 60%);
  pointer-events: none;
}
.vs-job-card > * { position: relative; }

.vs-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.vs-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.12);
  color: var(--primary-soft);
  border: 1px solid rgba(124, 58, 237, 0.30);
}
.vs-tag-neutral {
  background: rgba(255,255,255,0.04);
  color: var(--text-dim);
  border-color: rgba(255,255,255,0.08);
}

.vs-job-card h3 {
  font-size: 22px;
  font-weight: 800;
  margin: 4px 0 0;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.vs-job-card p { color: var(--text-dim); font-size: 14px; margin: 0; }
.vs-job-card .vs-job-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-soft);
}
.vs-job-card:hover .vs-job-cta { color: #fff; }

.vs-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-mute);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
}

/* ============================================================
   JOB DETAIL
   ============================================================ */
.vs-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}
.vs-back:hover { color: var(--text); }

.vs-job-header {
  text-align: center;
  margin-bottom: 50px;
}
.vs-job-header h1 {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin: 16px 0 14px;
}
.vs-job-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

.vs-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 24px;
}
.vs-card h2 {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.vs-card h2 .num {
  color: var(--primary-soft);
  margin-right: 6px;
}
.vs-card p, .vs-card li { color: var(--text-dim); font-size: 15px; }
.vs-card .vs-list { margin: 0; padding-left: 20px; }
.vs-card .vs-list li { margin: 6px 0; }
.vs-card .vs-list li::marker { color: var(--primary-soft); }

/* ============================================================
   FORMS
   ============================================================ */
.vs-form {
  display: grid;
  gap: 18px;
}
.vs-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.vs-form-group { display: flex; flex-direction: column; gap: 6px; }
.vs-form-group label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.vs-form-group label .req { color: var(--primary-soft); }

.vs-input, .vs-textarea, .vs-select {
  width: 100%;
  padding: 13px 16px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.vs-input:focus, .vs-textarea:focus, .vs-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.18);
}
.vs-textarea { min-height: 110px; resize: vertical; }

.vs-file {
  border: 1px dashed var(--border-light);
  border-radius: 12px;
  padding: 22px;
  text-align: center;
  font-size: 14px;
  color: var(--text-dim);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.vs-file:hover { border-color: var(--primary); background: rgba(124, 58, 237, 0.05); }
.vs-file input[type="file"] { display: none; }
.vs-file .filename { color: var(--primary-soft); font-weight: 600; }

.vs-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 8px;
}

.vs-msg {
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 14px;
  display: none;
}
.vs-msg.success { background: rgba(16, 185, 129, 0.10); border: 1px solid rgba(16, 185, 129, 0.4); color: #6EE7B7; }
.vs-msg.error   { background: rgba(239, 68, 68, 0.10);  border: 1px solid rgba(239, 68, 68, 0.4);  color: #FCA5A5; }
.vs-msg.show    { display: block; }

@media (max-width: 640px) {
  .vs-form-row { grid-template-columns: 1fr; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.vs-footer {
  margin-top: 80px;
  padding: 32px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  text-align: center;
  color: var(--text-mute);
  font-size: 13px;
}
.vs-footer a { color: var(--text-dim); }

/* ============================================================
   ADMIN — LAYOUT
   ============================================================ */
.vs-admin-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}
.vs-sidebar {
  background: var(--bg-2);
  border-right: 1px solid var(--border);
  padding: 24px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
}
.vs-sidebar .vs-logo { margin: 6px 12px 28px; }
.vs-sidebar nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.vs-sidebar nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 600;
}
.vs-sidebar nav a:hover, .vs-sidebar nav a.active {
  background: rgba(124, 58, 237, 0.12);
  color: #fff;
}
.vs-sidebar .userbox {
  margin-top: 16px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 13px;
}
.vs-sidebar .userbox .email {
  display: block;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 6px;
  word-break: break-all;
}
.vs-sidebar .userbox button {
  width: 100%;
  padding: 8px;
  font-size: 12px;
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-dim);
  border-radius: 8px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.vs-sidebar .userbox button:hover { background: var(--surface-2); color: var(--text); }

.vs-main { padding: 32px 36px; max-width: 100%; overflow: hidden; }
.vs-main h1 {
  font-size: 28px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
}
.vs-main .vs-page-sub { color: var(--text-dim); font-size: 14px; margin: 0 0 28px; }

@media (max-width: 880px) {
  .vs-admin-layout { grid-template-columns: 1fr; }
  .vs-sidebar { position: relative; height: auto; flex-direction: row; align-items: center; }
  .vs-sidebar nav { flex-direction: row; flex-wrap: wrap; }
  .vs-sidebar .userbox { display: none; }
  .vs-main { padding: 24px 18px; }
}

/* ============================================================
   ADMIN — TOOLBAR + TABLE
   ============================================================ */
.vs-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  align-items: center;
}
.vs-toolbar .vs-input,
.vs-toolbar .vs-select { padding: 10px 14px; font-size: 14px; min-width: 180px; }
.vs-toolbar .grow { flex: 1; min-width: 200px; }

.vs-table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.vs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.vs-table th {
  text-align: left;
  padding: 14px 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}
.vs-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}
.vs-table tr:last-child td { border-bottom: none; }
.vs-table tr.row-link { cursor: pointer; transition: background .12s; }
.vs-table tr.row-link:hover { background: rgba(124, 58, 237, 0.06); }

.vs-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}
.vs-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c, var(--primary-soft));
}

/* ============================================================
   ADMIN — CANDIDATE DETAIL
   ============================================================ */
.vs-candidate-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
}
@media (max-width: 980px) { .vs-candidate-grid { grid-template-columns: 1fr; } }

.vs-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 22px;
  margin-bottom: 8px;
}
.vs-info-grid > div small {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 11px;
  color: var(--text-mute);
  margin-bottom: 4px;
}
.vs-info-grid > div span,
.vs-info-grid > div a {
  font-size: 15px;
  word-break: break-word;
  color: var(--text);
}

.vs-qa { padding: 14px 0; border-bottom: 1px solid var(--border); }
.vs-qa:last-child { border-bottom: none; }
.vs-qa .q {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-mute);
  margin-bottom: 6px;
}
.vs-qa .a { color: var(--text); white-space: pre-wrap; }

.vs-note-list { display: flex; flex-direction: column; gap: 10px; }
.vs-note {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
}
.vs-note .meta {
  font-size: 11px;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.vs-status-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.vs-status-picker button {
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
}
.vs-status-picker button.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ============================================================
   LOGIN PAGE
   ============================================================ */
.vs-login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.vs-login-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 38px;
  position: relative;
  z-index: 1;
}
.vs-login-card .vs-logo { margin-bottom: 26px; }
.vs-login-card h1 {
  font-size: 26px;
  font-weight: 900;
  text-transform: uppercase;
  margin: 0 0 6px;
}
.vs-login-card p { color: var(--text-dim); margin: 0 0 24px; font-size: 14px; }

/* ============================================================
   UTILS
   ============================================================ */
.vs-loading { color: var(--text-mute); padding: 40px; text-align: center; }
.vs-spinner {
  display: inline-block;
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.18);
  border-top-color: #fff;
  border-radius: 50%;
  animation: vs-spin .7s linear infinite;
}
@keyframes vs-spin { to { transform: rotate(360deg); } }

.vs-divider { height: 1px; background: var(--border); margin: 18px 0; }

.text-mute { color: var(--text-mute); }
.text-dim  { color: var(--text-dim); }
.tar { text-align: right; }
.tac { text-align: center; }

/* ============================================================
   HONEYPOT — invisible aux humains
   ============================================================ */
.vs-honeypot {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* ============================================================
   SHARE BUTTONS
   ============================================================ */
.vs-share-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.vs-share-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all .15s;
  text-decoration: none;
}
.vs-share-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ============================================================
   CONSENT RGPD
   ============================================================ */
.vs-consent {
  background: rgba(124, 58, 237, 0.05);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
}
.vs-check-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-dim);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  line-height: 1.5;
}
.vs-check-row input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--primary);
}
.vs-check-row a { color: var(--primary-soft); text-decoration: underline; }

/* ============================================================
   LEGAL PAGES
   ============================================================ */
.vs-legal { max-width: 860px; }
.vs-legal h1 { color: var(--text); }
.vs-legal h2 .num { color: var(--primary-soft); margin-right: 6px; }
.vs-legal a { color: var(--primary-soft); }
.vs-legal a:hover { color: #fff; }
.vs-legal strong { color: var(--text); }

/* ============================================================
   TAG CHIPS pour les candidatures (CRM)
   ============================================================ */
.vs-tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(124, 58, 237, 0.10);
  border: 1px solid rgba(124, 58, 237, 0.35);
  color: var(--primary-soft);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.vs-tag-chip .x {
  cursor: pointer;
  color: var(--text-mute);
  margin-left: 2px;
  font-weight: 700;
}
.vs-tag-chip .x:hover { color: var(--danger); }

.vs-tag-add {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: transparent;
  border: 1px dashed var(--border-light);
  color: var(--text-mute);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
}
.vs-tag-add:hover { color: var(--primary-soft); border-color: var(--primary); }

/* ============================================================
   ACTIVITY LOG TIMELINE
   ============================================================ */
.vs-timeline { display: flex; flex-direction: column; gap: 12px; }
.vs-timeline-item {
  display: flex;
  gap: 14px;
  font-size: 13px;
}
.vs-timeline-item .dot {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  margin-top: 6px;
  position: relative;
}
.vs-timeline-item .dot::after {
  content: "";
  position: absolute;
  top: 14px;
  left: 4px;
  width: 2px;
  height: calc(100% + 8px);
  background: var(--border);
}
.vs-timeline-item:last-child .dot::after { display: none; }
.vs-timeline-item .body { flex: 1; }
.vs-timeline-item .meta { color: var(--text-mute); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }

/* ============================================================
   STATS DASHBOARD
   ============================================================ */
.vs-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.vs-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  position: relative;
  overflow: hidden;
}
.vs-stat-card .label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-mute);
  font-weight: 600;
}
.vs-stat-card .num {
  font-size: 36px;
  font-weight: 900;
  color: var(--text);
  margin-top: 8px;
  letter-spacing: -0.02em;
}
.vs-stat-card .sub {
  font-size: 12px;
  color: var(--primary-soft);
  margin-top: 4px;
}

/* ============================================================
   SIDEBAR — JOBS LINK ACTIVE STATE FIX
   ============================================================ */
.vs-sidebar nav a.disabled { opacity: .5; cursor: not-allowed; }

/* ============================================================
   FORM — JOB EDIT
   ============================================================ */
.vs-questions-builder {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.vs-question-row {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr 140px 100px auto;
  gap: 8px;
  align-items: end;
}
@media (max-width: 720px) {
  .vs-question-row { grid-template-columns: 1fr 1fr; }
}
.vs-question-row .vs-input,
.vs-question-row .vs-select { padding: 9px 12px; font-size: 13px; }
.vs-question-row label { font-size: 10px; }

.vs-iconbtn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-dim);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.vs-iconbtn:hover { background: var(--surface-2); color: var(--danger); border-color: rgba(239,68,68,.4); }

/* ============================================================
   CHOICE GROUPS (radio / checkbox / yes_no)
   ============================================================ */
.vs-choice-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.vs-choice {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-dim);
  transition: border-color .12s, background .12s;
}
.vs-choice:hover { border-color: var(--border-light); background: var(--surface); }
.vs-choice input[type="radio"],
.vs-choice input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  margin: 0;
}
.vs-choice input:checked + span { color: var(--text); font-weight: 600; }
.vs-choice:has(input:checked) { border-color: var(--primary); background: rgba(124,58,237,.08); }

/* ============================================================
   QUESTION CARD (jobs admin builder)
   ============================================================ */
.vs-question-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.vs-question-card .q-options-wrap {
  border-top: 1px dashed var(--border);
  padding-top: 10px;
}
.vs-question-card .q-options { font-size: 13px; min-height: 70px; }

/* ============================================================
   "ILS NOUS ONT FAIT CONFIANCE" — Swiper carrousel
   ============================================================ */
.vs-trusted .mySwiper {
  width: 100%;
  padding: 14px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.vs-trusted .swiper-wrapper {
  /* Pour un effet "marquee" continu sans à-coups */
  transition-timing-function: linear !important;
}

.vs-trusted .swiper-slide {
  height: auto;
  display: flex;
}

.TContainerSLiTEM {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 12px 14px;
  text-align: center;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  position: relative;
  overflow: hidden;
}
.TContainerSLiTEM::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(220px 120px at 50% 0%, rgba(124,58,237,0.18), transparent 70%);
  pointer-events: none;
}
.TContainerSLiTEM:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 14px 36px -16px var(--primary-glow);
}

.TContainerSLiTEM > div:first-child {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(124, 58, 237, 0.35);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.TContainerSLiTEM > div:first-child img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.TContainerSLiTEM h4 {
  margin: 8px 0 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-transform: none;
  letter-spacing: 0;
  position: relative;
  z-index: 1;
}
.TContainerSLiTEM h4 img {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.TContainerSLiTEM h5 {
  margin: 2px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: relative;
  z-index: 1;
}
.TContainerSLiTEM h5 a {
  display: inline-flex;
  align-items: center;
  opacity: .7;
  transition: opacity .15s;
}
.TContainerSLiTEM h5 a:hover { opacity: 1; }
.TContainerSLiTEM h5 a img {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
}

/* ============================================================
   STARS RATING
   ============================================================ */
.vs-stars { display: inline-flex; gap: 2px; font-size: 14px; color: var(--text-mute); }
.vs-stars .on { color: #FBBF24; }

.vs-stars-input {
  display: inline-flex;
  gap: 4px;
  font-size: 28px;
  cursor: pointer;
  user-select: none;
  margin-bottom: 10px;
}
.vs-stars-input span {
  color: var(--text-mute);
  transition: color .12s;
}
.vs-stars-input span.on,
.vs-stars-input:hover span.hover {
  color: #FBBF24;
}

.vs-rating-list { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.vs-rating-item {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
}
.vs-rating-item .head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.vs-rating-item .author { font-size: 11px; color: var(--text-mute); }

.vs-rating-avg {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

/* ============================================================
   KANBAN
   ============================================================ */
.vs-kanban {
  display: grid;
  grid-template-columns: repeat(6, minmax(240px, 1fr));
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 16px;
}
@media (max-width: 1400px) {
  .vs-kanban { grid-template-columns: repeat(6, 260px); }
}

.vs-kanban-col {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  min-height: 400px;
}
.vs-kanban-col.drop-target {
  border-color: var(--primary);
  background: rgba(124, 58, 237, 0.08);
}
.vs-kanban-col-header {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.vs-kanban-col-header .title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 6px;
}
.vs-kanban-col-header .title::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c);
}
.vs-kanban-col-header .count {
  font-size: 12px;
  color: var(--text-mute);
  background: var(--surface);
  padding: 2px 8px;
  border-radius: 999px;
}

.vs-kanban-cards {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  overflow-y: auto;
  max-height: calc(100vh - 240px);
}

.vs-kcard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  cursor: grab;
  transition: transform .12s, box-shadow .12s, border-color .12s;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.vs-kcard:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
}
.vs-kcard.dragging { opacity: .4; cursor: grabbing; }
.vs-kcard .name { font-size: 13px; font-weight: 700; color: var(--text); }
.vs-kcard .job { font-size: 11px; color: var(--text-mute); }
.vs-kcard .footer { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--text-mute); margin-top: 4px; }
.vs-kcard .tags { display: flex; flex-wrap: wrap; gap: 4px; }
.vs-kcard .tags .vs-tag-chip { font-size: 9px; padding: 2px 6px; }

/* ============================================================
   ROLE BADGE
   ============================================================ */
.vs-role-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.vs-role-owner    { background: rgba(124, 58, 237, 0.15); color: var(--primary-soft); border: 1px solid rgba(124, 58, 237, 0.4); }
.vs-role-reviewer { background: rgba(255,255,255,0.04);   color: var(--text-dim);     border: 1px solid var(--border); }

/* ============================================================
   2FA QR
   ============================================================ */
.vs-mfa-qr {
  background: #fff;
  padding: 16px;
  border-radius: 12px;
  display: inline-block;
  margin: 14px 0;
}
.vs-mfa-qr img, .vs-mfa-qr svg { display: block; }

.vs-otp-input {
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 22px;
  letter-spacing: 0.4em;
  text-align: center;
  padding: 14px;
}

/* Sidebar dim state for items the user can't access */
.vs-sidebar nav a.role-locked { opacity: .35; pointer-events: none; }

/* Audit log entries */
.vs-audit-action {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  font-size: 11px;
  font-family: 'SF Mono', Menlo, monospace;
  color: var(--text-dim);
}
