@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/static/fonts/plus-jakarta-sans.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}

/* Toujours sombre : l'orbe brille par addition de lumière. */
:root {
  --bg: #02040d; --bg-soft: #0d1324; --fg: #d2dbf2; --muted: #7d89aa; --border: #26304a;
  --accent: #3b82f6; --accent-fg: #ffffff; --danger: #f87171;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.5 "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
}
.muted { color: var(--muted); }
.center { text-align: center; }
.hidden { display: none !important; }

.view { display: none; height: 100vh; height: 100dvh; flex-direction: column; }
.view.active { display: flex; }
.auth-view { position: relative; overflow-y: auto; }
.auth-box { width: 100%; max-width: 420px; margin: auto; padding: 24px 16px; }
.auth-panel { display: flex; flex-direction: column; gap: 12px; }
.auth-message { min-height: 1.5em; margin-top: 16px; }
.auth-message.error { color: var(--danger); }

.orb-btn {
  display: block; width: min(80vw, 380px); margin: 0 auto 8px; padding: 0;
  border: 0; border-radius: 50%; background: transparent; cursor: pointer;
}
.orb-btn:focus-visible { outline: 3px solid #4a8dff; outline-offset: 4px; }
.orb-btn .ai-orb { display: block; width: 100%; aspect-ratio: 1; }

.btn {
  font: inherit; font-weight: 600; border: 1px solid var(--border); background: var(--bg-soft); color: var(--fg);
  padding: 12px 16px; border-radius: 14px; cursor: pointer;
}
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.btn.wide { width: 100%; }
.btn:disabled { opacity: .6; cursor: default; }
.btn:hover { filter: brightness(.95); }
.link-btn {
  font: inherit; font-size: .875rem; background: none; border: 0; padding: 4px; color: var(--muted);
  cursor: pointer; text-decoration: underline; align-self: center;
}
.stack { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
input[type=email] {
  font: inherit; color: var(--fg); background: var(--bg); width: 100%;
  border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px;
}
.retour-accueil { display: block; width: max-content; margin: 8px auto 0; }
.note { font-size: .875rem; margin: 4px 0 0; }
