/* ──────────────────────────────────────────────────────────────────────
   Reset modeste + typographie de base
   ────────────────────────────────────────────────────────────────────── */

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

html {
	-webkit-text-size-adjust: 100%;
	-moz-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
	font-size: 16px;
}

body {
	margin: 0;
	background: var(--bg-primary);
	color: var(--text-primary);
	font-family: var(--font-serif);
	font-size: var(--fs-body);
	font-weight: 400;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

body.scroll-locked {
	overflow: hidden;
}

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

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

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

a {
	color: var(--text-primary);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	text-decoration-color: var(--border-default);
	transition: color var(--t-fast), text-decoration-color var(--t-fast);
}
a:hover {
	color: var(--accent-primary);
	text-decoration-color: var(--accent-primary);
}

:focus-visible {
	outline: 2px solid var(--accent-primary);
	outline-offset: 3px;
	border-radius: 2px;
}

/* Titres : Inter Tight, 400/500 uniquement */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	font-weight: 500;
	color: var(--text-primary);
	line-height: 1.15;
	letter-spacing: -0.01em;
	margin: 0 0 var(--s-6);
}

h1 { font-size: clamp(2.25rem, 4vw + 1rem, var(--fs-h1)); line-height: 1.1; }
h2 { font-size: clamp(1.625rem, 2.5vw + .5rem, var(--fs-h2)); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
h5 { font-size: var(--fs-body-lg); font-weight: 500; }
h6 { font-size: var(--fs-body); font-weight: 500; }

p {
	margin: 0 0 var(--s-4);
	max-width: 65ch;
}

p.lead {
	font-size: var(--fs-body-lg);
	color: var(--text-secondary);
	max-width: 60ch;
}

small, .text-small {
	font-size: var(--fs-small);
	color: var(--text-secondary);
}

strong {
	font-weight: 500;
}

ul, ol {
	margin: 0 0 var(--s-4);
	padding-left: var(--s-6);
}

li { margin-bottom: var(--s-2); }

hr {
	border: 0;
	border-top: 1px solid var(--border-subtle);
	margin: var(--s-8) 0;
}

::selection {
	background: var(--accent-primary);
	color: var(--text-on-accent);
}

/* Skip link a11y */
.skip-link {
	position: absolute;
	left: -9999px;
	top: var(--s-2);
	background: var(--bg-primary);
	color: var(--text-primary);
	padding: var(--s-2) var(--s-4);
	border: 1px solid var(--border-default);
	border-radius: var(--r-sm);
	z-index: 1000;
}
.skip-link:focus {
	left: var(--s-4);
}
