/* Bandeau de progression des traitements longs (public/long-task.js). */
.long-task-banner {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 10060; /* visible même au-dessus d’une fenêtre ouverte (10050) */
  width: min(460px, calc(100vw - 32px));
  background: #0f172a;
  color: #f8fafc;
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.35);
  font-size: 13px;
}
.long-task-banner .ltb-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.long-task-banner .ltb-spinner {
  width: 16px;
  height: 16px;
  flex: none;
  border-radius: 50%;
  border: 2px solid rgba(248, 250, 252, 0.3);
  border-top-color: #f8fafc;
  animation: ltbSpin 0.9s linear infinite;
}
.long-task-banner .ltb-title {
  font-weight: 600;
  flex: 1;
}
.long-task-banner .ltb-time {
  font-variant-numeric: tabular-nums;
  opacity: 0.8;
}
.long-task-banner .ltb-step {
  margin-top: 6px;
  opacity: 0.85;
}
.long-task-banner .ltb-bar {
  margin-top: 8px;
  height: 4px;
  border-radius: 2px;
  background: rgba(248, 250, 252, 0.2);
  overflow: hidden;
}
.long-task-banner .ltb-fill {
  height: 100%;
  width: 0;
  background: #38bdf8;
  transition: width 0.8s ease;
}
@keyframes ltbSpin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .long-task-banner .ltb-spinner {
    animation: none;
  }
}
