/* Les couleurs viennent de la charte commune `apok-ui.css`.
 *
 * Ce fichier n'en garde que les alias : le catalogue nommait les memes jetons
 * `--fh-*`, et les redeclarer ici ferait deriver le catalogue du reste du
 * studio des qu'une couleur change. La bascule Sable / Nuit reste celle qui
 * existait : cle `apok-theme`, valeurs `clair` et `sombre`.
 */
:root {
  --fh-bg: var(--bg);
  --fh-surface: var(--panel);
  --fh-surface-2: var(--panel2);
  --fh-ink: var(--text);
  --fh-muted: var(--muted);
  --fh-line: var(--line);
  --fh-orange: var(--accent);
  --fh-orange-2: var(--accent-vif);
  --fh-shadow: var(--ombre);
  --navy: var(--steel);
  --succes: var(--ok);
  --succes-fond: var(--panel2);
  --alerte: var(--warn);
  --alerte-fond: var(--panel2);
  --scene: var(--panel2);
  --scene-sombre: var(--creux);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--fh-bg);
  color: var(--fh-ink);
  font: 13px/1.45 Geist, Inter, ui-sans-serif, -apple-system, "Segoe UI", sans-serif;
  font-feature-settings: "ss01", "cv11", "tnum";
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea {
  font: inherit;
  color: var(--fh-ink);
  background: var(--fh-surface);
  border: 1px solid var(--fh-line);
  border-radius: 9px;
}

button {
  min-height: 36px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-weight: 650;
  line-height: 1.1;
  white-space: nowrap;
  cursor: pointer;
}

button:hover:not(:disabled) { border-color: var(--fh-orange); }
button:disabled { opacity: .45; cursor: default; }

button.primaire {
  color: #fff;
  background: var(--fh-orange);
  border-color: var(--fh-orange);
}

button.primaire:hover:not(:disabled) { filter: brightness(1.06); }

button.succes { color: var(--succes); background: var(--succes-fond); border-color: transparent; }
button.alerte { color: var(--alerte); background: var(--alerte-fond); border-color: transparent; }

button.jeter {
  min-height: 28px;
  width: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--fh-muted);
  font-size: 15px;
}

input:not([type="file"]), select, textarea {
  min-height: 38px;
  padding: 0 11px;
  width: 100%;
}

textarea { padding: 9px 11px; resize: vertical; min-height: 0; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible {
  outline: 2px solid var(--fh-orange);
  outline-offset: 1px;
}
