/* Bandeau discret commun aux trois sites de démonstration. */
.demo-banner {
  position: relative;
  z-index: 100;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem 0.75rem;
  padding: 0.4rem 1rem;
  background: #1b1f24;
  color: #e7e9ec;
  font: 500 0.78rem/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  text-align: center;
}

.demo-banner a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.demo-banner a:hover {
  text-decoration-thickness: 2px;
}

.demo-banner a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  border-radius: 2px;
}

.demo-banner__tag {
  padding: 0.05rem 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Éléments communs aux formulaires des démos. */
.form-status:empty {
  display: none;
}

.form-status {
  margin: 0;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-weight: 500;
}

.form-status[data-state="pending"] {
  background: rgba(0, 0, 0, 0.05);
}

.form-status[data-state="success"] {
  background: #e3f4e8;
  color: #14532d;
}

.form-status[data-state="error"] {
  background: #fde8e6;
  color: #7f1d1d;
}

.hp {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
