/* ==========================================================================
   Carré — feuille de styles unique de smeagol.info.

   IDENTITÉ
   Le nom vient de Sméagol : on lui emprunte deux couleurs, et rien d'autre.
     · l'or de l'Anneau           → étiquettes de rubrique, marque, filets
     · le vert d'eau des cavernes → tout ce qui est cliquable
   L'or a un contraste médiocre sur fond clair : il ne porte donc jamais de
   texte à lire, seulement des aplats courts. Le teal prend les liens.

   TYPOGRAPHIE
   Aucune police n'est téléchargée : trois piles système suffisent.
     --font-ui    titres et interface (sans-serif)
     --font-body  corps des articles (serif, plus confortable en lecture longue)
     --font-mono  métadonnées, étiquettes, chiffres

   Angles droits partout.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Jetons
   -------------------------------------------------------------------------- */

:root {
	--font-ui: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
		"Helvetica Neue", Arial, sans-serif;
	--font-body: Charter, "Bitstream Charter", "Iowan Old Style",
		"Source Serif Pro", Georgia, "Times New Roman", serif;
	--font-mono: ui-monospace, SFMono-Regular, "SF Mono", "JetBrains Mono",
		Menlo, Consolas, monospace;

	/* Clair — pierre légèrement chaude. */
	--bg: #eceae4;
	--surface: #ffffff;
	--surface-2: #f4f2ec;
	--ink: #191c1a;
	--ink-soft: #3c4340;
	--muted: #5f6763;
	--rule: #d2cfc6;
	--rule-strong: #b0aca1;

	--accent: #0f6b5a;
	--accent-ink: #ffffff;
	--accent-soft: #dcefea;

	--gold: #a8760a;
	--gold-ink: #ffffff;

	--signal: #b13a24;

	--wrap: 1180px;

	/* Colonne de lecture. En serif 18 px, 780 px donnent ~78 caractères par
	   ligne : la limite haute du confortable. Plus large, l'œil peine à
	   retrouver le début de la ligne suivante. */
	--wrap-narrow: 780px;

	/* Largeur de débordement pour ce qui n'est PAS du texte : code, captures,
	   tableaux. Sur un blog tech, les étouffer dans la colonne de lecture n'a
	   aucun sens — une ligne de terminal n'a pas à tenir en 78 caractères. */
	--wrap-wide: 1060px;

	color-scheme: light;
}

/* Sombre — charbon très légèrement vert. Volontairement pas noir : un fond
   trop sombre fatigue autant qu'un fond trop clair et écrase les nuances. */
@media (prefers-color-scheme: dark) {
	:root[data-theme="auto"] {
		--bg: #1c211f;
		--surface: #242a28;
		--surface-2: #2c3331;
		--ink: #e8ece9;
		--ink-soft: #c5ccc8;
		--muted: #949d98;
		--rule: #39413e;
		--rule-strong: #4e5651;

		--accent: #4fc0a4;
		--accent-ink: #0d1a17;
		--accent-soft: #23332f;

		--gold: #e0ae4a;
		--gold-ink: #1a1509;

		--signal: #ff8a6b;

		color-scheme: dark;
	}
}

:root[data-theme="sombre"] {
	--bg: #1c211f;
	--surface: #242a28;
	--surface-2: #2c3331;
	--ink: #e8ece9;
	--ink-soft: #c5ccc8;
	--muted: #949d98;
	--rule: #39413e;
	--rule-strong: #4e5651;

	--accent: #4fc0a4;
	--accent-ink: #0d1a17;
	--accent-soft: #23332f;

	--gold: #e0ae4a;
	--gold-ink: #1a1509;

	--signal: #ff8a6b;

	color-scheme: dark;
}

/* --------------------------------------------------------------------------
   2. Bases
   -------------------------------------------------------------------------- */

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

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

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

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-ui);
	font-size: 16px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

img,
svg,
video,
iframe {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--accent);
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}

a:hover {
	text-decoration-thickness: 2px;
}

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

h1,
h2,
h3,
h4 {
	font-family: var(--font-ui);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.2;
	margin: 0;
	text-wrap: balance;
}

button {
	font: inherit;
	cursor: pointer;
}

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

/* Piège à robots : hors écran, jamais lu, jamais tabulable. */
.hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.skip-link {
	position: absolute;
	left: 8px;
	top: -60px;
	z-index: 100;
	background: var(--accent);
	color: var(--accent-ink);
	padding: 10px 16px;
	font-weight: 600;
	text-decoration: none;
	transition: top 0.15s ease;
}

.skip-link:focus {
	top: 8px;
}

/* --------------------------------------------------------------------------
   3. Gabarit
   -------------------------------------------------------------------------- */

.wrap {
	width: 100%;
	max-width: var(--wrap);
	margin-inline: auto;
	padding-inline: 20px;
}

.wrap--narrow {
	max-width: var(--wrap-narrow);
}

.home {
	padding-bottom: 64px;
}

.section {
	padding-block: 40px 8px;
}

.section--hero {
	padding-top: 32px;
}

.section--tight {
	padding-top: 24px;
}

.section__title {
	font-family: var(--font-mono);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: 20px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--rule);
}

/* --------------------------------------------------------------------------
   4. En-tête
   -------------------------------------------------------------------------- */

.site-header {
	background: var(--surface);
	border-bottom: 1px solid var(--rule);
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 28px;
	min-height: 64px;
}

.wordmark {
	margin: 0;
	font-weight: 800;
	font-size: 20px;
	letter-spacing: -0.035em;
}

.wordmark a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--ink);
	text-decoration: none;
}

/* Le sigle est la seule chose en or de l'en-tête, avec le suffixe du domaine. */
.wordmark__mark {
	color: var(--gold);
	flex: none;
}

.wordmark a:hover .wordmark__mark {
	color: var(--accent);
}

.wordmark__tld {
	color: var(--gold);
}

/* Sous 420 px, le sigle suffit : le nom complet ferait passer la barre sur
   deux lignes. */
@media (max-width: 420px) {
	.wordmark__text {
		display: none;
	}
}

.site-header__logo img {
	max-height: 40px;
	width: auto;
}

.nav {
	display: flex;
	align-items: center;
	gap: 24px;
	margin-left: auto;
}

.nav__list {
	display: flex;
	align-items: center;
	gap: 22px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.nav__list a {
	color: var(--ink-soft);
	text-decoration: none;
	padding-block: 6px;
	border-bottom: 2px solid transparent;
}

.nav__list a:hover,
.nav__list .current-menu-item > a,
.nav__list .current-cat > a {
	color: var(--ink);
	border-bottom-color: var(--gold);
}

.nav__tools {
	display: flex;
	align-items: center;
	gap: 10px;
}

.icon-link {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border: 1px solid var(--rule);
	background: transparent;
	color: var(--muted);
	padding: 0;
	text-decoration: none;
}

.icon-link:hover {
	color: var(--ink);
	border-color: var(--rule-strong);
}

.icon-link .icon-sun {
	display: none;
}

:root[data-theme="sombre"] .icon-link .icon-sun {
	display: block;
}

:root[data-theme="sombre"] .icon-link .icon-moon {
	display: none;
}

@media (prefers-color-scheme: dark) {
	:root[data-theme="auto"] .icon-link .icon-sun {
		display: block;
	}

	:root[data-theme="auto"] .icon-link .icon-moon {
		display: none;
	}
}

.burger {
	display: none;
	margin-left: auto;
	width: 36px;
	height: 32px;
	border: 1px solid var(--rule);
	background: transparent;
	padding: 0;
	position: relative;
}

.burger__bars,
.burger__bars::before,
.burger__bars::after {
	position: absolute;
	left: 50%;
	width: 16px;
	height: 2px;
	background: var(--ink);
	transform: translateX(-50%);
}

.burger__bars {
	top: 50%;
	margin-top: -1px;
}

.burger__bars::before {
	content: "";
	top: -5px;
}

.burger__bars::after {
	content: "";
	top: 5px;
}

@media (max-width: 900px) {
	.burger {
		display: block;
	}

	.nav {
		display: none;
		order: 3;
		width: 100%;
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
		margin: 0 0 18px;
	}

	.site-header__inner {
		flex-wrap: wrap;
		gap: 16px;
	}

	.nav.is-open {
		display: flex;
	}

	.nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.nav__list li {
		border-top: 1px solid var(--rule);
	}

	.nav__list a {
		display: block;
		padding: 12px 0;
		border-bottom: 0;
	}
}

/* --------------------------------------------------------------------------
   5. Recherche
   -------------------------------------------------------------------------- */

.search {
	position: relative;
	display: flex;
	align-items: stretch;
	border: 1px solid var(--rule);
	background: var(--bg);
}

.search__input {
	border: 0;
	background: transparent;
	color: var(--ink);
	font: inherit;
	font-size: 13px;
	padding: 6px 10px;
	width: 150px;
	min-width: 0;
}

.search__input::placeholder {
	color: var(--muted);
}

.search__input:focus {
	outline: none;
}

.search:focus-within {
	border-color: var(--accent);
}

.search__submit {
	display: grid;
	place-items: center;
	width: 32px;
	border: 0;
	background: transparent;
	color: var(--muted);
}

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

.search__results {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	z-index: 40;
	width: min(420px, 90vw);
	max-height: 60vh;
	overflow-y: auto;
	background: var(--surface);
	border: 1px solid var(--rule-strong);
	box-shadow: 0 12px 32px rgb(0 0 0 / 0.16);
}

.search__result {
	display: block;
	padding: 12px 14px;
	border-bottom: 1px solid var(--rule);
	color: var(--ink);
	text-decoration: none;
}

.search__result:last-child {
	border-bottom: 0;
}

.search__result:hover,
.search__result:focus {
	background: var(--surface-2);
}

.search__result strong {
	display: block;
	font-size: 14px;
	line-height: 1.35;
	margin-bottom: 3px;
}

.search__result span {
	font-family: var(--font-mono);
	font-size: 11px;
	color: var(--muted);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.search__empty {
	padding: 14px;
	font-size: 14px;
	color: var(--muted);
}

.search--page {
	max-width: 520px;
	margin-bottom: 20px;
}

.search--page .search__input {
	width: 100%;
	font-size: 16px;
	padding: 12px 14px;
}

.search--page .search__submit {
	width: 46px;
}

.search-page__count {
	font-family: var(--font-mono);
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--muted);
	margin: 0 0 8px;
}

/* --------------------------------------------------------------------------
   6. Étiquette de rubrique et métadonnées
   -------------------------------------------------------------------------- */

/* L'or, ici et presque nulle part ailleurs. */
.stamp {
	display: inline-block;
	font-family: var(--font-mono);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	background: var(--gold);
	color: var(--gold-ink);
	padding: 3px 9px;
	text-decoration: none;
}

a.stamp:hover {
	background: var(--ink);
	color: var(--surface);
}

.meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: 0.03em;
	color: var(--muted);
}

.meta__sep {
	color: var(--rule-strong);
}

.meta a {
	color: var(--muted);
	text-decoration: none;
}

.meta a:hover {
	color: var(--accent);
	text-decoration: underline;
}

/* Le compteur reste caché tant que le JS ne l'a pas rempli : afficher
   « 0 commentaire » sur une page figée serait souvent faux. */
.meta__comments {
	display: none;
}

.meta__comments.is-loaded {
	display: inline;
}

.meta__sep:has(+ .meta__comments:not(.is-loaded)) {
	display: none;
}

/* --------------------------------------------------------------------------
   7. La « une »
   -------------------------------------------------------------------------- */

.hero {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
	gap: 32px;
	align-items: center;
	background: var(--surface);
	border: 1px solid var(--rule);
	border-top: 3px solid var(--gold);
	padding: 22px;
}

.hero__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	background: var(--surface-2);
	overflow: hidden;
}

.hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.hero:hover .hero__media img {
	transform: scale(1.02);
}

.hero__media-fallback,
.gcard__media-fallback,
.rcard__media-fallback {
	position: absolute;
	inset: 0;
	background: repeating-linear-gradient(
		135deg,
		var(--surface-2),
		var(--surface-2) 10px,
		var(--bg) 10px,
		var(--bg) 20px
	);
}

.hero__stamp,
.gcard__stamp {
	position: absolute;
	left: 0;
	top: 0;
}

.hero__title {
	font-size: clamp(24px, 3.2vw, 36px);
	margin-bottom: 12px;
}

.hero__title a {
	color: var(--ink);
	text-decoration: none;
}

.hero__title a:hover {
	color: var(--accent);
}

.hero__excerpt {
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.6;
	color: var(--ink-soft);
	margin: 0 0 16px;
}

@media (max-width: 860px) {
	.hero {
		grid-template-columns: minmax(0, 1fr);
		gap: 18px;
	}
}

/* --------------------------------------------------------------------------
   8. Grille de cartes
   -------------------------------------------------------------------------- */

.grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

@media (max-width: 940px) {
	.grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

.gcard {
	display: flex;
	flex-direction: column;
	background: var(--surface);
	border: 1px solid var(--rule);
}

.gcard:hover {
	border-color: var(--rule-strong);
}

.gcard__media {
	position: relative;
	display: block;
	aspect-ratio: 8 / 5;
	background: var(--surface-2);
	overflow: hidden;
}

.gcard__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.gcard:hover .gcard__media img {
	transform: scale(1.04);
}

.gcard__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 16px 18px 18px;
}

.gcard__title {
	font-size: 18px;
	line-height: 1.3;
	margin-bottom: 8px;
}

.gcard__title a {
	color: var(--ink);
	text-decoration: none;
}

.gcard__title a:hover {
	color: var(--accent);
}

.gcard__excerpt {
	margin: 0 0 14px;
	font-size: 14.5px;
	line-height: 1.55;
	color: var(--ink-soft);
}

/* La méta se colle en bas quelle que soit la longueur du chapô : les cartes
   d'une même rangée restent alignées. */
.gcard .meta {
	margin-top: auto;
}

/* --------------------------------------------------------------------------
   9. Liste compacte
   -------------------------------------------------------------------------- */

.recent {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 32px;
	border-top: 1px solid var(--rule);
}

@media (max-width: 760px) {
	.recent {
		grid-template-columns: minmax(0, 1fr);
	}
}

.rcard {
	display: grid;
	grid-template-columns: 108px minmax(0, 1fr);
	gap: 16px;
	align-items: center;
	padding: 16px 0;
	border-bottom: 1px solid var(--rule);
}

.rcard__media {
	display: block;
	position: relative;
	aspect-ratio: 4 / 3;
	background: var(--surface-2);
	overflow: hidden;
}

.rcard__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.rcard__cat {
	display: inline-block;
	font-family: var(--font-mono);
	font-size: 10.5px;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--gold);
	text-decoration: none;
	margin-bottom: 4px;
}

.rcard__cat:hover {
	text-decoration: underline;
}

.rcard__title {
	font-size: 15.5px;
	line-height: 1.35;
	margin-bottom: 6px;
}

.rcard__title a {
	color: var(--ink);
	text-decoration: none;
}

.rcard__title a:hover {
	color: var(--accent);
}

/* --------------------------------------------------------------------------
   10. Bande newsletter
   -------------------------------------------------------------------------- */

.band {
	margin-top: 48px;
	background: var(--surface);
	border-bottom: 1px solid var(--rule);
	border-top: 3px solid var(--gold);
}

.band__inner {
	padding-block: 28px;
}

.nl--band {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
	gap: 12px 40px;
	align-items: center;
}

.nl--band .nl__title {
	grid-column: 1;
	font-size: 20px;
}

.nl--band .nl__intro {
	grid-column: 1;
	grid-row: 2;
	margin: 0;
}

.nl--band .nl__row {
	grid-column: 2;
	grid-row: 1 / span 2;
}

.nl--band .nl__status {
	grid-column: 1 / -1;
}

@media (max-width: 800px) {
	.nl--band {
		grid-template-columns: minmax(0, 1fr);
	}

	.nl--band .nl__row {
		grid-column: 1;
		grid-row: auto;
		margin-top: 6px;
	}
}

/* --------------------------------------------------------------------------
   11. Formulaire newsletter (commun)
   -------------------------------------------------------------------------- */

.nl__title {
	font-size: 16px;
	margin: 0 0 6px;
}

.nl__intro {
	margin: 0 0 14px;
	font-size: 13.5px;
	line-height: 1.5;
	color: var(--muted);
}

.nl__row {
	display: flex;
	border: 1px solid var(--rule-strong);
	background: var(--bg);
}

.nl__row:focus-within {
	border-color: var(--accent);
}

.nl__input {
	flex: 1;
	min-width: 0;
	border: 0;
	background: transparent;
	color: var(--ink);
	font: inherit;
	font-size: 14px;
	padding: 11px 12px;
}

.nl__input:focus {
	outline: none;
}

.nl__submit {
	border: 0;
	border-left: 1px solid var(--rule-strong);
	background: var(--accent);
	color: var(--accent-ink);
	font-size: 13px;
	font-weight: 600;
	padding: 11px 16px;
	white-space: nowrap;
}

.nl__submit:hover {
	background: var(--ink);
	color: var(--surface);
}

.nl__submit[disabled] {
	opacity: 0.6;
	cursor: progress;
}

.nl__status {
	margin: 10px 0 0;
	font-size: 13px;
	line-height: 1.45;
}

.nl__status:empty {
	margin: 0;
}

.nl__status.is-ok {
	color: var(--accent);
}

.nl__status.is-error {
	color: var(--signal);
}

.nl--inline .nl__row {
	max-width: 460px;
}

.single__nl {
	margin: 40px 0;
	background: var(--surface);
	border: 1px solid var(--rule);
	border-left: 3px solid var(--gold);
	padding: 20px;
}

@media (max-width: 460px) {
	.nl__row {
		flex-direction: column;
	}

	.nl__submit {
		border-left: 0;
		border-top: 1px solid var(--rule-strong);
	}
}

/* --------------------------------------------------------------------------
   12. Pagination
   -------------------------------------------------------------------------- */

.navigation.pagination {
	margin-top: 36px;
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
	justify-content: center;
	font-family: var(--font-mono);
	font-size: 13px;
}

.nav-links .page-numbers {
	display: inline-block;
	min-width: 38px;
	padding: 9px 12px;
	text-align: center;
	border: 1px solid var(--rule);
	background: var(--surface);
	color: var(--ink-soft);
	text-decoration: none;
}

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

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

.nav-links .dots {
	border: 0;
	background: transparent;
	min-width: 0;
	padding-inline: 2px;
}

/* --------------------------------------------------------------------------
   13. Article
   -------------------------------------------------------------------------- */

.single__header {
	padding-top: 44px;
	padding-bottom: 20px;
}

.single__title {
	font-size: clamp(28px, 4.6vw, 42px);
	margin: 14px 0 0;
}

.single__standfirst {
	font-family: var(--font-body);
	font-size: 19px;
	line-height: 1.5;
	color: var(--ink-soft);
	margin: 14px 0 0;
}

.single__header .meta {
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px solid var(--rule);
}

/* L'image de couverture s'aligne sur la largeur de débordement, pas sur celle
   de l'accueil : sinon elle serait plus large que les captures de l'article
   juste en dessous, et l'article paraîtrait bancal. */
.single__cover {
	max-width: var(--wrap-wide);
	margin: 0 auto 34px;
}

.single__cover img {
	width: 100%;
	border: 1px solid var(--rule);
}

.single__cover figcaption {
	margin-top: 8px;
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--muted);
}

.archive-header {
	padding-top: 36px;
	padding-bottom: 20px;
	border-bottom: 2px solid var(--gold);
}

.archive-header__kicker {
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--muted);
	margin: 0 0 8px;
}

.archive-header__title {
	font-size: clamp(24px, 4vw, 34px);
	margin: 0;
}

.archive-header__desc {
	margin-top: 10px;
	color: var(--ink-soft);
	font-size: 15px;
}

.archive-header__count {
	margin: 10px 0 0;
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--muted);
}

/* Corps de l'article : la seule zone en serif. */
.prose {
	font-family: var(--font-body);
	font-size: 18px;
	line-height: 1.72;
	color: var(--ink);
}

.prose > * + * {
	margin-top: 1.15em;
}

.prose h2 {
	font-family: var(--font-ui);
	font-size: 25px;
	margin-top: 1.9em;
	padding-top: 0.5em;
	border-top: 1px solid var(--rule);
}

.prose h3 {
	font-family: var(--font-ui);
	font-size: 20px;
	margin-top: 1.6em;
}

/* --- Débordement du contenu large ---------------------------------------
   Ces blocs sortent de la colonne de lecture et se recentrent sur la largeur
   large. La marge négative symétrique fait le travail : l'élément devient plus
   large que son parent tout en restant centré, sans conteneur supplémentaire
   ni position absolue.

   Le `min()` garantit qu'on ne dépasse jamais l'écran sur mobile, où le
   débordement se réduit naturellement à zéro. */
.prose > figure,
.prose > pre,
.prose > table,
.prose > .wp-block-image,
.prose > .wp-block-table,
.prose > .wp-block-gallery,
.prose > .wp-block-embed {
	--bleed: min(var(--wrap-wide), calc(100vw - 40px));

	width: var(--bleed);
	max-width: var(--bleed);
	margin-inline: calc((100% - var(--bleed)) / 2);
}

.prose img,
.prose figure {
	margin-block: 1.8em;
}

.prose img {
	border: 1px solid var(--rule);
}

.prose figcaption {
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--muted);
	margin-top: 8px;
}

.prose blockquote {
	margin-inline: 0;
	padding: 4px 0 4px 20px;
	border-left: 3px solid var(--gold);
	color: var(--ink-soft);
	font-style: italic;
}

.prose ul,
.prose ol {
	padding-left: 1.3em;
}

.prose li + li {
	margin-top: 0.4em;
}

.prose code {
	font-family: var(--font-mono);
	font-size: 0.87em;
	background: var(--surface-2);
	border: 1px solid var(--rule);
	padding: 1px 5px;
}

.prose pre {
	font-family: var(--font-mono);
	font-size: 13.5px;
	line-height: 1.6;
	background: var(--surface);
	border: 1px solid var(--rule);
	border-left: 3px solid var(--accent);
	padding: 16px 18px;
	overflow-x: auto;
}

.prose pre code {
	background: transparent;
	border: 0;
	padding: 0;
	font-size: inherit;
}

.prose table {
	border-collapse: collapse;
	font-family: var(--font-ui);
	font-size: 15px;
	/* La largeur vient de la règle de débordement ci-dessus — la fixer ici la
	   remplacerait, les deux sélecteurs ayant la même spécificité. */
	display: block;
	overflow-x: auto;
}

.prose th,
.prose td {
	border: 1px solid var(--rule);
	padding: 8px 12px;
	text-align: left;
}

.prose th {
	background: var(--surface-2);
	font-weight: 600;
}

.prose hr {
	border: 0;
	border-top: 1px solid var(--rule);
	margin-block: 2.4em;
}

.single__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 36px;
	padding-top: 20px;
	border-top: 1px solid var(--rule);
}

.tag {
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--muted);
	border: 1px solid var(--rule);
	padding: 4px 8px;
	text-decoration: none;
}

.tag:hover {
	border-color: var(--accent);
	color: var(--accent);
}

.postnav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin: 40px 0;
}

.postnav__link {
	display: block;
	padding: 14px 16px;
	border: 1px solid var(--rule);
	background: var(--surface);
	text-decoration: none;
	color: var(--ink);
}

.postnav__link:hover {
	border-color: var(--accent);
}

.postnav__link--next {
	text-align: right;
}

.postnav__label {
	display: block;
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: 5px;
}

.postnav__title {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
}

@media (max-width: 620px) {
	.postnav {
		grid-template-columns: 1fr;
	}

	.postnav__link--next {
		text-align: left;
	}
}

/* --------------------------------------------------------------------------
   14. Commentaires
   -------------------------------------------------------------------------- */

.comments {
	margin-top: 48px;
	padding-top: 26px;
	border-top: 2px solid var(--gold);
}

.comments__title {
	font-size: 21px;
	margin: 0 0 20px;
}

.comments__status {
	font-family: var(--font-mono);
	font-size: 13px;
	color: var(--muted);
	padding: 14px 0;
}

.comments__status:empty {
	display: none;
	padding: 0;
}

.comments__status.is-error {
	color: var(--signal);
}

.comments__list,
.comment__replies {
	list-style: none;
	margin: 0;
	padding: 0;
}

.comment {
	padding: 18px 0;
	border-top: 1px solid var(--rule);
}

.comments__list > .comment:first-child {
	border-top: 0;
	padding-top: 0;
}

.comment__replies {
	margin-top: 14px;
	margin-left: 18px;
	padding-left: 18px;
	border-left: 2px solid var(--rule);
}

@media (max-width: 620px) {
	.comment__replies {
		margin-left: 0;
		padding-left: 12px;
	}
}

.comment__head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
}

.comment__avatar {
	width: 32px;
	height: 32px;
	border: 1px solid var(--rule);
	background: var(--surface-2);
	flex: none;
}

.comment__author {
	font-weight: 600;
	font-size: 14px;
	color: var(--ink);
}

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

.comment__author a:hover {
	color: var(--accent);
	text-decoration: underline;
}

.comment__badge {
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	background: var(--gold);
	color: var(--gold-ink);
	padding: 2px 6px;
}

.comment__date {
	font-family: var(--font-mono);
	font-size: 11px;
	color: var(--muted);
	margin-left: auto;
}

.comment__body {
	font-size: 15px;
	line-height: 1.62;
	color: var(--ink-soft);
}

.comment__body > * + * {
	margin-top: 0.8em;
}

.comment__body p {
	margin: 0;
}

.comment__body a {
	word-break: break-word;
}

.comment__reply {
	margin-top: 8px;
	border: 0;
	background: transparent;
	padding: 0;
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--muted);
}

.comment__reply:hover {
	color: var(--accent);
}

.cform {
	margin-top: 34px;
	padding: 22px;
	background: var(--surface);
	border: 1px solid var(--rule);
}

.cform__title {
	font-size: 16px;
	margin: 0 0 16px;
}

.cform__replying {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 14px;
	padding: 8px 12px;
	background: var(--accent-soft);
	font-size: 13px;
}

.cform__cancel {
	border: 0;
	background: transparent;
	padding: 0;
	font-family: var(--font-mono);
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--accent);
	text-decoration: underline;
}

.cform__field {
	margin-bottom: 14px;
}

.cform__field label {
	display: block;
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: 5px;
}

.cform input[type="text"],
.cform input[type="email"],
.cform textarea {
	width: 100%;
	font: inherit;
	font-size: 15px;
	color: var(--ink);
	background: var(--bg);
	border: 1px solid var(--rule-strong);
	padding: 10px 12px;
	resize: vertical;
}

.cform input:focus,
.cform textarea:focus {
	outline: none;
	border-color: var(--accent);
}

.cform__hint {
	display: block;
	margin-top: 4px;
	font-size: 12px;
	color: var(--muted);
}

.cform__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

@media (max-width: 560px) {
	.cform__grid {
		grid-template-columns: 1fr;
		gap: 0;
	}
}

.cform__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 6px;
}

.cform__remember {
	display: flex;
	align-items: center;
	gap: 7px;
	font-size: 13px;
	color: var(--muted);
}

.cform__submit {
	background: var(--accent);
	color: var(--accent-ink);
	border: 0;
	font-weight: 600;
	font-size: 14px;
	padding: 11px 22px;
}

.cform__submit:hover {
	background: var(--ink);
	color: var(--surface);
}

.cform__submit[disabled] {
	opacity: 0.6;
	cursor: progress;
}

.cform__status {
	margin: 12px 0 0;
	font-size: 14px;
}

.cform__status:empty {
	margin: 0;
}

.cform__status.is-ok {
	color: var(--accent);
}

.cform__status.is-error {
	color: var(--signal);
}

/* Vérification anti-robot : elle tourne pendant la lecture, cette ligne
   n'apparaît que si elle n'est pas terminée au moment d'écrire. */
.cform__shield {
	display: none;
	align-items: center;
	gap: 8px;
	margin: 0 0 12px;
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--muted);
}

.cform__shield.is-working {
	display: flex;
}

.cform__shield::before {
	content: "";
	width: 10px;
	height: 10px;
	border: 2px solid var(--rule-strong);
	border-top-color: var(--accent);
	border-radius: 50%;
	animation: shield-spin 0.7s linear infinite;
}

@keyframes shield-spin {
	to {
		transform: rotate(360deg);
	}
}

.comments__closed {
	font-size: 14px;
	color: var(--muted);
	padding: 14px 0;
}

/* --------------------------------------------------------------------------
   15. Divers
   -------------------------------------------------------------------------- */

.button {
	display: inline-block;
	background: var(--accent);
	color: var(--accent-ink);
	font-weight: 600;
	font-size: 14px;
	padding: 11px 20px;
	text-decoration: none;
	border: 0;
}

.button:hover {
	background: var(--ink);
	color: var(--surface);
}

.empty,
.notice-page {
	padding: 60px 0;
}

.empty__title,
.notice-page__title {
	font-size: clamp(24px, 4vw, 34px);
	margin-bottom: 12px;
}

.notice {
	padding: 14px 16px;
	border: 1px solid var(--rule-strong);
	background: var(--surface);
	font-size: 14px;
}

.error404 {
	padding-block: 72px 90px;
	text-align: center;
}

.error404__code {
	font-family: var(--font-mono);
	font-size: clamp(64px, 16vw, 128px);
	line-height: 1;
	font-weight: 700;
	color: var(--rule-strong);
	margin: 0 0 12px;
	letter-spacing: -0.04em;
}

.error404__title {
	font-size: clamp(22px, 4vw, 30px);
}

.error404__text {
	color: var(--muted);
	margin: 12px 0 26px;
}

.error404__actions {
	margin-bottom: 26px;
}

.error404 .search {
	max-width: 340px;
	margin: 0 auto 40px;
}

.error404 .search__input {
	width: 100%;
	padding: 10px 12px;
	font-size: 15px;
}

.error404__subtitle {
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: 10px;
}

.minilist {
	margin: 0 auto;
	padding: 0;
	list-style: none;
	text-align: left;
	max-width: 420px;
}

.minilist__item {
	padding: 10px 0;
	border-bottom: 1px solid var(--rule);
}

.minilist__item a {
	display: block;
	color: var(--ink);
	font-size: 14px;
	line-height: 1.4;
	font-weight: 600;
	text-decoration: none;
	margin-bottom: 3px;
}

.minilist__item a:hover {
	color: var(--accent);
}

.minilist__item time {
	font-family: var(--font-mono);
	font-size: 11px;
	color: var(--muted);
}

/* --------------------------------------------------------------------------
   16. Bandeau de consentement
   -------------------------------------------------------------------------- */

.consent {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 60;
	background: var(--surface);
	border-top: 3px solid var(--gold);
	box-shadow: 0 -8px 24px rgb(0 0 0 / 0.14);
}

.consent.is-visible {
	animation: consent-in 0.25s ease-out;
}

@keyframes consent-in {
	from {
		transform: translateY(100%);
	}
}

.consent__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 18px;
	max-width: var(--wrap);
	margin-inline: auto;
	padding: 16px 20px;
}

.consent__text {
	flex: 1 1 320px;
	margin: 0;
	font-size: 13.5px;
	line-height: 1.55;
	color: var(--ink-soft);
}

.consent__text strong {
	color: var(--ink);
}

.consent__actions {
	display: flex;
	gap: 8px;
	flex: none;
}

.consent__button {
	border: 1px solid var(--accent);
	background: var(--accent);
	color: var(--accent-ink);
	font-size: 13px;
	font-weight: 600;
	padding: 9px 16px;
	white-space: nowrap;
}

.consent__button:hover {
	background: var(--ink);
	border-color: var(--ink);
	color: var(--surface);
}

.consent__button--ghost {
	background: transparent;
	border-color: var(--rule-strong);
	color: var(--ink-soft);
	font-weight: 400;
}

.consent__button--ghost:hover {
	background: transparent;
	border-color: var(--ink);
	color: var(--ink);
}

@media (max-width: 620px) {
	.consent__actions {
		width: 100%;
	}

	.consent__button {
		flex: 1;
	}
}

/* --------------------------------------------------------------------------
   17. Pied de page
   -------------------------------------------------------------------------- */

.site-footer {
	background: var(--surface);
	border-top: 1px solid var(--rule);
}

.site-footer__top {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 1fr));
	gap: 32px;
	padding-block: 36px 28px;
}

@media (max-width: 800px) {
	.site-footer__top {
		grid-template-columns: minmax(0, 1fr);
		gap: 26px;
	}
}

.site-footer__brand {
	margin: 0 0 8px;
	font-weight: 800;
	font-size: 18px;
	letter-spacing: -0.03em;
}

.site-footer__tagline {
	display: block;
	font-weight: 400;
	font-size: 13.5px;
	color: var(--muted);
	letter-spacing: 0;
	margin-top: 4px;
}

.site-footer__heading {
	font-family: var(--font-mono);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--muted);
	margin: 0 0 12px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--rule);
}

.site-footer__list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 14px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 14px;
}

.site-footer__list a {
	color: var(--ink-soft);
	text-decoration: none;
}

.site-footer__list a:hover {
	color: var(--accent);
}

.site-footer__count {
	font-family: var(--font-mono);
	font-size: 11px;
	color: var(--muted);
}

.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	padding-block: 14px 22px;
	border-top: 1px solid var(--rule);
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--muted);
}

.site-footer__bottom a {
	color: var(--muted);
}

.site-footer__bottom a:hover {
	color: var(--accent);
}

.site-footer__prefs {
	border: 0;
	background: transparent;
	padding: 0;
	font: inherit;
	color: var(--muted);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.site-footer__prefs:hover {
	color: var(--accent);
}
