/* tokens.css — design tokens, reset et base */

:root {
  color-scheme: dark;

  --bg: #0a0b12;
  --bg-raise: #0e101a;
  --panel: rgba(19, 21, 34, 0.86);
  --panel-solid: #131522;
  --surface: #181b2b;
  --surface-2: #20243705;
  --surface-hover: #1e2233;

  --line: rgba(255, 255, 255, 0.075);
  --line-strong: rgba(255, 255, 255, 0.14);

  --text: #f1f3fb;
  --text-2: #b9c0d4;
  --muted: #8a92ab;
  --muted-2: #666e88;

  --accent: #7b6cf6;
  --accent-2: #9d7bff;
  --accent-3: #5b8cff;
  --accent-rgb: 123, 108, 246;
  --accent-soft: rgba(var(--accent-rgb), 0.14);
  --accent-line: rgba(var(--accent-rgb), 0.4);

  --grad-accent: linear-gradient(120deg, #6d5ef5 0%, #8b7cf7 55%, #7f9bff 100%);
  --grad-card: linear-gradient(140deg, rgba(124, 108, 246, 0.32), rgba(79, 156, 255, 0.14));

  --success: #3ddc97;
  --success-rgb: 61, 220, 151;
  --warning: #f5b942;
  --danger: #ff6b81;

  --radius-sm: 9px;
  --radius: 13px;
  --radius-lg: 17px;
  --radius-xl: 22px;

  --sidebar-w: 252px;
  --topbar-h: 68px;

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --shadow-1: 0 8px 26px rgba(0, 0, 0, 0.34);
  --shadow-2: 0 18px 50px rgba(0, 0, 0, 0.5);

  --ease: cubic-bezier(0.22, 0.68, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(1100px 560px at 78% -12%, rgba(109, 94, 245, 0.16), transparent 62%),
    radial-gradient(900px 500px at -12% 108%, rgba(79, 140, 255, 0.1), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.015em;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

input,
kbd {
  font: inherit;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  background: rgba(var(--accent-rgb), 0.35);
}

:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
  border-radius: 6px;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.22);
  background-clip: padding-box;
}

/* Utilitaires */

.hidden {
  display: none !important;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 12.5px;
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
}

.icon-sm {
  width: 16px;
  height: 16px;
}

.icon-lg {
  width: 24px;
  height: 24px;
}

/* Animations */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes shimmer {
  from {
    background-position: -400px 0;
  }
  to {
    background-position: 400px 0;
  }
}

.anim-in {
  animation: fadeUp 0.5s var(--ease) both;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
