/* Base */

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

html {
	scroll-behavior: smooth;
	overflow-x: clip;
}

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

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

body {
	margin: 0;
	font-family: var(--font-sans);
	font-size: var(--font-size-body);
	font-weight: var(--font-weight-regular);
	line-height: var(--line-height-body);
	color: var(--color-text);
	background: var(--color-surface);
	-webkit-font-smoothing: antialiased;
}

/* Pages courtes (ex. Actualités vide) : footer collé en bas de viewport */
body.wize-theme {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100dvh;
	overflow-x: clip;
}

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

a {
	color: var(--color-link);
	text-decoration: none;
}

a:hover {
	color: var(--color-link-hover);
}

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

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background: var(--color-white);
	clip: auto !important;
	clip-path: none;
	color: var(--color-ink);
	display: block;
	font-size: 1em;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

.wize-skip-link:focus {
	position: fixed;
}

h1,
h2,
h3,
.wize-serif {
	font-family: var(--font-serif);
	font-weight: var(--font-weight-regular);
	color: var(--color-sapin);
	line-height: var(--line-height-h2);
	margin: 0;
}

h1 {
	font-weight: var(--font-weight-black);
	line-height: var(--line-height-h1);
}

p {
	margin: 0;
}

ul,
ol {
	margin: 0;
	padding: 0;
}

.wize-main {
	flex: 1 1 auto;
	width: 100%;
	min-height: 0;
}
