/* Syneats UI — Design System */

/* ── Fonts (self-hosted: avoids third-party cookie/tracking-protection issues with fontshare.com) ── */
@font-face {
  font-family: 'Satoshi';
  src: url('../fonts/Satoshi-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: 'Satoshi';
  src: url('../fonts/Satoshi-Medium.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: 'Satoshi';
  src: url('../fonts/Satoshi-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: 'Satoshi';
  src: url('../fonts/Satoshi-Black.woff2') format('woff2');
  font-weight: 900;
  font-display: swap;
  font-style: normal;
}

/* ── Design Tokens ── */
:root {
  /* Typography */
  --ui-font: 'Satoshi','Inter',system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif;
  --text-xs:   11px;
  --text-sm:   12px;
  --text-base: 13px;
  --text-md:   14px;
  --text-lg:   16px;
  --text-xl:   20px;
  --text-2xl:  24px;

  /* Spacing — 4px grid */
  --sp-1:  4px;
  --sp-2:  8px;
  --sp-3:  12px;
  --sp-4:  16px;
  --sp-5:  20px;
  --sp-6:  24px;
  --sp-8:  32px;
  --sp-10: 40px;

  /* Colors */
  --ui-bg:        #f8fafc;
  --ui-text:      #0f172a;
  --ui-muted:     #64748b;
  --ui-card:      #ffffff;
  --ui-border:    rgba(15,23,42,.10);
  --ui-shadow:    0 10px 30px rgba(2,6,23,.08);
  --ui-shadow-sm: 0 1px 4px rgba(2,6,23,.06);

  /* Sidebar */
  --sb-w:           220px;
  --sb-w-collapsed: 56px;
  --sb-bg:          #ffffff;
  --sb-border:      rgba(15,23,42,.08);
  --sb-text:        #475569;
  --sb-text-strong: #0f172a;
  --sb-muted:       #94a3b8;
  --sb-active:      rgba(27,58,75,.08);
  --sb-hover:       rgba(15,23,42,.04);
  --sb-accent:      #1B3A4B;

  /* Shared list-page tokens */
  --cp-line:    rgba(15,23,42,.10);
  --cp-text:    #0f172a;
  --cp-muted:   #64748b;
  --cp-primary: #1B3A4B;
  --cp-gold:    #B8A36A;

  /* Radii */
  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 16px;

  /* Transitions */
  --tr: 150ms cubic-bezier(0.16,1,0.3,1);
}

/* ── Base ── */
html, body { height: 100%; }
body {
  font-family: var(--ui-font);
  background:  var(--ui-bg);
  color:       var(--ui-text);
  font-size:   var(--text-base);
  line-height: 1.5;
  overflow:    hidden;
}

/* ── Shell layout ── */
.rp-shell { display: flex; height: 100vh; }

/* ── Sidebar ── */
.rp-sidebar {
  width: var(--sb-w);
  height: 100vh;
  position: fixed;
  left: 0; top: 0;
  z-index: 200;
  background: var(--sb-bg);
  border-right: 1px solid var(--sb-border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform var(--tr), width var(--tr);
}

.rp-sidebar__brand {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-4) var(--sp-3);
  border-bottom: 1px solid var(--sb-border);
  text-decoration: none;
  color: var(--sb-text-strong);
  flex-shrink: 0;
}
.rp-logo {
  width: 36px; height: 36px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.rp-logo img { width: 36px; height: 36px; display: block; object-fit: contain; }
.rp-brand__name {
  font-weight: 800;
  letter-spacing: -.02em;
  font-size: var(--text-md);
  line-height: 1.2;
}

.rp-nav { padding: var(--sp-3) var(--sp-2); overflow: auto; flex: 1; }
.rp-nav__label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sb-muted);
  padding: var(--sp-2) var(--sp-2) var(--sp-1);
  user-select: none;
}

.rp-nav a {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius-sm);
  color: var(--sb-text);
  text-decoration: none;
  transition: background var(--tr), color var(--tr);
  font-weight: 600;
  font-size: var(--text-base);
  line-height: 1.4;
}
.rp-nav a .rp-nav__icon { display: flex; opacity: .7; }
.rp-nav a:hover { background: var(--sb-hover); color: var(--sb-text-strong); }
.rp-nav a:hover .rp-nav__icon { opacity: 1; }
.rp-nav a.is-active {
  background: var(--sb-active);
  color: var(--sb-text-strong);
  box-shadow: inset 0 0 0 1px rgba(99,102,241,.2);
}
.rp-nav a.is-active .rp-nav__icon { opacity: 1; }

.rp-sidebar__footer {
  border-top: 1px solid var(--sb-border);
  padding: var(--sp-3) var(--sp-2) var(--sp-2);
  flex-shrink: 0;
}
.rp-collapse-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 30px;
  margin-top: var(--sp-2);
  border: none;
  background: none;
  color: var(--sb-muted);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: color var(--tr), background var(--tr);
  flex-shrink: 0;
}
.rp-collapse-btn:hover { color: var(--sb-text-strong); background: var(--sb-hover); }
.rp-collapse-btn svg { transition: transform var(--tr); flex-shrink: 0; }
.rp-user {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius);
  color: var(--sb-text);
  text-decoration: none;
}
.rp-user:hover { background: var(--sb-hover); }
.rp-avatar {
  width: 32px; height: 32px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(99,102,241,.9), rgba(34,197,94,.9));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: var(--text-xs);
  color: #fff;
  flex-shrink: 0;
}
.rp-user__meta { min-width: 0; flex: 1; }
.rp-user__name {
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--sb-text-strong);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.rp-user__role { font-size: var(--text-xs); color: var(--sb-muted); line-height: 1.3; }

.rp-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(15,23,42,.08);
  background: #fff;
  color: #64748b;
  transition: background var(--tr), color var(--tr), transform var(--tr);
  flex-shrink: 0;
}
.rp-icon-btn:hover { background: rgba(15,23,42,.04); color: var(--sb-text-strong); transform: translateY(-1px); }
.rp-icon-btn--danger:hover { color: #b91c1c; border-color: rgba(239,68,68,.25); }

.rp-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(2,6,23,.5);
  z-index: 199;
  backdrop-filter: blur(2px);
}

/* ── Sidebar collapsed state ── */
html.sidebar-collapsed .rp-sidebar { width: var(--sb-w-collapsed); }

html.sidebar-collapsed .rp-sidebar .rp-sidebar__brand {
  justify-content: center;
  padding: var(--sp-4) var(--sp-2);
}
html.sidebar-collapsed .rp-sidebar .rp-brand__name { display: none; }

html.sidebar-collapsed .rp-sidebar .rp-nav {
  padding: var(--sp-3) var(--sp-1);
}
html.sidebar-collapsed .rp-sidebar .rp-nav__label { display: none; }
html.sidebar-collapsed .rp-sidebar .rp-nav a {
  justify-content: center;
  padding: var(--sp-2) var(--sp-1);
}
html.sidebar-collapsed .rp-sidebar .rp-nav__text { display: none; }
html.sidebar-collapsed .rp-sidebar .rp-nav a .rp-nav__icon { opacity: 1; }

/* ── Nav badge (ex: demandes en attente) ── */
.rp-nav__badge {
  margin-left: auto;
  background: #e11d48;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 20px;
  min-width: 18px;
  text-align: center;
}
html.sidebar-collapsed .rp-sidebar .rp-nav__badge { display: none; }

html.sidebar-collapsed .rp-sidebar .rp-sidebar__footer {
  padding: var(--sp-3) var(--sp-1) var(--sp-2);
}
html.sidebar-collapsed .rp-sidebar .rp-user {
  justify-content: center;
  padding: var(--sp-2) 0;
}
html.sidebar-collapsed .rp-sidebar .rp-user__meta { display: none; }
html.sidebar-collapsed .rp-sidebar .rp-user .rp-icon-btn { display: none; }
html.sidebar-collapsed .rp-sidebar .rp-collapse-btn svg { transform: rotate(180deg); }

/* ── Main area ── */
.rp-main {
  margin-left: var(--sb-w);
  flex: 1;
  min-width: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
}
.rp-topbar {
  height: 56px;
  background: rgba(255,255,255,.8);
  border-bottom: 1px solid var(--ui-border);
  backdrop-filter: blur(12px);
  /* Masquée par défaut partout (plus besoin d'un ".rp-topbar{display:none}"
     local par page) — ne réapparaît qu'en dessous de 980px pour le bouton
     menu mobile, via la règle @media plus bas qui force display:flex. */
  display: none;
  align-items: center;
  gap: var(--sp-3);
  padding: 0 var(--sp-5);
  flex-shrink: 0;
}
.rp-topbar__title {
  font-weight: 800;
  font-size: var(--text-md);
  letter-spacing: -.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}
.rp-toggle {
  display: none;
  border: 1px solid var(--ui-border);
  background: #fff;
  border-radius: var(--radius);
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  box-shadow: var(--ui-shadow-sm);
}
.rp-toggle:hover { background: #f8fafc; }

.rp-content {
  flex: 1;
  overflow: auto;
  padding: var(--sp-6);
}
.rp-footer {
  flex-shrink: 0;
  padding: var(--sp-3) var(--sp-6);
  border-top: 1px solid var(--ui-border);
  color: var(--ui-muted);
  font-size: var(--text-sm);
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  line-height: 1.4;
}

/* ── Page header ── */
.rp-page { max-width: 1400px; margin: 0 auto; }
.rp-page__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-4);
}
.rp-page__h {
  margin: 0;
  font-weight: 900;
  letter-spacing: -.02em;
  font-size: var(--text-2xl);
  line-height: 1.2;
}
.rp-page__p {
  margin: var(--sp-1) 0 0;
  color: var(--ui-muted);
  font-size: var(--text-base);
  line-height: 1.4;
}

/* ── Card ── */
.rp-card {
  background: var(--ui-card);
  border: 1px solid var(--ui-border);
  border-radius: var(--radius);
  box-shadow: var(--ui-shadow-sm);
}
.rp-card__header {
  padding: var(--sp-4);
  border-bottom: 1px solid rgba(15,23,42,.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.rp-card__title {
  margin: 0;
  font-weight: 800;
  font-size: var(--text-md);
  letter-spacing: -.01em;
  line-height: 1.3;
}
.rp-link-muted {
  font-size: var(--text-sm);
  text-decoration: none;
  color: var(--ui-muted);
  font-weight: 700;
}
.rp-link-muted:hover { color: #334155; text-decoration: underline; }

/* ── Stat cards ── */
.rp-stat {
  padding: var(--sp-5) var(--sp-4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  text-align: center;
}
.rp-stat-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.rp-stat-link .rp-stat {
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.rp-stat-link:hover .rp-stat {
  border-color: rgba(27,58,75,.2);
  box-shadow: 0 8px 20px rgba(15,23,42,.07);
  transform: translateY(-1px);
}
.rp-stat__label {
  font-size: var(--text-sm);
  color: var(--ui-muted);
  font-weight: 600;
  line-height: 1.4;
}
.rp-stat__value {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -.03em;
  margin-top: var(--sp-2);
  line-height: 1;
}
.rp-stat__hint {
  margin-top: var(--sp-2);
  color: rgba(34,197,94,.9);
  font-size: var(--text-xs);
  font-weight: 700;
}
.rp-stat__icon {
  width: 44px; height: 44px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(15,23,42,.06);
}

/* ── Badge ── */
.rp-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px var(--sp-2);
  border-radius: 999px;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: -.01em;
  white-space: nowrap;
  line-height: 1.4;
}

/* ── Row link (dashboard lists) ── */
.rp-row-link {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid rgba(15,23,42,.05);
  text-decoration: none;
  color: inherit;
  transition: background var(--tr);
}
.rp-row-link:last-child { border-bottom: none; }
.rp-row-link:hover { background: rgba(2,6,23,.02); }
.rp-row-link__main { flex: 1; min-width: 0; }
.rp-row-link__main strong {
  display: block;
  font-size: var(--text-base);
  font-weight: 800;
  line-height: 1.3;
}
.rp-row-link__main small {
  display: block;
  color: var(--ui-muted);
  font-size: var(--text-sm);
  margin-top: var(--sp-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.rp-row-link__right { display: flex; align-items: center; gap: var(--sp-2); flex-shrink: 0; }
.rp-row-link__meta { font-size: var(--text-sm); color: var(--ui-muted); white-space: nowrap; }

/* ── Quick-action cards ── */
.rp-qa {
  padding: var(--sp-4);
  text-decoration: none;
  color: #334155;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  border-radius: var(--radius);
  border: 1px solid rgba(15,23,42,.08);
  background: rgba(255,255,255,.85);
  transition: transform var(--tr), box-shadow var(--tr), border-color var(--tr);
  height: 100%;
  font-weight: 700;
  font-size: var(--text-base);
  line-height: 1.4;
  text-align: center;
}
.rp-qa:hover { transform: translateY(-2px); box-shadow: var(--ui-shadow); border-color: rgba(99,102,241,.3); }
.rp-qa__icon {
  width: 40px; height: 40px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  background: rgba(99,102,241,.1);
  color: #4f46e5;
}

/* ─────────────────────────────────────────
   Shared list-page components (cp-*)
   Used across: candidates, jobs, contacts, companies
   ───────────────────────────────────────── */

/* Page header */
.cp-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-4);
}
.cp-title {
  margin: 0;
  font-size: var(--text-2xl);
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -.02em;
}
.cp-subtitle {
  margin: var(--sp-1) 0 0;
  color: var(--cp-muted);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.4;
}

/* Buttons */
.cp-btn {
  border: 1px solid var(--cp-line);
  background: #fff;
  color: var(--cp-text);
  border-radius: var(--radius-sm);
  height: 36px;
  padding: 0 var(--sp-3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  font-family: inherit;
  box-shadow: 0 1px 3px rgba(2,6,23,.04);
  transition: background var(--tr), border-color var(--tr), color var(--tr);
}
.cp-btn:hover { color: var(--cp-primary); border-color: rgba(27,58,75,.15); background: #f8fafc; }
.cp-btn--search { background: #e0f2fe; border-color: #bae6fd; color: #0369a1; }
.cp-btn--search:hover { background: #dbeafe; border-color: #93c5fd; color: #075985; }
.cp-btn--primary { background: var(--cp-primary); border-color: var(--cp-primary); color: #fff; }
.cp-btn--primary:hover { color: #fff; background: #132d3c; border-color: #132d3c; }
.cp-btn--muted { color: var(--cp-muted); font-size: .8rem; }
.cp-btn--muted:hover { color: var(--cp-text); }

/* Search panel */
.cp-search {
  background: #fff;
  border: 1px solid var(--cp-line);
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(15,23,42,.04);
  padding: var(--sp-3) var(--sp-4);
  margin-bottom: var(--sp-4);
}
.cp-search-form {
  display: flex;
  gap: var(--sp-2);
  align-items: center;
  flex-wrap: wrap;
}
.cp-search-form .form-group { margin-bottom: 0; flex: 1; }
.cp-search-input {
  flex: 1;
  width: 100%;
  height: 36px;
  border: 1px solid var(--cp-line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: #111827;
  outline: none;
  padding: 0 var(--sp-3);
  font-size: var(--text-base);
  font-weight: 400;
  font-family: inherit;
  transition: border-color var(--tr), box-shadow var(--tr);
}
.cp-search-input::placeholder { color: #94a3b8; font-weight: 400; }
.cp-search-input:focus { border-color: rgba(27,58,75,.4); box-shadow: 0 0 0 3px rgba(27,58,75,.08); }

.cp-filter-select {
  height: 36px;
  border: 1px solid var(--cp-line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: #334155;
  outline: none;
  padding: 0 var(--sp-3);
  font-size: var(--text-sm);
  font-weight: 400;
  min-width: 140px;
  font-family: inherit;
  transition: border-color var(--tr), box-shadow var(--tr);
}
.cp-filter-select:focus { border-color: rgba(27,58,75,.4); box-shadow: 0 0 0 3px rgba(27,58,75,.08); }

/* Filter panel */
.cp-filter-panel {
  display: none;
  flex-basis: 100%;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--sp-2);
  padding-top: var(--sp-2);
}
.cp-filter-panel.is-open { display: grid; }
.cp-filter-group {
  border: 1px solid var(--cp-line);
  border-radius: var(--radius-sm);
  padding: var(--sp-3);
  background: #fafafa;
}
.cp-filter-title {
  margin: 0 0 var(--sp-2);
  color: var(--cp-muted);
  font-size: var(--text-xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  line-height: 1.3;
}
.cp-check-list { display: flex; flex-direction: column; gap: var(--sp-2); }
.cp-check-list label {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  margin: 0;
  color: #334155;
  font-size: var(--text-sm);
  font-weight: 400;
  cursor: pointer;
  line-height: 1.4;
}
.cp-check-list input { margin: 0; }
.cp-filter-fields { display: grid; gap: var(--sp-2); }
.cp-filter-input {
  width: 100%;
  height: 32px;
  border: 1px solid var(--cp-line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: #334155;
  outline: none;
  padding: 0 var(--sp-2);
  font-size: var(--text-sm);
  font-weight: 400;
  font-family: inherit;
  transition: border-color var(--tr), box-shadow var(--tr);
}
.cp-filter-input:focus { border-color: rgba(27,58,75,.4); box-shadow: 0 0 0 3px rgba(27,58,75,.08); }

/* List table — liste "recollée" (un seul cadre, séparateurs internes),
   même principe que les listes des fiches détail candidat/job/contact/
   entreprise. Colonnes secondaires centrées ; seule la colonne principale
   (.cp-cell--name / .cp-sort--primary) reste alignée à gauche. */
.cp-list .summary { display: none; }
.cp-list-head {
  display: grid;
  align-items: center;
  gap: var(--sp-2);
  padding: 0 var(--sp-3) var(--sp-2);
  color: #94a3b8;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  line-height: 1.3;
  text-align: center;
}
.cp-list-body {
  background: #fff;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(15,23,42,.03);
  overflow: hidden;
}
.cp-row {
  display: grid;
  align-items: center;
  gap: var(--sp-2);
  padding: 12px var(--sp-3);
  min-height: 44px;
  color: inherit;
  cursor: pointer;
  border-bottom: 1px solid rgba(15,23,42,.06);
  text-align: center;
  transition: background 150ms ease;
}
.cp-row:last-child { border-bottom: 0; }
.cp-row > * { min-width: 0; }
.cp-row:hover { background: #fafbfc; }

.cp-cell {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #475569;
  font-size: var(--text-sm);
  font-weight: 400;
  line-height: 1.4;
}
.cp-cell--name,
.cp-sort--primary { text-align: left; }
.cp-cell--name  { color: #111827; font-weight: 800; font-size: var(--text-base); }
.cp-cell--contact { color: #94a3b8; font-size: var(--text-xs); }
.cp-cell--context { color: #3b6f8f; }
.cp-cell--muted { color: #94a3b8; font-size: var(--text-xs); }
.cp-cell--posted { color: #94a3b8; font-size: var(--text-xs); }
.cp-cell--location { color: #3b6f8f; }
.cp-label { display: none; }

.cp-sort {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: inherit;
  text-decoration: none;
  line-height: 1.3;
}
.cp-sort:hover { color: var(--cp-primary); }
.cp-sort.is-active { color: #3b6f8f; }
.cp-sort .sort-arrow { margin-left: 3px; }

/* Inline status badges — largeur fixe calée sur le plus long libellé de
   chaque colonne (comme .cv-note-stage sur les fiches détail), plutôt
   qu'une largeur qui varie selon le texte. */
.cp-pill {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  max-width: 100%;
  border-radius: 999px;
  padding: 2px var(--sp-2);
  background: #dbeafe;
  color: #1d4ed8;
  font-size: var(--text-xs);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.5;
}
.cp-stage {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  max-width: 100%;
  border-radius: 999px;
  padding: 2px var(--sp-2);
  font-size: var(--text-xs);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.5;
}
.cp-stage--refused      { background: #fee2e2; color: #b91c1c; }
.cp-stage--neutral,
.cp-stage--solicited    { background: #f3f4f6; color: #64748b; }
.cp-stage--shortlist    { background: #fef3c7; color: #b45309; }
.cp-stage--interview    { background: #dbeafe; color: #1d4ed8; }
.cp-stage--final-interview { background: #ede9fe; color: #6d28d9; }
.cp-stage--proposal     { background: #fee2e2; color: #b91c1c; }
.cp-stage--deal         { background: #dcfce7; color: #15803d; }
.cp-stage--terminated   { background: #e2e8f0; color: #475569; }

.cp-job-status {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  max-width: 100%;
  border-radius: 999px;
  padding: 2px var(--sp-2);
  font-size: var(--text-xs);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.5;
}
.cp-job-status--open    { background: #dcfce7; color: #15803d; }
.cp-job-status--standby { background: #fef3c7; color: #b45309; }
.cp-job-status--closed  { background: #fee2e2; color: #b91c1c; }
.cp-job-status--neutral { background: #f3f4f6; color: #64748b; }

/* Icon buttons in rows */
.cp-action {
  width: 24px; height: 24px;
  border-radius: 6px;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: color var(--tr), background var(--tr);
}
.cp-action:hover { color: var(--cp-primary); background: #f0f4f8; }

.cp-download {
  width: 24px; height: 24px;
  border-radius: 6px;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: color var(--tr), background var(--tr);
}
.cp-download:hover { color: var(--cp-primary); background: #f0f4f8; }
.cp-download--disabled,
.cp-download--disabled:hover { color: #cbd5e1; background: transparent; cursor: not-allowed; }
.cp-download-cell { width: 28px; display: flex; align-items: center; justify-content: center; }
.cp-select-cell { width: 28px; display: flex; align-items: center; justify-content: center; }

/* Empty state */
.cp-empty {
  text-align: center;
  color: var(--cp-muted);
  background: #f8fafc;
  border-radius: var(--radius-sm);
  padding: var(--sp-8);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1.5;
}

/* Pagination */
.cp-list .pagination {
  display: flex;
  gap: var(--sp-1);
  padding: var(--sp-2) 0 0;
  margin: 0;
  list-style: none;
}
.cp-list .pagination li a,
.cp-list .pagination li span {
  min-width: 32px;
  height: 32px;
  border: 1px solid var(--cp-line);
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #334155;
  font-size: var(--text-sm);
  font-weight: 700;
  background: #fff;
  text-decoration: none;
  transition: background var(--tr), border-color var(--tr), color var(--tr);
}
.cp-list .pagination li a:hover { background: #f8fafc; border-color: rgba(27,58,75,.15); }
.cp-list .pagination .active a,
.cp-list .pagination .active span { background: var(--cp-primary); border-color: var(--cp-primary); color: #fff; }
.cp-list .pagination .disabled span { color: #cbd5e1; }

/* ── Bootstrap tweaks ── */
.breadcrumb { margin-bottom: var(--sp-3); background: transparent !important; padding: 0 !important; }
.breadcrumb-item a { text-decoration: none; font-weight: 700; }
.breadcrumb-item a:hover { text-decoration: underline; }
.alert { border-radius: var(--radius); border: 1px solid rgba(15,23,42,.08); }

/* ── Responsive — layout ── */
@media (min-width: 981px) {
  .rp-main { transition: margin-left var(--tr); }
  html.sidebar-collapsed .rp-main { margin-left: var(--sb-w-collapsed); }
}
@media (max-width: 980px) {
  body { overflow: hidden; }
  .rp-main { margin-left: 0; }
  .rp-collapse-btn { display: none; }
  .rp-sidebar { transform: translateX(calc(-1 * var(--sb-w))); }
  .rp-sidebar.is-open { transform: translateX(0); box-shadow: var(--ui-shadow); }
  .rp-overlay.is-show { display: block; }
  .rp-topbar { display: flex !important; }
  .rp-toggle { display: inline-flex; }
  .rp-content { padding: var(--sp-4); }
  .rp-footer { padding: var(--sp-3) var(--sp-4); }
}
@media (max-width: 640px) {
  .rp-content { padding: var(--sp-3); }
  .rp-page__header { flex-wrap: wrap; gap: var(--sp-2); }
  .rp-footer { flex-direction: column; gap: var(--sp-1); }
}

/* ── Responsive — list pages ── */
@media (max-width: 1100px) {
  .cp-list-head { display: none; }
  .cp-row { align-items: start; min-height: unset; padding: var(--sp-3); }
  .cp-cell,
  .cp-pill,
  .cp-stage,
  .cp-job-status {
    display: flex;
    flex-direction: column;
    gap: 2px;
    white-space: normal;
  }
  .cp-pill,
  .cp-stage,
  .cp-job-status {
    background: none;
    border-radius: 0;
    padding: 0;
    justify-self: start;
    font-size: var(--text-sm);
    font-weight: 600;
    color: inherit;
  }
  .cp-cell--context,
  .cp-cell--location { color: #3b6f8f; }
  .cp-cell--contact { font-size: var(--text-sm); }
  .cp-label {
    display: block;
    color: #94a3b8;
    font-size: var(--text-xs);
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: .06em;
  }
}
@media (max-width: 680px) {
  .cp-header { flex-wrap: wrap; gap: var(--sp-2); }
  .cp-search-form { flex-direction: column; align-items: stretch; }
}

/* ── Combobox de recherche partagé (candidat/job/contact/société) ──
   Anciennement dupliqué (avec variantes divergentes) dans une dizaine de
   vues. Une seule version ici, chargée partout via AppAsset — le balisage
   HTML (data-driven via cvComboData, ou async via cvComboUrls) ne change
   pas, voir web/js/ui.js pour le comportement. */
.cv-combobox { position: relative; display: inline-block; vertical-align: top; }
.cv-combo-menu {
  position: absolute;
  z-index: 9999;
  top: calc(100% + 2px);
  left: 0;
  min-width: 100%;
  max-height: 210px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid rgba(15,23,42,.12);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(15,23,42,.10);
  display: none;
}
.cv-combo-opt { padding: 8px 12px; font-size: 13px; font-weight: 600; color: #111827; cursor: pointer; }
.cv-combo-opt:hover { background: #f1f5f9; }
.cv-combo-opt--empty { color: #94a3b8; font-style: italic; }
.cv-combo-opt--prompt { color: #94a3b8; cursor: default; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.cv-combo-opt--prompt:hover { background: transparent; }

/* ── Socle partagé des fiches détail (candidat/job/contact/entreprise) ──
   Extrait de views/candidates/view.php une fois le design stabilisé, pour
   que les autres fiches en héritent sans repartir de zéro. Les classes
   propres à une fiche précise (missions, CV, tone-pill...) restent locales
   à leur vue. */
:root {
  --cp-card:  #fff;
  --cp-soft:  #f8fafc;
  --cp-green: #16a34a;
  --cp-amber: #d97706;
  --cp-red:   #dc2626;
}
.cv-btn {
  border:1px solid var(--cp-line);
  background:#fff;
  color:var(--cp-text);
  border-radius:8px;
  min-height:34px;
  padding:7px 11px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  font-size:12px;
  font-weight:800;
  line-height:1;
  box-shadow:0 1px 4px rgba(2,6,23,.04);
}
.cv-action-icon,
.cv-icon-btn { border:1px solid var(--cp-line); background:#fff; color:var(--cp-text); border-radius:8px; display:inline-flex; align-items:center; justify-content:center; }
.cv-action-icon { width:34px; height:34px; min-height:34px; padding:0; }
.cv-action-icon--danger { color:var(--cp-red); }
.cv-action-icon--danger:hover { color:var(--cp-red); background:#fef2f2; border-color:rgba(220,38,38,.14); }
.cv-icon-btn { width:28px; height:28px; min-height:28px; padding:0; border-color:transparent; box-shadow:none; color:var(--cp-muted); background:transparent; }
.cv-btn:hover,
.cv-icon-btn:hover,
.cv-action-icon:hover { color:var(--cp-primary); border-color:rgba(27,58,75,.12); background:#f8fafc; }
.cv-btn--primary { background:var(--cp-primary); border-color:var(--cp-primary); color:#fff; }
.cv-btn--primary:hover { color:#fff; background:#132d3c; }
.cv-btn--danger { color:var(--cp-red); }
/* Barre d'actions du hero (icônes modifier/supprimer + dates créé/modifié) —
   identique candidat/job/contact/entreprise, centralisée ici. */
.cv-actions { display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
.cv-actions .cv-date-meta {
  color:#94a3b8;
  font-size:12px;
  font-weight:400;
  display:inline-flex;
  align-items:center;
  gap:5px;
  align-self:center;
  white-space:nowrap;
}
.cv-actions .cv-date-meta svg { color:#94a3b8; flex:0 0 auto; }
.cv-layout { display:grid; grid-template-columns:minmax(0,1fr) 360px; gap:0; align-items:start; }
.cv-main,
.cv-side { min-width:0; }
.cv-side { position:sticky; top:0; } /* top:14px décalait la colonne de 14px même au repos (vérifié : sticky+scroll-container ajoute l'offset dès le chargement, pas seulement pendant le scroll) */
@media (max-width:1180px) {
  .cv-layout { grid-template-columns:1fr; }
  .cv-side { position:static; }
}
.cv-card {
  background:var(--cp-card);
  border:1px solid var(--cp-line);
  border-radius:14px;
  box-shadow:0 10px 25px rgba(15,23,42,.04);
  margin-bottom:16px;
}
.cv-card > *:last-child { border-bottom-left-radius:13px; border-bottom-right-radius:13px; }
.cv-card__body { padding:18px 20px; }
.cv-card__head {
  padding:14px 20px;
  border-bottom:1px solid rgba(15,23,42,.07);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.cv-section-title {
  margin:0;
  color:var(--cp-muted);
  font-size:11px;
  font-weight:400;
  letter-spacing:.08em;
  text-transform:uppercase;
  display:flex;
  align-items:center;
  gap:7px;
}
.cv-count { color:var(--cp-muted); font-size:11px; font-weight:700; white-space:nowrap; }
.cv-empty { text-align:center; color:var(--cp-muted); background:#f8fafc; border-radius:10px; padding:18px; font-size:13px; font-weight:700; }
.cv-hero { padding:15px 18px 13px; background:#fff; border-bottom:1px solid rgba(15,23,42,.07); border-radius:14px 14px 0 0; }
.cv-hero-row { display:block; }
.cv-identity { flex:1; min-width:0; }
.cv-identity-head { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; }
.cv-identity-main { min-width:0; }
.cv-title-row { display:flex; align-items:center; gap:8px; min-width:0; }
.cv-name { margin:0; font-size:18px; line-height:1.2; font-weight:900; letter-spacing:0; }
.cv-headline { margin:2px 0 0; color:var(--cp-muted); font-size:12.5px; display:flex; align-items:center; gap:6px; }
.cv-pill {
  display:inline-flex;
  align-items:center;
  gap:6px;
  border-radius:999px;
  padding:5px 9px;
  font-size:11px;
  font-weight:900;
  background:#eef2f4;
  color:var(--cp-primary);
}
.cv-pill--ok { background:#dcfce7; color:#166534; }
.cv-pill--warn { background:#fef3c7; color:#92400e; }
.cv-pill--late { background:#fee2e2; color:#991b1b; }
.cv-status-form { margin:0; }
.cv-status-select {
  min-height:26px;
  border:1px solid rgba(15,23,42,.10);
  border-radius:999px;
  padding:4px 24px 4px 10px;
  font-size:11px;
  font-weight:900;
  line-height:1;
  outline:none;
  cursor:pointer;
}
.cv-status-select.is-active { background:#dcfce7; border-color:#bbf7d0; color:#166534; }
.cv-status-select.is-inactive { background:#f1f5f9; border-color:#e2e8f0; color:#64748b; }
.cv-status-select.is-mission { background:#fee2e2; border-color:#fecaca; color:#b91c1c; font-weight:800; }
.cv-status-select:disabled { opacity:1; cursor:not-allowed; -webkit-text-fill-color:currentColor; }
.cv-status-select:focus { box-shadow:0 0 0 3px rgba(27,58,75,.08); }
.cv-info-strip {
  display:flex;
  flex-wrap:wrap;
  gap:6px 15px;
  padding:9px 0 0;
  margin-top:9px;
  border-top:1px solid rgba(15,23,42,.07);
  background:transparent;
}
.cv-info-strip span,
.cv-info-strip a {
  color:#334155;
  font-size:13px;
  font-weight:400;
  display:inline-flex;
  align-items:center;
  gap:6px;
  word-break:break-word;
}
.cv-info-strip svg,
.cv-headline svg,
.cv-pill svg { flex:0 0 auto; color:#94a3b8; }
.cv-info-strip .cv-date-meta { color:#94a3b8; font-weight:400; }
.cv-info-strip .cv-date-meta--first { margin-left:auto; }
.cv-label { display:block; color:var(--cp-muted); font-size:10px; text-transform:uppercase; letter-spacing:.07em; font-weight:900; margin-bottom:5px; }
.cv-value { font-size:13px; font-weight:900; color:#0f172a; word-break:break-word; }
.cv-inline-tags { margin-top:9px; padding-top:9px; border-top:1px solid rgba(15,23,42,.07); }
.cv-inline-tags + .cv-inline-tags { margin-top:10px; padding-top:0; border-top:0; }
.cv-tags { display:flex; flex-wrap:wrap; gap:7px; align-items:center; }
.cv-tag {
  display:inline-flex;
  align-items:center;
  gap:6px;
  border:1px solid rgba(15,23,42,.09);
  background:#f8fafc;
  color:#334155;
  border-radius:999px;
  padding:4px 10px;
  font-size:11px;
  font-weight:600;
}
.cv-tag a { color:#94a3b8; line-height:1; }
.cv-tag a:hover { color:var(--cp-red); }
.cv-tag-form { position:relative; display:inline-flex; gap:5px; align-items:center; }
.cv-input,
.cv-select,
.cv-textarea {
  width:100%;
  border:1px solid var(--cp-line);
  border-radius:8px;
  background:#fff;
  color:#111827;
  outline:none;
  padding:8px 10px;
  font-size:13px;
}
.cv-input:focus,
.cv-select:focus,
.cv-textarea:focus { border-color:rgba(27,58,75,.45); box-shadow:0 0 0 3px rgba(27,58,75,.08); }
.cv-tag-form .cv-input { width:140px; border-radius:999px; padding:6px 11px; font-size:12px; }
.cv-round-submit {
  width:30px;
  height:30px;
  border-radius:999px;
  border:0;
  background:var(--cp-primary);
  color:#fff;
  font-weight:900;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.cv-tag-menu {
  display:none;
  position:absolute;
  top:calc(100% + 5px);
  left:0;
  z-index:30;
  width:220px;
  max-height:210px;
  overflow:auto;
  background:#fff;
  border:1px solid var(--cp-line);
  border-radius:10px;
  box-shadow:0 12px 30px rgba(2,6,23,.12);
}
.cv-tag-option { padding:9px 11px; font-size:12px; font-weight:700; cursor:pointer; color:#334155; }
.cv-tag-option:hover { background:#f8fafc; color:var(--cp-primary); }
.cv-form-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.cv-form-grid .wide { grid-column:1/-1; }
.cv-form-label { color:var(--cp-muted); display:block; font-size:11px; font-weight:900; margin-bottom:4px; }
@media (max-width:760px) {
  .cv-identity-head { flex-direction:column; }
  .cv-hero-row { flex-direction:column; }
  .cv-form-grid { grid-template-columns:1fr; }
  .cv-info-strip .cv-date-meta--first { margin-left:0; }
}

/* ── Colonne Notes/Mails partagée (fiches détail) ── */
.cv-card--notes { background:transparent; border-color:transparent; box-shadow:none; }
.cv-card--notes .cv-card__head { border-bottom:none; padding-bottom:6px; }
.cv-card--notes .cv-section-title { font-weight:700; color:var(--cp-text); }
.cv-card--notes .cv-card__body { padding-top:6px; }
.cv-card--notes .cv-quick-form {
  gap:5px; margin-bottom:14px; padding:13px 14px;
  background:#fff; border:1px solid rgba(15,23,42,.08); border-radius:11px;
  box-shadow:0 1px 2px rgba(15,23,42,.03);
}
.cv-card--notes .cv-textarea { padding:6px 8px; font-size:12px; }
.cv-quick-form { display:grid; gap:8px; margin-bottom:12px; }
.cv-quick-row { display:flex; gap:8px; align-items:center; }
.cv-quick-row .cv-input { min-width:0; }
.cv-recall-label { display:flex; align-items:center; gap:5px; font-size:12px; color:var(--cp-muted); cursor:pointer; white-space:nowrap; flex-shrink:0; }
.cv-recall-label input { accent-color:var(--cp-primary); width:14px; height:14px; cursor:pointer; }
.cv-recall-badge { display:inline-flex; align-items:center; color:#16a34a; margin-left:4px; vertical-align:middle; }
/* Liste "recollée" : une seule carte, chaque note séparée par un simple
   filet — pas des cartes individuelles avec des vides entre elles. */
.cv-notes-list {
  display:flex; flex-direction:column;
  background:#fff; border:1px solid rgba(15,23,42,.08); border-radius:11px;
  box-shadow:0 1px 2px rgba(15,23,42,.03);
  overflow:hidden;
}
.cv-note--extra { display:none; }
.cv-notes-list.is-expanded .cv-note--extra { display:block; }
.cv-notes-more { display:block; width:100%; text-align:left; background:none; border:none; color:var(--cp-muted); font-size:12px; cursor:pointer; padding:4px 0 2px; }
.cv-notes-more:hover { color:var(--cp-primary); }
.cv-note { border:0; border-radius:0; background:transparent; padding:13px 15px 14px; margin:0; box-shadow:none; }
.cv-note + .cv-note { border-top:1px solid rgba(15,23,42,.06); }
.cv-note.is-editing { background:#fffaf0; border-radius:8px; padding:10px 12px; margin:2px; border:1px solid #ffc107; }
.cv-note-head { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:6px; }
.cv-note-date { color:var(--cp-muted); font-size:12px; font-weight:400; }
.cv-note-content { color:#1e293b; font-size:13px; line-height:1.55; white-space:pre-line; }
.cv-quoted-toggle { display:inline-flex; align-items:center; gap:4px; margin-top:6px; padding:2px 0; background:none; border:none; cursor:pointer; font-size:11px; font-weight:700; color:var(--cp-muted); text-transform:uppercase; letter-spacing:.04em; }
.cv-quoted-toggle:hover { color:var(--cp-primary); }
.cv-quoted-block { display:none; margin-top:6px; padding:8px 10px; background:#f8fafc; border-left:2px solid #e2e8f0; color:#64748b; font-size:12px; line-height:1.5; white-space:pre-line; }
.cv-quoted-block.is-visible { display:block; }
.cv-note-stage { display:inline-block; padding:1px 8px; border-radius:999px; font-size:11px; font-weight:700; letter-spacing:.03em; margin-right:5px; vertical-align:baseline; white-space:nowrap; }
/* Pastille "étape la plus avancée" dans une liste de jobs (glued-list,
   colonne Étape) : sans ça la pastille s'étire à la largeur de sa colonne
   de grille (comportement par défaut de CSS Grid) et sa taille varie selon
   le libellé — on la fixe à la taille du plus long libellé ("Entretien
   final") pour qu'elles soient toutes identiques et ne collent pas à la
   colonne précédente. */
.cv-job .cv-note-stage,
.cv-ccontact .cv-note-stage {
  justify-self: center;
  min-width: 96px;
  text-align: center;
  margin-right: 0;
}
.cv-note-stage--refused { background:#fee2e2; color:#b91c1c; }
.cv-note-stage--solicited { background:#f3f4f6; color:#64748b; }
.cv-note-stage--shortlist { background:#fef3c7; color:#b45309; }
.cv-note-stage--interview { background:#dbeafe; color:#1d4ed8; }
.cv-note-stage--final-interview { background:#ede9fe; color:#6d28d9; }
.cv-note-stage--proposal { background:#fee2e2; color:#b91c1c; }
.cv-note-stage--deal { background:#dcfce7; color:#15803d; }
.cv-note-stage--terminated { background:#e2e8f0; color:#475569; }
.cv-note-stage--neutral { background:#f1f5f9; color:#64748b; }
.cv-note-actions { display:flex; gap:4px; flex:0 0 auto; opacity:0; transition:opacity .15s; }
.cv-note:hover .cv-note-actions { opacity:1; }
.cv-note-actions a {
  width:24px; height:24px; border-radius:6px; border:1px solid transparent; color:#94a3b8;
  display:inline-flex; align-items:center; justify-content:center;
}
.cv-note-actions a:hover { color:var(--cp-primary); background:#f8fafc; border-color:rgba(15,23,42,.08); }
.cv-note-actions a.cv-note-danger:hover { color:var(--cp-red); }
.cv-note-actions button { width:24px; height:24px; border-radius:6px; border:1px solid transparent; color:#94a3b8; display:inline-flex; align-items:center; justify-content:center; background:transparent; cursor:pointer; padding:0; }
.cv-note-actions button:hover { color:var(--cp-primary); background:#f8fafc; border-color:rgba(15,23,42,.08); }
.cv-note-editor { padding-top:6px; }
.cv-note-editor .cv-textarea { min-height:70px; resize:vertical; font-weight:400; line-height:1.5; border:1px solid var(--cp-line); border-radius:8px; padding:7px 10px; font-size:13px; box-sizing:border-box; }
.cv-entity-link { color:inherit; font-weight:900; }
.cv-entity-link:hover { color:var(--cp-primary); text-decoration:underline; text-underline-offset:3px; }

/* ── Onglets partagés (fiches détail : candidat/job/contact...) ──
   Anciennement dupliqué par page. cvSwitchTab() dans web/js/ui.js. */
.cv-tabs { display: flex; gap: 2px; }
.cv-tab-btn {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  margin: 0;
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--cp-muted);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  padding: 12px 10px;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
}
.cv-tab-btn.active { color: var(--cp-primary); border-bottom-color: var(--cp-gold); }
.cv-tab-pane { display: none; }
.cv-tab-pane.active { display: block; }
/* Variante "alignée sur le contenu en dessous" (ex: liste de missions dont
   les lignes ont leur propre padding) : le conteneur porte tout l'inset
   gauche, le 1er onglet n'a plus le sien pour ne pas le doubler. */
.cv-tabs--flush { padding:0 14px 0 36px; }
.cv-tabs--flush .cv-tab-btn:first-child { padding-left:0; }
/* Variante "collée en haut" (colonne latérale sans hero au-dessus) : le mot
   "Notes"/"Mails" démarre exactement à la hauteur de la bordure de la carte
   (donc du hero à côté), sans aucun espace. */
.cv-tabs--zero-top .cv-tab-btn { padding-top:0; }
