/**
 * Base — reset moderne + typo de base
 */

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

* {
	margin: 0;
}

html {
	-webkit-text-size-adjust: 100%;
	-moz-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: var(--header-height);
}

body {
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	font-size: var(--fs-base);
	line-height: var(--lh-normal);
	min-height: 100vh;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	transition: background var(--transition-base), color var(--transition-base);
}

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

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

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

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

a:hover,
a:focus-visible {
	color: var(--accent-hover);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

p,
h1, h2, h3, h4, h5, h6 {
	overflow-wrap: break-word;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-titles);
	font-weight: 700;
	line-height: var(--lh-tight);
	color: var(--text);
}

h1 { font-size: clamp(var(--fs-3xl), 5vw, var(--fs-5xl)); letter-spacing: -0.02em; }
h2 { font-size: clamp(var(--fs-2xl), 4vw, var(--fs-4xl)); letter-spacing: -0.015em; }
h3 { font-size: clamp(var(--fs-xl), 3vw, var(--fs-3xl)); letter-spacing: -0.01em; }
h4 { font-size: var(--fs-xl); }
h5 { font-size: var(--fs-lg); }
h6 { font-size: var(--fs-md); text-transform: uppercase; letter-spacing: 0.08em; }

p {
	line-height: var(--lh-relaxed);
}

ul, ol {
	padding-left: 1.25em;
}

li + li {
	margin-top: 0.25em;
}

hr {
	border: 0;
	border-top: 1px solid var(--border);
	margin: var(--space-xl) 0;
}

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

/* Lien skip-content pour accessibilité */
.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: var(--z-toast);
	padding: var(--space-md);
	background: var(--accent);
	color: var(--on-accent);
	font-weight: 700;
}
.skip-link:focus {
	left: var(--space-md);
	top: var(--space-md);
}
