/*
 * Design Maroc : feuille de style du thème.
 *
 * Charte : le logo aux trois bulles, et une couleur pour chaque rôle.
 *   cyan   = publications
 *   ambre  = créateurs et annuaire
 *   menthe = événements et rendez-vous
 *   encre  = texte, et bouton de lecture des contenus avec vidéo
 * Les trois formats reprennent ainsi les trois bulles du logo.
 * Le cyan, la menthe et l'ambre ne servent jamais de couleur de texte :
 * leur contraste est insuffisant sur fond clair.
 */

/* 0. Polices hébergées sur le site (licence SIL Open Font License, voir assets/fonts)
   Polices variables : un fichier couvre toutes les graisses. Les fichiers « latin-ext »
   ne sont chargés que pour les lettres qui en ont besoin (noms africains, par exemple).
   -------------------------------------------------------------------------- */

@font-face {
	font-family: "Bricolage Grotesque";
	font-style: normal;
	font-weight: 300 800;
	font-display: swap;
	src: url("../fonts/bricolage-normal-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Bricolage Grotesque";
	font-style: normal;
	font-weight: 300 800;
	font-display: swap;
	src: url("../fonts/bricolage-normal-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Instrument Sans";
	font-style: italic;
	font-weight: 400 700;
	font-display: swap;
	src: url("../fonts/instrument-sans-italique-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Instrument Sans";
	font-style: italic;
	font-weight: 400 700;
	font-display: swap;
	src: url("../fonts/instrument-sans-italique-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Instrument Sans";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("../fonts/instrument-sans-normal-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Instrument Sans";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("../fonts/instrument-sans-normal-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 1. Variables de la charte
   -------------------------------------------------------------------------- */

:root {
	--dm-cyan: #00c9ff;
	--dm-menthe: #00e7b4;
	--dm-ambre: #ffb600;
	--dm-encre: #333333;
	--dm-gris: #5b6770;
	--dm-fond: #ece7df;
	--dm-blanc: #fff;
	--dm-filet: #d9d3c8;

	--dm-police-titres: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
	--dm-police-texte: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--dm-police-regard: var(--dm-police-texte);
	--dm-police-source: var(--dm-police-texte);

	/* Les arrondis : tout suit --arrondi (niveau choisi le 24/11/2026 ; 1 : très souple, 0 : droit). */
	--arrondi: 0.6;
	--dm-rayon: calc(28px * var(--arrondi)); /* Tuiles, cartes, capsule du jour : 17 px. */
	--dm-rayon-image: max(4px, calc(var(--dm-rayon) - 7px)); /* L'image est posée dans la carte, à 8 px du bord. */
	--dm-rayon-bloc: calc(22px * var(--arrondi)); /* Tuiles du menu, blocs d'une page. */
	--dm-rayon-dedans: max(4px, calc(var(--dm-rayon-bloc) - 8px)); /* Ce qui est posé dans un bloc. */
	--dm-rayon-bouton: calc(18px * var(--arrondi));
	--dm-rayon-menu: calc(34px * var(--arrondi));
	--dm-capsule: 12px; /* Étiquettes, boutons, champs. */
	--dm-bulle: 24px; /* Menu du téléphone. */
	--dm-ecart: 16px;
	--dm-courbe: cubic-bezier(0.2, 0.8, 0.2, 1);
	--dm-souple: cubic-bezier(0.33, 0, 0.2, 1); /* Départ et arrivée en douceur : la tuile qui se soulève au survol. */
	--dm-largeur-page: 104rem; /* La grille d'un article, et toute page qui suit son cadre. */
	--dm-largeur: 74rem; /* Une page à lire : la largeur des articles en texte. */
	--dm-largeur-texte: 46rem;
	--dm-marge: clamp(1rem, 4vw, 2rem);
	/* Le cadre commun des pages (26/11/2026) : la distance au menu de l'accueil et des articles, partout. */
	--cadre-haut: 14px;
	--cadre-gauche: 14px;
	--cadre-droite: 14px;
	--dm-ombre: 0 22px 44px rgb(70 60 40 / 0.16);

	/* Menu latéral : fond sombre (choix du 24/11/2026). */
	--menu-ouvert: 288px;
	--menu-reduit: 72px;
	--menu-marge: 12px;
	--gouttiere: 56px; /* Entre le menu et les tuiles : la ligne du temps y passe. */
	--ligne: 28px; /* De la ligne du temps aux tuiles. */
	--menu-fond: var(--dm-encre);
	--menu-texte: var(--dm-blanc);
	--menu-doux: #d5d5d0;
	--menu-tuile: #4a4a4a;
	--menu-tuile-survol: #5c5c5c;
	--menu-date: var(--dm-blanc);
	--menu-date-texte: var(--dm-encre);
}

/* 2. Base
   -------------------------------------------------------------------------- */

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

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

body {
	margin: 0;
	background: var(--dm-fond);
	color: var(--dm-encre);
	font-family: var(--dm-police-texte);
	font-size: 1.0625rem; /* 17 px */
	line-height: 1.65;
}

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

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

a:hover {
	text-decoration-thickness: 2px;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.5em;
	font-family: var(--dm-police-titres);
	font-weight: 700;
	line-height: 1.2;
}

@media (min-width: 48rem) {
	:root {
		--cadre-haut: 18px;
		--cadre-gauche: var(--gouttiere);
		--cadre-droite: 20px;
	}
}

/* Une page dans le cadre commun : elle commence là où commencent l'accueil et les articles, et s'arrête où s'arrête la grille
   d'un article (26/11/2026). */
.conteneur {
	box-sizing: content-box;
	max-width: var(--dm-largeur-page);
	padding: var(--cadre-haut) var(--cadre-droite) 0 var(--cadre-gauche);
}

/* Un formulaire, un texte : une largeur de lecture. */
.conteneur--lecture {
	max-width: var(--dm-largeur);
}

.conteneur--etroit {
	max-width: var(--dm-largeur-texte);
}

/* Une page de liste : toute la largeur, comme l'accueil (annuaire, 26/11/2026). */
.conteneur--plein {
	max-width: none;
}

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

.lien-evitement {
	position: absolute;
	top: -5rem;
	left: 1rem;
	z-index: 100;
	padding: 0.6rem 1.2rem;
	border-radius: var(--dm-capsule);
	background: var(--dm-encre);
	color: var(--dm-blanc);
	font-weight: 700;
	text-decoration: none;
}

.lien-evitement:focus {
	top: 1rem;
}

.bouton {
	display: inline-block;
	padding: 0.7rem 1.4rem;
	border: 1px solid var(--dm-encre);
	border-radius: var(--dm-capsule);
	background: var(--dm-encre);
	color: var(--dm-blanc);
	font-weight: 700;
	text-decoration: none;
}

.bouton--contour {
	background: transparent;
	color: var(--dm-encre);
}

.bouton--contour:hover {
	background: var(--dm-encre);
	color: var(--dm-blanc);
}

.bouton[aria-busy="true"] {
	opacity: 0.5;
}

/* Posée pendant un calcul : rien ne bouge. */
.dm-fige,
.dm-fige * {
	transition: none !important;
}

/* 3. Pastilles de format : la forme arrondie rappelle les bulles du logo
   -------------------------------------------------------------------------- */

.pastille {
	display: inline-block;
	padding: 0.32rem 0.85rem;
	border-radius: var(--dm-capsule);
	font-size: 0.8rem;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: -0.005em;
}

.pastille--publication {
	background: var(--dm-cyan);
	color: var(--dm-encre);
}

.pastille--createur {
	background: var(--dm-ambre);
	color: var(--dm-encre);
}

.pastille--evenement {
	background: var(--dm-menthe);
	color: var(--dm-encre);
}

.pastille--une {
	background: var(--dm-encre);
	color: var(--dm-blanc);
}

/* 4. Recherche
   -------------------------------------------------------------------------- */

.recherche {
	display: flex;
	align-items: center;
	padding-left: 1rem;
	border: 1px solid var(--dm-filet);
	border-radius: var(--dm-capsule);
	background: var(--dm-fond);
}

.recherche:focus-within {
	outline: 3px solid var(--dm-encre);
	outline-offset: 2px;
}

.recherche input {
	flex: 1;
	min-width: 0;
	padding: 0.55rem 0;
	border: 0;
	background: transparent;
	color: var(--dm-encre);
	font: inherit;
	font-size: 0.95rem;
}

.recherche input:focus {
	outline: none;
}

.recherche button {
	display: flex;
	padding: 0.55rem 0.9rem;
	border: 0;
	background: transparent;
	color: var(--dm-encre);
	cursor: pointer;
}

/* 4 bis. Inscription à la newsletter (menu, tiroir du téléphone, volet)
   -------------------------------------------------------------------------- */

.inscription {
	padding: 15px 14px 14px 16px;
	border-radius: var(--dm-rayon-bloc);
	background: var(--dm-blanc);
	color: var(--dm-encre);
}

.volet .inscription {
	padding: 0;
	border-radius: 0;
	background: none;
}

.volet--tiroir .inscription {
	margin-top: 24px;
	padding: 18px 16px 16px 18px;
	border-radius: calc(24px * var(--arrondi));
	background: var(--dm-fond);
}

.inscription__titre {
	margin: 0;
	font-family: var(--dm-police-titres);
	font-size: 1.02rem;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.015em;
}

.inscription__info {
	margin: 2px 0 0;
	color: var(--dm-gris);
	font-size: 0.8rem;
	line-height: 1.35;
}

.inscription__champ {
	--bouton: var(--dm-blanc);

	display: flex;
	align-items: center;
	margin: 10px 0 0;
	padding: 4px;
	border-radius: var(--dm-capsule);
	background: var(--dm-fond);
}

.volet--tiroir .inscription__champ {
	--bouton: var(--dm-fond);

	background: var(--dm-blanc);
}

.volet--recherche .inscription__champ {
	margin-top: 0;
	padding: 5px;
}

.inscription__champ:focus-within {
	outline: 3px solid var(--dm-encre);
	outline-offset: 1px;
}

.inscription__champ input {
	flex: 1;
	min-width: 0;
	padding: 0.4rem 0.5rem 0.4rem 0.95rem;
	border: 0;
	background: none;
	color: var(--dm-encre);
	font: inherit;
	font-size: 0.95rem;
}

.inscription__champ input:focus {
	outline: none;
}

.inscription__champ input::placeholder {
	color: var(--dm-gris);
	opacity: 1;
}

/* Discret tant que le champ est vide ; il passe à l'encre dès qu'on écrit, pour montrer où cliquer. */
.inscription__champ button {
	display: grid;
	flex: none;
	place-items: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: max(4px, calc(var(--dm-capsule) - 4px));
	background: var(--bouton);
	color: var(--dm-encre);
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.inscription__champ button:hover,
.inscription__champ button:focus-visible,
.inscription__champ:has(input:not(:placeholder-shown)) button {
	background: var(--dm-encre);
	color: var(--dm-blanc);
}

.volet--recherche .inscription__champ button {
	width: 44px;
	height: 44px;
}

.inscription__retour {
	margin: 10px 2px 0;
	font-size: 0.82rem;
	line-height: 1.4;
}

.inscription__retour--erreur {
	font-weight: 700;
}

/* Le champ piège : seuls les robots le remplissent. */
.inscription__piege {
	display: none;
}

/* La page d'un lien de la newsletter. */
.newsletter {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
}

.newsletter p,
.newsletter form {
	margin: 0;
}

.newsletter .bouton {
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

/* 5. Menu latéral : des tuiles quand il est ouvert, des bulles quand il est réduit
   --------------------------------------------------------------------------
   Le conteneur s'appelle « toile » : WordPress pose déjà la classe « page » sur <body>, et le
   décalage du menu s'y appliquait une seconde fois (corrigé le 24/11/2026). */

.menu,
.menu-rideau {
	display: none;
}

.tm {
	position: relative;
	display: flex;
	align-items: stretch;
	min-height: 48px;
	border-radius: var(--dm-rayon-bloc);
	background: var(--menu-tuile);
	color: var(--menu-texte);
	text-decoration: none;
	transition: background-color 0.2s ease;
}

.tm:hover {
	background: var(--menu-tuile-survol);
}

.tm--cyan,
.tm--cyan:hover {
	background: var(--dm-cyan);
	color: var(--dm-encre);
}

.tm--ambre,
.tm--ambre:hover {
	background: var(--dm-ambre);
	color: var(--dm-encre);
}

.tm--menthe,
.tm--menthe:hover {
	background: var(--dm-menthe);
	color: var(--dm-encre);
}

.tm--date,
.tm--date:hover {
	background: var(--menu-date);
	color: var(--menu-date-texte);
}

.tm--blanc,
.tm--blanc:hover {
	background: var(--dm-blanc);
	color: var(--dm-encre);
}

.tm[aria-current] {
	box-shadow: inset 0 0 0 3px var(--menu-texte);
}

.tm--cyan[aria-current],
.tm--ambre[aria-current],
.tm--menthe[aria-current] {
	box-shadow: inset 0 0 0 3px var(--dm-encre);
}

.tm__icone,
.tm__court {
	display: none;
}

.tm__plein {
	display: flex;
	flex: 1;
	align-items: center;
	gap: 12px;
	min-width: 0;
	padding: 11px 16px;
}

.tm__mots {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-width: 0;
}

.tm__nom {
	font-family: var(--dm-police-titres);
	font-size: 1rem;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.01em;
}

.tm__info {
	display: -webkit-box;
	margin-top: 3px;
	overflow: hidden;
	font-size: 0.78rem;
	line-height: 1.35;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.tm__signe {
	display: flex;
	line-height: 0;
}

.tm__fleche {
	font-size: 1.1rem;
	font-weight: 700;
	transition: transform 0.2s ease;
}

.tm:hover .tm__fleche {
	transform: translateX(3px);
}

.tm__plein--date {
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: end;
	gap: 2px 14px;
	padding: 12px 18px 14px;
}

.tm__semaine {
	grid-column: 1 / -1;
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.2;
}

.tm__semaine::first-letter {
	text-transform: uppercase;
}

.tm__numero {
	font-size: 3.6rem;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.04em;
}

.tm__cote {
	display: flex;
	flex-direction: column;
	padding-bottom: 5px;
	font-size: 0.8rem;
	line-height: 1.35;
}

.tm__cote b {
	font-size: 0.98rem;
}

.tm__portraits {
	display: flex;
	margin-top: 10px;
}

.tm__portraits img {
	width: 46px;
	height: 46px;
	margin-right: -11px;
	border: 3px solid var(--dm-blanc);
	border-radius: 50%;
	background: var(--dm-blanc);
	object-fit: cover;
}

@media (min-width: 48rem) {
	.menu {
		position: fixed;
		z-index: 30;
		inset: var(--menu-marge) auto var(--menu-marge) var(--menu-marge);
		display: flex;
		width: var(--menu-reduit);
		border-radius: var(--dm-rayon-menu);
		background: var(--menu-fond);
		color: var(--menu-texte);
		transition: width 0.45s var(--dm-courbe);
	}

	.admin-bar .menu {
		top: calc(32px + var(--menu-marge));
	}

	[data-menu="ouvert"] .menu {
		width: var(--menu-ouvert);
	}

	.menu :focus-visible {
		outline-color: var(--menu-texte);
	}

	.menu__defile {
		display: flex;
		flex: 1;
		flex-direction: column;
		min-width: 0;
		padding: 14px 10px 10px;
		overflow: hidden auto;
		border-radius: inherit;
		scrollbar-width: none;
	}

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

	/* Le contenu garde sa largeur finale pendant que le menu s'ouvre. */
	[data-menu="ouvert"] .menu__defile > * {
		min-width: calc(var(--menu-ouvert) - 20px);
	}

	/* Le logo et la signature, à la place choisie le 24/11/2026. Ne pas les déplacer sans accord. */
	.menu__marque {
		display: block;
		padding: 8px 14px 16px;
		color: inherit;
		text-decoration: none;
	}

	.menu__logo {
		display: block;
		width: 180px;
		height: auto;
	}

	.menu__signature {
		display: block;
		margin-top: 9px;
		color: var(--menu-doux);
		font-size: 0.8rem;
		line-height: 1.35;
		letter-spacing: -0.01em;
	}

	.menu__bulles {
		display: none;
	}

	.menu__newsletter > .tm {
		display: none;
	}

	/* Les lieux : trois bulles égales. */

	.lieux {
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		gap: 8px;
		margin: 0;
		padding: 0;
		list-style: none;
	}

	.lieux .tm__plein {
		flex-direction: column;
		justify-content: center;
		gap: 5px;
		padding: 11px 4px 10px;
	}

	.lieux .tm__mots {
		flex: none;
	}

	.lieux .tm__signe {
		align-items: center;
		justify-content: center;
		height: 32px;
	}

	.lieux .tm__nom {
		font-size: 0.92rem;
	}

	.menu__tuiles {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 8px;
		margin: 0;
		padding: 0;
		list-style: none;
	}

	.menu__tuiles > li {
		grid-column: 1 / -1;
		min-width: 0;
	}

	.menu__tuiles > .menu__demi {
		grid-column: auto;
	}

	.menu__demi .tm__plein {
		justify-content: center;
		gap: 8px;
		padding-inline: 8px;
	}

	.menu__demi .tm__mots {
		flex: none;
	}

	.menu__demi .tm__signe svg {
		width: 20px;
		height: 20px;
	}

	/* Le petit menu du bas, puis le crédit. */

	.menu__bas {
		display: grid;
		grid-auto-flow: column;
		grid-auto-columns: minmax(0, 1fr);
		gap: 4px;
		margin: auto 0 0;
		padding-top: 16px;
	}

	.menu__bas a {
		display: grid;
		justify-items: center;
		align-content: start;
		gap: 6px;
		padding: 10px 4px 9px;
		border-radius: var(--dm-rayon-bouton);
		color: var(--menu-texte);
		font-size: 0.78rem;
		font-weight: 600;
		line-height: 1.2;
		text-align: center;
		text-decoration: none;
		transition: background-color 0.2s ease;
	}

	.menu__bas a:hover,
	.menu__bas a[aria-current] {
		background: var(--menu-tuile);
	}

	/* Le bouton qui ouvre et réduit le menu : une languette de la carte, à mi-hauteur, qui sort du bord droit avec deux arrondis
	   creux (demande du propriétaire, 26/11/2026 ; elle remplace le rond blanc). Elle dépasse de 18 px : la ligne du temps passe à
	   28 px. La zone de clic est plus large que le dessin. */
	.menu__poignee {
		position: absolute;
		z-index: 4;
		top: calc(50% - 40px);
		left: 100%;
		width: 30px;
		height: 80px;
		padding: 0;
		border: 0;
		background: none;
		color: var(--menu-texte);
		cursor: pointer;
	}

	.menu__poignee[hidden] {
		display: none;
	}

	.menu__languette {
		position: absolute;
		top: 10px;
		left: -2px; /* Elle mord dans la carte : aucun fil entre les deux. */
		display: grid;
		place-items: center;
		width: 20px;
		height: 60px;
		padding-left: 2px;
		border-radius: 0 12px 12px 0;
		background: var(--menu-fond);
	}

	/* Les deux arrondis creux qui la raccordent à la carte. */
	.menu__languette::before,
	.menu__languette::after {
		content: "";
		position: absolute;
		left: 2px;
		width: 10px;
		height: 10px;
	}

	.menu__languette::before {
		bottom: 100%;
		background: radial-gradient(circle at 100% 0, transparent 9.5px, var(--menu-fond) 10px);
	}

	.menu__languette::after {
		top: 100%;
		background: radial-gradient(circle at 100% 100%, transparent 9.5px, var(--menu-fond) 10px);
	}

	.menu__languette svg {
		width: 13px;
		height: 13px;
		transition: transform 0.35s var(--dm-courbe), translate 0.25s ease;
	}

	[data-menu="reduit"] .menu__languette svg {
		transform: rotate(180deg);
	}

	/* Au survol, la flèche fait un pas dans le sens du geste. */
	@media (hover: hover) {
		.menu__poignee:hover .menu__languette svg {
			translate: -2px 0;
		}

		[data-menu="reduit"] .menu__poignee:hover .menu__languette svg {
			translate: 2px 0;
		}
	}

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

	.menu__poignee:focus-visible .menu__languette {
		outline: 3px solid var(--dm-encre);
		outline-offset: 2px;
	}

	/* Le curseur relie la tuile de la date à la ligne du temps. */

	.menu__curseur {
		--retrait: 10px;

		position: absolute;
		z-index: 0;
		top: 0;
		left: calc(100% - var(--retrait));
		width: calc(var(--retrait) + var(--gouttiere) - var(--ligne));
		height: 2px;
		margin-top: -1px;
		background: linear-gradient(to right, var(--menu-date) var(--retrait), var(--dm-encre) var(--retrait));
		pointer-events: none;
	}

	.menu__curseur::after {
		content: "";
		position: absolute;
		top: -8px;
		right: -9px;
		width: 18px;
		height: 18px;
		border: 5px solid var(--dm-encre);
		border-radius: 50%;
		background: var(--dm-blanc);
	}

	.menu__curseur[hidden] {
		display: none;
	}

	[data-menu="reduit"] .menu__curseur {
		--retrait: 14px;
	}

	/* Menu réduit : chaque tuile devient une bulle, qui se gonfle au survol. */

	[data-menu="reduit"] .menu__defile {
		align-items: center;
		padding: 16px 14px;
		overflow: visible;
	}

	[data-menu="reduit"] .menu__marque {
		padding: 4px 0 16px;
	}

	[data-menu="reduit"] .menu__signature {
		display: none;
	}

	[data-menu="reduit"] .menu__logo,
	[data-menu="reduit"] .menu__bas,
	[data-menu="reduit"] .menu__newsletter > .inscription {
		display: none;
	}

	[data-menu="reduit"] .menu__newsletter > .tm {
		display: flex;
	}

	[data-menu="reduit"] .lieux {
		grid-template-columns: 44px;
		gap: 10px;
	}

	[data-menu="reduit"] .lieux .tm__nom {
		font-size: 1rem;
	}

	[data-menu="reduit"] .menu__bulles {
		display: block;
		line-height: 0;
	}

	[data-menu="reduit"] .menu__bulles svg {
		width: 30px;
		height: 44px;
	}

	[data-menu="reduit"] .menu__tuiles {
		grid-template-columns: 44px;
		gap: 10px;
	}

	[data-menu="reduit"] .menu__tuiles > li {
		grid-column: auto;
	}

	[data-menu="reduit"] .menu__trait::before {
		content: "";
		display: block;
		width: 28px;
		height: 1px;
		margin: 4px auto 14px;
		background: currentColor;
		opacity: 0.35;
	}

	[data-menu="reduit"] .tm {
		width: 44px;
		height: 44px;
		min-height: 0;
		border-radius: var(--dm-rayon-bloc);
	}

	[data-menu="reduit"] .tm--date {
		height: 52px;
	}

	[data-menu="reduit"] .tm__plein {
		display: none;
	}

	[data-menu="reduit"] .tm__icone {
		position: relative;
		z-index: 2;
		display: grid;
		place-items: center;
		width: 100%;
		line-height: 0;
	}

	[data-menu="reduit"] .tm__icone--date {
		align-content: center;
		line-height: 1;
	}

	[data-menu="reduit"] .tm__icone--date b {
		font-size: 1.25rem;
		letter-spacing: -0.02em;
	}

	[data-menu="reduit"] .tm__icone--date small {
		margin-top: 3px;
		font-size: 0.62rem;
		font-weight: 700;
		text-transform: uppercase;
	}

	[data-menu="reduit"] .tm__court {
		position: absolute;
		z-index: 1;
		inset: 0 auto 0 0;
		display: flex;
		flex-direction: column;
		justify-content: center;
		min-width: 13.5rem;
		max-width: 21rem;
		padding: 0 20px 0 60px;
		border-radius: var(--dm-rayon-bloc);
		background: inherit;
		box-shadow: inherit;
		white-space: nowrap;
		opacity: 0;
		pointer-events: none;
		clip-path: inset(0 calc(100% - 44px) 0 0 round 22px);
		transition: clip-path 0.25s var(--dm-courbe), opacity 0s linear 0.25s;
	}

	[data-menu="reduit"] .tm__court .tm__info {
		display: block;
		margin-top: 2px;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	[data-menu="reduit"] .tm:hover,
	[data-menu="reduit"] .tm:focus-visible {
		z-index: 6;
	}

	[data-menu="reduit"] .tm:hover .tm__court,
	[data-menu="reduit"] .tm:focus-visible .tm__court {
		opacity: 1;
		clip-path: inset(0 0 0 0 round 22px);
		transition: clip-path 0.25s var(--dm-courbe), opacity 0s;
	}

	.toile {
		margin-left: calc(var(--menu-reduit) + var(--menu-marge));
		transition: margin-left 0.45s var(--dm-courbe);
	}
}

/* Grand écran : le menu ouvert pousse la page. */
@media (min-width: 68.75rem) {
	[data-menu="ouvert"] .toile {
		margin-left: calc(var(--menu-ouvert) + var(--menu-marge));
	}
}

/* Tablette : le menu ouvert passe par-dessus la page. */
@media (min-width: 48rem) and (max-width: 68.74rem) {
	[data-menu="ouvert"] .menu {
		box-shadow: 0 20px 60px rgb(51 51 51 / 0.45);
	}

	[data-menu="ouvert"] .menu__curseur {
		display: none;
	}

	[data-menu="ouvert"] .menu-rideau {
		position: fixed;
		z-index: 25;
		inset: 0;
		display: block;
		background: rgb(51 51 51 / 0.4);
	}
}

/* Écran peu haut : le menu se resserre par étapes. */
@media (min-width: 48rem) and (max-height: 59rem) {
	.tm__portraits {
		display: none;
	}
}

@media (min-width: 48rem) and (max-height: 54rem) {
	.menu__marque {
		padding-bottom: 10px;
	}

	.menu__logo {
		width: 150px;
	}

	.lieux .tm__signe {
		height: 26px;
	}

	.tm__numero {
		font-size: 2.9rem;
	}

	.menu__tuiles {
		gap: 6px;
	}

	.tm__plein {
		padding-block: 8px;
	}

	.inscription__info {
		display: none;
	}
}

@media (min-width: 48rem) and (max-height: 48rem) {
	.menu__logo {
		width: 130px;
	}

	.menu__bas svg,
	.tm__plein .tm__info,
	[data-menu="ouvert"] .menu__newsletter > .inscription {
		display: none;
	}

	/* La newsletter devient une tuile, qui ouvre son volet. */
	[data-menu="ouvert"] .menu__newsletter > .tm {
		display: flex;
	}

	.menu__bas {
		padding-top: 8px;
	}

	.menu__bas a {
		padding-block: 7px;
	}

	.tm__plein--date {
		padding: 8px 16px 9px;
	}

	.tm__numero {
		font-size: 2.3rem;
	}

	.tm__cote {
		padding-bottom: 1px;
		line-height: 1.25;
	}

	.tm {
		min-height: 40px;
	}

	.lieux .tm__plein {
		gap: 2px;
		padding: 7px 4px 6px;
	}

	.lieux .tm__signe {
		height: 22px;
	}

	.lieux .tm__signe svg {
		width: 22px;
		height: 22px;
	}
}

@media (min-width: 48rem) and (max-height: 45rem) {
	[data-menu="reduit"] .menu__tuiles,
	[data-menu="reduit"] .lieux {
		gap: 6px;
	}

	[data-menu="reduit"] .menu__trait::before {
		margin: 0 auto 6px;
	}

	[data-menu="reduit"] .tm {
		height: 38px;
	}

	[data-menu="reduit"] .menu__marque {
		padding-bottom: 8px;
	}
}

/* 6. Accueil, listes et tuiles
   -------------------------------------------------------------------------- */

.principal {
	display: block;
	padding-bottom: 7.5rem; /* La bulle du téléphone flotte au-dessus. */
}

@media (min-width: 48rem) {
	.principal {
		padding-bottom: 3rem;
	}
}

.accueil {
	padding: var(--cadre-haut) var(--cadre-droite) 0 var(--cadre-gauche);
}

/* Barre du téléphone */

.barre-haut {
	padding: 12px 16px 10px;
	background: var(--dm-blanc);
	border-bottom: 1px solid var(--dm-filet);
}

.barre-haut__logo {
	display: inline-block;
	line-height: 0;
}

.barre-haut__logo img {
	width: auto;
	height: 46px;
}

.barre-haut__signature {
	margin: 6px 0 0;
	color: var(--dm-gris);
	font-size: 0.8rem;
	line-height: 1.3;
}

@media (min-width: 48rem) {
	.barre-haut {
		display: none;
	}
}

/* La tête d'une page : le même titre et la même phrase partout (26/11/2026). La taille suit l'écran, pas la page. */
.entete-page {
	--titre-page: clamp(2.5rem, 1.6rem + 3.4vw, 5.2rem);
	--texte-page: clamp(1.08rem, 1rem + 0.3vw, 1.26rem);

	container: entete / inline-size;
	margin: 0 0 clamp(22px, 3vw, 38px);
}

.entete-page__surtitre {
	margin: 0 0 10px;
	color: var(--dm-gris);
	font-family: var(--dm-police-titres);
	font-size: clamp(1rem, 0.9rem + 0.3vw, 1.2rem);
	font-weight: 700;
	letter-spacing: -0.01em;
}

.entete-page__titre {
	margin: 0 0 0 -0.03em;
	font-size: var(--titre-page);
	font-weight: 800;
	line-height: 0.97;
	letter-spacing: -0.045em;
	text-wrap: balance;
	overflow-wrap: break-word;
}

/* L'icône d'un lieu à droite du titre (demande du propriétaire, 26/11/2026) : de la ligne de base au haut des capitales, qui
   mesurent 0,66 em. Chaque dessin a ses marges : sa hauteur et son décalage en tiennent compte. */
.entete-page__icone {
	display: inline-block;
	margin-left: 0.18em;
	line-height: 0;
}

.entete-page__icone svg {
	width: auto;
	height: 0.733em; /* Le Maroc occupe 90 % de son cadre. */
	vertical-align: -0.037em;
}

.entete-page__icone--afrique svg {
	height: 0.792em; /* 83 % */
	vertical-align: -0.066em;
}

.entete-page__icone--ailleurs svg {
	height: 0.727em; /* La planète, avec un trait plus épais pour aller avec les lettres : 91 %. */
	vertical-align: -0.033em;
}

.entete-page__icone--ailleurs svg g {
	stroke-width: 2.8;
}

/* Le signe d'une discipline (audit du 26/11/2026) : même hauteur, un trait plus épais pour aller avec les lettres. */
.entete-page__icone[class*="--d-"] svg {
	height: 0.76em;
	vertical-align: -0.05em;
}

.entete-page__icone[class*="--d-"] svg path {
	stroke-width: 2.8;
}

.entete-page__texte {
	max-width: 40rem;
	margin: 16px 0 0;
	font-size: var(--texte-page);
	line-height: 1.5;
}

.entete-page__texte p {
	margin: 0 0 0.6em;
}

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

.entete-page__phrase {
	margin-top: 16px;
}

.entete-page__phrase .entete-page__texte {
	margin: 0;
}

.entete-page__phrase .entete-page__texte + .entete-page__texte {
	margin-top: 0.6em;
}

/* Quand la tête a de la place (grand écran, menu replié), la phrase passe à droite du titre. Le seuil laisse au plus long titre
   (« Les Créatifs d'Afrique et d'ailleurs ») la place de deux lignes, jamais trois. La phrase commence à la hauteur du haut des
   capitales du titre (0,1545 de sa taille sous le haut de la ligne ; 0,39 pour le texte, mesuré sur les polices), puis descend :
   elle ne dépasse jamais au-dessus du titre, même quand elle est plus haute que lui (26/11/2026). */
@container entete (min-width: 84rem) {
	.entete-page__corps {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(16rem, 26rem);
		grid-template-areas:
			"surtitre ."
			"titre phrase";
		column-gap: clamp(32px, 4vw, 72px);
		align-items: start;
	}

	.entete-page__corps--seul {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas:
			"surtitre"
			"titre";
	}

	.entete-page__nom {
		display: contents;
	}

	.entete-page__surtitre {
		grid-area: surtitre;
	}

	.entete-page__titre {
		grid-area: titre;
	}

	.entete-page__phrase {
		grid-area: phrase;
		margin-top: 0;
		padding-top: max(0px, calc(var(--titre-page) * 0.1545 - var(--texte-page) * 0.39));
	}
}

/* Les pays d'Afrique, ou les disciplines, en haut de leurs listes. Sur téléphone, on les fait défiler. */
.filtres {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 1.1rem 0 0;
	padding: 0;
	list-style: none;
}

.filtre {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	padding: 0 17px;
	border-radius: var(--dm-capsule);
	background: var(--dm-blanc);
	color: var(--dm-encre); /* Un lien ou un bouton : la couleur est donnée ici, pour que le survol (encre et blanc) l'emporte. */
	font-size: 0.92rem;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.filtre[aria-current] {
	background: var(--dm-encre);
	color: var(--dm-blanc);
}

@media (hover: hover) {
	.filtre:hover {
		background: var(--dm-encre);
		color: var(--dm-blanc);
	}
}

@media (max-width: 34.99rem) {
	.filtres {
		flex-wrap: nowrap;
		margin-inline: -14px;
		padding: 0 14px 2px;
		overflow-x: auto;
		scrollbar-width: none;
	}

	.filtre {
		flex: none;
		min-height: 44px;
	}
}

/* Un jour du fil */

.fil {
	overflow-anchor: none; /* Le script garde lui-même la place du lecteur. */
}

.jour {
	margin: 0 0 40px;
}

.jour__entete {
	margin: 0 0 14px;
}

.jour__titre {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 12px;
	margin: 0;
	font-family: var(--dm-police-texte);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.3;
	width: max-content;
	max-width: 100%;
	padding: 6px 22px 6px 6px;
	border-radius: var(--dm-rayon);
	background: var(--dm-blanc);
	letter-spacing: -0.005em;
}

.jour__pastille {
	padding: 0.5rem 1.15rem 0.55rem;
	border-radius: var(--dm-capsule);
	font-size: 0.95rem;
	letter-spacing: -0.01em;
	transition: background-color 0.25s ease, color 0.25s ease;
	background: var(--dm-fond);
	font-family: var(--dm-police-titres);
}

@media (max-width: 34.99rem) {
	.jour__annee--courante {
		display: none; /* La capsule tient sur une ligne. */
	}
}

.jour__date {
	color: var(--dm-gris);
	transition: color 0.25s ease;
}

.jour--courant .jour__pastille {
	background: var(--dm-encre);
	color: var(--dm-blanc);
}

.jour--courant .jour__date {
	color: inherit;
}

.jour__chapeau {
	max-width: 60rem;
	margin: 18px 0 20px;
	font-family: var(--dm-police-titres);
	font-size: clamp(1.25rem, 1rem + 0.9vw, 1.85rem);
	line-height: 1.2;
	text-wrap: balance;
	font-weight: 600;
	letter-spacing: -0.02em;
}

/* Ligne du temps : elle longe le menu, une petite ligne la relie à chaque jour. La partie déjà
   parcourue est à l'encre, jusqu'au curseur qui part de la tuile de la date. */

@media (min-width: 48rem) {
	.fil {
		--ligne-a-venir: #cfc8bb;
		--niveau: 24px; /* Milieu de la capsule du jour, depuis le haut de l'en-tête. */
		--niveau-fil: 24px;

		position: relative;
	}

	.fil::before,
	.fil__parcouru {
		content: "";
		position: absolute;
		top: var(--niveau-fil);
		left: calc(-1 * var(--ligne) - 1px);
		width: 2px;
	}

	.fil::before {
		top: -112px; /* Elle part du haut de la page, au-dessus du premier jour. */
		bottom: -70px;
		background: linear-gradient(to top, transparent, var(--ligne-a-venir) 110px, var(--ligne-a-venir) calc(100% - 70px), transparent);
	}

	.fil__parcouru {
		height: 0;
		background: var(--dm-encre);
	}

	.jour__entete {
		position: relative;
	}

	.jour__entete::before,
	.jour__entete::after {
		content: "";
		position: absolute;
		transition: background-color 0.25s ease, border-color 0.25s ease;
	}

	.jour__entete::before {
		top: calc(var(--niveau) - 1px);
		left: calc(-1 * var(--ligne));
		width: var(--ligne);
		height: 2px;
		background: var(--ligne-a-venir);
	}

	.jour__entete::after {
		z-index: 1;
		top: calc(var(--niveau) - 8px);
		left: calc(-1 * var(--ligne) - 8px);
		width: 16px;
		height: 16px;
		border: 2px solid #a9a9a2;
		border-radius: 50%;
		background: var(--dm-fond);
	}

	.jour--passe .jour__entete::before {
		background: var(--dm-encre);
	}

	.jour--passe .jour__entete::after {
		border-color: var(--dm-encre);
		background: var(--dm-encre);
	}
}

/* Mosaïque. Sans script : une grille. Avec : le script place chaque tuile. */

.mosaique {
	--colonnes: 1;

	display: grid;
	grid-template-columns: repeat(var(--colonnes), minmax(0, 1fr));
	align-items: start;
	gap: var(--dm-ecart);
}

@media (min-width: 35rem) {
	.mosaique {
		--colonnes: 2;
	}
}

@media (min-width: 60rem) {
	.mosaique {
		--colonnes: 3;
	}
}

@media (min-width: 68.75rem) {
	[data-menu="ouvert"] .mosaique {
		--colonnes: 2;
	}
}

@media (min-width: 80rem) {
	.mosaique {
		--colonnes: 4;
	}

	[data-menu="ouvert"] .mosaique {
		--colonnes: 3;
	}
}

@media (min-width: 100rem) {
	.mosaique {
		--colonnes: 5;
	}

	[data-menu="ouvert"] .mosaique {
		--colonnes: 4;
	}
}

@media (min-width: 137.5rem) {
	.mosaique {
		--colonnes: 6;
	}

	[data-menu="ouvert"] .mosaique {
		--colonnes: 5;
	}
}

.js .mosaique {
	opacity: 0;
	animation: dm-paraitre 0s linear 3s forwards; /* Secours si le script ne vient pas. */
}

.js .mosaique--vue {
	opacity: 1;
	animation: none;
	transition: opacity 0.25s ease, height 0.45s var(--dm-courbe);
}

@keyframes dm-paraitre {
	to {
		opacity: 1;
	}
}

.mosaique--prete {
	position: relative;
	display: block;
}

/* Les tuiles apparaissent en entrant dans l'écran (navigateurs récents). Une fois entrée, l'animation rend la main :
   sinon elle garde « translate » pour elle, et la tuile saute au survol au lieu de glisser. */
@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		.mosaique > [data-tuile] {
			animation: dm-apparaitre linear backwards;
			animation-timeline: view();
			animation-range: entry 0% entry 40%;
		}
	}
}

@keyframes dm-apparaitre {
	from {
		opacity: 0;
		translate: 0 32px;
	}
}

.mosaique--prete > [data-tuile] {
	position: absolute;
	top: 0;
	left: 0;
	transition: transform 0.45s var(--dm-courbe), width 0.45s var(--dm-courbe), height 0.45s var(--dm-courbe), box-shadow 0.55s var(--dm-souple), translate 0.55s var(--dm-souple);
}

/* Une carte très arrondie, dans l'esprit des bulles du logo ; l'image est posée dedans. */

.tuile {
	--couleur: var(--dm-cyan);

	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 8px 8px 0;
	overflow: hidden;
	border-radius: var(--dm-rayon);
	background: var(--dm-blanc);
	transition: box-shadow 0.55s var(--dm-souple), translate 0.55s var(--dm-souple);
}

.tuile--createur {
	--couleur: var(--dm-ambre);
}

.tuile--evenement {
	--couleur: var(--dm-menthe);
}

@media (hover: hover) {
	.tuile:hover {
		box-shadow: var(--dm-ombre);
		translate: 0 -4px;
	}
}

.tuile:has(a:focus-visible) {
	outline: 3px solid var(--dm-encre);
	outline-offset: 2px;
}

.tuile__image {
	position: relative;
	overflow: hidden;
	aspect-ratio: 1 / var(--proportion, 0.65);
	border-radius: var(--dm-rayon-image);
	background: var(--dm-filet);
}

.mosaique--prete .tuile__image {
	flex: 1 1 0;
	min-height: 0;
	aspect-ratio: auto;
}

.tuile__image img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: scale 0.7s var(--dm-courbe);
}

@media (hover: hover) {
	.tuile:hover .tuile__image img {
		scale: 1.045;
	}
}

.tuile--sans-image .tuile__image {
	display: flex;
	align-items: flex-end;
	padding: 3.2rem 1rem 1rem;
	background: var(--couleur);
}

.tuile__citation {
	display: -webkit-box;
	overflow: hidden;
	font-family: var(--dm-police-titres);
	font-size: 1.15rem;
	font-weight: 600;
	line-height: 1.22;
	letter-spacing: -0.015em;
	-webkit-line-clamp: 5;
	-webkit-box-orient: vertical;
}

.tuile__citation--nom {
	overflow-wrap: anywhere;
	font-size: clamp(1.6rem, 1.2rem + 0.9vw, 2.2rem);
	font-weight: 700;
	line-height: 1.02;
	letter-spacing: -0.03em;
}

.tuile__pastilles {
	position: absolute;
	z-index: 1;
	top: 0.7rem;
	left: 0.7rem;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.tuile--sans-image .pastille:not(.pastille--une) {
	background: var(--dm-blanc);
}

.tuile__lecture {
	position: absolute;
	inset: 0;
	width: 3.2rem;
	height: 3.2rem;
	margin: auto;
	border-radius: 50%;
	background: rgb(255 255 255 / 0.94);
}

.tuile__lecture::after {
	content: "";
	position: absolute;
	top: 1rem;
	left: 1.28rem;
	border-width: 0.6rem 0 0.6rem 0.95rem;
	border-style: solid;
	border-color: transparent transparent transparent var(--dm-encre);
}

.tuile__corps {
	flex: none;
	padding: 14px 10px 15px;
}

.tuile__source {
	margin: 0 0 3px;
	overflow: hidden;
	color: var(--dm-gris);
	font-family: var(--dm-police-source);
	font-size: 0.8rem;
	font-weight: 500;
	line-height: 1.5;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Dates d'un événement, dans sa couleur. */
.tuile__quand,
.fiche__quand {
	display: inline-block;
	margin: 2px 0 6px;
	padding: 2px 10px 3px;
	border-radius: var(--dm-capsule);
	background: var(--dm-menthe);
	font-size: 0.82rem;
	font-weight: 600;
	line-height: 1.45;
}

.fiche__quand {
	margin: 0 0 1rem;
	padding: 5px 16px 6px;
	font-size: 1rem;
}

.fiche__quand a {
	margin-left: 0.6rem;
}

.tuile__titre {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	font-size: 1.18rem;
	font-weight: 700;
	line-height: 1.16;
	letter-spacing: -0.02em;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
}

.tuile__titre a,
.tuile__nom a {
	text-decoration: none;
}


/* Toute la tuile est cliquable. */
.tuile__titre a::after,
.tuile__nom a::after {
	content: "";
	position: absolute;
	z-index: 2;
	inset: 0;
}

.tuile__titre a:focus-visible,
.tuile__nom a:focus-visible {
	outline: none;
}

.tuile__meta {
	margin: 10px 0 0;
	line-height: 1;
}

/* La discipline : une étiquette avec son signe, pour la distinguer du titre. */
.discipline {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 13px 5px 10px;
	border-radius: var(--dm-capsule);
	background: var(--dm-fond);
	color: var(--dm-encre);
	font-size: 0.76rem;
	font-weight: 600;
	line-height: 1.5;
}

a.discipline {
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

a.discipline:hover {
	background: var(--dm-encre);
	color: var(--dm-blanc);
}

.discipline svg {
	flex: none;
}

/* La une : la grande tuile du jour le plus récent. */
.tuile--une .tuile__corps {
	padding: 18px 14px 18px;
}

.tuile--une .tuile__titre {
	font-size: clamp(1.5rem, 1rem + 1.3vw, 2.35rem);
	line-height: 1.06;
	-webkit-line-clamp: 3;
}

/* Le texte sous le titre : seulement là où le survol n'existe pas (voir plus bas). */
.tuile__extrait {
	display: none;
	margin: 8px 0 0;
	overflow: hidden;
	color: var(--dm-gris);
	font-size: 0.95rem;
	line-height: 1.45;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
}

/* Au survol : une bulle de la couleur du format monte sur la tuile, avec le regard. */

.tuile__voile {
	position: absolute;
	z-index: 1;
	inset: auto 8px 8px;
	display: flex;
	flex-direction: column;
	gap: 7px;
	max-height: calc(100% - 3rem);
	padding: 16px 17px 15px;
	overflow: hidden;
	border-radius: var(--dm-rayon-bloc);
	background: var(--couleur);
	color: var(--dm-encre);
	pointer-events: none;
	transform: translateY(calc(100% + 16px));
	visibility: hidden;
	transition: transform 0.35s var(--dm-courbe), visibility 0s linear 0.35s;
}

.tuile--une .tuile__voile {
	padding: 20px 22px 18px;
}

@media (hover: hover) {
	.tuile:hover .tuile__voile,
	.tuile:focus-within .tuile__voile {
		transform: none;
		visibility: visible;
		transition: transform 0.35s var(--dm-courbe);
	}
}

.tuile__etiquette {
	margin: 0;
	font-size: 0.82rem;
	font-weight: 600;
	line-height: 1.35;
}

.tuile__regard {
	display: -webkit-box;
	overflow: hidden;
	font-size: 0.98rem;
	line-height: 1.4;
	-webkit-line-clamp: var(--lignes, 6);
	-webkit-box-orient: vertical;
}

.tuile--une .tuile__regard {
	font-size: 1.08rem;
}

.tuile__suite {
	margin: 0;
	font-size: 0.88rem;
	font-weight: 700;
	line-height: 1.35;
}

/* Les deux petites tuiles d'un jour : le créateur (ou le projet) du jour, le média du jour. */

.tuile--compacte {
	justify-content: space-between;
	gap: 10px;
	min-height: 8.25rem;
	padding: 18px 20px;
}

/* Le créateur prend l'ambre, le projet prend le cyan des publications. */
.tuile--vedette {
	background: var(--couleur);
}

.tuile__media {
	display: flex;
	align-items: center;
	gap: 12px;
}

.tuile__initiales {
	display: grid;
	flex: none;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--dm-encre);
	color: var(--dm-blanc);
	font-family: var(--dm-police-titres);
	font-size: 0.95rem;
	font-weight: 800;
}

.tuile__rond {
	flex: none;
	width: 52px;
	height: 52px;
	border: 3px solid var(--dm-blanc);
	border-radius: 50%;
	background: var(--dm-blanc);
	object-fit: cover;
}

.tuile__rond--carte {
	border-color: var(--dm-filet);
	border-width: 1px;
}

.tuile__nom {
	display: -webkit-box;
	min-width: 0;
	margin: 0;
	overflow: hidden;
	overflow-wrap: anywhere;
	font-family: var(--dm-police-titres);
	font-size: 1.3rem;
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -0.02em;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
}

.tuile__compte {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	color: var(--dm-gris);
	font-size: 0.85rem;
	line-height: 1.4;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.tuile--vedette .tuile__compte {
	color: var(--dm-encre);
}

.tuile--media {
	background: var(--dm-encre);
	color: var(--dm-blanc);
}

.tuile--media .tuile__initiales {
	background: var(--dm-blanc);
	color: var(--dm-encre);
}

.tuile--media .tuile__etiquette,
.tuile--media .tuile__compte {
	color: #d5d5d0;
}

.suite {
	margin: 8px 0 0;
	text-align: center;
}

.suite a[aria-busy="true"]::after {
	content: " · chargement";
	font-weight: 400;
}

/* Sur téléphone et tablette, pas de survol : le début du regard est sous le titre. */

@media (hover: none), (max-width: 34.99rem) {
	.tuile__extrait {
		display: -webkit-box;
	}
}

/* Les médias */

.medias {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
	gap: var(--dm-ecart);
	margin: 0;
	padding: 0;
	list-style: none;
}

.medias__carte {
	position: relative;
	padding: 18px 18px 16px;
	border-radius: var(--dm-rayon);
	background: var(--dm-blanc);
}

.medias__nom {
	margin: 12px 0 2px;
	font-size: 1.2rem;
	font-weight: 800;
}

.medias__nom a {
	text-decoration: none;
}

.medias__compte {
	margin: 0;
	color: var(--dm-gris);
	font-size: 0.88rem;
}

.medias__site {
	margin: 10px 0 0;
	font-size: 0.9rem;
	font-weight: 700;
}

.pagination {
	margin-top: 2rem;
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
}

.pagination .page-numbers {
	display: inline-block;
	min-width: 2.6rem;
	padding: 0.5rem 0.9rem;
	border: 1px solid var(--dm-filet);
	border-radius: var(--dm-capsule);
	background: var(--dm-blanc);
	font-weight: 600;
	text-align: center;
	text-decoration: none;
}

.pagination .page-numbers.current {
	border-color: var(--dm-encre);
	background: var(--dm-encre);
	color: var(--dm-blanc);
}

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

.vide__recherche,
.introuvable__recherche {
	max-width: 26rem;
	margin-block: 1rem 1.5rem;
}

/* 7. Article et page
   -------------------------------------------------------------------------- */

.article {
	padding: clamp(1.25rem, 4vw, 3rem);
	border-radius: var(--dm-rayon);
	background: var(--dm-blanc);
}

.article__surtitre {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.75rem;
	margin: 0 0 1rem;
	font-size: 0.9rem;
	font-weight: 700;
}

.article__surtitre a {
	text-decoration: none;
}


.article__meta {
	margin: 0 0 1.5rem;
	color: var(--dm-gris);
	font-size: 0.9rem;
}

.article__image {
	margin: 0 0 2rem;
}

.article__image img {
	display: block;
	width: 100%;
	border-radius: min(8px, var(--dm-rayon-dedans));
}

/* Un texte seul, sans image à côté : une ligne de lecture, pas plus. */
.fiche:not(.fiche--texte) .fiche__voix > .article__texte {
	max-width: var(--dm-largeur-texte);
}

.article__texte p {
	margin: 0 0 1.1em;
}

.article__texte h2 {
	margin-top: 2rem;
	font-size: 1.5rem;
}

.article__texte h3 {
	margin-top: 1.75rem;
	font-size: 1.25rem;
}

.article__texte a {
	text-decoration: underline;
}

.article__texte img {
	border-radius: min(8px, var(--dm-rayon-dedans));
}

.article__texte iframe {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	border: 0;
}

.article__texte blockquote {
	margin: 1.5rem 0;
	padding: 0.25rem 0 0.25rem 1.25rem;
	border-left: 4px solid var(--dm-ambre);
	font-style: italic;
}

/* Vidéo de la chaîne (26/11/2026) : le début de la description, sa suite sur YouTube, puis l'invitation à s'abonner. */
.article__texte .article__suite a {
	font-weight: 700;
}

.abonnement {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 18px;
	margin: 1.5rem 0 0;
	padding: 16px 18px;
	border-radius: var(--dm-rayon);
	background: var(--dm-fond);
}

.article__texte .abonnement__texte {
	flex: 1 1 16rem;
	margin: 0;
	font-weight: 600;
}

.article__texte .abonnement__bouton {
	flex: none;
	text-decoration: none;
}

.article__source {
	margin: 2rem 0 0;
	padding-top: 1.25rem;
	border-top: 1px solid var(--dm-filet);
	font-weight: 700;
}

.alignleft {
	float: left;
	margin: 0.3rem 1.5rem 1rem 0;
}

.alignright {
	float: right;
	margin: 0.3rem 0 1rem 1.5rem;
}

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

.wp-caption {
	max-width: 100%;
}

.wp-caption-text,
figcaption {
	margin-top: 0.4rem;
	color: var(--dm-gris);
	font-size: 0.85rem;
}

/* 7 bis. Page d'un contenu : l'image et son crédit, le regard, la source, le créateur
   -------------------------------------------------------------------------- */

.contenu {
	container: contenu / inline-size;
	padding: var(--cadre-haut) var(--cadre-droite) 0 var(--cadre-gauche);
}

.contenu__grille {
	display: grid;
	gap: 1.25rem;
	max-width: var(--dm-largeur-page);
}

/* La colonne de droite apparaît selon la place réelle, menu ouvert ou réduit. */
@container contenu (min-width: 58rem) {
	.contenu__grille {
		grid-template-columns: minmax(0, 1fr) 18rem;
		gap: 1.5rem;
		align-items: start;
	}

	.colonne {
		position: sticky;
		top: 18px;
	}
}

.fiche {
	--couleur: var(--dm-cyan);
	--bord: clamp(1rem, 2.4vw, 2rem);
	--fiche-ecart: 1.25rem;

	container: fiche / inline-size;
	padding: var(--bord);
	border-radius: var(--dm-rayon);
	background: var(--dm-blanc);
}

.fiche--createur {
	--couleur: var(--dm-ambre);
}

.fiche--evenement {
	--couleur: var(--dm-menthe);
}

.ariane,
.regard__titre,
.bloc__etiquette,
.colonne__titre {
	color: var(--dm-gris);
	font-size: 0.85rem;
	line-height: 1.5;
}

.ariane {
	margin: 0 0 1.1rem;
}

.ariane a {
	text-decoration: none;
}

.ariane a:hover {
	color: var(--dm-encre);
}

.fiche__surtitre {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.75rem;
	margin: 0 0 1rem;
	font-size: 0.9rem;
	font-weight: 700;
}

.fiche__titre {
	margin: 0 0 0.35em;
	overflow-wrap: break-word;
	font-size: 2rem;
	font-size: clamp(1.7rem, 1rem + 3.6cqi, 2.75rem);
	font-weight: 700;
	line-height: 1.04;
	text-wrap: balance;
	letter-spacing: -0.03em;
}

.fiche__blocs {
	display: grid;
	gap: var(--fiche-ecart);
}

/* Assez de place : trois colonnes (composition choisie le 24/11/2026 parmi cinq). L'image en prend deux,
   le regard la troisième ; dessous, la source, le créateur et le contenu suivant. Avec deux blocs, le
   premier a la largeur de l'image. */
@container fiche (min-width: 50rem) {
	.fiche__duo {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: var(--fiche-ecart);
	}

	.fiche__image,
	.fiche__voix {
		grid-column: 1 / -1;
		margin: 0;
	}

	.fiche__blocs {
		display: contents;
	}

	.bloc:first-child:nth-last-child(2) {
		grid-column: span 2;
	}

	.bloc:only-child {
		grid-column: 1 / -1;
	}

	.fiche--deux .fiche__image {
		grid-column: span 2;
	}

	.fiche--deux .fiche__voix {
		grid-column: auto;
	}

	/* Un article de Design Maroc (les archives) : la même grille ; l'image reste à l'écran pendant qu'on lit le texte, à sa droite
	   (26/11/2026). Son enveloppe a la hauteur du texte : l'image s'arrête avec lui et ne passe pas sur « À suivre ». */
	.fiche--texte .fiche__colle {
		grid-column: span 2;
	}

	.fiche--texte .fiche__colle > .fiche__image {
		position: sticky;
		top: 18px;
		margin: 0;
	}

	.fiche--texte .fiche__voix {
		grid-column: auto;
	}

	.fiche--deux .regard {
		margin: 0;
	}

	.fiche--deux .regard__texte {
		font-size: clamp(1.1rem, 0.72rem + 0.9cqi, 1.5rem);
	}

	.fiche--deux .regard--extrait .regard__texte {
		font-size: 1.05rem;
	}

	/* Le bas de l'image et le bas du regard s'alignent : l'image s'étire un peu si le texte est plus long. */
	.fiche--deux .fiche__image > img,
	.fiche--deux .fiche__image > iframe,
	.fiche--deux .lecteur {
		flex: 1 1 auto;
	}

	.fiche--deux .fiche__image > img {
		object-fit: cover;
	}

	/* Une image très large reste entière. Une image en hauteur aussi : le regard et les blocs se suivent à
	   sa droite. */
	.fiche--panorama .fiche__image,
	.fiche--hauteur .fiche__image {
		align-self: start;
	}

	.fiche--hauteur .fiche__duo {
		grid-template-rows: repeat(3, auto) 1fr;
	}

	.fiche--hauteur .fiche__image {
		grid-row: 1 / span 4;
	}

	.fiche--hauteur .fiche__image > img {
		width: auto;
		max-width: 100%;
		margin-inline: auto;
		object-fit: contain;
	}

	.fiche--hauteur .fiche__voix,
	.fiche--hauteur .fiche__blocs > .bloc {
		grid-column: 3;
		align-self: start;
	}
}

/* Le jour de l'édition : la ligne du temps traverse la carte, un anneau marque la date. Au survol, le
   trait passe à l'encre et l'anneau prend la couleur du format. */
.fiche__edition {
	display: flex;
	align-items: center;
	margin: 1.35rem calc(-1 * var(--bord)) 1.65rem;
}

.fiche__edition::before,
.fiche__edition::after {
	content: "";
	height: 1px;
	background: #bfb8ab linear-gradient(var(--dm-encre), var(--dm-encre)) 0 0 / 0 100% no-repeat;
	transition: background-size 0.5s var(--dm-courbe);
}

.fiche__edition::before {
	flex: none;
	width: var(--bord);
}

.fiche__edition::after {
	flex: 1;
	min-width: 1.5rem;
	margin-left: 1.1rem;
}

.edition {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	color: var(--dm-encre);
	line-height: 1.35;
	text-decoration: none;
}

.edition::before {
	content: "";
	flex: none;
	width: 12px;
	height: 12px;
	border: 2px solid var(--dm-encre);
	border-radius: 50%;
	transition: background-color 0.3s ease;
}

.edition__note {
	color: var(--dm-gris);
	font-size: 0.95rem;
}

.edition__date {
	font-family: var(--dm-police-titres);
	font-size: 1.02rem;
	font-weight: 600;
	letter-spacing: -0.01em;
}

@container fiche (max-width: 30rem) {
	.edition__note,
	.edition__date {
		display: block;
	}
}

.edition:hover::before,
.edition:focus-visible::before {
	background: var(--couleur);
}

.fiche__edition:has(.edition:hover)::before,
.fiche__edition:has(.edition:hover)::after,
.fiche__edition:has(.edition:focus-visible)::before,
.fiche__edition:has(.edition:focus-visible)::after {
	background-size: 100% 100%;
}

/* L'image est posée dans sa carte, comme sur les tuiles ; son crédit est dans la même carte. */
.fiche__image {
	display: flex;
	flex-direction: column;
	margin: 0 0 var(--fiche-ecart);
	padding: 8px;
	border-radius: var(--dm-rayon-bloc);
	background: var(--dm-fond);
}

.fiche__image > img {
	display: block;
	width: 100%;
	min-height: 0;
	max-height: min(85vh, 46rem);
	border-radius: var(--dm-rayon-dedans);
	object-fit: contain; /* Image en hauteur (Instagram) : entière, sur le fond de la carte. */
	view-transition-name: dm-image;
}

.fiche__image:not(:has(.credit)) {
	padding: 0;
}

.fiche__image:not(:has(.credit)) > * {
	border-radius: var(--dm-rayon-bloc);
}

.credit {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.1rem 0.7rem;
	margin: 0;
	padding: 0.75rem 12px 0.55rem;
	color: inherit;
	font-size: 0.89rem;
	line-height: 1.4;
}

.credit__etiquette {
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: 7px;
	color: var(--dm-gris);
	font-size: 0.83rem;
	font-weight: 700;
}

.credit__texte {
	overflow-wrap: break-word;
}

/* Vidéo : le lecteur de YouTube n'est appelé qu'au clic. */

.lecteur {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	border-radius: var(--dm-rayon-dedans);
	background: var(--couleur);
}

.lecteur img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	view-transition-name: dm-image;
}

.lecteur__bouton {
	position: absolute;
	inset: 0;
	width: 5rem;
	height: 5rem;
	margin: auto;
	border-radius: 50%;
	background: rgb(255 255 255 / 0.94);
	transition: transform 0.2s var(--dm-courbe);
}

.lecteur:hover .lecteur__bouton {
	transform: scale(1.08);
}

.lecteur__bouton::after {
	content: "";
	position: absolute;
	top: 1.5rem;
	left: 1.95rem;
	border-width: 1rem 0 1rem 1.6rem;
	border-style: solid;
	border-color: transparent transparent transparent var(--dm-encre);
}

.lecteur__mot {
	position: absolute;
	bottom: 1rem;
	left: 1rem;
	padding: 0.2rem 0.85rem;
	border-radius: var(--dm-capsule);
	background: var(--dm-blanc);
	font-size: 0.88rem;
	font-weight: 700;
}

.fiche__image iframe {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	border: 0;
	border-radius: var(--dm-rayon-dedans);
	background: var(--dm-encre);
}

.regard {
	margin: 0 0 var(--fiche-ecart);
}

.regard__titre {
	display: flex;
	align-items: center;
	gap: 9px;
	margin: 0 0 0.75rem;
	font-weight: 700;
}

/* Une bulle de la couleur du format, comme dans les listes. */
.regard__titre::before {
	content: "";
	flex: none;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--couleur);
}

.regard__texte {
	margin: 0;
	font-family: var(--dm-police-titres);
	font-size: clamp(1.2rem, 0.6rem + 1.6cqi, 1.75rem);
	line-height: 1.42;
	font-weight: 500;
	letter-spacing: -0.012em;
}

.regard__texte p {
	margin: 0;
}

.regard__texte p + p {
	margin-top: 0.8em;
}

.regard--extrait .regard__texte {
	font-size: 1.1rem;
	font-family: var(--dm-police-texte);
	font-weight: 400;
	letter-spacing: 0;
}

/* La source et le créateur : même rond, mêmes textes, même lien avec sa bulle ; chacun sa couleur. Le
   lien est à droite quand il y a la place, sinon en bas à droite. */
.bloc {
	--bloc-fond: var(--dm-fond);
	--bloc-fort: var(--dm-encre);
	--bloc-texte: var(--dm-blanc);

	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1.1rem 1.5rem;
	align-content: space-between;
	padding: 1.25rem;
	border-radius: var(--dm-rayon-bloc);
	background: var(--bloc-fond);
}

.bloc--createur {
	--bloc-fond: #fff3d6; /* Ambre à 16 % sur blanc. */
	--bloc-fort: var(--dm-ambre);
	--bloc-texte: var(--dm-encre);
}

@container fiche (min-width: 36rem) {
	.bloc {
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: center;
	}
}

/* En colonnes : le lien passe en bas, et le rond est un peu plus petit. */
@container fiche (min-width: 50rem) {
	.bloc:not(:only-child) {
		grid-template-columns: minmax(0, 1fr);
		align-items: start;
		padding: 1.1rem;
	}
}

@container fiche (min-width: 50rem) and (max-width: 67.99rem) {
	.bloc:not(:only-child) .bloc__qui {
		gap: 0.8rem;
	}

	.bloc:not(:only-child) .bloc__initiales,
	.bloc:not(:only-child) .bloc__image {
		width: 48px;
		height: 48px;
		font-size: 1rem;
	}

	.bloc:not(:only-child) .bloc__nom {
		font-size: 1.2rem;
	}
}

/* Le contenu suivant, dans la couleur de son format. */
.bloc--suite {
	--bloc-fond: color-mix(in srgb, var(--bloc-fort) 16%, var(--dm-blanc));
	--bloc-fort: var(--dm-cyan);
	--bloc-texte: var(--dm-encre);
}

.bloc--suite.bloc--createur {
	--bloc-fort: var(--dm-ambre);
}

.bloc--suite.bloc--evenement {
	--bloc-fort: var(--dm-menthe);
}

.bloc__qui {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
	min-width: 0;
}

.bloc__initiales,
.bloc__image {
	display: grid;
	flex: none;
	place-items: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
}

.bloc__image {
	background: var(--dm-blanc);
	object-fit: cover;
}

.bloc__initiales {
	background: var(--bloc-fort);
	color: var(--bloc-texte);
	font-family: var(--dm-police-titres);
	font-size: 1.1rem;
	font-weight: 800;
}

.bloc__corps {
	flex: 1;
	min-width: 0;
}

.bloc__etiquette {
	margin: 0 0 0.1rem;
	font-weight: 700;
}

.bloc__nom {
	margin: 0;
	overflow-wrap: anywhere;
	font-size: 1.35rem;
	font-weight: 800;
}

.bloc__info,
.bloc__suite {
	margin: 0.2rem 0 0;
	overflow-wrap: anywhere;
	font-size: 0.94rem;
	line-height: 1.45;
}

.bloc__suite {
	font-weight: 700;
}

.bloc__suite a {
	text-decoration: none;
}

.bloc__bouton {
	display: inline-flex;
	align-items: center;
	justify-self: end;
	gap: 0.75rem;
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.3;
	text-align: right;
	text-decoration: none;
}

.bloc__bulle {
	display: grid;
	flex: none;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--bloc-fort);
	color: var(--bloc-texte);
	transition: transform 0.25s var(--dm-courbe);
}

.bloc__bouton:hover .bloc__bulle,
.bloc__bouton:focus-visible .bloc__bulle {
	transform: scale(1.16);
}

/* Les liens qui mènent plus loin : la flèche avance, le texte ne se souligne pas. */
.fleche {
	display: inline-block;
	transition: transform 0.25s var(--dm-courbe);
}

a:hover > .fleche,
a:focus-visible > .fleche {
	transform: translateX(5px);
}

a:hover > .fleche--sortie,
a:focus-visible > .fleche--sortie {
	transform: translate(3px, -3px);
}

.colonne {
	display: grid;
	gap: 1.25rem;
	align-content: start;
}

.colonne__bloc {
	padding: 1.15rem 1.2rem 1.1rem;
	border-radius: var(--dm-rayon);
	background: var(--dm-blanc);
}

.colonne__titre {
	margin: 0 0 0.2rem;
	font-weight: 700;
}

.colonne__date {
	margin: 0 0 0.7rem;
	font-weight: 700;
	line-height: 1.4;
}

.colonne__date a,
.colonne__sommaire a,
.colonne__medias a,
.colonne__tous a {
	text-decoration: none;
}

.colonne__sommaire,
.colonne__medias {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Une ligne de la colonne. Au survol, la bulle du format grandit jusqu'à la remplir ; pour un média,
   c'est de l'encre, comme sur sa tuile de l'accueil. */
.colonne__entree,
.colonne__medias li {
	--couleur: var(--dm-cyan);

	position: relative;
	isolation: isolate;
	display: flex;
	align-items: baseline;
	gap: 0.6rem;
	margin-inline: -0.6rem;
	padding: 0.5rem 0.75rem 0.5rem 0.6rem;
	overflow: hidden;
	border-radius: var(--dm-rayon-dedans);
	font-size: 0.92rem;
	line-height: 1.35;
	transition: color 0.25s ease;
}

.colonne__entree--createur {
	--couleur: var(--dm-ambre);
}

.colonne__entree--evenement {
	--couleur: var(--dm-menthe);
}

.colonne__medias li {
	--couleur: var(--dm-encre);
}

.colonne__entree::before,
.colonne__medias li::before {
	content: "";
	position: absolute;
	z-index: -1;
	inset: 0;
	background: var(--couleur);
	clip-path: circle(0 at calc(100% - 1rem) 50%);
	transition: clip-path 0.45s var(--dm-courbe);
}

.colonne__entree a,
.colonne__medias a {
	flex: 1;
	min-width: 0;
	overflow-wrap: break-word;
}

/* Toute la ligne est cliquable. */
.colonne__entree a::after,
.colonne__medias a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.colonne__entree a:focus-visible,
.colonne__medias a:focus-visible {
	outline: 0;
}

.colonne__entree:has(a:focus-visible),
.colonne__medias li:has(a:focus-visible) {
	outline: 3px solid var(--dm-encre);
	outline-offset: -3px;
}

/* Le contenu qu'on est en train de lire. */
.colonne__entree:has([aria-current]) {
	background: var(--dm-fond);
	font-weight: 700;
}

.colonne__entree:has([aria-current])::before {
	content: none;
}

@media (hover: hover) {
	.colonne__entree:hover::before,
	.colonne__medias li:hover::before {
		clip-path: circle(150% at calc(100% - 1rem) 50%);
	}

	.colonne__entree:hover .colonne__numero {
		color: inherit;
	}

	.colonne__medias li:hover,
	.colonne__medias li:hover .colonne__compte {
		color: var(--dm-blanc);
	}
}

.colonne__numero,
.colonne__compte {
	color: var(--dm-gris);
	font-family: var(--dm-police-source);
	font-size: 0.74rem;
	font-weight: 400;
	transition: color 0.25s ease;
}

.colonne__entree .point {
	align-self: center;
	width: 9px;
	height: 9px;
}

.colonne__medias {
	margin-top: 0.5rem;
}

.colonne__medias li {
	gap: 1rem;
	padding-block: 0.38rem;
	font-size: 0.95rem;
}

.colonne__tous {
	margin: 0.6rem 0 0;
	font-size: 0.92rem;
	font-weight: 700;
}

/* 8. Téléphone : la bulle flottante et les volets
   -------------------------------------------------------------------------- */

.bulle {
	position: fixed;
	z-index: 40;
	bottom: max(14px, env(safe-area-inset-bottom));
	left: 50%;
	display: flex;
	padding: 9px 10px 8px;
	border-radius: var(--dm-bulle);
	background: var(--dm-encre);
	color: var(--dm-blanc);
	box-shadow: 0 8px 26px rgb(51 51 51 / 0.35);
	transform: translateX(-50%);
}

.bulle__bouton {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	min-width: 72px;
	padding: 3px 4px;
	border-radius: var(--dm-rayon-bouton);
	color: inherit;
	font-size: 0.72rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
}

.bulle__bouton:focus-visible {
	outline-color: var(--dm-blanc);
	outline-offset: 0;
}

.bulle__signe {
	display: grid;
	place-items: center;
	height: 26px;
	line-height: 0;
}

.bulle__signe--logo svg {
	width: 18px;
	height: 26px;
}

.bulle__signe--ambre::before,
.bulle__signe--menthe::before {
	content: "";
	display: block;
	width: 28px;
	height: 16px;
	border-radius: 8px;
	background: var(--dm-ambre);
}

.bulle__signe--menthe::before {
	width: 22px;
	height: 21px;
	background: var(--dm-menthe);
}

@media (min-width: 48rem) {
	.bulle {
		display: none;
	}
}

.volet {
	width: 100%;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: var(--dm-blanc);
	color: var(--dm-encre);
}

.volet::backdrop {
	background: rgb(51 51 51 / 0.5);
}

.volet__interieur {
	position: relative;
	padding: 26px 22px 28px;
}

.volet--tiroir {
	position: fixed;
	inset: auto 0 0;
	max-height: 88vh;
	max-height: 88dvh;
	overflow-y: auto;
	border-radius: calc(26px * var(--arrondi)) calc(26px * var(--arrondi)) 0 0;
}

.volet--tiroir:target {
	z-index: 60;
	display: block; /* Sans script, le lien « Menu » ouvre quand même le tiroir. */
}

.volet--tiroir[open] {
	animation: dm-monter 0.3s var(--dm-courbe);
}

@keyframes dm-monter {
	from {
		transform: translateY(40%);
		opacity: 0;
	}
}

.volet--recherche {
	position: fixed;
	inset: 12vh auto auto 50%;
	width: min(100% - 2rem, 38rem);
	border-radius: calc(26px * var(--arrondi));
	transform: translateX(-50%);
}

.volet__fermer {
	position: absolute;
	top: 14px;
	right: 14px;
}

.volet__fermer button {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: var(--dm-fond);
	color: var(--dm-encre);
	cursor: pointer;
}

.volet__titre {
	margin: 22px 0 10px;
	color: var(--dm-gris);
	font-family: var(--dm-police-source);
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.volet__titre:first-of-type {
	margin-top: 4px;
	padding-right: 48px;
}

.volet__grand {
	margin: 0 48px 2px 0;
	font-size: 1.6rem;
	font-weight: 800;
}

.volet__aide {
	margin: 0 0 16px;
	color: var(--dm-gris);
}

.volet__sommaire {
	margin: 0;
	padding: 0 0 6px;
	border-bottom: 1px solid var(--dm-filet);
	list-style: none;
}

.volet__sommaire li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 7px 0;
	line-height: 1.35;
}

.volet__sommaire a {
	text-decoration: none;
}

.point {
	flex: none;
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background: var(--dm-cyan);
}

.point--createur {
	background: var(--dm-ambre);
}

.point--evenement {
	background: var(--dm-menthe);
}

.puces {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.puce {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 18px;
	border: 1px solid var(--dm-encre);
	border-radius: var(--dm-capsule);
	font-size: 0.95rem;
	font-weight: 700;
	text-decoration: none;
}

.puce svg {
	width: 20px;
	height: 20px;
}

.puce--publication {
	border-color: var(--dm-cyan);
	background: var(--dm-cyan);
}

.puce--createur {
	border-color: var(--dm-ambre);
	background: var(--dm-ambre);
}

.puce--evenement {
	border-color: var(--dm-menthe);
	background: var(--dm-menthe);
}

.volet__bas {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 22px;
	margin: 22px 0 0;
	font-weight: 700;
}

.volet__note {
	margin: 12px 2px 0;
	color: var(--dm-gris);
	font-size: 0.82rem;
}


/* 9. Passage d'une page à l'autre : l'image cliquée s'agrandit jusqu'à sa page
   -------------------------------------------------------------------------- */

@view-transition {
	navigation: auto;
}

/* 10. Préférences du lecteur, impression
   -------------------------------------------------------------------------- */

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

@media print {
	.menu,
	.bulle,
	.suite,
	.colonne,
	.bloc--suite,
	.lien-evitement {
		display: none !important;
	}

	.toile {
		margin-left: 0 !important;
	}
}

/* La ligne du bas des pages (26/11/2026) : à gauche ce qui concerne la page, à droite le crédit du site */
.pied-page {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 6px 30px;
	margin-top: clamp(44px, 6cqi, 70px);
	padding-top: 18px;
	border-top: 1px solid #bfb8ab;
	color: var(--dm-gris);
	font-size: 0.93rem;
	line-height: 1.5;
}

.pied-page p {
	margin: 0;
}

.pied-page__texte {
	max-width: 44rem;
}

.pied-page__credit {
	margin-left: auto; /* Seul, le crédit reste à droite. */
}

.pied-page a {
	color: inherit;
	font-weight: 600;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

/* La barre d'une liste : une carte blanche, le nombre dans une bulle de la couleur de la page et une phrase qui suit les filtres,
   puis à droite un outil (recherche, jour, année). Les Créatifs, puis l'Agenda (demandes du propriétaire, 26/11/2026). Sur un
   écran étroit, l'outil passe sous la phrase. */
.barre-liste {
	--couleur: var(--dm-ambre);

	display: flex;
	align-items: center;
	gap: 12px 24px;
	margin: 0;
	padding: 8px 8px 8px 10px;
	border-radius: var(--dm-rayon);
	background: var(--dm-blanc);
}

.barre-liste--agenda {
	--couleur: var(--dm-menthe);
}

.barre-liste__compte {
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	gap: 12px;
	min-width: 0;
	margin: 0;
	font-family: var(--dm-police-titres);
	font-size: clamp(1.05rem, 0.98rem + 0.3vw, 1.25rem);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.015em;
}

.barre-liste__nombre {
	display: inline-grid;
	flex: none;
	place-items: center;
	min-width: 2.75rem;
	height: 2.75rem;
	padding: 0 0.55rem;
	box-sizing: border-box;
	border-radius: var(--dm-capsule);
	background: var(--couleur);
	font-size: 1.3rem;
	font-weight: 800;
	letter-spacing: -0.03em;
}

.barre-liste__phrase {
	min-width: 0;
	text-wrap: balance;
}

.barre-liste__outils {
	display: flex;
	flex: none;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.barre-liste__outils[hidden] {
	display: none;
}

/* Sans script, les outils ne servent à rien. */
html:not(.js) .barre-liste__outils {
	display: none;
}

.barre-liste--publications {
	--couleur: var(--dm-cyan);
}

/* La recherche d'une barre : sur le fond de la page, comme le champ de la newsletter du menu. */
.barre-liste__cherche {
	display: flex;
	flex: 0 1 24rem;
	align-items: center;
	gap: 8px;
	min-width: 14rem;
	min-height: 44px;
	margin: 0;
	padding: 0 14px;
	box-sizing: border-box;
	border-radius: var(--dm-capsule);
	background: var(--dm-fond);
}

.barre-liste__cherche[hidden] {
	display: none;
}

.barre-liste__cherche:focus-within {
	outline: 3px solid var(--dm-encre);
	outline-offset: 2px;
}

.barre-liste__cherche svg {
	flex: none;
	width: 17px;
	height: 17px;
}

.barre-liste__cherche input {
	flex: 1;
	min-width: 0;
	padding: 0;
	border: 0;
	outline: 0;
	background: none;
	color: inherit;
	font: inherit;
	font-size: 0.95rem;
}

@container (max-width: 35.99rem) {
	.barre-liste {
		flex-wrap: wrap;
		padding: 10px;
	}

	.barre-liste__outils,
	.barre-liste__cherche {
		flex: 1 1 100%;
		min-width: 0;
	}
}

/* La barre qui compare des propositions, sur la copie de test seulement */
.comparer {
	position: fixed;
	z-index: 60;
	bottom: 16px;
	left: 50%;
	display: flex;
	gap: 4px;
	max-width: calc(100vw - 24px);
	overflow-x: auto;
	padding: 5px;
	border-radius: 999px;
	background: var(--dm-encre);
	box-shadow: var(--dm-ombre);
	transform: translateX(-50%);
}

@media (max-width: 60rem) {
	.comparer {
		bottom: 92px; /* Au-dessus de la bulle du menu. */
	}
}

.comparer a {
	padding: 8px 14px;
	border-radius: 999px;
	color: var(--dm-blanc);
	font-size: 0.9rem;
	font-weight: 600;
	white-space: nowrap;
	text-decoration: none;
}

.comparer a[aria-current] {
	background: var(--dm-ambre);
	color: var(--dm-encre);
}
