/* ==========================================================================
   Base : polices auto-hébergées, reset, typographie de base, accessibilité.
   ========================================================================== */

/* ---------- Polices ---------- */
@font-face {
	font-family: "Gotham";
	src: url("../fonts/gotham-book.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Gotham";
	src: url("../fonts/gotham-medium.woff2") format("woff2");
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Gotham";
	src: url("../fonts/gotham-bold.woff2") format("woff2");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

/* Bebas Neue (OFL) : un seul poids, déjà très gras. */
@font-face {
	font-family: "Bebas Neue";
	src: url("../fonts/bebas-neue.woff2") format("woff2");
	font-weight: 400 700;
	font-style: normal;
	font-display: swap;
}

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

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

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd,
ul,
ol {
	margin: 0;
}

/* :where() : spécificité nulle, les composants gardent la main sur leurs marges internes. */
:where(ul[class], ol[class]) {
	padding: 0;
	list-style: none;
}

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

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

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

/* ---------- Typographie de base ---------- */
body {
	background: var(--c-white);
	color: var(--c-black);
	font-family: var(--ff-sans);
	font-weight: var(--fw-book);
	font-size: var(--fs-body);
	line-height: var(--lh-body);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

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

strong,
b {
	font-weight: var(--fw-bold);
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-weight: inherit;
	font-size: inherit;
	line-height: inherit;
}

/* ---------- Accessibilité ---------- */
:focus-visible {
	outline: 2px solid var(--c-focus);
	outline-offset: 4px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed;
	top: 1rem;
	left: 1rem;
	z-index: var(--z-menu);
	width: auto;
	height: auto;
	padding: 1rem 1.5rem;
	clip: auto;
	background: var(--c-white);
	color: var(--c-black);
	font-size: var(--fs-cta);
	font-weight: var(--fw-medium);
	text-transform: uppercase;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
