/* Minimal flash CSS (simple et lisible) */
#flash-container {
  position: fixed;
  top: 56px; /* sous le header */
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  pointer-events: none;
  z-index: 9999;
  padding: 0 12px;
}

.flash {
  pointer-events: auto;
  padding: 12px 16px;
  border-radius: 8px;
  color: #fff;
  font-weight: 600;
  min-width: 400px;
  max-width: 1000px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* backgrounds semi-transparents */
.flash-info { background: rgba(23, 162, 184, 0.6); color: #000; }
.flash-success { background: rgba(40, 167, 69, 0.6); color: #000; }
.flash-error { background: rgba(220, 53, 69, 0.6); color: #000; }
.flash-warning { background: rgba(255, 176, 32, 0.6); color: #000; }

.close-btn {
  background: rgba(255,255,255,0.12);
  border: none;
  color: inherit;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
}

.flash-content {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: break-word;
}

@media (max-width: 600px) {
  .flash { min-width: 160px; max-width: calc(100% - 32px); padding: 10px; }
}
