/* Prototype anglais — base : normalisation, typographie, focus. */

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: calc(var(--enp-header-height) + var(--enp-space-3));
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

body {
	margin: 0;
	background: var(--enp-bg);
	color: var(--enp-fg);
	font-family: var(--enp-font-text);
	font-size: var(--enp-text-base);
	line-height: var(--enp-leading-text);
	font-synthesis: none;
	overflow-wrap: break-word;
}

h1,
h2,
h3 {
	margin: 0;
	font-family: var(--enp-font-display);
	font-weight: 400;
	line-height: var(--enp-leading-tight);
	text-wrap: balance;
}

p,
ul,
ol,
figure {
	margin: 0;
}

ul,
ol {
	padding: 0;
	list-style: none;
}

a {
	color: inherit;
	text-underline-offset: 0.2em;
}

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

:focus-visible {
	outline: 2px solid var(--enp-focus);
	outline-offset: 3px;
}

.enp-main:focus {
	outline: none;
}

.enp-skip {
	position: absolute;
	top: var(--enp-space-2);
	left: var(--enp-space-2);
	z-index: 100;
	display: inline-flex;
	align-items: center;
	min-height: var(--enp-target);
	padding: var(--enp-space-2) var(--enp-space-3);
	background: var(--enp-fg);
	color: var(--enp-bg);
	transform: translateY(-200%);
}

.enp-skip:focus {
	transform: none;
}

/* HEM-WP-R2-02 lot 1 — surfaces R2 (classes opt-in, appliquées aux lots 2 à 6).
   Le contour de focus suit la couleur du texte pour rester visible sur fond
   noir ou saumon. */
.enp-surface-inverse {
	background: var(--enp-inverse-bg);
	color: var(--enp-inverse-fg);
}

.enp-surface-highlight {
	background: var(--enp-highlight-bg);
	color: var(--enp-highlight-fg);
}

.enp-surface-muted {
	background: var(--enp-r2-stone);
	color: var(--enp-r2-ink);
}

.enp-surface-inverse :focus-visible,
.enp-surface-highlight :focus-visible,
.enp-surface-muted :focus-visible {
	outline-color: currentColor;
}

.enp-display {
	font-family: var(--enp-font-display);
	font-weight: var(--enp-weight-regular);
	line-height: var(--enp-leading-display);
}
