/* =====================================================================
   FENÊTRE MADUS À LA PLACE DE window.alert (23/11/2026, SUIVI #480) — views/js/alerte.js
   ---------------------------------------------------------------------
   Mêmes classes que la modale générique du mode client (.mbo-modal / .mbo-modal__card / __title / __foot,
   bouton .mbo-btn--primary, madus-list.css) ; cette feuille est AUTONOME car chargée dans tous les modes
   (TTB compris, sans tokens.css ni madus-list.css) : chaque jeton a sa valeur de repli.
   Message : style des bandeaux .alert-info (fond pastel 9 %, bordure fine 45 %, rayon 10 px, sans icône).
   Au-dessus de toutes les modales du BO (Bootstrap 1050, détail d'action des opportunités 100075).
   ===================================================================== */
.mbo-modal.mbo-alerte {
  position: fixed; inset: 0; z-index: 100200; display: flex;
  align-items: center; justify-content: center; padding: 16px;
  background: rgba(28, 31, 38, .45);
  font-family: var(--mbo-font, 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif);
}
.mbo-modal.mbo-alerte[hidden] { display: none !important; }
.mbo-alerte .mbo-alerte__card {
  background: #fff; border-radius: var(--mbo-modal-radius, 12px); box-shadow: 0 18px 48px rgba(16, 24, 40, .16);
  width: min(460px, 92vw); max-height: 86vh; overflow: auto; padding: 20px 22px; box-sizing: border-box;
  text-align: left;
}
.mbo-alerte .mbo-alerte__title {
  font-size: 16px; font-weight: 800; line-height: 1.3; color: var(--mbo-ink, #1C1F26);
  margin: 0 0 14px; padding: 0; border: 0; text-transform: none; letter-spacing: normal;
}
.mbo-alerte .mbo-alerte__message {
  --mbo-alert-c: var(--mbo-alert-info, #57ADDC);
  color: var(--mbo-alert-fg, #2B2F38);
  background: #fff; background: color-mix(in srgb, var(--mbo-alert-c) var(--mbo-alert-tint, 9%), #fff);
  border: 1px solid var(--mbo-alert-c); border: 1px solid color-mix(in srgb, var(--mbo-alert-c) var(--mbo-alert-edge, 45%), #fff);
  border-radius: var(--mbo-alert-radius, 10px);
  padding: var(--mbo-alert-pad, 12px 16px);
  font-size: var(--mbo-alert-fs, 13.5px); line-height: 1.45;
  white-space: pre-line; overflow-wrap: anywhere; box-shadow: none;
}
.mbo-alerte .mbo-alerte__foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.mbo-alerte .mbo-alerte__ok {
  display: inline-flex; align-items: center; justify-content: center; min-width: 88px; height: auto;
  border: 1px solid transparent; border-radius: 9px; padding: 8px 16px;
  font-size: 13.5px; font-weight: 700; line-height: 1.3; cursor: pointer; text-decoration: none;
  background: var(--mbo-primary, #D81F2A); color: #fff; box-shadow: none; text-shadow: none;
}
.mbo-alerte .mbo-alerte__ok:hover { background: var(--mbo-primary-hover, #B3161F); color: #fff; }
.mbo-alerte .mbo-alerte__ok:focus-visible { outline: 2px solid var(--mbo-primary, #D81F2A); outline-offset: 2px; }
/* confirm() (#480) : bouton secondaire « Annuler », masqué pour un simple message. */
.mbo-alerte .mbo-alerte__annuler {
  display: inline-flex; align-items: center; justify-content: center; min-width: 88px; height: auto;
  border: 1px solid #D5D9E0; border-radius: 9px; padding: 8px 16px;
  font-size: 13.5px; font-weight: 600; line-height: 1.3; cursor: pointer; text-decoration: none;
  background: #fff; color: var(--mbo-ink, #1C1F26); box-shadow: none; text-shadow: none;
}
.mbo-alerte .mbo-alerte__annuler[hidden] { display: none !important; }
.mbo-alerte .mbo-alerte__annuler:hover { background: #F4F5F7; color: var(--mbo-ink, #1C1F26); }
.mbo-alerte .mbo-alerte__annuler:focus-visible { outline: 2px solid var(--mbo-primary, #D81F2A); outline-offset: 2px; }
