/* === Fontes locales ===
   Servies depuis /fonts/ pour eviter un appel a Google Fonts.
   Sous-ensemble latin COMPLET (U+0000-00FF + OE + ponctuation) : le titrage
   est en majuscules, donc A-accent, E-accent, U-accent et C-cedille sont
   indispensables. Un sous-ensemble anglais les ferait basculer sur une
   fonte de repli, visible en plein milieu d'un titre. */
@font-face {
    font-family: "Archivo Black";
    src: url("/fonts/archivo-black-latin.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Literata";
    src: url("/fonts/literata-latin.woff2") format("woff2");
    font-weight: 400 600;
    font-style: normal;
    font-display: swap;
}

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

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

body {
    font-family: var(--font-family);
    font-size: 17px;
    line-height: 1.62;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--color-accent-dark);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

ul, ol {
    list-style: none;
}

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

button {
    cursor: pointer;
    border: none;
    background: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: var(--color-text);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

p {
    margin-bottom: 1rem;
}

/* === CSS Custom Properties — Tu sais-tu ===
   Palette affiche: papier chaud, bleu du Quebec, accent rouge.
   Tout est plat: pas de rayon, pas d'ombre, pas de degrade. */
:root {
    --color-primary: #0B3F7A;        /* bleu */
    --color-primary-dark: #082D58;
    --color-primary-light: #2E6FB8;
    --color-primary-bg: #E4EBF4;
    --color-accent: #D52B1E;         /* rouge */
    --color-accent-dark: #A81E14;
    --color-accent-bg: #FBE6E4;
    --color-highlight: #D52B1E;
    --color-highlight-dark: #A81E14;
    --color-highlight-bg: #FBE6E4;
    --color-berry: #0B3F7A;
    --color-berry-bg: #E4EBF4;
    --color-success: #1B6B4A;
    --color-success-bg: #E2EFE9;
    --color-error: #C0261A;
    --color-error-bg: #FBE6E4;
    --color-warning: #B57A12;
    --color-bg: #F2EFE9;             /* papier */
    --color-surface: #FFFFFF;
    --color-text: #111111;
    --color-text-muted: #55504A;
    --color-text-light: #7A736A;
    --color-border: #1A1A1A;
    --color-border-light: #D6D0C6;
    --color-header-bg: #0B3F7A;
    --color-footer-bg: #0B3F7A;
    --color-on-dark: #FFFFFF;
    --color-on-dark-muted: #B7C6DC;

    /* Plat partout: chaque rayon est a zero. */
    --radius-xs: 0;
    --radius-sm: 0;
    --radius-md: 0;
    --radius-lg: 0;
    --radius-xl: 0;
    --radius-full: 0;

    --shadow-sm: none;
    --shadow-md: none;
    --shadow-lg: none;
    --shadow-xl: none;

    --max-width: 1200px;
    --content-width: 760px;

    --transition-fast: 0.12s ease;
    --transition-normal: 0.2s ease;
    --transition-slow: 0.35s ease;

    --font-display: "Archivo Black", Impact, "Arial Black", sans-serif;
    --font-family: Literata, Georgia, "Times New Roman", serif;
    --font-mono: 'SF Mono', 'Fira Code', monospace;

    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;

    --z-dropdown: 100;
    --z-sticky: 200;
    --z-overlay: 300;
    --z-modal: 400;
}

/* === Utility === */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

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

.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }
.text-small { font-size: 0.875rem; }

.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); }
