/*
Theme Name: Robin Boulé
Theme URI: https://example.com
Author: Robin Boulé
Description: Thème sur mesure pour un journaliste pigiste et aspirant doctorant : accueil sur un seul écran (nom, menu, sélection d’articles et de travaux qui défile, boîte aux lettres pour le contact, fond animé au choix, mini-jeu caché), mode clair / sombre, page Presse en blocs avec les médias, articles en feuille de lecture, travaux universitaires en accès libre avec sommaire automatique.
Version: 2.34.13
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: robin-boule
*/

/* =========================================================
   1. Réglages de base : couleurs, polices
   Pour changer une couleur partout, modifiez-la ici
   (ou dans Apparence > Personnaliser > CSS additionnel).
   ========================================================= */
:root {
	--page: #FFFFFF;      /* fond de la page */
	--blanc: #FFFFFF;     /* fond des blocs */
	--noir: #111111;
	--vert: #16DB92;
	--gris: #F2F2F2;
	--gris-texte: #5C5C5C;
	--texte-intro: #383838; /* textes d'introduction : plus lisibles que le gris */
	--gris-ligne: #E2E2E2;
	--lilas: #C7B6F2;
	--soleil: #F5C451;
	--titre: 'Alegreya', Georgia, 'Times New Roman', serif;
	--ui: 'Alegreya Sans', 'Helvetica Neue', Arial, sans-serif;
	--sc: 'Alegreya Sans SC', 'Alegreya Sans', 'Helvetica Neue', Arial, sans-serif;
	--largeur: 1040px;
	--trait: 1.5px solid var(--noir);
	--points: rgba(17, 17, 17, 0.07);
	--ombre: rgba(17, 17, 17, 0.12);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background-color: var(--page);
	background-image: radial-gradient(var(--points) 1.2px, transparent 1.3px);
	background-size: 22px 22px;
	color: var(--noir);
	font-family: var(--titre);
	font-size: 18px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--noir); }
:focus-visible { outline: 3px solid var(--vert); outline-offset: 2px; }
::selection { background: var(--vert); color: var(--noir); }

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

.lien-evitement { position: absolute; left: -9999px; z-index: 100; }
.lien-evitement:focus { left: 16px; top: 16px; background: var(--vert); padding: 8px 12px; }

.site-principal { flex: 1; padding: 48px 24px 96px; }
.conteneur { max-width: var(--largeur); margin: 0 auto; }
.conteneur--etroit { max-width: 900px; }

/* =========================================================
   2. En-tête et pied de page
   ========================================================= */
.site-entete { padding: 20px 24px 0; }

.barre {
	max-width: var(--largeur);
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 32px;
	background: var(--blanc);
	border: var(--trait);
	border-radius: 10px;
	padding: 10px 12px;
}

.marque { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.marque__nom { font-weight: 700; font-size: 21px; }

.monogramme {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--vert);
	color: var(--noir);
	font-family: var(--titre);
	font-weight: 800;
	font-style: italic;
	font-size: 20px;
	line-height: 1;
}
/* Avec l'icône du site : l'image seule, sans fond vert (une image sans fond garde sa transparence) */
.monogramme--icone { background: none; overflow: hidden; }
.monogramme--icone img { display: block; width: 100%; height: 100%; object-fit: contain; }

.menu {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
	font-family: var(--ui);
	font-size: 16.5px;
	font-weight: 500;
}
.menu a { display: block; padding: 8px 16px; border-radius: 6px; text-decoration: none; }
.menu a:hover { background: var(--gris); }
.menu .current-menu-item > a,
.menu .current_page_item > a,
.menu .current-menu-ancestor > a,
.menu .current_page_parent > a,
.menu .est-actif > a { background: var(--vert); }

/* La pilule aimantée de la barre de menu (assets/menu.js) : elle remplace le fond vert de la page en cours
   et le gris du survol ; elle glisse d'une rubrique à l'autre et suit un peu la souris. */
.barre > nav { position: relative; }
.menu-pilule {
	position: absolute; left: 0; top: 0; z-index: 0;
	width: 0; height: 0;
	border-radius: 999px;
	background: var(--vert);
	opacity: 0;
	pointer-events: none;
	transition: left 0.4s cubic-bezier(0.3, 1.3, 0.5, 1), top 0.4s cubic-bezier(0.3, 1.3, 0.5, 1), width 0.4s cubic-bezier(0.3, 1.3, 0.5, 1), height 0.4s cubic-bezier(0.3, 1.3, 0.5, 1), opacity 0.2s, transform 0.15s ease-out;
}
.menu-pilule.sans-glisse { transition: opacity 0.2s, transform 0.15s ease-out; }
.menu-pilule.visible { opacity: 1; }
.menu--pilule .menu a { position: relative; z-index: 1; border-radius: 999px; background: none !important; transition: color 0.25s; }
.menu--pilule .menu a.sous-pilule { color: #111111; }
.menu__mot { display: inline-block; transition: transform 0.15s ease-out; }
html[data-theme="sombre"] .menu--pilule .menu a:not(.sous-pilule) { color: var(--noir); }

/* Le contour des pilules vertes (menu des pages et menu de l'accueil) scintille doucement :
   un reflet clair fait lentement le tour du bord, et une lueur verte respire autour.
   Version économe : la bande de lumière et la lueur sont dessinées une seule fois ; ensuite on ne fait
   que tourner la bande (derrière un pochoir en forme de contour) et changer la transparence de la lueur.
   Ces deux mouvements sont gérés par la carte graphique : le processeur n'a rien à redessiner. */
.pilule-verte__anneau {
	position: absolute; inset: 0;
	overflow: hidden; /* le reflet tournant ne dépasse jamais (pas de défilement de côté sur téléphone) */
	border-radius: inherit;
	padding: 2px;
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
	pointer-events: none;
}
.pilule-verte__reflet {
	position: absolute; left: 50%; top: 50%;
	width: 240px; height: 240px;
	margin: -120px 0 0 -120px;
	background: conic-gradient(transparent 0deg, transparent 220deg, rgba(255, 255, 255, 0.25) 270deg, rgba(255, 255, 255, 0.95) 310deg, rgba(255, 255, 255, 0.25) 340deg, transparent 360deg);
	will-change: transform;
	animation: pilule-reflet 6s linear infinite;
}
.pilule-verte::after {
	content: ''; position: absolute; inset: 0;
	border-radius: inherit;
	box-shadow: 0 0 12px 1px rgba(22, 219, 146, 0.5);
	opacity: 0;
	pointer-events: none;
	animation: pilule-lueur 4.5s ease-in-out infinite;
}
/* Pilule cachée : tout s'arrête. */
.pilule-verte:not(.visible) .pilule-verte__reflet, .pilule-verte:not(.visible)::after { animation-play-state: paused; }
@keyframes pilule-reflet { to { transform: rotate(360deg); } }
@keyframes pilule-lueur { 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
	.pilule-verte__reflet, .pilule-verte::after { animation: none; }
	.menu-pilule, .menu__mot { transition: opacity 0.2s; }
}

.site-pied { background: #111111; color: #FFFFFF; font-family: var(--ui); }
.site-pied__interieur {
	max-width: var(--largeur);
	margin: 0 auto;
	padding: 44px 24px 40px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}
.pied__identite { display: flex; align-items: center; gap: 14px; }
.pied__nom { font-family: var(--titre); font-weight: 700; font-size: 20px; }
.pied__accroche, .pied__copy { font-size: 15px; color: #BDBDBD; }
.pied__droite { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.pied__lien { font-size: 15px; color: #BDBDBD; text-decoration: underline; text-decoration-color: var(--vert); text-underline-offset: 3px; }
.pied__lien:hover { color: #FFFFFF; }
@media (max-width: 600px) { .pied__droite { align-items: flex-start; } }
/* Réseaux sociaux : boutons ronds. Dans le pied de page, les mêmes petits ronds que sur l'accueil (juste dessous) ;
   ceux de l'accueil sont dans assets/accueil.css. */
.reseaux { display: flex; gap: 14px; }
.reseau {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	overflow: hidden;
	border: 1.5px solid #FFFFFF;
	border-radius: 50%;
	color: #FFFFFF;
	text-decoration: none;
}
.reseau img { display: block; width: 24px; height: 24px; object-fit: contain; border-radius: 4px; }
.reseau .icone { display: block; }
.reseau__lettres { font-family: var(--ui); font-weight: 700; font-size: 20px; line-height: 1; letter-spacing: -0.02em; }
.reseau:focus-visible { outline: 3px solid var(--vert); outline-offset: 3px; }
/* Pied de page : les mêmes petits ronds que sur l'accueil. Fond blanc et contour noir (en sombre : fond noir,
   contour gris), rempli de vert au survol, sans bouger. Le logo téléversé garde ses couleurs. */
.site-pied .reseaux { gap: 8px; }
.site-pied .reseau { width: 36px; height: 36px; overflow: visible; border: 2px solid #111111; background: #FFFFFF; color: #111111; transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease; }
.site-pied .reseau img, .site-pied .reseau .icone { width: 17px; height: 17px; border-radius: 3px; }
.site-pied .reseau__lettres { font-size: 15px; }
.site-pied .reseau:hover, .site-pied .reseau:focus-visible { background: var(--vert); border-color: #111111; color: #111111; }
html[data-theme="sombre"] .site-pied .reseau { background: #0A0A0B; border-color: #5E6168; color: #ECECEC; }
html[data-theme="sombre"] .site-pied .reseau:hover, html[data-theme="sombre"] .site-pied .reseau:focus-visible { background: var(--vert); border-color: var(--vert); color: #111111; }
@keyframes reseau-pop { 0% { transform: scale(1); } 45% { transform: scale(1.18); } 100% { transform: scale(1); } }

/* =========================================================
   3. Éléments communs
   ========================================================= */
/* ---------------------------------------------------------
   L'en-tête des pages : un filet noir en haut, le nom de la page à gauche
   suivi d'un point vert, son texte d'introduction à droite.
   Dessous, une bande facultative (les logos des médias sur la page Presse).
   --------------------------------------------------------- */
.entete-page { margin: 0 0 48px; padding-top: 22px; border-top: 4px solid var(--noir); }
/* Le titre sur une ligne, puis le texte sur toute la largeur de la page, dessous. */
.entete-page__haut {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 20px;
	align-items: start;
}
.entete-page__titre {
	margin: 0;
	font-family: var(--titre);
	font-weight: 900;
	font-size: clamp(40px, 6.5vw, 70px);
	line-height: 1;
	letter-spacing: -0.02em;
	text-wrap: balance;
}
.entete-page__point { color: var(--vert); }
/* Le texte seul prend toute la largeur ; avec un encart, ils se partagent la ligne. */
.entete-page__rang { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: stretch; }
.entete-page--encart .entete-page__rang { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.entete-page__texte { display: flex; flex-direction: column; align-items: stretch; }
/* Le texte d'introduction garde sa feuille blanche, comme la présentation de la page À propos. */
.entete-page__texte .intro { max-width: none; margin: 0; }
.vague { align-self: flex-end; margin-bottom: 10px; }

/* L'encart : la petite boîte à côté de l'introduction (titre + texte, écrits dans l'éditeur de la page). */
.encart {
	box-sizing: border-box;
	padding: 20px 24px 22px;
	background: var(--gris);
	border: var(--trait);
	border-radius: 12px;
}
.encart__titre {
	display: flex;
	align-items: center;
	gap: 9px;
	margin: 0 0 10px;
	font-family: var(--sc);
	font-weight: 700;
	font-size: 15px;
	letter-spacing: 0.08em;
	color: var(--noir);
}
.encart__point { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--vert); }
.encart__texte { font-size: 17px; line-height: 1.55; color: var(--texte-intro); }
.encart__texte > * { margin: 0; }
.encart__texte > * + * { margin-top: 0.6em; }
.encart__texte a { color: var(--noir); text-decoration: underline; text-decoration-color: var(--vert); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.encart__vide { margin: 0; font-family: var(--ui); font-size: 14.5px; color: var(--gris-texte); }
/* Un encart sans introduction à côté : il occupe la ligne, mais ne s'étire pas sur toute la largeur. */
.entete-page--encart-seul .encart { max-width: 560px; }
/* La feuille de lecture d'une page simple, sous son en-tête. */
.feuille-seule { max-width: 900px; margin: 0 auto; }
@media (max-width: 860px) {
	.entete-page--encart .entete-page__rang { grid-template-columns: minmax(0, 1fr); }
}

/* La bulle « Robin Débat » (inc/bulle-debat.php), sur l'accueil et sur la page Presse : le point vert bat et envoie une onde ;
   au survol, au clavier ou au premier toucher, il se déplie en pilule à la taille du texte,
   et les lettres apparaissent une à une. Le nom ne bouge pas : la pilule passe par-dessus. */
.bulle-debat {
	--d: 36px; /* taille du point (sur l'accueil : à la taille du nom, assets/accueil.css) */
	--h: 44px; /* hauteur de la pilule dépliée */
	position: relative;
	display: inline-block;
	flex: none;
	width: var(--d); height: var(--d);
}
.bulle-debat::before {
	content: ''; position: absolute; inset: 0;
	border: 2px solid var(--vert);
	border-radius: 50%;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s;
}
.bulle-debat--onde::before { animation: bulle-onde 2.6s cubic-bezier(0.2, 0.6, 0.3, 1) 1.4s infinite; }
.bulle-debat__lien {
	position: absolute; left: 0; top: 0; z-index: 2;
	display: flex; align-items: center;
	box-sizing: border-box;
	width: max-content; min-width: var(--d); height: var(--d);
	padding: 0 calc((var(--d) - 14px) / 2);
	overflow: hidden;
	border-radius: 999px;
	background-color: var(--vert);
	background-image: var(--bulle-image, none); /* l'image de la bulle (Apparence › Personnaliser › Le point vert de l'accueil) */
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	color: #111111;
	font-family: var(--sc);
	font-size: 19px;
	font-weight: 700;
	letter-spacing: 0.03em;
	line-height: 1;
	white-space: nowrap;
	text-decoration: none;
	-webkit-tap-highlight-color: transparent;
	transition: height 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), top 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
}
.bulle-debat--onde .bulle-debat__lien, .bulle-debat--pouls .bulle-debat__lien { animation: accueil-pouls-doux 3.2s ease-in-out 1.4s infinite; }
.bulle-debat--gauche .bulle-debat__lien { left: auto; right: 0; } /* pas la place à droite (téléphone) : la pilule s'ouvre vers la gauche */
.bulle-debat__info { flex: none; display: block; width: 14px; height: 14px; transition: transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1); }
.bulle-debat__plie { display: grid; grid-template-columns: 0fr; transition: grid-template-columns 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.bulle-debat__texte { min-width: 0; overflow: hidden; }
@supports (overflow-x: clip) { .bulle-debat__texte { overflow: visible; overflow-x: clip; } } /* les lettres peuvent rebondir sans être coupées */
.bulle-debat__mot { display: inline-flex; padding: 0 6px 0 8px; }
.bulle-debat--sans-info .bulle-debat__mot { padding-left: 2px; }
.bulle-debat__l { display: inline-block; opacity: 0; transform: translateY(10px) scale(0.5); transition: opacity 0.2s, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1); }
.bulle-debat__lien:focus-visible { outline: none; }

/* Dépliée : au survol (souris), au clavier, ou après un premier toucher (assets/accueil.js). */
.bulle-debat__lien:focus-visible,
.bulle-debat--ouverte .bulle-debat__lien { height: var(--h); top: calc((var(--d) - var(--h)) / 2); animation: none; box-shadow: 0 10px 24px rgba(22, 219, 146, 0.35); }
.bulle-debat__lien:focus-visible { box-shadow: 0 0 0 3px var(--page), 0 0 0 5px var(--noir); }
/* Texte toujours foncé sur la bulle, même là où les liens prennent la couleur du texte (accueil en mode sombre). */
.bulle-debat .bulle-debat__lien, .bulle-debat .bulle-debat__lien:hover { color: #111111; }
/* Page Presse : la bulle choisie reste dépliée et cerclée, comme une catégorie choisie. */
.bulle-debat--choisie .bulle-debat__lien { height: var(--h); top: calc((var(--d) - var(--h)) / 2); animation: none; box-shadow: 0 0 0 3px var(--page), 0 0 0 5px var(--noir); }
.bulle-debat--choisie::before { animation: none; opacity: 0; }
.bulle-debat--choisie .bulle-debat__plie { grid-template-columns: 1fr; }
.bulle-debat--choisie .bulle-debat__l { opacity: 1; transform: none; transition-delay: 0s; }
.bulle-debat:focus-within::before,
.bulle-debat--ouverte::before { animation: none; opacity: 0; }
.bulle-debat__lien:focus-visible .bulle-debat__plie,
.bulle-debat--ouverte .bulle-debat__plie { grid-template-columns: 1fr; }
.bulle-debat__lien:focus-visible .bulle-debat__info,
.bulle-debat--ouverte .bulle-debat__info { transform: rotate(360deg); }
.bulle-debat__lien:focus-visible .bulle-debat__l,
.bulle-debat--ouverte .bulle-debat__l { opacity: 1; transform: none; transition-delay: calc(var(--i) * 35ms + 160ms); }
@media (hover: hover) {
	.bulle-debat:hover .bulle-debat__lien { height: var(--h); top: calc((var(--d) - var(--h)) / 2); animation: none; box-shadow: 0 10px 24px rgba(22, 219, 146, 0.35); }
	.bulle-debat:hover::before { animation: none; opacity: 0; }
	.bulle-debat:hover .bulle-debat__plie { grid-template-columns: 1fr; }
	.bulle-debat:hover .bulle-debat__info { transform: rotate(360deg); }
	.bulle-debat:hover .bulle-debat__l { opacity: 1; transform: none; transition-delay: calc(var(--i) * 35ms + 160ms); }
}
@keyframes accueil-pouls-doux { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.14); } }
@keyframes bulle-onde { 0% { transform: scale(1); opacity: 0.75; } 80%, 100% { transform: scale(2.3); opacity: 0; } }
@media (max-width: 700px) { .bulle-debat__lien { font-size: 17px; } }
@media (prefers-reduced-motion: reduce) {
	.bulle-debat::before, .bulle-debat__lien { animation: none !important; }
	.bulle-debat__lien, .bulle-debat__plie, .bulle-debat__info { transition-duration: 0.2s; transition-timing-function: ease; }
	.bulle-debat__info { transform: none !important; }
	.bulle-debat__l { transform: none !important; transition: opacity 0.2s !important; }
}

/* La bande des logos qui défilent (page Presse) */
/* Une seule ligne fine : le petit titre à gauche, les logos qui défilent à côté (sur téléphone : l'un sous l'autre). */
.bande-logos { display: flex; align-items: center; gap: 18px; margin: 22px 0 0; padding: 6px 0; border-top: 1px solid var(--gris-ligne); border-bottom: 1px solid var(--gris-ligne); }
.bande-logos .defile { flex: 1; min-width: 0; }
.bande-logos .defile__piste { gap: 12px; }
.bande-logos .medias__logo { width: 104px; height: 36px; padding: 4px 10px; }
.bande-logos .medias__logo img { max-height: 22px; }
.bande-logos__titre {
	flex: none;
	display: flex; align-items: center; gap: 9px;
	margin: 0;
	font-family: var(--sc);
	font-weight: 700;
	font-size: 13.5px;
	letter-spacing: 0.1em;
	color: var(--gris-texte);
}
.bande-logos__point { width: 9px; height: 9px; border-radius: 50%; background: var(--vert); }
/* Les bords s'estompent : les logos apparaissent et disparaissent en douceur au lieu d'être coupés net. */
.defile {
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 70px, #000 calc(100% - 70px), transparent);
	mask-image: linear-gradient(90deg, transparent, #000 70px, #000 calc(100% - 70px), transparent);
}
.defile__piste {
	display: flex;
	width: max-content;
	align-items: center;
	gap: 16px;
	margin: 0;
	padding: 5px 16px 5px 0; /* de l'air pour la bague verte du survol, sinon la bande la rogne */
	list-style: none;
	animation: defiler var(--defile-duree, 60s) linear infinite;
}
/* Le défilement s'arrête quand on passe dessus, pour pouvoir lire un logo. */
.defile:hover .defile__piste, .defile:focus-within .defile__piste { animation-play-state: paused; }
@keyframes defiler { from { transform: translateX(0); } to { transform: translateX(-50%); } }
/* Peu de médias : tout tient sur une ligne, rien ne défile. */
.defile--fixe { -webkit-mask-image: none; mask-image: none; }
.defile--fixe .defile__piste { width: auto; flex-wrap: wrap; padding: 5px 0; animation: none; }
.modifier-texte--medias { margin-top: 10px; }
@media (max-width: 700px) {
	.entete-page { margin-bottom: 36px; padding-top: 18px; }
	.entete-page__haut { gap: 14px; }
	.bande-logos { flex-direction: column; align-items: stretch; gap: 6px; padding: 10px 0 6px; }
	.defile { -webkit-mask-image: linear-gradient(90deg, transparent, #000 36px, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, transparent, #000 36px, #000 calc(100% - 36px), transparent); }
}

.etiquette {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	background: var(--blanc);
	border: var(--trait);
	border-radius: 6px;
	padding: 4px 16px 4px 10px;
	font-family: var(--sc);
	font-weight: 700;
	font-size: 15px;
	letter-spacing: 0.08em;
	line-height: 1.5;
}

.pastille {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--gris);
	border-radius: 6px;
	padding: 2px 12px 2px 8px;
	font-family: var(--sc);
	font-weight: 700;
	font-size: 13.5px;
	letter-spacing: 0.05em;
	line-height: 1.6;
	color: var(--noir);
	text-decoration: none;
}
.pastille .icone { flex: none; }
a.pastille:hover { filter: brightness(0.94); }
.pastille--contour { background: var(--blanc); border: var(--trait); padding: 1px 10px; }

.bouton {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background: var(--noir);
	color: var(--blanc);
	border: var(--trait);
	border-radius: 6px;
	padding: 11px 22px;
	font-family: var(--ui);
	font-weight: 700;
	font-size: 16px;
	line-height: 1.3;
	text-decoration: none;
	cursor: pointer;
}
.bouton:hover { background: var(--vert); color: var(--noir); }
.bouton--clair { background: var(--blanc); color: var(--noir); }
.bouton--clair:hover { background: var(--gris); }
.bouton--petit { padding: 7px 16px; font-weight: 500; font-size: 15px; }

.titre-lien { text-decoration: none; }
.titre-lien:hover { background: linear-gradient(transparent 58%, var(--vert) 58%); }

.intro { max-width: 640px; margin: -24px 0 40px; font-size: 19px; color: var(--texte-intro); }
/* Liens des textes d'introduction : soulignés de vert ; au survol, le fond vert pâle (voir juste en dessous) */
.intro a, .section__texte a { color: var(--noir); text-decoration: underline; text-decoration-color: var(--vert); text-decoration-thickness: 2px; text-underline-offset: 4px; }
/* Les liens dans les textes (articles, pages, introductions, encarts, étapes) : soulignés de vert ;
   au survol, un léger fond vert pâle apparaît derrière le lien. Rien ne bouge. */
.texte a, .intro a, .section__texte a, .encart__texte a, .etape__texte a { transition: background-color 0.15s ease; }
.texte a:not(.wp-block-button__link):hover, .texte a:not(.wp-block-button__link):focus-visible, .intro a:hover, .intro a:focus-visible,
.section__texte a:hover, .section__texte a:focus-visible, .encart__texte a:hover, .encart__texte a:focus-visible,
.etape__texte a:hover, .etape__texte a:focus-visible { background-color: rgba(22, 219, 146, 0.2); }
html[data-theme="sombre"] :is(.texte, .intro, .section__texte, .encart__texte, .etape__texte) a:not(.wp-block-button__link):is(:hover, :focus-visible) { background-color: rgba(22, 219, 146, 0.18); }
/* Les numéros de notes gardent leur pastille verte ; les images qui servent de lien n'ont pas de fond. */
.texte sup a:not(.wp-block-button__link):is(:hover, :focus-visible),
html[data-theme="sombre"] .texte sup a:not(.wp-block-button__link):is(:hover, :focus-visible) { background-color: var(--vert); }
.texte a:not(.wp-block-button__link):has(img):is(:hover, :focus-visible),
html[data-theme="sombre"] .texte a:not(.wp-block-button__link):has(img):is(:hover, :focus-visible) { background-color: transparent; }
@media (prefers-reduced-motion: reduce) {
	.texte a, .intro a, .section__texte a, .encart__texte a, .etape__texte a { transition: none; }
}
.vide { color: var(--gris-texte); font-size: 19px; }
.section { margin-bottom: 64px; }
.section:last-child { margin-bottom: 0; }
.section > .etiquette { margin-bottom: 28px; }

/* Page Presse : « Publications » et, à droite, le bouton « Choisir par catégorie » (l'éventail, assets/eventail.js).
   Ouvert : un voile sombre (clair en mode sombre) couvre la page, le bouton et les catégories restent au-dessus. */
.tete-publications { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; margin-bottom: 28px; }
.etiquette__choix { margin-left: 2px; color: var(--gris-texte); }
.tete-publications__choix { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-left: auto; }

/* Page Presse : la rangée d'outils (home.php) — la loupe, les catégories en icônes, la bulle Robin Débat,
   et à droite le nombre de publications. */
.entete-page--presse { margin-bottom: 26px; }
.outils-presse { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin: 0 0 30px; }
.outils-presse__boutons { display: flex; align-items: center; gap: 8px; min-width: 0; }
.outils-presse__trait { flex: none; width: 1.5px; height: 28px; margin: 0 6px; background: var(--gris-ligne); }
.outils-presse__compte { margin: 0; font-family: var(--ui); font-size: 15px; color: var(--gris-texte); }
.icones-cats { display: flex; align-items: center; gap: 8px; }
.ico-cat { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; text-decoration: none; transition: box-shadow 0.2s; }
.ico-cat--tout { background: var(--blanc); color: var(--noir); box-shadow: inset 0 0 0 1.5px var(--gris-ligne); }
.ico-cat:hover, .ico-cat:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--vert); }
.ico-cat[aria-current="true"] { box-shadow: 0 0 0 3px var(--page), 0 0 0 5px var(--noir); }
.ico-cat__nom { position: absolute; left: 50%; bottom: calc(100% + 10px); z-index: 5; padding: 4px 10px; border-radius: 999px; background: var(--noir); color: var(--page); font-family: var(--sc); font-size: 13px; font-weight: 700; white-space: nowrap; opacity: 0; transform: translate(-50%, 4px); pointer-events: none; transition: opacity 0.15s, transform 0.15s; }
.ico-cat:hover .ico-cat__nom, .ico-cat:focus-visible .ico-cat__nom { opacity: 1; transform: translate(-50%, 0); }
.bulle-debat--presse { margin-left: 2px; }

/* La recherche (inc/recherche-presse.php, assets/recherche-presse.js) : la loupe s'ouvre en champ ;
   le mot trouvé est surligné en vert. Sans JavaScript, le champ reste ouvert. */
.recherche-presse { display: flex; align-items: center; margin: 0; }
.recherche-presse__ouvrir { background: var(--noir); color: var(--page); }
.recherche-presse__champ { position: relative; display: block; width: 300px; }
html:not(.no-js) .recherche-presse:not(.est-ouverte) .recherche-presse__champ { display: none; }
.recherche-presse.est-ouverte .recherche-presse__ouvrir, .no-js .recherche-presse__ouvrir, .no-js .recherche-presse__fermer { display: none; }
.recherche-presse__loupe { position: absolute; left: 15px; top: 50%; display: flex; transform: translateY(-50%); color: var(--gris-texte); pointer-events: none; }
.recherche-presse__loupe .icone { width: 18px; height: 18px; }
.recherche-presse input[type="search"] { width: 100%; height: 44px; box-sizing: border-box; padding: 0 42px 0 44px; border: var(--trait); border-radius: 999px; background: var(--blanc); color: var(--noir); font-family: var(--ui); font-size: 16px; -webkit-appearance: none; appearance: none; }
.recherche-presse input[type="search"]::-webkit-search-cancel-button { display: none; }
.recherche-presse input[type="search"]::placeholder { color: var(--gris-texte); opacity: 1; }
.recherche-presse input[type="search"]:focus { outline: none; border-color: var(--vert); box-shadow: 0 0 0 4px rgba(22, 219, 146, 0.25); }
.recherche-presse__champ:focus-within .recherche-presse__loupe { color: var(--noir); }
.recherche-presse__fermer { position: absolute; right: 6px; top: 6px; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--gris-texte); cursor: pointer; }
.recherche-presse__fermer:hover, .recherche-presse__fermer:focus-visible { outline: none; background: var(--gris); color: var(--noir); }
.recherche-presse.est-en-cours .recherche-presse__loupe { animation: recherche-cherche 0.8s ease-in-out infinite; }
mark.surligne { padding: 0; border-radius: 3px; background: rgba(22, 219, 146, 0.32); box-shadow: 0 0 0 2px rgba(22, 219, 146, 0.32); color: inherit; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.recherche-presse__rien { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 56px 20px; text-align: center; font-family: var(--ui); color: var(--gris-texte); }
.recherche-presse__rien p { margin: 0; }
.recherche-presse__rien-titre { font-family: var(--titre); font-size: 24px; font-weight: 700; color: var(--noir); }
.recherche-presse__effacer { min-height: 44px; margin-top: 6px; padding: 0 20px; border: 1.5px solid var(--noir); border-radius: 999px; background: transparent; color: var(--noir); font-family: var(--ui); font-size: 15px; font-weight: 700; cursor: pointer; }
.recherche-presse__effacer:hover, .recherche-presse__effacer:focus-visible { background: var(--vert); border-color: #111111; color: #111111; }
@keyframes recherche-cherche { 0%, 100% { transform: translateY(-50%) rotate(0); } 50% { transform: translateY(-50%) rotate(-18deg); } }
@media (prefers-reduced-motion: reduce) { .recherche-presse.est-en-cours .recherche-presse__loupe { animation: none; } }
/* Téléphone : la rangée défile au doigt (de gauche à droite) ; le champ ouvert prend la ligne. */
@media (max-width: 700px) {
	.outils-presse { margin-bottom: 22px; }
	.outils-presse__boutons { width: 100%; padding: 6px 2px; overflow-x: auto; scrollbar-width: none; }
	.outils-presse__boutons::-webkit-scrollbar { display: none; }
	.recherche-presse__champ { width: min(300px, 72vw); }
}
.filtre-puce { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1.5px solid #111111; border-radius: 999px; background: var(--vert); color: #111111; font-family: var(--ui); font-weight: 700; font-size: 15px; text-decoration: none; }
.filtre-puce:hover, .filtre-puce:focus-visible { background: #111111; color: var(--vert); }
.eventail { position: relative; }
.eventail__bouton { position: relative; z-index: 1001; display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px 0 14px; border: var(--trait); border-radius: 999px; background: var(--noir); color: var(--page); font-family: var(--ui); font-weight: 700; font-size: 16px; cursor: pointer; }
.eventail__bouton:hover, .eventail__bouton:focus-visible, .eventail.est-ouvert .eventail__bouton { background: var(--vert); border-color: #111111; color: #111111; }
.eventail__ferme, .eventail__ouvert { display: inline-flex; align-items: center; gap: 10px; }
.eventail__ouvert, .eventail__court, .eventail.est-ouvert .eventail__ferme { display: none; }
.eventail.est-ouvert .eventail__ouvert { display: inline-flex; }
.eventail__icone { flex: none; }
.eventail__petales { position: absolute; left: 50%; top: 50%; z-index: 1001; width: 0; height: 0; margin: 0; padding: 0; list-style: none; }
.eventail__petales li { position: absolute; left: var(--x, 0); top: var(--y, 0); transform: translate(-50%, -50%); }
.eventail__petale { display: inline-flex; align-items: center; min-height: 46px; padding: 0 22px; border: 1.5px solid #111111; border-radius: 999px; background: #FFFFFF; color: #111111; font-family: var(--ui); font-weight: 700; font-size: 17px; white-space: nowrap; text-decoration: none; animation: eventail-glisse 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.2) var(--delai, 0ms) both; }
.eventail__petale:hover, .eventail__petale:focus-visible, .eventail__petale[aria-current="true"] { background: var(--vert); border-color: var(--vert); color: #111111; }
.eventail-voile { position: fixed; inset: 0; z-index: 1000; background: rgba(10, 10, 11, 0.86); animation: eventail-voile 0.25s ease both; }
.eventail-voile__aide { position: absolute; left: max(24px, 6vw); top: 50%; max-width: 420px; margin: 0; transform: translateY(-50%); color: #FFFFFF; font-family: var(--titre); font-weight: 900; font-size: 44px; line-height: 1.1; }
.eventail-voile__aide span { display: block; margin-top: 12px; font-family: var(--ui); font-weight: 500; font-size: 17px; line-height: 1.4; opacity: 0.75; }
html[data-theme="sombre"] .eventail-voile { background: rgba(242, 242, 242, 0.9); }
html[data-theme="sombre"] .eventail-voile__aide { color: #111111; }
html[data-theme="sombre"] .eventail__petale { background: #1B1C1F; border-color: #1B1C1F; color: #ECECEC; }
html[data-theme="sombre"] .eventail__petale:hover, html[data-theme="sombre"] .eventail__petale:focus-visible, html[data-theme="sombre"] .eventail__petale[aria-current="true"] { background: var(--vert); border-color: var(--vert); color: #111111; }
@keyframes eventail-voile { from { opacity: 0; } }
@keyframes eventail-glisse { from { opacity: 0; transform: translate(calc(var(--x, 0px) * -1), calc(var(--y, 0px) * -1)) scale(0.4); } }
@media (max-width: 700px) {
	.eventail__long { display: none; }
	.eventail__court { display: inline; }
	.eventail__bouton { padding: 0 16px 0 12px; font-size: 15px; }
	.eventail-voile__aide { top: auto; bottom: 28px; left: 16px; right: 16px; transform: none; font-size: 26px; }
	.eventail-voile__aide span { margin-top: 6px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
	.eventail__petale, .eventail-voile { animation: none; }
	.defile__piste { animation: none; }
}
/* Le texte sous un titre de partie (ex. sous « Blog » sur la page Presse), et le lien pour le modifier quand on est connecté */
.section__texte { max-width: 680px; margin: -10px 0 28px; font-size: 18px; line-height: 1.6; color: var(--texte-intro); }
.section__texte > * { margin: 0; }
.section__texte > * + * { margin-top: 0.7em; }
.modifier-texte { margin: -16px 0 26px; font-family: var(--ui); font-size: 14px; }
.modifier-texte a { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border: 1.5px dashed var(--gris-ligne); border-radius: 999px; color: var(--gris-texte); text-decoration: none; }
.modifier-texte a:hover, .modifier-texte a:focus-visible { border-color: var(--vert); color: var(--noir); }
/* Boutons « Modifier » du mode « Modifier les textes » (inc/edition.php) : pointillés verts */
.modifier-texte a { border-color: var(--vert); }
.modifier-texte--apres { margin: 14px 0 28px; }

/* Page Robin Débat : le petit bouton qui déplie le fil Instagram (sans animation) */
.intro > * { margin: 0; }
.intro > * + * { margin-top: 0.7em; }
.fil-instagram { margin: -16px 0 40px; }
.fil-instagram__bouton { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; background: var(--blanc); border: var(--trait); border-radius: 999px; font-family: var(--ui); font-weight: 500; font-size: 15px; color: var(--noir); cursor: pointer; list-style: none; user-select: none; }
.fil-instagram__bouton::-webkit-details-marker { display: none; }
.fil-instagram__bouton:hover, .fil-instagram__bouton:focus-visible { background: var(--vert); color: #111111; }
.fil-instagram__cacher, .fil-instagram[open] .fil-instagram__voir { display: none; }
.fil-instagram[open] .fil-instagram__cacher { display: inline; }
.fil-instagram[open] .fil-instagram__bouton { background: var(--vert); color: #111111; }
.fil-instagram__contenu { margin-top: 20px; padding: 20px; background: var(--blanc); border: var(--trait); border-radius: 10px; }
.pied__reseaux { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.modifier-texte--pied { margin: 0; }
.site-pied .modifier-texte a { color: #BDBDBD; }
.site-pied .modifier-texte a:hover, .site-pied .modifier-texte a:focus-visible { color: #FFFFFF; }

/* Le sélecteur de page (rb_pagination) : « ← Plus récents » · « Page 2 sur 7 » et ses points · « Plus anciens → ».
   Au survol, seul le contour (ou le fond du point) passe au vert : rien ne bouge. */
.pages { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px; margin-top: 48px; font-family: var(--ui); }
.pages__bouton { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 1.5px solid var(--noir); border-radius: 999px; background: var(--blanc); color: var(--noir); font-weight: 700; font-size: 16px; text-decoration: none; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.pages__bouton:first-child { justify-self: start; }
.pages__bouton:last-child { justify-self: end; }
.pages__bouton:hover, .pages__bouton:focus-visible { outline: none; border-color: var(--vert); box-shadow: 0 0 0 2px var(--vert); }
.pages__bouton--suite { border-color: var(--vert); background: var(--vert); color: #111111; }
.pages__bouton--vide { visibility: hidden; }
.pages__compte { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.pages__texte { font-family: var(--titre); font-weight: 800; font-size: 20px; white-space: nowrap; }
.pages__points { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pages__point { position: relative; display: block; width: 10px; height: 10px; border-radius: 999px; background: var(--gris-ligne); transition: background-color 0.15s ease; }
.pages__point::after { content: ""; position: absolute; inset: -8px -3px; } /* zone cliquable plus grande que le point */
a.pages__point:hover, a.pages__point:focus-visible { outline: none; background: var(--vert); }
.pages__point--actuel { width: 28px; background: var(--vert); }
html[data-theme="sombre"] .pages__point { background: #5E6168; }
html[data-theme="sombre"] .pages__point--actuel, html[data-theme="sombre"] a.pages__point:hover { background: var(--vert); }
@media (max-width: 700px) {
	.pages { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.pages__compte { grid-column: 1 / -1; grid-row: 1; }
	.pages__bouton { padding: 0 16px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .pages__bouton, .pages__point { transition: none; } }

/* =========================================================
   4. Presse : logos des médias et blocs d'articles
   ========================================================= */
.medias__logo {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 128px;
	height: 48px;
	padding: 6px 12px;
	background: var(--blanc);
	border: var(--trait);
	border-radius: 8px;
	font-family: var(--ui);
	font-weight: 700;
	font-size: 13.5px;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.medias__logo img { max-height: 28px; width: auto; max-width: 100%; object-fit: contain; }
.medias__logo:hover, .medias__logo:focus-visible { border-color: var(--vert); box-shadow: 0 0 0 3px var(--vert); }

/* Rien ne doit dépasser sur le côté (ex. fiches du parcours qui glissent depuis la droite en apparaissant) */
.site-principal { overflow-x: clip; }

.grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 32px 24px; }

.carte {
	display: flex;
	flex-direction: column;
	background: var(--blanc);
	border: var(--trait);
	border-radius: 8px;
	overflow: hidden;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
/* Survol : la carte s'entoure de vert (contour vert et plus épais). Rien ne bouge. */
.carte:hover, .carte:focus-within { border-color: var(--vert); box-shadow: 0 0 0 3px var(--vert); }
.carte__image { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--gris); border-bottom: var(--trait); }
/* Publications associées (inc/posts-sociaux.php) : les logos des réseaux, empilés en haut à droite de la photo,
   dans des ronds blancs comme les boutons des réseaux de l'accueil. Au survol, le rond passe au vert et s'allonge
   vers la gauche pour afficher « Voir la publication » (la pilule fait exactement la taille du texte). */
.carte__photo { position: relative; }
.carte__posts { position: absolute; top: 10px; right: 10px; z-index: 1; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.carte__post { display: inline-flex; flex-direction: row-reverse; align-items: center; box-sizing: border-box; height: 36px; border: 2px solid #111111; border-radius: 999px; background: #FFFFFF; color: #111111; font-family: var(--ui); font-weight: 700; font-size: 13.5px; line-height: 1; white-space: nowrap; text-decoration: none; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25); transition: background-color 0.2s ease; }
.carte__post-logo { display: flex; flex: none; align-items: center; justify-content: center; width: 32px; height: 32px; }
.carte__post img { display: block; width: 18px; height: 18px; object-fit: contain; border-radius: 3px; }
.carte__post .icone { display: block; width: 18px; height: 18px; }
.carte__post .reseau__lettres { font-size: 15px; }
.carte__post--nom .carte__post-logo { width: auto; padding: 0 12px; }
.carte__post-plie { display: grid; grid-template-columns: 0fr; transition: grid-template-columns 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
.carte__post-texte { min-width: 0; overflow: hidden; }
.carte__post-mot { display: inline-block; padding: 0 2px 0 14px; }
.carte__post:hover .carte__post-plie, .carte__post:focus-visible .carte__post-plie { grid-template-columns: 1fr; }
.carte__post:hover, .carte__post:focus-visible { outline: none; background: var(--vert); }
@media (prefers-reduced-motion: reduce) { .carte__post, .carte__post-plie { transition: none; } }
.carte__image img { width: 100%; height: 100%; object-fit: cover; }
.carte__image--vide { display: flex; align-items: center; justify-content: center; }
/* Travail avec une image de couverture (« À lire aussi ») : la couverture entière, posée de travers comme un livre */
.carte__image--couverture { display: flex; align-items: center; justify-content: center; }
.carte__image.carte__image--couverture img { width: auto; height: 82%; max-width: 70%; object-fit: cover; aspect-ratio: 190 / 260; border: var(--trait); border-radius: 4px; box-shadow: 0 8px 18px var(--ombre); transform: rotate(-3deg); }
.carte__image--vide .icone { transition: transform 0.4s ease; }
.carte:hover .carte__image--vide .icone { transform: scale(1.15) rotate(6deg); }
/* Billets Robin Débat : petit signet vert sur le côté, qui se déploie en « Robin Débat » au survol */
.carte--blog { position: relative; overflow: visible; } /* contour normal (plus de vert) ; « visible » laisse dépasser le signet */
.carte--blog .carte__image { border-radius: 6.5px 6.5px 0 0; }
.signet {
	position: absolute;
	left: -6px;
	top: 14px;
	z-index: 2;
	box-sizing: border-box;
	max-width: 22px;
	height: 14px;
	padding: 0 15px 0 7px;
	overflow: hidden;
	background: var(--vert);
	color: #111111;
	clip-path: polygon(0 0, 100% 0, calc(100% - 7px) 50%, 100% 100%, 0 100%);
	transition: max-width 0.3s ease, height 0.2s ease;
}
.signet__texte { display: block; font-family: var(--sc); font-weight: 700; font-size: 12px; line-height: 21px; letter-spacing: 0.07em; white-space: nowrap; opacity: 0; transition: opacity 0.2s ease; }
.carte--blog::after { content: ''; position: absolute; left: -6px; top: 28px; z-index: 1; border-top: 5px solid #0A9E6A; border-left: 6px solid transparent; transition: top 0.2s ease; }
.carte--blog:hover .signet, .carte--blog:focus-within .signet { max-width: 220px; height: 21px; }
.carte--blog:hover .signet__texte, .carte--blog:focus-within .signet__texte { opacity: 1; }
.carte--blog:hover::after, .carte--blog:focus-within::after { top: 35px; }
/* Écrans tactiles (pas de survol) : le signet est déjà déployé */
@media (hover: none) {
	.carte--blog .signet { max-width: 220px; height: 21px; }
	.carte--blog .signet__texte { opacity: 1; }
	.carte--blog::after { top: 35px; }
}
@media (prefers-reduced-motion: reduce) {
	.signet, .signet__texte, .carte--blog::after { transition: none; }
}
.carte__corps { flex: 1; padding: 18px 22px; display: flex; flex-direction: column; gap: 10px; }
.carte__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-family: var(--ui); font-size: 14.5px; color: var(--gris-texte); }
.carte__titre { margin: 0; font-weight: 700; font-size: 22px; line-height: 1.25; }
/* La flèche ↗ des cartes qui mènent directement au site du journal : une pastille qui se colore au survol */
.externe {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.25em;
	height: 1.25em;
	margin-left: 6px;
	border: 1.5px solid currentColor;
	border-radius: 50%;
	font-family: var(--ui);
	font-size: 0.8em;
	font-weight: 700;
	line-height: 1;
	vertical-align: 0.12em;
	transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.carte:hover .externe, .carte:focus-within .externe, .ligne:hover .externe {
	background: var(--noir);
	border-color: var(--noir);
	color: var(--page);
}
.carte__extrait { margin: 0; font-family: var(--ui); font-size: 16px; line-height: 1.5; color: var(--gris-texte); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.original { margin: 36px 0 0; padding-top: 28px; border-top: var(--trait); }
.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; }
.carte__media {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0 14px 14px;
	padding: 8px 8px 8px 14px;
	background: var(--gris);
	border-radius: 6px;
	font-family: var(--ui);
	font-size: 13.5px;
	color: var(--gris-texte);
}

.logo-media {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 104px;
	height: 34px;
	padding: 0 10px;
	background: var(--blanc);
	border: var(--trait);
	border-radius: 6px;
	font-family: var(--ui);
	font-weight: 700;
	font-size: 12.5px;
	color: var(--noir);
	text-decoration: none;
	transition: transform 0.25s ease;
}
.logo-media img { max-height: 22px; width: auto; max-width: 120px; object-fit: contain; }
.logo-media:hover, .logo-media:focus-visible { transform: scale(1.08); }

.liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.ligne {
	display: grid;
	grid-template-columns: 130px minmax(0, 1fr);
	gap: 8px 24px;
	padding: 22px 26px;
	background: var(--blanc);
	border: var(--trait);
	border-radius: 8px;
}
.ligne__date { font-family: var(--ui); font-size: 15px; color: var(--gris-texte); padding-top: 4px; }
.ligne__titre { margin: 0 0 6px; font-weight: 700; font-size: 23px; line-height: 1.25; }
.ligne__extrait { margin: 0; font-size: 17px; color: var(--gris-texte); }
.section .bouton { margin-top: 28px; }

/* Page d'un média */
.entete-media {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 20px 32px;
	margin: 32px 0 40px;
	background: var(--gris);
	border: var(--trait);
	border-radius: 10px;
	padding: 32px clamp(20px, 4vw, 44px);
}
.entete-media__logo {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 220px;
	height: 80px;
	padding: 10px 18px;
	background: var(--blanc);
	border: var(--trait);
	border-radius: 8px;
	font-family: var(--ui);
	font-weight: 700;
}
.entete-media__logo img { max-height: 56px; width: auto; max-width: 100%; object-fit: contain; }
.entete-media__texte { flex: 1 1 320px; min-width: 0; }
.entete-media__label { margin: 0 0 4px; font-family: var(--sc); font-weight: 700; font-size: 14px; letter-spacing: 0.08em; color: var(--gris-texte); }
.entete-media h1 { margin: 0; font-weight: 800; font-size: clamp(32px, 4.5vw, 44px); line-height: 1.1; }
/* Le lien vers le site du média (champ « Site internet du média ») */
.entete-media__site { display: inline-flex; align-items: center; margin-top: 10px; font-family: var(--ui); font-weight: 700; font-size: 16px; color: var(--noir); text-decoration: underline; text-decoration-color: var(--vert); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.entete-media__site:hover .externe, .entete-media__site:focus-visible .externe { background: var(--noir); border-color: var(--noir); color: var(--page); }
.entete-media .modifier-texte--apres { margin: 10px 0 0; }
.entete-media__compte { display: inline-flex; background: var(--noir); color: var(--blanc); border-radius: 6px; padding: 6px 16px; font-family: var(--ui); font-weight: 700; font-size: 15px; }
.entete-media .etoile { position: absolute; top: -14px; right: 36px; }

/* =========================================================
   5. Lecture : articles, pages, travaux
   ========================================================= */
.lecture { display: grid; grid-template-columns: minmax(0, 900px); justify-content: center; }
.lecture__marge { display: none; }

.feuille { background: var(--blanc); border: var(--trait); border-radius: 10px; overflow: hidden; }
.feuille__image { margin: 0; }
.feuille__image img { width: 100%; border-bottom: var(--trait); }
.feuille__legende { padding: 10px clamp(24px, 8vw, 110px) 0; font-family: var(--ui); font-style: italic; font-size: 14px; color: var(--gris-texte); }
.feuille__corps { padding: 44px clamp(24px, 8vw, 110px) 72px; }
.feuille__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 18px; font-family: var(--ui); font-size: 15px; color: var(--gris-texte); }
.feuille__titre { margin: 0; font-weight: 800; font-size: clamp(34px, 4.6vw, 54px); line-height: 1.08; letter-spacing: -0.01em; text-wrap: balance; }
.feuille__sous-titre { margin: 10px 0 0; font-style: italic; font-size: clamp(21px, 2.4vw, 26px); line-height: 1.3; }
.feuille__media { display: flex; align-items: center; gap: 10px; margin: 18px 0 0; font-family: var(--ui); font-size: 14.5px; color: var(--gris-texte); }
.feuille__chapo { margin: 32px 0 0; font-weight: 700; font-size: clamp(21px, 2.4vw, 26px); line-height: 1.35; }

/* ---------------------------------------------------------
   Page d'un article (single.php) : le cartouche centré qui remonte sur l'image,
   le texte au milieu de la page, et les notes dans la marge de droite (assets/marges.js).
   --------------------------------------------------------- */
.feuille--article .feuille__image img { border-bottom: 0; }
.feuille--article .cartouche {
	position: relative;
	z-index: 1;
	box-sizing: border-box;
	max-width: 660px;
	margin: -115px auto 0;
	padding: 26px 32px 24px;
	background: var(--blanc);
	border: var(--trait);
	border-radius: 14px;
	text-align: center;
}
.feuille--sans-image .cartouche { margin-top: 40px; }
.cartouche__etiquettes { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 10px; }
.cartouche__etiquettes:empty { display: none; }
.feuille--article .feuille__titre { margin: 16px 0 0; font-weight: 900; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.05; }
.feuille--article .feuille__chapo { max-width: 560px; margin: 14px auto 0; font-size: clamp(19px, 2vw, 21px); line-height: 1.45; }
.cartouche__infos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; margin: 18px 0 0; padding-top: 14px; border-top: var(--trait); font-family: var(--ui); font-size: 15px; color: var(--gris-texte); }
.cartouche__media { display: inline-flex; align-items: center; gap: 10px; }
.feuille--article .separateur { margin: 26px 0 0; }

/* La carte de la personne interviewée (inc/formats.php) */
.qui { display: inline-flex; align-items: center; gap: 14px; box-sizing: border-box; max-width: 100%; margin: 20px 0 0; padding: 10px 20px 10px 10px; background: var(--page); border: var(--trait); border-radius: 999px; text-align: left; text-decoration: none; color: var(--noir); }
.qui__portrait { flex: none; width: 56px; height: 56px; border: 1.5px solid #111111; border-radius: 50%; object-fit: cover; }
.qui__portrait--initiales { display: flex; align-items: center; justify-content: center; background: var(--vert); color: #111111; font-family: var(--ui); font-weight: 700; font-size: 19px; }
.qui__nom { display: block; font-weight: 700; font-size: 20px; line-height: 1.15; }
.qui__role { display: block; margin-top: 2px; font-family: var(--ui); font-size: 14.5px; line-height: 1.3; color: var(--gris-texte); }
.qui--lien:hover .qui__nom, .qui--lien:focus-visible .qui__nom { background: linear-gradient(transparent 58%, var(--vert) 58%); }

/* Le corps : une colonne de lecture au milieu, une marge à droite pour les notes */
.feuille--article .feuille__corps { display: grid; grid-template-columns: 100px minmax(0, 540px) 170px; justify-content: center; gap: 0 22px; padding: 0 16px 64px; }
.feuille--article .texte { grid-column: 2; grid-row: 1; padding-top: 24px; font-size: 19px; }
.feuille--article .marge-notes { grid-column: 3; grid-row: 1; position: relative; }
.feuille--article .fin-article { grid-column: 2; grid-row: 2; }

/* Intertitres : alignés à gauche, le point vert devant, un filet fin dessous */
.feuille--article .texte h2 { display: flex; align-items: baseline; gap: 11px; margin-top: 1.6em; padding-bottom: 7px; border-bottom: var(--trait); font-weight: 900; font-size: 26px; }
.feuille--article .texte h2::before { position: static; flex: none; width: 13px; height: 13px; margin: 0; border: 1.5px solid #111111; border-radius: 50%; background: var(--vert); transform: translateY(-3px); }
html[data-theme="sombre"] .feuille--article .texte h2::before { border-color: #5E6168; }

/* La lettrine du premier paragraphe */
.texte--lettrine > p:first-child::first-letter { float: left; margin: 8px 10px 0 0; font-weight: 900; font-size: 80px; line-height: 0.8; color: var(--noir); }
.texte--lettrine > p.itw-question:first-child::first-letter { float: none; margin: 0; font-size: inherit; line-height: inherit; }

/* Dans un article, l'appel de note est un petit rond vert, comme le numéro de la note dans la marge */
.feuille--article .texte sup.fn a, .feuille--article .texte sup a[href^="#"] { min-width: 19px; height: 19px; padding: 0 4px; box-sizing: border-box; border-radius: 999px; text-align: center; line-height: 19px; }

/* Les notes dans la marge, à hauteur de la phrase qui les appelle */
.note-marge { position: absolute; left: 0; right: 0; padding: 12px 14px; background: var(--page); border: var(--trait); border-radius: 10px; font-family: var(--ui); font-size: 14.5px; line-height: 1.45; color: var(--texte-intro, var(--noir)); transition: top 0.25s ease; }
.note-marge__numero { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; margin-right: 6px; border-radius: 50%; background: var(--vert); color: #111111; font-weight: 700; font-size: 12px; vertical-align: 1px; }
.note-marge p { margin: 0; display: inline; }
.note-marge a { text-decoration-color: var(--vert); }
.notes-en-marge .texte .wp-block-footnotes { display: none; }
.notes-en-marge .texte sup.fn a, .notes-en-marge .texte sup a[href^="#"] { cursor: default; }

/* La fin de l'article : la signature puis le lien vers le journal */
.fin-article { display: flex; flex-direction: column; align-items: center; gap: 18px; margin-top: 46px; padding-top: 26px; border-top: var(--trait); text-align: center; }
.feuille--article .feuille__legende { padding: 0; margin: 0; font-family: var(--ui); font-style: italic; font-size: 14px; color: var(--gris-texte); }
.signature { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 0; font-family: var(--ui); font-size: 15px; color: var(--gris-texte); }
.signature .monogramme { width: 44px; height: 44px; }
.signature__nom { display: block; color: var(--noir); font-family: var(--titre); font-weight: 700; font-size: 20px; }
.signature__role { display: block; margin-top: 2px; }
.feuille--article .original { display: none; }

@media (max-width: 1100px) {
	.feuille--article .feuille__corps { grid-template-columns: minmax(0, 1fr); padding-inline: clamp(20px, 5vw, 60px); }
	.feuille--article .texte, .feuille--article .fin-article { grid-column: 1; }
	.feuille--article .marge-notes { display: none; }
	.notes-en-marge .texte .wp-block-footnotes { display: block; }
}
@media (max-width: 700px) {
	.feuille--article .cartouche { max-width: none; margin: -56px 12px 0; padding: 20px 20px 18px; }
	.feuille--sans-image .cartouche { margin-top: 24px; }
	.qui { width: 100%; flex-direction: column; text-align: center; border-radius: 14px; padding: 14px 16px; }
}
@media print {
	.feuille--article .marge-notes { display: none; }
	.notes-en-marge .texte .wp-block-footnotes { display: block; }
}

/* ---------------------------------------------------------
   Séparateur : la pilule verte qui « écrit » (rb_separateur, inc/outils.php).
   Au survol : les trois points tapent, deux mains potelées s'accrochent au bord,
   puis un petit bonhomme passe la tête, regarde à gauche, à droite et cligne des yeux ;
   son unique cheveu ondule doucement. Quand la souris s'en va, il redescend puis lâche le bord.
   Le bonhomme est dessiné derrière la pilule : au repos, on ne le voit pas.
   --------------------------------------------------------- */
.separateur { display: flex; align-items: center; justify-content: center; margin: 40px 0 52px; }
.coucou { display: inline-flex; }
.coucou svg { display: block; overflow: visible; }
.coucou__pilule { fill: var(--vert); stroke: #111111; stroke-width: 1.5; }
html[data-theme="sombre"] .coucou__pilule { stroke: #5E6168; }
html[data-theme="sombre"] .coucou__cheveu path { stroke: #ECECEC; } /* le cheveu reste visible sur le fond sombre */
.coucou__point { fill: #111111; }
.coucou__tete { fill: #FFFFFF; stroke: #111111; stroke-width: 1.2; }
.coucou__oeil { fill: #111111; transform-box: fill-box; transform-origin: center; }
.coucou__yeux { transform-box: fill-box; transform-origin: center; }
.coucou__cheveu path { fill: none; stroke: #111111; stroke-width: 1.2; stroke-linecap: round; }
.coucou__cheveu, .coucou__bout { transform-box: fill-box; transform-origin: 50% 100%; }
.coucou .doigt { fill: #FFFFFF; stroke: #111111; stroke-width: 1; }
/* 1. Les trois points tapent */
.coucou:hover .coucou__point { animation: coucou-tape 0.45s ease-in-out 2; }
.coucou:hover .coucou__point--2 { animation-delay: 0.1s; }
.coucou:hover .coucou__point--3 { animation-delay: 0.2s; }
@keyframes coucou-tape { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-3px); } }
/* 2. Les doigts s'accrochent au bord */
.coucou__main { opacity: 0; transform: translateY(-2px); transition: opacity 0.2s ease 0.25s, transform 0.25s ease 0.25s; }
.coucou:hover .coucou__main { opacity: 1; transform: none; transition: opacity 0.2s ease 1.05s, transform 0.3s cubic-bezier(0.3, 1.4, 0.5, 1) 1.05s; }
.coucou:hover .coucou__main--d { transition-delay: 1.15s; }
/* 3. La tête monte jusqu'aux yeux */
.coucou__bonhomme { transition: transform 0.3s ease-in; }
.coucou:hover .coucou__bonhomme { transform: translateY(-18px); transition: transform 0.7s cubic-bezier(0.25, 1, 0.35, 1) 1.3s; }
/* 4. Coucou : il regarde à gauche, à droite, cligne des yeux ; le cheveu ondule */
.coucou:hover .coucou__yeux { animation: coucou-regarde 2.8s ease-in-out 2.1s infinite; }
.coucou:hover .coucou__oeil { animation: coucou-cligne 2.8s linear 2.1s infinite; }
.coucou:hover .coucou__cheveu { animation: coucou-ondule 2.8s ease-in-out 2s infinite; }
.coucou:hover .coucou__bout { animation: coucou-ondule-bout 2.8s ease-in-out 2.7s infinite; }
@keyframes coucou-regarde { 0%, 12% { transform: translateX(0); } 22%, 42% { transform: translateX(-1.6px); } 52%, 72% { transform: translateX(1.6px); } 82%, 100% { transform: translateX(0); } }
@keyframes coucou-cligne { 0%, 88%, 100% { transform: scaleY(1); } 93% { transform: scaleY(0.1); } }
@keyframes coucou-ondule { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-8deg); } 75% { transform: rotate(8deg); } }
@keyframes coucou-ondule-bout { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-15deg); } 75% { transform: rotate(15deg); } }
@media (prefers-reduced-motion: reduce) {
	.coucou *, .coucou:hover * { animation: none !important; transition: none !important; }
}

/* ---------------------------------------------------------
   Interview (inc/formats.php) : « Entretien avec … » sous le titre,
   et le nom entouré de vert devant les réponses. Les questions sont en gras.
   --------------------------------------------------------- */
.entretien { display: flex; align-items: center; gap: 12px; margin: 22px 0 0; font-family: var(--ui); font-size: 17px; line-height: 1.4; color: var(--gris-texte); }
.entretien__photo { flex: none; width: 44px; height: 44px; border: var(--trait); border-radius: 50%; object-fit: cover; }
.entretien__mono { flex: none; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--vert); color: #111111; font-family: var(--titre); font-weight: 800; font-style: italic; font-size: 19px; line-height: 1; }
.entretien__nom { font-weight: 700; color: var(--noir); }
/* Seul effet au survol de l'interview : quand un lien est renseigné, le nom se souligne de vert. */
.entretien__lien { text-decoration: underline; text-decoration-thickness: 1.5px; text-decoration-color: #BDBDBD; text-underline-offset: 5px; background: linear-gradient(var(--vert), var(--vert)) no-repeat 0 100% / 0 3px; transition: background-size 0.4s cubic-bezier(0.3, 1, 0.5, 1), text-decoration-color 0.2s; }
html[data-theme="sombre"] .entretien__lien { text-decoration-color: #5E6168; }
.entretien__lien:hover, .entretien__lien:focus-visible { text-decoration-color: transparent; background-size: 100% 3px; }
.entretien__mono .icone { display: block; }
/* Dans un article, la question se détache aussi par sa couleur */
.feuille--article .texte .itw-question { color: #0A6B48; }
html[data-theme="sombre"] .feuille--article .texte .itw-question { color: #5CE8B5; }

/* Interview : chaque question (paragraphe en gras) a un filet vert à gauche ; la réponse suit, sans nom ni initiales */
.texte .itw-question { margin-top: 2em; padding-left: 16px; border-left: 3px solid var(--vert); }
.texte .itw-question:first-child { margin-top: 0; }
.texte .itw-question + .itw-reponse { margin-top: 0.7em; }
@media (prefers-reduced-motion: reduce) {
	.entretien__lien { transition: none; }
}
.texte--travail { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--gris-ligne); }

/* Le texte (contenu écrit dans l'éditeur) */
.texte { font-size: 19.5px; line-height: 1.75; text-align: justify; -webkit-hyphens: auto; hyphens: auto; overflow-wrap: anywhere; min-width: 0; }
.texte > * { margin-top: 0; margin-bottom: 0; }
.texte > * + * { margin-top: 1.15em; }
.texte h2, .texte h3, .texte h4 { text-align: left; -webkit-hyphens: manual; hyphens: manual; scroll-margin-top: 24px; text-wrap: balance; }
.texte h2 { margin-top: 1.8em; font-weight: 800; font-size: 30px; line-height: 1.2; }
.texte h2::before {
	content: "";
	display: inline-block;
	width: 22px;
	height: 22px;
	margin-right: 12px;
	vertical-align: -2px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2c.7 5.3 2.7 7.3 8 8-5.3.7-7.3 2.7-8 8-.7-5.3-2.7-7.3-8-8 5.3-.7 7.3-2.7 8-8z' fill='%2316DB92'/%3E%3C/svg%3E") no-repeat center / contain;
}
.texte h3 { margin-top: 1.5em; font-weight: 700; font-size: 24px; line-height: 1.25; }
.texte h4 { margin-top: 1.3em; font-weight: 700; font-size: 20px; line-height: 1.3; }
.texte a { text-decoration-color: var(--vert); text-decoration-thickness: 3px; text-underline-offset: 4px; }
/* ---------------------------------------------------------
   Citations (blocs « Citation » et « Citation en exergue »)
   Style au choix dans Apparence › Personnaliser › Mon site.
   Elles s'animent quand elles arrivent à l'écran (assets/apparition.js).
   --------------------------------------------------------- */
.texte .wp-block-pullquote { margin: 1.8em 0; padding: 0; border: 0; text-align: left; font-size: inherit; }
.texte blockquote {
	position: relative;
	isolation: isolate;
	margin: 1.8em 0;
	padding: 0;
	border: 0;
	background: none;
	border-radius: 0;
	font-style: italic;
	font-weight: 700;
	font-size: clamp(23px, 2.6vw, 31px);
	line-height: 1.32;
	text-align: left;
	-webkit-hyphens: manual;
	hyphens: manual;
}
.texte .wp-block-pullquote blockquote { margin: 0; }
.texte blockquote p { margin: 0; font-size: inherit; }
.texte blockquote p + p { margin-top: 0.5em; }
.texte blockquote cite, .texte .wp-block-pullquote cite {
	display: block;
	margin-top: 14px;
	font-family: var(--ui);
	font-style: normal;
	font-weight: 500;
	font-size: 16px;
	letter-spacing: 0;
	text-transform: none;
	color: var(--gris-texte);
}

/* 1. Guillemets géants (par défaut) */
.citations-guillemets .texte blockquote { margin-bottom: 2.4em; padding: 18px 46px 16px 78px; }
.citations-guillemets .texte .wp-block-pullquote { margin-bottom: 2.4em; }
.citations-guillemets .texte blockquote::before,
.citations-guillemets .texte blockquote::after {
	position: absolute;
	font-family: var(--titre);
	font-style: normal;
	font-weight: 800;
	font-size: 4.6em;
	line-height: 1;
	color: var(--vert);
}
.citations-guillemets .texte blockquote::before { content: '«'; left: -6px; top: -0.3em; }
.citations-guillemets .texte blockquote::after { content: '»'; right: 0; bottom: -0.62em; }
/* Dans un article, la citation reste dans la colonne de lecture : seul le grand guillemet sort dans la marge,
   et le guillemet fermant disparaît, pour qu'elle fasse partie du texte au lieu de le couper. */
.citations-guillemets .feuille--article .texte blockquote { margin: 1.6em 0 1.4em; padding: 0; font-size: clamp(21px, 2.4vw, 25px); }
.citations-guillemets .feuille--article .texte blockquote::before { left: -52px; top: -0.22em; font-size: 3.2em; }
.citations-guillemets .feuille--article .texte blockquote::after { content: none; }
@media (max-width: 1100px) {
	.citations-guillemets .feuille--article .texte blockquote { padding-left: 52px; }
	.citations-guillemets .feuille--article .texte blockquote::before { left: -6px; }
}

/* 2. Surligneur */
.citations-surligneur .texte blockquote { padding-top: 40px; font-style: normal; font-weight: 800; }
.citations-surligneur .texte blockquote::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	width: 28px;
	height: 28px;
	background: var(--vert);
	clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
}
.citations-surligneur .texte blockquote > p { display: inline; }
.citations-surligneur .texte blockquote > p + p::before { content: '\A'; white-space: pre; }
.citations-surligneur .texte blockquote > p {
	background-image: linear-gradient(transparent 58%, var(--vert) 58%, var(--vert) 92%, transparent 92%);
	background-repeat: no-repeat;
	background-size: 100% 100%;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}
.citations-surligneur .texte blockquote cite { font-family: var(--sc); font-weight: 700; font-size: 15px; letter-spacing: 0.08em; }
html[data-theme="sombre"] .citations-surligneur .texte blockquote > p { background-image: linear-gradient(transparent 58%, rgba(22, 219, 146, 0.4) 58%, rgba(22, 219, 146, 0.4) 92%, transparent 92%); }

/* 3. Coupure de presse */
.citations-coupure .texte blockquote { padding: 38px 40px 32px; font-style: normal; font-weight: 800; transform: rotate(-1.2deg); }
.citations-coupure .texte blockquote::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background: #F6F0DC;
	clip-path: polygon(0.0% 2.2%, 2.94% 0%, 5.88% 4.2%, 8.82% 0%, 11.76% 3.7%, 14.71% 0%, 17.65% 3.2%, 20.59% 0%, 23.53% 2.7%, 26.47% 0%, 29.41% 2.2%, 32.35% 0%, 35.29% 4.2%, 38.24% 0%, 41.18% 3.7%, 44.12% 0%, 47.06% 3.2%, 50.0% 0%, 52.94% 2.7%, 55.88% 0%, 58.82% 2.2%, 61.76% 0%, 64.71% 4.2%, 67.65% 0%, 70.59% 3.7%, 73.53% 0%, 76.47% 3.2%, 79.41% 0%, 82.35% 2.7%, 85.29% 0%, 88.24% 2.2%, 91.18% 0%, 94.12% 4.2%, 97.06% 0%, 100.0% 3.7%, 100.0% 100%, 97.06% 97.1%, 94.12% 100%, 91.18% 96.1%, 88.24% 100%, 85.29% 97.1%, 82.35% 100%, 79.41% 96.1%, 76.47% 100%, 73.53% 97.1%, 70.59% 100%, 67.65% 96.1%, 64.71% 100%, 61.76% 97.1%, 58.82% 100%, 55.88% 96.1%, 52.94% 100%, 50.0% 97.1%, 47.06% 100%, 44.12% 96.1%, 41.18% 100%, 38.24% 97.1%, 35.29% 100%, 32.35% 96.1%, 29.41% 100%, 26.47% 97.1%, 23.53% 100%, 20.59% 96.1%, 17.65% 100%, 14.71% 97.1%, 11.76% 100%, 8.82% 96.1%, 5.88% 100%, 2.94% 97.1%, 0.0% 100%);
}
.citations-coupure .texte blockquote::after {
	content: '';
	position: absolute;
	left: 50%;
	top: -12px;
	width: 110px;
	height: 26px;
	margin-left: -55px;
	background: rgba(22, 219, 146, 0.55);
	transform: rotate(-4deg);
}
.citations-coupure .texte blockquote cite { font-style: italic; }
.citations-coupure .texte blockquote { transform: rotate(-1.2deg); }
html[data-theme="sombre"] .citations-coupure .texte blockquote::before { background: #2C2A24; }

/* 4. Bulle d'entretien */
.citations-bulle .texte blockquote {
	margin-bottom: 2.2em;
	padding: 26px 32px;
	background: var(--gris);
	border: var(--trait);
	border-radius: 22px;
	transform-origin: 40px 100%;
}
.citations-bulle .texte blockquote::after {
	content: '';
	position: absolute;
	left: 34px;
	bottom: -13px;
	width: 24px;
	height: 24px;
	background: var(--gris);
	border-right: var(--trait);
	border-bottom: var(--trait);
	transform: rotate(45deg);
}

/* 5. Bandeau plein cadre */
.citations-bandeau .texte blockquote {
	padding: 36px 40px 32px 112px;
	background: #111111;
	color: #FFFFFF;
	border-radius: 10px;
	font-style: normal;
	font-weight: 800;
}
.citations-bandeau .texte blockquote::before {
	content: '«';
	position: absolute;
	left: 30px;
	top: 24px;
	font-family: var(--titre);
	font-weight: 800;
	font-size: 3.6em;
	line-height: 0.8;
	color: var(--vert);
}
.citations-bandeau .texte blockquote cite { color: #BDBDBD; font-family: var(--sc); font-weight: 700; font-size: 14px; letter-spacing: 0.08em; }
html[data-theme="sombre"] .citations-bandeau .texte blockquote { background: #0A0A0B; box-shadow: inset 0 0 0 1.5px #2A2C30; }

/* 6. Classique (encadré simple, sans animation de forme) */
.citations-classique .texte blockquote { padding: 22px 26px 22px 28px; border-left: 5px solid var(--vert); background: var(--gris); border-radius: 0 8px 8px 0; }

@media (max-width: 600px) {
	.citations-guillemets .texte blockquote { padding: 14px 24px 14px 56px; }
	.citations-guillemets .texte blockquote::before, .citations-guillemets .texte blockquote::after { font-size: 3.6em; }
	.citations-coupure .texte blockquote { padding: 32px 22px 26px; }
	.citations-bulle .texte blockquote { padding: 22px 22px; }
	.citations-bandeau .texte blockquote { padding: 70px 22px 26px; }
	.citations-bandeau .texte blockquote::before { left: 22px; top: 18px; }
}

.texte figure { margin-left: 0; margin-right: 0; }
.texte img { border-radius: 8px; }
.texte .legende-seule { margin-top: -0.6em; font-family: var(--ui); font-size: 14.5px; line-height: 1.4; color: var(--gris-texte); }
.texte figcaption, .texte .wp-element-caption { margin-top: 8px; font-family: var(--ui); font-size: 14.5px; line-height: 1.4; color: var(--gris-texte); text-align: left; }
.texte ul, .texte ol { padding-left: 1.3em; text-align: left; }
.texte hr { border: 0; border-top: var(--trait); margin: 2.5em 0; }
.texte table { width: 100%; border-collapse: collapse; font-family: var(--ui); font-size: 16px; text-align: left; }
.texte th, .texte td { border: 1px solid var(--gris-ligne); padding: 8px 10px; }
.texte .wp-block-table { overflow-x: auto; }
.texte .alignright { float: right; max-width: 45%; margin: 6px 0 16px 28px; }
.texte .alignleft { float: left; max-width: 45%; margin: 6px 28px 16px 0; }

/* Notes de bas de page (bouton « Note de bas de page » de l'éditeur) */
.texte sup.fn a, .texte sup a[href^="#"] {
	display: inline-block;
	margin-left: 2px;
	padding: 0 5px;
	border-radius: 4px;
	background: var(--vert);
	color: #111111;
	font-family: var(--ui);
	font-size: 12px;
	font-style: normal;
	line-height: 1.5;
	text-decoration: none;
}
/* Les notes en fin de texte : un bloc à part, comme l'encadré « Résumé », pour bien les séparer du texte. */
.texte .wp-block-footnotes {
	clear: both;
	margin-top: 3em;
	padding: 22px 28px 24px 52px;
	border: var(--trait);
	border-radius: 8px;
	background: var(--gris);
	font-family: var(--ui);
	font-size: 14.5px;
	line-height: 1.5;
	color: var(--gris-texte);
	text-align: left;
}
.texte .wp-block-footnotes::before {
	content: 'Notes';
	display: block;
	margin: 0 0 12px -24px;
	font-family: var(--sc);
	font-weight: 700;
	font-size: 15px;
	letter-spacing: 0.08em;
	color: var(--noir);
}
.texte .wp-block-footnotes li::marker { font-weight: 700; color: var(--noir); }
.texte .wp-block-footnotes li + li { margin-top: 6px; }
@media (max-width: 600px) {
	.texte .wp-block-footnotes { padding: 18px 18px 20px 40px; }
	.texte .wp-block-footnotes::before { margin-left: -22px; }
}
.texte .wp-block-footnotes a { text-decoration-thickness: 1px; }
.texte sup.fn a:hover, .texte sup.fn a.fn-actif { outline: 2px solid var(--noir); outline-offset: 1px; }

/* La bulle au survol d'une note */
.note-bulle {
	position: absolute;
	z-index: 60;
	top: 0;
	left: 0;
	width: max-content;
	max-width: min(360px, calc(100vw - 24px));
	padding: 10px 14px;
	background: var(--blanc);
	color: var(--noir);
	border: var(--trait);
	border-radius: 8px;
	box-shadow: 0 10px 24px var(--ombre);
	font-family: var(--ui);
	font-size: 15px;
	line-height: 1.5;
	opacity: 0;
	visibility: hidden;
	transform: translateY(4px);
	transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s linear 0.15s;
}
.note-bulle.visible { opacity: 1; visibility: visible; transform: none; transition: opacity 0.15s ease, transform 0.15s ease; }
.note-bulle a { text-decoration-color: var(--vert); }

/* Le panneau de la note, à droite (en bas sur téléphone) */
.panneau-note {
	position: fixed;
	z-index: 70;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(380px, 100vw);
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 22px 24px;
	background: var(--blanc);
	color: var(--noir);
	border-left: var(--trait);
	box-shadow: -12px 0 30px var(--ombre);
	font-family: var(--ui);
	transform: translateX(105%);
	visibility: hidden;
	transition: transform 0.3s ease, visibility 0s linear 0.3s;
}
.panneau-note.ouvert { transform: none; visibility: visible; transition: transform 0.3s ease; }
.admin-bar .panneau-note { top: 32px; }
.panneau-note__tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panneau-note__titre { margin: 0; font-family: var(--sc); font-weight: 700; font-size: 15px; letter-spacing: 0.08em; outline: none; }
.panneau-note__titre span { display: inline-block; margin-left: 4px; padding: 0 7px; border-radius: 4px; background: var(--vert); color: #111111; letter-spacing: 0; }
.panneau-note__fermer { width: 36px; height: 36px; border: var(--trait); border-radius: 50%; background: var(--blanc); color: var(--noir); font-size: 22px; line-height: 1; cursor: pointer; }
.panneau-note__fermer:hover { background: var(--gris); }
.panneau-note__texte { flex: 1; overflow-y: auto; font-family: var(--titre); font-size: 18px; line-height: 1.6; }
.panneau-note__texte a { text-decoration-color: var(--vert); text-decoration-thickness: 2px; }
.panneau-note__pied { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--gris-ligne); }
.panneau-note__nav { display: flex; gap: 6px; }
.panneau-note__fleche { width: 36px; height: 36px; border: var(--trait); border-radius: 6px; background: var(--blanc); color: var(--noir); font-size: 20px; line-height: 1; cursor: pointer; }
.panneau-note__fleche:hover:not(:disabled) { background: var(--vert); color: #111111; }
.panneau-note__fleche:disabled { opacity: 0.35; cursor: default; }
@media (max-width: 1099px) {
	.panneau-note, .admin-bar .panneau-note {
		top: auto;
		left: 0;
		width: auto;
		max-height: 55vh;
		padding: 18px 18px calc(18px + env(safe-area-inset-bottom, 0px));
		border-left: 0;
		border-top: var(--trait);
		border-radius: 14px 14px 0 0;
		box-shadow: 0 -12px 30px var(--ombre);
		transform: translateY(105%);
	}
}

.navigation-articles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 720px; margin: 44px auto 0; font-family: var(--ui); font-size: 16px; font-weight: 500; }
.navigation-articles > span:last-child { text-align: right; }
.navigation-articles a { display: flex; flex-direction: column; gap: 6px; height: 100%; box-sizing: border-box; background: var(--blanc); border: var(--trait); border-radius: 14px; padding: 16px 20px; color: var(--noir); text-decoration: none; }
.navigation-articles small { font-weight: 700; font-size: 14px; color: var(--gris-texte); }
.navigation-articles strong { font-family: var(--titre); font-weight: 700; font-size: 20px; line-height: 1.2; }
.navigation-articles a:hover { background: var(--vert); }
.navigation-articles a:hover small { color: #111111; }
@media (max-width: 700px) {
	.navigation-articles { grid-template-columns: minmax(0, 1fr); }
	.navigation-articles > span:last-child { text-align: left; }
}

/* Titre qui accompagne la lecture, dans la marge (grands écrans) */
.lateral {
	position: sticky;
	top: 32px;
	max-width: 260px;
	margin-left: auto;
	background: var(--gris);
	border: var(--trait);
	border-radius: 8px;
	padding: 18px 20px 20px;
	opacity: 0;
	transform: translateY(-8px);
	transition: opacity 0.3s ease, transform 0.3s ease;
}
.lateral.est-visible { opacity: 1; transform: none; }
.lateral__label { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font-family: var(--sc); font-weight: 700; font-size: 13.5px; letter-spacing: 0.08em; color: var(--gris-texte); }
.lateral__titre { margin: 0; font-weight: 800; font-size: 20px; line-height: 1.2; }

.progression { height: 8px; margin-top: 16px; background: var(--blanc); border: var(--trait); border-radius: 4px; overflow: hidden; }
.progression span { display: block; width: 0; height: 100%; background: var(--vert); }

@media (min-width: 1360px) {
	.lecture { grid-template-columns: minmax(0, 1fr) minmax(0, 900px) minmax(0, 1fr); }
	.lecture__marge { display: block; grid-column: 1; padding-right: 28px; }
	.lecture > .feuille, .lecture > .navigation-articles { grid-column: 2; }
}

/* =========================================================
   6. Recherche : liste des travaux universitaires
   ========================================================= */
.bandeau-libre {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 56px;
	padding: 14px 18px;
	background: var(--gris);
	border: var(--trait);
	border-radius: 8px;
	font-family: var(--ui);
	font-size: 16px;
}
.bandeau-libre .icone { flex: none; }
.travaux { display: flex; flex-direction: column; gap: 28px; }
.travaux > .travail {
	display: flex;
	flex-wrap: wrap;
	gap: 32px;
	padding: 28px;
	background: var(--blanc);
	border: var(--trait);
	border-radius: 10px;
}
.couverture {
	flex: 0 0 190px;
	height: 260px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 22px 18px;
	background: var(--gris);
	border: var(--trait);
	border-radius: 6px;
	transform: rotate(-2deg);
	text-decoration: none;
	transition: transform 0.25s ease;
}
.travaux > .travail:nth-child(even) .couverture { transform: rotate(2deg); }
.couverture:hover, .travaux > .travail:nth-child(even) .couverture:hover { transform: rotate(0); }
/* Couverture en image (image mise en avant du travail) : verticale, recadrée pour remplir le cadre */
.couverture--image { padding: 0; overflow: hidden; background: var(--gris); }
.couverture--image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.couverture__univ { font-family: var(--sc); font-weight: 700; font-size: 11px; letter-spacing: 0.08em; color: var(--gris-texte); }
.couverture__trait { display: block; width: 36px; height: 4px; margin-bottom: 10px; background: var(--vert); }
.couverture__titre { display: block; font-weight: 800; font-size: 18px; line-height: 1.15; }
.couverture__auteur { font-family: var(--ui); font-size: 12px; color: var(--gris-texte); }
.travail__infos { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.travail__titre { margin: 0; font-weight: 800; font-size: clamp(26px, 3vw, 32px); line-height: 1.15; text-wrap: balance; }
.travail__resume { margin: 0; font-size: 18px; color: var(--gris-texte); }
.travail__details { margin: 0; font-family: var(--ui); font-size: 15px; color: var(--gris-texte); }
.boutons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.pastilles { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-family: var(--ui); font-size: 15px; color: var(--gris-texte); }

/* =========================================================
   7. Lecture d'un travail : sommaire à gauche
   ========================================================= */
.memoire { max-width: 1140px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 40px; }
.memoire__cote { flex: 1 1 260px; max-width: 300px; display: flex; flex-direction: column; gap: 16px; }
.memoire__cote > .bouton { width: 100%; }
.memoire__cote > .bouton--petit { width: auto; align-self: flex-start; }
.memoire__feuille {
	display: block;
	flex: 999 1 560px;
	min-width: 0;
	max-width: 800px;
	background: var(--blanc);
	border: var(--trait);
	border-radius: 10px;
	padding: 52px clamp(24px, 6vw, 80px) 64px;
}

@media (min-width: 900px) {
	.memoire__cote { position: sticky; top: 24px; max-height: calc(100vh - 48px); }
	.memoire__cote .sommaire { overflow-y: auto; min-height: 0; }
}

.sommaire { background: var(--blanc); border: var(--trait); border-radius: 10px; padding: 18px 14px 16px; }
.sommaire__titre { display: flex; align-items: center; gap: 8px; margin: 0 0 10px 8px; font-family: var(--sc); font-weight: 700; font-size: 14px; letter-spacing: 0.08em; }
.sommaire ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; font-family: var(--ui); font-size: 15.5px; line-height: 1.35; }
.sommaire ol ol { margin: 2px 0 4px 14px; padding-left: 10px; border-left: 1.5px solid var(--gris-ligne); gap: 1px; font-size: 14.5px; }
.sommaire a { display: block; padding: 7px 10px; border-radius: 6px; text-decoration: none; }
.sommaire a.sous { padding: 4px 10px; color: var(--gris-texte); }
.sommaire a:hover { background: var(--gris); }
.sommaire a.est-actif { background: var(--vert); color: var(--noir); font-weight: 700; }
.sommaire__lecture { margin: 16px 8px 0; font-family: var(--ui); font-size: 13.5px; color: var(--gris-texte); }
.sommaire__lecture div:first-child { display: flex; justify-content: space-between; }
.sommaire__lecture .progression { height: 6px; margin-top: 6px; border: 0; background: var(--gris); }


/* Sommaire : subdivisions (Titre 4) repliées sous leur sous-partie */
.sommaire li.a-sous { position: relative; }
.sommaire li.a-sous > a.sous { padding-right: 34px; }
.sommaire__plier {
	position: absolute; top: 1px; right: 2px;
	display: none; align-items: center; justify-content: center;
	width: 26px; height: 26px; padding: 0;
	border: 0; border-radius: 50%; background: transparent; color: var(--gris-texte);
	cursor: pointer; transition: background 0.15s, color 0.15s;
}
.sommaire--replie .sommaire__plier { display: inline-flex; }
.sommaire__plier:hover { background: var(--gris); color: var(--noir); }
.sommaire__plier svg { transition: transform 0.2s ease; }
.sommaire li.est-deplie > .sommaire__plier svg { transform: rotate(90deg); }
.sommaire--replie li.a-sous:not(.est-deplie) > .sommaire__replie { display: none; }
.sommaire li.est-deplie > .sommaire__replie { animation: sommaire-ouvre 0.25s ease; }
@keyframes sommaire-ouvre { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
.sommaire a.sous-sous { padding: 3px 10px; font-size: 13.5px; color: var(--gris-texte); }
.sommaire a.sous-sous.est-actif { color: var(--noir); }
.texte h5 { margin-top: 1.2em; font-weight: 700; font-style: italic; font-size: 18px; line-height: 1.35; text-align: left; scroll-margin-top: 24px; }

/* « Citer ce travail » : un bloc entouré d'une fine lueur verte qui tourne lentement ;
   au clic, la couleur s'agite. */
@property --citer-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.citer {
	position: relative;
	isolation: isolate;
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	border-radius: 12px;
	background: none;
	color: var(--noir);
	font: inherit;
	text-align: left;
	cursor: pointer;
}
.citer::before,
.citer::after {
	content: "";
	position: absolute;
	inset: -1.5px;
	z-index: -1;
	border-radius: 13.5px;
	background: conic-gradient(from var(--citer-angle), #16DB92, #0A6B47, #B8F5DD, var(--noir), #16DB92);
	animation: citer-tourne 6s linear infinite;
}
.citer::after { inset: -2px; z-index: -2; filter: blur(7px); opacity: 0.45; }
.citer__int { display: block; padding: 15px 16px 12px; border-radius: 11px; background: var(--blanc); }
.citer__eti { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; font-family: var(--ui); font-weight: 700; font-size: 14px; }
.citer__norme { margin-left: auto; padding: 1px 7px; border-radius: 4px; background: var(--vert); color: #111111; font-size: 11px; letter-spacing: 0.06em; }
.citer__ref { display: block; font-family: var(--titre); font-size: 15px; line-height: 1.5; }
.citer__url { word-break: break-all; }
.citer__statut { display: block; margin-top: 8px; font-family: var(--ui); font-size: 12.5px; color: var(--gris-texte); }
.citer:focus-visible { outline: 2px solid var(--noir); outline-offset: 5px; }
.citer.agite { animation: citer-secoue 0.5s linear 2; }
.citer.agite::before { animation: citer-tourne 0.45s linear infinite, citer-teinte 0.5s linear infinite; }
.citer.agite::after { opacity: 0.95; animation: citer-tourne 0.45s linear infinite, citer-teinte-flou 0.5s linear infinite; }
@keyframes citer-tourne { to { --citer-angle: 360deg; } }
@keyframes citer-teinte { 50% { filter: hue-rotate(-60deg); } }
@keyframes citer-teinte-flou { 0%, 100% { filter: blur(16px); } 50% { filter: hue-rotate(-60deg) blur(16px); } }
@keyframes citer-secoue {
	0%, 100% { transform: none; }
	20% { transform: translate(-2px, 1px) rotate(-0.4deg); }
	40% { transform: translate(2px, -1px) rotate(0.4deg); }
	60% { transform: translate(-1px, -1px); }
	80% { transform: translate(1px, 1px); }
}

/* Bouton « Revenir en haut » : la fusée */
.fusee-haut {
	position: fixed;
	right: 24px;
	bottom: calc(24px + env(safe-area-inset-bottom, 0px));
	z-index: 60;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--noir);
	color: var(--page);
	box-shadow: 0 6px 18px var(--ombre);
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(90px);
	transition: transform 0.45s cubic-bezier(0.3, 1.5, 0.5, 1), opacity 0.25s ease, visibility 0s linear 0.45s, right 0.3s ease;
}
.fusee-haut[hidden] { display: none; }
.fusee-haut.visible { opacity: 1; visibility: visible; transform: none; transition: transform 0.45s cubic-bezier(0.3, 1.5, 0.5, 1), opacity 0.25s ease, right 0.3s ease; }
.fusee-haut:focus-visible { outline: 3px solid var(--vert); outline-offset: 3px; }
.fusee-haut__flamme { opacity: 0; transform-origin: 50% 27px; }
@media (hover: hover) and (pointer: fine) {
	.fusee-haut:hover svg { animation: fusee-tremble 0.12s linear infinite; }
	.fusee-haut:hover .fusee-haut__flamme { opacity: 1; animation: fusee-flamme 0.12s ease-in-out infinite alternate; }
}
.fusee-haut.decolle { visibility: visible; opacity: 1; animation: fusee-decolle 1.1s cubic-bezier(0.55, 0, 0.85, 0.35) forwards; transition: none; }
.fusee-haut.decolle svg { animation: none; }
.fusee-haut.decolle .fusee-haut__flamme { opacity: 1; animation: fusee-flamme 0.1s ease-in-out infinite alternate; }
@keyframes fusee-tremble { 25% { transform: translate(-1px, 1px); } 50% { transform: translate(1px, 0); } 75% { transform: translate(0, -1px); } }
@keyframes fusee-flamme { from { transform: scaleY(0.7); } to { transform: scaleY(1.25); } }
@keyframes fusee-decolle { 0% { transform: none; } 20% { transform: translateY(7px); } 100% { transform: translateY(-110vh); } }
.fusee-fumee { position: fixed; inset: 0; z-index: 59; width: 100%; height: 100%; pointer-events: none; }
/* Quand une note est ouverte, la fusée se pousse (à droite sur ordinateur) ou s'efface (en bas sur téléphone). */
@media (min-width: 1100px) {
	body:has(.panneau-note.ouvert) .fusee-haut { right: calc(min(380px, 100vw) + 24px); }
}
@media (max-width: 1099px) {
	.fusee-haut { right: 16px; width: 50px; height: 50px; }
	body:has(.panneau-note.ouvert) .fusee-haut.visible { opacity: 0; visibility: hidden; }
}
@media (prefers-reduced-motion: reduce) {
	.citer::before, .citer::after, .citer.agite, .citer.agite::before, .citer.agite::after { animation: none; }
	.fusee-haut, .fusee-haut.visible { transition: opacity 0.2s ease; transform: none; }
	.sommaire li.est-deplie > .sommaire__replie { animation: none; }
}
@media print {
	.fusee-haut, .fusee-fumee { display: none !important; }
}

.fiche { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 20px; margin: 28px 0 0; font-family: var(--ui); font-size: 15.5px; }
.fiche dt { color: var(--gris-texte); }
.fiche dd { margin: 0; }

.resume { margin-top: 36px; padding: 24px 28px; background: var(--gris); border: var(--trait); border-radius: 8px; }
.resume h2 { margin: 0 0 8px; font-family: var(--sc); font-weight: 700; font-size: 15px; letter-spacing: 0.08em; }
.resume p { margin: 0; font-size: 18.5px; line-height: 1.65; }
.mots-cles { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; font-family: var(--ui); font-size: 14px; }
.mots-cles a { background: var(--blanc); border: var(--trait); border-radius: 6px; padding: 2px 10px; text-decoration: none; }

.fin-memoire { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; }

/* =========================================================
   7 bis. Page À propos : photo, présentation, frise « Parcours », CV
   ========================================================= */
.apropos { display: flex; flex-direction: column; gap: 88px; }
.apropos__tete { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 56px; }
.apropos__photo { position: relative; flex: 0 1 300px; min-width: 220px; }
.apropos__cadre { position: relative; margin: 0; aspect-ratio: 1; border-radius: 50%; border: var(--trait); background: var(--gris); overflow: hidden; display: flex; align-items: center; justify-content: center; }
/* Sous la photo ronde : les sujets (catégories), centrés */
.apropos__photo .apropos__themes { justify-content: center; margin-top: 24px; }
.apropos__cadre img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.apropos__sans-photo { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px; text-align: center; font-family: var(--ui); font-size: 15px; color: var(--gris-texte); }
.apropos__texte { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.apropos__titre { margin: 0; font-family: var(--titre); font-weight: 900; font-size: clamp(36px, 5vw, 54px); line-height: 1; letter-spacing: -0.02em; }
.apropos__point { color: var(--vert); }
.apropos__accroche { margin: 0; font-weight: 700; font-size: clamp(22px, 2.6vw, 27px); line-height: 1.35; }
.apropos__presentation { text-align: left; }
.apropos__presentation > :first-child { margin-top: 0; }
.apropos__presentation > :last-child { margin-bottom: 0; }

/* La frise : la tige pousse, puis chaque étape éclot en arrivant à l'écran */
.parcours { position: relative; list-style: none; margin: 0; padding: 0 0 0 64px; display: flex; flex-direction: column; gap: 26px; }
.parcours::before {
	content: '';
	position: absolute;
	left: 21px;
	top: 8px;
	bottom: 8px;
	width: 4px;
	border-radius: 2px;
	background: linear-gradient(var(--vert), #2F8F5B);
	transform-origin: top;
	transition: transform 2.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.apparitions .parcours:not(.vu)::before { transform: scaleY(0); }
.parcours__etape { position: relative; }
.parcours__point {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: 2px solid var(--noir);
	box-sizing: border-box;
	flex: none;
}
.parcours__etape > .parcours__point { position: absolute; left: -55px; top: 18px; transition: transform 0.5s cubic-bezier(0.3, 1.6, 0.5, 1) 0.1s; }
.parcours__point--pro { background: var(--noir); color: var(--page); }
.parcours__point--formation { background: var(--vert); color: #111111; }
.parcours__legende { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; margin: 0 0 22px; padding: 0; font-family: var(--ui); font-size: 15px; color: var(--gris-texte); }
.parcours__legende li { display: inline-flex; align-items: center; gap: 8px; }
.parcours__legende .parcours__point { width: 24px; height: 24px; }
.parcours__fiche {
	display: flex;
	flex-wrap: wrap;
	gap: 14px 22px;
	padding: 20px 24px;
	background: var(--blanc);
	border: var(--trait);
	border-radius: 10px;
	transition: opacity 0.6s ease 0.2s, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s, box-shadow 0.25s ease;
}
.parcours__fiche:hover { box-shadow: 0 12px 24px var(--ombre); }
.apparitions .parcours__etape:not(.vu) .parcours__point { transform: scale(0); }
.apparitions .parcours__etape:not(.vu) .parcours__fiche { opacity: 0; transform: translateX(40px); }
.parcours__annee { flex: none; align-self: flex-start; display: flex; flex-direction: column; align-items: center; min-width: 84px; padding: 6px 10px; border-radius: 6px; background: var(--noir); color: var(--page); text-align: center; font-weight: 800; font-size: 19px; line-height: 1.25; }
.parcours__annee time, .parcours__maintenant { display: block; white-space: nowrap; }
.parcours__mois, .parcours__maintenant { font-weight: 600; font-size: 0.74em; }
.parcours__a { display: block; width: 14px; height: 2px; margin: 3px auto; border-radius: 1px; background: currentColor; opacity: 0.5; }
.parcours__etape--formation .parcours__fiche { background: var(--gris); border-style: dashed; }
.parcours__etape--formation .parcours__annee { background: var(--vert); color: #111111; }
.parcours__type { font-family: var(--sc); font-weight: 700; font-size: 12.5px; letter-spacing: 0.08em; color: var(--gris-texte); }

/* Projet lié : un bloc à droite de l'étape */
.parcours__etape--projet { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 14px; align-items: start; }
.parcours__projet {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 14px 16px;
	background: var(--blanc);
	border: var(--trait);
	border-radius: 10px;
	text-decoration: none;
	transition: transform 0.25s ease, background 0.25s ease, opacity 0.6s ease 0.45s;
}
.parcours__projet:hover, .parcours__projet:focus-visible { transform: translateX(4px); background: var(--vert); color: #111111; }
.parcours__projet:hover .parcours__projet-etiquette, .parcours__projet:focus-visible .parcours__projet-etiquette { color: #111111; }
.parcours__projet-etiquette { font-family: var(--sc); font-weight: 700; font-size: 12.5px; letter-spacing: 0.06em; color: var(--gris-texte); }
.parcours__projet-titre { font-weight: 700; font-size: 17px; line-height: 1.3; }
.parcours__projet-lire { margin-top: 2px; font-family: var(--ui); font-weight: 700; font-size: 14px; }
.apparitions .parcours__etape:not(.vu) .parcours__projet { opacity: 0; }
.parcours__corps { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.parcours__titre { margin: 0; font-weight: 700; font-size: 22px; line-height: 1.25; }
/* Le logo de l'expérience (journal, université…) : à droite de la fiche, sur une plaque blanche, lisible aussi en mode sombre */
.parcours__logos { flex: none; align-self: center; display: flex; flex-wrap: wrap; gap: 8px; }
.parcours__logo { flex: none; display: flex; align-items: center; justify-content: center; width: 116px; height: 58px; padding: 8px 12px; border: var(--trait); border-radius: 8px; background: #FFFFFF; }
.parcours__logo img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.parcours__lieu { font-family: var(--sc); font-weight: 700; font-size: 13.5px; letter-spacing: 0.06em; color: var(--gris-texte); }
.parcours__texte { margin: 6px 0 0; font-size: 17px; line-height: 1.55; }

/* ---------------------------------------------------------
   Parcours qui descend dans le temps (inc/descente.php + assets/descente.js)
   Sur un écran étroit : une liste de fiches. Sur un écran large (.est-frise) : la frise.
   --------------------------------------------------------- */
.descente { --d-vert-pale: #E6F9F1; --d-vert-fonce: #0B7A52; --d-nuage: #FFFFFF; --d-nuage-trait: #CFCFCF; --d-texte: #383838; position: relative; }
html[data-theme="sombre"] .descente { --d-vert-pale: #15302A; --d-vert-fonce: #5FE8B5; --d-nuage: #17181B; --d-nuage-trait: #34363C; --d-texte: #D2D4D9; }
.descente__legende { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 0 0 22px; padding: 0; list-style: none; font-family: var(--ui); font-size: 15px; color: var(--gris-texte); }
.descente__legende li { display: inline-flex; align-items: center; gap: 8px; }
.descente__cle { display: inline-block; width: 10px; height: 22px; border-radius: 5px; background: var(--noir); }
.descente__cle--formation { background: var(--vert); border: 1.5px solid #111111; }
.descente__cle--evenement { width: 14px; height: 14px; margin: 0 4px; border: 1.5px solid #111111; border-radius: 2px; background: var(--soleil); transform: rotate(45deg); }
.descente__cle--piges { width: 26px; border-radius: 6px; border: 1.5px solid var(--gris-ligne); background: repeating-linear-gradient(90deg, var(--noir) 0 4px, transparent 4px 7px) content-box, var(--gris); padding: 0 3px; }
.descente__auj { display: none; margin: 0 0 12px; text-align: center; }
.descente__auj span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 14px; border-radius: 999px; background: var(--vert); color: #111111; font-family: var(--ui); font-weight: 700; font-size: 14px; }
.descente__auj span::after { content: '↓'; }
.descente__liste { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 18px; margin: 0; padding: 0; list-style: none; }
.descente__liste--sans-date { margin-top: 18px; }

/* La fiche d'une étape */
.d-fiche { display: flex; flex-direction: column; gap: 4px; padding: 18px 22px 20px; background: var(--blanc); border: var(--trait); border-radius: 10px; }
.d-etape--formation .d-fiche { background: var(--d-vert-pale); }
.d-fiche__dates { align-self: flex-start; margin: 0 0 6px; padding: 3px 10px; border-radius: 6px; background: var(--noir); color: var(--page); font-family: var(--ui); font-weight: 700; font-size: 14px; line-height: 1.4; }
.d-etape--formation .d-fiche__dates { background: var(--vert); color: #111111; }
.d-etape--evenement .d-fiche__dates { background: var(--soleil); color: #111111; }
.d-fiche__type { display: inline-flex; align-items: center; gap: 6px; font-family: var(--sc); font-weight: 700; font-size: 12.5px; letter-spacing: 0.08em; color: var(--gris-texte); }
.d-etape--formation .d-fiche__type { color: var(--d-vert-fonce); }
.d-fiche__contrat { display: inline-block; margin-left: 4px; padding: 1px 9px; border: 1.5px solid var(--noir); border-radius: 999px; font-family: var(--ui); font-weight: 700; font-size: 12.5px; letter-spacing: 0; color: var(--noir); }
.d-fiche__titre { margin: 0; font-weight: 700; font-size: 22px; line-height: 1.25; }
.d-fiche__lieu { font-family: var(--sc); font-weight: 700; font-size: 13.5px; letter-spacing: 0.06em; color: var(--gris-texte); }
/* La tête de la fiche (dates, type, titre, lieu) à gauche, les logos en haut à droite ; le reste sur toute la largeur */
.d-fiche--logos { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; row-gap: 4px; align-items: start; }
.d-fiche--logos > * { grid-column: 1 / -1; }
.d-fiche__tete { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.d-fiche--logos > .d-fiche__tete { grid-column: 1; grid-row: 1; }
.d-fiche--logos > .d-fiche__logos { grid-column: 2; grid-row: 1; justify-self: end; }
.d-fiche--logos > .d-fiche__projet, .d-fiche--logos > .d-fiche__texte + *, .d-fiche--logos > .d-piges { justify-self: start; }
.d-fiche--logos > .d-piges { justify-self: stretch; }
.d-fiche__logos { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.d-fiche__logo { display: flex; align-items: center; justify-content: center; width: 112px; height: 56px; padding: 6px 10px; border: var(--trait); border-radius: 8px; background: #FFFFFF; }
@media (max-width: 480px) { .d-fiche__logo { width: 84px; height: 44px; } }
.d-fiche__logo img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.d-fiche__texte { margin: 6px 0 0; font-size: 17px; line-height: 1.55; color: var(--d-texte); }
.d-fiche__projet { align-self: flex-start; display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 10px; padding: 9px 14px; background: var(--blanc); border: var(--trait); border-radius: 8px; color: var(--noir); text-decoration: none; }
.d-fiche__projet:hover, .d-fiche__projet:focus-visible { background: var(--vert); color: #111111; }
.d-fiche__projet span { font-family: var(--sc); font-weight: 700; font-size: 12.5px; letter-spacing: 0.06em; color: var(--gris-texte); }
.d-fiche__projet:hover span, .d-fiche__projet:focus-visible span { color: #111111; }
.d-fiche__projet strong { font-size: 15.5px; }

/* Les piges : un média par ligne (et son fil sur la frise) */
.d-piges { display: flex; flex-direction: column; margin: 10px 0 0; padding: 0; list-style: none; border-top: 1.5px solid var(--gris-ligne); }
.d-piges__media { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 6px; border-bottom: 1.5px solid var(--gris-ligne); border-radius: 6px; }
.d-piges__media.est-allume { background: var(--d-vert-pale); }
.d-piges__media i { display: block; width: 5px; height: 22px; margin: 0 auto; border-radius: 3px; background: var(--noir); }
.d-piges__media.est-allume i { background: var(--vert); box-shadow: 0 0 0 1.5px #111111; }
.d-piges__nom { font-weight: 700; font-size: 17px; color: var(--noir); }
a.d-piges__nom { text-decoration: underline; text-decoration-color: var(--vert); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.d-piges__media small { font-family: var(--ui); font-size: 14px; color: var(--gris-texte); white-space: nowrap; }

/* Les projets datés : dans la fiche (liste), ou accrochés à la barre (frise) */
.d-reperes { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.d-repere { list-style: none; }
.d-bulle { display: flex; flex-direction: column; gap: 3px; padding: 12px 16px 14px; background: var(--blanc); border: var(--trait); border-radius: 10px; color: var(--noir); text-decoration: none; }
a.d-bulle:hover, a.d-bulle:focus-visible { background: var(--vert); color: #111111; }
.d-bulle__haut { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; font-family: var(--ui); font-size: 13.5px; color: var(--gris-texte); }
a.d-bulle:hover .d-bulle__haut, a.d-bulle:focus-visible .d-bulle__haut { color: #111111; }
.d-bulle__haut b { font-family: var(--sc); font-size: 12.5px; letter-spacing: 0.06em; }
.d-bulle strong { font-size: 17px; line-height: 1.3; }
.d-bulle em { font-style: normal; font-family: var(--ui); font-weight: 700; font-size: 14px; }

/* ---- La frise (écran large) ---- */
@media (min-width: 1000px) {
	.apropos .descente { width: min(1240px, calc(100vw - 40px)); margin-left: calc(50% - min(620px, 50vw - 20px)); }
}
.descente.est-frise .descente__auj { display: block; }
.descente.est-frise .descente__plan { position: relative; }
.descente.est-frise .descente__liste { position: static; display: block; }
.descente.est-frise .d-etape { position: absolute; z-index: 3; }
.descente.est-frise .d-reperes { display: none; }
.descente__reperes { margin: 0; padding: 0; list-style: none; }
.descente.est-frise .descente__reperes .d-repere { position: absolute; z-index: 3; }
.descente__deco { position: absolute; inset: 0; }
.dd-annee { position: absolute; left: 0; right: 0; display: flex; justify-content: center; border-top: 1.5px solid var(--gris-ligne); pointer-events: none; }
.dd-annee span { position: sticky; top: 16px; align-self: flex-start; z-index: 1; margin-top: 12px; padding: 2px 8px; background: var(--page); font-family: var(--titre); font-weight: 800; font-size: 32px; line-height: 1; color: var(--noir); }
.dd-axe { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--gris-ligne); }
.dd-rail { position: absolute; z-index: 2; width: 10px; border-radius: 0 0 5px 5px; background: var(--noir); box-shadow: 0 0 0 3px var(--page); }
.dd-rail::before { content: ''; position: absolute; left: 50%; top: -9px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: var(--noir); border: 3px solid var(--page); box-shadow: 0 0 0 1.5px var(--noir); }
.dd-rail--formation { background: var(--vert); border: 1.5px solid #111111; }
.dd-rail--formation::before { background: var(--vert); box-shadow: 0 0 0 1.5px #111111; }
.dd-rail--ouvert::before { display: none; }
/* Événement ponctuel : un losange jaune sur l'axe, à sa date */
.dd-evt { position: absolute; left: 50%; z-index: 5; width: 18px; height: 18px; margin-left: -9px; border: 1.5px solid #111111; border-radius: 3px; background: var(--soleil); box-shadow: 0 0 0 3px var(--page); transform: rotate(45deg); }
/* Survol d'une barre : une zone un peu plus large pour viser facilement, son logo à côté, sa fiche soulignée */
.dd-rail::after, .dd-gaine::after { content: ''; position: absolute; top: 0; bottom: 0; left: -6px; right: -6px; }
.dd-rail, .dd-gaine, .dd-fil { cursor: default; }
.dd-rail.est-survole { box-shadow: 0 0 0 3px var(--page), 0 0 0 5.5px var(--vert); }
.dd-gaine.est-survole { border-color: var(--vert); }
.descente.est-frise .d-etape.est-survolee .d-fiche { box-shadow: 0 0 0 3px var(--vert); }
.dd-logo-bulle { position: absolute; z-index: 6; display: flex; gap: 6px; padding: 6px; background: var(--blanc); border: var(--trait); border-radius: 10px; box-shadow: 0 8px 18px var(--ombre); pointer-events: none; }
.dd-logo-bulle__case { display: flex; align-items: center; justify-content: center; width: 112px; height: 56px; padding: 6px 10px; border-radius: 6px; background: #FFFFFF; }
.dd-logo-bulle__case img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.dd-logo-bulle--texte { padding: 6px 12px; font-family: var(--sc); font-weight: 700; font-size: 13.5px; letter-spacing: 0.06em; white-space: nowrap; color: var(--noir); }
.dd-gaine { position: absolute; z-index: 2; border-radius: 7px; background: var(--gris); border: 1.5px solid var(--gris-ligne); box-shadow: 0 0 0 3px var(--page); }
.dd-gaine--ouverte { border-top: 0; border-top-left-radius: 0; border-top-right-radius: 0; }
.dd-fil { position: absolute; z-index: 3; width: 5px; border-radius: 3px; background: var(--noir); }
.dd-fil--ouvert { border-top-left-radius: 0; border-top-right-radius: 0; }
.dd-fil.est-allume { background: var(--vert); box-shadow: 0 0 0 1.5px #111111; }
.dd-fil.est-eteint { opacity: 0.25; }
.dd-point { position: absolute; z-index: 4; width: 16px; height: 16px; border-radius: 50%; background: var(--page); border: 3px solid var(--noir); }
.dd-point--formation { border-color: #0B7A52; }
.dd-trait-h { position: absolute; z-index: 1; height: 1.5px; background: var(--gris-texte); }
.dd-trait-v { position: absolute; z-index: 1; width: 1.5px; background: var(--gris-texte); }
.descente__nuages { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.d-nuage { position: absolute; display: block; will-change: transform; }
.d-nuage svg { display: block; width: 100%; height: auto; }
.d-nuage path { fill: var(--d-nuage); stroke: var(--d-nuage-trait); stroke-width: 1.5px; stroke-linejoin: round; }
.d-nuage--s { width: 110px; }
.d-nuage--m { width: 170px; }
.d-nuage--l { width: 240px; }

/* Le CV */
.apropos__cv { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 56px; padding: 40px clamp(20px, 4vw, 48px); background: var(--gris); border: var(--trait); border-radius: 12px; scroll-margin-top: 24px; }
.apropos__cv-page { flex: none; width: 160px; aspect-ratio: 210 / 297; box-sizing: border-box; padding: 16px 14px; display: flex; flex-direction: column; gap: 7px; background: #FFFFFF; color: #111111; border: 1.5px solid #111111; border-radius: 4px; transform: rotate(-4deg); transition: transform 0.3s ease; }
.apropos__cv:hover .apropos__cv-page { transform: translateY(-6px); }
.apropos__cv-page span { display: block; height: 5px; border-radius: 3px; background: #DDDDDD; }
.apropos__cv-page span:nth-child(4n) { width: 86%; }
.apropos__cv-page .court { width: 55%; margin-bottom: 6px; }
.apropos__cv-page .apropos__cv-nom { height: auto; background: none; font-family: var(--titre); font-weight: 800; font-size: 14px; }
.apropos__cv-page .apropos__cv-trait { height: 3px; width: 34px; background: var(--vert); }
/* Quand le PDF a une image de sa 1re page : on montre la vraie page du CV (penchée, sans mouvement) */
.apropos__cv-page--image { width: 190px; padding: 0; overflow: hidden; box-shadow: 0 10px 24px var(--ombre); }
.apropos__cv:hover .apropos__cv-page--image { transform: rotate(-4deg); }
.apropos__cv-page--image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.apropos__cv-texte { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.apropos__cv-texte h2 { margin: 0; font-weight: 800; font-size: 40px; line-height: 1.05; }
.apropos__cv-texte p { margin: 0; font-size: 19px; line-height: 1.55; }
.apropos__cv-texte .apropos__cv-meta { font-family: var(--ui); font-size: 15px; color: var(--gris-texte); }
.apropos__cv-bouton { align-self: flex-start; }
.apropos__cv-bouton:hover .icone { animation: ap-fleche 0.6s ease infinite; }
@keyframes ap-fleche { 0%, 100% { transform: none; } 50% { transform: translateY(3px); } }

@media (max-width: 600px) {
	.apropos { gap: 64px; }
	.apropos__photo { flex-basis: 100%; max-width: 320px; margin: 0 auto; }
	.parcours { padding-left: 44px; }
	.parcours::before { left: 12px; }
	.parcours { padding-left: 50px; }
	.parcours__etape > .parcours__point { left: -50px; }
	.parcours__etape--projet { grid-template-columns: 1fr; }
	.parcours__projet:hover { transform: translateY(-2px); }
	.parcours__fiche { padding: 16px 18px; }
}
@media (prefers-reduced-motion: reduce) {
}

/* 8. Accueil : voir assets/accueil.css (chargé seulement sur l'accueil). */

/* =========================================================
   8 bis. Apparence : sélecteur clair / sombre / système, et l'encre
   ========================================================= */
.barre > nav { margin-left: auto; }
.theme-choix {
	display: inline-flex;
	gap: 2px;
	padding: 3px;
	border: var(--trait);
	border-radius: 999px;
	background: var(--blanc);
}
.theme-choix__bouton {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--noir);
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
}
.theme-choix__bouton:hover { background: var(--gris); }
.theme-choix__bouton[aria-pressed="true"] { background: var(--vert); color: #111111; }
.theme-choix__bouton:active { transform: scale(0.9); }

.no-js .theme-choix { display: none; }

/* L'encre : au changement d'apparence, le nouveau mode s'étend en cercle depuis le bouton cliqué,
   bordé d'un fin liseré vert (voir assets/theme.js). */
.encre-anneau {
	position: fixed;
	z-index: 2147483000;
	border: 2px solid var(--vert);
	border-radius: 50%;
	pointer-events: none;
	view-transition-name: encre-anneau;
}
html.encre::view-transition-old(root),
html.encre::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
html.encre::view-transition-group(encre-anneau),
html.encre::view-transition-image-pair(encre-anneau),
html.encre::view-transition-new(encre-anneau) { animation: none; }
html.encre::view-transition-old(encre-anneau) { display: none; }

/* =========================================================
   8 ter. Mode sombre
   ========================================================= */
html[data-theme="sombre"] {
	color-scheme: dark;
	--page: #111214;
	--blanc: #1B1C1F;
	--noir: #ECECEC;
	--gris: #26282C;
	--gris-texte: #A9ACB2;
	--texte-intro: #D2D4D9;
	--gris-ligne: #383A40;
	--trait: 1.5px solid #5E6168;
	--points: rgba(255, 255, 255, 0.05);
	--ombre: rgba(0, 0, 0, 0.55);
}
html[data-theme="sombre"] ::selection { color: #111111; }
/* Sur le vert (et les autres couleurs vives), le texte reste noir. */
html[data-theme="sombre"] .menu .current-menu-item > a,
html[data-theme="sombre"] .menu .current_page_item > a,
html[data-theme="sombre"] .menu .current-menu-ancestor > a,
html[data-theme="sombre"] .menu .current_page_parent > a,
html[data-theme="sombre"] .menu .est-actif > a,
html[data-theme="sombre"] .bouton:hover,
html[data-theme="sombre"] .sommaire a.est-actif,
html[data-theme="sombre"] .navigation-articles a:hover,
html[data-theme="sombre"] .lien-evitement,
html[data-theme="sombre"] .monogramme { color: #111111; }
html[data-theme="sombre"] .titre-lien:hover { background: linear-gradient(transparent 58%, rgba(22, 219, 146, 0.45) 58%); }
/* Le bouton secondaire (« Me contacter », « Télécharger le PDF »…) : contour clair et fond un peu plus clair que la page. */
html[data-theme="sombre"] .bouton--clair { background: var(--gris); border-color: var(--noir); color: var(--noir); }
html[data-theme="sombre"] .bouton--clair:hover { background: var(--vert); border-color: var(--vert); color: #111111; }
/* Les logos des médias restent sur fond blanc pour rester lisibles. */
html[data-theme="sombre"] .medias__logo,
html[data-theme="sombre"] .logo-media,
html[data-theme="sombre"] .entete-media__logo { background: #FFFFFF; color: #111111; }
html[data-theme="sombre"] .site-pied { background: #0A0A0B; border-top: 1.5px solid #2A2C30; }
html[data-theme="sombre"] .texte { color: #DEDFE2; }
html[data-theme="sombre"] .texte img { filter: brightness(0.92); }

/* =========================================================
   Téléphone : le menu passe en bas de l'écran (inc/onglets.php, assets/onglets.js)
   Même style que le menu du haut : les mots, et la pilule verte sur la page en cours.
   La pilule est liquide : deux gouttes vertes fondues ensemble par un filtre, chacune tenue par un ressort
   (assets/onglets.js) : la pilule suit vite et s'étire selon sa vitesse, la petite goutte traîne derrière.
   ========================================================= */
.onglets { display: none; }
.onglets__filtre { position: absolute; width: 0; height: 0; }
@media (max-width: 700px) {
	.barre > nav { display: none; } /* le menu du haut laisse la place au menu du bas */
	.theme-choix--barre { margin-left: auto; }
	body:not(.accueil-fixe) { padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
	.onglets {
		--x: 0px; --cellule: 0px;
		position: fixed;
		left: 12px;
		right: 12px;
		bottom: calc(14px + env(safe-area-inset-bottom, 0px));
		z-index: 65;
		display: block;
		padding: 6px;
		background: var(--blanc);
		border: var(--trait);
		border-radius: 999px;
		box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
		touch-action: none;
		-webkit-user-select: none;
		user-select: none;
		-webkit-tap-highlight-color: transparent;
	}
	.onglets__liste { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
	.onglets__lien { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 6px; overflow: hidden; border-radius: 999px; font-family: var(--ui); font-size: 15.5px; font-weight: 500; white-space: nowrap; text-overflow: ellipsis; color: var(--noir); text-decoration: none; transition: color 0.25s; }
	.onglets__lien.sous-pilule { color: #111111; }
	/* Cinq rubriques ou plus : un texte un peu plus petit pour que les mots tiennent en entier. */
	.onglets[data-n="5"] .onglets__lien { padding: 0 3px; font-size: 14px; }
	.onglets:not([data-n="1"]):not([data-n="2"]):not([data-n="3"]):not([data-n="4"]):not([data-n="5"]) .onglets__lien { padding: 0 2px; font-size: 12.5px; }
	/* Les gouttes : le filtre « liquide » les fond ensemble quand elles se touchent. */
	.onglets__liquide { position: absolute; left: 6px; right: 6px; top: 6px; bottom: 6px; z-index: 0; overflow: hidden; border-radius: 999px; filter: url(#rb-liquide); pointer-events: none; } /* la pilule reste dans la barre, même quand elle rebondit */
	.onglets__goutte { position: absolute; left: 0; top: 0; width: var(--cellule); height: 100%; border-radius: 999px; background: var(--vert); transform-origin: 50% 50%; will-change: transform; }
	.onglets__goutte--traine { left: calc(var(--cellule) * 0.08); top: 12%; width: calc(var(--cellule) * 0.84); height: 76%; }
	.onglets.sans-actif .onglets__liquide { opacity: 0; }
	.onglets.est-pret .onglets__liquide { transition: opacity 0.2s; }
	/* Ce qui était posé en bas de l'écran remonte au-dessus du menu. */
	.fusee-haut { bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
	body .rb-bandeau-edition { bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 360px) {
	.onglets[data-n="5"] .onglets__lien { padding: 0 1px; font-size: 12.5px; letter-spacing: -0.02em; }
}

/* =========================================================
   9. Petits écrans et réglages d'accessibilité
   ========================================================= */
@media (max-width: 600px) {
	.barre > nav { order: 3; flex-basis: 100%; margin-left: 0; }
	.theme-choix--barre { order: 2; margin-left: auto; }
	.site-principal { padding: 32px 16px 64px; }
	.site-entete { padding: 12px 12px 0; }
	.marque__nom { font-size: 19px; }
	.menu { font-size: 15.5px; }
	.menu a { padding: 7px 11px; }
	.ligne { grid-template-columns: 1fr; }
	.texte { font-size: 18px; text-align: left; }
	.texte .alignright, .texte .alignleft { float: none; max-width: 100%; margin: 1.15em 0 0; }
	.travail { padding: 20px; gap: 24px; }
	.couverture { flex-basis: 100%; height: auto; min-height: 180px; transform: none; }
	.travail:nth-child(even) .couverture { transform: none; }
	.couverture--image { flex-basis: auto; width: min(220px, 70%); height: auto; min-height: 0; aspect-ratio: 190 / 260; }
}

/* Très petits téléphones : le nom, l'apparence et les quatre rubriques tiennent sur deux lignes. */
@media (max-width: 380px) {
	.site-entete { padding: 8px 8px 0; }
	.barre { gap: 10px 12px; padding: 8px; }
	.marque { gap: 10px; }
	.marque .monogramme { width: 38px; height: 38px; font-size: 17px; }
	.marque__nom { font-size: 17px; }
	.theme-choix__bouton { width: 28px; height: 28px; }
	.theme-choix__bouton .icone { width: 16px; height: 16px; }
	.menu { gap: 2px; font-size: 14.5px; }
	.menu a { padding: 6px 7px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.carte, .carte__image img, .carte__image--vide .icone, .logo-media, .medias__logo, .couverture, .lateral { transition: none; }
	.site-pied .reseau { transition: none; }
	.note-bulle, .panneau-note, .panneau-note.ouvert { transition: none; }
	.texte blockquote, .texte blockquote::before, .texte blockquote::after, .texte blockquote > p, .texte blockquote > cite { animation: none !important; transition: none !important; }
}

/* =========================================================
   « À lire aussi » (bas des articles et des travaux)
   ========================================================= */
.a-lire { max-width: 1140px; margin: 72px auto 0; }
.a-lire__tete { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-bottom: 28px; }
.a-lire__titre { margin: 0; font-weight: 800; font-size: clamp(28px, 4vw, 38px); line-height: 1.1; }
@media print { .a-lire { display: none; } }

/* =========================================================
   Effets de défilement (assets/defilement.js)
   ========================================================= */
/* Le fond à pois (assets/pois.js) : dessiné sur une toile fixe, il défile un peu moins vite que la page
   et s'écarte autour de la souris. Sans JavaScript, les pois fixes du fond de la page restent. */
body.pois-anime { background-image: none; }
.fond-pois { position: fixed; left: 0; top: 0; z-index: -1; display: block; pointer-events: none; }
/* Le gazon ras, choisi page par page (inc/fonds.php), dessiné par assets/herbe.js */
body[class*="fond-herbe"] { background-image: none; }
.fond-herbe { position: fixed; left: 0; top: 0; z-index: -1; display: block; pointer-events: none; }
/* Gazon sur tout le fond : les pages de liste et « À lire aussi » sont posées sur une feuille, pour rester lisibles */
.fond-herbe-plein .site-principal > .conteneur:not(:has(> .feuille)),
.fond-herbe-plein .a-lire { background: var(--page); border: var(--trait); border-radius: 16px; padding: clamp(20px, 4vw, 48px); }
.fond-herbe-plein .a-lire { max-width: 1140px; margin-left: auto; margin-right: auto; }

/* Mémoires : le numéro de la partie, en grand, en filigrane */
.memoire__feuille { position: relative; overflow: hidden; }
.memoire__feuille > *:not(.filigranes) { position: relative; z-index: 1; }
.filigranes { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.filigrane-num {
	position: absolute;
	right: 14px;
	font-family: var(--titre);
	font-weight: 800;
	font-size: 230px;
	line-height: 0.8;
	color: transparent;
	-webkit-text-stroke: 2px var(--vert);
	opacity: 0.35;
	will-change: transform;
	user-select: none;
}

/* Articles : le texte et les notes de la feuille (le grand picto de la catégorie a été retiré en 2.34.2). */
.feuille__corps { position: relative; }
.feuille__corps > * { position: relative; z-index: 1; }
html[data-theme="sombre"] .filigrane-num { opacity: 0.28; }

@media (max-width: 700px) {
	.filigrane-num { font-size: 130px; right: 6px; -webkit-text-stroke-width: 1.5px; }
}
@media print {
	.fond-pois, .fond-herbe, .filigranes { display: none; }
}

/* =========================================================
   Page Contact : minimaliste, un cercle qui copie l'adresse
   ========================================================= */
.contact-minimal {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 44px;
	padding: 64px 24px 96px;
	text-align: center;
}
.contact-minimal__titre { margin: 0; font-family: var(--titre); font-weight: 800; font-size: clamp(44px, 6vw, 64px); line-height: 1; }
.contact-minimal__point { color: var(--vert); }
/* Le sujet choisi sur la page Webdesign, rappelé sous le titre. */
.contact-minimal__sujet { margin: -26px 0 0; font-family: var(--ui); font-size: 16px; color: var(--gris-texte); }
.contact-minimal__sujet strong { display: inline-block; margin-left: 4px; padding: 3px 12px; border-radius: 999px; background: var(--vert); color: #111111; font-weight: 700; }

.cercle-bouton {
	display: flex; flex-direction: column; align-items: center; gap: 16px;
	padding: 8px 16px;
	border: 0; background: none; color: var(--noir);
	font: inherit; cursor: pointer;
}
.cercle-bouton:focus-visible { outline: 2px solid var(--vert); outline-offset: 6px; border-radius: 16px; }
.cercle {
	position: relative; isolation: isolate;
	display: flex; align-items: center; justify-content: center;
	width: 140px; height: 140px;
	border: 2px solid currentColor; border-radius: 50%;
	overflow: hidden;
}
/* Le liquide : un grand carré aux coins très arrondis qui tourne ; son bord fait une vague en montant. */
.cercle__liquide {
	position: absolute; left: -50%; top: 115%; z-index: -1;
	width: 200%; height: 200%;
	border-radius: 42%;
	background: var(--vert);
	animation: cercle-tourne 7s linear infinite;
	transition: top 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.cercle-bouton:hover .cercle__liquide, .cercle-bouton:focus-visible .cercle__liquide { top: -8%; }
.cercle-bouton.copie .cercle__liquide { top: -70%; }
.cercle__arobase {
	font-family: var(--titre); font-weight: 800; font-size: 56px; line-height: 1;
	padding-bottom: 6px;
	transition: color 0.4s, opacity 0.25s, transform 0.3s;
}
.cercle-bouton:hover .cercle__arobase, .cercle-bouton:focus-visible .cercle__arobase, .cercle-bouton.copie .cercle__arobase { color: #111111; }
.cercle-bouton.copie .cercle__arobase { opacity: 0; transform: scale(0.6); }
.cercle__coche { position: absolute; inset: 0; margin: auto; pointer-events: none; }
.cercle__coche path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.cercle-bouton.copie .cercle__coche path { stroke-dashoffset: 0; transition: stroke-dashoffset 0.4s ease 0.35s; }
.cercle-bouton__label { font-family: var(--ui); font-weight: 500; font-size: 20px; }
.cercle-bouton__adresse { font-family: var(--ui); font-size: 16px; color: var(--gris-texte); opacity: 0; transition: opacity 0.25s; }
.cercle-bouton.copie .cercle-bouton__adresse, .cercle-bouton.montre .cercle-bouton__adresse { opacity: 1; transition-delay: 0.4s; }
@keyframes cercle-tourne { to { transform: rotate(360deg); } }

.contact-minimal__liens { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; margin: 0; font-family: var(--ui); font-size: 16px; }
.contact-minimal__liens a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; color: var(--noir); text-decoration: none; opacity: 0.75; transition: opacity 0.2s; }
.contact-minimal__liens a:hover, .contact-minimal__liens a:focus-visible { opacity: 1; text-decoration: underline; text-decoration-color: var(--vert); text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* =========================================================
   Page Mentions légales : quelques animations discrètes
   ========================================================= */
.mentions__titre { margin: 0; }

/* Le petit tampon « Vu » à côté des titres */
.tampon {
	display: inline-block;
	margin-left: 12px;
	padding: 1px 8px;
	border: 2px solid #0A9E6A;
	border-radius: 5px;
	color: #0A9E6A;
	font-family: var(--sc);
	font-weight: 700;
	font-size: 12px;
	letter-spacing: 0.1em;
	line-height: 1.4;
	vertical-align: middle;
	white-space: nowrap;
	opacity: 0;
	transform: rotate(var(--angle, -5deg));
	transition: opacity 0.8s ease;
	pointer-events: none;
	user-select: none;
}
.tamponne .tampon { opacity: 0.7; }
html[data-theme="sombre"] .tampon { color: #16DB92; border-color: #16DB92; }

/* La barre de lecture, tout en haut de l'écran */
.mentions__progression { position: fixed; top: 0; left: 0; right: 0; z-index: 60; height: 3px; margin: 0; pointer-events: none; }
.mentions__progression span { display: block; height: 100%; background: var(--vert); transform: scaleX(0); transform-origin: left; }

@media (prefers-reduced-motion: reduce) {
	.cercle__liquide { animation: none; transition: none; }
	.tampon { transition: none; }
}
@media print {
	.mentions__progression, .tampon { display: none; }
}

/* =========================================================
   Page Webdesign (page-webdesign.php) : les sites réalisés en « vitrines »
   ========================================================= */
.webdesign__contact { white-space: nowrap; }
.vitrines { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: 0; padding: 0; list-style: none; }
.vitrine__lien { display: flex; flex-direction: column; height: 100%; background: var(--blanc); border: var(--trait); border-radius: 12px; overflow: hidden; color: var(--noir); text-decoration: none; }
a.vitrine__lien:hover, a.vitrine__lien:focus-visible { box-shadow: 0 0 0 3px var(--vert); }
.vitrine__fenetre { display: block; border-bottom: var(--trait); }
.vitrine__barre { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--gris); border-bottom: var(--trait); }
.vitrine__ronds { display: flex; gap: 5px; }
.vitrine__ronds i { display: block; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--noir); }
.vitrine__adresse { flex: 1; min-width: 0; padding: 4px 10px; border-radius: 999px; background: var(--blanc); border: 1px solid var(--gris-ligne); font-family: var(--ui); font-size: 13px; color: var(--gris-texte); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vitrine__apercu { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 10; overflow: hidden; background: var(--gris); }
.vitrine--nuit .vitrine__apercu { background: #0B1026; }
.vitrine__apercu img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.vitrine__sans { padding: 20px; font-family: var(--titre); font-weight: 800; font-size: 26px; color: var(--gris-texte); text-align: center; }
.vitrine--nuit .vitrine__sans { color: #B9C3E6; }
.vitrine__infos { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 22px 24px 24px; }
.vitrine__etiquettes { display: flex; flex-wrap: wrap; gap: 6px; }
.vitrine__genre { padding: 3px 10px; border: 1.5px solid #111111; border-radius: 999px; background: var(--vert); color: #111111; font-family: var(--sc); font-weight: 700; font-size: 13px; letter-spacing: 0.06em; }
.vitrine__meta { font-family: var(--ui); font-size: 14px; color: var(--gris-texte); }
.vitrine__type { align-self: flex-start; padding: 3px 10px; border: var(--trait); border-radius: 999px; font-family: var(--sc); font-weight: 700; font-size: 13px; letter-spacing: 0.06em; }
.vitrine__nom { margin-top: 2px; font-family: var(--titre); font-weight: 800; font-size: 28px; line-height: 1.1; }
.vitrine__texte { font-size: 17px; line-height: 1.5; color: var(--texte-intro); }
.vitrine__voir { margin-top: auto; padding-top: 6px; font-family: var(--ui); font-weight: 700; font-size: 15px; text-decoration: underline; text-decoration-color: var(--vert); text-decoration-thickness: 2px; text-underline-offset: 5px; }
/* =========================================================
   Page Webdesign : tes textes et les blocs du thème, dans l'ordre de l'éditeur (inc/blocs-webdesign.php).
   Rien ne bouge au survol : seul le contour devient vert.
   ========================================================= */
.webdesign__entete { margin-bottom: 40px; }
.webdesign__haut { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
.webdesign .webdesign__bloc + .webdesign__bloc { margin-top: 64px; }
.webdesign__bloc > .modifier-texte { margin-top: 14px; }
/* Tes textes : la feuille blanche des introductions, un peu plus large. */
.webdesign__texte.intro { max-width: 820px; margin: 0; }
.webdesign__texte h2 { font-family: var(--titre); font-weight: 900; font-size: clamp(28px, 3.4vw, 36px); line-height: 1.1; color: var(--noir); text-wrap: balance; }
.webdesign__texte h3 { font-family: var(--titre); font-weight: 800; font-size: 24px; line-height: 1.2; color: var(--noir); }
.webdesign__texte * + h2, .webdesign__texte * + h3 { margin-top: 1.2em; }
.webdesign__texte img { max-width: 100%; height: auto; border-radius: 8px; }
.webdesign__texte figure { margin-left: 0; margin-right: 0; }
.webdesign__texte figcaption { margin-top: 6px; font-family: var(--ui); font-size: 14px; color: var(--gris-texte); }
.webdesign__texte blockquote { margin-left: 0; padding-left: 18px; border-left: 3px solid var(--vert); font-style: italic; }
.webdesign__texte ul, .webdesign__texte ol { padding-left: 1.3em; }
/* L'encadré « La place de l'IA » : la boîte grise des en-têtes, plus large. */
.webdesign__ia { max-width: 820px; }
.webdesign__ia .encart__titre { font-size: 18px; }
/* Le titre des sections du thème : « Comment je travaille. », « On en parle ? » */
.titre-section { margin: 0 0 24px; font-family: var(--titre); font-weight: 900; font-size: clamp(32px, 4.2vw, 48px); line-height: 1; letter-spacing: -0.01em; text-wrap: balance; }
/* Comment je travaille : les étapes numérotées. */
.etapes__liste { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.etape { display: flex; flex-direction: column; gap: 12px; padding: 24px; background: var(--blanc); border: var(--trait); border-radius: 14px; }
.etape__num { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; box-sizing: border-box; border: 2px solid var(--gris-ligne); border-radius: 50%; font-family: var(--titre); font-weight: 900; font-size: 22px; }
.etape:first-child .etape__num { background: var(--vert); border-color: var(--vert); color: #111111; }
.etape:nth-child(2) .etape__num { border-color: var(--vert); }
.etape__titre { margin: 0; font-family: var(--titre); font-weight: 800; font-size: 24px; line-height: 1.15; }
.etape__texte { margin: 0; font-size: 17px; line-height: 1.55; color: var(--texte-intro); }
.etape__texte a { color: var(--noir); text-decoration-color: var(--vert); text-decoration-thickness: 2px; text-underline-offset: 4px; }
/* On en parle ? : les trois portes vers la page Contact. */
.portes__intro { max-width: 640px; margin: -10px 0 28px; font-size: 18px; line-height: 1.5; color: var(--gris-texte); }
.portes__liste { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.portes__liste > li { display: flex; }
.porte { display: flex; flex: 1; flex-direction: column; gap: 14px; padding: 26px; background: var(--blanc); border: var(--trait); border-radius: 16px; color: var(--noir); text-decoration: none; transition: border-color 0.2s, box-shadow 0.2s; }
.porte:hover, .porte:focus-visible { outline: none; border-color: var(--vert); box-shadow: 0 0 0 3px var(--vert); }
.porte__icone { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--gris); color: var(--noir); }
.portes__liste > li:first-child .porte__icone { background: var(--vert); color: #111111; }
.porte__titre { font-family: var(--titre); font-weight: 800; font-size: 26px; line-height: 1.1; }
.porte__texte { font-size: 16px; line-height: 1.5; color: var(--gris-texte); }
.porte__bouton { margin-top: auto; padding-top: 4px; font-family: var(--ui); font-weight: 700; font-size: 16px; text-decoration: underline; text-decoration-color: var(--vert); text-decoration-thickness: 2px; text-underline-offset: 5px; }
@media (prefers-reduced-motion: reduce) { .porte { transition: none; } }
@media (max-width: 1000px) {
	.vitrines { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.portes__liste { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
	.webdesign__haut { grid-template-columns: minmax(0, 1fr); }
	.webdesign__contact { justify-self: start; }
	.vitrines { grid-template-columns: minmax(0, 1fr); }
	.webdesign .webdesign__bloc + .webdesign__bloc { margin-top: 48px; }
	.porte { padding: 22px; }
}

/* =========================================================
   Le texte écrit dans les pages (présentation À propos, introductions de Presse, Robin Débat, Webdesign,
   descriptions des catégories) : posé sur une feuille blanche, trait fin, coins arrondis.
   Le fond est plein : les points gris de la page ne passent pas dessous.
   ========================================================= */
.intro,
.apropos__presentation {
	position: relative;
	z-index: 1;
	box-sizing: border-box;
	padding: 24px 30px 26px;
	background: var(--blanc);
	border: var(--trait);
	border-radius: 12px;
}
.intro { max-width: 720px; margin: 0 0 40px; }
@media (max-width: 600px) {
	.intro, .apropos__presentation { padding: 18px 20px 20px; }
}

/* =========================================================
   Page introuvable (404.php) : le chat du mini-jeu traverse la feuille, puis s'assoit à côté du bouton.
   ========================================================= */
.introuvable__piste { position: relative; display: flex; align-items: center; gap: 18px; margin: 0 -10px; padding: 18px 10px 6px; overflow: hidden; }
.introuvable__piste .bouton { position: relative; z-index: 2; } /* le chat passe derrière le bouton */
.chat-404 { position: relative; z-index: 1; flex: none; width: 60px; height: 70px; color: var(--noir); }
.chat-404__corps { position: absolute; top: 0; left: 0; display: block; width: 60px; height: 60px; }
.chat-404 svg { display: block; overflow: visible; }
.chat-404__plein { fill: var(--blanc); stroke: currentColor; stroke-width: 2.4; stroke-linejoin: round; }
.chat-404__vert { fill: var(--vert); }
.chat-404__yeux { fill: currentColor; }
.chat-404__trait { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.chat-404__trait--fin { stroke-width: 1.3; }
.chat-404__ombre { position: absolute; bottom: 1px; left: 50%; width: 34px; height: 6px; margin-left: -17px; border-radius: 50%; background: rgba(17, 17, 17, 0.14); }
html[data-theme="sombre"] .chat-404__ombre { background: rgba(0, 0, 0, 0.45); }
/* Avant que le script le lance, le chat attend hors de la vue (sans JavaScript, il est déjà assis). */
html:not(.no-js) .chat-404:not(.court):not(.assis) { visibility: hidden; }
/* Il court : petits bonds, la tête qui penche, l'ombre qui rétrécit en l'air. */
.chat-404.court .chat-404__corps { animation: chat-404-bond 0.26s ease-out infinite alternate; }
.chat-404.court .chat-404__ombre { animation: chat-404-ombre 0.26s ease-out infinite alternate; }
@keyframes chat-404-bond { from { transform: translateY(0) rotate(-4deg); } to { transform: translateY(-8px) rotate(4deg); } }
@keyframes chat-404-ombre { from { transform: scaleX(1); } to { transform: scaleX(0.7); } }
/* Assis : il cligne des yeux et l'oreille droite frémit de temps en temps. */
.chat-404.assis .chat-404__yeux { transform-box: fill-box; transform-origin: center; animation: chat-404-cligne 3.6s infinite; }
.chat-404.assis .chat-404__oreille--droite { transform-box: fill-box; transform-origin: 30% 100%; animation: chat-404-oreille 5s infinite; }
@keyframes chat-404-cligne { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(0.1); } }
@keyframes chat-404-oreille { 0%, 60%, 70%, 100% { transform: rotate(0); } 64% { transform: rotate(-9deg); } 67% { transform: rotate(4deg); } }
@media (prefers-reduced-motion: reduce) {
	.chat-404 .chat-404__corps, .chat-404 .chat-404__ombre, .chat-404 .chat-404__yeux, .chat-404 .chat-404__oreille--droite { animation: none; }
}

/* ------------------------------------------------------------------
 * Dossiers thématiques (inc/dossiers.php, taxonomy-dossier.php)
 * ------------------------------------------------------------------ */

/* Le grand bloc au milieu de la grille de la page Presse */
.dossier-une {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	align-items: center;
	gap: 32px;
	padding: 32px 36px;
	background: var(--gris);
	border: var(--trait);
	border-radius: 8px;
	color: var(--noir);
	text-decoration: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.dossier-une:hover, .dossier-une:focus-visible { border-color: var(--vert); box-shadow: 0 0 0 3px var(--vert); outline: none; }
.dossier-une__texte { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.dossier-une__etiquette {
	align-self: flex-start;
	padding: 3px 12px;
	border-radius: 999px;
	background: var(--vert);
	color: #111111;
	font-family: var(--sc);
	font-weight: 700;
	font-size: 14px;
	letter-spacing: 0.08em;
}
.dossier-une__titre { font-family: var(--titre); font-weight: 900; font-size: clamp(30px, 4vw, 46px); line-height: 1.05; }
.dossier-une__intro { font-family: var(--ui); font-size: 17px; line-height: 1.5; color: var(--gris-texte); }
.dossier-une__bas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 6px; font-family: var(--ui); }
.dossier-une__nombre { font-size: 15px; color: var(--gris-texte); }
.dossier-une__ouvrir { padding: 8px 16px; border: var(--trait); border-radius: 999px; background: var(--blanc); font-weight: 700; font-size: 16px; }
.dossier-une:hover .dossier-une__ouvrir, .dossier-une:focus-visible .dossier-une__ouvrir { background: var(--vert); border-color: var(--vert); color: #111111; }

/* À droite : l'image du dossier, ou les photos des derniers articles posées en éventail (fixe) */
.dossier-une__images { position: relative; height: 230px; }
.dossier-une__image, .dossier-une__photo { position: absolute; overflow: hidden; border: var(--trait); border-radius: 8px; background: var(--blanc); }
.dossier-une__image { inset: 0; }
.dossier-une__image img, .dossier-une__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dossier-une__photo { width: 58%; height: 78%; }
.dossier-une__photo--1 { left: 0; top: 14%; transform: rotate(-5deg); z-index: 1; }
.dossier-une__photo--2 { left: 21%; top: 4%; transform: rotate(1.5deg); z-index: 2; }
.dossier-une__photo--3 { right: 0; top: 16%; transform: rotate(6deg); z-index: 3; }
.dossier-une__vide { position: absolute; inset: 0; display: grid; place-items: center; border: 1.5px dashed var(--gris-texte); border-radius: 8px; color: var(--gris-texte); }

@media (max-width: 760px) {
	.dossier-une { grid-template-columns: 1fr; padding: 24px 20px; gap: 22px; }
	.dossier-une__images { order: -1; height: 170px; }
}

/* La page du dossier */
.entete-dossier { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: center; margin: 28px 0 40px; padding-bottom: 32px; border-bottom: var(--trait); }
.entete-dossier--image { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.entete-dossier__etiquette { display: inline-block; margin: 0 0 12px; padding: 3px 12px; border-radius: 999px; background: var(--vert); color: #111111; font-family: var(--sc); font-weight: 700; font-size: 14px; letter-spacing: 0.08em; }
.entete-dossier h1 { margin: 0; font-family: var(--titre); font-weight: 900; font-size: clamp(38px, 6vw, 64px); line-height: 1.02; }
.entete-dossier__intro { max-width: 680px; margin-top: 16px; font-family: var(--ui); font-size: 18px; line-height: 1.55; }
.entete-dossier__intro p { margin: 0 0 10px; }
.entete-dossier__compte { margin: 14px 0 0; font-family: var(--ui); font-size: 15px; color: var(--gris-texte); }
.entete-dossier__image { overflow: hidden; border: var(--trait); border-radius: 8px; aspect-ratio: 4 / 3; }
.entete-dossier__image img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) { .entete-dossier--image { grid-template-columns: 1fr; } .entete-dossier__image { order: -1; } }

/* En fin d'article, sous la signature : la « couverture » du dossier (inc/dossiers.php) */
.dossier-couverture { align-self: stretch; margin-top: 18px; padding: 30px 32px 32px; border-radius: 10px; background: #111111; color: #FFFFFF; text-align: left; font-family: var(--ui); }
html[data-theme="sombre"] .dossier-couverture { background: #0A0A0B; border: 1.5px solid #5E6168; }
.dossier-couverture__haut { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 24px; }
.dossier-couverture__texte { flex: 1 1 300px; min-width: 0; }
.dossier-couverture__etiquette { display: inline-block; padding: 3px 12px; border-radius: 999px; background: var(--vert); color: #111111; font-family: var(--sc); font-weight: 700; font-size: 14px; letter-spacing: 0.08em; }
.dossier-couverture__titre { margin: 12px 0 0; font-family: var(--titre); font-weight: 900; font-size: clamp(32px, 4vw, 40px); line-height: 1.02; }
.dossier-couverture__titre a { color: #FFFFFF; text-decoration: none; }
.dossier-couverture__titre a:hover, .dossier-couverture__titre a:focus-visible { background-color: rgba(22, 219, 146, 0.3); }
.dossier-couverture__intro { margin: 10px 0 0; max-width: 420px; font-size: 16px; line-height: 1.45; color: #C9CBD0; }
.dossier-couverture__bouton { display: inline-flex; align-items: center; gap: 6px; min-height: 46px; padding: 0 20px; border-radius: 999px; background: var(--vert); color: #111111; font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap; }
.dossier-couverture__bouton:hover, .dossier-couverture__bouton:focus-visible { background: #FFFFFF; color: #111111; }
.dossier-couverture__sous { margin: 26px 0 12px; padding-top: 18px; border-top: 1px solid #3A3C42; font-family: var(--sc); font-weight: 700; font-size: 14px; letter-spacing: 0.08em; color: #A9ACB2; }
.dossier-couverture__articles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.dossier-couverture__article { display: flex; flex-direction: column; gap: 8px; color: #FFFFFF; text-decoration: none; }
.dossier-couverture__photo { display: grid; place-items: center; overflow: hidden; aspect-ratio: 16 / 10; border: 1.5px solid #3A3C42; border-radius: 6px; background: #26282C; color: #A9ACB2; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.dossier-couverture__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dossier-couverture__article:hover .dossier-couverture__photo, .dossier-couverture__article:focus-visible .dossier-couverture__photo { border-color: var(--vert); box-shadow: 0 0 0 2px var(--vert); }
.dossier-couverture__article-titre { font-family: var(--titre); font-weight: 700; font-size: 16px; line-height: 1.3; }
.dossier-couverture__article:hover .dossier-couverture__article-titre { text-decoration: underline; text-decoration-color: var(--vert); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.dossier-couverture__date { font-size: 13px; color: #A9ACB2; }
.dossier-couverture .modifier-texte { margin-top: 10px; }
@media (max-width: 640px) {
	.dossier-couverture { padding: 24px 20px; }
	.dossier-couverture__articles { grid-template-columns: minmax(0, 1fr); }
	.dossier-couverture__article { display: grid; grid-template-columns: 96px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 14px; row-gap: 4px; align-items: start; }
	.dossier-couverture__photo { grid-row: 1 / 3; }
}

/* « Voir les autres dossiers thématiques », sous le bloc Dossier de la page Presse */
.dossier-une__autres { grid-column: 1 / -1; margin: -18px 0 0; text-align: right; font-family: var(--ui); font-size: 16px; }
.dossier-une__autres a { color: var(--noir); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.dossier-une__autres a:hover, .dossier-une__autres a:focus-visible { background-color: rgba(22, 219, 146, 0.2); }
html[data-theme="sombre"] .dossier-une__autres a:hover, html[data-theme="sombre"] .dossier-une__autres a:focus-visible { background-color: rgba(22, 219, 146, 0.18); }

/* La liste de tous les dossiers (liste-dossiers.php) */
.liste-dossiers__titre { margin-top: 28px; }
.liste-dossiers { display: grid; gap: 28px; }

/* La légende de la photo d'un article (single.php) :
   sur ordinateur (souris), elle apparaît au survol, en haut à gauche de la photo ;
   sur téléphone et tablette, elle reste en fin d'article. */
.feuille__image { position: relative; }
.feuille__image-legende { display: none; }
@media (hover: hover) and (pointer: fine) {
	.feuille__image-legende {
		display: block;
		position: absolute;
		top: 16px;
		left: 16px;
		max-width: min(70%, 520px);
		padding: 7px 12px;
		border-radius: 6px;
		background: rgba(17, 17, 17, 0.82);
		color: #FFFFFF;
		font-family: var(--ui);
		font-style: italic;
		font-size: 14px;
		line-height: 1.4;
		opacity: 0;
		transition: opacity 0.2s ease;
	}
	.feuille__image-legende a { color: inherit; }
	.feuille__image:hover .feuille__image-legende { opacity: 1; }
	.feuille--article .fin-article .feuille__legende { display: none; }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: reduce) {
	.feuille__image-legende { transition: none; }
}
.dossier-retours { margin-top: 0; }
