:root {
  --bg-deep: #080c14;
  --bg-dark: #0d1220;
  --bg-card: #131929;
  --bg-surface: #1a2236;
  --border: #1e2d45;
  --accent: #a78bfa;
  --accent2: #6366f1;
  --warn: #f59e0b;
  --danger: #ef4444;
  --text-1: #f0f4ff;
  --text-2: #8a9bbb;
  --text-3: #4a5878;
  --mono: "Space Mono", monospace;
  --sans: "DM Sans", sans-serif;
}

/* ---------- Fond global ---------- */
body {
  background-image: radial-gradient(
      900px 480px at 78% -8%,
      rgba(99, 102, 241, 0.12),
      transparent 60%
    ),
    radial-gradient(
      760px 420px at 8% 0%,
      rgba(167, 139, 250, 0.1),
      transparent 55%
    );
  background-attachment: fixed;
}
::selection {
  background: rgba(167, 139, 250, 0.28);
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-thumb {
  background: #1e2d45;
  border-radius: 999px;
  border: 2px solid #080c14;
}
::-webkit-scrollbar-thumb:hover {
  background: #2a3c5c;
}

/* ---------- Liens de navigation (pills) ---------- */
.nav-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: var(--text-2);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.nav-pill:hover {
  color: var(--text-1);
  background: rgba(26, 34, 54, 0.6);
}
.nav-pill.is-active {
  color: var(--text-1);
  background: rgba(167, 139, 250, 0.12);
  border-color: rgba(167, 139, 250, 0.32);
}

/* ---------- Champs de formulaire ---------- */
.field {
  width: 100%;
  background: rgba(26, 34, 54, 0.7);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  color: var(--text-1);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.field::placeholder {
  color: var(--text-3);
}
.field:focus {
  border-color: rgba(167, 139, 250, 0.7);
  background: var(--bg-surface);
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.14);
}

/* ---------- Bandeau ticker (navbar) ---------- */
.nav-ticker {
  font-family: var(--mono);
}
.ticker-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.05rem;
  border-left: 1px solid var(--border);
  font-size: 0.85rem;
  line-height: 1;
  white-space: nowrap;
  transition: background 0.18s ease;
}
.ticker-item:first-child {
  border-left: 0;
}
.ticker-item:hover {
  background: rgba(26, 34, 54, 0.55);
}
.ticker-symbol {
  color: var(--text-1);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.ticker-price {
  color: var(--text-2);
}
.ticker-change {
  font-weight: 700;
}
.ticker-change.up {
  color: #34d399;
}
.ticker-change.down {
  color: #f87171;
}
.field-label {
  display: block;
  margin-bottom: 0.375rem;
  color: var(--text-3);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
