#alert_container {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  padding: 0;
  margin: 0 0 8px 0;
  pointer-events: none; /* laisse passer les clics sauf pour les enfants qui rétabliront pointer-events */
}

.alert-banner {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid rgba(114, 28, 36, 0.2);
  pointer-events: auto;
  display: flex;
  flex-wrap: wrap; /* permet au texte de revenir à la ligne */
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  margin: 8px 0;
  font-family: sans-serif;
  font-size: 14px;
}

.alert-text {
  flex: 1 1 auto;
  min-width: 0; /* nécessaire pour que flex-wrap fonctionne correctement */
  margin-right: 12px;
  white-space: pre-wrap; /* préserve les retours à la ligne (\n) */
  overflow-wrap: break-word;    /* coupe les mots trop longs */
  word-break: break-word;
  max-width: calc(100% - 48px); /* laisse de la place pour le bouton */
}

.alert-close {
  flex: 0 0 auto;
  margin-left: 8px;
  background: transparent;
  border: none;
  color: inherit;
  font-size: 20px;
  cursor: pointer;
  padding: 0 6px;
  line-height: 1;
}

.timestamp-cell {
  font-size: 0.70rem; /* plus petit */
  color: #6b7280;            /* gris discret (taille et couleur ajustables) */
  font-style: normal;
  opacity: 0.90;
  text-align: left;
  white-space: nowrap;       /* affiche sur une seule ligne si possible */
}

/* Responsive : sur petits écrans, autoriser le retour à la ligne */
@media (max-width: 520px) {
  .timestamp-cell {
    font-size: 0.75rem;
    white-space: normal;
  }
}