/* ===================================================================
   BASE — reset, typographie, structure générale
   =================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink-800);
    background: var(--paper-50);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; color: var(--ink-900); font-weight: 600; }
h1 { font-size: 28px; letter-spacing: -0.01em; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }
p { margin: 0 0 var(--space-3); }

a { color: var(--brand-green-700); text-decoration: none; }
a:hover { text-decoration: underline; }

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

button { font-family: inherit; }

::selection { background: var(--brand-gold-100); }

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

/* Focus visible cohérent partout (accessibilité clavier) */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
    outline: 2px solid var(--brand-green-600);
    outline-offset: 2px;
    border-radius: 4px;
}

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 var(--space-5);
}

.scroll-thin {
    scrollbar-width: thin;
}
.scroll-thin::-webkit-scrollbar { width: 6px; height: 6px; }
.scroll-thin::-webkit-scrollbar-thumb { background: var(--ink-300); border-radius: 3px; }

/* Skip link */
.skip-link {
    position: absolute; left: -9999px; top: 0;
    background: var(--brand-green-800); color: #fff;
    padding: var(--space-2) var(--space-4); z-index: 999;
    border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }
