/*
Theme Name: Carnet
Theme URI: https://www.vivredinternet.com/
Author: Stéphane B.
Description: Thème éditorial sur mesure pour Vivre d'Internet. Parti pris du carnet de bord : typographie de publication, filets fins, entrées datées et numérotées, annotations en marge. Aucune dépendance à un thème parent, polices embarquées.
Version: 1.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: carnet
*/

/* ==========================================================================
   1. Polices embarquées
   ========================================================================== */

@font-face {
	font-family: 'Fraunces';
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url('polices/fraunces-var.woff2') format('woff2-variations');
}

@font-face {
	font-family: 'Plex Sans';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('polices/plexsans-400.woff2') format('woff2');
}

@font-face {
	font-family: 'Plex Sans';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('polices/plexsans-600.woff2') format('woff2');
}

@font-face {
	font-family: 'Plex Mono';
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url('polices/plexmono-500.woff2') format('woff2');
}

/* ==========================================================================
   2. Variables
   ========================================================================== */

:root {
	--encre: #191d1c;
	--texte: #333b39;
	--gris: #6d7875;
	--gris-clair: #98a29f;
	--papier: #faf8f4;
	--papier-creuse: #f2efe8;
	--trait: #ddd8cd;
	--trait-fin: #e8e4da;
	--vert: #0f5348;
	--vert-vif: #14675a;
	--ambre: #b4622a;

	--serif: 'Fraunces', Georgia, 'Times New Roman', serif;
	--sans: 'Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	--mono: 'Plex Mono', ui-monospace, 'SF Mono', Consolas, monospace;

	--large: 1180px;
	--texte-large: 720px;
	--marge: 28px;
}

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

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

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

body {
	margin: 0;
	background: var(--papier);
	color: var(--texte);
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.72;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--vert);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 2.5px;
	text-decoration-color: rgba(15, 83, 72, .35);
	transition: text-decoration-color .15s ease, color .15s ease;
}

a:hover,
a:focus {
	text-decoration-color: var(--vert);
}

h1, h2, h3, h4 {
	font-family: var(--serif);
	color: var(--encre);
	font-weight: 600;
	line-height: 1.16;
	letter-spacing: -.012em;
	margin: 0 0 .5em;
}

h1 { font-size: 2.9rem; }
h2 { font-size: 1.72rem; }
h3 { font-size: 1.24rem; }

p { margin: 0 0 1.25em; }

strong { font-weight: 600; color: var(--encre); }

ul, ol { margin: 0 0 1.4em; padding-left: 1.35em; }
li { margin-bottom: .55em; }

blockquote {
	margin: 2em 0;
	padding: 0 0 0 26px;
	border-left: 2px solid var(--ambre);
	font-family: var(--serif);
	font-size: 1.2rem;
	line-height: 1.5;
	color: var(--encre);
}

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

hr {
	border: 0;
	border-top: 1px solid var(--trait);
	margin: 2.6em 0;
}

code {
	font-family: var(--mono);
	font-size: .88em;
	background: var(--papier-creuse);
	padding: .12em .38em;
	border-radius: 3px;
}

::selection {
	background: rgba(180, 98, 42, .18);
}

/* Focus visible, sans l'imposer à la souris. */
:focus-visible {
	outline: 2px solid var(--ambre);
	outline-offset: 2px;
}

.lecteur-ecran {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* ==========================================================================
   4. Ossature
   ========================================================================== */

.enveloppe {
	max-width: var(--large);
	margin: 0 auto;
	padding: 0 var(--marge);
}

.colonne-texte {
	max-width: var(--texte-large);
}

/* Ligne de repère en mono, la signature du carnet. */
.repere {
	font-family: var(--mono);
	font-size: .72rem;
	font-weight: 500;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: var(--gris);
}

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

.repere a:hover {
	color: var(--ambre);
}

.repere .sep {
	color: var(--trait);
	margin: 0 .55em;
}

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

.bandeau-haut {
	height: 3px;
	background: var(--vert);
}

.entete {
	border-bottom: 1px solid var(--trait);
	background: var(--papier);
}

.entete-interieur {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	padding: 21px 0;
}

.marque {
	display: inline-flex;
	align-items: center;
	gap: 11px;
	font-family: var(--serif);
	font-size: 1.42rem;
	font-weight: 600;
	letter-spacing: -.02em;
	color: var(--encre);
	text-decoration: none;
	white-space: nowrap;
}

.marque:hover { color: var(--vert); }

.marque-signe {
	flex: 0 0 auto;
	display: block;
}

.navigation ul {
	display: flex;
	align-items: center;
	gap: 27px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.navigation li { margin: 0; }

.navigation a {
	font-size: .82rem;
	font-weight: 600;
	letter-spacing: .015em;
	color: var(--texte);
	text-decoration: none;
	padding: 6px 0;
	border-bottom: 2px solid transparent;
}

.navigation a:hover,
.navigation .current-menu-item > a,
.navigation .current-menu-parent > a {
	color: var(--encre);
	border-bottom-color: var(--ambre);
}

/* Bouton du menu sur petit écran. */
.bouton-menu {
	display: none;
	background: none;
	border: 1px solid var(--trait);
	border-radius: 4px;
	padding: 7px 13px;
	font-family: var(--mono);
	font-size: .72rem;
	font-weight: 500;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--encre);
	cursor: pointer;
}

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

.vdi-hero {
	display: grid;
	grid-template-columns: 1.06fr .94fr;
	gap: 60px;
	align-items: center;
	padding: 62px 0 58px;
	border-bottom: 1px solid var(--trait);
	margin-bottom: 0;
}

.vdi-hero h1 {
	font-size: 3.05rem;
	max-width: none;
	margin: 0 0 22px;
}

.vdi-hero p {
	font-size: 1.06rem;
	line-height: 1.68;
	color: var(--gris);
	max-width: 46ch;
	margin: 0;
}

.vdi-hero-texte::before {
	content: 'Le média des revenus en ligne';
	display: block;
	font-family: var(--mono);
	font-size: .72rem;
	font-weight: 500;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--ambre);
	margin-bottom: 18px;
	padding-left: 34px;
	position: relative;
}

/* Le petit filet qui précède le sur-titre. */
.vdi-hero-texte {
	position: relative;
}

.vdi-hero-texte::before {
	background: linear-gradient(var(--ambre), var(--ambre)) left 0.62em / 24px 1px no-repeat;
}

.vdi-hero-image {
	aspect-ratio: 1.28 / 1;
	overflow: hidden;
	background: var(--papier-creuse);
	border-radius: 2px;
}

.vdi-hero-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.vdi-appel { margin-top: 32px; }

.vdi-bouton {
	display: inline-block;
	background: var(--vert);
	color: #fff;
	font-family: var(--sans);
	font-size: .95rem;
	font-weight: 600;
	letter-spacing: .005em;
	padding: 15px 30px;
	border-radius: 3px;
	text-decoration: none;
	transition: background .16s ease;
}

.vdi-bouton:hover,
.vdi-bouton:focus {
	background: var(--encre);
	color: #fff;
	text-decoration: none;
}

.vdi-mention {
	display: block;
	margin-top: 13px;
	font-family: var(--mono);
	font-size: .72rem;
	letter-spacing: .04em;
	color: var(--gris-clair);
}

/* ==========================================================================
   7. Les rubriques sur l'accueil
   ========================================================================== */

.vdi-rubriques {
	display: grid;
	/* Les cinq rubriques tiennent sur une seule ligne : en laisser une au second
	   rang creuse un vide qui casse la page. */
	grid-template-columns: repeat(5, 1fr);
	gap: 0;
	padding: 0;
	margin: 0 0 54px;
	list-style: none;
	border-bottom: 1px solid var(--trait);
}

.vdi-rubriques > * {
	padding: 30px 19px 32px 0;
	margin: 0;
	border-right: 1px solid var(--trait-fin);
}

.vdi-rubriques > *:last-child {
	border-right: 0;
	padding-right: 0;
}

.vdi-rubriques > *:not(:first-child) { padding-left: 19px; }

.vdi-rubriques h3 {
	font-size: .97rem;
	line-height: 1.24;
	margin: 0 0 8px;
}

.vdi-rubriques h3 a {
	color: var(--encre);
	text-decoration: none;
}

.vdi-rubriques h3 a:hover { color: var(--vert); }

.vdi-rubriques p {
	font-size: .83rem;
	line-height: 1.55;
	color: var(--gris);
	margin: 0;
}

/* ==========================================================================
   8. L'index des entrées
   ========================================================================== */

.titre-section {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 20px;
	border-bottom: 1px solid var(--trait);
	padding-bottom: 10px;
	margin: 0 0 6px;
}

/* Repère de section, pas titre : un serif ici entrerait en concurrence avec
   les titres de rubrique juste en dessous, et brouillerait la hiérarchie. */
.titre-section h2 {
	font-family: var(--mono);
	font-size: .72rem;
	font-weight: 500;
	letter-spacing: .11em;
	text-transform: uppercase;
	color: var(--gris);
	margin: 0;
}

.entrees { margin-bottom: 72px; }

.entree {
	display: grid;
	grid-template-columns: 208px 1fr;
	gap: 32px;
	padding: 30px 0;
	border-bottom: 1px solid var(--trait-fin);
	align-items: start;
}

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

.entree-image {
	aspect-ratio: 1.55 / 1;
	overflow: hidden;
	background: var(--papier-creuse);
	border-radius: 2px;
}

.entree-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: opacity .2s ease;
}

.entree:hover .entree-image img { opacity: .88; }

.entree-numero {
	font-family: var(--mono);
	font-size: .72rem;
	font-weight: 500;
	color: var(--ambre);
	letter-spacing: .06em;
}

.entree h2,
.entree h3 {
	font-size: 1.34rem;
	line-height: 1.24;
	margin: 9px 0 8px;
	/* Un titre d'index tient en deux lignes, jamais plus : sinon la une
	   déséquilibre toute la colonne. Le padding évite de rogner les jambages. */
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	padding-bottom: 3px;
}

.entree h2 a,
.entree h3 a {
	color: var(--encre);
	text-decoration: none;
}

.entree h2 a:hover,
.entree h3 a:hover { color: var(--vert); }

.entree p {
	font-size: .93rem;
	line-height: 1.65;
	color: var(--gris);
	margin: 0;
	max-width: 62ch;
}

/* La première entrée d'un index passe en pleine largeur. */
.entree-une {
	grid-template-columns: 1fr;
	gap: 26px;
	padding-top: 34px;
}

.entree-une .entree-image {
	aspect-ratio: 2.55 / 1;
}

.entree-une h2 {
	font-size: 2.1rem;
	max-width: 46ch;
}

.entree-une p {
	font-size: 1rem;
	max-width: 66ch;
}

/* ==========================================================================
   8 bis. Les colonnes de rubrique sur l'accueil
   ========================================================================== */

.colonnes-rubriques {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 0;
	margin-bottom: 72px;
}

.colonnes-rubriques > * {
	padding: 26px 19px 0 0;
	border-right: 1px solid var(--trait-fin);
}

.colonnes-rubriques > *:last-child {
	border-right: 0;
	padding-right: 0;
}

.colonnes-rubriques > *:not(:first-child) { padding-left: 19px; }

.colonne-titre {
	font-size: 1rem;
	line-height: 1.24;
	margin: 0 0 20px;
	padding-left: 15px;
	position: relative;
}

/* La barre oblique qui marque la rubrique, reprise de la ligne de repère. */
.colonne-titre::before {
	content: '/';
	position: absolute;
	left: 0;
	top: 0;
	font-family: var(--mono);
	font-size: .95rem;
	font-weight: 500;
	color: var(--ambre);
}

.colonne-titre a {
	color: var(--encre);
	text-decoration: none;
}

.colonne-titre a:hover { color: var(--vert); }

.brin { margin-bottom: 24px; }

.brin:last-child { margin-bottom: 0; }

.brin-image {
	display: block;
	aspect-ratio: 1.6 / 1;
	overflow: hidden;
	background: var(--papier-creuse);
	border-radius: 2px;
	margin-bottom: 10px;
}

.brin-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: opacity .2s ease;
}

.brin:hover .brin-image img { opacity: .88; }

.brin h4 {
	font-family: var(--serif);
	font-size: .95rem;
	line-height: 1.3;
	margin: 0 0 7px;
	/* Trois lignes au maximum : au-delà, les colonnes se désalignent. */
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	padding-bottom: 2px;
}

.brin h4 a {
	color: var(--encre);
	text-decoration: none;
}

.brin h4 a:hover { color: var(--vert); }

.brin .repere { font-size: .67rem; }

/* ==========================================================================
   9. L'article
   ========================================================================== */

.article-entete {
	padding: 52px 0 34px;
	border-bottom: 1px solid var(--trait);
	margin-bottom: 40px;
}

/* Le titre prend toute la largeur : bridé à 21 caractères il cassait en trois
   lignes et laissait un vide énorme à droite. */
.article-entete h1 {
	font-size: 2.75rem;
	max-width: none;
	margin: 14px 0 20px;
}

.article-chapeau {
	font-size: 1.1rem;
	line-height: 1.62;
	color: var(--gris);
	max-width: 60ch;
	margin: 0;
}

.article-image {
	margin: 0 0 38px;
	border-radius: 2px;
	overflow: hidden;
}

.article-contenu {
	max-width: var(--texte-large);
	counter-reset: partie;
}

.article-contenu > p:first-of-type {
	font-size: 1.12rem;
	line-height: 1.66;
	color: var(--encre);
}

/* Les H2 numérotés, comme les points d'un carnet. */
.article-contenu h2 {
	position: relative;
	margin: 2.3em 0 .65em;
	padding-top: 20px;
	border-top: 1px solid var(--trait-fin);
	font-size: 1.62rem;
}

.article-contenu h2::before {
	counter-increment: partie;
	content: counter(partie, decimal-leading-zero);
	display: block;
	font-family: var(--mono);
	font-size: .72rem;
	font-weight: 500;
	letter-spacing: .1em;
	color: var(--ambre);
	margin-bottom: 11px;
}

.article-contenu h3 {
	margin: 1.9em 0 .5em;
	font-size: 1.2rem;
}

.article-contenu ul { list-style: none; padding-left: 0; }

.article-contenu ul li {
	position: relative;
	padding-left: 22px;
}

.article-contenu ul li::before {
	content: '';
	position: absolute;
	left: 0;
	top: .72em;
	width: 7px;
	height: 1px;
	background: var(--ambre);
}

.article-contenu ol { padding-left: 1.3em; }

.article-contenu ol li::marker {
	font-family: var(--mono);
	font-size: .85em;
	color: var(--ambre);
}

.article-contenu img { border-radius: 2px; margin: 2em 0; }

/* L'annotation de fin d'article. */
.vdi-encadre {
	background: var(--papier-creuse);
	border-left: 3px solid var(--ambre);
	padding: 26px 30px 24px;
	margin: 2.8em 0 1em;
	border-radius: 0 2px 2px 0;
}

.vdi-encadre strong {
	display: block;
	font-family: var(--mono);
	font-size: .7rem;
	font-weight: 500;
	letter-spacing: .11em;
	text-transform: uppercase;
	color: var(--ambre);
	margin-bottom: 11px;
}

.vdi-encadre p {
	margin: 0;
	font-size: .98rem;
	line-height: 1.66;
	color: var(--texte);
}

/* Le bloc auteur. */
.signature {
	display: none;
	max-width: var(--texte-large);
	margin: 56px 0 0;
	padding: 28px 0 0;
	border-top: 2px solid var(--encre);
	display: flex;
	gap: 20px;
	align-items: flex-start;
}

.signature-avatar {
	flex: 0 0 54px;
	width: 54px;
	height: 54px;
	border-radius: 50%;
	background: var(--vert);
	color: #fff;
	font-family: var(--serif);
	font-size: 1.32rem;
	font-weight: 600;
	display: flex;
	align-items: center;
	justify-content: center;
}

.signature-nom {
	font-family: var(--serif);
	font-size: 1.08rem;
	font-weight: 600;
	color: var(--encre);
	margin: 0 0 5px;
}

.signature p {
	font-size: .92rem;
	line-height: 1.62;
	color: var(--gris);
	margin: 0;
}

/* La suite à lire. */
.a-suivre {
	margin: 66px 0 0;
	padding-top: 0;
}

/* ==========================================================================
   9 bis. La colonne de droite de l'article
   ========================================================================== */

.article-corps {
	display: grid;
	grid-template-columns: minmax(0, var(--texte-large)) 1fr;
	gap: 66px;
	align-items: start;
}

.article-corps .article-contenu { max-width: none; }

/* La colonne suit la lecture. Son contenu est calibré pour tenir dans un écran
   d'ordinateur : rien ne défile en pratique. Le plafond n'est qu'un filet pour les
   très petites fenêtres, et sa barre est masquée, elle faisait bricolage. */
.article-flanc {
	position: sticky;
	top: 26px;
	max-height: calc(100vh - 52px);
	overflow-y: auto;
	scrollbar-width: none;
	-ms-overflow-style: none;
	padding-top: 2px;
}

.article-flanc::-webkit-scrollbar { width: 0; height: 0; }

.flanc-bloc {
	padding-bottom: 20px;
	margin-bottom: 20px;
	border-bottom: 1px solid var(--trait-fin);
}

.flanc-bloc:last-child {
	padding-bottom: 0;
	margin-bottom: 0;
	border-bottom: 0;
}

.flanc-titre {
	font-family: var(--mono);
	font-size: .7rem;
	font-weight: 500;
	letter-spacing: .11em;
	text-transform: uppercase;
	color: var(--ambre);
	margin: 0 0 14px;
}

.flanc-bloc p {
	font-size: .88rem;
	line-height: 1.62;
	color: var(--gris);
	margin: 0 0 14px;
}

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

/* Le sommaire, numéroté comme les parties de l'article. */
.sommaire ol {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sommaire li { margin: 0 0 9px; }

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

.sommaire a {
	display: grid;
	grid-template-columns: 26px 1fr;
	gap: 4px;
	font-size: .88rem;
	line-height: 1.4;
	color: var(--texte);
	text-decoration: none;
}

.sommaire a:hover { color: var(--vert); }

.sommaire-rang {
	font-family: var(--mono);
	font-size: .7rem;
	color: var(--ambre);
	padding-top: .18em;
}

.flanc-cadeau {
	background: var(--papier-creuse);
	border-radius: 3px;
	padding: 18px 20px 20px;
	border-bottom: 0;
	margin-bottom: 20px;
}

.flanc-cadeau .vdi-bouton {
	display: block;
	text-align: center;
	font-size: .88rem;
	padding: 12px 20px;
}

/* La liste des articles récents : titre puis date, sans vignette, la colonne
   ne fait que 338 px. */
.flanc-recents ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.flanc-recents li {
	margin: 0 0 11px;
	padding-bottom: 11px;
	border-bottom: 1px solid var(--trait-fin);
}

.flanc-recents li:last-child {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: 0;
}

.flanc-recents a {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-family: var(--serif);
	font-size: .92rem;
	font-weight: 600;
	line-height: 1.26;
	color: var(--encre);
	text-decoration: none;
	margin-bottom: 4px;
}

.flanc-recents a:hover { color: var(--vert); }

.flanc-recents .repere { font-size: .67rem; }

.flanc-nom {
	font-family: var(--serif);
	font-size: 1rem;
	font-weight: 600;
	color: var(--encre) !important;
	margin-bottom: 7px !important;
}

/* Le titre décalé sous une ancre : sinon il se colle au bord de l'écran. */
.article-contenu h2[id] { scroll-margin-top: 24px; }

/* ==========================================================================
   10. Pages, archives, recherche
   ========================================================================== */

.page-entete {
	padding: 52px 0 30px;
	border-bottom: 1px solid var(--trait);
	margin-bottom: 40px;
}

.page-entete h1 {
	font-size: 2.5rem;
	max-width: 22ch;
	margin: 12px 0 16px;
}

.page-entete p {
	font-size: 1.04rem;
	color: var(--gris);
	max-width: 58ch;
	margin: 0;
}

.page-contenu {
	max-width: var(--texte-large);
	padding-bottom: 40px;
}

.page-contenu h2 {
	margin: 1.9em 0 .55em;
	font-size: 1.52rem;
}

.page-contenu ul li::marker { color: var(--ambre); }

/* Pagination. */
.pagination {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin: 46px 0 76px;
	padding-top: 26px;
	border-top: 1px solid var(--trait);
}

.pagination .page-numbers {
	font-family: var(--mono);
	font-size: .8rem;
	font-weight: 500;
	padding: 8px 14px;
	border: 1px solid var(--trait);
	border-radius: 3px;
	color: var(--texte);
	text-decoration: none;
}

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

.pagination .current {
	background: var(--encre);
	border-color: var(--encre);
	color: var(--papier);
}

/* Formulaire de recherche. */
.recherche {
	display: flex;
	gap: 9px;
	max-width: 460px;
}

.recherche input[type="search"] {
	flex: 1;
	font-family: var(--sans);
	font-size: .95rem;
	padding: 11px 15px;
	border: 1px solid var(--trait);
	border-radius: 3px;
	background: #fff;
	color: var(--encre);
}

.recherche input[type="search"]:focus {
	outline: none;
	border-color: var(--vert);
}

.recherche button {
	font-family: var(--sans);
	font-size: .9rem;
	font-weight: 600;
	padding: 11px 20px;
	border: 0;
	border-radius: 3px;
	background: var(--encre);
	color: var(--papier);
	cursor: pointer;
}

.recherche button:hover { background: var(--vert); }

/* Formulaires génériques (Contact Form 7). */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
textarea {
	width: 100%;
	font-family: var(--sans);
	font-size: .97rem;
	padding: 11px 14px;
	border: 1px solid var(--trait);
	border-radius: 3px;
	background: #fff;
	color: var(--encre);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
textarea:focus {
	outline: none;
	border-color: var(--vert);
}

label { display: block; font-weight: 600; font-size: .93rem; margin-bottom: 6px; }

input[type="submit"] {
	font-family: var(--sans);
	font-size: .95rem;
	font-weight: 600;
	padding: 13px 28px;
	border: 0;
	border-radius: 3px;
	background: var(--vert);
	color: #fff;
	cursor: pointer;
}

input[type="submit"]:hover { background: var(--encre); }

/* Page 404. */
.erreur {
	padding: 90px 0 110px;
	max-width: 54ch;
}

.erreur h1 { font-size: 2.4rem; }

/* ==========================================================================
   11. Pied de page
   ========================================================================== */

.pied {
	background: var(--encre);
	color: #b9c2bf;
	margin-top: 40px;
	padding: 54px 0 34px;
	font-size: .92rem;
}

.pied-haut {
	display: grid;
	grid-template-columns: 1.35fr 1fr 1fr;
	gap: 46px;
	padding-bottom: 40px;
	border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.pied-marque {
	display: flex;
	align-items: center;
	gap: 11px;
	font-family: var(--serif);
	font-size: 1.3rem;
	font-weight: 600;
	color: #fff;
	margin: 0 0 12px;
}

/* La signature de la colonne de gauche, plus discrète que l'accroche.
   Deux classes ici, sinon `.pied p` l'emporte et la couleur ne prend pas. */
.pied .pied-note {
	margin-top: 15px;
	font-size: .86rem;
	line-height: 1.6;
	color: #6f7a77;
}

.pied p {
	line-height: 1.68;
	margin: 0;
	max-width: 40ch;
	color: #97a29f;
}

.pied-titre {
	font-family: var(--mono);
	font-size: .7rem;
	font-weight: 500;
	letter-spacing: .11em;
	text-transform: uppercase;
	color: var(--ambre);
	margin: 0 0 15px;
}

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

.pied li { margin-bottom: 9px; }

.pied a {
	color: #b9c2bf;
	text-decoration: none;
}

.pied a:hover { color: #fff; text-decoration: underline; }

.pied-bas {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
	justify-content: space-between;
	align-items: center;
	padding-top: 26px;
	font-family: var(--mono);
	font-size: .72rem;
	letter-spacing: .05em;
	color: #7d8785;
}

.pied-bas nav {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}

/* ==========================================================================
   12. Écrans intermédiaires
   ========================================================================== */

@media (max-width: 1000px) {
	.article-corps {
		grid-template-columns: 1fr;
		gap: 34px;
	}

	.article-flanc {
		position: static;
		order: -1;
		padding: 0 0 26px;
		border-bottom: 1px solid var(--trait);
	}

	.flanc-bloc { padding-bottom: 20px; margin-bottom: 20px; }

	.colonnes-rubriques { grid-template-columns: repeat(2, 1fr); }

	.colonnes-rubriques > *:nth-child(2n) { border-right: 0; padding-right: 0; }

	.colonnes-rubriques > *:nth-child(odd) { padding-left: 0; }

	.vdi-rubriques { grid-template-columns: 1fr; }

	.vdi-rubriques > * {
		padding: 20px 0;
		border-right: 0;
		border-bottom: 1px solid var(--trait-fin);
	}

	.vdi-rubriques > *:not(:first-child) { padding-left: 0; }

	.vdi-rubriques > *:last-child { border-bottom: 0; }
}

@media (max-width: 980px) {
	.vdi-hero {
		gap: 42px;
	}

	.vdi-hero h1 { font-size: 2.5rem; }

	.entree { grid-template-columns: 168px 1fr; gap: 24px; }

	.pied-haut { grid-template-columns: 1fr 1fr; gap: 36px; }

	.pied-haut > *:first-child { grid-column: 1 / -1; }
}

/* ==========================================================================
   13. Téléphone
   ========================================================================== */

@media (max-width: 760px) {
	.colonnes-rubriques { grid-template-columns: 1fr; }

	.colonnes-rubriques > * {
		padding: 22px 0 0;
		border-right: 0;
		border-top: 1px solid var(--trait-fin);
	}

	.colonnes-rubriques > *:first-child { border-top: 0; }

	body { font-size: 16.5px; }

	:root { --marge: 20px; }

	h1 { font-size: 2.05rem; }
	h2 { font-size: 1.45rem; }

	.entete-interieur { padding: 16px 0; }

	.bouton-menu { display: block; }

	.navigation {
		display: none;
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		background: var(--papier);
		border-bottom: 1px solid var(--trait);
		padding: 8px var(--marge) 20px;
		z-index: 40;
	}

	.entete { position: relative; }

	.entete.ouvert .navigation { display: block; }

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

	.navigation li { border-bottom: 1px solid var(--trait-fin); }

	.navigation li:last-child { border-bottom: 0; }

	.navigation a {
		display: block;
		padding: 13px 0;
		font-size: .95rem;
		border-bottom: 0;
	}

	.vdi-hero {
		grid-template-columns: 1fr;
		gap: 26px;
		padding: 32px 0 34px;
	}

	.vdi-hero-image { order: -1; aspect-ratio: 1.85 / 1; }

	.vdi-hero h1 { font-size: 2.1rem; }

	.vdi-hero p { font-size: 1rem; max-width: none; }

	.vdi-rubriques {
		grid-template-columns: 1fr;
		margin-bottom: 44px;
	}

	.vdi-rubriques > * {
		padding: 22px 0;
		border-right: 0;
		border-bottom: 1px solid var(--trait-fin);
	}

	.vdi-rubriques > *:not(:first-child) { padding-left: 0; }

	.vdi-rubriques > *:last-child { border-bottom: 0; }

	.entree {
		grid-template-columns: 1fr;
		gap: 16px;
		padding: 24px 0;
	}

	.entree-image { aspect-ratio: 1.9 / 1; }

	.entree h2, .entree h3 { font-size: 1.22rem; }

	.entree-une .entree-image { aspect-ratio: 1.9 / 1; }

	.entree-une h2 { font-size: 1.62rem; max-width: none; }

	/* Sur une colonne étroite, deux lignes couperaient trop court. */
	.entree h2,
	.entree h3 { -webkit-line-clamp: 3; }

	.article-entete { padding: 32px 0 26px; margin-bottom: 30px; }

	.article-entete h1 { font-size: 2rem; max-width: none; }

	.article-chapeau { font-size: 1.02rem; }

	.article-contenu h2 { font-size: 1.4rem; }

	.article-image { margin-bottom: 32px; }

	.vdi-encadre { padding: 22px 22px 20px; }

	.page-entete { padding: 32px 0 24px; }

	.page-entete h1 { font-size: 1.95rem; }

	.pied-haut { grid-template-columns: 1fr; gap: 30px; }

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

/* ==========================================================================
   14. Impression
   ========================================================================== */

@media print {
	.entete,
	.pied,
	.vdi-appel,
	.a-suivre { display: none; }

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

	.article-contenu { max-width: none; }
}
