/**
 * Système de popup générique (confirmation / info) — remplace les alert()
 * et confirm() natifs du navigateur sur tout le site public, pour rester
 * cohérent avec le reste de l'interface. Généralisé depuis le gabarit
 * visuel déjà construit pour le popup biométrie (.oms-passkey-popup).
 */
.oms-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.oms-popup-overlay.in {
  opacity: 1;
}

.oms-popup {
  background: #fff;
  border-radius: 16px;
  padding: 28px 24px;
  max-width: 360px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px -12px rgba(15, 23, 42, 0.35);
  transform: translateY(8px) scale(0.98);
  transition: transform 0.15s ease;
}

.oms-popup-overlay.in .oms-popup {
  transform: translateY(0) scale(1);
}

.oms-popup__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 9999px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #0f172a;
}

.oms-popup__icon--error {
  background: #fee2e2;
  color: #dc2626;
}

.oms-popup__icon--success {
  background: #dcfce7;
  color: #16a34a;
}

.oms-popup__icon--danger {
  background: #fee2e2;
  color: #dc2626;
}

.oms-popup__title {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #0f172a;
}

.oms-popup__message {
  font-size: 13.5px;
  color: #64748b;
  margin: 0 0 20px;
  line-height: 1.5;
}

.oms-popup__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.oms-popup__btn {
  width: 100%;
  height: 44px;
  border-radius: 9999px;
  border: 1px solid #0f172a;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  background: #0f172a;
  color: #fff;
  transition: background-color 0.2s ease;
}

.oms-popup__btn:hover {
  background: #1e293b;
}

.oms-popup__btn--danger {
  border-color: #dc2626;
  background: #dc2626;
}

.oms-popup__btn--danger:hover {
  background: #b91c1c;
}

.oms-popup__btn--secondary {
  height: 40px;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 13px;
  font-weight: 500;
}

.oms-popup__btn--secondary:hover {
  color: #0f172a;
}
