/* Pipeline (kanban), fiche lead, chronologie */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(224px, 1fr); gap: var(--s-3); overflow-x: auto; padding-bottom: var(--s-3); align-items: start; }
.kanban__col { background: #ECEEF1; border-radius: var(--r-carte); min-height: 200px; display: flex; flex-direction: column; }
.kanban__col.is-over { background: #E2E5EA; box-shadow: inset 0 0 0 1px var(--encre); }
.kanban__head { padding: var(--s-3) var(--s-3) var(--s-2); }
.kanban__title { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-2); font-weight: 500; font-size: var(--t-sm); }
.kanban__meta { font-size: var(--t-xs); color: var(--ardoise); font-variant-numeric: tabular-nums; }
.kanban__col--gagne .kanban__head { border-top: 2px solid var(--vert); }
.kanban__col--perdu .kanban__head { border-top: 2px solid var(--trait-fort); }
.kanban__list { display: flex; flex-direction: column; gap: var(--s-2); padding: 0 var(--s-2) var(--s-2); flex: 1; }

.lead-card { display: block; padding: var(--s-3); background: var(--blanc); border: 1px solid var(--trait); border-radius: var(--r-champ); text-decoration: none; color: inherit; }
.lead-card:hover { border-color: var(--trait-fort); }
.lead-card[draggable="true"] { cursor: grab; }
.lead-card.is-dragging { opacity: .45; }
.lead-card__titre { font-size: var(--t-sm); font-weight: 500; line-height: 1.35; }
.lead-card__ent { font-size: var(--t-xs); color: var(--ardoise); margin-top: 2px; }
.lead-card__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); margin-top: var(--s-3); font-size: var(--t-xs); }
.lead-card__montant { font-family: var(--f-titre); font-size: var(--t-base); font-variant-numeric: tabular-nums; }
.lead-card__next { display: flex; align-items: center; gap: 5px; margin-top: var(--s-2); font-size: var(--t-xs); color: var(--ardoise); }
.lead-card__next.is-late { color: var(--rouge-fonce); }
.lead-card__next.is-none { color: var(--ambre); }

/* Étapes du lead : séquence réelle → affichage en frise */
.stepper { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--trait); border-radius: var(--r-carte); background: var(--blanc); overflow: hidden; }
.stepper button {
  flex: 1 1 110px; position: relative; padding: var(--s-3) var(--s-3); border: 0; border-right: 1px solid var(--trait);
  background: var(--blanc); font: 400 var(--t-sm) var(--f-ui); color: var(--brume); cursor: pointer; text-align: left;
}
.stepper button:last-child { border-right: 0; }
.stepper button .step-n { display: block; font-size: var(--t-xs); }
.stepper button.is-done { color: var(--encre); background: #F7F8F9; }
.stepper button.is-current { color: var(--blanc); background: var(--encre); }
.stepper button.is-current.is-gagne { background: var(--vert); }
.stepper button.is-current.is-perdu { background: var(--ardoise); }
.stepper button:disabled { cursor: default; }
.stepper button:not(:disabled):not(.is-current):hover { color: var(--encre); background: var(--surface); }

.timeline { list-style: none; margin: 0; padding: 0 var(--s-5); }
.timeline li { position: relative; padding: var(--s-4) 0 var(--s-4) var(--s-5); border-left: 1px solid var(--trait); }
.timeline li::before { content: ""; position: absolute; left: -4px; top: 22px; width: 7px; height: 7px; border-radius: 50%; background: var(--encre); }
.timeline li.is-planned::before { background: var(--blanc); border: 1px solid var(--encre); }
.timeline li.is-late::before { width: 11px; height: 11px; left: -6px; top: 20px; border: 0; border-radius: 0; background: var(--rouge);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); }
.timeline__head { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: baseline; justify-content: space-between; }
.timeline__type { font-weight: 500; font-size: var(--t-sm); }
.timeline__date { font-size: var(--t-xs); color: var(--ardoise); }
.timeline__cr { margin-top: var(--s-1); font-size: var(--t-sm); color: var(--encre-3); white-space: pre-line; }
.timeline__tools { display: flex; gap: var(--s-1); margin-top: var(--s-2); }
.lead-card__montant .muted { font-family: var(--f-ui); font-size: var(--t-xs); }
@media (max-width: 640px) {
  .timeline { padding: 0 var(--s-4); }
  .timeline__head { flex-direction: column; gap: 0; }
  .stepper button { flex-basis: 50%; }
}
