/*
Theme Name: Antho 2026
Theme URI: https://github.com/
Author: Anthony Novo
Description: Thème personnel pour un blog sport et technologie. Cartes sur fond noir, accent orange, sombre et clair. Aucune extension requise : recherche rapide, sommaire automatique, temps de lecture et commentaires natifs sont intégrés au thème.
Version: 2.0.0
Requires at least: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: antho
Tags: blog, one-column, custom-menu, featured-images, translation-ready
*/

/* ==========================================================================
   1. Polices
   --------------------------------------------------------------------------
   Par défaut : polices système, aucune requête réseau.
   Pour une police propre, dépose les .woff2 dans assets/fonts/, décommente
   le bloc ci-dessous et change la valeur de --font-display.
   ========================================================================== */

/*
@font-face {
	font-family: "Display";
	src: url("assets/fonts/display-800.woff2") format("woff2");
	font-weight: 800;
	font-style: normal;
	font-display: swap;
}
*/

/* ==========================================================================
   2. Jetons de design
   ========================================================================== */

:root {
	--font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--font-display: var(--font-sans);
	--font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

	--step--2: 0.75rem;
	--step--1: 0.875rem;
	--step-0: 1rem;
	--step-1: 1.125rem;
	--step-2: 1.375rem;
	--step-3: 1.75rem;
	--step-4: 2.25rem;

	--wrap: 76rem;
	--prose: 44rem;

	--radius-lg: 18px;
	--radius-md: 12px;
	--radius-sm: 8px;
	--pill: 999px;

	--ease: cubic-bezier(0.2, 0, 0, 1);
}

/* Clair */
:root {
	color-scheme: light;
	--bg: #ffffff;
	--surface: #f7f6f3;
	--surface-2: #efedE8;
	--text: #26241f;
	--text-strong: #000000;
	--muted: #6e6b63;
	--line: #e4e1da;
	--accent: #d24500;
	--accent-ink: #ffffff;
	--badge-bg: rgba(210, 69, 0, 0.10);
	--badge-text: #b03a00;
}

/* Sombre : suivi du système */
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		color-scheme: dark;
		--bg: #000000;
		--surface: #0e0e0e;
		--surface-2: #161616;
		--text: #dedbd5;
		--text-strong: #ffffff;
		--muted: #94918a;
		--line: #232322;
		--accent: #ff7a18;
		--accent-ink: #150a02;
		--badge-bg: rgba(255, 122, 24, 0.15);
		--badge-text: #ffa257;
	}
}

/* Sombre : choix du lecteur */
:root[data-theme="dark"] {
	color-scheme: dark;
	--bg: #000000;
	--surface: #0e0e0e;
	--surface-2: #161616;
	--text: #dedbd5;
	--text-strong: #ffffff;
	--muted: #94918a;
	--line: #232322;
	--accent: #ff7a18;
	--accent-ink: #150a02;
	--badge-bg: rgba(255, 122, 24, 0.15);
	--badge-text: #ffa257;
}

/* ==========================================================================
   3. Base
   ========================================================================== */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 6rem;
}

body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-sans);
	font-size: var(--step-0);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

.site-main {
	flex: 1;
}

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

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

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

h1,
h2,
h3,
h4 {
	margin: 0;
	font-family: var(--font-display);
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -0.025em;
	color: var(--text-strong);
}

button {
	font: inherit;
	color: inherit;
	background: none;
	border: 0;
	cursor: pointer;
}

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

.skip-link {
	position: absolute;
	left: -9999px;
}

.skip-link:focus {
	left: 1rem;
	top: 1rem;
	z-index: 100;
	background: var(--accent);
	color: var(--accent-ink);
	padding: 0.6rem 1rem;
	border-radius: var(--radius-sm);
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

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

.site-header {
	position: sticky;
	top: 0;
	z-index: 40;
	background: color-mix(in srgb, var(--bg) 86%, transparent);
	backdrop-filter: saturate(180%) blur(14px);
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	min-height: 4.75rem;
}

.site-brand {
	font-family: var(--font-display);
	font-size: 1.5rem;
	font-weight: 800;
	letter-spacing: -0.04em;
	color: var(--text-strong);
	white-space: nowrap;
}

.site-brand span {
	color: var(--accent);
}

.site-nav ul {
	display: flex;
	align-items: center;
	gap: 1.4rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav a {
	font-size: var(--step--1);
	white-space: nowrap;
	color: var(--text);
	transition: color 0.2s var(--ease);
}

.site-nav a:hover,
.site-nav .current-menu-item > a,
.site-nav .current-cat > a {
	color: var(--accent);
}

.header-tools {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin-inline-start: auto;
}

.search-open {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.55rem 1rem;
	border-radius: var(--pill);
	background: var(--surface);
	border: 1px solid var(--line);
	color: var(--muted);
	font-size: var(--step--1);
	transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.search-open:hover {
	border-color: var(--accent);
	color: var(--text-strong);
}

.search-open kbd {
	font-family: inherit;
	font-size: var(--step--2);
	background: var(--surface-2);
	border-radius: 4px;
	padding: 0.1rem 0.35rem;
}

.icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.6rem;
	height: 2.6rem;
	border-radius: var(--pill);
	color: var(--muted);
	transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.icon-btn:hover {
	background: var(--surface);
	color: var(--text-strong);
}

.icon-btn svg,
.search-open svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.theme-toggle .icon-sun {
	display: none;
}

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

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

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

	:root:not([data-theme="light"]) .theme-toggle .icon-moon {
		display: none;
	}
}

.cta {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.6rem 1.15rem;
	border-radius: var(--pill);
	background: var(--accent);
	color: var(--accent-ink);
	font-size: var(--step--1);
	font-weight: 600;
	transition: opacity 0.2s var(--ease);
}

.cta:hover {
	opacity: 0.9;
	color: var(--accent-ink);
}

.nav-toggle {
	display: none;
}

@media (max-width: 860px) {
	.site-nav {
		display: none;
		position: absolute;
		inset: 100% 0 auto;
		background: var(--bg);
		border-bottom: 1px solid var(--line);
		padding: 1.25rem 1.5rem 1.75rem;
	}

	.site-nav.is-open {
		display: block;
	}

	.site-nav ul {
		flex-direction: column;
		align-items: flex-start;
		gap: 1rem;
	}

	.site-nav a {
		font-size: var(--step-1);
		font-weight: 600;
	}

	.nav-toggle {
		display: inline-flex;
	}

	.search-open span,
	.search-open kbd {
		display: none;
	}
}

@media (max-width: 1120px) {
	.search-open span {
		display: none;
	}

	.search-open kbd {
		display: none;
	}
}

/* ==========================================================================
   5. Étiquette de catégorie et ligne de méta
   ========================================================================== */

.badge {
	display: inline-block;
	padding: 0.35rem 0.75rem;
	border-radius: var(--pill);
	background: var(--badge-bg);
	color: var(--badge-text);
	font-size: var(--step--2);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

a.badge:hover {
	background: var(--accent);
	color: var(--accent-ink);
}

.badge--overlay {
	position: absolute;
	top: 0.9rem;
	left: 0.9rem;
	z-index: 2;
	background: rgba(0, 0, 0, 0.55);
	color: #ffa257;
	backdrop-filter: blur(6px);
}

.meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem 0.7rem;
	font-size: var(--step--1);
	color: var(--muted);
}

.meta__sep {
	opacity: 0.45;
}

.meta svg {
	width: 14px;
	height: 14px;
	vertical-align: -2px;
	margin-inline-end: 0.35rem;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
}

.meta strong {
	color: var(--text);
	font-weight: 600;
}

/* ==========================================================================
   6. Hero d'accueil
   ========================================================================== */

.hero {
	position: relative;
	display: block;
	margin-top: 1.5rem;
	border-radius: var(--radius-lg);
	overflow: hidden;
	background: var(--surface);
	border: 1px solid var(--line);
	isolation: isolate;
}

.hero__media {
	position: absolute;
	inset: 0;
	z-index: 0;
}

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

.hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.93) 12%, rgba(0, 0, 0, 0.55) 45%, rgba(0, 0, 0, 0.12) 100%);
}

.hero__body {
	position: relative;
	z-index: 1;
	padding: clamp(1.75rem, 5vw, 3.5rem);
	max-width: 54rem;
}

.hero--has-media .hero__body {
	padding-top: clamp(9rem, 28vw, 22rem);
}

.hero--has-media .hero__title {
	color: #ffffff;
}

.hero--has-media .hero__excerpt,
.hero--has-media .meta {
	color: rgba(255, 255, 255, 0.78);
}

.hero__title {
	margin-top: 1rem;
	font-size: clamp(1.9rem, 4vw, 3.15rem);
	line-height: 1.05;
	max-width: 22ch;
}

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

.hero--has-media:hover .hero__title {
	color: #ffb877;
}

.hero__excerpt {
	margin: 1rem 0 1.25rem;
	max-width: 56ch;
	font-size: var(--step-1);
	line-height: 1.55;
	color: var(--muted);
}

/* ==========================================================================
   7. Liste d'articles
   ========================================================================== */

.section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	margin-top: clamp(3rem, 7vw, 4.5rem);
	margin-bottom: 2rem;
}

.section-head h2 {
	font-size: var(--step-2);
}

.section-head a {
	font-size: var(--step--1);
	color: var(--muted);
}

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

.entries {
	display: grid;
	gap: clamp(2.5rem, 5vw, 4rem);
}

.entry {
	position: relative;
	display: grid;
	gap: 1.25rem;
}

@media (min-width: 760px) {
	.entry {
		/* Première valeur : largeur de l'image. Baisse-la pour la réduire encore. */
		grid-template-columns: minmax(0, 0.55fr) minmax(0, 1fr);
		gap: 2.25rem;
		align-items: center;
	}
}

.entry__media {
	position: relative;
	border-radius: var(--radius-md);
	overflow: hidden;
	background: var(--surface);
	aspect-ratio: 3 / 2;
}

@media (max-width: 759px) {
	.entry__media {
		aspect-ratio: 16 / 9;
	}
}

.entry__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s var(--ease);
}

.entry:hover .entry__media img {
	transform: scale(1.03);
}

.entry--no-media .entry__media {
	border: 1px solid var(--line);
	background: radial-gradient(120% 120% at 15% 0%, var(--surface-2), var(--surface));
}

.entry__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem 1rem;
	font-size: var(--step--1);
	color: var(--muted);
}

.entry__title {
	margin: 0.9rem 0 0;
	font-size: clamp(1.3rem, 2.1vw, 1.65rem);
	line-height: 1.2;
}

.entry__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 3;
}

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

.entry__excerpt {
	margin: 0.8rem 0 0;
	max-width: 60ch;
	font-size: var(--step-0);
	line-height: 1.65;
	color: var(--muted);
}

/* Pilule de catégorie avec pastille */

.chip {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.45rem 0.95rem;
	border-radius: var(--pill);
	background: var(--surface-2);
	color: var(--text);
	font-size: var(--step--1);
	font-weight: 600;
	transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.chip::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--accent);
	flex: none;
}

a.chip {
	position: relative;
	z-index: 4;
}

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

/* ==========================================================================
   8. Article
   ========================================================================== */

.post-header {
	max-width: 46rem;
	margin-inline: auto;
	padding-block: clamp(2.5rem, 7vw, 4.5rem) 2.25rem;
	text-align: center;
}

.post-title {
	margin: 1.25rem 0;
	font-size: clamp(1.9rem, 4.2vw, 3rem);
	line-height: 1.08;
}

.post-lede {
	margin: 0 auto 1.5rem;
	max-width: 46ch;
	font-size: var(--step-1);
	line-height: 1.55;
	color: var(--muted);
}

.post-header .meta {
	justify-content: center;
}

.post-hero {
	margin: 0 0 clamp(2rem, 5vw, 3.5rem);
	border-radius: var(--radius-lg);
	overflow: hidden;
}

.post-hero img {
	display: block;
	width: 100%;
}

.post-body {
	max-width: var(--prose);
	margin-inline: auto;
	padding-bottom: 4rem;
}

.prose {
	font-size: var(--step-1);
	line-height: 1.78;
}

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

.prose h2 {
	margin-top: 2.4em;
	margin-bottom: -0.5em;
	font-size: var(--step-3);
}

.prose h3 {
	margin-top: 1.9em;
	margin-bottom: -0.6em;
	font-size: var(--step-2);
}

.prose a {
	color: var(--accent);
	text-decoration: underline;
	text-underline-offset: 0.2em;
	text-decoration-thickness: 1px;
}

.prose ul,
.prose ol {
	padding-inline-start: 1.35em;
}

.prose li {
	padding-inline-start: 0.35em;
}

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

.prose ul li::marker,
.prose ol li::marker {
	color: var(--accent);
}

.prose blockquote {
	margin-inline: 0;
	padding: 1.25rem 1.5rem;
	border-radius: var(--radius-md);
	background: var(--surface);
	border-inline-start: 3px solid var(--accent);
}

.prose blockquote p:first-child {
	margin-top: 0;
}

.prose img {
	border-radius: var(--radius-md);
}

.prose figcaption {
	margin-top: 0.7rem;
	font-size: var(--step--1);
	color: var(--muted);
	text-align: center;
}

.prose code {
	font-family: var(--font-mono);
	font-size: 0.88em;
	background: var(--surface-2);
	border-radius: 5px;
	padding: 0.12em 0.4em;
}

.prose pre {
	padding: 1.25rem 1.4rem;
	border-radius: var(--radius-md);
	background: var(--surface);
	border: 1px solid var(--line);
	overflow-x: auto;
	font-size: var(--step--1);
	line-height: 1.65;
}

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

.prose table {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--step-0);
}

.prose th,
.prose td {
	text-align: start;
	padding: 0.7rem 0.8rem;
	border-bottom: 1px solid var(--line);
}

.prose th {
	color: var(--text-strong);
	font-weight: 700;
}

.prose .wp-block-image,
.prose .wp-block-embed {
	margin-block: 2.2em;
}

.prose .alignwide {
	width: min(58rem, 92vw);
	margin-inline: calc(50% - min(29rem, 46vw));
}

/* Sommaire repliable */

.toc {
	margin-block: 2.5rem;
	border: 1px solid var(--line);
	border-radius: var(--radius-md);
	background: var(--surface);
	overflow: hidden;
}

.toc > summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.1rem 1.4rem;
	cursor: pointer;
	font-weight: 700;
	color: var(--text-strong);
	list-style: none;
}

.toc > summary::-webkit-details-marker {
	display: none;
}

.toc > summary::after {
	content: "";
	width: 9px;
	height: 9px;
	border-right: 2px solid var(--muted);
	border-bottom: 2px solid var(--muted);
	transform: rotate(45deg) translateY(-2px);
	transition: transform 0.25s var(--ease);
}

.toc[open] > summary::after {
	transform: rotate(-135deg) translateY(-2px);
}

.toc ul {
	list-style: none;
	margin: 0;
	padding: 0 1.4rem 1.2rem;
}

.toc li {
	margin: 0;
}

.toc a {
	display: block;
	padding: 0.4rem 0;
	font-size: var(--step-0);
	line-height: 1.45;
	color: var(--muted);
}

.toc a:hover,
.toc a.is-active {
	color: var(--accent);
}

.toc .level-3 a {
	padding-inline-start: 1.1rem;
	font-size: var(--step--1);
}

/* Pied d'article */

.post-footer {
	margin-top: 3rem;
	padding-top: 1.75rem;
	border-top: 1px solid var(--line);
	font-size: var(--step--1);
	color: var(--muted);
}

.tag-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 1rem;
}

.tag-list a {
	padding: 0.3rem 0.8rem;
	border-radius: var(--pill);
	background: var(--surface);
	border: 1px solid var(--line);
	font-size: var(--step--1);
	color: var(--muted);
}

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

.post-nav {
	display: grid;
	gap: 1rem;
	margin-top: 3rem;
}

@media (min-width: 720px) {
	.post-nav {
		grid-template-columns: 1fr 1fr;
	}
}

.post-nav a {
	display: block;
	padding: 1.25rem 1.4rem;
	border-radius: var(--radius-md);
	background: var(--surface);
	border: 1px solid var(--line);
	transition: border-color 0.2s var(--ease);
}

.post-nav a:hover {
	border-color: var(--accent);
}

.post-nav span {
	display: block;
	margin-bottom: 0.4rem;
	font-size: var(--step--1);
	color: var(--muted);
}

.post-nav strong {
	font-family: var(--font-display);
	font-size: var(--step-1);
	font-weight: 700;
	line-height: 1.25;
	color: var(--text-strong);
}

.post-nav .next {
	text-align: end;
}

/* ==========================================================================
   9. Commentaires
   ========================================================================== */

.comments {
	max-width: var(--prose);
	margin: 4rem auto 0;
	padding-top: 2.5rem;
	border-top: 1px solid var(--line);
}

.comments__title {
	margin-bottom: 2rem;
	font-size: var(--step-2);
}

.comment-list {
	list-style: none;
	margin: 0 0 2.5rem;
	padding: 0;
}

.comment-list ol.children {
	list-style: none;
	margin: 1.25rem 0 0;
	padding-inline-start: 1.5rem;
	border-inline-start: 1px solid var(--line);
}

.comment-body {
	padding-block: 1.25rem;
}

.comment-head {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	margin-bottom: 0.6rem;
}

.comment-head img {
	border-radius: var(--pill);
}

.comment-author {
	font-weight: 700;
	color: var(--text-strong);
}

.comment-date {
	font-size: var(--step--1);
	color: var(--muted);
}

.comment-content p {
	margin: 0 0 0.8em;
}

.comment-reply-link {
	font-size: var(--step--1);
	color: var(--muted);
}

.comment-reply-link:hover {
	color: var(--accent);
}

.comment-respond {
	padding: 1.75rem;
	border-radius: var(--radius-md);
	background: var(--surface);
	border: 1px solid var(--line);
}

.comment-reply-title {
	margin-bottom: 1rem;
	font-size: var(--step-1);
}

.comment-form label {
	display: block;
	margin-bottom: 0.35rem;
	font-size: var(--step--1);
	color: var(--muted);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea,
.search-form input[type="search"] {
	width: 100%;
	padding: 0.7rem 0.9rem;
	border-radius: var(--radius-sm);
	background: var(--bg);
	border: 1px solid var(--line);
	color: var(--text);
	font: inherit;
}

.comment-form p {
	margin: 0 0 1rem;
}

.comment-form .form-submit {
	margin-bottom: 0;
}

.comment-form textarea {
	min-height: 9rem;
	resize: vertical;
}

input[type="submit"],
.btn {
	display: inline-block;
	padding: 0.7rem 1.4rem;
	border: 0;
	border-radius: var(--pill);
	background: var(--accent);
	color: var(--accent-ink);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	transition: opacity 0.2s var(--ease);
}

input[type="submit"]:hover,
.btn:hover {
	opacity: 0.9;
}

.comment-notes,
.logged-in-as,
.comment-form-cookies-consent label {
	font-size: var(--step--1);
	color: var(--muted);
}

.comment-form-cookies-consent {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.comment-form-cookies-consent label {
	margin: 0;
}

/* ==========================================================================
   10. Recherche rapide
   ========================================================================== */

.qs {
	position: fixed;
	inset: 0;
	z-index: 90;
	display: none;
	padding: 8vh 1.5rem 2rem;
	background: rgba(0, 0, 0, 0.55);
	backdrop-filter: blur(8px);
}

.qs.is-open {
	display: block;
}

.qs__panel {
	max-width: 38rem;
	margin-inline: auto;
	background: var(--bg);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	overflow: hidden;
}

.qs__field {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 1rem 1.25rem;
	border-bottom: 1px solid var(--line);
}

.qs__field svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: var(--muted);
	stroke-width: 1.7;
	flex: none;
}

.qs__input {
	flex: 1;
	border: 0;
	background: none;
	font: inherit;
	font-size: var(--step-1);
	color: var(--text);
}

.qs__input:focus {
	outline: none;
}

.qs__results {
	list-style: none;
	margin: 0;
	padding: 0.5rem;
	max-height: 50vh;
	overflow-y: auto;
}

.qs__results li a {
	display: block;
	padding: 0.7rem 0.85rem;
	border-radius: var(--radius-sm);
	line-height: 1.35;
}

.qs__results li a:hover,
.qs__results li.is-selected a {
	background: var(--badge-bg);
	color: var(--accent);
}

.qs__empty {
	padding: 1.25rem;
	font-size: var(--step--1);
	color: var(--muted);
}

.qs__foot {
	display: flex;
	gap: 1.25rem;
	padding: 0.7rem 1.25rem;
	border-top: 1px solid var(--line);
	font-size: var(--step--2);
	color: var(--muted);
}

/* ==========================================================================
   11. Archives, pagination, pages, 404
   ========================================================================== */

.page-head {
	padding-block: clamp(2.5rem, 7vw, 4rem) 0.5rem;
}

.page-head h1 {
	font-size: clamp(1.9rem, 4vw, 2.75rem);
}

.page-head p {
	margin: 0.9rem 0 0;
	max-width: 54ch;
	color: var(--muted);
}

.pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	padding-block: 3rem 4.5rem;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.6rem;
	height: 2.6rem;
	padding-inline: 0.8rem;
	border-radius: var(--pill);
	background: var(--surface);
	border: 1px solid var(--line);
	font-size: var(--step--1);
	color: var(--muted);
}

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

.pagination .page-numbers.current {
	background: var(--accent);
	border-color: var(--accent);
	color: var(--accent-ink);
	font-weight: 600;
}

.search-form {
	display: flex;
	gap: 0.6rem;
	max-width: 30rem;
	margin-top: 1.5rem;
}

.page-content {
	max-width: var(--prose);
	margin-inline: auto;
	padding-block: 1rem 4rem;
}

.empty-state {
	max-width: var(--prose);
	padding-block: 4rem 6rem;
}

.empty-state h1 {
	font-size: clamp(3rem, 9vw, 5rem);
	color: var(--accent);
}

.empty-state p {
	font-size: var(--step-1);
	color: var(--muted);
}

/* ==========================================================================
   12. Pied de page
   ========================================================================== */

.site-footer {
	margin-top: 2rem;
	border-top: 1px solid var(--line);
	background: var(--surface);
	padding-block: 3.5rem 2.5rem;
}

.site-footer__grid {
	display: grid;
	gap: 2.5rem;
}

@media (min-width: 720px) {
	.site-footer__grid {
		grid-template-columns: 1.5fr 1fr;
		gap: 4rem;
	}
}

.site-footer__bio {
	margin: 0;
	max-width: 44ch;
	font-size: var(--step-1);
	line-height: 1.6;
}

.site-footer h2 {
	margin-bottom: 1rem;
	font-family: var(--font-sans);
	font-size: var(--step--1);
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--muted);
}

.site-footer ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem 1.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

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

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

.site-footer__legal {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.75rem;
	margin-top: 3rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--line);
	font-size: var(--step--1);
	color: var(--muted);
}

/* ==========================================================================
   13. Préférences système
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}

@media print {
	.site-header,
	.site-footer,
	.toc,
	.comments,
	.post-nav,
	.qs {
		display: none;
	}
}
