/* Reset + typographie + utilitaires de mise en page. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: var(--scheme); }
body {
  margin: 0; min-height: 100vh;
  background: var(--bg); color: var(--ink);
  font-family: var(--font-sans); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background .3s, color .3s;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--mute); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
img, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Type scale */
.eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); }
.eyebrow--xs { font-size: 10px; }
.eyebrow--red { color: var(--red); }
.h1 { font-size: clamp(34px, 4.2vw, 50px); font-weight: 800; letter-spacing: -.04em; line-height: 1.02; text-wrap: balance; }
.h1--xl { font-size: clamp(40px, 5vw, 66px); letter-spacing: -.045em; line-height: .98; }
.h2 { font-size: clamp(20px, 2.4vw, 26px); font-weight: 800; letter-spacing: -.03em; }
.lead { font-size: 17px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.small { font-size: 13px; color: var(--mute-2); }
.mono { font-family: var(--font-mono); }
.pixel { font-family: var(--font-pixel); color: var(--red); font-size: 13px; }

/* Layout */
.container { width: 100%; max-width: var(--content); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.stack { display: flex; flex-direction: column; gap: var(--gap, 16px); }
.row { display: flex; align-items: center; gap: var(--gap, 12px); }
.row--between { justify-content: space-between; }
.row--wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Header commun */
.app-header { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: .1em; font-size: 14px; }
.brand__logo { position: relative; display: block; width: 32px; height: 19px; background: #0b0c0e; border-radius: 4px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14); }
.brand__logo i { position: absolute; width: 3px; height: 3px; background: #fff; }
.brand__logo i:nth-child(1) { left: 6px; top: 3px; background: var(--red); }
.brand__logo i:nth-child(2) { left: 6px; top: 7px; }
.brand__logo i:nth-child(3) { left: 6px; top: 11px; }
.brand__logo i:nth-child(4) { left: 10px; top: 11px; }
.brand__logo i:nth-child(5) { left: 14px; top: 11px; }
.brand__logo i:nth-child(6) { left: 18px; top: 11px; }

/* Animations */
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
@keyframes ping { from { transform: scale(.6); opacity: .9; } to { transform: scale(2.2); opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { 0% { transform: scale(.5); opacity: 0; } 60% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }
@keyframes grow-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.anim-fade { animation: fade-up .5s var(--ease-out) both; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
