/* ============================================================
   Prospect CRM : design system (clair & raffiné, accent indigo)
   Geist (UI) + Schibsted Grotesk (titres). Neutres teintés indigo.
   ============================================================ */

:root {
  --font-ui: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Schibsted Grotesk', 'Geist', var(--font-ui);

  /* Surfaces & texte (OKLCH, teintés indigo) */
  --bg:           oklch(0.984 0.004 275);
  --surface:      oklch(0.997 0.001 275);
  --surface-2:    oklch(0.975 0.005 275);
  --surface-3:    oklch(0.962 0.006 275);
  --border:       oklch(0.916 0.006 275);
  --border-soft:  oklch(0.945 0.005 275);
  --border-strong:oklch(0.855 0.009 275);

  --text:         oklch(0.27 0.024 270);
  --text-muted:   oklch(0.515 0.02 272);
  --text-faint:   oklch(0.64 0.016 272);

  /* Accent indigo */
  --accent:       oklch(0.515 0.196 272);
  --accent-hover: oklch(0.46 0.196 272);
  --accent-press: oklch(0.42 0.18 272);
  --accent-soft:  oklch(0.952 0.032 275);
  --accent-soft-2:oklch(0.93 0.045 275);
  --accent-text:  oklch(0.44 0.17 272);
  --ring:         oklch(0.515 0.196 272 / 0.35);

  /* Sémantique */
  --danger:       oklch(0.55 0.205 25);
  --danger-soft:  oklch(0.955 0.035 25);
  --danger-text:  oklch(0.48 0.18 25);
  --success:      oklch(0.59 0.135 155);
  --success-soft: oklch(0.955 0.04 160);
  --warn:         oklch(0.62 0.16 65);
  --warn-soft:    oklch(0.96 0.05 80);

  --shadow-sm: 0 1px 2px oklch(0.4 0.03 270 / 0.06);
  --shadow:    0 1px 2px oklch(0.4 0.03 270 / 0.05), 0 2px 6px oklch(0.4 0.03 270 / 0.05);
  --shadow-md: 0 4px 12px oklch(0.35 0.04 270 / 0.08), 0 1px 3px oklch(0.4 0.03 270 / 0.05);
  --shadow-lg: 0 12px 32px oklch(0.3 0.05 270 / 0.12), 0 2px 8px oklch(0.3 0.04 270 / 0.06);
  --shadow-pop:0 24px 60px oklch(0.22 0.05 270 / 0.22);

  --r-xs: 5px; --r-sm: 7px; --r: 9px; --r-md: 11px; --r-lg: 14px; --r-xl: 20px;
  --sb: 246px;
  --topbar-h: 60px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}
.hidden { display: none !important; }
.num, .tnum { font-variant-numeric: tabular-nums; }
::selection { background: var(--accent-soft-2); }

/* Scrollbars discrets */
* { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 99px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--text-faint); }

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

/* ============ Icônes ============ */
.icon, [data-ico] > svg, .nav-ico > svg { display: inline-block; vertical-align: middle; flex: 0 0 auto; }
[data-ico] { display: inline-flex; align-items: center; justify-content: center; }
[data-ico] > svg { width: 1.05em; height: 1.05em; }

/* ============ Boutons ============ */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 0 13px; height: 36px;
  border-radius: var(--r); border: 1px solid transparent;
  font-family: inherit; font-size: 13.5px; font-weight: 550; line-height: 1;
  cursor: pointer; white-space: nowrap; user-select: none;
  transition: background .14s var(--ease), border-color .14s, box-shadow .14s, transform .04s;
}
.btn > svg { width: 16px; height: 16px; }
.btn:active { transform: translateY(.5px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:active { background: var(--accent-press); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--border-strong); }
.btn-soft { background: var(--accent-soft); color: var(--accent-text); }
.btn-soft:hover { background: var(--accent-soft-2); }
.btn-danger { background: var(--danger-soft); color: var(--danger-text); }
.btn-danger:hover { background: oklch(0.92 0.05 25); }
.btn-sm { height: 30px; padding: 0 10px; font-size: 12.5px; gap: 5px; border-radius: var(--r-sm); }
.btn-sm > svg { width: 14px; height: 14px; }
.btn-xs { height: 26px; padding: 0 9px; font-size: 12px; gap: 4px; border-radius: var(--r-xs); }
.btn-xs > svg { width: 13px; height: 13px; }
.btn-block { width: 100%; justify-content: center; height: 40px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: var(--r-sm);
  background: transparent; border: 1px solid transparent; color: var(--text-muted);
  cursor: pointer; transition: background .14s, color .14s;
}
.icon-btn > svg { width: 18px; height: 18px; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }

/* ============ Champs ============ */
.field {
  display: block; width: 100%; height: 38px;
  padding: 0 11px; font-family: inherit; font-size: 13.5px; color: var(--text);
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r-sm);
  transition: border-color .14s, box-shadow .14s;
}
textarea.field { height: auto; padding: 9px 11px; line-height: 1.5; resize: vertical; }
.field::placeholder { color: var(--text-faint); }
.field:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
select.field { cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 8px center; padding-right: 30px;
}
.field-label { display: block; font-size: 11.5px; font-weight: 550; color: var(--text-muted); margin-bottom: 5px; letter-spacing: .01em; }
.field-group + .field-group { margin-top: 13px; }
.field.w-20 { width: 76px; } .field.w-24 { width: 92px; }

/* ============ Login ============ */
.login-screen { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px;
  background:
    radial-gradient(900px 500px at 15% -5%, var(--accent-soft), transparent 60%),
    radial-gradient(700px 500px at 100% 110%, oklch(0.95 0.03 200), transparent 55%),
    var(--bg);
}
.login-card { width: 100%; max-width: 372px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 34px 30px; box-shadow: var(--shadow-lg); }
.login-brand { display: flex; align-items: center; gap: 9px; margin-bottom: 22px; }
.login-title { font-family: var(--font-display); font-size: 23px; font-weight: 700; margin: 0; letter-spacing: -0.02em; }
.login-sub { color: var(--text-muted); font-size: 13.5px; margin: 3px 0 22px; }
.login-form .field-group { margin-top: 0; }
.login-form .field-group + .field-group { margin-top: 13px; }
.login-form .btn-block { margin-top: 20px; }
.login-error { color: var(--danger-text); font-size: 13px; margin-top: 13px; text-align: center; }

/* Marque */
.brand-mark { display: inline-flex; width: 30px; height: 30px; border-radius: 9px; align-items: center; justify-content: center;
  background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.brand-mark > svg { width: 18px; height: 18px; }
.brand-word { font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -0.02em; color: var(--text); }

/* ============ App shell ============ */
.app-shell { display: flex; min-height: 100vh; }

.sidebar {
  position: fixed; top: 0; left: 0; bottom: 0; width: var(--sb); z-index: 40;
  background: var(--surface); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; padding: 14px 12px;
}
.sidebar-brand { display: flex; align-items: center; gap: 9px; padding: 6px 8px 16px; }
.sidebar-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; }
.nav-section-label { font-size: 10.5px; font-weight: 650; text-transform: uppercase; letter-spacing: .07em;
  color: var(--text-faint); padding: 14px 10px 5px; }
.nav-section-label:first-child { padding-top: 4px; }
.nav-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 8px 10px; border: none; background: transparent; cursor: pointer;
  font-family: inherit; font-size: 13.5px; font-weight: 500; color: var(--text-muted);
  border-radius: var(--r-sm); text-align: left; transition: background .14s, color .14s;
}
.nav-item:hover { background: var(--surface-2); color: var(--text); }
.nav-ico { display: inline-flex; color: var(--text-faint); transition: color .14s; }
.nav-ico > svg { width: 18px; height: 18px; }
.nav-item:hover .nav-ico { color: var(--text-muted); }
.nav-item.active { background: var(--accent-soft); color: var(--accent-text); font-weight: 600; }
.nav-item.active .nav-ico { color: var(--accent); }
.nav-label { flex: 1; }
.nav-badge { font-size: 11px; font-weight: 650; font-variant-numeric: tabular-nums;
  background: var(--danger); color: #fff; border-radius: 99px; padding: 1px 7px; min-width: 18px; text-align: center; }

.sidebar-foot { padding-top: 10px; border-top: 1px solid var(--border-soft); margin-top: 6px; }
.user-chip { display: flex; align-items: center; gap: 9px; width: 100%; padding: 7px 8px; border-radius: var(--r-sm); }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex: 0 0 auto;
  border-radius: 9px; background: var(--accent-soft); color: var(--accent-text); font-weight: 650; font-size: 13px; }
.user-meta { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.user-name { font-size: 13px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-role { font-size: 11px; color: var(--text-faint); text-transform: capitalize; }
.user-logout { width: 30px; height: 30px; }
.user-logout > svg { width: 16px; height: 16px; }

.sidebar-overlay { position: fixed; inset: 0; background: oklch(0.3 0.03 270 / 0.4); z-index: 35; opacity: 0; visibility: hidden;
  transition: opacity .2s; }
.sidebar-overlay.open { opacity: 1; visibility: visible; }

.main { flex: 1; min-width: 0; margin-left: var(--sb); display: flex; flex-direction: column; }

.topbar {
  position: sticky; top: 0; z-index: 30; height: var(--topbar-h);
  display: flex; align-items: center; gap: 14px; padding: 0 24px;
  background: oklch(0.997 0.001 275 / 0.82); backdrop-filter: saturate(1.5) blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar-burger { display: none; }
.topbar-title { display: flex; flex-direction: column; justify-content: center; min-width: 0; flex: 1; }
.topbar-title h1 { font-family: var(--font-display); font-size: 19px; font-weight: 700; letter-spacing: -0.02em; margin: 0; line-height: 1.1; }
.topbar-meta { font-size: 12px; color: var(--text-faint); margin-top: 1px; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.btn-search { color: var(--text-muted); font-weight: 450; }
.btn-search kbd { font-family: var(--font-ui); font-size: 11px; font-weight: 550; background: var(--surface-3); color: var(--text-faint);
  border-radius: 5px; padding: 2px 6px; margin-left: 4px; }

.workspace { padding: 24px; max-width: 1360px; width: 100%; margin: 0 auto; }
[data-tab-content] { animation: fade-up .26s var(--ease); }
@keyframes fade-up { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ============ Cartes / panneaux ============ */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.card-pad { padding: 18px; }
.section { margin-top: 22px; }
.section-head { display: flex; align-items: center; justify-content: between; gap: 10px; margin-bottom: 13px; }
.section-title { font-family: var(--font-display); font-size: 15.5px; font-weight: 700; letter-spacing: -0.01em; margin: 0; }
.section-sub { font-size: 12.5px; color: var(--text-muted); }

/* ============ Stat strip (Aujourd'hui) ============ */
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.stat { padding: 16px 18px; position: relative; }
.stat + .stat { border-left: 1px solid var(--border-soft); }
.stat-label { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 550; color: var(--text-muted); }
.stat-label > [data-ico] { color: var(--text-faint); }
.stat-label > [data-ico] > svg { width: 15px; height: 15px; }
.stat-value { font-family: var(--font-display); font-size: 30px; font-weight: 700; line-height: 1.05; margin-top: 8px;
  font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.stat-hint { font-size: 11.5px; color: var(--text-faint); margin-top: 3px; }
.stat-value.is-alert { color: var(--danger-text); }
.stat-value.is-warm { color: var(--warn); }
.stat-value.is-accent { color: var(--accent-text); }
.stat-value.is-mute { color: var(--text-faint); }

/* Stat clickable : tout l'element est un button qui lift au hover (feeling Apple) */
button.stat {
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 0;
  text-align: left;
  font-family: inherit;
  color: inherit;
  width: 100%;
  cursor: pointer;
  position: relative;
  transition: background .14s var(--ease), transform .12s var(--ease);
}
button.stat:hover { background: var(--surface-2); }
button.stat:hover .stat-value { transform: translateY(-1px); transition: transform .18s var(--ease); }
button.stat:active { transform: scale(0.985); }
button.stat:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
button.stat::after {
  content: ""; position: absolute; top: 14px; right: 14px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--surface-3); color: var(--text-faint);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .15s var(--ease);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b6b88' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18l6-6-6-6'/%3E%3C/svg%3E");
  background-position: center; background-repeat: no-repeat;
}
button.stat:hover::after { opacity: 1; }

/* ============ Goal strip (objectifs productivite) ============ */
.goal-strip {
  display: grid; grid-template-columns: repeat(3, 1fr) auto;
  gap: 12px; align-items: stretch;
  margin-bottom: 16px;
}
.goal-card {
  appearance: none;
  background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: 14px 16px;
  font-family: inherit; color: inherit; text-align: left;
  cursor: pointer;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .14s var(--ease), box-shadow .14s var(--ease), border-color .14s var(--ease);
}
.goal-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.goal-card:active { transform: translateY(0) scale(0.99); }
.goal-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.goal-head { display: flex; align-items: center; gap: 8px; }
.goal-ico { color: var(--text-faint); display: inline-flex; }
.goal-ico > svg { width: 18px; height: 18px; }
.goal-label { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.goal-counter { display: flex; align-items: baseline; gap: 4px; }
.goal-num { font-family: var(--font-display); font-size: 32px; font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.goal-target { font-size: 13px; color: var(--text-faint); font-variant-numeric: tabular-nums; }
.goal-card.ok .goal-num { color: var(--success); }
.goal-card.mid .goal-num { color: var(--accent-text); }
.goal-card.low .goal-num { color: var(--text); }
.goal-bar { height: 6px; background: var(--surface-3); border-radius: 99px; overflow: hidden; }
.goal-bar > span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  border-radius: 99px;
  transition: width .5s var(--ease);
}
.goal-card.ok .goal-bar > span { background: linear-gradient(90deg, var(--success), oklch(0.49 0.14 155)); }
.goal-foot { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--text-faint); font-variant-numeric: tabular-nums; }

.goal-config {
  align-self: stretch;
  width: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-lg);
  color: var(--text-faint); cursor: pointer;
  transition: background .14s var(--ease), color .14s;
}
.goal-config:hover { background: var(--surface-2); color: var(--text); }
.goal-config > svg { width: 16px; height: 16px; }

/* ============ Badges à pastille (statuts) ============ */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 8px; border-radius: 99px;
  font-size: 12px; font-weight: 550; line-height: 1.3; background: var(--surface-2); color: var(--text);
  border: 1px solid var(--border); white-space: nowrap; }
.badge .dot { width: 7px; height: 7px; border-radius: 99px; background: var(--dot, var(--text-faint)); flex: 0 0 auto; box-shadow: 0 0 0 2px oklch(1 0 0 / 0.5); }
.badge.role { padding: 2px 8px; font-size: 11px; }

/* boutons de choix de statut (modale lead) */
.status-pick { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 99px; cursor: pointer;
  font-size: 12px; font-weight: 550; background: var(--surface-2); color: var(--text-muted); border: 1px solid var(--border);
  transition: background .12s, color .12s, border-color .12s; }
.status-pick .dot { width: 7px; height: 7px; border-radius: 99px; background: var(--dot); }
.status-pick:hover { background: var(--surface-3); color: var(--text); }
.status-pick.active { background: var(--surface); color: var(--text); border-color: var(--text); box-shadow: 0 0 0 1px var(--text); font-weight: 600; }

/* ============ Score chip ============ */
.score { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 22px; padding: 0 7px;
  border-radius: var(--r-xs); font-size: 12.5px; font-weight: 650; font-variant-numeric: tabular-nums; }
.score--hot  { background: var(--success-soft); color: var(--success); }
.score--warm { background: var(--warn-soft); color: var(--warn); }
.score--cold { background: var(--surface-3); color: var(--text-faint); }
.score-lg { min-width: 0; height: auto; padding: 0; background: none; font-family: var(--font-display); font-size: 30px; letter-spacing: -0.02em; }
.score-lg.score--hot { color: var(--success); } .score-lg.score--warm { color: var(--warn); } .score-lg.score--cold { color: var(--text-muted); }

/* ============ Tags ============ */
.tag { display: inline-flex; align-items: center; gap: 5px; background: var(--accent-soft); color: var(--accent-text);
  padding: 2px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 550; }
.tag button { background: none; border: none; color: var(--accent); cursor: pointer; font-size: 13px; line-height: 1; padding: 0; }

/* ============ Tables ============ */
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table thead th { background-color: var(--surface-2); box-shadow: inset 0 -1px 0 var(--border);
  text-align: left; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--text-faint);
  padding: 9px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.data-table thead th.sortable { cursor: pointer; user-select: none; }
.data-table thead th.sortable:hover { color: var(--text-muted); }
.data-table tbody td { padding: 9px 12px; border-bottom: 1px solid var(--border-soft); vertical-align: middle; }
.data-table tbody tr { transition: background .1s; }
.data-table tbody tr:hover { background: var(--accent-soft); }
.data-table tbody tr:last-child td { border-bottom: none; }
/* Toute la ligne est un point d'entree vers la fiche lead */
.data-table tbody tr.lead-row { cursor: pointer; }
.data-table tbody tr.lead-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
/* Badge age commerce (date_creation Sirene). Cliquable pour filtrer par tranche d'age. */
.age-badge {
  appearance: none; border: 0;
  display: inline-flex; align-items: center;
  padding: 1px 7px; border-radius: 99px;
  font-size: 10.5px; font-weight: 600; line-height: 1.5;
  font-family: inherit; cursor: pointer;
  margin-left: 4px; vertical-align: middle;
  transition: filter .12s var(--ease);
}
.age-badge:hover { filter: brightness(0.95); }
.age-badge:active { transform: translateY(.5px); }
.age-badge--fresh  { background: oklch(0.94 0.07 145); color: oklch(0.42 0.13 145); }
.age-badge--young  { background: var(--accent-soft); color: var(--accent-text); }
.age-badge--mature { background: var(--surface-3); color: var(--text-faint); }
/* Categorie cliquable (filtre rapide "aujourd'hui je fais les cafes") */
.cell-cat {
  appearance: none; background: transparent; border: 0;
  font-family: inherit; font-size: 13px; color: var(--text-muted);
  padding: 4px 8px; border-radius: 6px; cursor: pointer; text-align: left;
  transition: background .12s var(--ease), color .12s;
}
.cell-cat:hover { background: var(--accent-soft); color: var(--accent-text); }
.cell-cat:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
/* Sidebar brand devient un home button */
.sidebar-brand { transition: opacity .12s var(--ease); }
.sidebar-brand:hover { opacity: 0.72; }
.sidebar-brand:active { opacity: 0.55; }
.sidebar-brand:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
.cell-name { font-weight: 600; color: var(--text); }
.cell-mute { color: var(--text-muted); }
.cell-link { color: var(--accent-text); text-decoration: none; font-weight: 500; }
.cell-link:hover { text-decoration: underline; }
.cell-link.is-dead { color: var(--danger-text); text-decoration: line-through; }
.http-chip { display: inline-block; font-size: 10px; font-weight: 700; padding: 1px 5px;
  border-radius: 5px; font-variant-numeric: tabular-nums; vertical-align: middle; line-height: 1.5; }
.http-chip.ok   { background: var(--success-soft); color: var(--success); }
.http-chip.warn { background: var(--warn-soft); color: var(--warn); }
.http-chip.dead { background: var(--danger-soft); color: var(--danger-text); }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flag { font-size: 11px; font-weight: 650; letter-spacing: .02em; }
.flag-closed { color: var(--danger-text); } .flag-temp { color: var(--warn); } .flag-ok { color: var(--success); } .flag-none { color: var(--border-strong); }
.no-site { color: var(--warn); font-size: 11.5px; font-weight: 650; }
/* Badge de confiance "sans site" : Google a confirme l'absence (place_id matche) vs
   jamais verifie / introuvable sur Maps. Pastille discrete a cote du libelle "Sans site". */
.confidence-badge { display: inline-flex; align-items: center; gap: 5px; margin-left: 2px;
  font-size: 10.5px; font-weight: 600; color: var(--text-faint); vertical-align: middle; }
.confidence-badge .dot { width: 6px; height: 6px; border-radius: 99px; background: var(--text-faint); flex: 0 0 auto; }
.confidence-badge.is-verified { color: var(--success); }
.confidence-badge.is-verified .dot { background: var(--success); }
/* Badge "site = compte social" : style liquid-glass (Apple). Fond translucide nuance gris.
   Seul le logo garde sa teinte d'origine pour rester reconnaissable. */
.site-social {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px 3px 8px; border-radius: 99px;
  font-size: 11.5px; font-weight: 600; text-decoration: none;
  color: var(--text-muted);
  background: oklch(0.985 0.002 275 / 0.6);
  backdrop-filter: saturate(1.4) blur(8px);
  border: 1px solid oklch(0.9 0.005 275 / 0.7);
  box-shadow: inset 0 0 0 1px oklch(1 0 0 / 0.5);
  transition: background .12s var(--ease), border-color .12s, transform .04s, color .12s;
}
.site-social:hover { background: oklch(0.97 0.004 275 / 0.85); border-color: oklch(0.85 0.006 275); color: var(--text); }
.site-social:active { transform: translateY(.5px); }
.site-social > svg { width: 13px; height: 13px; flex: 0 0 auto; }
/* Seule la teinte du logo varie : couleur de marque sur le svg uniquement, texte reste neutre */
.site-social--instagram > svg { color: oklch(0.56 0.19 350); }
.site-social--facebook  > svg { color: oklch(0.45 0.19 254); }
.site-social--linktree  > svg { color: oklch(0.5 0.18 150); }
.site-social--tiktok    > svg { color: oklch(0.4 0.04 280); }
.site-social--linkedin  > svg { color: oklch(0.45 0.16 240); }
.site-social--x         > svg { color: oklch(0.3 0.01 270); }
.site-social--whatsapp  > svg { color: oklch(0.5 0.16 145); }
.badge.chain { background: var(--surface-3); color: var(--text-muted); border-color: var(--border); gap: 4px; padding: 2px 8px 2px 6px; }
.badge.chain > svg { width: 12px; height: 12px; }
.socials { display: inline-flex; gap: 4px; vertical-align: middle; margin-left: 4px; }
.socials .soc { display: inline-flex; color: var(--text-faint); }
.socials .soc > svg { width: 13px; height: 13px; }
.chain-tag { display: inline-flex; color: var(--text-faint); }
.chain-note { font-size: 12px; color: var(--text-muted); background: var(--surface-3); border: 1px solid var(--border-soft); border-radius: var(--r-sm); padding: 7px 10px; margin: 10px 0 0; line-height: 1.45; }
.review-fresh { font-size: 12px; display: inline-flex; align-items: center; gap: 4px; }
.review-fresh.ok { color: var(--text-faint); }
.review-fresh.stale { color: var(--warn); font-weight: 550; }
.review-fresh.dead { color: var(--danger-text); font-weight: 600; }

.table-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.table-toolbar .grow { flex: 1; min-width: 190px; }
.table-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-muted); }
.row-checkbox, .check { width: 15px; height: 15px; accent-color: var(--accent); cursor: pointer; }

/* ============ Listes compactes (today/tasks) ============ */
.row-list { display: flex; flex-direction: column; }
.row-item { display: flex; align-items: center; gap: 11px; padding: 11px 4px; border-bottom: 1px solid var(--border-soft); }
.row-item:last-child { border-bottom: none; }
.row-item.clickable { cursor: pointer; border-radius: var(--r-sm); padding: 11px 10px; margin: 0 -6px; }
.row-item.clickable:hover { background: var(--surface-2); }
.row-main { flex: 1; min-width: 0; }
.row-title { font-size: 13.5px; font-weight: 550; color: var(--text); }
.row-title.done { text-decoration: line-through; color: var(--text-faint); }
.row-meta { font-size: 12px; color: var(--text-muted); margin-top: 1px; }
.row-meta .overdue { color: var(--danger-text); font-weight: 600; }
.row-meta a { color: var(--accent-text); text-decoration: none; }
.row-meta a:hover { text-decoration: underline; }

/* ============ Funnel ============ */
.funnel { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.funnel-step { background: var(--surface-2); border: 1px solid var(--border-soft); border-radius: var(--r); padding: 13px; text-align: center; }
.funnel-step.lost { background: var(--danger-soft); border-color: transparent; }
.funnel-label { font-size: 11.5px; color: var(--text-muted); }
.funnel-num { font-family: var(--font-display); font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; margin-top: 4px; }
.funnel-step.lost .funnel-num { color: var(--danger-text); }
.funnel-pct { font-size: 11px; color: var(--text-faint); margin-top: 2px; }
.funnel-step.clickable { cursor: pointer; transition: transform .12s var(--ease), background .14s var(--ease), border-color .14s var(--ease); }
.funnel-step.clickable:hover { background: var(--surface-3); border-color: var(--border-strong); transform: translateY(-1px); }
.funnel-step.clickable:active { transform: translateY(0) scale(0.985); }
.funnel-step.clickable.lost:hover { background: oklch(0.92 0.05 25); }
.funnel-step.clickable:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ============ Action bar (modale lead) ============ */
.action-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.action-split { position: relative; display: inline-flex; }
.action-split .action-main { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.action-split .action-more {
  border-top-left-radius: 0; border-bottom-left-radius: 0;
  border-left: 1px solid color-mix(in oklch, var(--accent-text) 25%, transparent);
  padding-left: 8px; padding-right: 8px;
  font-size: 12px;
}
.action-menu {
  position: absolute; top: calc(100% + 6px); left: 0;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
  box-shadow: var(--shadow-lg); z-index: 50;
  min-width: 180px; padding: 4px; display: flex; flex-direction: column;
}
.action-menu button {
  appearance: none; border: 0; background: transparent;
  text-align: left; padding: 8px 12px; border-radius: var(--r-sm);
  font-family: inherit; font-size: 13px; color: var(--text);
  cursor: pointer; transition: background .12s var(--ease);
}
.action-menu button:hover { background: var(--surface-2); }
.action-menu button:active { background: var(--surface-3); }

/* Pulse jaune subtil quand on scroll-flash une section */
.flash-highlight { animation: flashHL 1.2s var(--ease); }
@keyframes flashHL {
  0%   { box-shadow: 0 0 0 0 oklch(0.85 0.16 90 / 0.45); border-radius: var(--r-lg); }
  60%  { box-shadow: 0 0 0 8px oklch(0.85 0.16 90 / 0); }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* ============ Kanban ============ */
.kanban-board { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 10px; }
.kanban-col { width: 286px; flex: 0 0 286px; background: var(--surface-2); border: 1px solid var(--border-soft);
  border-radius: var(--r-md); padding: 10px; display: flex; flex-direction: column; }
.kanban-col-head { display: flex; align-items: center; gap: 8px; padding: 2px 4px 10px; }
.kanban-col-head .dot { width: 8px; height: 8px; border-radius: 99px; background: var(--dot); }
.kanban-col-title { font-size: 12.5px; font-weight: 650; color: var(--text); flex: 1; }
.kanban-col-count { font-size: 11.5px; font-weight: 600; color: var(--text-faint); font-variant-numeric: tabular-nums;
  background: var(--surface); border: 1px solid var(--border); border-radius: 99px; padding: 0 7px; }
.kanban-list { display: flex; flex-direction: column; gap: 8px; min-height: 40px; flex: 1; }
.kanban-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 11px;
  cursor: grab; box-shadow: var(--shadow-sm); transition: box-shadow .14s, border-color .14s, transform .04s; }
.kanban-card:hover { box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.kanban-card:active { cursor: grabbing; }
.kanban-card.dragging { opacity: .45; }
.kanban-card-top { display: flex; align-items: center; gap: 8px; }
.kanban-card-name { font-size: 13px; font-weight: 600; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kanban-card-sub { font-size: 11.5px; color: var(--text-muted); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kanban-card-foot { display: flex; align-items: center; gap: 9px; margin-top: 9px; font-size: 11.5px; color: var(--text-faint); }
.kanban-card-foot a { color: var(--accent-text); display: inline-flex; }
.kanban-card-foot .cp { margin-left: auto; }
.kanban-card-foot .due { color: var(--danger-text); font-weight: 650; display: inline-flex; align-items: center; gap: 3px; }
.kanban-list.drop-on { background: var(--accent-soft); border-radius: var(--r); box-shadow: inset 0 0 0 2px var(--accent); }
.kanban-more { width: 100%; margin-top: 8px; background: transparent; border: 1px dashed var(--border-strong); border-radius: var(--r-sm);
  color: var(--text-muted); font-size: 12px; font-weight: 500; padding: 7px; cursor: pointer; }
.kanban-more:hover { background: var(--surface); color: var(--text); }

/* ============ Lead modal interne ============ */
.lead-head { display: grid; grid-template-columns: 1fr auto; gap: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--border-soft); }
.lead-sub { font-size: 12px; color: var(--text-muted); text-transform: none; }
.lead-flags { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.lead-contacts { display: flex; flex-direction: column; gap: 5px; font-size: 13px; }
.lead-contacts a { color: var(--accent-text); text-decoration: none; }
.lead-contacts a:hover { text-decoration: underline; }
.contact-line { display: flex; align-items: center; gap: 7px; color: var(--text); }
.contact-line.empty { color: var(--text-faint); }
.contact-line > [data-ico] { color: var(--text-faint); } .contact-line > [data-ico] > svg { width: 15px; height: 15px; }
.sub-block { margin-top: 18px; }
.sub-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--text-faint); margin-bottom: 9px; }
.mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mini-card { border: 1px solid var(--border); border-radius: var(--r); padding: 13px; background: var(--surface); }
.mini-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.timeline { display: flex; flex-direction: column; gap: 12px; max-height: 220px; overflow-y: auto; padding-right: 4px; }
.tl-item { display: grid; grid-template-columns: 22px 1fr; gap: 9px; }
.tl-dot { width: 9px; height: 9px; border-radius: 99px; background: var(--accent); margin: 4px auto 0; box-shadow: 0 0 0 3px var(--accent-soft); }
.tl-rail { position: relative; }
.tl-rail::before { content: ''; position: absolute; left: 10px; top: 12px; bottom: -12px; width: 1.5px; background: var(--border); }
.tl-item:last-child .tl-rail::before { display: none; }
.tl-type { font-size: 12.5px; font-weight: 600; }
.tl-time { font-size: 11.5px; color: var(--text-faint); }
.tl-body { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }
.email-preview { margin-top: 12px; border: 1px solid var(--border); border-radius: var(--r); padding: 13px; background: var(--surface-2); }
.email-render { border: 1px solid var(--border); border-radius: var(--r-sm); padding: 12px; margin-top: 10px; background: var(--surface); font-size: 13px; }

/* ============ Toasts ============ */
#toasts { position: fixed; top: 18px; right: 18px; z-index: 200; display: flex; flex-direction: column; gap: 9px; pointer-events: none; max-width: 92vw; }
.toast { display: flex; align-items: center; gap: 9px; min-width: 250px; pointer-events: auto;
  background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 11px 14px; font-size: 13.5px; box-shadow: var(--shadow-lg); animation: toast-in .24s var(--ease); }
.toast::before { content: ''; width: 8px; height: 8px; border-radius: 99px; background: var(--text-faint); flex: 0 0 auto; }
.toast.success::before { background: var(--success); }
.toast.error::before { background: var(--danger); }
.toast.warning::before { background: var(--warn); }
@keyframes toast-in { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }

/* ============ Modale ============ */
.modal-backdrop { position: fixed; inset: 0; z-index: 100; background: oklch(0.25 0.03 270 / 0.42);
  display: flex; align-items: center; justify-content: center; padding: 22px; animation: fade .18s var(--ease); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); width: 100%; max-width: 760px;
  max-height: 90vh; display: flex; flex-direction: column; box-shadow: var(--shadow-pop); animation: pop .22s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border-soft); }
.modal-title { font-family: var(--font-display); font-size: 17px; font-weight: 700; letter-spacing: -0.01em; margin: 0; display: flex; align-items: center; gap: 10px; min-width: 0; }
.modal-title .truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.modal-body { padding: 20px; overflow-y: auto; }

/* dialog de confirmation */
.dlg-backdrop { position: fixed; inset: 0; z-index: 150; background: oklch(0.25 0.03 270 / 0.42); display: flex; align-items: center; justify-content: center; padding: 20px; animation: fade .15s var(--ease); }
.dlg-card { background: var(--surface); border-radius: var(--r-lg); padding: 22px; max-width: 420px; width: 100%; box-shadow: var(--shadow-pop); animation: pop .2s var(--ease); }
.dlg-title { font-family: var(--font-display); font-size: 17px; font-weight: 700; margin: 0 0 7px; }
.dlg-msg { font-size: 13.5px; color: var(--text-muted); margin: 0 0 18px; line-height: 1.5; }
.dlg-actions { display: flex; justify-content: flex-end; gap: 9px; }

/* ============ Bulk bar ============ */
#bulkBar { position: fixed; bottom: 22px; left: calc(50% + var(--sb) / 2); transform: translateX(-50%); z-index: 50;
  display: none; align-items: center; gap: 10px; padding: 9px 10px 9px 16px;
  background: var(--text); color: oklch(0.97 0 0); border-radius: 99px; box-shadow: var(--shadow-pop); }
#bulkBar.open { display: flex; }
.bulk-count { font-size: 13px; font-weight: 550; }
.bulk-select { height: 32px; border-radius: 99px; border: none; padding: 0 12px; font-family: inherit; font-size: 12.5px; font-weight: 550;
  background: oklch(1 0 0 / 0.12); color: #fff; cursor: pointer; appearance: none; padding-right: 26px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 8px center; }
.bulk-select option { color: var(--text); }
.bulk-clear { color: oklch(0.85 0 0); width: 30px; height: 30px; }
.bulk-clear:hover { background: oklch(1 0 0 / 0.14); color: #fff; }

/* ============ Command palette ============ */
#palette { position: fixed; inset: 0; z-index: 210; background: oklch(0.25 0.03 270 / 0.4); display: none; align-items: flex-start; justify-content: center; padding-top: 12vh; animation: fade .14s var(--ease); }
#palette.open { display: flex; }
#palette-inner { width: 100%; max-width: 540px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-pop); animation: pop .2s var(--ease); }
.palette-search { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border-soft); color: var(--text-faint); }
.palette-search > [data-ico] > svg { width: 18px; height: 18px; }
.palette-input { flex: 1; border: none; outline: none; background: none; font-family: inherit; font-size: 15px; color: var(--text); }
.palette-results { max-height: 360px; overflow-y: auto; padding: 6px; }
.palette-item { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: var(--r-sm); cursor: pointer; font-size: 13.5px; color: var(--text); }
.palette-item .pi-ico { color: var(--text-faint); display: inline-flex; } .palette-item .pi-ico > svg { width: 16px; height: 16px; }
.palette-item.active, .palette-item:hover { background: var(--accent-soft); color: var(--accent-text); }
.palette-item.active .pi-ico { color: var(--accent); }
.palette-item kbd { margin-left: auto; font-family: var(--font-ui); font-size: 11px; color: var(--text-faint); background: var(--surface-3); border-radius: 5px; padding: 2px 6px; }
.palette-empty { padding: 22px; text-align: center; color: var(--text-faint); font-size: 13px; }

/* ============ Empty / skeleton ============ */
.empty { text-align: center; padding: 40px 16px; color: var(--text-muted); }
.empty .empty-ico { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 13px;
  background: var(--surface-2); color: var(--text-faint); margin-bottom: 12px; }
.empty .empty-ico > svg { width: 22px; height: 22px; }
.empty-title { font-size: 14px; font-weight: 600; color: var(--text); }
.empty-sub { font-size: 12.5px; margin-top: 3px; }
.empty.error { color: var(--danger-text); }

.skel { background: linear-gradient(100deg, var(--surface-2) 30%, var(--surface-3) 50%, var(--surface-2) 70%); background-size: 200% 100%;
  animation: skel 1.3s infinite linear; border-radius: var(--r); }
@keyframes skel { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.skel-row { height: 56px; margin-bottom: 8px; }

/* ============ Page Lead (dediee) ============ */
.lead-page { display: flex; flex-direction: column; gap: 16px; }
.lead-page-toolbar { display: flex; align-items: center; gap: 8px; }
.lead-page-head {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm); padding: 22px 24px;
}
.lead-page-title { font-family: var(--font-display); font-size: 30px; font-weight: 700; letter-spacing: -0.025em; margin: 0; line-height: 1.1; }
.lead-page-sub { font-size: 13.5px; color: var(--text-muted); margin-top: 4px; }
.lead-page-flags { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 14px; }
.score-sub { font-size: 13px; color: var(--text-faint); font-weight: 500; }
.lead-page-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.lead-page-full { grid-column: 1 / -1; }
.form-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px;
}
.lead-page-wide { grid-column: 1 / -1; }
.field-block { display: flex; flex-direction: column; }
.field-block .field-label { margin-bottom: 5px; }
.row.between { display: flex; justify-content: space-between; align-items: center; }
.grow { flex: 1; min-width: 0; }
@media (max-width: 900px) {
  .lead-page-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .lead-page-title { font-size: 24px; }
}

/* ============ Section OSINT (fiche lead) ============ */
.osint-list { display: flex; flex-direction: column; gap: 12px; }
.osint-block {
  background: var(--surface-2); border: 1px solid var(--border-soft);
  border-radius: var(--r); padding: 12px 14px;
}
.osint-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.osint-title { font-size: 12.5px; font-weight: 650; color: var(--text); }
.osint-sub { font-size: 11px; color: var(--text-faint); }
.osint-row { font-size: 12.5px; line-height: 1.5; }
.osint-row + .osint-row { margin-top: 2px; }
.osint-links { display: flex; flex-wrap: wrap; gap: 8px; }
.osint-link {
  display: inline-flex; align-items: center; padding: 5px 11px; border-radius: 99px;
  font-size: 12px; font-weight: 600; color: var(--accent-text); text-decoration: none;
  background: var(--accent-soft); border: 1px solid transparent;
  transition: background .12s var(--ease), border-color .12s;
}
.osint-link:hover { background: var(--accent-soft-2); border-color: var(--accent); }
.osint-results { display: flex; flex-direction: column; gap: 8px; }
.osint-result {
  display: block; padding: 8px 10px; border-radius: var(--r-sm);
  background: var(--surface); border: 1px solid var(--border-soft);
  text-decoration: none; color: inherit;
  transition: border-color .12s, background .12s;
}
.osint-result:hover { border-color: var(--border-strong); background: var(--surface-2); }
.osint-result-title { font-size: 13px; font-weight: 600; color: var(--accent-text); margin-bottom: 2px; line-height: 1.3; }
.osint-result-meta { font-size: 11px; color: var(--text-faint); font-variant-numeric: tabular-nums; }
.osint-meta { display: flex; gap: 8px; padding-top: 6px; flex-wrap: wrap; }
.osint-pill {
  display: inline-flex; align-items: center;
  padding: 3px 9px; border-radius: 99px;
  font-size: 10.5px; font-weight: 600; color: var(--text-faint);
  background: var(--surface-3); border: 1px solid var(--border-soft);
}
.osint-pill--empty { color: var(--text-muted); }
.osint-pill--fail { color: var(--danger-text); background: var(--danger-soft); border-color: transparent; }

/* ============ Utilitaires layout ============ */
.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; }
.between { justify-content: space-between; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.wrap { display: flex; flex-wrap: wrap; gap: 7px; }
.mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; }

/* Cartes leads (base : visibles, masquées en >=768 plus bas) */
.leads-cards { display: flex; flex-direction: column; gap: 9px; padding: 14px; }
.lead-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 13px; cursor: pointer; box-shadow: var(--shadow-sm); }
.lead-card:active { background: var(--surface-2); }
.lead-card-top { display: flex; align-items: flex-start; gap: 10px; }
.lead-card-name { font-weight: 600; }
.lead-card-sub { font-size: 12px; color: var(--text-muted); margin-top: 1px; }

/* ============ Responsive ============ */
@media (max-width: 1023px) {
  .sidebar { transform: translateX(-100%); transition: transform .26s var(--ease); box-shadow: var(--shadow-pop); }
  .sidebar.open { transform: none; }
  .main { margin-left: 0; }
  .topbar-burger { display: inline-flex; }
  #bulkBar { left: 50%; }
  .data-table thead th { top: 0; }
}
@media (max-width: 767px) {
  .workspace { padding: 16px; }
  .topbar { padding: 0 14px; gap: 10px; }
  .search-label { display: none; }
  .btn-search kbd { display: none; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: none; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--border-soft); }
  .goal-strip { grid-template-columns: 1fr 1fr; }
  .goal-config { grid-column: span 2; height: 36px; }
  .action-bar { gap: 6px; }
  .action-menu { min-width: 160px; }
  .grid-2 { grid-template-columns: 1fr; }
  .funnel { grid-template-columns: repeat(2, 1fr); }
  .mini-grid { grid-template-columns: 1fr; }
  .lead-head { grid-template-columns: 1fr; }
  .data-table { display: none; }
  .modal-backdrop { padding: 0; align-items: flex-end; }
  .modal-panel { max-width: 100%; max-height: 94vh; border-radius: var(--r-lg) var(--r-lg) 0 0; }
}
@media (min-width: 768px) { .leads-cards { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* =============== SCRIPT D'APPEL =============== */
.script-head { margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--border-soft); }
.script-body { display: flex; flex-direction: column; gap: 16px; }
.script-section { }
.script-h {
  margin: 0 0 6px; font-size: 12px; font-weight: 650; text-transform: uppercase;
  letter-spacing: .04em; color: var(--accent-text);
}
.script-lines { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.script-lines li {
  position: relative; padding: 7px 11px 7px 13px; font-size: 13.5px; line-height: 1.5;
  background: var(--surface-2); border-radius: 7px; border-left: 2px solid var(--accent-soft-2); color: var(--text);
}
.script-note {
  margin-top: 7px; font-size: 12px; font-style: italic; color: var(--text-muted);
  display: flex; align-items: flex-start; gap: 5px;
}
.script-note .icon { width: 13px; height: 13px; flex: none; margin-top: 2px; color: var(--accent); }
.script-obj-list { display: flex; flex-direction: column; gap: 9px; }
.script-obj { padding: 9px 11px; background: var(--surface-2); border-radius: 8px; border: 1px solid var(--border-soft); }
.script-obj-q { font-size: 13px; font-weight: 600; color: var(--text); display: flex; align-items: flex-start; gap: 6px; }
.script-obj-q .icon { width: 13px; height: 13px; flex: none; margin-top: 2px; color: var(--danger-text); }
.script-obj-a {
  margin-top: 5px; padding-left: 19px; font-size: 13px; line-height: 1.5; color: var(--text-muted);
  display: flex; align-items: flex-start; gap: 6px;
}
.script-obj-a .icon { width: 13px; height: 13px; flex: none; margin-top: 2px; margin-left: -19px; color: var(--accent); }

/* =============== PAGE OFFRE =============== */
.offer-wrap { display: flex; flex-direction: column; gap: 16px; max-width: 920px; }
.offer-hero { background: var(--accent-soft); border: 1px solid var(--accent-soft-2); border-radius: 12px; padding: 18px 20px; }
.offer-hero h2 { margin: 0 0 6px; font-size: 16px; color: var(--accent-text); }
.offer-hero p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--text); }
.offer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.offer-flow { display: flex; flex-direction: column; gap: 8px; }
.offer-flow-step { display: flex; gap: 10px; padding: 9px 11px; background: var(--surface-2); border-radius: 8px; }
.offer-flow-num { font-weight: 700; color: var(--accent); font-size: 13px; flex: none; }
.offer-flow-step .t { font-size: 13px; font-weight: 600; }
.offer-flow-step .d { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }
.offer-pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; background: var(--accent-soft); color: var(--accent-text); font-weight: 600; }
@media (max-width: 760px) { .offer-grid { grid-template-columns: 1fr; } }
