/* ═══════════════════════════════════════════════════
   CSLRS-NA — base.css
   Reset, variables, typographie
   ═══════════════════════════════════════════════════ */

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

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

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

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

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

button {
    cursor: pointer;
}

/* ─── CSS Variables ─────────────────────────────── */
:root {
    /* Couleurs principales */
    --color-navy: #1B2B6B;
    --color-navy-dark: #131f4d;
    --color-blue: #3A7BD5;
    --color-blue-light: #4a8be5;

    /* Fond et surfaces */
    --color-bg: #f5f5f0;
    --color-card: #ffffff;
    --color-card-hover: #f9f9f6;
    --color-border: #e5e5e0;
    --color-border-light: #eeeeea;

    /* Texte */
    --color-text: #2d2d2d;
    --color-text-light: #666666;
    --color-text-muted: #999999;
    --color-text-inverse: #ffffff;

    /* Statut : Danger */
    --color-danger-bg: #FCEBEB;
    --color-danger: #A32D2D;
    --color-danger-dark: #791F1F;
    --color-danger-border: #F09595;

    /* Statut : Info */
    --color-info-bg: #E6F1FB;
    --color-info: #0C447C;
    --color-info-border: #B5D4F4;

    /* Statut : Activité */
    --color-activity-bg: #FAEEDA;
    --color-activity: #633806;
    --color-activity-light: #854F0B;

    /* Statut : Service */
    --color-service-bg: #EEEDFE;
    --color-service: #3C3489;
    --color-service-light: #534AB7;

    /* Statut : Succès */
    --color-success-bg: #E1F5EE;
    --color-success: #085041;

    /* Statut : Warning */
    --color-warning-bg: #FFF3CD;
    --color-warning: #856404;
    --color-warning-border: #FFEEBA;

    /* Espacements */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 12px;
    --space-lg: 16px;
    --space-xl: 24px;
    --space-2xl: 32px;
    --space-3xl: 48px;

    /* Rayons */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-full: 9999px;

    /* Ombres */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.12);

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

/* ─── Typography ────────────────────────────────── */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
    line-height: 1.3;
    font-weight: 500;
}

h1 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(22px, 4vw, 30px);
    font-weight: 400;
}

h2 {
    font-size: clamp(16px, 3vw, 20px);
}

h3 {
    font-size: clamp(14px, 2.5vw, 17px);
}

p {
    margin-bottom: var(--space-md);
}

p:last-child {
    margin-bottom: 0;
}

small, .text-sm {
    font-size: 13px;
}

.text-xs {
    font-size: 12px;
}

.text-muted {
    color: var(--color-text-muted);
}

.text-light {
    color: var(--color-text-light);
}

.text-center {
    text-align: center;
}

.text-uppercase {
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ─── Accessibilité ─────────────────────────────── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

:focus-visible {
    outline: 2px solid var(--color-blue);
    outline-offset: 2px;
}

/* ─── Container ─────────────────────────────────── */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* ─── Utilitaires ───────────────────────────────── */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-xs { gap: var(--space-xs); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
