.overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 17, 0.5);
  z-index: 300;
}

.wrapper {
  position: fixed;
  inset: 0;
  z-index: 301;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  pointer-events: none;
}

.dialog {
  pointer-events: auto;
  width: 100%;
  max-width: 380px;
  background: var(--blanc);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.btnFermer {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: var(--radius-md);
  background: var(--gris-clair);
  color: var(--gris-moyen);
  cursor: pointer;
}

.btnFermer:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.title {
  font-family: var(--font-gotham);
  font-size: 16px;
  font-weight: 700;
  color: var(--gris-fonce);
  padding-right: 28px;
}

.description {
  font-size: 14px;
  color: var(--gris-moyen);
  margin-top: 8px;
  white-space: pre-line;
}

.actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
}

.btnCancel,
.btnConfirm {
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: none;
}

.btnCancel {
  background: var(--gris-clair);
  color: var(--gris-fonce);
}

.btnConfirm {
  background: var(--vert-fonce);
  color: var(--blanc);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 90px;
}

.btnConfirmDanger {
  background: var(--erreur);
}

.btnConfirmDanger:hover:not(:disabled) {
  opacity: 0.9;
}

.btnCancel:disabled,
.btnConfirm:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.spinner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: var(--blanc);
  animation: rotation 0.7s linear infinite;
}

@keyframes rotation {
  to {
    transform: rotate(360deg);
  }
}
