/* Socle visuel commun à toutes les apps du hub. */
:root {
  --bg: #fff8ef;
  --surface: #ffffff;
  --ink: #2b2140;
  --muted: #6f6587;
  --line: #eadfce;
  --brand: #6c4cf5;
  --brand-ink: #ffffff;
  --good: #1fa463;
  --good-soft: #dcf5e8;
  --bad: #e5484d;
  --bad-soft: #fde4e4;
  --warn: #f5a524;
  --radius: 20px;
  --shadow: 0 3px 0 rgba(43, 33, 64, .10), 0 8px 24px rgba(43, 33, 64, .06);
  --font: "Nunito", "Quicksand", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh;
  background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 18px; line-height: 1.4;
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .4em; }

.wrap { max-width: 760px; margin: 0 auto; padding: 16px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 56px; padding: 0 22px; border: 0; border-radius: var(--radius);
  background: var(--surface); color: var(--ink); font-weight: 800; font-size: 1.1rem;
  box-shadow: var(--shadow); text-decoration: none; user-select: none;
  transition: transform .08s ease;
}
.btn:active { transform: translateY(2px) scale(.98); }
.btn.primary { background: var(--brand); color: var(--brand-ink); }
.btn.ghost { background: transparent; box-shadow: none; color: var(--muted); }
.btn:disabled { opacity: .45; cursor: default; }

.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.muted { color: var(--muted); }
.hidden { display: none !important; }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; }
.topbar a { color: var(--muted); text-decoration: none; font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
