/* ===== VARIABLES ===== */
:root {
    /* Palette validée : bleu nuit + cuivre, fond gris très clair */
    --color-primary: #1E3A5F;
    --color-primary-rgb: 30, 58, 95;
    --color-accent: #B87333;
    --color-bg: #F8F9FA;

    /* Tokens fixes (Aristo UI v3) */
    --color-surface: #FFFFFF;
    --color-text: #111827;
    --color-text-soft: #374151;
    --color-text-muted: #6B7280;
    --color-text-faint: #9CA3AF;
    --color-border: #E5E7EB;
    --color-divider: #F3F4F6;
    --color-positive: #16A34A;
    --color-negative: #DC2626;

    /* Composants */
    --radius: 6px;
    --radius-pill: 999px;
    --shadow-drawer: -4px 0 24px rgba(0, 0, 0, 0.10);
    --transition: 150ms ease;

    /* Typographie validée : Space Grotesk (titres, chiffres) + Inter (corps) */
    --font-title: 'Space Grotesk', 'Inter', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
}

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

html, body {
    margin: 0;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    background: var(--color-bg);
    color: var(--color-text-soft);
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, p {
    margin: 0;
}

button, input {
    font: inherit;
    color: inherit;
}

a {
    color: var(--color-primary);
}

[hidden] {
    display: none !important;
}

/* ===== TYPOGRAPHIE ===== */
.h1 {
    font-family: var(--font-title);
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text);
}

.h2 {
    font-family: var(--font-title);
    font-size: 19px;
    font-weight: 600;
    color: var(--color-text);
}

.subtitle {
    margin-top: 6px;
    color: var(--color-text-muted);
}

.eyebrow {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.mono {
    font-family: var(--font-mono);
}

.text-truncate {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* ===== ICÔNES ===== */
.icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

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

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}
