/* ==========================================================================
   RunHoratio — composants

   Étapes 01–06 : socle, coupes, hachures, coquille (en-tête, navigation,
   recherche, bascule, pied de page), carte d’article, article et
   grille de données, archives, recherche, page auteur,
   formulaires et pages fixes.
   ========================================================================== */

/* -- Socle ----------------------------------------------------------------- */

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

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

@media (max-width:860px) {
	body { font-size: 16px; }
}

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

a { color: inherit; text-decoration: none; }

/* -- Conteneur ------------------------------------------------------------- */
/* Conteneur 1440 max, marge latérale 48 (16 en mobile). Le fond des bandeaux
   reste pleine largeur ; seul leur contenu est borné. */

.rh-shell {
	max-width: var(--maxw);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

/* -- 10 — Anneau de focus -------------------------------------------------- */

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

/* Sur un élément rogné, un anneau extérieur serait coupé par le clip-path.
   On le rentre à l'intérieur : filet en accent, doublé d'une ombre interne. */
.rh-cut:focus-visible,
.rh-cut:focus-within {
	outline: none;
	border-color: var(--acc);
	box-shadow: inset 0 0 0 2px var(--acc);
}

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

.screen-reader-text {
	position: absolute;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus {
	position: fixed;
	top: var(--s2); left: var(--s2);
	z-index: 100;
	width: auto; height: auto;
	margin: 0; padding: var(--s2) var(--s3);
	clip-path: none;
	background: var(--acc);
	color: var(--on-acc);
	font-family: var(--font-mono);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
}

/* -- 04 — Panneaux à coins coupés ------------------------------------------
   Le coin supérieur droit, jamais un autre. Ni border-radius, ni box-shadow
   extérieure : elle serait invisible sous le clip.
   ------------------------------------------------------------------------- */

.rh-cut {
	--cut: 16px;
	clip-path: polygon(0 0, calc(100% - var(--cut)) 0,
		100% var(--cut), 100% 100%, 0 100%);
}

.rh-cut--sm { --cut: 14px; }
.rh-cut--lg { --cut: 18px; }
.rh-cut--xl { --cut: 22px; }

/* -- 04 — Hachures de remplacement d'image --------------------------------- */

.rh-placeholder {
	background: repeating-linear-gradient(135deg,
		var(--line) 0 6px, transparent 6px 13px);
}

/* -- 07 — Corrections d'image liées au thème sombre ------------------------
   Sur une surface sombre permanente (--inv-bg), le logo est inversé dans les
   deux thèmes : d'où le modificateur, plutôt qu'une règle liée à data-theme.
   ------------------------------------------------------------------------- */

.rh-logo--inv,
[data-theme="dark"] .rh-logo:not(.rh-logo--inv) {
	filter: invert(1) hue-rotate(180deg) saturate(1.2);
}

.rh-mascot { image-rendering: pixelated; }

[data-theme="dark"] .rh-mascot { mix-blend-mode: screen; }

/* ==========================================================================
   02 — Coquille
   ========================================================================== */

/* -- En-tête --------------------------------------------------------------- */

.rh-header {
	position: relative;
	background: var(--inv-bg);
	color: var(--inv-ink);
}

.rh-header__inner {
	display: flex;
	align-items: center;
	gap: 36px;
	padding-block: 12px;
}

/* Bloc-marque : le coureur, puis le nom et la signature en vrai texte.
   La hauteur du coureur cale celle du bloc entier. */
.rh-header__brand {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: none;
}

.rh-logo {
	display: block;
	height: 34px;
	width: auto;
}

.rh-header__brand .rh-logo { height: 36px; }

.rh-brand__words {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.rh-brand__name {
	font-family: var(--font-title);
	font-weight: 800;
	font-size: 22px;
	line-height: 1;
	letter-spacing: -.03em;
}

.rh-brand__tag {
	font-family: var(--font-mono);
	font-size: 9px;
	line-height: 1;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--acc);
}

.rh-header__brand:hover .rh-brand__name { color: var(--acc); }

/* -- Navigation ------------------------------------------------------------ */

.rh-nav { flex: 0 1 auto; min-width: 0; }

.rh-nav__list {
	display: flex;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-family: var(--font-mono);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.rh-nav__list a {
	display: block;
	padding: 7px 11px;
	white-space: nowrap;
}

.rh-nav__list a:hover { color: var(--acc); }

.rh-nav__list .current-menu-item > a,
.rh-nav__list .current-menu-parent > a,
.rh-nav__list .current-menu-ancestor > a,
.rh-nav__list .current_page_item > a {
	background: var(--acc);
	color: var(--on-acc);
}

/* -- Recherche de l'en-tête ------------------------------------------------ */

.rh-search {
	--cut: 10px;
	flex: 0 1 auto;
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 150px;
	padding: 8px 14px;
	border: 1px solid var(--inv-line);
	font-family: var(--font-mono);
	font-size: 12px;
}

.rh-search__glyph { flex: none; }

.rh-search__input {
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
}

.rh-search__input:focus-visible { outline: none; }

.rh-search__input::placeholder {
	color: currentColor;
	opacity: .6;
}

/* -- Bascule clair / sombre ------------------------------------------------
   Absente des maquettes : reprise du vocabulaire du champ de recherche voisin.
   ------------------------------------------------------------------------- */

.rh-toggle {
	--cut: 10px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex: none;
	padding: 8px 14px;
	border: 1px solid var(--inv-line);
	background: none;
	color: inherit;
	font-family: var(--font-mono);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	cursor: pointer;
}

.rh-toggle:hover { color: var(--acc); }

.rh-toggle__glyph { font-size: 14px; line-height: 1; }

/* -- Boutons mobiles de l'en-tête ------------------------------------------ */

.rh-burger,
.rh-search-btn {
	display: none;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	cursor: pointer;
}

.rh-burger__bars {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.rh-burger__bars i {
	display: block;
	width: 22px;
	height: 3px;
	background: var(--inv-ink);
}

.rh-burger__bars i:last-child { background: var(--acc); }

.rh-search-btn {
	font-family: var(--font-mono);
	font-size: 16px;
}

/* -- Pied de page ---------------------------------------------------------- */

.rh-footer {
	background: var(--panel);
	border-top: 2px solid var(--ink);
}

.rh-footer__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	padding-block: 36px;
}

.rh-footer__brand {
	margin: 0;
	font-family: var(--font-title);
	font-weight: 800;
	font-size: 24px;
	letter-spacing: -.03em;
}

.rh-footer__tagline {
	margin: 0;
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--acc);
}

.rh-footer__nav { margin-left: auto; }

.rh-footer__list {
	display: flex;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--ink2);
}

.rh-footer__list a:hover { color: var(--acc); }

/* -- Pied de page riche, accueil uniquement -------------------------------- */

.rh-footer--full .rh-footer__inner {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: 40px;
	align-items: start;
	padding-block: 44px 32px;
}

.rh-footer__identity {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.rh-footer--full .rh-footer__brand { font-size: 28px; }

.rh-footer__intro {
	margin: 6px 0 0;
	max-width: 36ch;
	font-size: 14px;
	line-height: 1.55;
	color: var(--ink2);
}

.rh-footer__col {
	display: flex;
	flex-direction: column;
	gap: 10px;
	font-family: var(--font-mono);
	font-size: 13px;
	color: var(--ink2);
}

.rh-footer__col h2 {
	margin: 0;
	font-family: var(--font-mono);
	font-size: 11px;
	font-weight: 400;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--ink3);
}

.rh-footer__col ul {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rh-footer__col a:hover { color: var(--acc); }

/* ==========================================================================
   03 — Carte d'article

   Une seule pièce, trois tailles. Les valeurs viennent des maquettes :
   vedette 2b, carte de grille 1b « Derniers articles », ligne dense 3c.
   ========================================================================== */

/* -- Grille ---------------------------------------------------------------- */

.rh-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--grid-gap);
}

/* -- Titre de section ------------------------------------------------------ */

.rh-section {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: var(--s4);
}

.rh-section__chevrons {
	display: flex;
	gap: 6px;
	flex: none;
}

.rh-section__chevrons i {
	display: block;
	width: 16px;
	height: 16px;
	background: var(--ink);
	transform: skewX(-28deg);
}

.rh-section__chevrons i:last-child { background: var(--acc); }

.rh-section__title {
	margin: 0;
	font-family: var(--font-title);
	font-weight: 800;
	font-size: 26px;
	letter-spacing: -.02em;
}

/* -- La carte -------------------------------------------------------------- */

.rh-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--panel);
	border: 1px solid var(--line);
}

.rh-card__media {
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

.rh-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.rh-card__body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 16px;
}

.rh-card__cat {
	align-self: flex-start;
	padding: 4px 8px;
	background: var(--sigsoft);
	color: var(--sig);
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.rh-card__title {
	margin: 0;
	font-family: var(--font-title);
	font-weight: 800;
	font-size: 22px;
	line-height: 1.14;
	letter-spacing: -.02em;
}

/* Un seul lien par carte, étendu à toute la surface : le titre reste le
   texte du lien, et la carte entière reste cliquable. */
.rh-card__link::after {
	content: "";
	position: absolute;
	inset: 0;
}

.rh-card:hover .rh-card__title { color: var(--acc); }

.rh-card__excerpt {
	margin: 0;
	font-size: 15px;
	line-height: 1.55;
	color: var(--ink2);
}

/* Deux groupes distincts : les chiffres de la course à gauche, le temps de
   lecture à droite. Collés, « 10 min · 42,2 km » se lisait comme un chrono. */
.rh-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 4px 16px;
	margin: 0;
	padding-top: 10px;
	border-top: 1px solid var(--line);
	font-family: var(--font-mono);
	font-size: 11px;
	color: var(--ink3);
}

.rh-card__course { color: var(--ink2); }

.rh-card__read { margin-left: auto; }

/* -- Taille vedette -------------------------------------------------------- */

.rh-card--lg {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-column: span 2;
}

.rh-card--lg .rh-card__media {
	aspect-ratio: auto;
	min-height: 280px;
}

.rh-card--lg .rh-card__body {
	gap: 12px;
	padding: 24px;
	justify-content: center;
}

.rh-card--lg .rh-card__cat { padding: 5px 9px; }

.rh-card--lg .rh-card__title {
	font-size: 34px;
	line-height: 1.04;
	letter-spacing: -.03em;
}

.rh-card--lg .rh-card__excerpt {
	font-size: 16px;
	line-height: 1.6;
}

.rh-card--lg .rh-card__meta { padding-top: 12px; }

/* -- Taille dense : une ligne, pas un panneau ------------------------------ */

.rh-card--sm {
	display: grid;
	grid-template-columns: 1fr 150px;
	gap: 24px;
	align-items: start;
	padding: 20px 0;
	border: 0;
	border-bottom: 1px solid var(--line);
	background: none;
}

.rh-card--sm .rh-card__body {
	gap: 9px;
	padding: 0;
}

.rh-card--sm .rh-card__cat {
	padding: 0;
	background: none;
	color: var(--sig);
}

.rh-card--sm .rh-card__title {
	font-size: 26px;
	line-height: 1.1;
	letter-spacing: -.025em;
}

.rh-card--sm .rh-card__excerpt {
	max-width: 74ch;
	font-size: 16px;
	line-height: 1.6;
}

.rh-card--sm .rh-card__meta {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	justify-content: flex-start;
	flex-wrap: nowrap;
	gap: 2px;
	padding-top: 0;
	border-top: 0;
	text-align: right;
}

/* -- Liste de lignes denses ------------------------------------------------ */

.rh-rows {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

/* -- 06 — Barre de difficulté ---------------------------------------------
   Cinq segments et teinte de signal : c'est ce que rendent les maquettes de
   la direction retenue (1b, 2b, 2c). Le code d'exemple de § 06 en montre dix
   en teinte d'accent — voir RH_DIFFICULTE_TOTAL si tu préfères cette échelle.

   La note chiffrée accompagne toujours la barre, jamais à sa place : sans
   JavaScript, le conteneur reste vide.
   ------------------------------------------------------------------------- */

.rh-difficulty {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 4px 0 0;
}

.rh-difficulty__label {
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--ink3);
}

.rh-bar {
	--seg-w: 20px;
	--seg-h: 8px;
	display: inline-flex;
	gap: 3px;
}

.rh-bar i {
	display: block;
	width: var(--seg-w);
	height: var(--seg-h);
	background: var(--line);
}

.rh-bar i.is-on { background: var(--sig); }

/* -- 06 — Répartition triathlon -------------------------------------------- */

.rh-split {
	display: flex;
	gap: 2px;
	height: 10px;
}

.rh-split span:nth-child(1) { background: var(--sig); }
.rh-split span:nth-child(2) { background: var(--ink3); }
.rh-split span:nth-child(3) { background: var(--acc); }

/* -- Pagination ------------------------------------------------------------ */

.rh-stack { padding-block: var(--s7); }

.rh-stack > * + * { margin-top: var(--s6); }

.navigation.pagination { margin-top: var(--s6); }

.nav-links {
	display: flex;
	gap: 6px;
	font-family: var(--font-mono);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.nav-links .page-numbers {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	min-height: 36px;
	padding: 0 10px;
	border: 1px solid var(--line);
	color: var(--ink2);
}

.nav-links .page-numbers.current {
	background: var(--acc);
	border-color: var(--acc);
	color: var(--on-acc);
}

.nav-links a.page-numbers:hover {
	border-color: var(--acc);
	color: var(--acc);
}

.screen-reader-text + .nav-links { margin-top: 0; }

/* ==========================================================================
   04 — Article, grille de données, encadrés
   ========================================================================== */

/* -- Mise en page article + colonne latérale ------------------------------- */

.rh-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) var(--rail);
	gap: var(--col-gap);
	padding-block: var(--s5) 56px;
}

.rh-article {
	display: flex;
	flex-direction: column;
	gap: var(--s5);
	max-width: 74ch;
}

.rh-article--solo {
	margin-inline: auto;
	padding-block: var(--s5) 56px;
}

.rh-rail {
	display: flex;
	flex-direction: column;
	gap: var(--s4);
}

/* -- Fil d'Ariane ---------------------------------------------------------- */

.rh-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	padding-top: var(--s5);
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: .06em;
	color: var(--ink3);
}

.rh-breadcrumb a:hover { color: var(--acc); }

.rh-breadcrumb__current { color: var(--ink2); }

/* -- En-tête d'article ----------------------------------------------------- */

.rh-article__head {
	display: flex;
	flex-direction: column;
	gap: var(--s3);
}

.rh-article__kicker {
	margin: 0;
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--sig);
}

.rh-article__title {
	margin: 0;
	font-family: var(--font-title);
	font-weight: 800;
	font-size: 60px;
	line-height: .98;
	letter-spacing: -.035em;
}

.rh-article--solo .rh-article__title { font-size: 68px; }

.rh-article__chapo {
	margin: 0;
	font-size: 20px;
	line-height: 1.6;
	color: var(--ink2);
}

.rh-article__byline {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--ink3);
}

.rh-article__media {
	margin: 0;
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

.rh-article__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* -- Corps de texte --------------------------------------------------------
   Dix-neuf pixels sur 1,75 : c'est la valeur des maquettes et de la fiche
   3g. Le 17 px de § 03 reste la taille du reste du site.
   ------------------------------------------------------------------------- */

.rh-prose {
	font-size: 19px;
	line-height: 1.75;
}

.rh-prose > * + * { margin-top: var(--s5); }

.rh-prose h2 {
	margin: var(--s6) 0 0;
	font-family: var(--font-title);
	font-weight: 800;
	font-size: 32px;
	line-height: 1.1;
	letter-spacing: -.025em;
	scroll-margin-top: var(--s5);
}

.rh-prose h3 {
	margin: var(--s5) 0 0;
	font-family: var(--font-title);
	font-weight: 800;
	font-size: 22px;
	line-height: 1.15;
	letter-spacing: -.02em;
}

.rh-prose p { margin: 0; }

.rh-prose a {
	color: var(--acc);
	border-bottom: 1px solid var(--line);
}

.rh-prose a:hover { border-bottom-color: var(--acc); }

.rh-prose img { display: block; }

.rh-prose figcaption {
	margin-top: var(--s1);
	font-family: var(--font-mono);
	font-size: 11px;
	color: var(--ink3);
}

.rh-prose blockquote {
	margin: 0;
	padding: 6px 0 6px 24px;
	border-left: 4px solid var(--acc);
	font-family: var(--font-title);
	font-weight: 500;
	font-size: 22px;
	line-height: 1.3;
}

.rh-prose ul,
.rh-prose ol { margin: 0; padding-left: 1.2em; }

.rh-prose li + li { margin-top: var(--s1); }

.rh-prose code {
	font-family: var(--font-mono);
	font-size: .85em;
}

/* -- 09 — Grille de données ------------------------------------------------ */

.rh-data {
	--cut: 20px;
	background: var(--panel);
	border: 1px solid var(--line);
}

.rh-data__head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: var(--s3);
	padding: 11px 18px;
	background: var(--inv-bg);
	color: var(--inv-ink);
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: .18em;
	text-transform: uppercase;
}

.rh-data__key { color: var(--acc); }

.rh-data__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
	margin: 0;
	padding: 20px 18px;
}

.rh-data__cell dt {
	margin-bottom: 6px;
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--ink3);
}

/* § 03 donne le rôle des données à JetBrains Mono, et les maquettes
   rendent bien les chiffres en mono 700. Le bloc de code de § 09, qui
   les met en Bricolage, est le seul endroit à dire le contraire. */
.rh-data__cell dd {
	margin: 0;
	font-family: var(--font-mono);
	font-weight: 700;
	font-size: 17px;
	line-height: 1.2;
}

.rh-data__cell dd.is-big { font-size: 26px; }

/* Précision sous un chiffre : le lieu et l'année d'un record, par exemple. */
.rh-data__note {
	margin: 5px 0 0;
	font-family: var(--font-mono);
	font-weight: 400;
	font-size: 11px;
	line-height: 1.4;
	color: var(--ink3);
}

.rh-hero__stat .rh-data__note { color: inherit; opacity: .55; }

.rh-data__foot {
	padding: 16px 18px;
	border-top: 1px solid var(--line);
}

.rh-data__foot .rh-difficulty { margin: 0; gap: 16px; }

.rh-data__foot .rh-bar { --seg-w: 42px; --seg-h: 14px; gap: 4px; }

/* -- Sommaire et panneaux de la colonne latérale --------------------------- */

.rh-panel {
	background: var(--panel);
	border: 1px solid var(--line);
}

.rh-panel__head {
	margin: 0;
	padding: 9px 14px;
	background: var(--inv-bg);
	color: var(--inv-ink);
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: .18em;
	text-transform: uppercase;
}

.rh-panel__body {
	display: flex;
	flex-direction: column;
	gap: 9px;
	padding: 14px;
	font-size: 15px;
	color: var(--ink2);
}

.rh-toc a:hover { color: var(--acc); }

/* -- Encadrés du corps ----------------------------------------------------- */

.rh-callout {
	padding: 18px 22px;
	background: var(--sigsoft);
	border: 1px solid var(--sig);
	--cut: 14px;
}

.rh-callout__label {
	margin: 0 0 8px;
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--sig);
}

.rh-callout p {
	margin: 0;
	font-size: 17px;
	line-height: 1.6;
}

.rh-warning {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 16px 20px;
	background: var(--inv-bg);
	color: var(--inv-ink);
}

.rh-warning__mark {
	flex: none;
	font-family: var(--font-mono);
	font-size: 16px;
	font-weight: 700;
	color: var(--acc);
}

.rh-warning__text {
	margin: 0;
	font-size: 15px;
	line-height: 1.55;
	opacity: .85;
}

/* -- Emplacements publicitaires -------------------------------------------- */

.rh-ad {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 12px;
	border: 1px dashed var(--line);
}

.rh-ad__label {
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--ink3);
}

.rh-ad__slot {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 90px;
	font-family: var(--font-mono);
	font-size: 11px;
	color: var(--ink3);
}

.rh-ad__slot--rail { height: 250px; }

/* ==========================================================================
   05 — Archives, recherche, auteur
   ========================================================================== */

/* -- Bandeau d'archive ----------------------------------------------------- */

.rh-hero {
	background: var(--inv-bg);
	color: var(--inv-ink);
}

.rh-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	gap: 48px;
	align-items: end;
	padding-block: 44px 40px;
}

.rh-hero__intro {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.rh-hero__kicker {
	margin: 0;
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--acc);
}

.rh-hero__title {
	margin: 0;
	font-family: var(--font-title);
	font-weight: 800;
	font-size: 72px;
	line-height: .92;
	letter-spacing: -.04em;
}

.rh-hero__text {
	margin: 0;
	max-width: 62ch;
	font-size: 18px;
	line-height: 1.6;
	opacity: .82;
}

/* Le filet de la grille de chiffres est plus discret que --inv-line : c'est
   la valeur de la maquette 2b. Troisième et dernière couleur hors jetons. */
.rh-hero__stats {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1px;
	margin: 0;
	background: rgba(255,255,255,.16);
}

.rh-hero__stat {
	padding: 14px 16px;
	background: var(--inv-bg);
}

.rh-hero__stat dt {
	margin-bottom: 6px;
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: .14em;
	text-transform: uppercase;
	opacity: .6;
}

.rh-hero__stat dd {
	margin: 0;
	font-family: var(--font-mono);
	font-weight: 700;
	font-size: 17px;
	line-height: 1.2;
}

.rh-hero__stat dd.is-big { font-size: 26px; }

/* -- Barre de facettes ----------------------------------------------------- */

.rh-facets {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	padding: 16px var(--gutter);
	max-width: var(--maxw);
	margin-inline: auto;
	border-bottom: 1px solid var(--line);
	background: var(--panel);
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.rh-facets__label {
	margin-right: 6px;
	color: var(--ink3);
}

.rh-facet {
	padding: 7px 12px;
	border: 1px solid var(--line);
	color: var(--ink2);
}

.rh-facet:hover { border-color: var(--acc); color: var(--acc); }

.rh-facet.is-on {
	background: var(--acc);
	border-color: var(--acc);
	color: var(--on-acc);
}

.rh-facets__sort {
	margin-left: auto;
	color: var(--ink3);
	text-transform: none;
	letter-spacing: .04em;
}

.rh-facets__sort:hover { color: var(--acc); }

/* -- Barre de recherche de la page de résultats ---------------------------- */

.rh-searchbar {
	--cut: 14px;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 10px 10px 16px;
	border: 1px solid var(--line);
	background: var(--panel);
	clip-path: polygon(0 0, calc(100% - var(--cut)) 0,
		100% var(--cut), 100% 100%, 0 100%);
}

.rh-searchbar__glyph {
	flex: none;
	font-family: var(--font-mono);
	color: var(--ink3);
}

.rh-searchbar__input {
	flex: 1;
	min-width: 0;
	padding: 6px 0;
	border: 0;
	background: none;
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 17px;
}

.rh-searchbar__input:focus-visible { outline: none; }

.rh-searchbar:focus-within {
	border-color: var(--acc);
	box-shadow: inset 0 0 0 2px var(--acc);
}

.rh-btn {
	flex: none;
	padding: 13px 20px;
	border: 0;
	background: var(--acc);
	color: var(--on-acc);
	font-family: var(--font-mono);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	cursor: pointer;
}

.rh-results-count {
	margin: 0;
	font-size: 17px;
	color: var(--ink2);
}

.rh-results-count em {
	font-style: normal;
	font-weight: 600;
	color: var(--ink);
}

/* -- Résultats + facettes -------------------------------------------------- */

.rh-results {
	display: grid;
	grid-template-columns: var(--facets) minmax(0, 1fr);
	gap: var(--col-gap);
}

.rh-results__list {
	display: flex;
	flex-direction: column;
	gap: var(--s6);
}

.rh-facetbar {
	display: flex;
	flex-direction: column;
	gap: var(--s6);
}

.rh-facetbar__group h2 {
	margin: 0 0 var(--s2);
	padding-bottom: 9px;
	border-bottom: 1px solid var(--line);
	font-family: var(--font-mono);
	font-size: 11px;
	font-weight: 400;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--ink3);
}

.rh-facetbar__group ul {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--ink2);
}

.rh-facetbar__group li {
	display: flex;
	justify-content: space-between;
	gap: var(--s2);
}

.rh-facetbar__group li span { color: var(--ink3); }

.rh-facetbar__group a:hover { color: var(--acc); }

.rh-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.rh-chip {
	padding: 6px 10px;
	border: 1px solid var(--line);
	color: var(--ink2);
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: .06em;
}

.rh-chip:hover { border-color: var(--acc); color: var(--acc); }

/* -- 08 — Terme trouvé, surligné ------------------------------------------- */

.rh-mark {
	padding: 1px 5px;
	background: var(--acc);
	color: var(--on-acc);
}

/* -- Page auteur ----------------------------------------------------------- */

.rh-author {
	display: flex;
	flex-direction: column;
	gap: var(--s6);
	min-width: 0;
}

.rh-author .rh-data__grid { grid-template-columns: repeat(2, 1fr); }

.rh-portrait {
	margin: 0;
	background: var(--panel);
	border: 1px solid var(--line);
	overflow: hidden;
}

.rh-portrait img {
	display: block;
	width: 100%;
	height: auto;
}

.rh-empty {
	margin: 0;
	color: var(--ink2);
}

/* -- Prochaines courses ---------------------------------------------------- */

.rh-races__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--grid-gap);
}

.rh-race {
	background: var(--panel);
	border: 1px solid var(--line);
}

.rh-race__head {
	display: flex;
	justify-content: space-between;
	gap: var(--s2);
	padding: 8px 14px;
	background: var(--inv-bg);
	color: var(--inv-ink);
	font-family: var(--font-mono);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .12em;
}

.rh-race__countdown { color: var(--acc); }

.rh-race__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 16px 14px;
}

.rh-race__name {
	margin: 0;
	font-family: var(--font-title);
	font-weight: 800;
	font-size: 19px;
	line-height: 1.15;
}

.rh-race__where {
	margin: 0;
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--ink2);
}

.rh-race .rh-bar { --seg-w: 18px; }

.rh-latest,
.rh-races {
	display: block;
}

/* Bandeau de chiffres posé au milieu d'une page de texte : il déborde la
   colonne de lecture et reprend toute la largeur. */
.rh-hero--band .rh-hero__inner {
	grid-template-columns: minmax(0, 1fr) 520px;
	padding-block: 32px;
}

.rh-hero--band .rh-hero__stats {
	grid-template-columns: repeat(4, 1fr);
}

/* ==========================================================================
   06 — Pages fixes : contact, infolettre
   ========================================================================== */

/* -- Mise en page de la page Contact --------------------------------------- */

.rh-contact {
	display: grid;
	grid-template-columns: minmax(0, 1fr) var(--rail);
	gap: var(--col-gap);
	align-items: start;
}

.rh-contact__main {
	display: flex;
	flex-direction: column;
	gap: var(--s5);
	max-width: 74ch;
}

/* -- 10 — Champs ----------------------------------------------------------
   Champs plats : pas d'angle arrondi, un filet bas de deux pixels, fond
   --panel. L'étiquette est en mono majuscule au-dessus du champ, jamais en
   texte indicatif à l'intérieur.
   ------------------------------------------------------------------------- */

.rh-form {
	display: flex;
	flex-direction: column;
	gap: var(--s4);
	margin: 0;
}

.rh-field {
	margin: 0;
	border: 0;
	padding: 0;
	min-width: 0;
}

.rh-field label,
.rh-field legend {
	display: block;
	margin-bottom: 7px;
	padding: 0;
	font-family: var(--font-mono);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--ink3);
}

.rh-field input:not([type="radio"]):not([type="checkbox"]),
.rh-field textarea {
	width: 100%;
	padding: 13px 14px;
	border: 1px solid var(--line);
	border-bottom-width: 2px;
	background: var(--panel);
	color: var(--ink);
	font: 400 16px/1.5 var(--font-body);
}

.rh-field textarea { resize: vertical; }

.rh-field input:not([type="radio"]):not([type="checkbox"]):focus-visible,
.rh-field textarea:focus-visible {
	outline: 2px solid var(--acc);
	outline-offset: 2px;
	border-bottom-color: var(--acc);
}

/* -- État d'erreur --------------------------------------------------------- */

.rh-field.is-error label { color: var(--err); }

.rh-field.is-error input:not([type="radio"]),
.rh-field.is-error textarea {
	border-color: var(--line);
	border-bottom-color: var(--err);
}

.rh-field__error {
	display: block;
	margin-top: 7px;
	font-family: var(--font-mono);
	font-size: 11px;
	line-height: 1.5;
	color: var(--err);
}

.rh-alert {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 16px 20px;
	background: var(--errsoft);
	border: 1px solid var(--err);
	color: var(--ink);
}

.rh-alert p { margin: 0; font-size: 15px; line-height: 1.55; }

.rh-alert__mark {
	flex: none;
	font-family: var(--font-mono);
	font-size: 16px;
	font-weight: 700;
	color: var(--err);
}

/* -- Motifs en boutons radio ----------------------------------------------- */

.rh-radios {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.rh-radio {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 14px;
	border: 1px solid var(--line);
	background: var(--panel);
	cursor: pointer;
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--ink2);
}

.rh-radio input { accent-color: var(--acc); }

.rh-radio:has(input:checked) {
	border-color: var(--acc);
	background: var(--acc);
	color: var(--on-acc);
}

.rh-radio:has(input:focus-visible) {
	outline: 2px solid var(--acc);
	outline-offset: 2px;
}

/* -- Envoi ----------------------------------------------------------------- */

.rh-form__send {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--s3);
	margin: 0;
}

.rh-form__note {
	font-family: var(--font-mono);
	font-size: 11px;
	line-height: 1.5;
	color: var(--ink3);
}

.rh-btn:hover { background: var(--ink); color: var(--paper); }

.rh-link {
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--acc);
}

.rh-link:hover { color: var(--ink); }

/* -- Champ leurre ---------------------------------------------------------- */

.rh-honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* -- Confirmation d'envoi -------------------------------------------------- */

.rh-confirm {
	padding: 28px 32px;
	background: var(--sigsoft);
	border: 1px solid var(--sig);
}

.rh-confirm p { margin: 0; }

.rh-confirm__label {
	margin-bottom: 10px;
	font-family: var(--font-mono);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--sig);
}

.rh-confirm__text {
	margin-bottom: 16px;
	font-size: 17px;
	line-height: 1.6;
}

/* -- Panneaux de la colonne Contact ---------------------------------------- */

.rh-panel__figure {
	margin: 0;
	font-family: var(--font-mono);
	font-weight: 700;
	font-size: 26px;
	color: var(--ink);
}

.rh-panel__body p { margin: 0; }

.rh-faq {
	gap: var(--s3);
	font-size: 14px;
	line-height: 1.55;
}

.rh-faq__q {
	margin: 0 0 4px;
	font-weight: 600;
	color: var(--ink);
}

.rh-faq__a { margin: 0; color: var(--ink2); }

/* ==========================================================================
   11 — Infolettre
   ========================================================================== */

.rh-news {
	display: flex;
	flex-direction: column;
	gap: var(--s4);
	padding: 32px 36px;
	background: var(--inv-bg);
	color: var(--inv-ink);
}

.rh-news--inline {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: var(--s6);
	align-items: center;
}

.rh-news__title {
	margin: 0;
	font-family: var(--font-title);
	font-weight: 800;
	font-size: 28px;
	line-height: 1.1;
	letter-spacing: -.02em;
}

.rh-news__text {
	margin: 8px 0 0;
	font-size: 16px;
	line-height: 1.6;
	opacity: .82;
}

.rh-news__form {
	display: flex;
	flex-direction: column;
	gap: var(--s3);
	margin: 0;
}

.rh-field--inv label { color: var(--inv-ink); opacity: .7; }

.rh-field--inv input:not([type="radio"]) {
	background: transparent;
	border-color: var(--inv-line);
	color: var(--inv-ink);
}

.rh-field--inv.is-error label { color: var(--err); }

.rh-field--inv.is-error input { border-bottom-color: var(--err); }

.rh-news__send { margin: 0; }

.rh-news__consent {
	margin: 0;
	font-family: var(--font-mono);
	font-size: 11px;
	line-height: 1.5;
	opacity: .65;
}

.rh-news-wrap { padding-block: 0 var(--s8); }

.rh-news__done {
	margin: 0;
	font-family: var(--font-mono);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--acc);
}

/* -- Page dédiée ----------------------------------------------------------- */

.rh-dark {
	background: var(--inv-bg);
	color: var(--inv-ink);
}

.rh-news-head {
	display: flex;
	flex-direction: column;
	gap: var(--s3);
	max-width: 62ch;
}

.rh-news-head__kicker {
	margin: 0;
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--acc);
}

.rh-news-head__title {
	margin: 0;
	font-family: var(--font-title);
	font-weight: 800;
	font-size: 82px;
	line-height: .94;
	letter-spacing: -.04em;
}

.rh-news-head__text {
	font-size: 19px;
	line-height: 1.6;
	opacity: .82;
}

.rh-dark .rh-news {
	border: 1px solid var(--inv-line);
}

.rh-promises {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--s6);
	margin: 0;
	padding: 0;
	list-style: none;
}

.rh-promise {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding-top: var(--s3);
	border-top: 1px solid var(--inv-line);
}

.rh-promise__num {
	font-family: var(--font-mono);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .14em;
	color: var(--acc);
}

.rh-promise__title {
	margin: 0;
	font-family: var(--font-title);
	font-weight: 800;
	font-size: 21px;
	line-height: 1.15;
	letter-spacing: -.02em;
}

.rh-promise__text {
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
	opacity: .82;
}

.rh-issues__title {
	margin: 0 0 var(--s4);
	font-family: var(--font-title);
	font-weight: 800;
	font-size: 30px;
	letter-spacing: -.025em;
}

.rh-issues__list {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--grid-gap);
}

.rh-issue {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding-top: var(--s3);
	border-top: 1px solid var(--inv-line);
}

.rh-issue__date {
	margin: 0;
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--acc);
}

.rh-issue__title {
	margin: 0;
	font-family: var(--font-title);
	font-weight: 800;
	font-size: 19px;
	line-height: 1.2;
	letter-spacing: -.02em;
}

.rh-issue__title a:hover { color: var(--acc); }

/* ==========================================================================
   Rupture mobile — § 05, 860 px
   ========================================================================== */

@media (max-width:860px) {

	.rh-header__inner {
		gap: 12px;
		padding-block: 12px;
	}

	.rh-burger,
	.rh-search-btn { display: inline-flex; }

	/* Le tiroir s'ouvre par retour à la ligne : l'ordre garde les trois
	   objets de la maquette sur la première rangée, quoi qu'il arrive. */
	.rh-burger { order: 1; }
	.rh-header__brand { order: 2; margin: 0 auto; }
	.rh-search-btn { order: 3; }
	.rh-nav { order: 4; }
	.rh-header .rh-search { order: 5; }
	.rh-header .rh-toggle { order: 6; }

	.rh-header__brand .rh-logo { height: 32px; }

	.rh-logo { height: 30px; }

	.rh-brand__words { display: none; }

	/* La navigation devient un tiroir sous le bandeau. Le champ de recherche
	   et la bascule l'y rejoignent : la barre mobile ne porte que trois
	   objets, comme dans la maquette. */
	.rh-nav,
	.rh-header .rh-search,
	.rh-header .rh-toggle { display: none; }

	.rh-header.is-open .rh-header__inner {
		flex-wrap: wrap;
		gap: var(--s2);
		padding-bottom: var(--s4);
	}

	.rh-header.is-open .rh-nav,
	.rh-header.is-open .rh-search,
	.rh-header.is-open .rh-toggle {
		display: flex;
		width: 100%;
	}

	.rh-nav__list {
		flex-direction: column;
		gap: 0;
		width: 100%;
		font-size: 13px;
	}

	.rh-nav__list a {
		display: flex;
		align-items: center;
		min-height: 44px;
		padding: 0 var(--s2);
	}

	.rh-search {
		margin-left: 0;
		min-height: 44px;
	}

	.rh-toggle {
		justify-content: center;
		min-height: 44px;
	}

	.rh-footer__inner,
	.rh-footer--full .rh-footer__inner {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
		padding-block: 20px;
	}

	.rh-footer__brand { font-size: 20px; }

	.rh-footer__nav { margin-left: 0; }

	.rh-footer__list {
		flex-wrap: wrap;
		gap: 12px;
	}

	.rh-footer--full .rh-footer__inner {
		gap: 12px;
		padding-block: 24px;
	}

	.rh-footer--full .rh-footer__brand { font-size: 22px; }

	/* -- Cartes ---------------------------------------------------------- */

	.rh-grid { grid-template-columns: 1fr; }

	.rh-card--lg {
		display: flex;
		grid-column: auto;
	}

	.rh-card--lg .rh-card__media {
		aspect-ratio: 16 / 9;
		min-height: 0;
	}

	.rh-card--lg .rh-card__body {
		gap: 10px;
		padding: 16px;
	}

	.rh-card__title { font-size: 19px; }

	.rh-card--lg .rh-card__title {
		font-size: 24px;
		line-height: 1.1;
	}

	.rh-card--sm {
		grid-template-columns: 1fr;
		gap: 9px;
	}

	.rh-card--sm .rh-card__title { font-size: 21px; }

	.rh-card--sm .rh-card__meta {
		flex-direction: row;
		align-items: baseline;
		justify-content: flex-start;
		gap: 10px;
		text-align: left;
	}

	.rh-section__title { font-size: 22px; }

	/* -- Article --------------------------------------------------------- */

	.rh-layout {
		grid-template-columns: 1fr;
		gap: var(--s6);
		padding-block: var(--s4) var(--s7);
	}

	.rh-article__title { font-size: 38px; }

	.rh-article--solo .rh-article__title { font-size: 38px; }

	.rh-article__chapo { font-size: 17px; }

	.rh-prose { font-size: 17px; }

	.rh-prose h2 { font-size: 24px; }

	.rh-prose h3 { font-size: 19px; }

	.rh-data__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 14px;
	}

	.rh-data__cell dd.is-big { font-size: 21px; }

	.rh-data__foot .rh-difficulty {
		flex-wrap: wrap;
		gap: 10px;
	}

	.rh-data__foot .rh-bar { --seg-w: 28px; }

	/* -- Archives, recherche, auteur ------------------------------------- */

	.rh-hero__inner {
		grid-template-columns: 1fr;
		gap: var(--s5);
		padding-block: var(--s6) var(--s5);
	}

	.rh-hero__title { font-size: 46px; }

	.rh-hero__text { font-size: 16px; }

	.rh-hero__stat dd.is-big { font-size: 21px; }

	.rh-facets {
		gap: 8px;
		padding: var(--s2) var(--gutter);
	}

	.rh-facets__sort {
		margin-left: 0;
		width: 100%;
	}

	.rh-results {
		grid-template-columns: 1fr;
		gap: var(--s6);
	}

	.rh-searchbar { flex-wrap: wrap; }

	.rh-searchbar__input { flex-basis: 60%; }

	.rh-author .rh-data__grid { grid-template-columns: 1fr; }

	.rh-races__grid { grid-template-columns: 1fr; }

	.rh-hero--band .rh-hero__inner { grid-template-columns: 1fr; }

	.rh-hero--band .rh-hero__stats { grid-template-columns: repeat(2, 1fr); }

	/* -- Pages fixes ----------------------------------------------------- */

	.rh-contact {
		grid-template-columns: 1fr;
		gap: var(--s6);
	}

	.rh-news--inline { grid-template-columns: 1fr; gap: var(--s4); }

	.rh-news { padding: var(--s5) var(--s4); }

	.rh-news__title { font-size: 22px; }

	.rh-news-head__title { font-size: 44px; }

	.rh-news-head__text { font-size: 17px; }

	.rh-promises,
	.rh-issues__list { grid-template-columns: 1fr; gap: var(--s5); }

	.rh-issues__title { font-size: 24px; }

	.rh-confirm { padding: var(--s5) var(--s4); }
}
