/**
 * 02 - Base
 *
 * Reset cible et typographie. Les selecteurs de reset sont enveloppes dans
 * :where() afin d avoir une specificite nulle : ils neutralisent les styles
 * par defaut du navigateur et du theme parent, sans jamais gagner contre une
 * regle de composant ecrite plus loin.
 */

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

:where(html) {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--otb-entete-h) + 24px);
}

:where(body) {
	margin: 0;
	background: var(--otb-nuit);
	color: var(--otb-blanc);
	font-family: var(--otb-texte);
	font-size: var(--otb-t-normal);
	font-weight: 400;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

/* Le theme parent et les extensions posent des marges et des bordures sur
   des elements nus. On les remet a zero explicitement, car une regle de
   portee ne protege que les proprietes qu elle declare. */
:where(h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, ul, ol) {
	margin: 0;
	padding: 0;
	border: 0;
}

:where(ul, ol) {
	list-style: none;
}

:where(img, svg, video, canvas) {
	display: block;
	max-width: 100%;
	height: auto;
}

:where(a) {
	color: var(--otb-or);
	text-decoration: none;
	transition: color var(--otb-vite) var(--otb-courbe);
}

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

/* Titres. Archivo, tres serre, interligne court. C est la signature du site. */
h1, h2, h3, h4, h5, h6,
.otb-titre {
	font-family: var(--otb-titre);
	font-weight: 800;
	line-height: 1.03;
	letter-spacing: -0.02em;
	color: var(--otb-blanc);
	text-wrap: balance;
}

h1 { font-size: var(--otb-t-affiche); }
h2 { font-size: var(--otb-t-titre); }
h3 { font-size: var(--otb-t-grand); }
h4 { font-size: var(--otb-t-moyen); }

/* Les titres en capitales gagnent un leger interlettrage, le corps non. */
.otb-maj {
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: var(--otb-t-petit);
	font-weight: 700;
	font-family: var(--otb-titre);
	color: var(--otb-gris);
}

/* Chiffres sportifs : colonnes alignees grace aux chiffres tabulaires. */
.otb-chiffre {
	font-family: var(--otb-titre);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	font-feature-settings: "tnum" 1;
	letter-spacing: -0.03em;
}

/* Texte courant : mesure limitee pour que l oeil retrouve la ligne suivante. */
.otb-texte {
	max-width: var(--otb-largeur-texte);
	color: var(--otb-gris);
	font-size: var(--otb-t-moyen);
	line-height: 1.7;
}

.otb-texte strong { color: var(--otb-blanc); font-weight: 700; }

/* Accessibilite : lien d evitement et focus visibles. */
.otb-skip {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 999;
	padding: 14px 22px;
	background: var(--otb-or);
	color: var(--otb-nuit);
	font-family: var(--otb-titre);
	font-weight: 700;
	border-radius: 0 0 var(--otb-r-m) 0;
}

.otb-skip:focus {
	left: 0;
}

:focus-visible {
	outline: 2px solid var(--otb-or);
	outline-offset: 3px;
	border-radius: var(--otb-r-s);
}

.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;
}

/* Selection de texte aux couleurs du club. */
::selection {
	background: var(--otb-or);
	color: var(--otb-nuit);
}

/* Barre de defilement discrete, teintee comme le reste. */
@supports (scrollbar-color: red blue) {
	html { scrollbar-color: var(--otb-filet) var(--otb-nuit); scrollbar-width: thin; }
}