/* ═══════════════════════════════════════════════════════════════
   NP-IA-PROGRESS — Overlay de progression pour les actions IA
   v1.9.9 — Affiche un retour visuel pendant les appels Claude API
   ═══════════════════════════════════════════════════════════════ */

.np-ia-overlay {
  position: fixed;
  inset: 0;
  background: rgba(27, 45, 62, 0.55);  /* navy semi-transparent */
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

.np-ia-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.np-ia-card {
  background: var(--np-white, #fff);
  border-radius: var(--np-radius, 10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
  padding: 36px 40px 32px;
  max-width: 460px;
  width: calc(100% - 40px);
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--np-navy, #1b2d3e);
}

.np-ia-spinner {
  width: 56px;
  height: 56px;
  margin: 0 auto 22px;
  border: 4px solid var(--np-green-xl, #d8f3dc);
  border-top-color: var(--np-green, #2d6a4f);
  border-radius: 50%;
  animation: np-ia-spin 0.9s linear infinite;
}

@keyframes np-ia-spin {
  to { transform: rotate(360deg); }
}

.np-ia-title {
  font-size: 1.08rem;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--np-navy, #1b2d3e);
  line-height: 1.35;
}

.np-ia-timer {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 2rem;
  font-weight: 600;
  color: var(--np-green, #2d6a4f);
  margin: 14px 0 10px;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
}

.np-ia-tip {
  font-size: .88rem;
  color: var(--np-slate, #4a5568);
  margin: 0 0 18px;
  min-height: 2.4em;
  line-height: 1.45;
  transition: opacity .35s ease;
}

.np-ia-warning {
  display: none;
  margin-top: 18px;
  padding: 12px 14px;
  background: #fff8e1;
  border: 1px solid var(--np-warn, #d69e2e);
  border-radius: 8px;
  font-size: .82rem;
  color: #744210;
  text-align: left;
}

.np-ia-card.is-stuck .np-ia-warning {
  display: block;
}

.np-ia-card.is-stuck .np-ia-spinner {
  border-top-color: var(--np-warn, #d69e2e);
}

.np-ia-actions {
  display: none;
  margin-top: 16px;
  gap: 8px;
  justify-content: center;
}

.np-ia-card.is-stuck .np-ia-actions {
  display: flex;
}

.np-ia-actions button {
  padding: 8px 16px;
  border-radius: 6px;
  border: 1px solid var(--np-border, #e2e8f0);
  background: var(--np-white, #fff);
  cursor: pointer;
  font-size: .85rem;
  color: var(--np-navy, #1b2d3e);
  font-weight: 500;
}

.np-ia-actions button:hover {
  background: var(--np-bg, #f0f4f8);
}

.np-ia-actions .np-ia-btn-cancel {
  border-color: var(--np-danger, #e53e3e);
  color: var(--np-danger, #e53e3e);
}

.np-ia-foot {
  font-size: .75rem;
  color: #a0aec0;
  margin-top: 14px;
  font-style: italic;
}
