/*
Theme Name: Miroir
Description: Thème vitrine rapide et responsive, avec formules et tarifs modifiables depuis l'administration. Formulaire de contact, balises SEO et données structurées intégrés, sans extension obligatoire.
Version: 1.0.0
Requires at least: 6.3
Tested up to: 6.8
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: miroir
Tags: one-column, custom-colors, custom-logo, custom-menu, featured-images, translation-ready
*/

/* Mise en page : colonnes alignées à gauche sur une grille de 1200 px ; une seule image forte
   (la comparaison avant / après) et une seule section très colorée (les formules). */

/* ---------- Police (hébergée avec le thème, aucun appel externe) ---------- */
@font-face {
	font-family: "Archivo";
	font-style: normal;
	font-weight: 100 900;
	font-stretch: 62% 125%;
	font-display: swap;
	src: url(assets/fonts/archivo-latin-ext-wdth-normal.woff2) format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Archivo";
	font-style: normal;
	font-weight: 100 900;
	font-stretch: 62% 125%;
	font-display: swap;
	src: url(assets/fonts/archivo-latin-wdth-normal.woff2) format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Repères ---------- */
:root {
	/* Couleurs : les trois premières se changent dans Apparence > Personnaliser. */
	--principale: #0F3A40;
	--sur-principale: #FFFFFF;
	--accent: #F0B429;
	--sur-accent: #10201F;
	--fond: #E9EFF0;
	--encre: #10201F;
	--blanc: #FFFFFF;
	--trait: rgba(16, 32, 31, 0.18);
	--discret: rgba(16, 32, 31, 0.72);

	/* Typographie : une seule famille, en largeur normale pour le texte, élargie pour les titres. */
	--police: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--t-petit: 0.875rem;
	--t-base: 1.0625rem;
	--t-grand: 1.1875rem;
	--t-h3: 1.3125rem;
	--t-h2: clamp(1.75rem, 1.2rem + 2.3vw, 2.75rem);
	--t-h1: clamp(1.875rem, 1.15rem + 3.2vw, 3.5rem);

	--gouttiere: clamp(1rem, 4vw, 2.5rem);
	--rayon: 4px;
	--rayon-l: 12px;
	--entete: 4.5rem;
}

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: calc(var(--entete) + 1rem);
}

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

body {
	margin: 0;
	background: var(--fond);
	color: var(--encre);
	font-family: var(--police);
	font-size: var(--t-base);
	font-stretch: 100%;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
	margin: 0;
	font-weight: 700;
	font-stretch: 122%;
	line-height: 1.08;
	letter-spacing: -0.012em;
	text-wrap: balance;
}

h1 {
	font-size: var(--t-h1);
	font-stretch: 118%;
}

h2 {
	font-size: var(--t-h2);
}

h3 {
	font-size: var(--t-h3);
	font-stretch: 112%;
	line-height: 1.2;
	letter-spacing: 0;
}

p {
	margin: 0;
}

ul,
ol {
	margin: 0;
	padding: 0;
}

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

a {
	color: inherit;
	text-underline-offset: 0.18em;
	text-decoration-thickness: 0.08em;
}

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

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

.skip-link {
	position: absolute;
	top: 0.5rem;
	left: 0.5rem;
	z-index: 100;
	padding: 0.75rem 1rem;
	background: var(--encre);
	color: var(--blanc);
	border-radius: var(--rayon);
	transform: translateY(-200%);
}

.skip-link:focus {
	transform: none;
}

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

.wrap--etroit {
	max-width: 50rem;
}

/* ---------- Boutons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 3rem;
	padding: 0.7rem 1.4rem;
	border: 2px solid transparent;
	border-radius: var(--rayon);
	font: inherit;
	font-weight: 650;
	font-stretch: 110%;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

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

.btn--accent:hover {
	background: var(--sur-accent);
	color: var(--accent);
}

.btn--principal {
	background: var(--principale);
	color: var(--sur-principale);
}

.btn--principal:hover {
	background: var(--encre);
	color: var(--blanc);
}

.btn--encre {
	background: var(--encre);
	color: var(--blanc);
}

.btn--encre:hover {
	background: var(--blanc);
	color: var(--encre);
}

.btn--contour {
	border-color: currentColor;
	color: var(--principale);
}

.btn--contour:hover {
	background: var(--principale);
	border-color: var(--principale);
	color: var(--sur-principale);
}

.btn-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

/* ---------- En-tête ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--fond);
	border-bottom: 1px solid var(--trait);
}

/* Connecté à WordPress : l'en-tête se place sous la barre d'administration. */
.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__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	min-height: var(--entete);
}

.site-brand {
	min-width: 0;
}

.site-brand__name {
	font-size: 1.25rem;
	font-weight: 750;
	font-stretch: 125%;
	letter-spacing: -0.01em;
	text-decoration: none;
}

.custom-logo-link {
	display: block;
}

.custom-logo {
	display: block;
	width: auto;
	max-height: 3rem;
}

.nav {
	display: flex;
	align-items: center;
	gap: 1.75rem;
}

.nav__list {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	list-style: none;
}

.nav__list a {
	display: block;
	padding-block: 0.5rem;
	font-size: 0.975rem;
	font-weight: 550;
	text-decoration: none;
}

.nav__list a:hover,
.nav__list .current-menu-item > a {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.4em;
}

.nav__tel {
	min-height: 2.75rem;
	padding-block: 0.5rem;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.nav-toggle {
	display: none;
	align-items: center;
	gap: 0.6rem;
	min-height: 2.75rem;
	padding: 0.5rem 0.9rem;
	border: 2px solid var(--encre);
	border-radius: var(--rayon);
	background: transparent;
	color: var(--encre);
	font: inherit;
	font-weight: 650;
	cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before {
	display: block;
	width: 1.1rem;
	height: 2px;
	background: currentColor;
}

.nav-toggle__bars {
	position: relative;
	top: -3px;
}

.nav-toggle__bars::before {
	content: "";
	position: absolute;
	top: 6px;
}

@media (max-width: 61.99rem) {
	.site-header__inner {
		flex-wrap: wrap;
		row-gap: 0;
	}

	.nav {
		flex-basis: 100%;
		flex-direction: column;
		align-items: stretch;
		gap: 0.75rem;
		padding-bottom: 1.25rem;
	}

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

	.nav__list a {
		padding-block: 0.8rem;
		border-top: 1px solid var(--trait);
		font-size: 1.0625rem;
	}

	/* Sans JavaScript le menu reste déplié ; avec, il se replie derrière le bouton. */
	.js .nav-toggle {
		display: inline-flex;
	}

	.js .nav {
		display: none;
	}

	.js .est-ouvert .nav {
		display: flex;
	}
}

/* ---------- Haut de page ---------- */
.hero {
	padding-block: clamp(2.25rem, 5vw, 4.5rem) clamp(2.5rem, 5vw, 4rem);
}

.hero__inner {
	display: grid;
	gap: clamp(2rem, 5vw, 4rem);
	align-items: center;
}

.hero__texte {
	display: grid;
	gap: 1.5rem;
	min-width: 0;
}

.hero__intro {
	max-width: 34rem;
	font-size: var(--t-grand);
	color: var(--discret);
}

.hero__visuel {
	min-width: 0;
}

.hero__photo {
	margin: 0;
}

.hero__photo img {
	display: block;
	width: 100%;
	aspect-ratio: 15 / 13;
	object-fit: cover;
	border-radius: var(--rayon-l);
}

.hero__points {
	display: grid;
	gap: 0 clamp(1.5rem, 4vw, 3rem);
	margin-top: clamp(2.5rem, 5vw, 4rem);
	list-style: none;
}

.hero__points li {
	padding-block: 0.9rem;
	border-top: 2px solid var(--principale);
	font-weight: 600;
	font-stretch: 106%;
}

@media (min-width: 40rem) {
	.hero__points {
		grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
	}
}

@media (min-width: 62rem) {
	.hero__inner {
		grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
	}
}

/* Comparaison avant / après : la couche « avant » est rognée à la position du ruban. */
.compare {
	--pos: 50%;
	position: relative;
	margin: 0;
	aspect-ratio: 15 / 13;
	max-width: 100%;
	overflow: hidden;
	border-radius: var(--rayon-l);
	background: var(--principale);
	touch-action: pan-y;
	cursor: ew-resize;
	user-select: none;
	-webkit-user-select: none;
}

.compare__couche {
	position: absolute;
	inset: 0;
}

.compare__couche svg,
.compare__couche img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

.compare__couche--avant {
	clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.compare__laque {
	fill: var(--principale);
}

.compare__ruban {
	position: absolute;
	top: 0;
	bottom: 0;
	left: var(--pos);
	width: 1.125rem;
	transform: translateX(-50%);
	background:
		repeating-linear-gradient(0deg, rgba(0, 0, 0, 0) 0 3px, rgba(0, 0, 0, 0.05) 3px 4px),
		var(--accent);
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12), 3px 0 8px rgba(0, 0, 0, 0.28);
	pointer-events: none;
}

.compare__poignee {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 2.75rem;
	height: 2.75rem;
	transform: translate(-50%, -50%);
	border-radius: 50%;
	background: var(--blanc);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.compare__poignee::before,
.compare__poignee::after {
	content: "";
	position: absolute;
	top: 50%;
	width: 0.55rem;
	height: 0.55rem;
	border: solid var(--encre);
	border-width: 2px 2px 0 0;
}

.compare__poignee::before {
	left: 0.7rem;
	transform: translateY(-50%) rotate(-135deg);
}

.compare__poignee::after {
	right: 0.7rem;
	transform: translateY(-50%) rotate(45deg);
}

.compare__etiquette {
	position: absolute;
	bottom: 0.9rem;
	padding: 0.3rem 0.75rem;
	border-radius: 999px;
	background: rgba(16, 32, 31, 0.78);
	color: var(--blanc);
	font-size: 0.8125rem;
	font-weight: 600;
	pointer-events: none;
}

.compare__etiquette--avant {
	left: 0.9rem;
}

.compare__etiquette--apres {
	right: 0.9rem;
}

.compare__curseur {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: ew-resize;
}

.js .compare__curseur {
	pointer-events: none;
}

.compare:has(.compare__curseur:focus-visible) .compare__poignee {
	outline: 3px solid var(--accent);
	outline-offset: 3px;
}

/* ---------- Sections ---------- */
.section {
	padding-block: clamp(3.5rem, 8vw, 6.5rem);
}

.section--blanc {
	background: var(--blanc);
}

.section--sombre {
	--trait: color-mix(in srgb, var(--sur-principale) 24%, transparent);
	--discret: color-mix(in srgb, var(--sur-principale) 82%, transparent);
	background: var(--principale);
	color: var(--sur-principale);
}

.section--sombre :focus-visible {
	outline-color: var(--accent);
}

.section__tete {
	display: grid;
	gap: 0.9rem;
	max-width: 44rem;
	margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.section__tete p {
	max-width: 38rem;
	font-size: var(--t-grand);
	color: var(--discret);
}

/* Prestations : une liste réglée, pas une rangée de cartes. */
.prestations {
	display: grid;
	gap: 0 clamp(2rem, 4vw, 3.5rem);
	list-style: none;
}

.prestation {
	display: grid;
	gap: 0.6rem;
	align-content: start;
	padding-block: 1.6rem;
	border-top: 1px solid var(--trait);
	min-width: 0;
}

.prestation__texte {
	color: var(--discret);
}

.prestation__detail {
	font-size: var(--t-petit);
	font-weight: 650;
	color: var(--principale);
}

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

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

/* Formules : les rangées (nom, phrase, prix, liste, bouton) s'alignent d'une formule à l'autre. */
.formules {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr));
	gap: 1.25rem;
	list-style: none;
}

/* Le nombre de colonnes suit le nombre de formules, pour qu'aucune ne reste seule sur sa ligne. */
@media (min-width: 40rem) {
	.formules[data-nombre="2"],
	.formules[data-nombre="4"] {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 62rem) {
	.formules[data-nombre="2"] {
		max-width: 50rem;
	}

	.formules[data-nombre="5"],
	.formules[data-nombre="6"] {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 72rem) {
	.formules[data-nombre="4"] {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.formules[data-nombre="4"] .formule {
		padding: 1.5rem;
	}

	.formules[data-nombre="4"] .formule__montant {
		font-size: 2.375rem;
	}
}

.formule {
	display: flex;
	flex-direction: column;
	gap: 1.1rem;
	min-width: 0;
	padding: clamp(1.5rem, 3vw, 2.25rem);
	border: 1px solid var(--trait);
	border-radius: var(--rayon-l);
}

@supports (grid-template-rows: subgrid) {
	.formule {
		display: grid;
		grid-row: span 5;
		grid-template-rows: subgrid;
		gap: 0;
		row-gap: 1.1rem;
	}
}

.formule--vedette {
	--trait: color-mix(in srgb, var(--sur-accent) 26%, transparent);
	--discret: color-mix(in srgb, var(--sur-accent) 84%, transparent);
	background: var(--accent);
	border-color: var(--accent);
	color: var(--sur-accent);
}

.formule--vedette :focus-visible {
	outline-color: var(--sur-accent);
}

.formule__tete {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem 1rem;
}

.formule__nom {
	font-size: 1.5rem;
	font-stretch: 122%;
}

.formule__badge {
	padding: 0.15rem 0.65rem;
	border: 1.5px solid currentColor;
	border-radius: 999px;
	font-size: 0.8125rem;
	font-weight: 650;
}

.formule__resume {
	color: var(--discret);
}

.formule__prix {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	padding-block: 1.1rem;
	border-block: 1px solid var(--trait);
}

.formule__montant {
	font-size: clamp(2.5rem, 2rem + 1.8vw, 3.25rem);
	overflow-wrap: anywhere;
	font-weight: 700;
	font-stretch: 125%;
	line-height: 1;
	letter-spacing: -0.02em;
	font-variant-numeric: tabular-nums;
}

.formule__periode {
	font-size: var(--t-petit);
	color: var(--discret);
}

.formule__inclus {
	display: grid;
	gap: 0.6rem;
	align-content: start;
	list-style: none;
}

.formule__inclus li {
	position: relative;
	padding-left: 1.75rem;
}

.formule__inclus li::before {
	content: "";
	position: absolute;
	top: 0.42em;
	left: 0.15rem;
	width: 0.85rem;
	height: 0.45rem;
	border: solid var(--accent);
	border-width: 0 0 2px 2px;
	transform: rotate(-45deg);
}

.formule--vedette .formule__inclus li::before {
	border-color: currentColor;
}

.formule__bouton {
	align-self: end;
	width: 100%;
	margin-top: 0.4rem;
}

.formules__note {
	margin-top: 1.5rem;
	font-size: var(--t-petit);
	color: var(--discret);
}

/* Déroulement : une vraie suite d'étapes, donc numérotée. */
.etapes {
	display: grid;
	gap: 2rem clamp(1.5rem, 3vw, 2.5rem);
	list-style: none;
	counter-reset: etape;
}

.etape {
	display: grid;
	gap: 0.6rem;
	align-content: start;
	padding-top: 1.1rem;
	border-top: 2px solid var(--principale);
	counter-increment: etape;
	min-width: 0;
}

.etape::before {
	content: counter(etape);
	font-size: 2.75rem;
	font-weight: 700;
	font-stretch: 125%;
	line-height: 1;
	color: var(--principale);
}

.etape p {
	color: var(--discret);
}

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

@media (min-width: 62rem) {
	.etapes {
		grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
	}
}

/* Avis */
.avis {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr));
	gap: 2rem clamp(2rem, 4vw, 3.5rem);
	list-style: none;
}

.avis__item {
	display: grid;
	gap: 1.1rem;
	align-content: start;
	margin: 0;
	padding-top: 1.5rem;
	border-top: 1px solid var(--trait);
}

.avis__item blockquote {
	margin: 0;
	font-size: var(--t-grand);
	line-height: 1.5;
}

.avis__item blockquote p:first-child::before {
	content: "«\00A0";
}

.avis__item blockquote p:last-child::after {
	content: "\00A0»";
}

.avis__item figcaption {
	display: grid;
	gap: 0.1rem;
}

.avis__nom {
	font-weight: 650;
}

.avis__contexte {
	font-size: var(--t-petit);
	color: var(--discret);
}

/* Questions fréquentes */
.faq {
	display: grid;
	gap: 0 clamp(2rem, 6vw, 5rem);
}

.faq__liste {
	min-width: 0;
	border-bottom: 1px solid var(--trait);
}

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

.faq__item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.25rem;
	padding-block: 1.15rem;
	font-size: var(--t-grand);
	font-weight: 600;
	list-style: none;
	cursor: pointer;
}

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

.faq__item summary::after {
	content: "";
	flex: none;
	width: 1rem;
	height: 1rem;
	background:
		linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat,
		linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat;
}

.faq__item[open] summary::after {
	background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat;
}

.faq__reponse {
	max-width: 38rem;
	padding-bottom: 1.4rem;
	color: var(--discret);
}

.faq__reponse > * + * {
	margin-top: 0.75em;
}

@media (min-width: 62rem) {
	.faq {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
	}

	.faq__tete {
		position: sticky;
		top: calc(var(--entete) + 2rem);
		align-self: start;
		margin-bottom: 0;
	}
}

/* Contact */
.contact__inner {
	display: grid;
	gap: clamp(2rem, 6vw, 5rem);
	align-items: start;
}

.contact__infos {
	min-width: 0;
}

.contact__liste {
	display: grid;
	gap: 1.4rem;
	margin: 0;
}

.contact__liste dt {
	font-size: var(--t-petit);
	color: var(--discret);
}

.contact__liste dd {
	margin: 0.15rem 0 0;
	font-size: var(--t-grand);
	overflow-wrap: anywhere;
}

.contact__tel {
	font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.375rem);
	font-weight: 700;
	font-stretch: 122%;
	line-height: 1.1;
	text-decoration: none;
	font-variant-numeric: tabular-nums;
}

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

@media (min-width: 62rem) {
	.contact__inner {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
	}
}

.formulaire {
	--trait: rgba(16, 32, 31, 0.18);
	--discret: rgba(16, 32, 31, 0.72);
	position: relative;
	display: grid;
	gap: 1.1rem;
	min-width: 0;
	padding: clamp(1.25rem, 3vw, 2.25rem);
	border-radius: var(--rayon-l);
	background: var(--blanc);
	color: var(--encre);
}

.formulaire :focus-visible {
	outline-color: var(--encre);
}

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

.formulaire__retour {
	padding: 0.9rem 1rem;
	border-radius: var(--rayon);
	font-weight: 600;
}

.formulaire__retour--succes {
	background: #E1F3E6;
	color: #124A27;
}

.formulaire__retour--erreur {
	background: #FCE6E3;
	color: #7F1D14;
}

.champ {
	display: grid;
	gap: 0.35rem;
	min-width: 0;
}

.champ label {
	font-size: 0.9375rem;
	font-weight: 600;
}

.champ__option {
	font-weight: 400;
	color: var(--discret);
}

.champ input[type="text"],
.champ input[type="tel"],
.champ input[type="email"],
.champ select,
.champ textarea {
	width: 100%;
	min-height: 3rem;
	padding: 0.65rem 0.8rem;
	border: 1.5px solid rgba(16, 32, 31, 0.5);
	border-radius: var(--rayon);
	background: var(--blanc);
	color: var(--encre);
	font: inherit;
}

.champ textarea {
	resize: vertical;
}

.champ-duo {
	display: grid;
	gap: 1.1rem;
}

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

.champ--case {
	grid-template-columns: auto minmax(0, 1fr);
	align-items: start;
	gap: 0.7rem;
}

.champ--case input {
	width: 1.25rem;
	height: 1.25rem;
	margin: 0.15rem 0 0;
	accent-color: var(--principale);
}

.champ--case label {
	font-size: var(--t-petit);
	font-weight: 400;
}

.formulaire__envoi {
	justify-self: start;
}

/* ---------- Pied de page ---------- */
.site-footer {
	--trait: color-mix(in srgb, var(--sur-principale) 22%, transparent);
	padding-block: 3rem 1.5rem;
	background: var(--principale);
	background: color-mix(in srgb, var(--principale) 80%, #000);
	color: var(--sur-principale);
	font-size: 0.9375rem;
}

.site-footer :focus-visible {
	outline-color: var(--accent);
}

.site-footer__inner {
	display: grid;
	gap: 2rem;
}

.site-footer__brand {
	display: grid;
	gap: 0.4rem;
	align-content: start;
}

.site-footer__name {
	font-size: 1.25rem;
	font-weight: 750;
	font-stretch: 125%;
}

.site-footer__coord {
	display: grid;
	gap: 0.2rem;
	align-content: start;
	font-style: normal;
}

.site-footer__list {
	display: grid;
	gap: 0.4rem;
	list-style: none;
}

.site-footer__widgets {
	display: grid;
	gap: 1rem;
	margin-top: 1rem;
}

.widget__titre {
	font-weight: 650;
}

.site-footer__legal {
	margin-top: 2.25rem;
	padding-top: 1.25rem;
	font-size: var(--t-petit);
}

.site-footer__legal p {
	padding-top: 1.25rem;
	border-top: 1px solid var(--trait);
}

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

/* ---------- Pages et articles ---------- */
.page-title {
	margin-bottom: 1.75rem;
	font-size: clamp(2rem, 1.3rem + 3vw, 3.25rem);
}

.page-figure {
	margin: 0 0 2rem;
}

.page-figure img {
	display: block;
	border-radius: var(--rayon-l);
}

.post-meta {
	margin-bottom: 0.6rem;
	font-size: var(--t-petit);
	color: var(--discret);
}

.prose {
	max-width: 42rem;
}

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

.prose h2 {
	margin-top: 2em;
	font-size: 1.75rem;
}

.prose h3 {
	margin-top: 1.75em;
}

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

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

.prose a {
	color: var(--principale);
	font-weight: 550;
}

.prose blockquote {
	margin-inline: 0;
	padding-left: 1.25rem;
	border-left: 3px solid var(--principale);
	font-size: var(--t-grand);
}

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

.prose table {
	width: 100%;
	border-collapse: collapse;
}

.prose th,
.prose td {
	padding: 0.6rem 0.75rem;
	border-bottom: 1px solid var(--trait);
	text-align: left;
}

.prose .wp-block-table,
.prose pre {
	overflow-x: auto;
}

.alignwide {
	max-width: none;
}

.aligncenter {
	display: block;
	margin-inline: auto;
}

.wp-caption,
.wp-block-image figcaption,
.gallery-caption {
	font-size: var(--t-petit);
	color: var(--discret);
}

.post-list {
	display: grid;
}

.post-item {
	display: grid;
	gap: 0.4rem;
	padding-block: 1.6rem;
	border-top: 1px solid var(--trait);
}

.post-item__title {
	font-size: 1.5rem;
}

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

.post-item__title a:hover {
	text-decoration: underline;
}

.post-item__excerpt {
	color: var(--discret);
}

.post-nav,
.nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.75rem 1.5rem;
	margin-top: 2.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--trait);
	font-weight: 600;
}

.nav-links .current {
	text-decoration: underline;
}

@media print {
	.site-header,
	.nav-toggle,
	.compare__curseur,
	.formulaire {
		display: none;
	}
}
