/*
 * Base : réinitialisation légère, typographie, accessibilité.
 * Les jetons (couleurs, tailles, espacements) viennent de theme.json : --wp--preset--* et --wp--custom--*.
 * Les autres feuilles (polices, composants, mise en page, pages, boutique, parcours) sont déclarées dans project.json > config > assets.
 */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	margin: 0;
}

.site-main {
	flex: 1;
}

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

p {
	margin-block: 0;
}

a {
	text-decoration: none;
}

h1,
h2,
h3,
h4 {
	margin: 0;
	font-family: var(--wp--preset--font-family--cormorant);
	line-height: 1.2;
}

:focus-visible {
	outline: 2px solid var(--wp--preset--color--terracotta-texte);
	outline-offset: 3px;
}

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

.skip-link:focus {
	position: fixed;
	top: 0.5rem;
	left: 0.5rem;
	z-index: 100000;
	width: auto;
	height: auto;
	margin: 0;
	padding: 0.5rem 1rem;
	clip: auto;
	background: var(--wp--preset--color--creme);
}
