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

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

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  color: var(--ink-900);
  background: var(--surface-0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  min-height: 100vh;
}

a { color: var(--primary-700); text-decoration: none; }
a:hover { color: var(--accent-500); }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink-900);
}
h1 { font-size: 32px; letter-spacing: -0.02em; }
h2 { font-size: 22px; }
h3 { font-size: 16px; }

p { margin: 0; color: var(--ink-700); line-height: 1.5; }

.small { font-size: 12px; color: var(--ink-500); }
.muted { color: var(--ink-500); }
.label-up {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-500);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: 14px;
  color: var(--ink-900);
  background: var(--surface-1);
  border: 1px solid var(--surface-3);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  outline: none;
  transition: border-color var(--dur-2) var(--ease-out),
              box-shadow var(--dur-2) var(--ease-out);
}
input:focus, textarea:focus, select:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(15,110,144,.15);
}
textarea { resize: vertical; min-height: 80px; }

::selection { background: var(--accent-100); color: var(--accent-700); }

/* Focus global clavier */
button:focus-visible, a:focus-visible, [role="button"]:focus-visible {
  outline: 2px solid var(--accent-500);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

code, pre {
  font-family: var(--font-mono);
  font-size: 13px;
}

/* Animations utilitaires */
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.fade-in { animation: fadeIn var(--dur-3) var(--ease-out); }

@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(47,171,107,.5); } 70% { box-shadow: 0 0 0 8px rgba(47,171,107,0); } 100% { box-shadow: 0 0 0 0 rgba(47,171,107,0); } }
