/* ═══════════════════════════════════════════════════════════════
   Jus d'orange — Design Tokens & Base
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Colors */
  --bg-base:       #080808;
  --bg-surface:    #111111;
  --bg-surface2:   #1a1a1a;
  --bg-surface3:   #222222;
  --bg-hover:      #2a2a2a;
  --border:        #2a2a2a;
  --border-subtle: #1e1e1e;

  /* Brand */
  --orange:        #ff6b00;
  --orange-light:  #ff8c33;
  --orange-dark:   #cc5500;
  --orange-glow:   rgba(255,107,0,0.15);
  --orange-glow2:  rgba(255,107,0,0.08);

  /* Text */
  --text-primary:   #f0f0f0;
  --text-secondary: #8a8a8a;
  --text-muted:     #555555;
  --text-link:      #ff8c33;

  /* Status */
  --green:         #22c55e;
  --green-bg:      rgba(34,197,94,0.12);
  --yellow:        #f59e0b;
  --yellow-bg:     rgba(245,158,11,0.12);
  --red:           #ef4444;
  --red-bg:        rgba(239,68,68,0.12);
  --blue:          #3b82f6;
  --blue-bg:       rgba(59,130,246,0.12);
  --purple:        #a855f7;
  --purple-bg:     rgba(168,85,247,0.12);

  /* Spacing */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.4);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.5);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.6);
  --shadow-orange: 0 0 20px rgba(255,107,0,0.2);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* Sidebar */
  --sidebar-width: 240px;
  --topbar-height: 60px;
}

/* ─── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--text-link); text-decoration: none; }
a:hover { color: var(--orange-light); }

input, textarea, select, button {
  font-family: inherit;
  font-size: inherit;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-surface); }
::-webkit-scrollbar-thumb { background: var(--bg-hover); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border); }

::selection { background: var(--orange-glow); color: var(--orange-light); }

/* ─── Typography ────────────────────────────────────────────── */
h1 { font-size: 24px; font-weight: 700; letter-spacing: -0.5px; }
h2 { font-size: 20px; font-weight: 600; letter-spacing: -0.3px; }
h3 { font-size: 16px; font-weight: 600; }
h4 { font-size: 14px; font-weight: 600; }
h5 { font-size: 13px; font-weight: 500; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; }

p { color: var(--text-secondary); line-height: 1.7; }

code, pre {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--bg-surface2);
  border-radius: var(--radius-sm);
}
code { padding: 2px 6px; color: var(--orange-light); }
pre { padding: var(--space-4); overflow-x: auto; border: 1px solid var(--border); }

/* ─── Utilities ─────────────────────────────────────────────── */
.text-primary   { color: var(--text-primary)   !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-muted     { color: var(--text-muted)     !important; }
.text-orange    { color: var(--orange)          !important; }
.text-green     { color: var(--green)           !important; }
.text-yellow    { color: var(--yellow)          !important; }
.text-red       { color: var(--red)             !important; }
.text-sm        { font-size: 12px; }
.text-xs        { font-size: 11px; }
.text-mono      { font-family: var(--font-mono); }
.font-bold      { font-weight: 700; }
.font-medium    { font-weight: 500; }

.flex           { display: flex; }
.items-center   { align-items: center; }
.justify-between{ justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1          { gap: var(--space-1); }
.gap-2          { gap: var(--space-2); }
.gap-3          { gap: var(--space-3); }
.gap-4          { gap: var(--space-4); }
.w-full         { width: 100%; }
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
