/*
Theme Name: eManagement.fr
Theme URI: https://emanagement.fr/
Author: LMA Conseils
Description: Thème sur mesure d’eManagement.fr, le guide de référence du management à distance, hybride et à l’ère de l’IA. Guide en chapitres ordonnés, articles complémentaires, lexique A-Z, SEO et données structurées intégrés. Aucune dépendance externe.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.3
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: emanagement
*/

/* ==========================================================================
   Direction artistique : « le manuel de bord d’une équipe distribuée ».
   Papier chaud, lecture à empattements, numéros de chapitre en chasse fixe,
   signes du réseau (nœuds, arcs de signal, fuseaux, impulsion), grilles bento.

   Sommaire
   1. Jetons            9. Accueil : bandeau, bento, rubriques, lexique
   2. Base             10. En-têtes de pages
   3. Utilitaires      11. Lecture : grille, panneau, sommaire, contenu
   4. Boutons, badges  12. Encadrés : points clés, actions, à retenir, FAQ, sources
   5. En-tête, menu    13. Chapitres : navigation, ligne de métro
   6. Pied de page     14. Lexique : archive A-Z, fiche
   7. Motifs SVG       15. Recherche, 404, plan du site, pagination
   8. Cartes, bento    16. Mouvement réduit, impression
   ========================================================================== */

/* 1. Jetons ================================================================ */
:root {
	--bg: #F5F3EE;
	--surface: #FFFFFF;
	--text: #1A1E3A;
	--muted: #4E5470;
	--accent: #B23A0B;
	--accent-strong: #8F2E08;
	--accent2: #0D6760;
	--ink: #1A1E3A;
	--on-ink: #F5F3EE;
	--muted-on-ink: #B9BDD3;
	--accent-on-ink: #FF9A66;
	--accent2-on-ink: #6FD3C6;
	--line: #D8D3C7;
	--accent-soft: #FBE7DC;
	--accent2-soft: #DDEFEC;

	--font-head: "Avenir Next", "Segoe UI Variable Display", "Segoe UI", Ubuntu, "Helvetica Neue", Arial, sans-serif;
	--font-body: Charter, "Bitstream Charter", "Sitka Text", Cambria, "Noto Serif", Georgia, serif;
	--font-mono: ui-monospace, "SF Mono", "Cascadia Mono", "Segoe UI Mono", Consolas, "Liberation Mono", monospace;

	--radius: 10px;
	--radius-lg: 18px;
	--radius-xl: 24px;
	--radius-pill: 999px;
	--shadow: 0 1px 2px rgba(26, 30, 58, .06);
	--shadow-lift: 0 14px 30px -18px rgba(26, 30, 58, .35), 0 1px 2px rgba(26, 30, 58, .06);

	--gutter: clamp(1rem, 4vw, 2.5rem);
	--container: 75rem;
	/* 60ch (largeur du « 0 ») ≈ 68 à 72 caractères réels avec les polices à empattements système. */
	--measure: 60ch;
	--space-s: 1rem;
	--space-m: 1.5rem;
	--space-l: clamp(2.25rem, 5vw, 3.5rem);
	--space-xl: clamp(3rem, 8vw, 6rem);

	--focus: var(--accent2);
	--ease: cubic-bezier(.2, .7, .2, 1);
}

/* 2. Base ================================================================== */
*,
*::before,
*::after {
	box-sizing: border-box;
}

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

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.6;
	overflow-x: clip;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

svg {
	flex-shrink: 0;
}

h1,
h2,
h3,
h4 {
	margin: 0 0 .5em;
	font-family: var(--font-head);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -.01em;
	color: var(--text);
	text-wrap: balance;
	overflow-wrap: break-word;
}

p,
ul,
ol {
	margin: 0 0 1em;
}

a {
	color: inherit;
	text-decoration-line: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

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

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

.site-main:focus {
	outline: none;
}

::selection {
	background: var(--accent2-soft);
	color: var(--text);
}

button,
input {
	font: inherit;
}

dfn {
	font-style: normal;
}

/* 3. Utilitaires =========================================================== */
.visually-hidden,
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	left: 1rem;
	top: -6rem;
	z-index: 100;
	padding: .75rem 1.125rem;
	border-radius: var(--radius);
	background: var(--ink);
	color: var(--on-ink);
	font-family: var(--font-head);
	font-weight: 600;
	text-decoration: none;
}

.skip-link:focus {
	top: 1rem;
	color: var(--on-ink);
	outline: 3px solid var(--accent2-on-ink);
}

.wrap {
	width: min(calc(100% - 2 * var(--gutter)), var(--container));
	margin-inline: auto;
}

.icon {
	width: 1.25rem;
	height: 1.25rem;
	vertical-align: middle;
}

.eyebrow {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .375rem .875rem;
	margin: 0 0 .875rem;
	font-family: var(--font-mono);
	font-size: .75rem;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--muted);
}

.eyebrow > span,
.eyebrow__link {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
}

.eyebrow .icon {
	width: 1.125rem;
	height: 1.125rem;
	color: var(--accent2);
}

.eyebrow__strong {
	color: var(--accent);
}

.eyebrow__link {
	min-height: 2.75rem;
	color: var(--muted);
	text-decoration-color: rgba(78, 84, 112, .45);
}

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

.empty-note {
	padding: 1.5rem;
	border: 1px dashed var(--line);
	border-radius: var(--radius);
	color: var(--muted);
	font-family: var(--font-head);
}

.lead {
	font-size: 1.25rem;
	line-height: 1.55;
	margin: 0 0 1.5rem;
}

/* 4. Boutons, badges, pastilles ============================================ */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	min-height: 2.75rem;
	padding: .625rem 1.25rem;
	border: 2px solid transparent;
	border-radius: var(--radius-pill);
	font-family: var(--font-head);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease);
}

.btn .icon {
	width: 1.125rem;
	height: 1.125rem;
}

.btn:hover .icon--arrow-right {
	transform: translateX(3px);
}

.btn .icon--arrow-right {
	transition: transform .2s var(--ease);
}

.btn[hidden] {
	display: none;
}

.btn--accent {
	background: var(--accent);
	color: #FFFFFF;
}

.btn--accent:hover {
	background: var(--accent-strong);
	color: #FFFFFF;
}

.btn--ghost {
	border-color: var(--text);
	color: var(--text);
}

.btn--ghost:hover {
	background: var(--text);
	color: var(--bg);
}

.btn--signal {
	background: var(--accent-on-ink);
	color: var(--ink);
}

.btn--signal:hover {
	background: #FFB48C;
	color: var(--ink);
}

.btn--ghost-ink {
	border-color: var(--muted-on-ink);
	color: var(--on-ink);
}

.btn--ghost-ink:hover {
	border-color: var(--on-ink);
	background: rgba(245, 243, 238, .08);
	color: var(--on-ink);
}

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	min-height: 2.75rem;
	font-family: var(--font-head);
	font-size: .9375rem;
	font-weight: 600;
	color: var(--accent2);
	text-decoration: none;
}

.link-arrow:hover {
	color: var(--accent);
	text-decoration: underline;
}

.link-arrow .icon {
	width: 1.125rem;
	height: 1.125rem;
	transition: transform .2s var(--ease);
}

.link-arrow:hover .icon--arrow-right {
	transform: translateX(3px);
}

.badge {
	display: inline-flex;
	align-items: center;
	gap: .35rem;
	padding: .3rem .55rem;
	border: 1px solid transparent;
	border-radius: 6px;
	font-family: var(--font-mono);
	font-size: .6875rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: .08em;
	text-transform: uppercase;
	white-space: nowrap;
}

.badge--methode {
	background: var(--accent2-soft);
	color: var(--accent2);
}

.badge--trame {
	background: var(--accent-soft);
	color: var(--accent);
}

.badge--point_juridique {
	background: var(--ink);
	color: var(--on-ink);
}

.badge--analyse {
	border-color: var(--text);
	color: var(--text);
}

.chips {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.chip {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	min-height: 2.25rem;
	padding: .3rem .875rem;
	border: 1px solid var(--line);
	border-radius: var(--radius-pill);
	background: var(--surface);
	font-family: var(--font-head);
	font-size: .9rem;
	font-weight: 600;
	line-height: 1.25;
	color: var(--text);
	text-decoration: none;
}

a.chip {
	min-height: 2.75rem;
	transition: border-color .2s, color .2s, background-color .2s;
}

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

.chip .icon {
	width: 1.05rem;
	height: 1.05rem;
	color: var(--accent2);
}

.chip__node {
	width: .625rem;
	height: .625rem;
	border: 2px solid var(--accent2);
	border-radius: 50%;
	background: var(--accent2-soft);
}

.chip__count {
	font-family: var(--font-mono);
	font-size: .75rem;
	color: var(--muted);
}

.tags {
	display: flex;
	flex-wrap: wrap;
	gap: .4rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tag {
	padding: .25rem .6rem;
	border: 1px solid var(--line);
	border-radius: 6px;
	background: var(--bg);
	font-family: var(--font-mono);
	font-size: .8125rem;
	line-height: 1.4;
	color: var(--text);
}

.picto {
	display: inline-grid;
	place-items: center;
	flex-shrink: 0;
	width: 3rem;
	height: 3rem;
	border-radius: 12px;
	background: var(--accent2-soft);
	color: var(--accent2);
}

.picto .icon {
	width: 1.5rem;
	height: 1.5rem;
}

.picto--lg {
	width: 3.5rem;
	height: 3.5rem;
	border-radius: 14px;
}

.picto--lg .icon {
	width: 1.75rem;
	height: 1.75rem;
}

/* 5. En-tête et menu ======================================================= */
.site-header {
	position: relative;
	z-index: 20;
	border-bottom: 1px solid var(--line);
	background: var(--bg);
}

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

.logo {
	--logo-ink: var(--text);
	--logo-accent: var(--accent);
	--logo-bg: var(--bg);
	--logo-tld: var(--muted);
	display: inline-flex;
	align-items: center;
	gap: .625rem;
	min-height: 2.75rem;
	flex-shrink: 0;
	color: var(--logo-ink);
	text-decoration: none;
}

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

.logo--light {
	--logo-ink: var(--on-ink);
	--logo-accent: var(--accent-on-ink);
	--logo-bg: var(--ink);
	--logo-tld: var(--muted-on-ink);
}

.logo__mark {
	width: 2rem;
	height: 2rem;
}

.logo__stroke {
	stroke: var(--logo-ink);
}

.logo__node {
	fill: var(--logo-ink);
	stroke: var(--logo-bg);
	stroke-width: 1.5;
}

.logo__node--lead {
	fill: var(--logo-accent);
	transform-box: fill-box;
	transform-origin: center;
	transition: transform .3s var(--ease);
}

.logo:hover .logo__node--lead {
	transform: scale(1.15);
}

.logo__word {
	font-family: var(--font-head);
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -.015em;
	color: var(--logo-ink);
	white-space: nowrap;
}

.logo__dot {
	color: var(--logo-accent);
}

.logo__tld {
	margin-left: .05em;
	font-family: var(--font-mono);
	font-size: .82em;
	font-weight: 500;
	letter-spacing: 0;
	color: var(--logo-tld);
}

.site-nav {
	display: flex;
	align-items: center;
	margin-left: auto;
}

.menu {
	display: flex;
	flex-wrap: wrap;
	margin: 0;
	padding: 0;
	list-style: none;
}

.menu--primary a {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 2.75rem;
	padding: .25rem .625rem;
	border-radius: 8px;
	font-family: var(--font-head);
	font-size: .9375rem;
	font-weight: 600;
	color: var(--text);
	text-decoration: none;
}

.menu--primary a::after {
	content: "";
	position: absolute;
	left: .625rem;
	right: .625rem;
	bottom: .4rem;
	height: 2px;
	border-radius: 2px;
	background: var(--accent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .2s var(--ease);
}

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

.menu--primary a:hover::after,
.menu--primary a[aria-current="page"]::after,
.menu--primary .is-section > a::after,
.menu--primary .current-menu-item > a::after {
	transform: scaleX(1);
}

.menu--primary a[aria-current="page"],
.menu--primary .is-section > a {
	color: var(--accent);
}

.menu-toggle {
	display: none;
	align-items: center;
	gap: .5rem;
	min-width: 2.75rem;
	min-height: 2.75rem;
	margin-left: auto;
	padding: .5rem .875rem;
	border: 1px solid var(--line);
	border-radius: var(--radius-pill);
	background: var(--surface);
	color: var(--text);
	font-family: var(--font-head);
	font-size: .9375rem;
	font-weight: 600;
	cursor: pointer;
}

.menu-toggle__close,
.menu-toggle[aria-expanded="true"] .menu-toggle__open {
	display: none;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__close {
	display: inline-block;
}

.site-nav__search {
	display: none;
}

.header-search {
	position: relative;
}

.header-search > summary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	border: 1px solid var(--line);
	border-radius: 50%;
	background: var(--surface);
	color: var(--text);
	list-style: none;
	cursor: pointer;
	transition: border-color .2s, color .2s;
}

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

.header-search > summary:hover,
.header-search[open] > summary {
	border-color: var(--accent2);
	color: var(--accent2);
}

.header-search__panel {
	position: absolute;
	right: 0;
	top: calc(100% + .5rem);
	z-index: 30;
	width: min(22rem, calc(100vw - 2rem));
	padding: .75rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	box-shadow: var(--shadow-lift);
}

.search-form {
	display: flex;
	align-items: stretch;
	gap: .5rem;
}

.search-form__input {
	flex: 1;
	min-width: 0;
	min-height: 2.75rem;
	padding: .5rem 1rem;
	border: 1px solid var(--muted);
	border-radius: var(--radius-pill);
	background: var(--surface);
	color: var(--text);
	font-family: var(--font-head);
	font-size: 1rem;
}

.search-form__input::placeholder {
	color: var(--muted);
	opacity: 1;
}

.search-form__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 2.75rem;
	min-height: 2.75rem;
	border: 0;
	border-radius: 50%;
	background: var(--accent2);
	color: #FFFFFF;
	cursor: pointer;
	transition: background-color .2s;
}

.search-form__submit:hover {
	background: var(--text);
}

@media (max-width: 67.49rem) {
	.no-js .site-header__inner {
		flex-wrap: wrap;
		padding-block: .5rem;
	}

	.no-js .site-nav {
		order: 3;
		width: 100%;
		margin-left: 0;
	}

	/* Sans JS, la loupe reste à droite : son panneau (ancré à droite) ne sort pas de l'écran. */
	.no-js .header-search {
		margin-left: auto;
	}

	.js .menu-toggle {
		display: inline-flex;
	}

	.js .site-nav {
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		display: none;
		flex-direction: column;
		align-items: stretch;
		gap: 1rem;
		max-height: calc(100vh - 4.5rem);
		overflow-y: auto;
		padding: .75rem var(--gutter) 1.5rem;
		border-bottom: 1px solid var(--line);
		background: var(--surface);
		box-shadow: var(--shadow-lift);
	}

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

	.js .menu--primary {
		flex-direction: column;
	}

	.js .menu--primary a {
		padding: .625rem 0;
		border-bottom: 1px solid var(--line);
		border-radius: 0;
		font-size: 1.0625rem;
	}

	.js .menu--primary a::after {
		left: 0;
		right: auto;
		bottom: .35rem;
		width: 2rem;
	}

	.js .site-nav__search {
		display: block;
	}

	.js .header-search {
		display: none;
	}
}

/* 6. Pied de page ========================================================== */
.site-footer {
	--focus: var(--accent2-on-ink);
	padding: var(--space-xl) 0 2rem;
	background: var(--ink);
	color: var(--on-ink);
}

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

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

.site-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 2.5rem;
}

@media (min-width: 45rem) {
	.site-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 64rem) {
	.site-footer__grid {
		grid-template-columns: 1.4fr 1fr 1fr 1fr;
	}
}

.site-footer__tagline {
	max-width: 32ch;
	margin: 1rem 0 1.5rem;
	color: var(--muted-on-ink);
}

.site-footer .btn--signal,
.site-footer .btn--signal:hover {
	color: var(--ink);
}

.footer-title {
	margin: 0 0 .75rem;
	font-family: var(--font-mono);
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--muted-on-ink);
}

.footer-list {
	display: grid;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-list a {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	min-height: 2.75rem;
	font-family: var(--font-head);
	font-size: .9375rem;
	text-decoration: none;
}

.footer-list a:hover {
	text-decoration: underline;
}

.footer-list__num {
	min-width: 1.75rem;
	font-family: var(--font-mono);
	font-size: .75rem;
	color: var(--accent2-on-ink);
}

.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: .5rem 1.5rem;
	margin-top: 3rem;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(185, 189, 211, .25);
	font-family: var(--font-mono);
	font-size: .8125rem;
	color: var(--muted-on-ink);
}

.site-footer__bottom p {
	margin: 0;
}

.site-footer__sig {
	color: var(--accent2-on-ink);
}

/* 7. Motifs SVG ============================================================ */

/* Impulsion : onde fine qui s'aplatit en ligne droite sur les côtés. */
.pulse {
	display: flex;
	align-items: center;
	margin-block: var(--space-l);
	color: var(--accent2);
}

.pulse__line {
	flex: 1;
	height: 1.5px;
	background: currentColor;
}

.pulse__wave {
	flex: 0 0 auto;
	width: 10rem;
	height: 2.5rem;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.pulse--footer {
	margin-bottom: 0;
}

/* Arcs de signal derrière les numéros de chapitre (accent2 à 20 %). */
.num-arcs {
	position: relative;
	isolation: isolate;
	display: inline-block;
}

.num-arcs .arcs {
	position: absolute;
	left: .4em;
	top: -.22em;
	z-index: -1;
	width: 1.5em;
	height: auto;
	color: var(--accent2);
	opacity: .2;
}

/* 8. Cartes et grilles bento ============================================== */
.card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: .625rem;
	min-width: 0;
	padding: 1.375rem 1.375rem 1.25rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	box-shadow: var(--shadow);
	transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}

.card::before {
	content: "";
	position: absolute;
	left: -1px;
	right: -1px;
	top: -1px;
	height: 3px;
	border-radius: var(--radius) var(--radius) 0 0;
	background: var(--accent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .3s var(--ease);
}

.card:hover,
.card:focus-within {
	box-shadow: var(--shadow-lift);
	transform: translateY(-2px);
}

.card:hover::before,
.card:focus-within::before {
	transform: scaleX(1);
}

.card__eyebrow {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .5rem .75rem;
	margin: 0;
	font-family: var(--font-mono);
	font-size: .6875rem;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--muted);
}

.card__cat {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
}

.card__picto {
	width: 1rem;
	height: 1rem;
	color: var(--accent2);
}

.card__title {
	margin: 0;
	font-size: 1.1875rem;
	line-height: 1.25;
}

.card__link {
	color: var(--text);
	text-decoration: none;
}

.card__link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: inherit;
}

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

.card__link:focus-visible {
	outline: none;
}

.card__link:focus-visible::after {
	outline: 3px solid var(--focus);
	outline-offset: 2px;
	border-radius: var(--radius);
}

.card__excerpt {
	margin: 0;
	font-size: 1rem;
	line-height: 1.55;
	color: var(--muted);
}

.card__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: .5rem 1rem;
	margin: auto 0 0;
	padding-top: .5rem;
	font-family: var(--font-mono);
	font-size: .75rem;
	color: var(--muted);
}

.card__foot > span {
	display: inline-flex;
	align-items: center;
	gap: .35rem;
}

.card__foot .icon {
	width: 1rem;
	height: 1rem;
	color: var(--accent2);
}

.card--large .card__title {
	font-size: clamp(1.3125rem, 1.15rem + .6vw, 1.625rem);
}

.card--large .card__excerpt {
	font-size: 1.0625rem;
}

.card--chapter .card__num {
	align-self: flex-start;
	margin: .25rem 0 .125rem;
	font-family: var(--font-mono);
	font-size: 4rem;
	font-weight: 700;
	line-height: .9;
	letter-spacing: -.05em;
	color: var(--accent);
}

.card--feature {
	padding: clamp(1.5rem, 3vw, 2.25rem);
}

.card--feature .card__num {
	font-size: clamp(4.5rem, 3.5rem + 3vw, 6rem);
}

.card--feature .card__title {
	font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem);
	max-width: 20ch;
}

.card--feature .card__excerpt {
	max-width: 52ch;
	font-size: 1.0625rem;
}

/* Petits écrans : numéro à gauche du texte, pour une liste de chapitres compacte. */
@media (max-width: 39.99rem) {
	.card--chapter:not(.card--feature) {
		display: grid;
		grid-template-columns: auto minmax(0, 1fr);
		align-items: start;
		gap: .375rem 1rem;
	}

	.card--chapter:not(.card--feature) > * {
		grid-column: 2;
	}

	.card--chapter:not(.card--feature) > .card__num {
		grid-column: 1;
		grid-row: 1 / span 4;
		margin: 0;
		font-size: 3.5rem;
	}
}

.card__go {
	font-family: var(--font-head);
	font-size: .9375rem;
	font-weight: 600;
	letter-spacing: 0;
	color: var(--accent2);
}

.card__go .icon {
	transition: transform .2s var(--ease);
}

.card:hover .card__go .icon {
	transform: translateX(3px);
}

.bento {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	grid-auto-flow: dense;
	gap: 1rem;
}

@media (min-width: 40rem) {
	.bento {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}

	.bento > * {
		grid-column: span 3;
	}

	.bento--guide > :first-child,
	.bento--archive > .card--large {
		grid-column: span 6;
	}
}

@media (min-width: 64rem) {
	.bento--guide,
	.bento--quick,
	.bento--archive {
		grid-template-columns: repeat(12, minmax(0, 1fr));
	}

	/* Guide : 1 grande carte (2 × 2), 4 cartes autour, puis rangées de 3 et de 4. */
	.bento--guide > * {
		grid-column: span 3;
	}

	.bento--guide > :first-child {
		grid-column: span 6;
		grid-row: span 2;
	}

	.bento--guide > :nth-child(n + 6):nth-child(-n + 8),
	.bento--guide > :nth-child(n + 13) {
		grid-column: span 4;
	}

	/* Plus pressé : 7 + 5, puis 5 + 7. */
	.bento--quick > :nth-child(4n + 1),
	.bento--quick > :nth-child(4n) {
		grid-column: span 7;
	}

	.bento--quick > :nth-child(4n + 2),
	.bento--quick > :nth-child(4n + 3) {
		grid-column: span 5;
	}

	/* Archives : première carte large, puis trois colonnes. */
	.bento--archive > * {
		grid-column: span 4;
	}

	.bento--archive > .card--large {
		grid-column: span 8;
	}
}

/* 9. Accueil =============================================================== */
.section {
	padding-block: var(--space-l) 0;
}

.section-head {
	display: grid;
	gap: .5rem;
	max-width: 46rem;
	margin-bottom: 2rem;
}

.section-head .eyebrow {
	margin: 0;
}

.section-head h2 {
	margin: 0;
	font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.625rem);
	letter-spacing: -.02em;
}

.section-head p {
	margin: 0;
	font-size: 1.125rem;
	color: var(--muted);
}

.section-head--split {
	max-width: none;
}

@media (min-width: 60rem) {
	.section-head--split {
		grid-template-columns: minmax(0, 46rem) auto;
		align-items: end;
		justify-content: space-between;
		gap: 2rem;
	}

	.section-head--split > div {
		display: grid;
		gap: .5rem;
	}
}

/* Bandeau encre : grille de points, réseau, fuseaux horaires. */
.hero {
	--focus: var(--accent2-on-ink);
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding-block: clamp(3rem, 8vw, 6rem);
	background: var(--ink);
	color: var(--on-ink);
}

.hero__dots {
	position: absolute;
	inset: 0;
	z-index: -1;
	width: 100%;
	height: 100%;
	color: var(--muted-on-ink);
	opacity: .25;
}

.hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-items: center;
	gap: 2.5rem;
}

@media (min-width: 60rem) {
	.hero__grid {
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
		gap: 3rem;
	}
}

.hero .eyebrow {
	color: var(--accent2-on-ink);
}

.hero__title {
	max-width: 17ch;
	margin-bottom: 1.25rem;
	font-size: clamp(2.125rem, 1.35rem + 3.4vw, 4rem);
	line-height: 1.04;
	letter-spacing: -.025em;
	color: var(--on-ink);
}

.hero__lead {
	max-width: 58ch;
	font-size: clamp(1.125rem, 1rem + .4vw, 1.3125rem);
	line-height: 1.6;
	color: var(--muted-on-ink);
}

.hero__ctas {
	display: flex;
	flex-wrap: wrap;
	gap: .75rem;
	margin: 2rem 0 0;
}

.hero__stats {
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem 2.5rem;
	margin: 2.5rem 0 0;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(185, 189, 211, .25);
}

.hero__stats div,
.stats div {
	display: flex;
	flex-direction: column-reverse;
}

.hero__stats dd,
.stats dd {
	margin: 0;
	font-family: var(--font-mono);
	font-size: 2rem;
	font-weight: 700;
	line-height: 1;
	color: var(--accent-on-ink);
}

.hero__stats dt,
.stats dt {
	margin-top: .375rem;
	font-family: var(--font-head);
	font-size: .875rem;
	color: var(--muted-on-ink);
}

.hero__aside {
	position: relative;
	max-width: 36rem;
}

.hero__network {
	display: block;
	width: 100%;
	height: auto;
}

.net-link {
	fill: none;
	stroke: var(--muted-on-ink);
	stroke-width: 1.5;
	opacity: .55;
}

.net-link--signal {
	stroke: var(--accent-on-ink);
	stroke-width: 2;
	opacity: 1;
}

.net-node {
	fill: var(--ink);
	stroke: var(--on-ink);
	stroke-width: 2;
}

.net-node--signal {
	fill: var(--accent-on-ink);
	stroke: var(--accent-on-ink);
}

.net-halo {
	fill: none;
	stroke: var(--accent-on-ink);
	stroke-width: 1.5;
	opacity: .45;
	transform-box: fill-box;
	transform-origin: center;
}

@media (prefers-reduced-motion: no-preference) {
	.net-halo {
		animation: emg-halo 3.2s var(--ease) infinite;
	}
}

@keyframes emg-halo {
	0% {
		opacity: .7;
		transform: scale(.6);
	}

	100% {
		opacity: 0;
		transform: scale(1.7);
	}
}

.clocks {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	margin: 1rem 0 0;
	padding: 0;
	list-style: none;
}

.clock {
	display: grid;
	justify-items: center;
	gap: .4rem;
	font-family: var(--font-mono);
	font-size: .8125rem;
	letter-spacing: .04em;
	color: var(--muted-on-ink);
}

.clock svg {
	width: 3rem;
	height: 3rem;
}

.clock__face {
	fill: none;
	stroke: var(--on-ink);
	stroke-width: 1.5;
	opacity: .85;
}

.clock__face--async {
	stroke: var(--accent2-on-ink);
	stroke-dasharray: 3 3.5;
	opacity: 1;
}

.clock__hand {
	fill: none;
	stroke: var(--on-ink);
	stroke-width: 2;
	stroke-linecap: round;
}

.clock__hand--async {
	stroke: var(--accent2-on-ink);
}

.clock__pin {
	fill: var(--accent-on-ink);
}

.clock--async {
	color: var(--accent2-on-ink);
}

/* Rubriques : grille de deux colonnes (une sous 720 px). */
.rubriques {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1rem;
}

@media (min-width: 45rem) {
	.rubriques {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.rubrique-panel {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	min-width: 0;
	padding: clamp(1.25rem, 3vw, 2rem);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background: var(--surface);
	box-shadow: var(--shadow);
}

.rubrique-panel__head {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
}

.rubrique-panel__title {
	margin: 0 0 .375rem;
	font-size: 1.375rem;
}

.rubrique-panel__title a {
	text-decoration: none;
}

.rubrique-panel__title a:hover {
	text-decoration: underline;
}

.rubrique-panel__text {
	margin: 0;
	color: var(--muted);
}

.rubrique-panel__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: .5rem 1rem;
	margin-top: auto;
}

.rubrique-panel__guide {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .375rem;
	margin: 0;
}

.rubrique-panel__guide-label {
	margin-right: .25rem;
	font-family: var(--font-mono);
	font-size: .6875rem;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--muted);
}

.numchip {
	display: inline-grid;
	place-items: center;
	min-width: 2.75rem;
	height: 2.75rem;
	padding: 0 .5rem;
	border: 1px solid var(--line);
	border-radius: 50%;
	font-family: var(--font-mono);
	font-size: .875rem;
	font-weight: 700;
	color: var(--accent);
	text-decoration: none;
	transition: border-color .2s, background-color .2s;
}

.numchip:hover {
	border-color: var(--accent);
	background: var(--accent-soft);
}

.mini-list {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--line);
}

.mini-list li {
	border-bottom: 1px solid var(--line);
}

.mini-list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .75rem 1rem;
	min-height: 2.75rem;
	padding: .625rem 0;
	font-family: var(--font-head);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.35;
	color: var(--text);
	text-decoration: none;
}

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

.mini-list a:hover .mini-list__text {
	text-decoration: underline;
}

.mini-list__text {
	flex: 1;
	min-width: 0;
}

.mini-list .icon {
	width: 1rem;
	height: 1rem;
	color: var(--accent2);
}

.mini-list__num {
	flex-shrink: 0;
	min-width: 2rem;
	font-family: var(--font-mono);
	font-size: .875rem;
	font-weight: 700;
	color: var(--accent);
}

/* Appel au lexique : panneau encre, touches AZERTY décoratives. */
.lexique-cta {
	--focus: var(--accent2-on-ink);
	position: relative;
	display: grid;
	gap: 2rem;
	padding: clamp(1.75rem, 5vw, 3.5rem);
	border-radius: var(--radius-xl);
	background: var(--ink);
	color: var(--on-ink);
	overflow: hidden;
}

@media (min-width: 60rem) {
	.lexique-cta {
		grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
		align-items: center;
	}
}

.lexique-cta .eyebrow {
	color: var(--accent2-on-ink);
}

.lexique-cta .eyebrow .icon {
	color: var(--accent2-on-ink);
}

.lexique-cta h2 {
	margin-bottom: .75rem;
	font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem);
	color: var(--on-ink);
}

.lexique-cta p {
	max-width: 52ch;
	font-size: 1.125rem;
	color: var(--muted-on-ink);
}

.lexique-cta__action {
	margin: 1.75rem 0 0;
}

.keys-deco {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: .5rem;
	width: 100%;
	max-width: 22rem;
	justify-self: center;
}

.keys-deco span {
	display: grid;
	place-items: center;
	aspect-ratio: 1;
	border: 1px solid rgba(185, 189, 211, .4);
	border-radius: 8px;
	box-shadow: inset 0 -3px 0 rgba(185, 189, 211, .18);
	font-family: var(--font-mono);
	font-size: clamp(.875rem, .7rem + .6vw, 1.125rem);
	font-weight: 700;
	color: var(--muted-on-ink);
}

.keys-deco .is-lit {
	border-color: var(--accent-on-ink);
	background: var(--accent-on-ink);
	box-shadow: inset 0 -3px 0 rgba(26, 30, 58, .2);
	color: var(--ink);
}

.keys-deco .is-signal {
	border-color: var(--accent2-on-ink);
	color: var(--accent2-on-ink);
}

/* Méthode éditoriale. */
.section--note {
	padding-bottom: 0;
}

.note-panel {
	display: grid;
	gap: 1.25rem;
	padding: clamp(1.5rem, 4vw, 2.5rem);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background: var(--surface);
}

@media (min-width: 48rem) {
	.note-panel {
		grid-template-columns: auto minmax(0, 1fr);
		align-items: start;
	}
}

.note-panel__title {
	font-size: 1.375rem;
}

.note-panel p {
	max-width: var(--measure);
	margin: 0;
	font-size: 1.0625rem;
}

/* 10. En-têtes de pages ==================================================== */
.breadcrumb {
	margin: 0 0 1rem;
	font-family: var(--font-head);
	font-size: .875rem;
	color: var(--muted);
}

.breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 .5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.breadcrumb li {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	min-width: 0;
}

.breadcrumb li + li::before {
	content: "/";
	content: "/" / ""; /* Séparateur décoratif : non lu par les lecteurs d'écran. */
	font-family: var(--font-mono);
	color: var(--line);
}

.breadcrumb a {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	color: var(--muted);
	text-decoration-color: rgba(78, 84, 112, .4);
}

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

.breadcrumb [aria-current] {
	padding-block: .6rem;
	font-weight: 600;
	color: var(--text);
}

.page-head {
	padding: clamp(1rem, 3vw, 1.75rem) 0 clamp(1.75rem, 4vw, 2.75rem);
}

.page-title {
	max-width: 24ch;
	margin: 0 0 1rem;
	font-size: clamp(2rem, 1.35rem + 2.6vw, 3.25rem);
	line-height: 1.08;
	letter-spacing: -.02em;
}

.chapo {
	max-width: 62ch;
	margin: 0 0 1.25rem;
	font-size: clamp(1.1875rem, 1.05rem + .5vw, 1.375rem);
	line-height: 1.55;
	color: var(--text);
}

.meta-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .5rem 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
	font-family: var(--font-mono);
	font-size: .8125rem;
	color: var(--muted);
}

.meta-row li {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	min-height: 2rem;
}

.meta-row .icon {
	width: 1rem;
	height: 1rem;
	color: var(--accent2);
}

.meta-row a {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	color: var(--muted);
}

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

/* Chapitre : numéro monumental sur arcs de signal. */
.chapter-head {
	padding: clamp(1rem, 3vw, 1.75rem) 0 clamp(2rem, 5vw, 3.25rem);
}

.chapter-head__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-items: start;
	gap: .75rem 3rem;
}

@media (min-width: 52rem) {
	.chapter-head__grid {
		grid-template-columns: auto minmax(0, 1fr);
	}
}

.chapter-number {
	padding-top: .1em;
	font-family: var(--font-mono);
	font-size: clamp(4rem, 2.6rem + 6vw, 6rem);
	font-weight: 700;
	line-height: .85;
	letter-spacing: -.05em;
	color: var(--accent);
}

.chapter-number .arcs {
	left: .5em;
	top: -.25em;
	width: 1.8em;
}

.chapter-head__title {
	max-width: 22ch;
}

/* Article. */
.article-head__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .75rem 2rem;
}

.audience {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .5rem .75rem;
}

.audience__label {
	margin: 0;
	font-family: var(--font-mono);
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--muted);
}

.chip--audience {
	min-height: 2rem;
	font-size: .875rem;
}

/* Rubrique. */
.archive-head__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 2rem;
}

@media (min-width: 64rem) {
	.archive-head__grid--aside {
		grid-template-columns: minmax(0, 1fr) 21rem;
		align-items: start;
		gap: 3rem;
	}
}

.archive-head .picto {
	margin-bottom: 1rem;
}

.archive-desc {
	max-width: var(--measure);
	font-size: 1.125rem;
	line-height: 1.65;
}

.archive-desc p:last-child {
	margin-bottom: 1rem;
}

.inguide-list {
	padding: 1.25rem 1.25rem .5rem;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background: var(--surface);
}

.inguide-list .mini-list {
	margin-top: .75rem;
}

.inguide-list .mini-list li:last-child {
	border-bottom: 0;
}

.archive-body {
	padding-bottom: var(--space-l);
}

.archive-body__intro {
	margin: -.5rem 0 1rem;
}

/* 11. Lecture : grille, panneau, sommaire, contenu ========================= */
.reading-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-items: start;
	gap: 1.25rem;
	padding-bottom: var(--space-l);
}

.reading-aside {
	display: grid;
	gap: 1rem;
	min-width: 0;
}

.reading-panel {
	min-width: 0;
	padding: clamp(1.5rem, 5vw, 3.5rem) clamp(1rem, 5vw, 3.5rem);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background: var(--surface);
	box-shadow: var(--shadow);
}

.reading-col {
	max-width: var(--measure);
	margin-inline: auto;
	font-size: 1.1875rem;
}

@media (min-width: 68.75rem) {
	.reading-layout {
		grid-template-columns: minmax(0, 1fr) 18rem;
		gap: 2.5rem;
	}

	.reading-layout--solo {
		grid-template-columns: minmax(0, 1fr);
	}

	.reading-panel {
		grid-column: 1;
		grid-row: 1;
	}

	.reading-aside {
		position: sticky;
		top: 1.25rem;
		grid-column: 2;
		grid-row: 1;
		max-height: calc(100vh - 2.5rem);
		margin: -6px;
		padding: 6px;
		overflow-y: auto;
		overscroll-behavior: contain;
	}

	.admin-bar .reading-aside {
		top: calc(32px + 1.25rem);
	}
}

.toc {
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
}

.toc__summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .5rem;
	min-height: 2.75rem;
	padding: .75rem 1rem;
	font-family: var(--font-mono);
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--muted);
	list-style: none;
	cursor: pointer;
}

.toc__summary::-webkit-details-marker {
	display: none;
}

.toc__summary .icon {
	width: 1rem;
	height: 1rem;
	transition: transform .2s var(--ease);
}

.toc[open] .toc__summary .icon {
	transform: rotate(180deg);
}

.toc__list {
	display: grid;
	gap: .125rem;
	margin: 0;
	padding: 0 .75rem .875rem;
	list-style: none;
	counter-reset: toc;
}

.toc__list li {
	counter-increment: toc;
}

.toc__list a {
	display: grid;
	grid-template-columns: 1.75rem minmax(0, 1fr);
	align-content: center;
	gap: .25rem;
	min-height: 2.75rem;
	padding: .5rem .5rem .5rem .25rem;
	border-radius: 6px;
	font-family: var(--font-head);
	font-size: .9rem;
	line-height: 1.35;
	color: var(--text);
	text-decoration: none;
}

.toc__list a::before {
	content: counter(toc, decimal-leading-zero);
	padding-top: .1rem;
	font-family: var(--font-mono);
	font-size: .75rem;
	color: var(--muted);
}

.toc__list a:hover {
	background: var(--bg);
	color: var(--accent);
}

.toc__list a.is-active {
	background: var(--accent2-soft);
	color: var(--text);
}

.toc__list a.is-active::before {
	color: var(--accent2);
	font-weight: 700;
}

/* Contenu rédigé. */
.entry {
	font-size: 1.1875rem;
	line-height: 1.65;
	overflow-wrap: break-word;
	-webkit-hyphens: auto;
	hyphens: auto;
}

.entry p,
.entry ul,
.entry ol,
.entry blockquote,
.entry .table-scroll {
	margin: 0 0 1.15em;
}

.entry h2 {
	margin: 2.25em 0 .75em;
	padding-top: 1.25rem;
	border-top: 1px solid var(--line);
	font-size: clamp(1.5rem, 1.25rem + 1vw, 1.875rem);
	line-height: 1.2;
	scroll-margin-top: 1.5rem;
	-webkit-hyphens: manual;
	hyphens: manual;
}

.entry > h2:first-child {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
}

.entry h3 {
	margin: 1.75em 0 .5em;
	font-size: 1.25rem;
	line-height: 1.3;
	scroll-margin-top: 1.5rem;
	-webkit-hyphens: manual;
	hyphens: manual;
}

.entry ul {
	padding-left: 1.4em;
	list-style: none;
}

.entry ul > li {
	position: relative;
	margin-bottom: .45em;
}

.entry ul > li::before {
	content: "";
	position: absolute;
	left: -1.1em;
	top: .6em;
	width: .5em;
	height: .5em;
	border: 2px solid var(--accent2);
	border-radius: 50%;
	box-sizing: border-box;
}

.entry ol {
	padding-left: 1.6em;
}

.entry ol > li {
	margin-bottom: .45em;
	padding-left: .25em;
}

.entry ol > li::marker {
	font-family: var(--font-mono);
	font-size: .85em;
	font-weight: 700;
	color: var(--accent2);
}

.entry li > ul,
.entry li > ol {
	margin: .45em 0 0;
}

.entry a {
	text-decoration-color: var(--accent2);
}

.entry a:hover {
	color: var(--accent);
	text-decoration-color: currentColor;
}

.entry strong {
	font-weight: 700;
}

.entry blockquote {
	margin-inline: 0;
	padding: 1rem 1.25rem;
	border-left: 4px solid var(--accent2);
	border-radius: 0 var(--radius) var(--radius) 0;
	background: var(--bg);
	font-style: italic;
}

.entry blockquote p:last-child {
	margin-bottom: 0;
}

.table-scroll {
	max-width: 100%;
	overflow-x: auto;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	-webkit-overflow-scrolling: touch;
}

.entry table {
	width: 100%;
	border-collapse: collapse;
	font-family: var(--font-head);
	font-size: .9375rem;
	font-variant-numeric: tabular-nums;
	line-height: 1.45;
	-webkit-hyphens: manual;
	hyphens: manual;
}

.entry th,
.entry td {
	min-width: 8rem;
	padding: .7rem .9rem;
	border-bottom: 1px solid var(--line);
	text-align: left;
	vertical-align: top;
}

.entry thead th {
	border-bottom: 2px solid var(--text);
	background: var(--bg);
	font-size: .8125rem;
	font-weight: 700;
	letter-spacing: .02em;
}

.entry tbody tr:last-child td,
.entry tbody tr:last-child th {
	border-bottom: 0;
}

/* 12. Encadrés ============================================================= */
.box {
	margin: 0 0 2.25rem;
	padding: 1.25rem 1.375rem 1.375rem;
	border-radius: var(--radius);
	font-size: 1.0625rem;
	line-height: 1.55;
}

.box__title {
	display: flex;
	align-items: center;
	gap: .5rem;
	margin: 0 0 1rem;
	font-family: var(--font-mono);
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.box__title .icon {
	width: 1.125rem;
	height: 1.125rem;
}

.box__sub {
	margin: -.5rem 0 1rem;
	font-family: var(--font-head);
	font-size: .9375rem;
	color: var(--muted);
}

/* Points clés : puces en forme de nœuds reliés. */
.box--keypoints {
	border-left: 4px solid var(--accent2);
	background: var(--accent2-soft);
}

.box--keypoints .box__title {
	color: var(--accent2);
}

.nodes {
	margin: 0;
	padding: 0;
	list-style: none;
}

.nodes li {
	position: relative;
	margin: 0 0 .75rem;
	padding-left: 1.75rem;
}

.nodes li:last-child {
	margin-bottom: 0;
}

.nodes li::before {
	content: "";
	position: absolute;
	left: .125rem;
	top: .4em;
	z-index: 1;
	width: .75rem;
	height: .75rem;
	border: 2px solid var(--accent2);
	border-radius: 50%;
	background: var(--surface);
	box-sizing: border-box;
}

.nodes li:not(:last-child)::after {
	content: "";
	position: absolute;
	left: calc(.5rem - 1px);
	top: calc(.4em + .75rem);
	bottom: calc(-.75rem - .4em);
	width: 2px;
	background: var(--accent2);
	opacity: .4;
}

/* Passer à l'action : cases carrées dessinées en CSS (purement visuelles). */
.box--actions {
	margin-top: 2.5rem;
	border-left: 4px solid var(--accent);
	background: var(--accent-soft);
}

.box--actions .box__title {
	color: var(--accent);
}

.checks {
	display: grid;
	gap: .75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.checks li {
	position: relative;
	padding-left: 2rem;
}

.checks li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .2em;
	width: 1.125rem;
	height: 1.125rem;
	border: 2px solid var(--accent);
	border-radius: 3px;
	background: var(--surface);
	box-sizing: border-box;
}

/* À retenir : sobre. */
.box--retenir {
	border: 1px solid var(--line);
	border-top: 3px solid var(--text);
	background: var(--bg);
}

.box--retenir .box__title {
	color: var(--text);
}

.box--retenir .box__title .icon {
	color: var(--accent2);
}

.dash-list {
	display: grid;
	gap: .625rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.dash-list li {
	position: relative;
	padding-left: 1.5rem;
}

.dash-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .75em;
	width: .875rem;
	height: 2px;
	background: var(--accent2);
}

/* Dans le guide : chapitre de rattachement. */
.inguide {
	position: relative;
	display: grid;
	gap: .375rem;
	padding: 1.125rem 1.125rem 1rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	transition: border-color .2s, box-shadow .2s;
}

.inguide:hover,
.inguide:focus-within {
	border-color: var(--accent);
	box-shadow: var(--shadow-lift);
}

.inguide__label {
	display: flex;
	align-items: center;
	gap: .45rem;
	margin: 0;
	font-family: var(--font-mono);
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--accent2);
}

.inguide__label .icon {
	width: 1.125rem;
	height: 1.125rem;
}

.inguide__num {
	margin: .25rem 0 0;
	font-family: var(--font-mono);
	font-size: 2.75rem;
	font-weight: 700;
	line-height: .9;
	letter-spacing: -.05em;
	color: var(--accent);
}

.inguide__title {
	margin: 0;
	font-family: var(--font-head);
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.3;
}

.inguide__link {
	color: var(--text);
	text-decoration: none;
}

.inguide__link::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

.inguide__link:focus-visible {
	outline: none;
}

.inguide__link:focus-visible::after {
	outline: 3px solid var(--focus);
	outline-offset: 2px;
}

.inguide__chapter {
	display: block;
	margin-bottom: .125rem;
	font-family: var(--font-mono);
	font-size: .75rem;
	font-weight: 600;
	color: var(--muted);
}

.inguide__more {
	display: inline-flex;
	align-items: center;
	gap: .35rem;
	margin: .25rem 0 0;
	font-family: var(--font-head);
	font-size: .875rem;
	font-weight: 600;
	color: var(--accent2);
}

.inguide__more .icon {
	width: 1rem;
	height: 1rem;
}

/* FAQ. */
.panel-title {
	display: flex;
	align-items: center;
	gap: .6rem;
	margin: 0 0 1rem;
	font-size: 1.5rem;
}

.panel-title .icon {
	width: 1.5rem;
	height: 1.5rem;
	color: var(--accent2);
}

.faq {
	margin-top: 3rem;
	scroll-margin-top: 1.5rem;
}

.faq__item {
	border-top: 1px solid var(--line);
}

.faq__item:last-child {
	border-bottom: 1px solid var(--line);
}

.faq__item > summary {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	min-height: 2.75rem;
	padding: 1rem 0;
	font-family: var(--font-head);
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.35;
	list-style: none;
	cursor: pointer;
}

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

.faq__item > summary:hover {
	color: var(--accent);
}

.faq__icon {
	width: 1.25rem;
	height: 1.25rem;
	margin-top: .05rem;
	color: var(--accent2);
	transition: transform .25s var(--ease);
}

.faq__item[open] .faq__icon {
	transform: rotate(45deg);
}

.faq__answer {
	padding: 0 0 1.25rem;
	font-size: 1.0625rem;
	line-height: 1.6;
}

.faq__answer p:last-child {
	margin-bottom: 0;
}

/* Sources. */
.sources {
	margin-top: 2.75rem;
	padding-top: 1.5rem;
	border-top: 2px solid var(--text);
	scroll-margin-top: 1.5rem;
}

.sources .panel-title {
	font-size: 1.25rem;
}

.sources__list {
	display: grid;
	gap: .75rem;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: src;
}

.sources__list li {
	display: grid;
	grid-template-columns: 2.25rem minmax(0, 1fr);
	align-items: baseline;
	gap: .75rem;
	font-family: var(--font-head);
	font-size: .9375rem;
	line-height: 1.45;
	counter-increment: src;
}

.sources__list li::before {
	content: counter(src, decimal-leading-zero);
	padding: .1rem 0;
	border: 1px solid var(--accent2);
	border-radius: 4px;
	font-family: var(--font-mono);
	font-size: .75rem;
	font-weight: 700;
	text-align: center;
	color: var(--accent2);
}

.sources__list a {
	overflow-wrap: anywhere;
}

.sources__host {
	display: block;
	margin-top: .15rem;
	font-family: var(--font-mono);
	font-size: .75rem;
	color: var(--muted);
	overflow-wrap: anywhere;
}

/* 13. Chapitres : navigation, après lecture, ligne de métro =============== */
.chapter-nav {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1rem;
	padding-bottom: var(--space-l);
}

@media (min-width: 45rem) {
	.chapter-nav {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.chapter-nav__card {
	position: relative;
	display: grid;
	align-content: start;
	gap: .625rem;
	min-height: 11rem;
	padding: 1.5rem;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background: var(--surface);
	box-shadow: var(--shadow);
	color: var(--text);
	text-decoration: none;
	overflow: hidden; /* Arcs du numéro contenus dans la carte (le contour de focus reste visible). */
	transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}

.chapter-nav__card:hover {
	border-color: var(--accent);
	box-shadow: var(--shadow-lift);
	color: var(--text);
	transform: translateY(-2px);
}

.chapter-nav__card--next {
	justify-items: end;
	text-align: right;
}

.chapter-nav__dir {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	font-family: var(--font-mono);
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--muted);
}

.chapter-nav__dir .icon {
	width: 1.25rem;
	height: 1.25rem;
	color: var(--accent);
	transition: transform .25s var(--ease);
}

.chapter-nav__card--prev:hover .chapter-nav__dir .icon {
	transform: translateX(-4px);
}

.chapter-nav__card--next:hover .chapter-nav__dir .icon {
	transform: translateX(4px);
}

.chapter-nav__num {
	font-family: var(--font-mono);
	font-size: 3.5rem;
	font-weight: 700;
	line-height: .9;
	letter-spacing: -.05em;
	color: var(--accent);
}

.chapter-nav__num--icon {
	display: inline-grid;
	place-items: center;
	width: 3.25rem;
	height: 3.25rem;
	border-radius: 14px;
	background: var(--accent2-soft);
	color: var(--accent2);
}

.chapter-nav__num--icon .icon {
	width: 1.75rem;
	height: 1.75rem;
}

.chapter-nav__title {
	max-width: 32ch;
	font-family: var(--font-head);
	font-size: 1.1875rem;
	font-weight: 700;
	line-height: 1.25;
}

.chapter-nav__card:hover .chapter-nav__title {
	color: var(--accent);
}

.chapter-nav__back {
	grid-column: 1 / -1;
	justify-self: center;
	margin: 0;
}

.after-reading {
	display: grid;
	gap: var(--space-l);
	padding-bottom: var(--space-l);
}

.after-reading:empty {
	display: none;
}

.related__head {
	margin-bottom: 1.25rem;
}

.related__title {
	margin: 0;
	font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem);
}

.related__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1rem;
}

@media (min-width: 40rem) {
	.related__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 64rem) {
	.related__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.term-chips__title {
	display: flex;
	align-items: center;
	gap: .5rem;
	margin: 0 0 1rem;
	font-size: 1.25rem;
}

.term-chips__title .icon {
	color: var(--accent2);
}

.term-chips--inline {
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--line);
}

.term-chips--inline .term-chips__title {
	font-size: 1.125rem;
}

.same-part .mini-list {
	max-width: 48rem;
}

/* Ligne de métro du sommaire. */
.sommaire-line {
	padding-bottom: var(--space-l);
}

.metro-panel {
	padding: clamp(1.25rem, 4vw, 2.75rem);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background: var(--surface);
	box-shadow: var(--shadow);
}

.metro {
	--rail: 1.375rem;
	max-width: 54rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.metro__part {
	scroll-margin-top: 1.5rem;
}

.metro__head,
.station {
	position: relative;
	display: grid;
	grid-template-columns: 2.75rem minmax(0, 1fr);
	column-gap: 1.125rem;
}

/* Rail : un segment par rangée, continu d'une partie à l'autre. */
.metro__head::before,
.station::before {
	content: "";
	position: absolute;
	left: calc(var(--rail) - 1.5px);
	top: 0;
	bottom: 0;
	width: 3px;
	border-radius: 3px;
	background: var(--accent2);
	opacity: .28;
	transition: background-color .25s, opacity .25s;
}

.metro__part:first-child .metro__head::before {
	top: var(--rail);
}

.metro__part:last-child .station:last-child::before {
	bottom: auto;
	height: var(--rail);
}

.metro__head {
	padding: 2rem 0 1.25rem;
}

.metro__part:first-child .metro__head {
	padding-top: 0;
}

/* Correspondance : grand cercle cerné, point d'accent. */
.metro__marker {
	position: relative;
	z-index: 1;
	width: 2.75rem;
	height: 2.75rem;
	border: 3px solid var(--text);
	border-radius: 50%;
	background: radial-gradient(circle, var(--accent) 0 26%, var(--surface) 28%);
}

.metro__head-text {
	padding-top: .1rem;
}

.metro__partnum {
	margin: 0 0 .125rem;
	font-family: var(--font-mono);
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--accent);
}

.metro__title {
	margin: 0 0 .25rem;
	font-size: clamp(1.375rem, 1.2rem + .7vw, 1.75rem);
}

.metro__meta {
	margin: 0;
	font-family: var(--font-mono);
	font-size: .8125rem;
	color: var(--muted);
}

.metro__stations {
	margin: 0;
	padding: 0;
	list-style: none;
}

.station {
	padding-bottom: 1.25rem;
}

.station__dot {
	position: relative;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	border: 2px solid var(--accent2);
	border-radius: 50%;
	background: var(--surface);
	font-family: var(--font-mono);
	font-size: .875rem;
	font-weight: 700;
	color: var(--accent2);
	transition: border-color .2s, color .2s, background-color .2s, box-shadow .2s;
}

.station__body {
	min-width: 0;
	padding-top: .55rem;
}

.station__title {
	margin: 0 0 .25rem;
	font-size: 1.125rem;
	line-height: 1.3;
}

.station__link {
	color: var(--text);
	text-decoration: none;
}

.station__link::after {
	content: "";
	position: absolute;
	inset: 0 0 .625rem;
	border-radius: var(--radius);
}

.station__link:focus-visible {
	outline: none;
}

.station__link:focus-visible::after {
	outline: 3px solid var(--focus);
	outline-offset: 2px;
}

.station:hover .station__link {
	color: var(--accent);
	text-decoration: underline;
}

.station__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .25rem 1rem;
	margin: 0 0 .25rem;
	font-family: var(--font-mono);
	font-size: .75rem;
	color: var(--muted);
}

.station__meta > span {
	display: inline-flex;
	align-items: center;
	gap: .3rem;
}

.station__meta .icon {
	width: .95rem;
	height: .95rem;
	color: var(--accent2);
}

.station__read[hidden] {
	display: none;
}

.station__lead {
	max-width: 62ch;
	margin: 0;
	font-size: 1rem;
	line-height: 1.5;
	color: var(--muted);
}

.station:hover .station__dot,
.station:focus-within .station__dot,
.station.is-next .station__dot {
	border-color: var(--accent);
	color: var(--accent);
}

.station.is-next .station__dot {
	box-shadow: 0 0 0 4px var(--accent-soft);
}

.station.is-read .station__dot {
	border-color: var(--accent2);
	background: var(--accent2);
	color: #FFFFFF;
}

/* Partie en cours : filet accent sur le rail. */
.metro__part:hover .metro__head::before,
.metro__part:hover .station::before,
.metro__part:focus-within .metro__head::before,
.metro__part:focus-within .station::before,
.metro__part:target .metro__head::before,
.metro__part:target .station::before,
.metro__part.is-current .metro__head::before,
.metro__part.is-current .station::before {
	background: var(--accent);
	opacity: 1;
}

.metro__part.is-current .metro__marker,
.metro__part:target .metro__marker {
	border-color: var(--accent);
}

/* Sommaire du guide : en-tête. */
.sommaire-head__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 2rem;
}

@media (min-width: 60rem) {
	.sommaire-head__grid {
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: end;
	}
}

.stats {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 2.5rem;
	margin: 1.5rem 0 0;
}

.stats dd {
	color: var(--accent);
}

.stats dt {
	color: var(--muted);
}

.sommaire-head__ctas {
	display: flex;
	flex-wrap: wrap;
	gap: .75rem;
	margin: 1.75rem 0 0;
}

.sommaire-head__art {
	display: none;
	font-family: var(--font-mono);
	font-size: clamp(6rem, 4rem + 6vw, 10rem);
	font-weight: 700;
	line-height: .8;
	letter-spacing: -.06em;
	color: var(--accent);
}

@media (min-width: 60rem) {
	.sommaire-head__art {
		display: inline-block;
		/* Les arcs dépassent le numéro d'environ 0,85 em : ils restent dans la colonne. */
		padding-right: .9em;
	}
}

/* 14. Lexique ============================================================== */
.lex-head__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 2rem;
}

@media (min-width: 60rem) {
	.lex-head__grid {
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: center;
	}
}

.lex-head__keys {
	display: none;
	gap: .625rem;
}

@media (min-width: 60rem) {
	.lex-head__keys {
		display: flex;
	}
}

.key {
	display: inline-grid;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--surface);
	box-shadow: inset 0 -3px 0 var(--bg), var(--shadow);
	font-family: var(--font-mono);
	font-size: 1rem;
	font-weight: 700;
	color: var(--text);
	text-decoration: none;
	transition: transform .15s var(--ease), border-color .15s, color .15s, box-shadow .15s;
}

a.key[href]:hover {
	border-color: var(--accent);
	color: var(--accent);
	transform: translateY(-1px);
}

a.key[href]:active {
	box-shadow: inset 0 -1px 0 var(--bg);
	transform: translateY(1px);
}

.key[aria-disabled="true"] {
	border-style: dashed;
	background: transparent;
	box-shadow: none;
	color: var(--muted);
	opacity: .45;
	cursor: default;
}

@media (pointer: coarse) {
	.lex-index .key {
		width: 2.75rem;
		height: 2.75rem;
	}
}

.key--deco {
	width: 4.25rem;
	height: 4.25rem;
	border-radius: 14px;
	font-size: 1.75rem;
	box-shadow: inset 0 -5px 0 var(--bg), var(--shadow);
}

.key--lit {
	border-color: var(--accent);
	background: var(--accent);
	box-shadow: inset 0 -5px 0 var(--accent-strong);
	color: #FFFFFF;
	transform: translateY(-.375rem);
}

.lex-shell {
	position: relative;
	padding-bottom: var(--space-l);
}

.lex-target {
	position: absolute;
	top: 0;
	scroll-margin-top: 1rem;
}

.lex-index-bar {
	margin: 0 0 1.25rem;
	padding: .75rem 0;
	border-block: 1px solid var(--line);
	background: var(--bg);
}

@media (min-width: 64rem) {
	.lex-index-bar {
		position: sticky;
		top: 0;
		z-index: 10;
		background: rgba(245, 243, 238, .96);
		-webkit-backdrop-filter: blur(6px);
		backdrop-filter: blur(6px);
	}

	.admin-bar .lex-index-bar {
		top: 32px;
	}

	.lex-group {
		scroll-margin-top: 8.5rem;
	}
}

.lex-index {
	display: flex;
	flex-wrap: wrap;
	gap: .375rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.lex-families {
	display: grid;
	gap: .625rem;
	margin: 0 0 1.5rem;
}

.lex-families__label {
	margin: 0;
	font-family: var(--font-mono);
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--muted);
}

.chip--filter[aria-current="true"] {
	border-color: var(--ink);
	background: var(--ink);
	color: var(--on-ink);
}

.chip--filter[aria-current="true"] .chip__count {
	color: var(--muted-on-ink);
}

/* Filtres par famille sans JavaScript : la cible d'ancre masque les autres familles. */
#famille-organisation:target ~ .lex-body .term-card:not([data-famille="organisation"]),
#famille-communication:target ~ .lex-body .term-card:not([data-famille="communication"]),
#famille-pilotage:target ~ .lex-body .term-card:not([data-famille="pilotage"]),
#famille-leadership:target ~ .lex-body .term-card:not([data-famille="leadership"]),
#famille-humain:target ~ .lex-body .term-card:not([data-famille="humain"]),
#famille-sante:target ~ .lex-body .term-card:not([data-famille="sante"]),
#famille-droit:target ~ .lex-body .term-card:not([data-famille="droit"]),
#famille-ia_changement:target ~ .lex-body .term-card:not([data-famille="ia_changement"]) {
	display: none;
}

#famille-organisation:target ~ .lex-families a[href="#famille-organisation"],
#famille-communication:target ~ .lex-families a[href="#famille-communication"],
#famille-pilotage:target ~ .lex-families a[href="#famille-pilotage"],
#famille-leadership:target ~ .lex-families a[href="#famille-leadership"],
#famille-humain:target ~ .lex-families a[href="#famille-humain"],
#famille-sante:target ~ .lex-families a[href="#famille-sante"],
#famille-droit:target ~ .lex-families a[href="#famille-droit"],
#famille-ia_changement:target ~ .lex-families a[href="#famille-ia_changement"] {
	border-color: var(--ink);
	background: var(--ink);
	color: var(--on-ink);
}

/* Lettres sans terme de la famille filtrée : groupe masqué (navigateurs compatibles :has). */
#famille-organisation:target ~ .lex-body .lex-group:not(:has([data-famille="organisation"])),
#famille-communication:target ~ .lex-body .lex-group:not(:has([data-famille="communication"])),
#famille-pilotage:target ~ .lex-body .lex-group:not(:has([data-famille="pilotage"])),
#famille-leadership:target ~ .lex-body .lex-group:not(:has([data-famille="leadership"])),
#famille-humain:target ~ .lex-body .lex-group:not(:has([data-famille="humain"])),
#famille-sante:target ~ .lex-body .lex-group:not(:has([data-famille="sante"])),
#famille-droit:target ~ .lex-body .lex-group:not(:has([data-famille="droit"])),
#famille-ia_changement:target ~ .lex-body .lex-group:not(:has([data-famille="ia_changement"])) {
	display: none;
}

.lex-group {
	display: grid;
	gap: 1rem;
	padding-block: 1.5rem;
	border-top: 1px solid var(--line);
	scroll-margin-top: 1rem;
}

@media (min-width: 48rem) {
	.lex-group {
		grid-template-columns: 5rem minmax(0, 1fr);
		gap: 1.5rem;
	}
}

.lex-group__letter {
	margin: 0;
	font-family: var(--font-mono);
	font-size: 2.75rem;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -.04em;
	color: var(--accent);
}

.term-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 40rem) {
	.term-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 75rem) {
	.term-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.term-card__title {
	font-size: 1.125rem;
}

.term-card .card__excerpt {
	font-size: .98rem;
}

/* Fiche d'un terme. */
.term-head__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1.25rem 2rem;
}

@media (min-width: 52rem) {
	.term-head__grid {
		grid-template-columns: auto minmax(0, 1fr);
		align-items: start;
	}
}

.term-key {
	display: inline-grid;
	place-items: center;
	width: 4.5rem;
	height: 4.5rem;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: var(--surface);
	box-shadow: inset 0 -5px 0 var(--bg), var(--shadow);
	font-family: var(--font-mono);
	font-size: 2.25rem;
	font-weight: 700;
	color: var(--accent);
}

.term-def {
	margin: 0 0 2rem;
	padding: 1.5rem 0;
	border-block: 1px solid var(--text);
}

.term-def__label {
	margin: 0 0 .625rem;
	font-family: var(--font-mono);
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--accent2);
}

.term-def__text {
	margin: 0;
	font-size: clamp(1.375rem, 1.15rem + .9vw, 1.75rem);
	font-style: italic;
	line-height: 1.45;
}

.term-def__text dfn {
	display: block;
	margin-bottom: .375rem;
	font-family: var(--font-head);
	font-size: .82em;
	font-style: normal;
	font-weight: 700;
	letter-spacing: -.01em;
}

.synonyms {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .5rem .75rem;
	margin: 0 0 2rem;
}

.synonyms__label {
	margin: 0;
	font-family: var(--font-mono);
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--muted);
}

.deeper {
	margin-top: 2.5rem;
	padding: 1.375rem;
	border-left: 4px solid var(--accent2);
	border-radius: var(--radius);
	background: var(--accent2-soft);
}

.deeper .box__title {
	color: var(--accent2);
}

.deeper__card {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 1.25rem;
	padding: 1.125rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	transition: border-color .2s, box-shadow .2s;
}

.deeper__card:hover,
.deeper__card:focus-within {
	border-color: var(--accent);
	box-shadow: var(--shadow-lift);
}

.deeper__num {
	margin: 0;
	font-family: var(--font-mono);
	font-size: 3rem;
	font-weight: 700;
	line-height: .9;
	letter-spacing: -.05em;
	color: var(--accent);
}

.deeper__body {
	min-width: 0;
}

.deeper__kind {
	margin: 0 0 .375rem;
	font-family: var(--font-mono);
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--muted);
}

.deeper__title {
	margin: 0 0 .375rem;
	font-family: var(--font-head);
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.3;
}

.deeper__link {
	color: var(--text);
	text-decoration: none;
}

.deeper__link::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

.deeper__link:focus-visible {
	outline: none;
}

.deeper__link:focus-visible::after {
	outline: 3px solid var(--focus);
	outline-offset: 2px;
}

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

.deeper__excerpt {
	margin: 0;
	font-size: 1rem;
	line-height: 1.5;
	color: var(--muted);
}

.term-nav {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: .75rem;
	padding-bottom: var(--space-l);
}

@media (min-width: 45rem) {
	.term-nav {
		grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
		align-items: center;
	}

	.term-nav__link--prev {
		grid-column: 1;
	}

	.term-nav__index {
		grid-column: 2;
	}

	.term-nav__link--next {
		grid-column: 3;
	}
}

.term-nav__link,
.term-nav__index {
	display: flex;
	align-items: center;
	gap: .75rem;
	min-height: 2.75rem;
	padding: .75rem 1rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	font-family: var(--font-head);
	font-weight: 700;
	color: var(--text);
	text-decoration: none;
	transition: border-color .2s, color .2s;
}

.term-nav__link:hover,
.term-nav__index:hover {
	border-color: var(--accent);
	color: var(--accent);
}

.term-nav__link--next {
	justify-content: flex-end;
	text-align: right;
}

.term-nav__index {
	justify-content: center;
	border-radius: var(--radius-pill);
	font-family: var(--font-mono);
	font-size: .875rem;
}

.term-nav__dir {
	display: block;
	font-family: var(--font-mono);
	font-size: .6875rem;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--muted);
}

.term-nav .icon {
	color: var(--accent2);
}

/* 15. Recherche, 404, plan du site, pagination ============================= */
.search-head__form {
	max-width: 36rem;
	margin: .5rem 0 1rem;
}

.no-results {
	max-width: 48rem;
	padding: clamp(1.5rem, 4vw, 2.5rem);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background: var(--surface);
}

.no-results__title {
	font-size: 1.375rem;
}

.error-page {
	padding: clamp(1.5rem, 4vw, 3rem) 0 var(--space-l);
}

.error-page__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-items: center;
	gap: 2rem;
}

@media (min-width: 56rem) {
	.error-page__grid {
		grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
	}
}

.error-page__form {
	max-width: 32rem;
	margin: 0 0 1.25rem;
}

.error-page__art {
	width: 100%;
	max-width: 22rem;
	height: auto;
	justify-self: center;
}

.net-dots-line {
	fill: none;
	stroke: var(--muted);
	stroke-width: 2;
	stroke-dasharray: 2 6;
	stroke-linecap: round;
}

.net-dots-line--signal {
	stroke: var(--accent2);
	stroke-dasharray: none;
}

.error-node {
	fill: var(--surface);
	stroke: var(--text);
	stroke-width: 2.5;
}

.error-node--signal {
	fill: var(--accent);
	stroke: var(--accent);
}

.error-node--open {
	fill: var(--bg);
	stroke: var(--accent);
	stroke-dasharray: 3 3;
}

.error-page__code {
	font-family: var(--font-mono);
	font-size: 56px;
	font-weight: 700;
	letter-spacing: -2px;
	fill: var(--accent);
}

.sitemap {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1rem;
	padding-bottom: var(--space-l);
}

@media (min-width: 48rem) {
	.sitemap {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.sitemap-block {
	min-width: 0;
	padding: clamp(1.25rem, 3vw, 2rem);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background: var(--surface);
}

.sitemap-block--wide {
	grid-column: 1 / -1;
}

.sitemap-block__title {
	display: flex;
	align-items: center;
	gap: .6rem;
	margin: 0 0 1rem;
	font-size: 1.25rem;
}

.sitemap-block__title .icon {
	color: var(--accent2);
}

.sitemap-block__title a {
	text-decoration: none;
}

.sitemap-block__title a:hover {
	text-decoration: underline;
}

.sitemap-parts {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1.5rem 2rem;
}

@media (min-width: 48rem) {
	.sitemap-parts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 72rem) {
	.sitemap-parts {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.sitemap-part__title {
	margin: 0 0 .5rem;
	font-size: 1rem;
}

.sitemap-part__title span {
	font-family: var(--font-mono);
	font-size: .75rem;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--accent);
}

.sitemap-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.sitemap-list li {
	break-inside: avoid;
}

.sitemap-list a {
	display: flex;
	align-items: center;
	gap: .5rem;
	min-height: 2.75rem;
	padding: .4rem 0;
	font-family: var(--font-head);
	font-size: .9375rem;
	line-height: 1.4;
	color: var(--text);
	text-decoration-color: var(--line);
}

.sitemap-list a:hover {
	color: var(--accent);
	text-decoration-color: currentColor;
}

.sitemap-list__num {
	flex-shrink: 0;
	font-family: var(--font-mono);
	font-size: .8125rem;
	font-weight: 700;
	color: var(--accent);
}

.sitemap-list--columns {
	columns: 15rem;
	column-gap: 2rem;
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .5rem;
	margin-top: 2.5rem;
}

.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.75rem;
	height: 2.75rem;
	padding: 0 .75rem;
	border: 1px solid var(--line);
	border-radius: var(--radius-pill);
	background: var(--surface);
	font-family: var(--font-mono);
	font-weight: 700;
	color: var(--text);
	text-decoration: none;
}

.page-numbers .icon {
	width: 1.125rem;
	height: 1.125rem;
}

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

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

.page-numbers.dots {
	border: 0;
	background: none;
}

/* Barre de progression de lecture (chapitres), active seulement avec JavaScript. */
.progress {
	position: fixed;
	left: 0;
	right: 0;
	top: 0;
	z-index: 50;
	display: none;
	height: 3px;
	pointer-events: none;
}

.js .progress {
	display: block;
}

.admin-bar .progress {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .progress {
		top: 46px;
	}
}

.progress__bar {
	display: block;
	height: 100%;
	background: var(--accent);
	transform: scaleX(0);
	transform-origin: 0 50%;
}

/* 16. Mouvement réduit, impression ======================================== */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
		scroll-behavior: auto !important;
	}

	.card:hover,
	.card:focus-within,
	.chapter-nav__card:hover,
	a.key[href]:hover,
	.key--lit {
		transform: none;
	}
}

@media print {
	.site-header,
	.site-footer,
	.pulse,
	.progress,
	.reading-aside,
	.chapter-nav,
	.after-reading,
	.term-nav,
	.hero__aside {
		display: none !important;
	}

	body {
		background: #FFFFFF;
		font-size: 11pt;
	}

	.reading-panel {
		padding: 0;
		border: 0;
		box-shadow: none;
	}

	.entry a::after {
		content: " (" attr(href) ")";
		font-size: .8em;
		color: var(--muted);
	}
}
