/*
================================================================================
  ◎ DEMO KXCLOUD — PANNEAU LISTE DES LEADS (ADR-007, dossier 05 §4/§5.2)
  Fichier  : /opt/cortex/demo/src/css/components/leads.css
  Rôle     : Tri & hiérarchie — cartes séparées par ESPACE NÉGATIF (jamais de
             lignes), soft-focus au survol, badges de chaleur en pilule.
================================================================================
*/

.lead-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-g1); /* séparation par le vide — aucune ligne */
  max-height: 60vh;
  overflow-y: auto;
  /* Scroll interne fluide : momentum iOS, pas de chaînage au scroll de page,
     couche GPU dédiée (v66.12). */
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  transform: translateZ(0);
}

/* ── ÉTAT VIDE : le vide est dit, pas comblé ───────────────────────────────── */
.lead-empty {
  padding: var(--space-g2) var(--space-g1);
  color: var(--ink-muted);
  font-size: var(--text-sm);
  text-align: center;
}

/* ── CARTE DE LEAD QUALIFIÉ ────────────────────────────────────────────────── */
.lead-card {
  background-color: var(--bg-paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-z1);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition:
    background-color var(--duration-z2) ease,
    box-shadow var(--duration-z2) ease,
    transform var(--duration-z2) ease;
}

.lead-card:hover {
  background-color: var(--bg-card-alt);
  box-shadow: var(--shadow-float);
  transform: translateY(-1px);
}

/* Tactile (v66.8) : le doigt n'a pas de survol — la carte répond au tap,
   et l'élévation hover ne « reste pas allumée » après le toucher. */
@media (hover: none) {
  .lead-card:hover {
    background-color: var(--bg-paper);
    box-shadow: none;
    transform: none;
  }
  .lead-card:active {
    background-color: var(--bg-card-alt);
  }
}

.lead-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-g1);
}

.lead-sector {
  font-weight: 600;
  color: var(--ink);
  font-size: var(--text-sm);
}

.lead-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-family: "Roboto Mono", monospace;
  font-size: 0.74rem;
  color: var(--ink-muted);
}

.lead-facts strong {
  color: var(--ink-2);
  font-weight: 500;
}

.lead-excerpt {
  font-size: var(--text-sm);
  color: var(--ink-2);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── BADGES DE CHALEUR — pilules, 4 paliers (dossier 05 §4) ────────────────── */
.badge-heat {
  font-family: "Roboto Mono", monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  white-space: nowrap;
}

.badge-heat--froid {
  color: var(--ink-muted);
  border-color: var(--line-strong);
  background-color: transparent;
}

.badge-heat--tiede {
  color: var(--accent-ink);
  background-color: var(--accent-dim);
}

.badge-heat--chaud {
  color: var(--signal-deep);
  background-color: var(--signal-dim);
}

.badge-heat--brulant {
  color: var(--bg-paper);
  background-color: var(--accent-ink); /* terre cuite saturée — ratio ≈ 6.7:1 */
}
