/**
 * Socle : reset minimal, typographie, gabarit, boutons.
 * Les styles de texte appliquent les définitions du Figma (PP Neue Montreal,
 * graisses 400/500, approches négatives) via les tokens — voir tokens.css.
 * Tout ce qui est propre à une section ou un snippet vit dans son fichier.
 */

/* ---------------------------------------------------------------- Reset -- */

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

body {
	margin: 0;
	background: var(--ultra-light);
	color: var(--text-black);
	font-family: var(--font-corps);
	font-size: var(--style-texte-taille);
	line-height: var(--style-texte-interligne);
	letter-spacing: var(--style-texte-approche);
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
}

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

/* ----------------------------------------------------------- Typographie -- */

h1,
h2,
h3 {
	font-family: var(--font-titres);
	font-weight: 500;
	margin: 0 0 var(--marge-s);
}

h1 {
	font-size: var(--style-h1-taille);
	line-height: var(--style-h1-interligne);
	letter-spacing: var(--style-h1-approche);
}

h2 {
	font-size: var(--style-h2-taille);
	line-height: var(--style-h2-interligne);
	letter-spacing: var(--style-h2-approche);
}

h3 {
	font-size: var(--style-texte-large-taille);
	line-height: var(--style-texte-large-interligne);
	letter-spacing: var(--style-texte-large-approche);
}

/* Le titre d'affiche (héros) : style Desktop/Display du Figma. */
.dh-display {
	font-size: var(--style-display-taille);
	line-height: var(--style-display-interligne);
	letter-spacing: var(--style-display-approche);
	font-weight: 500;
}

p {
	margin: 0 0 var(--marge-s);
}

a {
	color: inherit;
}

/* Le motif de marque : un mot souligné de rouge, jamais plus. */
.dh-souligne {
	box-shadow: inset 0 -0.18em var(--canada);
}

/* -------------------------------------------------------------- Gabarit -- */

.dh-conteneur {
	max-width: var(--largeur-contenu);
	margin-inline: auto;
	padding-inline: var(--marge-l);
}

.dh-section {
	padding-block: var(--marge-xl);
}

/* Étiquette de section : style Text/Link--700, précédé du filet rouge. */
.dh-etiquette {
	display: inline-flex;
	align-items: center;
	gap: 0.6em;
	font-size: var(--style-lien-taille);
	line-height: var(--style-lien-interligne);
	letter-spacing: var(--style-lien-approche);
	font-weight: 700;
	text-transform: uppercase;
	color: var(--text-gray);
	margin-bottom: var(--marge-l);
}

.dh-etiquette::before {
	content: "";
	width: 2.2em;
	height: 3px;
	background: var(--canada);
}

/* -------------------------------------------------------------- Boutons -- */

.dh-bouton {
	display: inline-block;
	padding: 0.75em 1.5em;
	background: var(--canada);
	color: var(--white);
	font-family: var(--font-corps);
	font-size: var(--style-cta-taille);
	line-height: var(--style-cta-interligne);
	letter-spacing: var(--style-cta-approche);
	font-weight: 500;
	text-decoration: none;
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	transition: background 150ms ease;
}

.dh-bouton:hover,
.dh-bouton:focus-visible {
	background: var(--canada-press);
}

.dh-bouton--contour {
	background: transparent;
	color: inherit;
	box-shadow: inset 0 0 0 2px currentColor;
}

.dh-bouton--contour:hover,
.dh-bouton--contour:focus-visible {
	background: transparent;
	color: var(--canada);
}

/* -------------------------------------------------------- Accessibilité -- */

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
}

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

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}
