/* ============================================================
   APSI — Reset et typographie de base
   ============================================================ */

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

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.55;
    color: var(--txt-base);
    background: var(--bg-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 .5em 0;
    color: var(--txt-strong);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

h1 { font-size: 1.75rem; }
h2 { font-size: 1.375rem; }
h3 { font-size: 1.15rem; }
h4 { font-size: 1rem; }

p { margin: 0 0 .75em 0; }

a {
    color: var(--c-primary-light);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover { color: var(--c-accent); }

code, pre, .mono { font-family: var(--font-mono); }
code { font-size: 0.85em; background: var(--bg-surface-alt); padding: 2px 6px; border-radius: var(--radius-sm); }

hr {
    border: none;
    height: 1px;
    background: var(--border-base);
    margin: 1.25rem 0;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: var(--radius-pill); }
::-webkit-scrollbar-thumb:hover { background: var(--txt-faint); }

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

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

table { border-collapse: collapse; width: 100%; }

/* utilitaires généraux */
.text-muted { color: var(--txt-muted); }
.text-faint { color: var(--txt-faint); }
.text-strong { color: var(--txt-strong); font-weight: 600; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-small { font-size: 0.85rem; }
.text-uppercase { text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.78rem; font-weight: 600; }

.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.flex-1 { flex: 1; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.items-center { align-items: center; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }

.w-full { width: 100%; }
.hidden { display: none !important; }
