/*
Theme Name: MTCCS
Theme URI: https://mtccs.co
Author: Antoine Derrien
Description: Bibliothèque de ressources bilingues (FR/EN) : tests, parcours interactifs et fiches pratiques. Chaque ressource est présentée par la question qu'elle ouvre. Version provisoire, en attendant la charte graphique. À utiliser avec l'extension MTCCS Ressources.
Version: 0.10.0
Requires at least: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mtccs
*/

/* ==========================================================================
   Polices (Latin Modern Roman, GUST Font License ; Inter, SIL OFL 1.1)
   ========================================================================== */

@font-face {
	font-family: "LM Roman";
	src: url("assets/fonts/lmroman17-regular.woff") format("woff");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "LM Roman";
	src: url("assets/fonts/lmroman12-italic.woff") format("woff");
	font-weight: 400;
	font-style: italic;
	font-display: swap;
}

@font-face {
	font-family: "Inter";
	src: url("assets/fonts/inter-400.woff") format("woff");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Inter";
	src: url("assets/fonts/inter-600.woff") format("woff");
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}

/* ==========================================================================
   Jetons : couleurs, typographie, mesures.
   Pour appliquer la future charte, il suffit en principe de modifier ce bloc.
   ========================================================================== */

:root {
	--paper: #FFFFFF;
	--ink: #16181D;
	--graphite: #5A606B;
	--hair: #E3E5E9;
	--hair-2: #C9CDD4;
	--stone: #F4F5F7;
	--thread: #C1352B;
	--thread-wash: #FBEEEC;

	--serif: "LM Roman", "Latin Modern Roman", "CMU Serif", Georgia, "Times New Roman", serif;
	--sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	--gutter: clamp(20px, 4.5vw, 56px);
	--wide: 1180px;
	--measure: 680px;
	--header-h: 64px;
	--header-real: 65px;
	--mtccs-offset: calc(var(--header-real) + 58px);

	color-scheme: light;
}

/* ==========================================================================
   Base
   ========================================================================== */

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: calc(var(--header-real) + 12px);
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 400 17px/1.6 var(--sans);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

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

img {
	height: auto;
}

a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: .2em;
}

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

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

::selection {
	background: var(--thread-wash);
	color: var(--ink);
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	white-space: nowrap;
	word-wrap: normal !important;
}

.skip-link {
	position: absolute;
	top: -100px;
	left: 12px;
	z-index: 100;
	padding: 10px 14px;
	border-radius: 4px;
	background: var(--ink);
	color: var(--paper);
	text-decoration: none;
}

.skip-link:focus {
	top: 12px;
	color: var(--paper);
}

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

/* ==========================================================================
   Boutons
   ========================================================================== */

.btn,
.entry-content .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 0 22px;
	border: 1px solid var(--ink);
	border-radius: 4px;
	background: var(--ink);
	color: var(--paper);
	font: 600 15px/1.2 var(--sans);
	text-decoration: none;
	cursor: pointer;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.btn:hover,
.entry-content .wp-block-button__link:hover {
	background: var(--paper);
	color: var(--ink);
}

.btn--ghost {
	border-color: var(--hair-2);
	background: var(--paper);
	color: var(--ink);
}

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

.btn--small {
	min-height: 40px;
	padding: 0 16px;
	font-size: 14px;
}

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

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	border-bottom: 1px solid var(--hair);
	background: rgba(255, 255, 255, .97);
}

@supports ((-webkit-backdrop-filter: blur(8px)) or (backdrop-filter: blur(8px))) {
	.site-header {
		background: rgba(255, 255, 255, .86);
		-webkit-backdrop-filter: saturate(1.4) blur(12px);
		backdrop-filter: saturate(1.4) blur(12px);
	}
}

.admin-bar .site-header {
	top: 32px;
}

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

@media (max-width: 600px) {
	.admin-bar .site-header {
		top: 0;
	}
}

.site-header__in {
	display: flex;
	align-items: center;
	gap: 20px;
	min-height: var(--header-h);
}

.brand {
	display: inline-flex;
	align-items: baseline;
	gap: 12px;
	min-width: 0;
	margin-right: auto;
	color: var(--ink);
	text-decoration: none;
}

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

.brand__name {
	font: 400 27px/1 var(--serif);
	letter-spacing: .05em;
	white-space: nowrap;
}

.brand__logo {
	display: block;
	align-self: center;
	width: auto;
	max-height: 40px;
}

.brand__sub {
	overflow: hidden;
	font: 400 14px/1.2 var(--sans);
	color: var(--graphite);
	white-space: nowrap;
	text-overflow: ellipsis;
}

.site-nav__menu {
	display: flex;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav__menu a {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0 12px;
	color: var(--ink);
	font: 400 15px/1 var(--sans);
	text-decoration: none;
}

.site-nav__menu a:hover {
	color: var(--thread);
}

.site-nav__menu .current-menu-item > a,
.site-nav__menu .current-menu-ancestor > a,
.site-nav__menu .current_page_item > a,
.site-nav__menu .current-page-ancestor > a {
	box-shadow: inset 0 -2px 0 var(--thread);
}

.site-header__tools {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: none;
}

.lang-switch {
	display: inline-flex;
	overflow: hidden;
	border: 1px solid var(--hair-2);
	border-radius: 4px;
}

.lang-switch button {
	height: 34px;
	min-width: 42px;
	padding: 0 10px;
	border: 0;
	background: var(--paper);
	color: var(--graphite);
	font: 600 12px/1 var(--sans);
	letter-spacing: .08em;
	cursor: pointer;
}

.lang-switch button + button {
	border-left: 1px solid var(--hair-2);
}

.lang-switch button:hover {
	color: var(--ink);
}

.lang-switch button[aria-pressed="true"] {
	background: var(--ink);
	color: var(--paper);
}

.lang-switch button:focus-visible {
	outline-offset: -4px;
	outline-color: var(--thread);
}

.nav-toggle {
	display: none;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid transparent;
	border-radius: 4px;
	background: none;
	color: var(--ink);
	cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
	display: block;
	width: 20px;
	height: 1.5px;
	background: currentColor;
	transition: transform .2s ease, background-color .2s ease;
}

.nav-toggle__bars {
	position: relative;
	margin: 0 auto;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
	content: "";
	position: absolute;
	left: 0;
}

.nav-toggle__bars::before {
	top: -6px;
}

.nav-toggle__bars::after {
	top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
	background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
	transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
	transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 760px) {
	.site-header__in {
		position: relative;
		gap: 10px;
	}

	.nav-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}

	.site-nav {
		position: absolute;
		top: 100%;
		right: calc(-1 * var(--gutter));
		left: calc(-1 * var(--gutter));
		display: none;
		border-bottom: 1px solid var(--hair);
		background: var(--paper);
	}

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

	.site-nav__menu {
		flex-direction: column;
		gap: 0;
		padding: 6px var(--gutter) 14px;
	}

	.site-nav__menu a {
		min-height: 50px;
		padding: 0;
		font-size: 18px;
	}

	.site-nav__menu .current-menu-item > a,
	.site-nav__menu .current-menu-ancestor > a,
	.site-nav__menu .current_page_item > a,
	.site-nav__menu .current-page-ancestor > a {
		box-shadow: none;
		color: var(--thread);
	}

	.brand__name {
		font-size: 24px;
	}

	.brand__sub {
		font-size: 13px;
	}
}

@media (max-width: 360px) {
	.brand__sub {
		display: none;
	}
}

/* ==========================================================================
   Accueil
   ========================================================================== */

.hero {
	padding: clamp(56px, 11vh, 128px) 0 clamp(32px, 6vh, 64px);
}

.hero__title {
	max-width: 14.5em;
	margin: 0;
	font: 400 clamp(40px, 3.7vw + 22px, 78px)/1.03 var(--serif);
	letter-spacing: -.012em;
	text-wrap: balance;
}

.hero__thread {
	display: block;
	width: 100%;
	height: 40px;
	margin: clamp(18px, 3vh, 30px) 0 clamp(20px, 3.4vh, 34px);
	overflow: visible;
	clip-path: inset(0 100% 0 0);
	animation: mtccs-thread 2.4s cubic-bezier(.6, .05, .3, 1) .35s forwards;
}

.hero__thread path {
	fill: none;
	stroke: var(--thread);
	stroke-width: 1.6;
	stroke-linecap: round;
	vector-effect: non-scaling-stroke;
}

@keyframes mtccs-thread {
	to {
		clip-path: inset(0 0 0 0);
	}
}

.hero__lead {
	max-width: 34em;
	margin: 0;
	color: var(--graphite);
	font: 400 clamp(18px, .5vw + 15.5px, 21px)/1.55 var(--sans);
	text-wrap: pretty;
}

.hero__actions {
	margin: 32px 0 0;
}

.home-section {
	padding: clamp(48px, 7vw, 96px) 0 0;
}

.home-section:last-child {
	padding-bottom: clamp(64px, 9vw, 120px);
}

.section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px 24px;
}

.section-title {
	margin: 0;
	font: 400 clamp(28px, 1.1vw + 21px, 40px)/1.15 var(--serif);
	letter-spacing: -.004em;
}

.section-link {
	color: var(--ink);
	font: 600 15px/1.4 var(--sans);
	text-decoration: underline;
	text-decoration-color: var(--hair-2);
	text-underline-offset: .32em;
}

.section-link:hover {
	color: var(--thread);
	text-decoration-color: currentColor;
}

.empty-note {
	margin: 24px 0 0;
	color: var(--graphite);
	font: italic 400 22px/1.4 var(--serif);
}

/* Thématiques */

.themes {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
	gap: 0 40px;
	margin-top: 28px;
}

.theme {
	display: block;
	padding: 22px 0 28px;
	border-top: 1px solid var(--hair);
	color: var(--ink);
	text-decoration: none;
}

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

.theme__name {
	display: block;
	font: 400 25px/1.2 var(--serif);
	transition: color .15s ease;
}

.theme:hover .theme__name {
	color: var(--thread);
}

.theme__desc {
	display: block;
	max-width: 30em;
	margin-top: 8px;
	color: var(--graphite);
	font-size: 15px;
	line-height: 1.55;
}

.theme__count {
	display: block;
	margin-top: 12px;
	color: var(--graphite);
	font-size: 14px;
}

/* ==========================================================================
   Index des ressources (accueil, bibliothèque, thématiques)
   ========================================================================== */

.res-list {
	margin-top: 26px;
	border-bottom: 1px solid var(--hair);
}

.res {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(150px, 15rem);
	gap: 12px 56px;
	padding: 28px 0 32px;
	border-top: 1px solid var(--hair);
}

.res[hidden] {
	display: none;
}

.res__q {
	max-width: 23em;
	margin: 0;
	font: 400 clamp(24px, .9vw + 17px, 32px)/1.18 var(--serif);
	letter-spacing: -.003em;
	text-wrap: balance;
}

.res__link {
	color: var(--ink);
	text-decoration: none;
	background-image: linear-gradient(var(--thread), var(--thread));
	background-position: 0 92%;
	background-repeat: no-repeat;
	background-size: 0 1px;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
	transition: background-size .35s ease;
}

.res__link::after {
	content: "";
	position: absolute;
	inset: 0;
}

.res:hover .res__link,
.res__link:focus-visible {
	color: var(--ink);
	background-size: 100% 1px;
}

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

.res:focus-within {
	outline: 2px solid var(--ink);
	outline-offset: 6px;
}

.res:focus-within:not(:has(:focus-visible)) {
	outline: none;
}

.res__title {
	margin: 12px 0 0;
	font: 600 15px/1.45 var(--sans);
}

.res__sum {
	max-width: 40em;
	margin: 6px 0 0;
	color: var(--graphite);
	font-size: 15px;
	line-height: 1.55;
}

.res__meta {
	margin: 0;
	padding: 6px 0 0;
	color: var(--graphite);
	font-size: 14px;
	line-height: 1.5;
	list-style: none;
}

.res__meta li + li {
	margin-top: 3px;
}

.res__fmt {
	color: var(--ink);
	font-weight: 600;
}

@media (max-width: 760px) {
	.res {
		grid-template-columns: minmax(0, 1fr);
		gap: 10px;
		padding: 22px 0 26px;
	}

	.res__meta {
		display: flex;
		flex-wrap: wrap;
		gap: 2px 16px;
		order: -1;
		padding: 0;
		font-size: 13px;
	}

	.res__meta li + li {
		margin-top: 0;
	}
}

/* ==========================================================================
   Bibliothèque : filtres
   ========================================================================== */

.page-head {
	padding: clamp(40px, 8vh, 96px) 0 clamp(20px, 3vh, 32px);
}

.page-title {
	max-width: 17em;
	margin: 0;
	font: 400 clamp(38px, 2.8vw + 22px, 64px)/1.05 var(--serif);
	letter-spacing: -.008em;
	text-wrap: balance;
}

.page-lead {
	max-width: 34em;
	margin: 18px 0 0;
	color: var(--graphite);
	font-size: clamp(17px, .4vw + 15.5px, 20px);
	line-height: 1.55;
	text-wrap: pretty;
}

.crumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 10px;
	margin: 0 0 20px;
	color: var(--graphite);
	font-size: 14px;
}

.crumbs a {
	color: var(--graphite);
	text-decoration: none;
}

.crumbs a:hover {
	color: var(--thread);
}

.library-wrap {
	padding-bottom: clamp(64px, 9vw, 120px);
}

.filters {
	display: grid;
	gap: 12px;
	padding: 6px 0 4px;
}

.filters__row {
	display: grid;
	grid-template-columns: 7.5rem minmax(0, 1fr);
	align-items: baseline;
	gap: 8px 16px;
}

.filters__label {
	color: var(--graphite);
	font-size: 14px;
}

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

.chip {
	min-height: 36px;
	padding: 0 14px;
	border: 1px solid var(--hair-2);
	border-radius: 4px;
	background: var(--paper);
	color: var(--ink);
	font: 400 14px/1 var(--sans);
	cursor: pointer;
	transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}

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

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

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

.search {
	position: relative;
	display: block;
	flex: 0 1 30rem;
}

.search svg {
	position: absolute;
	top: 50%;
	left: 14px;
	width: 18px;
	height: 18px;
	color: var(--graphite);
	transform: translateY(-50%);
	pointer-events: none;
}

.search input {
	width: 100%;
	height: 46px;
	padding: 0 14px 0 42px;
	border: 1px solid var(--hair-2);
	border-radius: 4px;
	background: var(--paper);
	color: var(--ink);
	font-size: 16px;
	-webkit-appearance: none;
	appearance: none;
}

.search input::placeholder {
	color: #8C929C;
}

.search input:focus {
	border-color: var(--ink);
	outline: none;
	box-shadow: 0 0 0 3px rgba(22, 24, 29, .08);
}

.library__count {
	margin: 0;
	color: var(--graphite);
	font-size: 14px;
}

.library__empty {
	padding: 44px 0 8px;
}

.library__empty p {
	margin: 0 0 18px;
	font: 400 26px/1.3 var(--serif);
}

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

	/* Sur téléphone, les filtres défilent sur une ligne. */
	.filters__chips {
		flex-wrap: nowrap;
		overflow-x: auto;
		margin-inline: calc(-1 * var(--gutter));
		padding: 6px var(--gutter);
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}

	.filters__chips::-webkit-scrollbar {
		display: none;
	}

	.chip {
		flex: none;
		white-space: nowrap;
	}

	.search {
		flex-basis: 100%;
	}
}

/* ==========================================================================
   Page d'une ressource
   ========================================================================== */

.resource__head {
	padding: clamp(32px, 6vh, 72px) 0 clamp(28px, 4vh, 44px);
}

.resource__title {
	max-width: 19em;
	margin: 0;
	font: 400 clamp(34px, 2.5vw + 20px, 60px)/1.07 var(--serif);
	letter-spacing: -.008em;
	text-wrap: balance;
}

.resource__intro {
	max-width: 40em;
	margin-top: 20px;
}

.resource__name {
	margin: 0;
	font: 600 17px/1.4 var(--sans);
}

.resource__sum {
	margin: 6px 0 0;
	color: var(--graphite);
	font-size: clamp(17px, .3vw + 15.5px, 19px);
	line-height: 1.55;
	text-wrap: pretty;
}

.resource__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 28px;
	margin-top: 26px;
}

.resource__facts {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 22px;
	margin: 0;
	padding: 0;
	color: var(--graphite);
	font-size: 15px;
	list-style: none;
}

.resource__fmt a {
	color: var(--ink);
	font-weight: 600;
	text-decoration: none;
}

.resource__fmt a:hover {
	color: var(--thread);
}

.resource__content {
	padding-bottom: clamp(24px, 4vw, 56px);
}

.related {
	padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 9vw, 120px);
	border-top: 1px solid var(--hair);
}

/* ==========================================================================
   Contenu des pages (blocs)
   ========================================================================== */

/* Colonne de lecture alignée à gauche sur le reste de la page. */
.entry-content > * {
	width: min(100% - 2 * var(--gutter), var(--measure));
	margin-right: auto;
	margin-left: max(var(--gutter), (100% - var(--wide)) / 2);
}

.entry-content > .alignwide {
	width: min(100% - 2 * var(--gutter), var(--wide));
}

.entry-content > .alignfull {
	width: 100%;
	margin-right: 0;
	margin-left: 0;
}

.entry-content > :first-child {
	margin-top: 0;
}

.entry > .entry-content {
	padding-bottom: clamp(56px, 8vw, 112px);
}

.entry-content p,
.entry-content li {
	line-height: 1.65;
}

.entry-content h2 {
	margin-top: 2em;
	margin-bottom: .55em;
	font: 400 clamp(26px, 1vw + 20px, 36px)/1.2 var(--serif);
}

.entry-content h3 {
	margin-top: 1.8em;
	margin-bottom: .5em;
	font: 600 19px/1.4 var(--sans);
}

.entry-content a {
	color: var(--ink);
	text-decoration-color: var(--thread);
}

.entry-content a:hover {
	color: var(--thread);
}

.entry-content blockquote,
.entry-content .wp-block-quote {
	margin-top: 2em;
	margin-bottom: 2em;
	padding-left: 24px;
	border-left: 2px solid var(--thread);
}

.entry-content blockquote p {
	font: italic 400 clamp(21px, .6vw + 17px, 25px)/1.4 var(--serif);
}

.entry-content .mtccs-question {
	margin-top: 1.6em;
	margin-bottom: 1.6em;
	font: italic 400 clamp(24px, .9vw + 18px, 32px)/1.3 var(--serif);
	text-wrap: balance;
}

.entry-content .mtccs-lead {
	color: var(--graphite);
	font-size: clamp(18px, .5vw + 15.5px, 21px);
	line-height: 1.55;
}

.entry-content figcaption,
.entry-content .wp-element-caption {
	color: var(--graphite);
	font-size: 14px;
}

.entry-content hr,
.entry-content .wp-block-separator {
	border: 0;
	border-top: 1px solid var(--hair);
}

.entry-date {
	margin: 14px 0 0;
	color: var(--graphite);
	font-size: 15px;
}

/* ==========================================================================
   Bloc « Animation MTCCS » dans le thème
   ========================================================================== */

.mtccs-anim {
	--mtccs-anim-line: var(--hair);
	font-family: var(--sans);
}

.entry-content > .mtccs-anim {
	margin-top: 0;
	margin-bottom: 0;
	scroll-margin-top: -12px;
}

@media (max-width: 600px) {
	.mtccs-anim__btn--open .mtccs-anim__label {
		display: none;
	}
}

.mtccs-anim__stage {
	background: var(--stone);
}

.mtccs-anim__bar {
	width: min(100% - 2 * var(--gutter), var(--wide));
	margin-inline: auto;
	padding: 8px 0;
}

.mtccs-anim__btn {
	color: var(--ink);
}

.mtccs-anim__btn:hover {
	border-color: var(--hair-2);
	color: var(--ink);
}

/* ==========================================================================
   Listes d'articles, pagination, page introuvable
   ========================================================================== */

.post-list {
	border-bottom: 1px solid var(--hair);
}

.post-item {
	padding: 26px 0 28px;
	border-top: 1px solid var(--hair);
}

.post-item__title {
	margin: 0;
	font: 400 clamp(24px, .8vw + 18px, 30px)/1.2 var(--serif);
}

.post-item__title a {
	text-decoration: none;
}

.post-item__meta {
	margin: 6px 0 0;
	color: var(--graphite);
	font-size: 14px;
}

.post-item__excerpt p {
	max-width: 42em;
	margin: 8px 0 0;
	color: var(--graphite);
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 32px 0 72px;
}

.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	border: 1px solid var(--hair-2);
	border-radius: 4px;
	text-decoration: none;
}

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

.notfound {
	padding-bottom: clamp(80px, 14vh, 160px);
}

.notfound__actions {
	margin: 30px 0 0;
}

/* ==========================================================================
   Pied de page
   ========================================================================== */

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

.site-footer__in {
	padding: clamp(48px, 6vw, 72px) 0 28px;
}

.site-footer__name {
	margin: 0;
	font: 400 25px/1 var(--serif);
	letter-spacing: .05em;
}

.site-footer__about {
	max-width: 34em;
	margin: 14px 0 0;
	color: var(--graphite);
	font-size: 15px;
	line-height: 1.55;
}

.site-footer a {
	text-decoration: none;
}

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

/* Les autres sites : le fil rouge se tend au survol. */

.sites {
	margin-top: clamp(40px, 5vw, 60px);
}

.site-footer__label {
	margin: 0 0 14px;
	color: var(--graphite);
	font: 400 14px/1.4 var(--sans);
}

.sites__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
	gap: 0 32px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-card {
	position: relative;
	display: block;
	height: 100%;
	padding: 18px 0 24px;
	border-top: 1px solid var(--hair-2);
	color: var(--ink);
}

.site-card::before {
	content: "";
	position: absolute;
	top: -1px;
	left: 0;
	width: 100%;
	height: 1px;
	background: var(--thread);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform .4s cubic-bezier(.6, .05, .3, 1);
}

.site-card:hover,
.site-card:focus-visible {
	color: var(--ink);
}

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

.site-card__name {
	display: block;
	font: 400 23px/1.2 var(--serif);
	transition: color .15s ease;
}

.site-card:hover .site-card__name,
.site-card:focus-visible .site-card__name {
	color: var(--thread);
}

.site-card__line {
	display: block;
	max-width: 24em;
	margin-top: 8px;
	color: var(--graphite);
	font-size: 15px;
	line-height: 1.5;
	text-wrap: pretty;
}

.site-card__langs {
	display: block;
	margin-top: 12px;
	color: var(--graphite);
	font-size: 13px;
	line-height: 1.4;
}

/* L'échange, discret, sous les sites. */

.call {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 24px;
	margin-top: clamp(20px, 3vw, 32px);
}

.call__text {
	margin: 0;
	font: italic 400 clamp(19px, .4vw + 16px, 22px)/1.35 var(--serif);
	text-wrap: balance;
}

.call__btn {
	flex: none;
}

/* Mentions et crédit. */

.site-footer__legal {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px 24px;
	margin-top: clamp(36px, 5vw, 56px);
	padding-top: 20px;
	border-top: 1px solid var(--hair-2);
}

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

.site-footer__credit {
	margin: 0;
	color: var(--graphite);
	font-size: 13px;
}

@media (max-width: 760px) {
	.site-footer__in {
		padding: 44px 0 24px;
	}

	.site-card {
		padding: 16px 0 20px;
	}

	.call {
		align-items: flex-start;
		flex-direction: column;
	}
}

/* ==========================================================================
   Mouvement réduit
   ========================================================================== */

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

	.hero__thread {
		clip-path: none;
	}
}
