/*
Theme Name: danseclassique
Theme URI: https://danseclassique.info/
Author: danseclassique.info
Description: Thème autonome de danseclassique.info, pensé d'abord pour le mobile (refonte de novembre 2026). Variante "Scène" : en-tête et cadre en nuit, contenu sur une feuille blanche. Titres en Bricolage Grotesque, texte en Jost, palette "Opéra". Sans Bootstrap, jQuery ni Font Awesome.
Version: 0.1.0
Requires at least: 6.3
Requires PHP: 7.4
Text Domain: danseclassique
*/

/* ---------- Polices hébergées sur le site (licence OFL, voir polices/) ---------- */
@font-face {
	font-family: "Bricolage Grotesque";
	src: url("polices/bricolage-grotesque-700.woff2") format("woff2");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Jost";
	src: url("polices/jost-400-700.woff2") format("woff2");
	font-weight: 400 700;
	font-style: normal;
	font-display: swap;
}

/* ---------- Jetons : palette "Opéra" (maquettes/charte.html) ---------- */
:root {
	--velours: #7a1531;
	--velours-fonce: #560d22;
	--rose: #c2456a;
	--rose-pale: #fcecef;
	--or: #b8862b;
	--or-clair: #e3bd6f;
	/* or et rose foncés, pour les petits textes sur fond clair : l'or (3,2) et le rose (4,2 sur
	   rose pâle) restent sous le contraste de 4,5 demandé pour un texte courant (recette C1) */
	--or-texte: #8f6619;
	--rose-texte: #a8385a;
	--or-pale: #fbf3e2;
	--lilas: #5b4396;
	--lilas-pale: #f1edf9;
	--corail-pale: #fde8dc;
	--corail: #8a3a17;
	--nuit: #1f1630;
	--nuit-claire: #33243f;
	--encre: #2b2230;
	--gris: #6e6273;
	--filet: #f1e3e7;
	--emeraude: #0b7a5f;
	--rayon: 18px;
	--entete-h: 60px;
	--titres: "Bricolage Grotesque", system-ui, sans-serif;
	--texte: "Jost", "Futura", system-ui, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--entete-h) + 64px); -webkit-text-size-adjust: 100%; }
body {
	margin: 0; background: var(--nuit); color: var(--encre);
	font: 18px/1.65 var(--texte); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--velours); text-decoration-color: rgba(122, 21, 49, .35); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--rose); text-decoration-color: currentColor; }
p { margin: 0 0 16px; }
button, input, select, textarea { font: inherit; }

.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;
}
.lien-evitement { position: absolute; left: 8px; top: -60px; z-index: 100; background: #fff; color: var(--velours); padding: 10px 16px; border-radius: 999px; }
.lien-evitement:focus { top: 8px; }

/* Titres en couleur : H1 et H2 en velours, H3 en rose soutenu */
h1, h2 { font-family: var(--titres); font-weight: 700; color: var(--velours); letter-spacing: -.01em; }
h1 { font-size: 36px; line-height: 1.1; margin: 8px 0 12px; }
h2 { font-size: 28px; line-height: 1.18; margin: 44px 0 14px; }
h2::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--or), var(--or-clair)); margin-bottom: 12px; }
h3 { font: 600 20px/1.3 var(--texte); color: var(--rose); margin: 30px 0 8px; }
h4, h5, h6 { font: 600 18px/1.35 var(--texte); color: var(--velours-fonce); margin: 24px 0 8px; }

/* ---------- En-tête sur fond nuit ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50; height: var(--entete-h);
	display: flex; align-items: center; gap: 10px; padding: 0 8px 0 16px;
	background: rgba(31, 22, 48, .94); backdrop-filter: saturate(1.5) blur(10px); -webkit-backdrop-filter: saturate(1.5) blur(10px);
	border-top: 3px solid var(--velours); box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
}
.logo { display: inline-flex; align-items: center; flex: none; text-decoration: none; }
.logo img { display: block; flex: none; }
.logo-horizontal { width: auto; height: 30px; }
.logo .logo-carre { display: none; width: 32px; height: 32px; }
.entete-titre { display: none; }
.entete-actions { display: flex; gap: 2px; margin-left: auto; }
.bouton-icone {
	width: 44px; height: 44px; border: 0; background: none; border-radius: 50%;
	display: grid; place-items: center; color: #fff; cursor: pointer;
}
.bouton-icone:hover, .bouton-icone[aria-expanded="true"] { background: rgba(255, 255, 255, .1); }
.nav-principale { display: none; }

/* En-tête compact au défilement : logo carré, titre de la page, filet or */
.entete-compact .site-header .logo-horizontal, .entete-compact .nav-principale { display: none; }
.entete-compact .site-header .logo-carre { display: block; }
.entete-compact .entete-titre {
	display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
	flex: 1; min-width: 0; margin: 0; font: 700 15px/1.2 var(--titres); color: #fff;
}
.entete-compact .site-header { box-shadow: inset 0 -3px 0 var(--or), 0 6px 16px -10px rgba(0, 0, 0, .5); }

/* ---------- Menu mobile sur fond nuit ---------- */
.menu-panneau {
	position: fixed; inset: var(--entete-h) 0 0 0; z-index: 49; overflow-y: auto;
	background: var(--nuit); padding: 12px 16px 32px;
}
.menu-panneau[hidden] { display: none; }
.menu-ouvert body { overflow: hidden; }
.menu-recherche { display: flex; gap: 8px; margin: 4px 0 14px; background: #fff; border-radius: 999px; padding: 4px 4px 4px 16px; }
.menu-recherche input { flex: 1; min-width: 0; border: 0; background: none; outline: none; color: var(--encre); }
.menu-recherche button { border: 0; background: var(--velours); color: #fff; border-radius: 999px; padding: 8px 18px; font-weight: 600; font-size: 15px; cursor: pointer; }
.menu-rubriques { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.menu-autres { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.menu-autres a { padding: 8px 15px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: #fff; text-decoration: none; font-size: 15px; font-weight: 500; }
.menu-autres a:hover { background: var(--rose); }
.menu-groupe { margin-top: 20px; }
.menu-groupe .menu-autres { margin-top: 0; gap: 6px; }
.menu-groupe .menu-autres a { padding: 6px 12px; font-size: 14px; }
.menu-groupe-titre { margin: 0 0 8px; font: 600 13px/1.3 var(--texte); letter-spacing: .08em; text-transform: uppercase; color: var(--or); }
.menu-groupe-titre a { color: inherit; text-decoration: none; }
.menu-groupe-titre a:hover { color: #fff; }

/* Cartes à fond coloré (rubriques, listes voisines…) : le nombre en grand, le libellé dessous */
.carte-couleur {
	display: flex; flex-direction: column; justify-content: flex-end; min-height: 96px; padding: 14px;
	border-radius: var(--rayon); text-decoration: none; background: var(--rose-pale); color: var(--velours-fonce);
}
.carte-couleur b { font: 700 26px/1 var(--titres); letter-spacing: -.01em; }
.carte-couleur span { font-size: 15px; line-height: 1.25; margin-top: 4px; }
.carte-couleur--or { background: var(--or-pale); color: #6b4c12; }
.carte-couleur--lilas { background: var(--lilas-pale); color: var(--lilas); }
.carte-couleur--corail { background: var(--corail-pale); color: var(--corail); }
.carte-couleur:hover { color: inherit; filter: brightness(.97); }

/* ---------- Mise en page : la scène, puis la feuille blanche ---------- */
.wrap { padding: 0 16px; max-width: 1140px; margin: 0 auto; }

/* "Scène" : en-tête des pages, comme un plateau éclairé par la poursuite */
.scene { background: radial-gradient(120% 100% at 15% 0%, #6e1f42 0%, #3b1838 48%, var(--nuit) 100%); color: #efe7f2; }
.scene .wrap { padding-bottom: 44px; }
.scene h1 { color: #fff; margin-bottom: 0; }

/* Fil d'Ariane de Rank Math : une ligne qui défile, séparateurs en or */
.rank-math-breadcrumb { font-size: 14px; color: #cbbcd2; padding: 14px 0 6px; }
.rank-math-breadcrumb p {
	margin: 0; display: flex; gap: 6px; overflow-x: auto; white-space: nowrap; scrollbar-width: none;
}
.rank-math-breadcrumb p::-webkit-scrollbar { display: none; }
.rank-math-breadcrumb a { color: #cbbcd2; text-decoration: none; }
.rank-math-breadcrumb a:hover { color: #fff; }
.rank-math-breadcrumb .separator { color: var(--or-clair); }

.feuille {
	position: relative; background: #fff; border-radius: 24px 24px 0 0;
	margin-top: -22px; padding-top: 6px; padding-bottom: 32px; min-height: 40vh;
}
.colonne { max-width: 760px; margin-inline: auto; }

/* Sommaire collant, construit depuis les H2 (inc/sommaire.php), à partir de trois entrées */
.sommaire {
	position: sticky; top: var(--entete-h); z-index: 20; margin: 0 -16px; padding: 10px 16px;
	display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
	background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
	box-shadow: 0 1px 0 var(--filet); border-radius: 24px 24px 0 0;
}
.sommaire::-webkit-scrollbar { display: none; }
.sommaire a { flex: none; padding: 8px 15px; border-radius: 999px; background: var(--rose-pale); font: 500 15px/1 var(--texte); color: var(--velours); text-decoration: none; }
.sommaire a.est-actif { background: var(--velours); color: #fff; }

/* ---------- Contenu ---------- */
.entry-content::after { content: ""; display: table; clear: both; }
.entry-content > :first-child { margin-top: 20px; }
.entry-content ul { padding-left: 0; list-style: none; margin: 0 0 20px; }
.entry-content ul li { position: relative; padding: 4px 0 4px 26px; }
.entry-content ul li::before { content: ""; position: absolute; left: 4px; top: 15px; width: 8px; height: 8px; background: var(--or); transform: rotate(45deg); border-radius: 1px; }
.entry-content ol { padding-left: 26px; margin: 0 0 20px; }
.entry-content ol li { padding: 4px 0; }
.entry-content ol li::marker { color: var(--or-texte); font-weight: 600; }
.entry-content strong { color: var(--velours-fonce); }
.entry-content blockquote { margin: 24px 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--rose); color: var(--gris); }
.entry-content figure, .entry-content .wp-block-image { margin: 24px -16px; }
/* Ancien balisage des images : la figure dans un div.wp-block-image ne reprend pas la marge négative */
.entry-content .wp-block-image > figure { margin-inline: 0; }
.entry-content figure img { width: 100%; display: block; }
.entry-content figcaption, .wp-caption-text { font-size: 14px; color: var(--gris); padding: 8px 16px 0; }
.entry-content iframe { max-width: 100%; }
/* Vidéos intégrées (bloc Embed) : cadre au format de la vidéo, que la feuille des blocs de
   WordPress, non chargée, posait avant. WP Rocket y place son lecteur différé en position absolue. */
.wp-has-aspect-ratio .wp-block-embed__wrapper { position: relative; border-radius: var(--rayon); overflow: hidden; background: var(--nuit); }
.wp-has-aspect-ratio .wp-block-embed__wrapper::before { content: ""; display: block; padding-top: 56.25%; }
.wp-embed-aspect-4-3 .wp-block-embed__wrapper::before { padding-top: 75%; }
.wp-embed-aspect-9-16 .wp-block-embed__wrapper::before { padding-top: 177.78%; }
.wp-has-aspect-ratio .wp-block-embed__wrapper iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.wp-caption { max-width: 100%; }
.aligncenter { margin-inline: auto; display: block; }

/* Tableaux : défilent en largeur sur mobile, en-tête velours, lignes alternées */
.wp-block-table { overflow-x: auto; margin: 16px -16px !important; padding: 0 16px; }
/* Tableau centré (règle des tableaux du 22/11/2026) : la feuille du bloc de WordPress le passe en
   display: table, qui annule le défilement en largeur */
.entry-content .wp-block-table.aligncenter { display: block; width: auto; }
.entry-content table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 16px; border-radius: 14px; overflow: hidden; }
.wp-block-table table { min-width: 520px; }
.entry-content th, .entry-content td { text-align: left; padding: 10px 12px; vertical-align: top; }
.entry-content tbody tr:nth-child(odd) td { background: #fff8f9; }
.entry-content tbody tr:nth-child(even) td { background: var(--rose-pale); }
.entry-content th, .wp-block-table table:not(:has(thead)) tr:first-child td { background: var(--velours); color: #fff; font-weight: 600; }
.entry-content th strong { color: #fff; }

/* ---------- Listes génériques (archives et recherche, en attendant les gabarits B3 à B9) ---------- */
.description-terme { margin-top: 20px; }
.grille-cartes { display: grid; gap: 12px; margin: 24px 0; }
.carte {
	display: grid; grid-template-columns: 88px 1fr; gap: 14px; align-items: center; min-height: 88px;
	text-decoration: none; color: var(--encre); background: var(--lilas-pale); border-radius: 16px; overflow: hidden;
}
.carte:nth-child(3n+2) { background: var(--rose-pale); }
.carte:nth-child(3n) { background: var(--or-pale); }
.carte-image { width: 88px; height: 88px; object-fit: cover; display: block; }
.carte-titre { grid-column: 2; font: 700 17px/1.25 var(--titres); color: var(--velours); padding: 12px 12px 12px 0; }
.carte:not(:has(.carte-image)) .carte-titre { grid-column: 1 / -1; padding-left: 16px; }
.carte:hover .carte-titre { color: var(--rose); }

.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 24px 0; }
.pagination .page-numbers { min-width: 40px; padding: 8px 14px; border-radius: 999px; background: var(--rose-pale); color: var(--velours); text-decoration: none; text-align: center; font-weight: 500; }
.pagination .page-numbers.current { background: var(--velours); color: #fff; }
.pagination .page-numbers.dots { background: none; }

/* ---------- Fiche personne (étape B3, maquettes/fiche-personne.html) ---------- */
.badges { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 10px; }
.badge {
	display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; border-radius: 999px;
	font: 600 11.5px/1 var(--texte); letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
	background: rgba(255, 255, 255, .13); color: #fff;
}
a.badge:hover { background: var(--rose); color: #fff; }
.badge--or { background: rgba(227, 189, 111, .22); color: #f3d491; }
.meta { font-size: 14px; color: #cbbcd2; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; margin: 0; }
.meta svg { vertical-align: -2px; margin-right: 4px; color: var(--or-clair); }

.person-hero { display: flex; gap: 16px; align-items: center; margin-top: 8px; }
.person-hero h1 { margin: 0 0 10px; }
.person-photo {
	flex: none; width: 108px; height: 108px; border-radius: 50%; object-fit: cover;
	box-shadow: 0 0 0 4px #3b1838, 0 0 0 6px var(--or-clair);
}
.person-monogramme {
	display: grid; place-items: center; background: linear-gradient(145deg, #8e2142, #4a1838);
	color: #f3d491; font: 700 40px/1 var(--titres); letter-spacing: .02em;
}

.chapo { font-size: 20px; line-height: 1.55; margin: 22px 0; padding-left: 16px; border-left: 4px solid var(--rose); }
.entry-content .chapo strong { color: var(--encre); font-weight: 500; }
.chapo:has(+ .chapo) { margin-bottom: 0; padding-bottom: 14px; }
.chapo + .chapo { margin-top: 0; }

/* Fiche d'identité sur fond nuit, liens en pastilles sans soulignement */
.idcard {
	border-radius: var(--rayon); padding: 18px 18px 8px; margin: 24px 0;
	background: radial-gradient(140% 80% at 100% 0%, #4a1a3c 0%, var(--nuit) 60%); color: #efe7f2;
}
.idcard .idcard-titre { font: 700 22px/1.2 var(--titres); color: #fff; margin: 0 0 8px; }
.idcard ul { list-style: none; margin: 0; padding: 0; }
.entry-content .idcard li { padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 16px; line-height: 1.45; }
.entry-content .idcard li:first-child { border-top: 0; }
.entry-content .idcard li::before { display: none; }
.idcard .lbl { display: block; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: #eea9ba; font-weight: 600; }
.idcard .age { font: 700 26px/1.2 var(--titres); color: #f3d491; }
.idcard a {
	display: inline-block; text-decoration: none; color: #fff; background: rgba(255, 255, 255, .1);
	border-radius: 999px; padding: 3px 12px; margin: 3px 0 0; line-height: 1.4; transition: background .15s;
}
.idcard a:hover { background: var(--rose); color: #fff; }
.idcard .puces { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.idcard .puces a { margin: 0; }
.idcard .mixte a { display: inline; background: none; padding: 0; margin: 0; color: #f5c2cf; border-bottom: 1px dotted rgba(245, 194, 207, .5); border-radius: 0; }
.idcard .mixte a:hover { background: none; color: #fff; border-bottom-color: #fff; }
.socials { display: flex; gap: 8px; margin-top: 6px; }
.idcard .socials a { display: grid; place-items: center; margin: 0; padding: 0; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; }

/* Frise des paragraphes "AAAA : …" */
.entry-content .timeline { list-style: none; margin: 18px 0 24px; padding: 0; }
.entry-content .timeline li { display: grid; grid-template-columns: 56px 1fr; gap: 14px; padding: 0; }
.entry-content .timeline li::marker { content: none; }
.timeline .year { font: 700 18px/1.5 var(--titres); color: var(--velours); text-align: right; }
.timeline .event { position: relative; margin: 0; padding: 0 0 20px 22px; border-left: 2px solid var(--rose-pale); font-size: 17px; line-height: 1.55; }
.timeline .event::before { content: ""; position: absolute; left: -8px; top: 7px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--rose); }
.timeline li.key .event::before { background: var(--or); border-color: var(--or-pale); box-shadow: 0 0 0 2px var(--or); }
.timeline li:last-child .event { border-left-color: transparent; }

/* Cartes "Pour en savoir plus" */
.linkcard { background: var(--or-pale); border-radius: 14px; padding: 14px 16px 14px 48px; position: relative; font-size: 16px; }
.linkcard::before { content: "→"; position: absolute; left: 16px; top: 13px; font-size: 20px; color: var(--or); font-weight: 600; }
.linkcard a { font-weight: 600; }

/* Cartes de fin de fiche (Instagram, guide d'histoire) */
.card { border-radius: var(--rayon); padding: 18px; margin: 24px 0; font-size: 16px; }
.card--lilas { background: var(--lilas-pale); }
.card--or { background: var(--or-pale); }
.card--rose { background: var(--rose-pale); }
.card-titre { font: 600 13px/1 var(--texte); letter-spacing: .1em; text-transform: uppercase; margin: 0 0 12px; display: flex; align-items: center; gap: 6px; }
.card--lilas .card-titre { color: var(--lilas); }
.insta-profil { display: flex; gap: 14px; align-items: center; }
.insta-profil img { width: 60px; height: 60px; border-radius: 50%; box-shadow: 0 0 0 3px #fff; }
.insta-profil a { font-weight: 600; font-size: 17px; color: var(--lilas); }
.insta-bio { font-size: 15px; line-height: 1.5; margin: 12px 0; }
.insta-post { display: flex; gap: 12px; align-items: center; background: #fff; border-radius: 12px; padding: 8px; font-size: 14px; color: var(--gris); text-decoration: none; }
.insta-post .vignette { width: 72px; height: 72px; border-radius: 8px; background: linear-gradient(135deg, #e7def6, #f8dfe6); flex: none; overflow: hidden; }
.insta-post .vignette img { width: 100%; height: 100%; object-fit: cover; display: block; }
.histoire { display: flex; gap: 14px; align-items: flex-start; }
.histoire svg { flex: none; color: #8a6417; margin-top: 3px; }
.histoire p { margin: 0; }

/* Bande sombre et rail de cartes (personnes proches) */
.bande-sombre { background: var(--nuit); color: #efe7f2; margin: 36px -16px; padding: 4px 16px 20px; }
.bande-sombre h2 { color: #fff; margin-top: 24px; }
.rail { display: flex; gap: 12px; overflow-x: auto; margin: 0 -16px; padding: 4px 16px 12px; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail a { flex: none; width: 144px; scroll-snap-align: start; text-decoration: none; background: var(--nuit-claire); border-radius: 16px; overflow: hidden; }
.rail a:hover { background: var(--velours); }
.rail img, .rail .proche-mono { display: block; width: 144px; height: 144px; object-fit: cover; }
.rail .proche-mono { display: grid; place-items: center; background: linear-gradient(145deg, #8e2142, #4a1838); color: #f3d491; font: 700 40px/1 var(--titres); }
.rail span:not(.proche-mono) { display: block; padding: 10px 12px 12px; }
.rail b { display: block; font: 700 16px/1.2 var(--titres); color: #fff; }
.rail small { color: #b9adc2; font-size: 13px; line-height: 1.3; display: block; margin-top: 2px; }

/* Widgets de la barre "Sidebar Personne" en cartes à fond coloré */
.widgets { display: grid; gap: 12px; margin-top: 32px; }
.widgets .widget { border-radius: var(--rayon); padding: 18px; font-size: 16px; background: var(--rose-pale); }
.widgets .widget:nth-child(3n+2) { background: var(--lilas-pale); }
.widgets .widget:nth-child(3n) { background: var(--or-pale); }
.widgets .widget-title { font: 700 20px/1.2 var(--titres); color: var(--velours); margin: 0 0 6px; }
.widgets p { margin: 0; }
.widgets ul { margin: 0; padding-left: 18px; }
.widgets .dci { color: var(--velours); cursor: pointer; }

/* Commentaires */
.commentaires { margin-top: 32px; font-size: 16px; }
.commentaires textarea, .commentaires input[type="text"], .commentaires input[type="email"], .commentaires input[type="url"] {
	width: 100%; border: 1px solid var(--filet); border-radius: 12px; padding: 10px 12px;
}
.commentaires input[type="submit"] { border: 0; border-radius: 999px; background: var(--velours); color: #fff; padding: 10px 20px; font-weight: 600; cursor: pointer; }

/* Colonne de la fiche d'identité : sur mobile, elle n'existe pas (la fiche suit le chapô) */
.colonne-fiche, .colonne-moitie { display: contents; }
.colonne-moitie--pub { display: none; }

/* ---------- Pubs : hauteur réservée selon le format (décision A4, à mesurer en C1) ---------- */
/* Sans marge latérale automatique : dans une grille (contenu des fiches à partir de 1 024 px,
   grilles de cartes, accueil), elle réduirait à zéro la largeur d'une pub encore vide, et AdSense
   ne remplit pas un emplacement sans largeur (vu en C1). La pub verticale de 300 × 600, seule à
   taille fixe, est centrée par sa propre règle. */
ins.adsbygoogle[data-ad-slot] { margin: 28px 0; }
/* hauteurs mobiles mesurées en prod le 23/11/2026 (375 px) : in-article de 368 à 391 px, in-feed
   de 188 à 204 px ; en grand écran, in-article de 280 à 350 px */
ins.adsbygoogle[data-ad-layout="in-article"] { min-height: 360px; }
ins.adsbygoogle[data-ad-format="auto"] { min-height: 280px; }
ins.adsbygoogle[data-ad-layout-key] { min-height: 185px; }
ins.adsbygoogle[data-ad-format="autorelaxed"] { min-height: 420px; }
ins.adsbygoogle.pub-vide { display: none !important; }
/* Dans une grille de cartes, la pub occupe toute la rangée : sans marge latérale automatique, qui
   réduirait sa largeur à zéro tant qu'elle est vide (AdSense ne remplit pas un emplacement sans largeur) */
.grille-personnes > ins.adsbygoogle, .grille-ecoles > ins.adsbygoogle, .grille-stages > ins.adsbygoogle { margin-inline: 0; width: 100%; }

/* ---------- Pages et guides (étape B4, maquettes/guide.html et hub.html) ---------- */
.kicker {
	display: inline-block; font: 600 12px/1 var(--texte); letter-spacing: .12em; text-transform: uppercase;
	padding: 6px 10px; border-radius: 999px; margin: 6px 0 0; background: rgba(255, 255, 255, .13); color: #f5c2cf;
}
.page-entete h1 { margin-bottom: 12px; }
.page-links { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 24px 0; }

/* FAQ Rank Math : chaque question en carte de couleur, rien n'est replié (décision A7) */
.rank-math-block .rank-math-list { display: grid; gap: 10px; margin: 16px 0 24px; }
.rank-math-block .rank-math-list-item { background: var(--rose-pale); border-radius: var(--rayon); padding: 14px 18px 4px; }
.rank-math-block .rank-math-list-item:nth-child(3n+2) { background: var(--lilas-pale); }
.rank-math-block .rank-math-list-item:nth-child(3n) { background: var(--or-pale); }
.rank-math-block .rank-math-question { margin: 0 0 6px; font-size: 18px; color: var(--velours); }
.rank-math-block .rank-math-answer p:last-child { margin-bottom: 10px; }

/* Autres guides : cartes avec image dans une bande sombre */
.guides-grid { display: grid; gap: 12px; margin: 16px 0 8px; }
.guide-card {
	display: grid; grid-template-columns: 104px 1fr; gap: 14px; align-items: center; min-height: 104px;
	text-decoration: none; border-radius: 16px; overflow: hidden; background: var(--nuit-claire);
}
.guide-card img, .guide-card .vignette-vide { width: 104px; height: 104px; object-fit: cover; display: block; }
.guide-card .vignette-vide { background: linear-gradient(145deg, #8e2142, #4a1838); }
.guide-card b { font: 700 17px/1.25 var(--titres); color: #fff; display: block; padding-right: 12px; }
.guide-card small { display: block; color: #b9adc2; font-size: 14px; line-height: 1.3; margin-top: 4px; padding-right: 12px; }
.guide-card:hover { background: var(--velours); }

/* Page hub : chaque H2 qui a des H3 devient une étape numérotée, chaque H3 une carte */
.hub .entry-content { counter-reset: etape; }
.hub-section--etape { counter-increment: etape; }
.hub-section--etape > h2::before {
	content: "Étape " counter(etape); width: fit-content; height: auto;
	font: 600 12px/1 var(--texte); letter-spacing: .12em; text-transform: uppercase;
	color: #8a6417; background: var(--or-pale); padding: 7px 12px; border-radius: 999px; margin-bottom: 12px;
}
.hub-grille { display: grid; gap: 14px; margin: 18px 0 8px; }
.hub-carte { border-radius: var(--rayon); padding: 2px 18px 6px; font-size: 17px; line-height: 1.6; min-width: 0; }
.hub-carte > h3 { margin-top: 16px; }
.hub-carte p:last-child, .hub-carte ul:last-child { margin-bottom: 12px; }
.hub-carte--rose { background: var(--rose-pale); }
.hub-carte--or { background: var(--or-pale); }
.hub-carte--or h3 { color: #8a5a10; }
.hub-carte--lilas { background: var(--lilas-pale); }
.hub-carte--lilas h3 { color: var(--lilas); }
.hub-carte--image { background: #fff; border: 1px solid var(--filet); box-shadow: 0 6px 22px -14px rgba(86, 13, 34, .35); padding-top: 0; overflow: hidden; }
.hub-carte-visuel { display: block; position: relative; margin: 0 -18px; aspect-ratio: 16 / 8; overflow: hidden; background: var(--nuit); text-decoration: none; }
.hub-carte-visuel img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.hub-carte-visuel:hover img { transform: scale(1.04); }
.hub-carte-visuel span {
	position: absolute; inset: auto 0 0 0; padding: 28px 18px 10px; color: #fff;
	font: 700 16px/1.25 var(--titres); background: linear-gradient(transparent, rgba(31, 22, 48, .88));
}
.entry-content .hub-carte figure, .hub-carte .wp-block-table { margin-inline: 0 !important; padding: 0; }
.hub-carte .wp-block-table table { min-width: 0; font-size: 15px; }
.hub-carte .wp-block-table tbody tr:nth-child(odd) td { background: #fff; }
.hub-carte .wp-block-table tbody tr:nth-child(even) td { background: rgba(255, 255, 255, .55); }
.hub-carte .linkcard { background: rgba(255, 255, 255, .7); }
.hub-carte--image .linkcard { background: var(--or-pale); }
.hub-carte ul:not(.pastilles) li { padding-block: 3px; }
.hub-carte ul:not(.pastilles) li::before { top: 14px; }

/* Listes faites uniquement de liens : pastilles */
.entry-content ul.pastilles { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 16px; }
.entry-content ul.pastilles li { padding: 0; }
.entry-content ul.pastilles li::before { display: none; }
.pastilles a { display: inline-block; padding: 7px 14px; border-radius: 999px; background: #fff; border: 1.5px solid rgba(122, 21, 49, .18); text-decoration: none; font-size: 15px; font-weight: 500; line-height: 1.3; }
.pastilles a:hover { background: var(--velours); border-color: var(--velours); color: #fff; }
.hub-carte--image .pastilles a { background: var(--rose-pale); border-color: transparent; }

/* Liste numérotée d'une section sans H3 : des marches sur fond nuit */
.entry-content ol.marches { list-style: none; counter-reset: marche; padding: 0; margin: 18px 0 22px; display: grid; gap: 12px; }
.entry-content ol.marches li { counter-increment: marche; position: relative; background: var(--nuit); color: #e6dcea; border-radius: var(--rayon); padding: 16px 18px 16px 70px; font-size: 17px; line-height: 1.55; }
.entry-content ol.marches li::marker { content: none; }
.marches li::before { content: counter(marche); position: absolute; left: 18px; top: 14px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--or); color: #fff; font: 700 19px/1 var(--titres); }
.entry-content .marches li strong { display: block; color: #fff; font: 700 19px/1.3 var(--titres); margin-bottom: 2px; }
.marches a { color: #f5c2cf; }

/* ---------- Listes de personnes (étape B5, maquettes/liste.html) ---------- */
/* Moteur de recherche Google sur la scène, bouton vers la liste */
.liste-recherche { margin: 18px 0 0; max-width: 560px; }
.liste-recherche p { font-size: 14px; color: #cbbcd2; margin: 0 0 6px; }
.liste-recherche .gsc-control-cse { background: #fff; border: 0; border-radius: 16px; padding: 6px 8px; }
.liste-recherche .gsc-control-cse * { font-family: var(--texte) !important; }
.scene-intro { font-size: 16px; line-height: 1.55; color: #e6dcea; margin: 14px 0 0; }
.scene-intro .dci { color: #f5c2cf; border-bottom: 1px dotted rgba(245, 194, 207, .6); }
.vers-liste { display: inline-flex; gap: 6px; margin-top: 16px; padding: 9px 16px; border-radius: 999px; background: rgba(227, 189, 111, .2); color: #f3d491; font: 600 15px/1.2 var(--texte); text-decoration: none; }
.vers-liste:hover { background: var(--or); color: #fff; }

/* Description : "Accès rapide" en pastilles */
.liste-intro { padding-top: 10px; }
.acces-rapide { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 15px; color: var(--gris); }
.acces-rapide .sep { display: none; }
.acces-rapide a { padding: 6px 13px; border-radius: 999px; background: var(--rose-pale); text-decoration: none; font-weight: 500; }
.acces-rapide a:hover { background: var(--velours); color: #fff; }

/* Tête de liste : H2, nombre de résultats, filtre par nom */
.liste-tete { max-width: 760px; margin: 0 auto; }
.liste-tete h2 { margin-top: 36px; }
.liste-compte { color: var(--gris); font-size: 16px; margin: 16px 0 12px; }
.liste-compte strong { color: var(--velours); font-weight: 600; }
.liste-filtre { display: flex; align-items: center; gap: 10px; border: 2px solid var(--rose-pale); border-radius: 999px; padding: 6px 16px; color: var(--rose); margin: 0 0 8px; }
.liste-filtre:focus-within { border-color: var(--rose); }
.liste-filtre input { flex: 1; min-width: 0; border: 0; font-size: 16px; outline: none; color: var(--encre); padding: 4px 0; background: none; }
.liste-filtre output { font-size: 14px; color: var(--gris); white-space: nowrap; }

/* Groupes et index alphabétique */
.liste-groupe-titre { display: flex; align-items: center; gap: 10px; font: 700 24px/1.2 var(--titres); color: var(--velours); margin: 34px 0 6px; }
.liste-groupe-titre small { font: 600 13px/1 var(--texte); color: #fff; background: var(--rose); border-radius: 999px; padding: 5px 10px; }
.lettre { grid-column: 1 / -1; margin: 18px 0 0; font: 700 30px/1 var(--titres); color: var(--velours); display: flex; align-items: center; gap: 12px; }
.lettre::after { content: ""; flex: 1; height: 2px; background: linear-gradient(90deg, var(--or-pale), transparent); }
.sommaire--lettres { gap: 4px; }
.sommaire--lettres a { width: 36px; padding: 8px 0; text-align: center; font-weight: 600; }
.filtre-masque { display: none !important; }

/* Cartes de personnes : photo ou monogramme, repère, fonctions et distinctions en pastilles */
.grille-personnes { display: grid; gap: 10px; margin: 12px 0 8px; }
.grille-personnes > ins.adsbygoogle { grid-column: 1 / -1; margin-block: 8px; }
.carte-personne {
	position: relative; display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; align-items: start; padding: 14px;
	border-radius: var(--rayon); background: #fff; border: 1px solid var(--filet); box-shadow: 0 6px 20px -16px rgba(86, 13, 34, .45);
	transition: border-color .15s, transform .15s, box-shadow .15s;
}
.carte-personne:has(.cp-nom a):hover { border-color: rgba(194, 69, 106, .45); transform: translateY(-2px); box-shadow: 0 12px 26px -18px rgba(86, 13, 34, .6); }
.cp-photo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--rose-pale); }
.cp-monogramme { display: grid; place-items: center; background: linear-gradient(145deg, #8e2142, #4a1838); color: #f3d491; font: 700 24px/1 var(--titres); }
.cp-corps p { margin: 0; }
.cp-nom { font: 700 19px/1.2 var(--titres); color: var(--velours); padding-top: 4px; }
.cp-nom a { color: inherit; text-decoration: none; }
.cp-nom a::after { content: ""; position: absolute; inset: 0; border-radius: var(--rayon); }
.cp-corps .cp-repere { font-size: 14px; line-height: 1.4; color: var(--gris); margin-top: 3px; }
.cp-corps .cp-fonctions, .cp-corps .cp-distinctions { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.cp-fonctions > a, .cp-fonctions > span:not(.screen-reader-text), .cp-distinctions > a, .cp-distinctions > span:not(.screen-reader-text) {
	position: relative; z-index: 1; font-size: 13px; line-height: 1.3; padding: 3px 10px; border-radius: 999px; text-decoration: none;
}
.cp-fonctions > a { background: var(--rose-pale); color: var(--velours); }
.cp-fonctions > a:hover { background: var(--velours); color: #fff; }
.cp-fonctions > span:not(.screen-reader-text) { box-shadow: inset 0 0 0 1.5px var(--rose-pale); color: var(--gris); }
.cp-distinctions > a, .cp-distinctions > span:not(.screen-reader-text) { padding-left: 8px; background: var(--or-pale); color: #7a5713; }
.cp-distinctions > a::before, .cp-distinctions > span:not(.screen-reader-text)::before { content: "★ "; color: var(--or); }
.cp-distinctions > a:hover { background: var(--or); color: #fff; }
.cp-distinctions > a:hover::before { color: #fff; }
/* Fiche en noindex : pas de lien, carte plus discrète */
.carte-personne.sans-lien { background: #fbf9fa; box-shadow: none; }
.carte-personne.sans-lien .cp-nom { color: var(--encre); }
.carte-personne.sans-lien .cp-monogramme { background: linear-gradient(145deg, #8a7790, #6e6273); color: #fff; }

/* Autres listes dans la bande sombre : cartes à fond coloré */
.listes-voisines h3 { font: 600 12px/1 var(--texte); letter-spacing: .1em; text-transform: uppercase; color: var(--or-clair); margin: 20px 0 10px; }
.grille-voisines { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.grille-voisines a { display: flex; flex-direction: column; justify-content: space-between; min-height: 76px; padding: 12px 14px; border-radius: 14px; text-decoration: none; background: #3a1f3e; }
.grille-voisines a:nth-child(3n+2) { background: #2f2650; }
.grille-voisines a:nth-child(3n) { background: #3d2a1f; }
.grille-voisines b { font: 700 16px/1.2 var(--titres); color: #fff; }
.grille-voisines small { font-size: 13px; color: #cbbcd2; margin-top: 6px; }
.grille-voisines a:hover { background: var(--velours); }

/* Archive /personnes/ : fonctions et distinctions en cartes à fond coloré */
.grille-termes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0 8px; }
.grille-termes .carte-couleur { min-height: 88px; }

/* ---------- Pied de page sur fond nuit ---------- */
.site-footer { background: var(--nuit); color: #ddd5e4; padding: 32px 0 40px; font-size: 16px; }
.site-footer .logo { margin-bottom: 20px; }
.pied-liens { display: flex; flex-direction: column; gap: 4px; margin-bottom: 20px; }
.pied-liens a { color: #f1ecf5; text-decoration: none; padding: 5px 0; }
.pied-liens a:hover { color: var(--or-clair); }
.pied-legal { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14px; color: #a79bb0; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 18px; }
.dci { cursor: pointer; }
.pied-legal .dci:hover, .pied-legal .dci:focus { color: #fff; text-decoration: underline; }

/* ---------- À partir de 760 px ---------- */
@media (min-width: 760px) {
	h1 { font-size: 50px; }
	h2 { font-size: 32px; }
	.logo-horizontal { height: 34px; }
	.entete-compact .entete-titre { font-size: 20px; -webkit-line-clamp: 1; }
	.menu-rubriques { grid-template-columns: repeat(4, 1fr); }
	.feuille { border-radius: 28px; margin-bottom: 40px; padding: 8px 32px 32px; }
	.sommaire { margin-inline: -32px; padding-inline: 32px; border-radius: 28px 28px 0 0; }
	.entry-content figure, .entry-content .wp-block-image, .wp-block-table { margin-inline: 0 !important; }
	.entry-content figure img { border-radius: var(--rayon); }
	.entry-content .alignright { float: right; max-width: 45%; margin: 6px 0 16px 24px; }
	.entry-content .alignleft { float: left; max-width: 45%; margin: 6px 24px 16px 0; }
	.entry-content h2 { clear: both; }
	.grille-cartes { grid-template-columns: repeat(2, 1fr); }
	ins.adsbygoogle[data-ad-layout="in-article"] { min-height: 280px; }
	ins.adsbygoogle[data-ad-format="auto"] { min-height: 250px; }
	ins.adsbygoogle[data-ad-layout-key] { min-height: 140px; }
	ins.adsbygoogle[data-ad-format="autorelaxed"] { min-height: 340px; }
	.pied-liens { flex-direction: row; flex-wrap: wrap; gap: 4px 28px; }
	.person-photo { width: 156px; height: 156px; }
	.person-monogramme { font-size: 56px; }
	.badge { font-size: 13px; padding: 7px 12px; }
	.badges { gap: 6px; }
	.bande-sombre { margin-inline: 0; border-radius: var(--rayon); padding-inline: 24px; }
	.bande-sombre .rail { margin-inline: -24px; padding-inline: 24px; scroll-padding-inline: 24px; }
	.widgets { grid-template-columns: repeat(3, 1fr); }
	.guides-grid { grid-template-columns: repeat(2, 1fr); }
	.hub-grille { grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
	.hub-carte--large { grid-column: 1 / -1; }
	.hub-carte-visuel { aspect-ratio: 16 / 7; }
	.hub-carte--large .hub-carte-visuel { aspect-ratio: auto; height: 260px; }
	.entry-content ol.marches { grid-template-columns: repeat(3, 1fr); }
	.entry-content ol.marches li { padding: 64px 18px 18px; }
	.marches li::before { top: 16px; }
	/* Deux colonnes au plus : la pub 'dans-liste' (avant la 3e carte, puis toutes les 6) tombe
	   ainsi en fin de rangée (règle des listes, décision A6b) */
	.grille-personnes { grid-template-columns: 1fr 1fr; gap: 14px; }
	.grille-voisines { grid-template-columns: repeat(4, 1fr); }
	.grille-termes { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- À partir de 1 024 px ---------- */
@media (min-width: 1024px) {
	.site-header { padding-inline: 24px 16px; }
	.nav-principale { display: flex; gap: 4px; margin-left: auto; }
	.nav-principale a { color: #fff; text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 10px; border-radius: 999px; white-space: nowrap; }
	.nav-principale a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
	/* Sous-menus des menus contextuels (Conditional Menus), ouverts au survol ou au clavier */
	.nav-groupe { position: relative; display: flex; }
	.nav-groupe > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 0 3px 8px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); opacity: .7; }
	.nav-sous {
		display: none; position: absolute; top: 100%; left: 0; z-index: 60; min-width: 250px;
		padding: 8px; margin-top: 6px; background: var(--nuit-claire); border-radius: 14px;
		box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .6), inset 0 3px 0 var(--or);
	}
	.nav-sous::before { content: ""; position: absolute; inset: -10px 0 auto; height: 10px; }
	.nav-groupe:nth-last-child(-n+2) .nav-sous { left: auto; right: 0; }
	.nav-sous--colonnes { width: 500px; columns: 2; column-gap: 4px; }
	.nav-sous a { display: block; break-inside: avoid; white-space: normal; padding: 7px 12px; border-radius: 8px; font-size: 15px; font-weight: 400; }
	.nav-groupe:hover .nav-sous, .nav-groupe:focus-within .nav-sous { display: block; }
	.entete-actions { margin-left: 0; }
	.js-menu { display: none; }
	.scene-entete { max-width: 760px; margin-inline: auto; }

	/* Fiche personne : la fiche d'identité passe dans une colonne collante, coupée en deux moitiés
	   quand la pub verticale y est insérée (js/theme.js, contenu de plus de 2 000 px) */
	.fiche .entry-content { display: grid; grid-template-columns: minmax(0, 1fr) 330px; column-gap: 48px; }
	.fiche .entry-content > * { grid-column: 1; }
	.fiche .entry-content > .colonne-fiche { grid-column: 2; grid-row: 1 / span 400; align-self: stretch; display: flex; flex-direction: column; gap: 40px; }
	.colonne-moitie { display: block; flex: 1 0 100%; }
	.colonne-fiche .idcard { position: sticky; top: calc(var(--entete-h) + 72px); margin: 20px 0 0; }
	.colonne-fiche.avec-pub .colonne-moitie { flex: 1 1 0; }
	.colonne-fiche.avec-pub .colonne-moitie--pub { display: block; }
	.colonne-moitie--pub ins.adsbygoogle { position: sticky; top: calc(var(--entete-h) + 72px); display: block !important; margin: 0 auto; }
	.fiche .apres-contenu, .fiche ~ .commentaires { max-width: calc(100% - 378px); }
	.fiche .bande-sombre { margin-top: 36px; }

	/* Page hub : colonne élargie pour les cartes sur deux colonnes, chapô en colonne de lecture */
	.page-hub .colonne, .page-hub .scene-entete { max-width: 1040px; }
	.hub .chapo { max-width: 760px; }
	.page-hub .guides-grid { grid-template-columns: repeat(3, 1fr); }

	/* Listes de personnes : liste élargie, description en colonne de lecture */
	.liste, .archive-personnes { max-width: 1040px; margin-inline: auto; }
	/* Colonnes de lecture de 760 px calées sur le bord gauche de la liste et du H1, comme les pages ville */
	.liste-tete { margin-inline: 0 auto; }
	.liste-personnes .liste-intro { margin-inline: max(0px, calc((100% - 1040px) / 2)) auto; }
	.grille-termes { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Fiche école (étape B6a, maquette A6a) ---------- */
.ecole-visuel { border-radius: 22px; object-fit: cover; }
.scene .ecole-visuel { box-shadow: 0 0 0 4px #3b1838, 0 0 0 6px #e3bd6f; }
.ecole-hero .person-monogramme { font-size: 36px; }
.scene .badge--ville { background: rgba(227, 189, 111, .2); color: #f3d491; text-transform: none; letter-spacing: 0; font-size: 14px; }
.badge--ville svg { width: 14px; height: 14px; }

/* Fiche d'identité de l'école : sous-titres, cours en pastilles, liens officiels */
.idcard-sous-titre { font: 600 12px/1 var(--texte); letter-spacing: .12em; text-transform: uppercase; color: #e3bd6f; margin: 16px 0 8px; }
.idcard-titre + .idcard-sous-titre { margin-top: 4px; }
.idcard--ecole .puces { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 6px; }
.idcard--ecole .puces a { margin: 0; font-size: 15px; }
.idcard-liens { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-bottom: 12px; }
.idcard .idcard-site { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 9px 16px; background: var(--rose); font-weight: 600; }
.idcard .idcard-site:hover { background: #fff; color: var(--velours); }
.idcard-liens .socials { margin: 0; }

/* Équipe et personnes associées : cartes de personnes de l'étape A3 */
.grille-personnes--ecole { margin-bottom: 4px; }
.grille-personnes--ecole .carte-personne { align-items: center; }

/* Écoles, compagnies, stages, articles liés */
.grille-liens { display: grid; gap: 10px; margin: 12px 0 8px; }
.carte-lien { display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 14px 16px; border-radius: var(--rayon); text-decoration: none; color: var(--encre); }
.carte-lien small { display: block; font: 600 11px/1 var(--texte); letter-spacing: .12em; text-transform: uppercase; color: var(--rose); margin-bottom: 6px; }
.carte-lien b { font: 700 18px/1.25 var(--titres); color: var(--velours); }
.carte-lien--rose { background: var(--rose-pale); }
.carte-lien--or { background: var(--or-pale); }
.carte-lien--or small { color: #8a6417; }
.carte-lien--lilas { background: var(--lilas-pale); }
.carte-lien--lilas small { color: var(--lilas); }
.carte-lien--image { padding: 0 16px 0 0; overflow: hidden; background: #fff; border: 1px solid var(--filet); }
.carte-lien--image img { width: 104px; height: 88px; object-fit: cover; }
a.carte-lien:hover { box-shadow: 0 10px 24px -18px rgba(86, 13, 34, .6); transform: translateY(-1px); }

/* Localisation : adresse, carte chargée au clic, liens vers les pages voisines */
.ecole-adresse { display: flex; gap: 10px; align-items: flex-start; font-size: 17px; margin: 0 0 12px; }
.ecole-adresse svg { flex: none; color: var(--rose); margin-top: 4px; }
.carte-facade { position: relative; height: 240px; border-radius: var(--rayon); overflow: hidden; margin: 0 0 18px;
	background:
		radial-gradient(circle at 50% 46%, rgba(194, 69, 106, .35) 0 30px, transparent 31px),
		repeating-linear-gradient(28deg, transparent 0 46px, rgba(255, 255, 255, .06) 46px 50px),
		repeating-linear-gradient(-62deg, transparent 0 70px, rgba(255, 255, 255, .05) 70px 76px),
		linear-gradient(160deg, #3b1838, var(--nuit)); }
.carte-facade button { position: absolute; inset: 0; width: 100%; border: 0; background: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #fff; font: 600 16px/1 var(--texte); }
.carte-pin { width: 52px; height: 52px; border-radius: 50%; background: var(--rose); display: grid; place-items: center; box-shadow: 0 0 0 6px rgba(194, 69, 106, .3); }
.carte-pin svg { width: 26px; height: 26px; }
.carte-facade button:hover .carte-pin { background: var(--or); }
.carte-facade.is-chargee { background: #eee; }
.carte-facade iframe { width: 100%; height: 100%; border: 0; }
.entry-content ul.liens-region { display: grid; gap: 8px; }
.entry-content ul.liens-region li { padding: 11px 14px 11px 40px; border-radius: 14px; background: var(--rose-pale); font-size: 16px; line-height: 1.4; }
.entry-content ul.liens-region li::before { left: 17px; top: 18px; }
.liens-region .nb { white-space: nowrap; color: var(--gris); font-size: 14px; }

/* Avertissement de fin de fiche */
.ecole-notice { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.ecole-notice svg { flex: none; color: var(--lilas); margin-top: 3px; }
.ecole-notice p { margin: 0; }

/* Autres écoles à proximité, dans une bande sombre */
.grille-proches { display: grid; gap: 8px; margin-top: 12px; }
.grille-proches a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: #3a1f3e; text-decoration: none; }
.grille-proches a:nth-child(3n+2) { background: #2f2650; }
.grille-proches a:nth-child(3n+3) { background: #3d2a1f; }
.grille-proches a:hover { background: var(--velours); }
.grille-proches img, .grille-proches .proche-mono { flex: none; width: 52px; height: 52px; border-radius: 12px; object-fit: cover; }
.grille-proches .proche-mono { display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #f3d491; font: 700 18px/1 var(--titres); }
.grille-proches b { font: 500 16px/1.3 var(--texte); color: #fff; }

/* Barre latérale "sidebar-ecole" en cartes, en fin de fiche */
.widgets--ecole .card { margin: 0; font-size: 16px; }
.widgets--ecole h3 { margin-top: 0; }
.widgets--ecole ul.pastilles { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 8px 0 0; }
.widgets--ecole .pastilles a { padding: 5px 12px; font-size: 14px; }
.widgets--ecole a.reseau { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--velours); color: #fff; margin-right: 6px; }
.widgets--ecole a.reseau:hover { background: var(--rose); }
.widgets--ecole .dci { color: var(--velours); cursor: pointer; }

@media (min-width: 760px) {
	.grille-liens { grid-template-columns: 1fr 1fr; }
	.grille-proches { grid-template-columns: 1fr 1fr; }
	.carte-facade { height: 300px; }
	.widgets--ecole { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
	.grille-proches { grid-template-columns: repeat(4, 1fr); }
	.grille-proches a { flex-direction: column; align-items: flex-start; padding: 14px; min-height: 140px; }
	.widgets--ecole { grid-template-columns: repeat(4, 1fr); }
}
/* Noms d'école souvent longs : visuel plus petit et titre plus serré sur mobile */
@media (max-width: 759px) {
	.ecole-hero { align-items: flex-start; }
	.ecole-hero .ecole-visuel { width: 84px; height: 84px; border-radius: 18px; margin-top: 6px; }
	.ecole-hero h1 { font-size: 30px; }
	.ecole-hero .person-monogramme { font-size: 28px; }
}

/* ---------- Listes d'écoles : villes, départements, pays, types, cours, intersections (étape B6b, maquette A6b) ---------- */
/* Scène : type de page, H1, phrase du nombre d'écoles et de la mise à jour */
.ville-hero h1 { margin: 10px 0 12px; }
.ville-intro { display: flex; gap: 8px; align-items: baseline; margin: 0; font-size: 17px; line-height: 1.5; color: #cbbcd2; }
.ville-intro svg { flex: none; color: var(--or-clair); position: relative; top: 2px; }
.ville-intro strong { color: #fff; font-weight: 600; }
.ville-intro strong:first-child { color: #f3d491; }

/* Description du terme en colonne de lecture */
.ville-description { max-width: 760px; padding-top: 8px; }
.page-ville > .linkcard, .ville-tete .linkcard { max-width: 760px; }

/* Intersections cours et ville : pastilles avec le nombre d'écoles */
.intersections-intro { color: var(--gris); font-size: 16px; margin: 0 0 10px; }
.entry-content ul.intersections { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.entry-content ul.intersections li { padding: 0; }
.entry-content ul.intersections li::before { display: none; }
.intersections a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border-radius: 999px; background: var(--rose-pale); color: var(--velours); text-decoration: none; font-size: 15px; font-weight: 500; line-height: 1.2; }
.intersections small { min-width: 26px; padding: 3px 7px; border-radius: 999px; background: #fff; color: var(--rose); font-size: 13px; font-weight: 600; text-align: center; }
.intersections a:hover { background: var(--velours); color: #fff; }
.intersections a:hover small { background: rgba(255, 255, 255, .18); color: #fff; }

/* Filtres : nom, ville, cours, types d'école en pastilles à cocher, compteur */
.filtres { background: var(--rose-pale); border-radius: var(--rayon); padding: 14px 14px 10px; margin: 14px 0 18px; }
.filtres-titre { margin: 0 0 10px !important; font: 600 12px/1 var(--texte); letter-spacing: .12em; text-transform: uppercase; color: var(--rose); }
.filtres-champs { display: grid; gap: 8px; }
.filtre-champ { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 999px; padding: 0 16px; color: var(--rose); border: 2px solid transparent; }
.filtre-champ:focus-within { border-color: var(--rose); }
.filtre-champ svg { flex: none; width: 18px; height: 18px; }
.filtre-champ input, .filtre-champ select { flex: 1; min-width: 0; border: 0; background: none; font-size: 16px; color: var(--encre); padding: 10px 0; outline: none; }
.filtre-select { padding-right: 10px; }
.filtre-types { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.filtre-types button { border: 0; border-radius: 999px; padding: 7px 13px; background: #fff; color: var(--velours); font: 500 14px/1.2 var(--texte); cursor: pointer; }
.filtre-types button small { color: var(--gris); font-size: 12px; margin-left: 2px; }
.filtre-types button.est-actif { background: var(--velours); color: #fff; }
.filtre-types button.est-actif small { color: #f5c2cf; }
.filtres-bas { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-size: 15px; }
.filtres-bas output { font-weight: 600; color: var(--velours); }
.filtres-bas button { border: 0; background: none; color: var(--rose); font: 500 14px var(--texte); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* Cartes d'écoles : fond selon le type, image à la une ou monogramme, cours en pastilles */
.grille-ecoles { display: grid; gap: 12px; margin: 12px 0 8px; }
.grille-ecoles > ins.adsbygoogle, .grille-ecoles > .carte-reserver { grid-column: 1 / -1; }
.grille-ecoles > ins.adsbygoogle { margin-block: 8px; }
.carte-ecole { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: var(--rayon); background: var(--rose-pale); box-shadow: 0 8px 22px -18px rgba(86, 13, 34, .55); font-size: 16px; line-height: 1.5; }
.carte-ecole--conservatoire { background: var(--lilas-pale); }
.carte-ecole--pre-pro, .carte-ecole--pro { background: var(--or-pale); }
.carte-ecole--autre { background: var(--corail-pale); }
.carte-ecole[hidden] { display: none; }
.carte-ecole p { margin: 0; }
.ce-tete { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: center; }
.ce-visuel { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; }
.ce-mono { display: grid; place-items: center; font: 700 22px/1 var(--titres); color: #fff; background: linear-gradient(145deg, var(--rose), var(--velours)); }
.ce-mono--conservatoire { background: linear-gradient(145deg, #7a63b8, var(--lilas)); }
.ce-mono--pre-pro, .ce-mono--pro { background: linear-gradient(145deg, #3b1838, var(--nuit)); color: #f3d491; }
.ce-mono--autre { background: linear-gradient(145deg, #bd6a40, #a8502d); }
.ce-mono--gris { background: linear-gradient(145deg, #8a7790, #6e6273); }
.ce-nom { font: 700 19px/1.2 var(--titres); color: var(--velours); }
.ce-nom a { color: inherit; text-decoration: none; }
.ce-nom a:hover { color: var(--rose); }
.ce-ailleurs { display: flex; align-items: center; gap: 4px; font-size: 14px; color: var(--gris); margin-top: 2px !important; }
.ce-ailleurs svg { width: 14px; height: 14px; color: var(--or); flex: none; }
.ce-types { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px !important; }
.ce-type { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: #fff; color: var(--velours); }
.ce-type--conservatoire { color: var(--lilas); }
.ce-type--pre-pro, .ce-type--pro { background: var(--nuit); color: #f3d491; }
.ce-type--autre { color: #a8502d; }
.entry-content ul.ce-meta { display: grid; gap: 4px; margin: 0; font-size: 15px; color: var(--gris); }
.entry-content ul.ce-meta li { padding: 0; }
.entry-content ul.ce-meta li::before { display: none; }
.ce-adresse { display: flex; gap: 6px; align-items: flex-start; color: var(--encre); }
.ce-adresse svg { width: 16px; height: 16px; flex: none; color: var(--rose); margin-top: 3px; }
.ce-lbl { font-size: 13px; color: var(--gris); }
.ce-cours { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.ce-cours > span:not(.ce-lbl) { font-size: 13px; line-height: 1.3; padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, .75); }
.ce-pied { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 10px; border-top: 1px solid rgba(122, 21, 49, .1); }
.ce-site { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #fff; color: var(--velours); flex: none; }
.ce-site:hover { background: var(--velours); color: #fff; }
.ce-non-verifie { font-size: 13px; color: #8a6417; background: #fff; padding: 3px 9px; border-radius: 999px; }
.ce-fiche { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--velours); color: #fff; font-size: 14px; font-weight: 600; white-space: nowrap; }
.ce-fiche:hover, .ce-fiche:focus { background: var(--rose); }
.ce-fiche svg { width: 16px; height: 16px; }
/* École sans fiche ou fiche en noindex : pas de lien, carte plus discrète */
.carte-ecole.sans-fiche { background: #f3eff4; box-shadow: none; }
.carte-ecole.sans-fiche .ce-nom { color: var(--encre); }
.ecoles-vide { grid-column: 1 / -1; text-align: center; color: var(--gris); padding: 24px; background: var(--lilas-pale); border-radius: var(--rayon); margin: 0; }
.ecoles-vide[hidden] { display: none; }

/* Encart "Réserver" (pub_music_opera) en carte or, bouton émeraude (décision A7) */
.carte-reserver { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--rayon); background: var(--or-pale); border: 2px solid rgba(184, 134, 43, .35); color: #8a6417; }
.carte-reserver > svg { flex: none; color: var(--or); }
.carte-reserver div { flex: 1; min-width: 160px; }
.carte-reserver p { margin: 0; font-size: 14px; font-weight: 600; }
.carte-reserver b { display: block; font: 700 21px/1.2 var(--titres); color: var(--velours); }
.carte-reserver--seule { margin: 24px 0; }
.ce-reserver { flex: none; padding: 12px 26px; border-radius: 999px; background: var(--emeraude); color: #fff; font-size: 17px; font-weight: 600; letter-spacing: .02em; cursor: pointer; box-shadow: 0 8px 18px -8px rgba(11, 122, 95, .6); transition: background .15s, transform .15s; }
.ce-reserver:hover, .ce-reserver:focus { background: var(--nuit); color: #f3d491; transform: translateY(-1px); }

/* Villes d'un département en cartes à fond coloré */
.grille-villes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 12px 0 8px; }
.carte-ville { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 16px; background: var(--rose-pale); text-decoration: none; color: var(--encre); }
.carte-ville--lilas { background: var(--lilas-pale); }
.carte-ville--or { background: var(--or-pale); }
.carte-ville b { font: 700 17px/1.25 var(--titres); color: var(--velours); }
.carte-ville small { font-size: 13px; color: var(--gris); }
.carte-ville span { font-size: 14px; color: var(--rose); font-weight: 600; margin-top: 4px; }
a.carte-ville:hover { box-shadow: 0 10px 24px -18px rgba(86, 13, 34, .6); transform: translateY(-1px); color: var(--encre); }

/* Stages de la ville */
.stage-session { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-style: normal; font-size: 14px; color: #8a6417; }
.stage-session svg { flex: none; color: var(--or); }

/* Recherche Google en carte lilas */
.recherche-google { margin: 28px 0 8px; }
.recherche-google p { margin: 0 0 6px; font-size: 16px; }
.recherche-google .gsc-control-cse { background: #fff; border: 0; border-radius: 16px; padding: 6px 8px; }
.recherche-google .gsc-control-cse * { font-family: var(--texte) !important; }

/* Bande sombre : département, villes voisines, autres villes du même cours */
.bande-autour { padding-top: 16px; }
.autour-phrase, .autour-parents { color: #cbbcd2; font-size: 16px; margin: 12px 0 10px; }
.autour-parents { line-height: 2.2; }
.autour-dept, .autour-parent { display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; background: #3a1f3e; color: #fff; text-decoration: none; }
.autour-parent { padding: 6px 14px; border-radius: 999px; line-height: 1.4; }
.autour-dept b { font: 700 18px/1.25 var(--titres); }
.autour-dept svg { color: var(--or-clair); flex: none; }
.autour-dept:hover, .autour-parent:hover { background: var(--velours); color: #fff; }
.entry-content ul.autour-villes { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.entry-content ul.autour-villes li { padding: 0; }
.entry-content ul.autour-villes li::before { display: none; }
.autour-villes a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: #fff; text-decoration: none; font-size: 15px; line-height: 1.3; }
.autour-villes a:hover { background: var(--rose); color: #fff; }
.autour-villes small { color: var(--or-clair); font-size: 13px; white-space: nowrap; }

@media (min-width: 760px) {
	.filtres { padding: 18px 20px 12px; }
	.filtres-champs { grid-template-columns: 1fr 1fr; }
	/* Deux colonnes au plus : la pub 'dans-liste' tombe toujours en fin de rangée (décision A6b) */
	.grille-ecoles { grid-template-columns: 1fr 1fr; gap: 14px; }
	.grille-villes { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
	/* La scène suit la largeur du contenu (la classe liste-ecoles est sur le main, après la scène) */
	.page-ville, .scene-entete--large { max-width: 1040px; margin-inline: auto; }
	.grille-ecoles { gap: 18px; }
	.grille-villes { grid-template-columns: repeat(4, 1fr); }
	/* Les cours de la ville passent dans une colonne rose à droite de la description (décision A6b) */
	.ville-tete--colonnes { display: grid; grid-template-columns: minmax(0, 1fr) 340px; column-gap: 48px; align-items: start; }
	.ville-tete--colonnes > * { grid-column: 1; }
	.ville-tete--colonnes > .ville-cours { grid-column: 2; grid-row: 1 / span 3; margin-top: 18px; padding: 4px 20px 16px; border-radius: var(--rayon); background: var(--rose-pale); }
	.ville-tete--colonnes .ville-cours h2 { font-size: 24px; margin-top: 18px; }
	.ville-tete--colonnes .ville-cours h2::before { display: none; }
	.ville-tete--colonnes .ville-cours .intersections a { background: #fff; }
	.ville-tete--colonnes .ville-cours .intersections small { background: var(--rose-pale); color: var(--rose-texte); }
	.ville-tete--colonnes .ville-cours .intersections a:hover { background: var(--velours); color: #fff; }
	.ville-tete--colonnes .ville-cours .intersections a:hover small { background: rgba(255, 255, 255, .18); color: #fff; }
}

/* ---------- Fiches et listes simples : stages et concours (étape B7, maquette A7) ---------- */
/* Scène : surtitre du type, état du stage */
.simple-hero .kicker { margin: 0 0 8px; }
.simple-hero h1 { margin-top: 0; }
.scene .badge-etat { background: rgba(255, 255, 255, .1); color: #d9cfe0; }
.scene .badge-etat--avenir { background: var(--or); color: #fff; }
.etat-stage p { margin: 12px 0 0; font-size: 16px; line-height: 1.5; color: #efe7f2; max-width: 620px; }
.dc-stage-etat-verif { display: block; margin-top: 4px; font-size: 13px; color: #cbbcd2; }
.h1-repli { text-decoration: underline dotted rgba(227, 189, 111, .7); text-underline-offset: 8px; text-decoration-thickness: 2px; }

/* Fiche sans fiche d'identité : une seule colonne de lecture */
.fiche--sans-identite .entry-content { display: block !important; max-width: 760px; }

/* Sessions des stages : à venir en or, passées en gris */
.sessions { display: grid; gap: 12px; margin: 14px 0 24px; }
.session { background: var(--or-pale); border: 2px solid rgba(184, 134, 43, .35); border-radius: var(--rayon); padding: 14px 16px 6px; }
.session--passee { background: #f6f3f7; border-color: transparent; color: var(--gris); }
.session-etat { display: flex; align-items: center; gap: 6px; margin: 0 0 4px; font: 600 12px/1 var(--texte); letter-spacing: .12em; text-transform: uppercase; color: #8a6417; }
.session-etat svg { width: 15px; height: 15px; color: var(--or); }
.session--passee .session-etat { color: var(--gris); }
.session h3 { margin: 4px 0 8px; font-size: 19px; color: var(--velours); }
.session--passee h3 { color: var(--encre); }
.session dl { margin: 0; }
.session dl div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; padding: 7px 0; border-top: 1px solid rgba(184, 134, 43, .2); font-size: 16px; line-height: 1.45; }
.session--passee dl div { border-top-color: rgba(0, 0, 0, .06); }
.session dt { font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--rose); font-weight: 600; padding-top: 2px; }
.session--passee dt { color: var(--gris); }
.session dd { margin: 0; overflow-wrap: anywhere; }

/* Concours : palmarès, rang en pastille or, argent, bronze */
.entry-content ol.palmares { list-style: none; margin: 12px 0 20px; padding: 0; display: grid; gap: 8px; }
.palmares li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: start; padding: 10px 14px 10px 10px; border-radius: 16px; background: #f8f4f9; }
.palmares li p { margin: 0; font-size: 16px; line-height: 1.5; }
.palmares-rang { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 2px solid var(--filet); font: 700 20px/1 var(--titres); color: var(--velours); }
.palmares li[data-rang="1"] { background: var(--or-pale); }
.palmares li[data-rang="1"] .palmares-rang { background: var(--or); border-color: var(--or); color: #fff; box-shadow: 0 0 0 3px var(--or-pale), 0 0 0 5px var(--or); }
.palmares li[data-rang="2"] .palmares-rang { background: #8f8a99; border-color: #8f8a99; color: #fff; }
.palmares li[data-rang="3"] .palmares-rang { background: #a8673a; border-color: #a8673a; color: #fff; }

/* Listes de stages : description en colonne de lecture, cartes (image ou monogramme, prochaine session en or) */
.liste-simple .entry-content { max-width: 1040px; margin-inline: auto; }
.liste-simple .liste-intro { max-width: 760px; }
.liste-simple .liste-intro h2:first-child { margin-top: 8px; }
.grille-stages { display: grid; gap: 12px; margin: 12px 0 24px; }
.grille-stages > ins.adsbygoogle { grid-column: 1 / -1; margin-block: 8px; }
.carte-stage { position: relative; display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 14px; padding: 12px; border-radius: var(--rayon); background: #fff; border: 1px solid var(--filet); box-shadow: 0 8px 22px -20px rgba(86, 13, 34, .55); }
.carte-stage:hover { box-shadow: 0 12px 26px -16px rgba(86, 13, 34, .55); }
.carte-stage--rose { background: var(--rose-pale); border-color: transparent; }
.carte-stage--lilas { background: var(--lilas-pale); border-color: transparent; }
.carte-stage--or { background: var(--or-pale); border-color: transparent; }
.cs-image { width: 88px; height: 88px; border-radius: 14px; object-fit: cover; }
.cs-mono { display: grid; place-items: center; background: var(--nuit); color: #f3d491; font: 700 28px/1 var(--titres); }
.cs-corps { min-width: 0; }
.cs-titre { margin: 2px 0 6px; font: 700 19px/1.25 var(--titres); }
.cs-titre a { color: var(--velours); text-decoration: none; }
.cs-titre a::after { content: ""; position: absolute; inset: 0; border-radius: var(--rayon); }
.cs-session { display: flex; gap: 6px; align-items: flex-start; margin: 0 0 6px; font-size: 15px; line-height: 1.4; color: var(--gris); }
.cs-session svg { flex: none; width: 16px; height: 16px; margin-top: 2px; }
.cs-session--annoncee { color: #8a6417; font-weight: 600; }
.cs-session--annoncee svg { color: var(--or); }
.cs-session--arrete { text-decoration: line-through; text-decoration-color: rgba(110, 98, 115, .5); }
.entry-content ul.cs-infos { margin: 0; padding: 0; font-size: 14px; line-height: 1.45; }
.entry-content ul.cs-infos li { padding: 0; }
.entry-content ul.cs-infos li::before { display: none; }
.cs-infos .ce-lbl { color: var(--gris); font-size: 13px; }

/* Archives des stages et des concours : textes en colonne de lecture, listes en cartes */
.archive-simple > p, .archive-simple > h2, .archive-simple > h3, .archive-simple > ul:not(.intersections):not(.liste-cartes) { max-width: 760px; }
.entry-content ul.liste-cartes { display: grid; gap: 8px; margin: 12px 0 20px; }
.entry-content ul.liste-cartes li { padding: 12px 16px; border-radius: 14px; background: var(--rose-pale); font-size: 16px; line-height: 1.4; color: var(--gris); }
.entry-content ul.liste-cartes li:nth-child(3n+2) { background: var(--lilas-pale); }
.entry-content ul.liste-cartes li:nth-child(3n) { background: var(--or-pale); }
.entry-content ul.liste-cartes li::before { display: none; }
.liste-cartes a { font: 700 18px/1.25 var(--titres); text-decoration: none; }

@media (min-width: 760px) {
	.sessions { grid-template-columns: 1fr 1fr; }
	/* Deux colonnes au plus : la pub 'dans-liste' tombe toujours en fin de rangée (décision A6b) */
	.grille-stages { grid-template-columns: 1fr 1fr; }
	.carte-stage { grid-template-columns: 112px minmax(0, 1fr); }
	.cs-image { width: 112px; height: 112px; }
	.entry-content ul.liste-cartes { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
	.entry-content ul.liste-cartes { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Compagnies et ballets (étape B8a, maquette A7) ---------- */
/* Archive des compagnies : une compagnie sans fiche garde sa carte, sans fond, en pointillé */
.entry-content ul.liste-cartes.liste-cartes--compagnies li:not(:has(a)) { background: none; border: 1px dashed #e2cfd5; }
/* Archive des ballets : cartes d'œuvres, année en or à droite (règle de la maquette A5) */
.archive-simple > ul.liste-oeuvres { max-width: none; }
.entry-content ul.liste-oeuvres { display: grid; gap: 8px; margin: 12px 0 24px; padding: 0; }
.entry-content ul.liste-oeuvres li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 12px; padding: 12px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--filet); line-height: 1.35; }
.entry-content ul.liste-oeuvres li::before { display: none; }
.liste-oeuvres strong a { font: 700 18px/1.25 var(--titres); text-decoration: none; }
.liste-oeuvres .oeuvre-auteur { font-size: 15px; color: var(--gris); }
.liste-oeuvres .oeuvre-annee { font: 700 16px/1 var(--titres); color: var(--or-texte); }
@media (min-width: 760px) {
	.entry-content ul.liste-oeuvres { grid-template-columns: 1fr 1fr; }
}

/* ---------- Spectacles : fiche, archive et villes (étape B7b, maquette A7) ---------- */
/* Scène : résumé des dates et message d'un spectacle terminé */
.resume-dates { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; font-size: 17px; color: #efe7f2; }
.resume-dates svg { flex: none; color: var(--or-clair); }
.resume-dates strong { color: #f3d491; font-weight: 600; }
.spectacle-termine { margin: 12px 0 0; padding: 8px 14px; border-radius: 12px; background: rgba(255, 255, 255, .08); color: #efe7f2; font-size: 16px; line-height: 1.45; max-width: 620px; }

/* Dates et billetterie : une ligne par représentation, groupées par mois */
.bloc-dates { margin: 28px 0; }
.dates-intro { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-weight: 600; color: var(--velours); }
.dates-intro svg { flex: none; color: var(--or); }
.dates-mois h3 { margin: 18px 0 8px; font: 600 15px/1.2 var(--texte); letter-spacing: .1em; text-transform: uppercase; color: var(--rose); }
.entry-content ol.dates { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.entry-content ol.dates li { margin: 0; padding: 10px 12px; }
.entry-content ol.dates li::before { display: none; }
.date { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; grid-template-areas: "jour lieu lieu" "jour prix bouton"; column-gap: 12px; row-gap: 6px; align-items: center; border-radius: 16px; background: #fff; border: 1px solid var(--filet); }
.date--passee { opacity: .55; }
.date-jour { grid-area: jour; display: flex; flex-direction: column; align-items: center; justify-content: center; align-self: stretch; border-radius: 12px; background: var(--nuit); color: #fff; padding: 6px 0; line-height: 1.1; }
.date-jour b { font: 700 24px/1 var(--titres); color: #f3d491; }
.date-jour small { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #cbbcd2; }
.date-lieu { grid-area: lieu; min-width: 0; font-size: 16px; line-height: 1.35; }
.date-lieu a, .date-lieu b { font-weight: 600; }
.date-lieu small { display: block; color: var(--gris); font-size: 14px; }
.date-prix { grid-area: prix; font-weight: 600; color: var(--velours); font-size: 15px; white-space: nowrap; }
.date .date-reserver, .date .date-etat { grid-area: bouton; justify-self: end; }
.date .date-reserver { padding: 9px 18px; font-size: 15px; }
.date-etat { padding: 6px 12px; border-radius: 999px; background: #f6f3f7; color: var(--gris); font-size: 14px; font-weight: 600; }
.date-etat--complet { background: var(--rose-pale); color: var(--rose-texte); }
.dates-liste.is-repliee [data-replie] { display: none; }
.dates-liste.is-repliee .dates-mois:not(:has(li:not([data-replie]))) { display: none; }
.dates-plus { display: block; width: 100%; margin: 12px 0 0; padding: 12px; border: 2px solid var(--velours); border-radius: 999px; background: #fff; color: var(--velours); font: 600 16px var(--texte); cursor: pointer; }
.dates-plus:hover { background: var(--velours); color: #fff; }
.dates-notice { font-size: 14px; color: var(--gris); margin: 12px 0 0; }

/* Autres spectacles, en bande sombre : cartes avec image */
.grille-spectacles { display: grid; gap: 10px; margin-top: 12px; }
.grille-spectacles > a { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px; border-radius: 16px; background: #3a1f3e; color: #efe7f2; text-decoration: none; }
.grille-spectacles > a:nth-child(3n+2) { background: #2f2650; }
.grille-spectacles > a:nth-child(3n+3) { background: #3d2a1f; }
.grille-spectacles > a:hover { background: var(--velours); color: #efe7f2; }
.grille-spectacles img, .grille-spectacles .proche-mono { width: 88px; height: 88px; border-radius: 12px; object-fit: cover; }
.grille-spectacles .proche-mono { display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #f3d491; font: 700 26px/1 var(--titres); }
.grille-spectacles small { display: block; font: 600 11px/1 var(--texte); letter-spacing: .12em; text-transform: uppercase; color: #f5c2cf; margin-bottom: 4px; }
.grille-spectacles b { display: block; font: 700 17px/1.25 var(--titres); color: #fff; }
.gs-infos { display: block; font-size: 14px; line-height: 1.4; color: #cbbcd2; margin-top: 4px; }
.gs-prochaine { display: block; font-size: 14px; color: #f3d491; margin-top: 2px; }

/* Archive et villes : cartes de spectacles (image ou monogramme, prochaine date en or) */
.filtres--spectacles .filtres-bas { justify-content: flex-start; }
.grille-spectacles-liste { display: grid; gap: 12px; margin: 12px 0 24px; }
.carte-spectacle { position: relative; display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 14px; padding: 12px; border-radius: var(--rayon); background: #fff; border: 1px solid var(--filet); box-shadow: 0 8px 22px -20px rgba(86, 13, 34, .55); }
.carte-spectacle:hover { box-shadow: 0 12px 26px -16px rgba(86, 13, 34, .55); }
.carte-spectacle[hidden] { display: none; }
.carte-spectacle--rose { background: var(--rose-pale); border-color: transparent; }
.carte-spectacle--lilas { background: var(--lilas-pale); border-color: transparent; }
.carte-spectacle--or { background: var(--or-pale); border-color: transparent; }
.csp-image { width: 88px; height: 88px; border-radius: 14px; object-fit: cover; }
.csp-mono { display: grid; place-items: center; background: var(--nuit); color: #f3d491; font: 700 28px/1 var(--titres); }
.csp-corps { min-width: 0; }
.csp-genre { display: block; font: 600 11px/1.2 var(--texte); letter-spacing: .12em; text-transform: uppercase; color: var(--rose); }
.csp-titre { margin: 4px 0 4px; font: 700 19px/1.25 var(--titres); }
.csp-titre a { color: var(--velours); text-decoration: none; }
.csp-titre a::after { content: ""; position: absolute; inset: 0; border-radius: var(--rayon); }
.csp-artiste { margin: 0 0 4px; font-size: 15px; line-height: 1.35; color: var(--encre); }
.csp-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0 0 4px; font-size: 14px; line-height: 1.4; color: var(--gris); }
.csp-prix { font-weight: 600; color: var(--velours); }
.csp-prochaine { display: flex; gap: 6px; align-items: flex-start; margin: 0; font-size: 14px; line-height: 1.4; color: #8a6417; font-weight: 600; }
.csp-prochaine svg { flex: none; width: 15px; height: 15px; margin-top: 2px; color: var(--or); }
.spectacles-vide { margin: 12px 0; color: var(--gris); }

/* Villes de spectacles : prochain spectacle en carte or, salles avec un repère */
.carte-prochain { display: flex; gap: 14px; align-items: flex-start; margin: 8px 0 18px; padding: 16px 18px; border-radius: var(--rayon); background: var(--or-pale); border: 2px solid rgba(184, 134, 43, .35); }
.carte-prochain > svg { flex: none; margin-top: 2px; color: var(--or); }
.carte-prochain p { margin: 0; }
.carte-prochain-label { font: 600 12px/1.3 var(--texte); letter-spacing: .12em; text-transform: uppercase; color: #8a6417; }
.carte-prochain-titre { margin: 4px 0 !important; font: 700 21px/1.25 var(--titres); }
.carte-prochain-titre a { color: var(--velours); text-decoration: none; }
.carte-prochain-details { font-size: 16px; line-height: 1.45; }
.entry-content ul.liste-salles { list-style: none; display: grid; gap: 8px; margin: 12px 0 24px; padding: 0; }
.entry-content ul.liste-salles li { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 10px 14px; border-radius: 14px; background: #f8f4f9; font-size: 16px; line-height: 1.45; }
.entry-content ul.liste-salles li::before { display: none; }
.liste-salles svg { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--rose); }
.salle-adresse { color: var(--gris); }

@media (min-width: 760px) {
	.date { grid-template-columns: 64px minmax(0, 1fr) auto auto; grid-template-areas: "jour lieu prix bouton"; }
	.grille-spectacles { grid-template-columns: 1fr 1fr; }
	.grille-spectacles-liste { grid-template-columns: 1fr 1fr; }
	.carte-spectacle { grid-template-columns: 112px minmax(0, 1fr); }
	.csp-image { width: 112px; height: 112px; }
	.entry-content ul.liste-salles { grid-template-columns: 1fr 1fr; }
	.filtres--spectacles .filtres-champs { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
	.grille-spectacles { grid-template-columns: repeat(3, 1fr); }
	.grille-spectacles > a { grid-template-columns: 1fr; align-items: start; }
	.grille-spectacles img, .grille-spectacles .proche-mono { width: 100%; height: 150px; }
	.grille-spectacles-liste { grid-template-columns: repeat(3, 1fr); }
	.carte-spectacle { grid-template-columns: 1fr; align-content: start; }
	.csp-image { width: 100%; height: 170px; }
	.filtres--spectacles .filtres-champs { grid-template-columns: 2fr 2fr 1.4fr 1.4fr; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}

/* ---------- Lexique et marques (étape B8b, maquette A7) ---------- */
/* Définition : "On dit aussi" et "… en anglais" côte à côte, en petites cartes */
.mots-voisins { display: grid; gap: 10px; margin: 24px 0; }
.mots-voisins .card { margin: 0; padding: 14px 16px; }
.mots-voisins strong { color: var(--velours); }
@media (min-width: 760px) {
	.mots-voisins { grid-template-columns: 1fr 1fr; }
}
/* Rubrique du lexique : une tuile par définition, deux colonnes au plus (décision A6b) */
.grille-mots { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin: 12px 0 24px; }
.grille-mots > ins.adsbygoogle { grid-column: 1 / -1; margin: 8px 0; width: 100%; }
.carte-mot { display: flex; align-items: center; gap: 12px; min-height: 72px; padding: 12px 14px; border-radius: var(--rayon); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.carte-mot:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -18px rgba(86, 13, 34, .6); }
.carte-mot b { font: 700 19px/1.2 var(--titres); color: var(--velours); }
.carte-mot img, .carte-mot-lettre { flex: none; width: 48px; height: 48px; border-radius: 12px; object-fit: cover; }
.carte-mot-lettre { display: grid; place-items: center; background: rgba(255, 255, 255, .7); font: 700 24px/1 var(--titres); color: var(--rose); }
.carte-mot--rose { background: var(--rose-pale); }
.carte-mot--or { background: var(--or-pale); }
.carte-mot--or .carte-mot-lettre { color: var(--or-texte); }
.carte-mot--lilas { background: var(--lilas-pale); }
.carte-mot--lilas .carte-mot-lettre { color: var(--lilas); }
@media (min-width: 760px) {
	.grille-mots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Glossaire : chaque lettre en grand, ses définitions en grille de liens */
.glossaire h2.lettre-titre { display: flex; align-items: center; gap: 12px; margin: 28px 0 10px; font-size: 32px; line-height: 1; }
.glossaire h2.lettre-titre::after { content: ""; flex: 1; height: 2px; background: linear-gradient(90deg, var(--or-pale), transparent); }
.entry-content ul.liste-mots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 0 0 12px; padding: 0; list-style: none; }
.entry-content ul.liste-mots li { padding: 0; }
.entry-content ul.liste-mots li::before { display: none; }
.liste-mots a { display: block; height: 100%; padding: 9px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--filet); font-size: 16px; line-height: 1.3; text-decoration: none; color: var(--velours); }
.liste-mots a:hover { background: var(--rose-pale); border-color: var(--rose-pale); }
@media (min-width: 760px) {
	.entry-content ul.liste-mots { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
	.entry-content ul.liste-mots { grid-template-columns: repeat(4, 1fr); }
}
/* Fiche marque : logo en tête de la fiche d'identité */
.idcard .idcard-logo { display: flex; justify-content: center; align-items: center; margin: 0 0 14px; padding: 12px; border-radius: 14px; background: #fff; }
.idcard .idcard-logo img { display: block; max-width: 100%; max-height: 90px; width: auto; height: auto; }
/* Archive des marques : logos en cartes blanches */
.archive-simple > ul.logos-marques { max-width: none; }
.entry-content ul.logos-marques { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 12px 0 24px; padding: 0; list-style: none; }
.entry-content ul.logos-marques li { padding: 0; }
.entry-content ul.logos-marques li::before { display: none; }
.logos-marques a { display: flex; align-items: center; justify-content: center; height: 100%; min-height: 110px; padding: 14px; border-radius: var(--rayon); background: #fff; border: 1px solid var(--filet); transition: transform .15s, box-shadow .15s; }
.logos-marques a:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -18px rgba(86, 13, 34, .6); }
.logos-marques img { display: block; margin: 0 !important; max-width: 100%; max-height: 90px; width: auto; height: auto; object-fit: contain; }
@media (min-width: 760px) {
	.entry-content ul.logos-marques { grid-template-columns: repeat(3, 1fr); }
}
.entry-content li:empty { display: none; }

/* ---------- Page d'accueil (étape B9a, maquette A5) ---------- */
/* Scène : image d'ouverture, H1, recherche et "À la une" */
.scene--accueil .wrap { padding-bottom: 40px; }
.accueil-visuel figure, .accueil-visuel .wp-block-image { margin: 0 -16px; position: relative; }
.accueil-visuel .wp-block-image figure { margin: 0; }
.accueil-visuel img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.accueil-visuel figure::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, #2c1734); pointer-events: none; }
.accueil-titre { position: relative; padding-top: 24px; }
.accueil-visuel + .accueil-titre { margin-top: -54px; padding-top: 0; }
.scene--accueil h1 { font-size: 34px; margin: 0 0 4px; text-wrap: balance; }
.accueil-recherche { margin-top: 14px; }
.accueil-recherche label { display: block; font-size: 14px; color: #cbbcd2; margin-bottom: 6px; }
.accueil-recherche div { display: flex; background: #fff; border-radius: 999px; padding: 4px 4px 4px 18px; max-width: 520px; }
.accueil-recherche input { flex: 1; min-width: 0; border: 0; background: none; font-size: 16px; outline: none; color: var(--encre); }
.accueil-recherche button { flex: none; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--velours); color: #fff; display: grid; place-items: center; cursor: pointer; }
.accueil-recherche button:hover { background: var(--rose); }
.a-la-une { position: relative; display: flex; gap: 14px; align-items: center; margin-top: 18px; padding: 12px; border-radius: var(--rayon); background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(227, 189, 111, .35); }
.a-la-une:hover { background: rgba(255, 255, 255, .13); }
.a-la-une img { flex: none; width: 76px; height: 76px; border-radius: 12px; object-fit: cover; }
.a-la-une-texte { margin: 0; font-size: 16px; line-height: 1.45; color: #e6dcea; }
.a-la-une-texte strong:first-child { display: inline-block; font: 600 11px/1 var(--texte); letter-spacing: .12em; text-transform: uppercase; color: var(--nuit); background: var(--or-clair); border-radius: 999px; padding: 5px 9px; margin-bottom: 4px; }
.a-la-une-texte a { color: #fff; font-weight: 600; text-decoration: none; }
.a-la-une-texte a:hover { color: var(--or-clair); }
/* le premier lien couvre la carte ; les suivants restent cliquables au-dessus */
.a-la-une-texte a:first-of-type::after { content: ""; position: absolute; inset: 0; border-radius: var(--rayon); }
.a-la-une-texte a:not(:first-of-type) { position: relative; z-index: 1; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .35); }

/* Rubriques de l'annuaire (bloc calculé) */
.rubriques { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0 6px; }
.rubriques .carte-couleur { min-height: 84px; padding: 12px 14px; transition: transform .15s, box-shadow .15s; }
.rubriques .carte-couleur:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -16px rgba(86, 13, 34, .5); filter: none; }
.rubriques .carte-couleur b { font-size: 28px; letter-spacing: -.02em; }
.rubriques .carte-couleur span { font-size: 14px; }
.feuille--accueil .sommaire { margin-top: 8px; }

/* Sections du contenu : tuiles à fond coloré (courtes) ou pleine largeur (longues) */
.accueil .entry-content { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 18px; }
.accueil .entry-content > ins.adsbygoogle, .accueil .entry-content > p { grid-column: 1 / -1; }
/* une pub dans la grille prendrait une largeur nulle avec sa marge latérale automatique */
.accueil .entry-content > ins.adsbygoogle { margin-inline: 0; width: 100%; }
.accueil-section { min-width: 0; container-type: inline-size; }
.accueil-section > h2:first-child { margin-top: 30px; }
@container (min-width: 560px) { .entry-content ul.oeuvres { grid-template-columns: 1fr 1fr; } }
.accueil-section--tuile { border-radius: var(--rayon); padding: 2px 18px 6px; margin: 10px 0; font-size: 17px; line-height: 1.6; }
.accueil-section--tuile > h2:first-child { font-size: 24px; margin: 20px 0 10px; }
.tuile--rose { background: var(--rose-pale); }
.tuile--or { background: var(--or-pale); }
.tuile--lilas { background: var(--lilas-pale); }
.tuile--corail { background: var(--corail-pale); }
.accueil-section--tuile p:last-child, .accueil-section--tuile ul:last-child { margin-bottom: 14px; }
.accueil-section--tuile .linkcard { background: rgba(255, 255, 255, .7); }
.accueil-section--tuile .pastilles a { border-color: transparent; }
.accueil-section--large { margin-top: 10px; }
.accueil-section--large > :not(.rail):not(.pastilles) { max-width: 760px; }

/* Colonnes de l'éditeur (cours par Internet) : texte puis image */
.accueil .wp-block-columns { display: grid; gap: 4px 20px; }
.accueil .wp-block-column { min-width: 0; flex-basis: auto !important; }
.accueil .wp-block-columns figure { margin: 0 0 14px; }
.accueil .wp-block-columns figure img { width: 100%; max-width: 300px; aspect-ratio: 1; object-fit: cover; border-radius: 14px; margin: 0 auto; }

/* Listes : cartes de guides illustrés, pastilles, œuvres, cartes de texte */
.entry-content ul.cartes-guides { display: grid; gap: 8px; }
.entry-content ul.cartes-guides li { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; padding: 6px 12px 6px 6px; background: #fff; border-radius: 14px; font-size: 16px; line-height: 1.35; }
.entry-content ul.cartes-guides li::before { display: none; }
.cartes-guides img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; }
.cartes-guides a { font-weight: 600; text-decoration: none; }
.cartes-guides a::after { content: ""; position: absolute; inset: 0; border-radius: 14px; }
.cartes-guides li:hover { box-shadow: 0 8px 20px -14px rgba(86, 13, 34, .5); }
.entry-content ul.pastilles li.pastilles-suite { flex-basis: 100%; font-size: 16px; padding-top: 2px; }
.entry-content ul.oeuvres { display: grid; gap: 8px; }
.entry-content ul.oeuvres li { position: relative; padding: 10px 70px 10px 14px; background: #fff; border-radius: 14px; font-size: 15px; line-height: 1.4; color: var(--gris); }
.entry-content ul.oeuvres li::before { display: none; }
.oeuvres strong, .oeuvres .oeuvre-lien { display: inline; font: 700 17px/1.25 var(--titres); color: var(--velours); text-decoration: none; }
.oeuvres .oeuvre-lien::after { content: ""; position: absolute; inset: 0; border-radius: 14px; }
.oeuvres .oeuvre-annee { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font: 700 17px/1 var(--titres); color: var(--or-texte); }
.entry-content ul.oeuvres li:hover { box-shadow: 0 8px 20px -14px rgba(86, 13, 34, .5); }
.entry-content ul.cartes-texte { display: grid; gap: 10px; }
.entry-content ul.cartes-texte li { padding: 12px 14px; background: #fff; border-radius: 14px; font-size: 16px; line-height: 1.55; }
.entry-content ul.cartes-texte li::before { display: none; }

/* Couvertures de livres : une étagère */
.etagere { max-width: 480px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; align-items: end; padding: 0 6px 10px; margin: 6px 0 16px; border-bottom: 6px solid rgba(122, 21, 49, .14); border-radius: 0 0 4px 4px; }
.entry-content .etagere figure { margin: 0; }
.etagere img { width: 100% !important; height: auto; margin: 0 !important; border-radius: 3px 6px 6px 3px; box-shadow: 0 10px 16px -10px rgba(31, 22, 48, .55), inset 3px 0 0 rgba(0, 0, 0, .12); transition: transform .2s; }
.etagere a:hover img { transform: translateY(-4px); }

/* Rail des guides cités par une section longue (bloc calculé), sur la feuille blanche */
.rail--guides { margin-top: 4px; }
.rail--guides a { background: var(--or-pale); }
.rail--guides a:nth-child(3n+2) { background: var(--rose-pale); }
.rail--guides a:nth-child(3n+3) { background: var(--lilas-pale); }
.rail--guides a:hover { background: var(--rose-pale); box-shadow: 0 8px 20px -14px rgba(86, 13, 34, .5); }
.rail--guides b { font-size: 15px; color: var(--velours); }

@media (min-width: 760px) {
	.accueil-visuel figure, .accueil-visuel .wp-block-image { margin: 0; }
	.accueil-visuel img { border-radius: 0 0 var(--rayon) var(--rayon); }
	.scene--accueil h1 { font-size: 46px; }
	.rubriques { grid-template-columns: repeat(4, 1fr); gap: 10px; }
	.rubriques .carte-couleur { min-height: 96px; }
	.rubriques .carte-couleur b { font-size: 34px; }
	.accueil .entry-content { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	.accueil .entry-content > * { grid-column: 1 / -1; }
	.accueil .entry-content > .accueil-section--tuile { grid-column: span var(--col-m, 6); }
	.accueil-section--tuile { margin: 9px 0; }
	.accueil .wp-block-columns { grid-template-columns: minmax(0, 1fr) 260px; align-items: start; }
	.rail--guides { margin-inline: 0; padding-inline: 0; }
}
@media (min-width: 1024px) {
	.accueil-tete { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px; align-items: center; padding: 34px 0 20px; }
	.accueil-visuel { order: 2; }
	.accueil-visuel figure::after { display: none; }
	.accueil-visuel img { border-radius: 22px; box-shadow: 0 0 0 6px rgba(227, 189, 111, .18), 0 30px 60px -30px #000; }
	.accueil-visuel + .accueil-titre, .accueil-titre { margin-top: 0; padding-top: 0; }
	.scene--accueil h1 { font-size: 54px; }
	.accueil .entry-content > .accueil-section--tuile { grid-column: span var(--col-l, 6); }
}

/* ---------- Recherche, formulaire multicritère et 404 (étape B9b) ---------- */
.scene-phrase { color: #e6dbe9; font-size: 17px; margin: 0; max-width: 640px; }
.recherche-encadre { background: var(--rose-pale); border-radius: var(--rayon); padding: 14px; margin: 18px 0 22px; }
.recherche-vide { margin: 20px 0 0; }
.recherche-ligne { display: flex; background: #fff; border-radius: 999px; padding: 4px 4px 4px 18px; border: 2px solid transparent; }
.recherche-ligne:focus-within { border-color: var(--rose); }
.recherche-ligne input { flex: 1; min-width: 0; border: 0; background: none; font-size: 16px; color: var(--encre); outline: none; }
.recherche-ok { flex: none; border: 0; border-radius: 999px; background: var(--velours); color: #fff; padding: 9px 18px; font-weight: 600; font-size: 15px; cursor: pointer; }
.recherche-ok:hover { background: var(--rose); }
.recherche-avancee { margin-top: 10px; }
.recherche-avancee summary { cursor: pointer; color: var(--velours); font-weight: 600; font-size: 15px; padding: 4px 2px; list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.recherche-avancee summary::-webkit-details-marker { display: none; }
.recherche-avancee summary::before { content: ""; width: 7px; height: 7px; border: solid var(--rose); border-width: 0 2px 2px 0; transform: rotate(-45deg); transition: transform .15s; }
.recherche-avancee[open] summary::before { transform: rotate(45deg); }
.recherche-avancee[open] summary { margin-bottom: 8px; }
.recherche-champ { display: grid; gap: 4px; margin: 0 0 10px; }
.recherche-champ label { font-size: 14px; font-weight: 600; color: var(--velours); }
.recherche-champ select { width: 100%; min-width: 0; border: 2px solid transparent; border-radius: 12px; background: #fff; color: var(--encre); font-size: 16px; padding: 9px 12px; }
.recherche-champ select:focus { border-color: var(--rose); outline: none; }
.recherche-groupe { border: 0; background: #fff8f9; border-radius: 14px; padding: 10px 12px 2px; margin: 0 0 10px; min-width: 0; }
.recherche-groupe legend { float: left; width: 100%; padding: 0; margin: 0 0 8px; font: 600 12px/1 var(--texte); letter-spacing: .12em; text-transform: uppercase; color: var(--rose); }
.recherche-ou { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--gris); text-align: center; }
.recherche-avancee > .recherche-ok { margin-top: 2px; }

/* Résultats : type, titre et extrait, image à la une ou initiales */
.resultats { display: grid; gap: 10px; margin: 0 0 8px; }
.resultat a { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: start; padding: 12px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--filet); color: var(--encre); text-decoration: none; transition: box-shadow .15s, transform .15s; }
.resultat a:hover { box-shadow: inset 0 0 0 1.5px var(--rose), 0 10px 24px -18px rgba(86, 13, 34, .5); transform: translateY(-1px); }
.resultat-visuel { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; display: block; }
.resultat-monogramme { display: grid; place-items: center; background: var(--rose-pale); color: var(--velours); font: 700 20px/1 var(--titres); }
.resultat:nth-child(3n+2) .resultat-monogramme { background: var(--lilas-pale); color: var(--lilas); }
.resultat:nth-child(3n) .resultat-monogramme { background: var(--or-pale); color: #7a5713; }
.resultat-texte { display: grid; gap: 3px; }
.resultat-type { font: 600 11.5px/1.2 var(--texte); letter-spacing: .1em; text-transform: uppercase; color: var(--rose); }
.resultat-titre { font: 700 18px/1.25 var(--titres); color: var(--velours); }
.resultat a:hover .resultat-titre { color: var(--rose); }
.resultat-extrait { font-size: 15px; line-height: 1.5; color: var(--gris); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Commentaires : le "dit :" ajouté par WordPress après le nom n'est pas affiché en prod */
.commentaires .says { display: none; }

/* 404 : rubriques de l'annuaire sous les liens */
.error404 .rubriques { max-width: 760px; margin: 8px auto 10px; }

/* Formulaires WPForms (/contact/, /message/) aux couleurs du thème. Sélecteurs repris de la feuille
   de WPForms (div.wpforms-container-full .wpforms-form …) pour passer devant elle ; les choix du
   formulaire sont des <li> qui ne prennent pas le losange des listes du contenu */
.entry-content div.wpforms-container-full { margin: 20px 0; }
.entry-content div.wpforms-container-full .wpforms-form li { padding-left: 0; }
.entry-content div.wpforms-container-full .wpforms-form li::before { content: none; display: none; }
.entry-content div.wpforms-container-full .wpforms-form .wpforms-field-label { color: var(--velours); font-weight: 600; font-size: 15px; }
.entry-content div.wpforms-container-full .wpforms-form input[type="text"], .entry-content div.wpforms-container-full .wpforms-form input[type="email"], .entry-content div.wpforms-container-full .wpforms-form input[type="url"], .entry-content div.wpforms-container-full .wpforms-form input[type="tel"], .entry-content div.wpforms-container-full .wpforms-form select, .entry-content div.wpforms-container-full .wpforms-form textarea {
	width: 100%; max-width: 100%; border: 2px solid var(--filet); border-radius: 12px; background: #fff; color: var(--encre); font-size: 16px; padding: 9px 12px; height: auto;
}
.entry-content div.wpforms-container-full .wpforms-form input:focus, .entry-content div.wpforms-container-full .wpforms-form select:focus, .entry-content div.wpforms-container-full .wpforms-form textarea:focus { border-color: var(--rose); outline: none; box-shadow: none; }
.entry-content div.wpforms-container-full .wpforms-form input[type="radio"], .entry-content div.wpforms-container-full .wpforms-form input[type="checkbox"] { accent-color: var(--velours); }
.entry-content div.wpforms-container-full .wpforms-form button[type="submit"] { border: 0; border-radius: 999px; background: var(--velours); color: #fff; padding: 11px 24px; font-weight: 600; font-size: 16px; cursor: pointer; height: auto; }
.entry-content div.wpforms-container-full .wpforms-form button[type="submit"]:hover, .entry-content div.wpforms-container-full .wpforms-form button[type="submit"]:focus { background: var(--rose); color: #fff; }

@media (min-width: 760px) {
	.recherche-encadre { padding: 16px 18px; }
	.recherche-groupe { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
	.recherche-groupe legend, .recherche-groupe #villes-wrapper, .recherche-groupe .recherche-ou { grid-column: 1 / -1; }
	.resultat a { grid-template-columns: 80px minmax(0, 1fr); padding: 14px; }
	.resultat-visuel { width: 80px; height: 80px; }
}

/* ---------- Archive des écoles, /ecoles/ (étape B9c) ---------- */
.archive-simple > ul.liste-mots { max-width: none; }
.liste-depts small { margin-left: 4px; color: var(--gris); font-size: 13px; }
/* Principales villes : cartes avec photo */
.villes-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 14px 0 24px; }
.carte-photo { display: block; overflow: hidden; border-radius: var(--rayon); background: #fff; border: 1px solid var(--filet); text-decoration: none; box-shadow: 0 8px 22px -20px rgba(86, 13, 34, .55); }
.carte-photo img, .carte-photo-vide { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.carte-photo-vide { background: linear-gradient(145deg, #8e2142, #4a1838); }
.carte-photo b { display: block; padding: 10px 14px 12px; font: 700 17px/1.2 var(--titres); color: var(--velours); }
.carte-photo:hover { box-shadow: 0 12px 26px -16px rgba(86, 13, 34, .55); }
.carte-photo:hover b { color: var(--rose); }
@media (min-width: 760px) {
	.villes-photos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
	.villes-photos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- À partir de 1 280 px : le menu des grands écrans reprend sa taille pleine ---------- */
@media (min-width: 1280px) {
	.nav-principale a { font-size: 16px; padding: 8px 14px; }
	.nav-sous a { font-size: 15px; padding: 7px 12px; }
}
