/* ============================================================
   TIMELINE — Suivi d'avancement de dossier
   ============================================================ */

.timeline-new {
  display: flex;
  flex-direction: column;
}

.timeline-new__item {
  display: flex;
  gap: var(--space-4);
  position: relative;
  padding-bottom: var(--space-6);
}

/* Ligne verticale entre les étapes */
.timeline-new__item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 19px;
  top: 40px;
  bottom: 0;
  width: 2px;
  background-color: var(--color-neutral-200);
  border-radius: 1px;
}

.timeline-new__item.is-completed:not(:last-child)::after {
  background-color: var(--color-success);
}

/* Dot indicateur */
.timeline-new__dot {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  border: 2px solid var(--color-neutral-300);
  background-color: var(--color-white);
  color: var(--color-neutral-400);
  transition: all var(--transition-base);
}

.timeline-new__item.is-completed .timeline-new__dot {
  background-color: var(--color-success);
  border-color: var(--color-success);
  color: var(--color-white);
}

.timeline-new__item.is-active .timeline-new__dot {
  background-color: var(--color-warning-light);
  border-color: var(--color-warning);
  color: var(--color-warning);
  animation: timeline-pulse 2s ease-in-out infinite;
}

.timeline-new__item.is-pending .timeline-new__dot {
  background-color: var(--color-neutral-50);
}

@keyframes timeline-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(230, 126, 34, 0.35); }
  50%       { box-shadow: 0 0 0 8px rgba(230, 126, 34, 0); }
}

/* Contenu de l'étape */
.timeline-new__content {
  flex: 1;
  min-width: 0;
}

.timeline-new__title {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-neutral-900);
  margin-bottom: var(--space-1);
}

.timeline-new__item.is-pending .timeline-new__title {
  color: var(--color-neutral-400);
}

.timeline-new__date {
  font-size: var(--font-size-xs);
  color: var(--color-neutral-400);
  margin-bottom: var(--space-2);
}

.timeline-new__desc {
  font-size: var(--font-size-sm);
  color: var(--color-neutral-600);
  line-height: var(--line-height-relaxed);
  background-color: var(--color-neutral-50);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
}

.timeline-new__item.is-pending .timeline-new__desc {
  color: var(--color-neutral-400);
  border: 1px dashed var(--color-neutral-200);
  background: transparent;
}

/* Indicateur délai estimé */
.timeline-new__eta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--font-size-xs);
  color: var(--color-warning);
  margin-top: var(--space-2);
}
