/* ===== ConfirmBox style "Warning Windows" ===== */

.iaConfirmOverlay{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 2147483646;
  background: rgba(0,0,0,0.25); /* un peu plus "modal" */
}

.iaConfirmOverlay.isOpen{ display:block; }

.iaConfirmBox{
  position: fixed;
  z-index: 2147483647;

  /* ✅ taille fixe */
  width: 440px;
  max-width: 440px;

  /* ✅ centré */
  left: 50%;
  top: 90px;
  transform: translateX(-50%);

  /* ✅ rectangle angles droits */
  border-radius: 0;
  overflow: hidden;

  background: #ffffff;
  border: 1px solid #9aa7b1;
  box-shadow: 0 10px 28px rgba(0,0,0,0.28);
}

/* Bandeau haut plus fin */
.iaConfirmHeader{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;

  height: 34px;               /* ✅ hauteur raisonnable */
  padding: 0 10px;

  /* ✅ style warning */
  background: #f2c200;        /* jaune warning */
  color: #111;

  border-bottom: 1px solid #c7a100;

  cursor: move;
  user-select: none;
}

/* Titre avec icône warning */
.iaConfirmTitle{
  font-weight: 700;
  font-size: 13px;
  display:flex;
  align-items:center;
  gap: 8px;
}

/* Ajoute automatiquement une icône ⚠️ devant le titre (sans modifier HTML) */
.iaConfirmTitle::before{
  content: "⚠";
  font-size: 14px;
  line-height: 1;
}

/* Zone message */
.iaConfirmMessage{
  padding: 14px 14px 10px;
  font-size: 12.5px;
  color: #111;
  line-height: 1.35;
}

/* Actions en bas */
.iaConfirmActions{
  display:flex;
  justify-content:flex-end;
  gap: 8px;
  padding: 10px 12px 12px;
  border-top: 1px solid #e5e5e5;
  background: #fafafa;
}

/* Boutons "windows-like" */
.iaConfirmActions button{
  height: 28px;
  padding: 0 12px;
  border-radius: 0; /* ✅ angles droits */
  border: 1px solid #b8b8b8;
  background: #ffffff;
  color: #111;
  font-size: 12px;
  cursor: pointer;
}

.iaConfirmActions button:hover{
  background: #f0f0f0;
}

/* Bouton OK = danger (Supprimer) */
#confirmOk{
  border-color: #b3261e;
  background: #d13438;
  color: #fff;
}
#confirmOk:hover{
  filter: brightness(0.95);
}

/* Bouton Annuler style neutre */
#confirmCancel{
  background: #ffffff;
}

/* Croix de fermeture : carrée + "windows" */
#confirmClose{
  width: 28px;
  height: 24px;
  border-radius: 0;
  border: 1px solid rgba(0,0,0,0.25);
  background: rgba(255,255,255,0.55);
  color: #111;
  cursor: pointer;
  line-height: 1;
  font-size: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
}

#confirmClose:hover{
  background: #d13438; /* rouge close */
  border-color: #b3261e;
  color: #fff;
}
