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

#components-reconnect-modal {
	display: none !important;
}

html {
	background: #000;
}

body {
	display: flex;
	flex-direction: column;
	height: 100%;
	margin: 0;
	min-height: 100svh;
	font-family: var(--font-ui);
	font-size: 1.0625rem;
	line-height: 1.3;
	color: var(--bone);
	-webkit-font-smoothing: antialiased;
}

main {
	flex: 1;
}

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

html.no-hud main *:not(header):not(header *),
html.no-hud footer {
	display: none;
}

/* Video background : static during scroll */
.bg {
	position: fixed;
	inset: 0;
	z-index: -1;
	background: #000;
}

.bg video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 55% center; /* mobile : cadrage sur le sujet */
}

/* Dark veil for readability, denser at the bottom where the content is */
.bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to bottom,
		rgba(0, 0, 0, 0.35),
		rgba(0, 0, 0, 0.35)
	);
}

/* Column for scrolling */
.page {
	width: 100%;
	max-width: 44rem;
	margin-inline: auto;
	padding: calc(2.5rem + env(safe-area-inset-top, 0px)) var(--gutter)
		calc(3rem + env(safe-area-inset-bottom, 0px));
	display: flex;
	flex-direction: column;
	gap: 1.75rem;
}

footer {
	text-align: center;
	margin: 0.5rem;
}

footer a {
	text-decoration: underline;
	color: var(--bone);
}

footer a:hover {
	color: var(--ember);
	transition: color 0.2s;
}

@media (min-width: 768px) {
	.bg video {
		object-position: center;
	}
}
