/* Bandeau « Bêta publique » et formulaire « Signaler un bug » (beta-notice.js).
   Mêmes couleurs que la console (meshlite-avatar/avatar-fluide, web/beta-notice.css). */
.beta-notice {
  --beta-ink: #4A3A10;
  --beta-bg: #FBF1D3;
  --beta-line: #EBD9A2;
  --beta-action: #254EBC;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 12px;
  padding: 8px 20px;
  border-bottom: 1px solid var(--beta-line);
  color: var(--beta-ink);
  background: var(--beta-bg);
  font: 500 13px/1.45 "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  text-align: center;
}
.beta-notice-label {
  padding: 2px 8px;
  border-radius: 999px;
  color: #FFFFFF;
  background: #8A6410;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.beta-notice-copy { min-width: 0; }
.beta-notice-report {
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid currentColor;
  border-radius: 8px;
  color: var(--beta-action);
  background: #FFFFFF;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
@media (hover: hover) {
  .beta-notice-report:hover { color: #FFFFFF; background: var(--beta-action); border-color: var(--beta-action); }
}
.beta-notice-report:focus-visible { outline: 2px solid var(--beta-action); outline-offset: 2px; }
/* The bar stays slim; an invisible margin brings the tap area to 44 px. */
.beta-notice-report { position: relative; }
.beta-notice-report::before { content: ""; position: absolute; inset: -7px -2px; }
/* Tablets: the label, one short sentence and the link, on one line. */
.beta-notice-short { display: none; }
@media (max-width: 1099px) {
  .beta-notice-copy { display: none; }
  .beta-notice-short { display: inline; }
}
/* Phones: only "Public beta" and "Report a bug", on one 36px line. The link keeps a 44px tap area
   that overlaps the header's top padding by 4px, where the header has nothing to tap. */
@media (max-width: 600px) {
  .beta-notice { flex-wrap: nowrap; gap: 12px; min-height: 36px; padding: 0 16px; font-size: 14px; line-height: 1.2; }
  .beta-notice-short { display: none; }
  .beta-notice-label { padding: 2px 8px; font-size: 13px; font-weight: 700; }
  .beta-notice-report { min-height: 36px; padding: 0 2px; border: 0; border-radius: 4px; background: none; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
  .beta-notice-report::before { inset: -4px -6px; }
  .beta-notice-report:hover { color: var(--beta-action); background: none; }
}

.beta-report {
  width: min(520px, calc(100vw - 32px));
  margin: auto; /* les remises à zéro de type « * { margin: 0 } » décentrent sinon la fenêtre */
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 1px solid #DCD9D2;
  border-radius: 14px;
  color: #25231C;
  background: #FFFFFF;
  box-shadow: 0 24px 70px rgba(20, 20, 18, .22);
  font: 400 15px/1.5 "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
}
.beta-report::backdrop { background: rgba(20, 20, 18, .45); }
.beta-report-form { display: flex; flex-direction: column; gap: 8px; padding: 22px; }
.beta-report h2 { margin: 0; font-size: 20px; line-height: 1.25; }
.beta-report-intro { margin: 0 0 6px; color: #68645C; font-size: 14px; }
.beta-report label { margin-top: 6px; color: #3B3830; font-size: 13px; font-weight: 600; }
.beta-report textarea,
.beta-report input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #DCD9D2;
  border-radius: 9px;
  color: inherit;
  background: #FAF8F3;
  font: inherit;
}
.beta-report textarea { min-height: 130px; resize: vertical; }
.beta-report textarea:focus,
.beta-report input:focus { outline: 2px solid #254EBC; outline-offset: 0; border-color: #254EBC; background: #FFFFFF; }
.beta-report-status { min-height: 1.5em; margin: 4px 0 0; font-size: 14px; }
.beta-report-status[data-state="error"] { color: #A12828; }
.beta-report-status[data-state="ok"] { color: #1E6B3E; }
.beta-report-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }
.beta-report-actions button {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 10px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.beta-report-primary { border: 0; color: #FFFFFF; background: #25231C; }
.beta-report-primary:hover { background: #3B3830; }
.beta-report-primary[disabled] { opacity: .6; cursor: default; }
.beta-report-secondary { border: 1px solid #DCD9D2; color: #25231C; background: #FFFFFF; }
.beta-report-secondary:hover { background: #F5F3EF; }
.beta-report-actions button:focus-visible { outline: 2px solid #254EBC; outline-offset: 2px; }

/* meshlite.io : le bandeau passe au-dessus de l'en-tête. L'en-tête défile avec la page sous le
   bandeau, puis reste collé en haut de l'écran (site-language.css). Sans overflow: clip, l'en-tête
   de l'accueil reste fixe et se place sous le bandeau tant que celui-ci est visible (beta-notice.js). */
.beta-notice { position: relative; z-index: 51; }
@supports not (overflow-x: clip) {
  html.headroom-on body .site-shell > nav[data-headroom][data-headroom] {
    top: calc(var(--review-height, 0px) + var(--beta-notice-offset, 0px)) !important;
  }
}
