/*
Theme Name: Minecraft Addict v3
Theme URI: https://minecraft-addict.com
Author: Seobooster LTD
Description: L'Overworld en plein jour — annuaire des serveurs Minecraft français, mesurés en direct. Refonte totale du 25/09/2026 (DIRECTION-ARTISTIQUE-v3.md).
Version: 3.0.0
Text Domain: minecraft-addict
*/

/* ==========================================================================
   0. RESET MINIMAL
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.mca-bloque-scroll, html.mca-bloque-scroll body { overflow: hidden; height: 100%; }
body { margin: 0; }
img, svg { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, figure { margin: 0; }
:focus-visible { outline: 3px solid var(--lapis); outline-offset: 2px; }

/* ==========================================================================
   1. TOKENS — mode clair UNIQUEMENT (DA v3 §3-4). Aucune règle prefers-color-scheme.
   ========================================================================== */
:root {
	/* Palette Overworld */
	--ciel: #E4F3FF;
	--ciel-profond: #C9E6FF;
	--neige: #FFFFFF;
	--obsidienne: #1C1830;
	--ardoise: #4A4763;
	--herbe: #5DB83A;
	--herbe-profonde: #2E7A1C;
	--or: #FFC62E;
	--lapis: #2446C4;
	--redstone: #C8213A;
	--diamant: #22BFD2;
	--diamant-texte: #0B7383;
	--terre: #7B4B27;
	--terre-fonce: #6B4020;
	--pierre: #5E5E62;
	--roche-mere: #2B2A2E;
	--gui-panneau: #C6C6C6;
	--gui-slot: #8B8B8B;
	--gui-clair: #FFFFFF;
	--gui-ombre: #373737;
	--tooltip-fond: #100010;

	/* Rôles */
	--fond: var(--neige);
	--encre: var(--obsidienne);
	--encre-basse: var(--ardoise);
	--accent: var(--herbe);
	--accent-fonce: var(--herbe-profonde);

	/* Typo */
	--police-pixel: "Pixelify Sans", "Courier New", monospace;
	--police-lecture: "Readex Pro", system-ui, sans-serif;

	/* Grille */
	--conteneur: 1240px;
	--rayon: 2px;
	--ombre-dure: 3px 3px 0 rgba(28,24,48,.22);
	--ombre-dure-sm: 2px 2px 0 rgba(28,24,48,.18);
	--entete-h: 76px;
}

/* ==========================================================================
   2. BASE
   ========================================================================== */
body {
	background: var(--fond);
	color: var(--encre);
	font-family: var(--police-lecture);
	font-size: 18px;
	line-height: 1.65;
	font-weight: 400;
}
h1, h2 {
	font-family: var(--police-pixel);
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -0.005em;
	text-shadow: 2px 2px 0 rgba(46,122,28,.22);
}
h1 { font-size: 60px; }
/* Peaufinage /homepage+/rubrique (25/09) : H1 Pixelify à 60px débordait à 390 (titres
   de rubrique coupés/scrollables, +28 à +105 px mesurés). ≤36px mobile, jamais plus de
   4 lignes visuellement à ce corps. S'applique à TOUT h1 du site (rubriques, pages
   annexes comprises) ; .mca-heros-corps h1 a son propre correctif ci-dessous. */
@media (max-width: 640px) { h1 { font-size: 32px; overflow-wrap: anywhere; } }
h2 { font-size: 38px; }
h3 { font-family: var(--police-lecture); font-weight: 700; font-size: 22px; line-height: 1.3; }
h4 { font-family: var(--police-lecture); font-weight: 700; font-size: 17px; }
p { color: var(--encre); }
strong { font-weight: 700; }
code, .mca-mono { font-family: var(--police-lecture); font-variant-numeric: tabular-nums; }

.sb-oeil {
	position: absolute; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0,0,0,0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.sb-oeil.mca-oeil-lien { position: static; width: auto; height: auto; clip: auto; padding: 12px 16px; }
a.sb-oeil:focus { position: fixed; top: 8px; left: 8px; width: auto; height: auto; clip: auto;
	background: var(--neige); color: var(--encre); z-index: 999; padding: 10px 16px;
	border: 2px solid var(--obsidienne); }

.mca-enveloppe { max-width: var(--conteneur); margin-inline: auto; padding-inline: 24px; }
@media (max-width: 640px) { .mca-enveloppe { padding-inline: 16px; } }

.mca-section { padding-block: 56px; }
.mca-section--sombre { background: var(--ciel); }
.mca-section--bord { position: relative; }
.mca-section-tete { display: flex; align-items: baseline; justify-content: space-between;
	gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.mca-section-tete h2 { margin: 0; }
.mca-section-tete p { color: var(--ardoise); font-size: 16px; margin-top: 8px; max-width: 62ch; }
.mca-voir-tout { font-weight: 700; color: var(--lapis); white-space: nowrap; }
.mca-voir-tout:hover { text-decoration: underline; }

.mca-vide { text-align: center; padding: 48px 16px; color: var(--ardoise); font-size: 16px; }
.mca-vide .mca-mascotte { display: inline-block; margin-bottom: 12px; vertical-align: middle; }

/* ---- UTILITAIRE CHIFFRES (défaut aperçu-2 §A) : tout nombre affiché (compteur,
   rang, prix, vote, joueurs, pastille numérotée) est en Readex Pro, jamais en
   Pixelify Sans — un « 55 » en pixel se lit « SS ». Un seul utilitaire, réutilisé
   partout où le PHP échappe un nombre brut (ex. « 8 / 100 », « Votes ce mois »). ---- */
.mca-chiffre { font-family: var(--police-lecture); font-variant-numeric: tabular-nums; font-weight: 700; }

/* Contenu VISIBLE par défaut (P-202/garde-fou « jamais d'opacity sans repli »,
   défaut aperçu-1 §1) : jamais masqué par opacity, seulement décalé d'une légère
   translation, et seulement si JS a posé html.js (repli sans JS = position finale
   d'emblée). Un filet JS (mcaApparitionDefilement, app.js) force .est-visible au
   bout de 1,5 s pour toute section trop haute pour jamais atteindre le seuil de
   l'IntersectionObserver. */
.mca-reveal { transition: transform .5s ease; }
html.js .mca-reveal:not(.est-visible) { transform: translateY(18px); }
.mca-reveal.est-visible { transform: none; }
@media (prefers-reduced-motion: reduce) { .mca-reveal { transform: none !important; transition: none !important; } }

/* ==========================================================================
   3. COINS CRÉNELÉS — le vocabulaire de forme du site (DA v3 §5)
   ========================================================================== */
.mca-crenele {
	clip-path: polygon(4px 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%, 0 4px);
}

/* ==========================================================================
   4. BOUTONS « BLOC »
   ========================================================================== */
.mca-bouton {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	font-family: var(--police-lecture); font-weight: 700; font-size: 15px;
	padding: 13px 22px 17px; border: 0; cursor: pointer; white-space: nowrap;
	clip-path: polygon(4px 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%, 0 4px);
	position: relative; transition: transform .08s ease;
}
.mca-bouton--herbe { background: var(--herbe); color: var(--obsidienne); box-shadow: inset 0 -4px 0 var(--herbe-profonde); }
.mca-bouton--herbe:hover { filter: brightness(1.04); }
.mca-bouton--or { background: var(--or); color: var(--obsidienne); box-shadow: inset 0 -4px 0 #C99311; }
.mca-bouton--pleine { background: var(--herbe); color: var(--obsidienne); box-shadow: inset 0 -4px 0 var(--herbe-profonde); }
.mca-bouton--violet { background: #5000FF; color: #fff; box-shadow: inset 0 -4px 0 #2E0099; }
.mca-bouton--fantome { background: transparent; color: var(--obsidienne); box-shadow: inset 0 0 0 2px var(--obsidienne); padding-bottom: 13px; }
.mca-bouton--filaire { background: var(--neige); color: var(--obsidienne); box-shadow: inset 0 0 0 2px var(--ardoise); padding-bottom: 13px; }
.mca-bouton--petit { padding: 9px 14px 12px; font-size: 13px; }
.mca-bouton:active { transform: translateY(4px); box-shadow: none !important; }
.mca-bouton:disabled, .mca-bouton.est-vote { opacity: .78; cursor: default; pointer-events: none; }

/* Bouton Voter (défaut aperçu-1 §4 / aperçu-2 §D) : la mascotte « victoire » ne
   participe JAMAIS au flux du bouton — sans cette règle elle s'affichait en
   permanence à sa taille réelle (44-52px) au milieu du libellé « Voter », rendu
   cassé sur toutes les lignes/podium/fiche. Elle reste invisible et hors flux,
   n'apparaît qu'un court instant en surimpression HAUTE au moment du vote (JS
   ajoute .est-visible), jamais superposée au texte. */
.mca-voter-mascotte { position: absolute; top: -46px; left: 50%; transform: translateX(-50%); opacity: 0;
	pointer-events: none; transition: opacity .2s ease; z-index: 5; }
.mca-voter-mascotte.est-visible { opacity: 1; }
.mca-voter-icone { flex-shrink: 0; }

/* ==========================================================================
   5. L'ARÊTE D'HERBE — transitions de sol (DA v3 §6.1). Où : bas du héros,
   haut de la bande « modes », haut du pied de page. Pas ailleurs.
   ========================================================================== */
.mca-arete {
	display: block; width: 100%; height: 12px;
	background-image: url("assets/motifs/arete-herbe.svg");
	background-repeat: repeat-x; background-size: 32px 12px;
}

/* ==========================================================================
   6. LE SPLASH JAUNE (DA v3 §6.2)
   ========================================================================== */
.mca-splash {
	display: inline-block; font-family: var(--police-pixel); font-weight: 700;
	font-size: 15px; color: #FFFF55; transform: rotate(-18deg);
	text-shadow: -1px -1px 0 #1C1830, 1px -1px 0 #1C1830, -1px 1px 0 #1C1830, 1px 1px 0 #1C1830,
		2px 2px 0 #3F3F15;
	animation: mca-pulse 1.2s ease-in-out infinite;
	transform-origin: left center;
}
@keyframes mca-pulse { 0%,100% { transform: rotate(-18deg) scale(1); } 50% { transform: rotate(-18deg) scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .mca-splash { animation: none; } }

/* ==========================================================================
   7. HEADER
   ========================================================================== */
/* Peaufinage lot 2 (25/09), reste du lot 1 : l'en-tête tenait sur 2 étages collés
   (barre marque/nav + bandeau noir des mesures), 110-126 px de sticky en permanence
   (HM-018 « jamais un empilement de plusieurs étages »). Seule la barre du haut reste
   collante ; le bandeau de mesure (accueil uniquement) redevient un bloc normal qui
   défile avec la page. app.js mesure désormais #mca-entete-haut pour --entete-h. */
.mca-entete { background: var(--neige); }
.mca-entete-haut { position: sticky; top: 0; z-index: 60; background: var(--neige); border-bottom: 3px solid var(--obsidienne); padding-block: 12px; }
.mca-entete-haut-in { display: flex; align-items: center; gap: 28px; }

.mca-marque { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.mca-logo { width: 40px; height: 40px; flex-shrink: 0; }
.mca-marque-mot { font-family: var(--police-pixel); font-weight: 700; font-size: 19px; white-space: nowrap; }
.mca-marque-mot span { color: var(--herbe-profonde); }

.mca-nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.mca-nav a { padding: 10px 14px; font-weight: 700; font-size: 15px; border-radius: 0; position: relative; }
.mca-nav a.est-actif { color: var(--herbe-profonde); }
.mca-nav a.est-actif::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 3px; background: var(--herbe); }
.mca-nav a:hover { color: var(--herbe-profonde); }

.mca-entete-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.mca-recherche-chat {
	display: flex; align-items: center; gap: 8px; background: var(--roche-mere); color: #fff;
	padding: 8px 12px; clip-path: polygon(3px 0,100% 0,100% calc(100% - 3px),calc(100% - 3px) 100%,0 100%,0 3px);
	min-width: 200px;
}
.mca-recherche-chat::before { content: "/"; color: #79D157; font-family: var(--police-pixel); font-weight: 700; }
.mca-recherche-chat input { background: transparent; border: 0; color: #fff; font-family: var(--police-lecture); font-size: 14px; width: 100%; }
.mca-recherche-chat input::placeholder { color: #b8b6c4; }
.mca-recherche-chat input:focus { outline: none; }

/* Icône de recherche mobile (défaut aperçu-1 §2) : masquée par défaut, seule
   entrée « recherche » visible ≤900px, ouvre la barre de recherche en overlay. */
.mca-recherche-bouton { display: none; align-items: center; justify-content: center; width: 40px; height: 40px;
	background: none; border: 2px solid var(--obsidienne); color: var(--obsidienne); flex-shrink: 0; }
.mca-recherche-bouton svg { width: 18px; height: 18px; }

.mca-burger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; background: none; border: 2px solid var(--obsidienne); }
.mca-burger span { display: block; height: 2px; background: var(--obsidienne); margin-inline: 8px; }

.mca-bandeau-mesure { background: var(--roche-mere); color: #fff; padding-block: 8px; }
.mca-bandeau-mesure-in { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.mca-bandeau-mesure p { margin: 0; color: #d8d6e4; }
.mca-bandeau-mesure strong { color: #fff; font-family: var(--police-lecture); font-variant-numeric: tabular-nums; font-weight: 700; }
.mca-sep { opacity: .5; }

.mca-pastille { display: inline-block; width: 9px; height: 9px; background: var(--herbe); flex-shrink: 0; animation: mca-pastille-pulse 2s ease-in-out infinite; }
.mca-pastille.est-hors-ligne { background: var(--redstone); animation: none; }
@keyframes mca-pastille-pulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .mca-pastille { animation: none; } }

@media (max-width: 900px) {
	.mca-nav { position: fixed; inset: var(--entete-h) 0 0 0; background: var(--neige); flex-direction: column;
		align-items: stretch; padding: 16px; gap: 2px; overflow-y: auto; }
	/* Repli sans JS (garde-fou « jamais d'opacity sans repli ») : le menu reste en
	   position finale, ouvert, tant que html.js n'a pas été posé par app.js. */
	html.js .mca-nav { transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .15s ease, transform .15s ease; }
	html.js .mca-nav.est-ouvert { opacity: 1; transform: none; pointer-events: auto; }
	.mca-nav a { font-size: 18px; padding: 16px 12px; border-bottom: 1px solid var(--ciel); }
	.mca-burger { display: flex; }
	.mca-recherche-chat { display: none; }
	.mca-recherche-chat.est-ouvert { display: flex; position: absolute; left: 0; right: 0; top: 100%; margin: 0;
		padding: 10px 16px; min-width: 0; z-index: 59; }
	/* Débordement horizontal (défaut aperçu-1 §2) : sur mobile, l'en-tête ne garde
	   que logo + icône recherche + burger ; « Mise en avant » et « Ajouter mon
	   serveur » restent accessibles via la barre de navigation basse. */
	.mca-entete-actions .mca-bouton--or,
	.mca-entete-actions .mca-bouton--herbe,
	.mca-entete-actions .mca-bouton--filaire { display: none; }
	.mca-recherche-bouton { display: inline-flex; }
}

/* ==========================================================================
   8. BARRE DE NAVIGATION MOBILE BASSE (≤5 entrées)
   ========================================================================== */
.mca-nav-basse {
	display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 55;
	background: var(--neige); border-top: 3px solid var(--obsidienne);
	padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}
.mca-nav-basse-in { display: flex; justify-content: space-around; }
.mca-nav-basse a { display: flex; flex-direction: column; align-items: center; gap: 3px;
	font-size: 11px; font-weight: 700; color: var(--ardoise); padding: 4px 6px; min-width: 44px; }
.mca-nav-basse a svg { width: 22px; height: 22px; }
.mca-nav-basse a.est-actif { color: var(--herbe-profonde); }
.mca-nav-basse a.mca-nav-basse-cta { color: var(--herbe-profonde); }
@media (max-width: 640px) {
	.mca-nav-basse { display: block; }
	body { padding-bottom: 62px; }
}

/* ==========================================================================
   9. HÉROS — l'île du matin (DA v3 §9.1)
   ========================================================================== */
.mca-heros { position: relative; background: linear-gradient(180deg, var(--ciel) 0%, var(--ciel-profond) 100%); overflow: hidden; padding-top: 56px; }
.mca-heros-fond { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.mca-heros-lueur { position: absolute; width: 90px; height: 32px; background: #fff; opacity: .75;
	clip-path: polygon(10% 0,90% 0,100% 60%,85% 100%,15% 100%,0 60%); }
.mca-heros-lueur--a { top: 14%; left: -5%; animation: mca-derive-a 75s linear infinite; }
.mca-heros-lueur--b { top: 30%; left: 40%; width: 60px; height: 22px; animation: mca-derive-b 95s linear infinite; }
@keyframes mca-derive-a { from { transform: translateX(0); } to { transform: translateX(120vw); } }
@keyframes mca-derive-b { from { transform: translateX(0); } to { transform: translateX(130vw); } }
@media (prefers-reduced-motion: reduce) { .mca-heros-lueur { animation: none; } }

.mca-heros-in { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; padding-bottom: 40px; }
.mca-heros-corps { max-width: 60ch; }
.mca-heros-puce { display: inline-flex; align-items: center; gap: 8px; background: var(--neige); padding: 6px 12px;
	font-size: 13px; font-weight: 700; margin-bottom: 18px;
	clip-path: polygon(3px 0,100% 0,100% calc(100% - 3px),calc(100% - 3px) 100%,0 100%,0 3px); }
.mca-heros-pastille { width: 8px; height: 8px; background: var(--herbe); animation: mca-pastille-pulse 2s ease-in-out infinite; }
.mca-heros-corps h1 { margin-bottom: 16px; }
.mca-heros-corps h1 em { color: var(--herbe-profonde); font-style: normal; }
.mca-heros-corps > p { font-size: 18px; color: var(--ardoise); max-width: 52ch; margin-bottom: 26px; }
.mca-heros-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 30px; }
.mca-heros-cta { position: relative; }

.mca-heros-nombres { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 22px; }
.mca-heros-nombre { display: flex; flex-direction: column; }
.mca-heros-nombre strong { font-family: var(--police-lecture); font-variant-numeric: tabular-nums; font-weight: 700; font-size: 40px; min-width: 2.4ch; }
.mca-heros-nombre span { font-size: 13px; color: var(--ardoise); font-weight: 700; }
.mca-heros-nombre--date strong { font-size: 20px; }
.mca-heros-sep { width: 2px; height: 34px; background: var(--obsidienne); opacity: .15; }

.mca-heros-modes { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mca-heros-modes-titre { font-size: 12px; font-weight: 700; color: var(--ardoise); width: 100%; margin-bottom: 4px; }
.mca-jeton { display: inline-flex; align-items: center; gap: 6px; background: var(--neige); padding: 7px 12px; font-size: 13px; font-weight: 700;
	clip-path: polygon(3px 0,100% 0,100% calc(100% - 3px),calc(100% - 3px) 100%,0 100%,0 3px); }
.mca-jeton span { color: var(--herbe-profonde); }
.mca-jeton:hover { background: var(--herbe); color: var(--obsidienne); }
.mca-jeton:hover span { color: var(--obsidienne); }

.mca-heros-scene { position: relative; aspect-ratio: 1/1; }
.mca-heros-scene svg { width: 100%; height: 100%; }
.mca-heros-addi { position: absolute; left: 22%; bottom: 30%; z-index: 2; }
.mca-heros-addi .mca-mascotte { filter: drop-shadow(3px 5px 0 rgba(28,24,48,.14)); }

.mca-heros-arete { position: relative; z-index: 1; }

@media (max-width: 900px) {
	.mca-heros-in { grid-template-columns: 1fr; }
	.mca-heros-scene { max-width: 340px; margin-inline: auto; }
	.mca-heros-corps h1 { font-size: 34px; }
}

/* ==========================================================================
   10. PODIUM (DA v3 §6.3, §9.1.4)
   ========================================================================== */
.mca-podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: end; }
/* La carte-cadre ne clippe PAS (défaut aperçu-2 §H/aperçu-1 §5) : un clip-path
   rogne tout enfant positionné en négatif, ce qui coupait la pastille de rang qui
   déborde du bord haut. Le clip-path/ombre/bordure vivent sur .mca-podium-carte-clip,
   la pastille est un enfant DIRECT de .mca-podium-carte (non clippée). Le petit
   pictogramme flottant sans légende au-dessus du n°1 a été retiré (défaut H : « retirer »). */
.mca-podium-carte { position: relative; }
.mca-podium-carte[data-rang="1"] { order: 2; }
.mca-podium-carte[data-rang="2"] { order: 1; }
.mca-podium-carte[data-rang="3"] { order: 3; }
.mca-podium-carte-clip {
	background: var(--neige); padding: 18px; position: relative;
	clip-path: polygon(4px 0,100% 0,100% calc(100% - 4px),calc(100% - 4px) 100%,0 100%,0 4px);
	box-shadow: var(--ombre-dure); border: 2px solid var(--obsidienne);
}
.mca-podium-carte[data-rang="1"] .mca-podium-carte-clip { box-shadow: 0 0 0 3px var(--or), var(--ombre-dure); }
.mca-podium-rang { position: absolute; top: -14px; left: 16px; z-index: 3; font-family: var(--police-lecture); font-variant-numeric: tabular-nums; font-weight: 700; font-size: 20px;
	width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; color: var(--obsidienne);
	clip-path: polygon(3px 0,100% 0,100% calc(100% - 3px),calc(100% - 3px) 100%,0 100%,0 3px); }
.mca-podium-rang--or { background: var(--or); }
.mca-podium-rang--argent { background: #C6C6C6; }
.mca-podium-rang--bronze { background: #C58F5B; }
.mca-podium-rang--gris { background: var(--ciel); }
.mca-podium-banniere { display: block; aspect-ratio: 468/60; margin-bottom: 12px; overflow: hidden; clip-path: inherit; }
.mca-podium-banniere img, .mca-podium-banniere svg { width: 100%; height: 100%; object-fit: cover; }
.mca-podium-nom { font-size: 19px; margin-bottom: 4px; }
.mca-podium-sous { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ardoise); flex-wrap: wrap; margin-bottom: 8px; }
.mca-podium-note { color: var(--or); font-weight: 700; }
.mca-podium-jauge-bloc { margin: 10px 0; }
.mca-podium-pied { margin-top: 10px; }
@media (max-width: 720px) { .mca-podium { grid-template-columns: 1fr; } .mca-podium-carte[data-rang="1"],.mca-podium-carte[data-rang="2"],.mca-podium-carte[data-rang="3"] { order: 0; padding-top: 18px; } }

/* ==========================================================================
   11. LA CAPSULE MULTIJOUEUR — banniere/monogramme, jetons de mode
   ========================================================================== */
.mca-banniere-img, .mca-banniere-generee { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.mca-monogramme, .mca-monogramme-in { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
	background: hsl(var(--teinte,200) 55% 40%); color: #fff; font-family: var(--police-pixel); font-weight: 700; font-size: 22px; }

.mca-mode-pill { display: inline-flex; align-items: center; padding: 4px 9px; font-size: 12px; font-weight: 700;
	background: hsl(var(--teinte-mode,140) 55% 92%); color: hsl(var(--teinte-mode,140) 60% 26%);
	clip-path: polygon(2px 0,100% 0,100% calc(100% - 2px),calc(100% - 2px) 100%,0 100%,0 2px); }
.mca-mode-pill--reste { background: var(--ciel); color: var(--ardoise); }
.mca-modes { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }

.mca-badge-version { display: inline-flex; align-items: center; gap: 4px; background: var(--diamant); color: var(--obsidienne);
	font-size: 12px; font-weight: 700; padding: 4px 8px;
	clip-path: polygon(2px 0,100% 0,100% calc(100% - 2px),calc(100% - 2px) 100%,0 100%,0 2px); }
.mca-badge-version--vide { background: var(--ciel); color: var(--ardoise); }
.mca-badge-version--podium { background: var(--diamant); }

.mca-badge-or { display: inline-flex; align-items: center; gap: 4px; background: var(--or); color: var(--obsidienne);
	font-size: 11px; font-weight: 700; padding: 3px 8px; margin-bottom: 6px;
	clip-path: polygon(2px 0,100% 0,100% calc(100% - 2px),calc(100% - 2px) 100%,0 100%,0 2px); }

.mca-puce-adresse { display: inline-flex; align-items: center; gap: 6px; background: var(--ciel); padding: 6px 6px 6px 10px;
	clip-path: polygon(2px 0,100% 0,100% calc(100% - 2px),calc(100% - 2px) 100%,0 100%,0 2px); }
.mca-puce-adresse-texte { font-family: var(--police-lecture); font-weight: 700; font-size: 13px; }
.mca-puce-adresse-copier { background: var(--neige); border: 1px solid var(--obsidienne); width: 26px; height: 26px;
	display: flex; align-items: center; justify-content: center; font-size: 13px; }
.mca-puce-adresse-copier:hover { background: var(--herbe); }
.mca-puce-adresse.est-copiee { background: var(--herbe); }
.mca-puce-adresse--archive { background: var(--ciel); opacity: .7; }
.mca-puce-adresse--archive .mca-puce-adresse-texte { color: var(--ardoise); }

.mca-etiquette-archive { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--ardoise); }
.mca-etiquette-archive .mca-mascotte { width: 20px !important; }

/* ==========================================================================
   12. JAUGE joueurs/capacité + compteurs
   ========================================================================== */
.mca-compteur-bloc { display: flex; align-items: baseline; gap: 3px; font-family: var(--police-lecture); font-variant-numeric: tabular-nums; font-weight: 700; font-size: 20px; margin-bottom: 4px; white-space: nowrap; }
.mca-compteur { min-width: 2ch; display: inline-block; text-align: right; }
.mca-compteur-max { font-size: 13px; color: var(--ardoise); font-family: var(--police-lecture); font-weight: 400; }
.mca-jauge { display: block; }
.mca-jauge-piste { display: block; height: 6px; background: var(--ciel); overflow: hidden; }
.mca-jauge-barre { display: block; height: 100%; width: calc(var(--taux,0) * 100%); background: var(--herbe); transition: width .9s ease; }
.mca-jauge--or .mca-jauge-barre { background: var(--or); }
.mca-jauge--lave .mca-jauge-barre { background: var(--redstone); }
.mca-jauge--eteinte .mca-jauge-barre { background: var(--ardoise); opacity: .4; }
.mca-jauge:not(.est-visible) .mca-jauge-barre { width: 0; }

/* ==========================================================================
   13. LIGNE DE CLASSEMENT (carte-serveur) — DA v3 §9.2
   ========================================================================== */
.mca-classement-liste { display: flex; flex-direction: column; gap: 12px; }
.mca-ligne {
	display: grid; grid-template-columns: 190px 1fr; gap: 0; background: var(--neige);
	border: 2px solid var(--obsidienne); box-shadow: var(--ombre-dure-sm);
	clip-path: polygon(4px 0,100% 0,100% calc(100% - 4px),calc(100% - 4px) 100%,0 100%,0 4px);
	transition: transform .12s ease, box-shadow .12s ease; position: relative;
}
.mca-ligne:hover { transform: translateY(-4px); box-shadow: var(--ombre-dure); }
.mca-ligne.mca-carte-serveur--or { box-shadow: 0 0 0 3px var(--or), var(--ombre-dure-sm); }
.mca-ligne.mca-carte-serveur--argent { box-shadow: 0 0 0 3px #C6C6C6, var(--ombre-dure-sm); }
.mca-ligne.mca-carte-serveur--bronze { box-shadow: 0 0 0 3px #C58F5B, var(--ombre-dure-sm); }
.mca-ligne.mca-ligne--premium { box-shadow: 0 0 0 3px var(--or), var(--ombre-dure-sm); background: #FFFBEE; }
.mca-ligne.est-archive { opacity: .72; }

/* Bannière de ligne (défaut aperçu-1 §3) : PAS d'aspect-ratio ici. Dans une grille
   à hauteur de ligne fixée par le contenu (190px + 1fr), un aspect-ratio empêche
   l'étirement du bloc à la hauteur réelle de la ligne (~105px) — la bannière
   restait minuscule en haut à gauche avec un grand vide dessous. On laisse le
   bloc s'étirer sur toute la hauteur de la ligne (stretch, comportement grid par
   défaut) et l'image en 468×60 remplit ce bloc en object-fit:cover (centrée,
   rognée proprement, jamais de vide). Le ratio 468×60 est repris tel quel en
   mobile où la bannière occupe sa propre ligne pleine largeur. */
.mca-col-mono { position: relative; overflow: hidden; min-height: 78px; }
.mca-ligne-banniere { display: block; width: 100%; height: 100%; min-height: 78px; }
.mca-ligne-banniere .mca-banniere-img, .mca-ligne-banniere svg { min-height: 78px; }

.mca-ligne-corps-mobile { display: grid; grid-template-columns: 56px 1.6fr .8fr 1fr 1fr; gap: 14px; align-items: center; padding: 14px 16px; }

.mca-col-rang { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.mca-rang-bloc { display: flex; flex-direction: column; align-items: center; }
.mca-rang-nb--pixel { font-family: var(--police-lecture); font-variant-numeric: tabular-nums; font-weight: 700; font-size: 24px; }
.mca-rang-bloc--or .mca-rang-nb--pixel { color: var(--or); -webkit-text-stroke: 1px var(--obsidienne); }
.mca-rang-bloc--argent .mca-rang-nb--pixel { color: #9C9C9C; -webkit-text-stroke: 1px var(--obsidienne); }
.mca-rang-bloc--bronze .mca-rang-nb--pixel { color: #B87333; -webkit-text-stroke: 1px var(--obsidienne); }
.mca-mouvement { font-size: 10px; font-weight: 700; display: flex; align-items: center; gap: 2px; }
.mca-mouvement[data-sens="hausse"] { color: var(--herbe-profonde); }
.mca-mouvement[data-sens="baisse"] { color: var(--redstone); }
.mca-mouvement[data-sens="stable"] { color: var(--ardoise); }

.mca-col-nom h3 { font-size: 18px; margin-bottom: 3px; }
.mca-col-nom h3 a:hover { text-decoration: underline; }
.mca-carte-identite { margin-bottom: 6px; }
.mca-carte-modes { margin: 4px 0 0; }

.mca-col-version { display: flex; align-items: center; justify-content: center; }

.mca-col-spark { display: flex; flex-direction: column; gap: 4px; min-width: 90px; }
.mca-sparkline { color: var(--herbe-profonde); width: 90px; height: 24px; }
.mca-sparkline-attente { font-size: 11px; color: var(--ardoise); }
.mca-carte-etat { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--ardoise); margin: 0; }
.mca-carte-etat-vu { color: var(--ardoise); }

.mca-col-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.mca-carte-mesure { text-align: right; }
.mca-carte-mesure .mca-jauge { width: 90px; margin-left: auto; }

@media (max-width: 900px) {
	.mca-ligne { grid-template-columns: 1fr; }
	.mca-col-mono { aspect-ratio: 468/60; }
	.mca-ligne-corps-mobile { grid-template-columns: 40px 1fr; grid-template-areas: "rang nom" "spark spark" "actions actions"; }
	.mca-col-rang { grid-area: rang; }
	.mca-col-nom { grid-area: nom; }
	.mca-col-version { display: none; }
	.mca-col-spark { grid-area: spark; flex-direction: row; align-items: center; justify-content: space-between; }
	.mca-col-actions { grid-area: actions; flex-direction: row; align-items: center; justify-content: space-between; width: 100%; }
	.mca-carte-mesure { text-align: left; }
	.mca-carte-mesure .mca-jauge { margin-left: 0; }
}

/* ==========================================================================
   14. BANDE « PAR MODE DE JEU » (herbe) + guides
   ========================================================================== */
.mca-modes-grille { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.mca-mode-cube { background: var(--neige); padding: 18px; text-align: center; border: 2px solid var(--obsidienne);
	clip-path: polygon(4px 0,100% 0,100% calc(100% - 4px),calc(100% - 4px) 100%,0 100%,0 4px);
	transition: transform .15s ease; }
.mca-mode-cube:hover { transform: rotate(2deg) scale(1.03); }
.mca-mode-cube img { margin-inline: auto; margin-bottom: 8px; image-rendering: pixelated; }
.mca-mode-cube-icone { display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.mca-mode-cube-icone svg { width: 34px; height: 34px; }
.mca-mode-cube-nom { font-weight: 700; font-size: 14px; display: block; }
.mca-mode-cube-compte { font-size: 12px; color: var(--ardoise); }
@media (max-width: 720px) { .mca-modes-grille { grid-template-columns: repeat(2,1fr); } }

.mca-guides-portes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.mca-porte { background: var(--neige); padding: 20px 14px; text-align: center; border: 2px solid var(--obsidienne);
	clip-path: polygon(4px 0,100% 0,100% calc(100% - 4px),calc(100% - 4px) 100%,0 100%,0 4px);
	display: flex; flex-direction: column; align-items: center; gap: 8px; transition: transform .15s ease; }
.mca-porte:hover { transform: translateY(-3px); box-shadow: var(--ombre-dure-sm); }
.mca-porte-icone { width: 40px; height: 40px; color: var(--herbe-profonde); }
.mca-porte-nom { font-weight: 700; font-size: 15px; }
.mca-porte-compte { font-size: 12px; color: var(--ardoise); }
@media (max-width: 720px) { .mca-guides-portes { grid-template-columns: repeat(2,1fr); } }

.mca-grille-actu { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: auto auto; gap: 18px; }
.mca-grille-actu > :first-child { grid-row: span 2; }
@media (max-width: 900px) { .mca-grille-actu { grid-template-columns: 1fr; } .mca-grille-actu > :first-child { grid-row: auto; } }

.mca-actu-carte { background: var(--neige); border: 2px solid var(--obsidienne); display: flex; flex-direction: column;
	clip-path: polygon(4px 0,100% 0,100% calc(100% - 4px),calc(100% - 4px) 100%,0 100%,0 4px); overflow: hidden; }
.mca-actu-carte-img { display: block; aspect-ratio: 16/9; }
.mca-actu-carte-img img { width: 100%; height: 100%; object-fit: cover; }
.mca-grille-actu > :first-child .mca-actu-carte-img { aspect-ratio: 16/11; }
.mca-actu-carte-corps { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.mca-actu-carte-titre { font-size: 18px; margin-bottom: 6px; }
.mca-actu-carte-titre a:hover { text-decoration: underline; }
.mca-actu-carte-chapo { font-size: 14px; color: var(--ardoise); flex: 1; margin-bottom: 8px; }
.mca-actu-carte-meta { font-size: 12px; color: var(--ardoise); margin: 0; }

/* ==========================================================================
   15. COMMENT ON CLASSE / CTA final
   ========================================================================== */
.mca-comment { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-bottom: 20px; }
.mca-comment-item { background: var(--neige); padding: 18px; border: 2px solid var(--obsidienne);
	clip-path: polygon(4px 0,100% 0,100% calc(100% - 4px),calc(100% - 4px) 100%,0 100%,0 4px); }
.mca-comment-item b { display: block; margin-bottom: 6px; font-size: 15px; }
.mca-comment-item p { font-size: 14px; color: var(--ardoise); margin: 0; }
.mca-comment-mascotte { display: block; margin-bottom: 8px; }
.mca-comment-lien { font-weight: 700; color: var(--lapis); }
@media (max-width: 900px) { .mca-comment { grid-template-columns: 1fr; } }

.mca-cta-ajouter { background: var(--roche-mere); color: #fff; padding-block: 40px; }
.mca-cta-ajouter-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.mca-cta-ajouter h2 { color: #fff; margin-bottom: 6px; }
.mca-cta-ajouter p { color: #d8d6e4; margin: 0; }

/* ==========================================================================
   15b. À LA UNE / CÔTÉ ADMIN / AVIS / FAQ
   ========================================================================== */
.mca-a-la-une { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
.mca-a-la-une-carte { position: relative; box-shadow: 0 0 0 4px var(--or); clip-path: polygon(4px 0,100% 0,100% calc(100% - 4px),calc(100% - 4px) 100%,0 100%,0 4px); }
.mca-a-la-une-etiquette { position: absolute; top: -13px; left: 14px; z-index: 3; background: var(--or); color: var(--obsidienne);
	font-size: 11px; font-weight: 700; padding: 4px 10px; }
@media (max-width: 900px) { .mca-a-la-une { grid-template-columns: 1fr; } }

/* B-ACC-03 item 2 : sur un site neuf, souvent 1 seule tuile visible (les autres à 0
   restent masquées côté PHP) — en grid auto-fit(1fr), cette tuile unique s'étirait sur
   toute la largeur (1190×138). En flex avec une base fixe, elle garde une taille
   raisonnable et se cale à gauche au lieu de s'étirer seule. */
.mca-admin-tuiles { display: flex; flex-wrap: wrap; gap: 16px; }
.mca-admin-tuile { flex: 0 1 220px; }
.mca-admin-tuile { background: var(--neige); padding: 20px; text-align: center; border: 2px solid var(--obsidienne); }
.mca-admin-tuile strong { display: block; font-family: var(--police-lecture); font-variant-numeric: tabular-nums; font-weight: 700; font-size: 40px; }
.mca-admin-tuile span { font-size: 13px; color: var(--ardoise); font-weight: 700; }

.mca-avis-grille { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.mca-avis-carte { display: flex; gap: 12px; background: var(--ciel); padding: 16px; }
.mca-avis-tete { width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%; overflow: hidden; }
.mca-avis-nom { font-weight: 700; font-size: 14px; margin-bottom: 2px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mca-avis-etoiles { color: var(--or); font-size: 12px; letter-spacing: 1px; }
.mca-avis-texte { font-size: 13px; color: var(--ardoise); margin: 4px 0; }
.mca-avis-serveur { font-size: 12px; margin: 0; }
.mca-avis-serveur a { font-weight: 700; color: var(--lapis); }
@media (max-width: 900px) { .mca-avis-grille { grid-template-columns: 1fr; } }

.mca-faq { display: flex; flex-direction: column; gap: 10px; max-width: 76ch; }
.mca-faq-item { background: var(--neige); border: 2px solid var(--obsidienne); padding: 14px 16px; }
.mca-faq-item summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.mca-faq-item summary::-webkit-details-marker { display: none; }
.mca-faq-item summary::after { content: "+"; font-family: var(--police-pixel); font-size: 18px; color: var(--herbe-profonde); }
.mca-faq-item[open] summary::after { content: "–"; }
.mca-faq-item p { margin-top: 10px; color: var(--ardoise); font-size: 15px; }

/* ==========================================================================
   16. FILTRES (colonne/panneau) — DA v3 §9.2
   ========================================================================== */
.mca-filtres { background: var(--neige); border-block: 2px solid var(--obsidienne); padding-block: 14px; position: sticky; top: var(--entete-h); z-index: 20; }
.mca-filtres-in { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.mca-controles-filtres { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; flex: 1; }
.mca-etiquette { font-size: 12px; font-weight: 700; color: var(--ardoise); margin: 0; }
.mca-panneau-filtres-tete { display: none; align-items: center; justify-content: space-between; }
.mca-panneau-filtres-fermer { display: none; background: none; border: 0; font-size: 18px; }

.mca-filtres-recherche input { padding: 9px 12px; border: 2px solid var(--obsidienne); font-family: var(--police-lecture); font-size: 14px; min-width: 180px; }
.mca-filtre-groupe { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.mca-filtre-groupe-titre { font-size: 11px; font-weight: 700; color: var(--ardoise); text-transform: uppercase; margin-right: 4px; }
.mca-filtre-pill { background: var(--ciel); border: 2px solid transparent; padding: 7px 12px; font-size: 13px; font-weight: 700;
	clip-path: polygon(2px 0,100% 0,100% calc(100% - 2px),calc(100% - 2px) 100%,0 100%,0 2px); }
.mca-filtre-pill.est-actif { background: var(--herbe); border-color: var(--obsidienne); }
.mca-filtre-groupe select { padding: 7px 10px; border: 2px solid var(--obsidienne); font-family: var(--police-lecture); font-size: 13px; background: var(--neige); }

.mca-filtres-mobile-bouton { display: none; }
.mca-filtres-resultats { margin-left: auto; font-weight: 700; font-size: 14px; }
.mca-filtres-resultats.mca-roule { animation: mca-roule .35s ease; }
@keyframes mca-roule { from { transform: translateY(-6px); opacity: 0; } to { transform: none; opacity: 1; } }

.mca-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.mca-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--obsidienne); color: #fff; padding: 5px 6px 5px 10px; font-size: 12px; }
.mca-chip button { background: none; border: 0; color: #fff; }

.mca-panneau-filtres-pied { display: none; }

@media (max-width: 900px) {
	.mca-controles-filtres { display: none; }
	.mca-controles-filtres.est-ouvert { display: flex; position: fixed; inset: 0 0 0 0; z-index: 90; background: var(--neige);
		flex-direction: column; align-items: stretch; padding: 16px; overflow-y: auto; }
	.mca-controles-filtres.est-ouvert .mca-panneau-filtres-tete { display: flex; margin-bottom: 12px; }
	.mca-controles-filtres.est-ouvert .mca-panneau-filtres-fermer { display: block; }
	.mca-filtres-mobile-bouton { display: inline-flex; }
	.mca-panneau-filtres-pied.est-ouvert { display: flex; gap: 10px; position: fixed; bottom: 0; left: 0; right: 0; z-index: 91;
		background: var(--neige); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 2px solid var(--obsidienne); }
	.mca-panneau-filtres-pied .mca-bouton { flex: 1; }
	.mca-filtres { position: static; }
}

/* ==========================================================================
   17. TÊTE D'ARCHIVE / RUBRIQUE + PAGINATION + FIL D'ARIANE
   ========================================================================== */
.mca-classement-tete { padding-block: 40px 24px; }
.mca-classement-tete h1 { margin-bottom: 10px; }
.mca-classement-tete p { color: var(--ardoise); max-width: 62ch; }
.mca-fil-ariane { display: flex; gap: 6px; font-size: 13px; color: var(--ardoise); margin-bottom: 14px; flex-wrap: wrap; }
.mca-fil-ariane a:hover { text-decoration: underline; }

.mca-pagination { display: flex; gap: 8px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.mca-pagination .page-numbers { display: flex; align-items: center; justify-content: center; min-width: 38px; height: 38px;
	background: var(--neige); border: 2px solid var(--obsidienne); font-family: var(--police-lecture); font-variant-numeric: tabular-nums; font-weight: 700; font-size: 14px; }
.mca-pagination .page-numbers.current { background: var(--herbe); }
.mca-pagination .page-numbers.dots { border: 0; }

/* ==========================================================================
   18. FICHE SERVEUR — DA v3 §9.3
   ========================================================================== */
.mca-fiche-tete { padding-top: 24px; }
.mca-fiche-banniere { display: block; aspect-ratio: 468/60; max-height: 120px; overflow: hidden; margin: 14px 0; border: 2px solid var(--obsidienne); }
@media (min-width: 700px) { .mca-fiche-banniere { aspect-ratio: 1240/160; } }
.mca-fiche-entete { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; margin-bottom: 16px; }
.mca-fiche-nom { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.mca-fiche-nom h1 { margin: 0; }
.mca-fiche-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--ardoise); font-size: 14px; margin-top: 8px; }

.mca-fiche-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 18px; }
.mca-fiche-stat { background: var(--ciel); padding: 14px; text-align: center; }
.mca-fiche-stat span { display: block; font-size: 12px; color: var(--ardoise); font-weight: 700; margin-bottom: 4px; }
.mca-fiche-stat strong { font-family: var(--police-lecture); font-variant-numeric: tabular-nums; font-weight: 700; font-size: 22px; white-space: nowrap; }

.mca-fiche-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-bottom: 28px; }
/* B-TEC-25 rouge 8 : h3->h2 promus (hiérarchie) dans des petites cartes/sidebars qui
   n'ont pas la place pour un H2 Pixelify 38px — on leur redonne le gabarit visuel qu'ils
   avaient en h3 (Readex 700 22px), seule la sémantique change. */
.mca-fiche-encart h2, .mca-contact-infos h2 { font-family: var(--police-lecture); font-weight: 700; font-size: 22px; line-height: 1.3; text-shadow: none; letter-spacing: 0; margin: 0 0 12px; }

.mca-fiche-courbes { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; padding-bottom: 28px; }
.mca-fiche-courbe-carte { background: var(--neige); border: 2px solid var(--obsidienne); padding: 16px; }
.mca-fiche-courbe-carte h3 { font-size: 15px; margin-bottom: 10px; }
.mca-fiche-sparkline-grande { display: block; height: 80px; }
.mca-fiche-sparkline-grande svg { width: 100%; height: 100%; }
@media (max-width: 700px) { .mca-fiche-courbes { grid-template-columns: 1fr; } }

.mca-fiche-corps { display: grid; grid-template-columns: 1fr 320px; gap: 32px; padding-bottom: 40px; }
.mca-fiche-texte { max-width: 72ch; font-size: 17px; }
.mca-fiche-texte p { margin-bottom: 1.2em; }
.mca-fiche-galerie { margin-top: 36px; }
.mca-fiche-galerie h2 { font-size: 24px; margin-bottom: 14px; }
.mca-fiche-galerie-grille { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.mca-fiche-galerie-item img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border: 2px solid var(--obsidienne); }
.mca-fiche-galerie-legende { font-size: 12px; color: var(--ardoise); margin-top: 4px; }
@media (max-width: 900px) { .mca-fiche-corps { grid-template-columns: 1fr; } .mca-fiche-galerie-grille { grid-template-columns: repeat(2,1fr); } }

.mca-fiche-annexe { display: flex; flex-direction: column; gap: 16px; }
.mca-fiche-encart { background: var(--ciel); padding: 16px; }
.mca-fiche-encart-court { background: var(--ciel); border: 2px solid rgba(28,24,48,.14); padding: 14px 16px; border-radius: var(--rayon); margin: 12px 0; }
.mca-fiche-encart-court p { margin: 0; font-size: 14px; color: var(--ardoise); }
.mca-fiche-encart-court a { color: var(--herbe-profonde); font-weight: 700; }
.mca-fiche-encart h3 { font-size: 14px; margin-bottom: 10px; }
.mca-fiche-encart-mascotte { display: flex; gap: 10px; align-items: flex-start; }
.mca-identite { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; margin: 0; font-size: 13px; }
.mca-identite dt { color: var(--ardoise); font-weight: 700; }
.mca-identite dd { margin: 0; text-align: right; }

/* ==========================================================================
   18b. ÉTAPES / FORMULAIRE D'AVIS / RECHERCHE
   ========================================================================== */
.mca-etapes-rejoindre { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-top: 14px; }
.mca-etape-rejoindre { background: var(--ciel); padding: 16px; position: relative; }
.mca-etape-num { position: absolute; top: -10px; left: 14px; background: var(--herbe); color: var(--obsidienne);
	font-family: var(--police-pixel); font-weight: 700; font-size: 13px; width: 24px; height: 24px;
	display: flex; align-items: center; justify-content: center; }
.mca-etape-rejoindre svg { color: var(--herbe-profonde); margin-bottom: 8px; }
.mca-etape-rejoindre p { font-size: 14px; margin: 0; }
@media (max-width: 700px) { .mca-etapes-rejoindre { grid-template-columns: 1fr; } }

.mca-fiche-avis-form { margin-top: 20px; }
.mca-fiche-avis-form .comment-form { display: flex; flex-direction: column; gap: 12px; max-width: 480px; }
.mca-fiche-avis-form input, .mca-fiche-avis-form textarea { padding: 10px 12px; border: 2px solid var(--ardoise); font-family: var(--police-lecture); font-size: 15px; }
.mca-fiche-avis-form input:focus, .mca-fiche-avis-form textarea:focus { border-color: var(--lapis); outline: none; }
.mca-fiche-avis-form .form-submit input[type="submit"] {
	display: inline-flex; width: max-content; font-family: var(--police-lecture); font-weight: 700; font-size: 15px;
	padding: 13px 22px 17px; border: 0; cursor: pointer; background: var(--herbe); color: var(--obsidienne);
	box-shadow: inset 0 -4px 0 var(--herbe-profonde);
	clip-path: polygon(4px 0,100% 0,100% calc(100% - 4px),calc(100% - 4px) 100%,0 100%,0 4px);
}

.search-form { display: flex; gap: 8px; max-width: 420px; margin-inline: auto; }
.search-form .search-field { flex: 1; padding: 12px 14px; border: 2px solid var(--obsidienne); font-family: var(--police-lecture); font-size: 15px; }
.search-form .search-submit { padding: 12px 18px; background: var(--herbe); color: var(--obsidienne); border: 2px solid var(--obsidienne); font-weight: 700; }

/* ==========================================================================
   19. 404 — « Vous êtes mort ! »
   ========================================================================== */
.mca-404 { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
	text-align: center; padding-block: 60px; background: linear-gradient(180deg, rgba(200,33,58,.10), transparent 60%); }
.mca-404-mascotte { margin-bottom: 18px; }
.mca-404 h1 { margin-bottom: 8px; }
.mca-404-score { font-family: var(--police-pixel); font-weight: 700; color: var(--redstone); margin: 6px 0 20px; }
.mca-404 p { color: var(--ardoise); margin-bottom: 20px; }
.mca-404 ul { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 20px; }
.mca-404 ul a { display: inline-flex; padding: 10px 16px; background: var(--neige); border: 2px solid var(--obsidienne); font-weight: 700; font-size: 14px; }
.mca-404-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }

/* ==========================================================================
   20. LA MASCOTTE ADDI — animations (DA v3 §7)
   ========================================================================== */
.mca-mascotte { display: inline-block; line-height: 0; }
.mca-mascotte svg { width: 100%; height: 100%; overflow: visible; }

/* Respiration + balancement de bras + clignement, en boucle, sur toutes les poses. */
.mca-mascotte [class="addi-torse"] { animation: mca-respire 3s ease-in-out infinite; transform-origin: 50% 100%; }
.mca-mascotte [class="addi-bras-gauche"] { animation: mca-bras-g 2.6s ease-in-out infinite; transform-box: fill-box; transform-origin: top center; }
.mca-mascotte [class="addi-bras-droit"] { transform-box: fill-box; transform-origin: top center; }
.mca-mascotte--repos [class="addi-bras-droit"] { animation: mca-bras-d 2.6s ease-in-out infinite; }
.mca-mascotte [class="addi-yeux"] { animation: mca-clin 5s steps(1) infinite; transform-box: fill-box; transform-origin: center; }

@keyframes mca-respire { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-1.2px); } }
@keyframes mca-bras-g { 0%,100% { transform: rotate(0deg); } 50% { transform: rotate(3deg); } }
@keyframes mca-bras-d { 0%,100% { transform: rotate(0deg); } 50% { transform: rotate(-3deg); } }
@keyframes mca-clin { 0%,92%,100% { transform: scaleY(1); } 94% { transform: scaleY(0.08); } 96% { transform: scaleY(1); } }

/* Salut : oscillation du bras levé, 3 fois, une seule apparition (rejouée par JS via classe). */
.mca-mascotte--salut [class="addi-bras-droit"] { animation: mca-salue 1.2s ease-in-out 3; }
@keyframes mca-salue { 0%,100% { transform: rotate(0deg); } 50% { transform: rotate(14deg); } }

/* Victoire : saut + bras qui montent encore un peu, synchronisé aux orbes (JS ajoute .est-visible). */
.mca-mascotte--victoire { transform: translateY(0); }
.mca-mascotte--victoire.est-visible { animation: mca-saut .6s ease-out; }
@keyframes mca-saut { 0% { transform: translateY(0); } 40% { transform: translateY(-8px); } 100% { transform: translateY(0); } }

/* Mort : bascule + teinte rouge 200ms (déjà couchée dans le SVG ; on ajoute juste le flash). */
.mca-mascotte--mort { animation: mca-flash-rouge .9s ease-out; }
@keyframes mca-flash-rouge { 0% { filter: drop-shadow(0 0 0 transparent) saturate(2.4) sepia(.4) hue-rotate(-30deg); } 25% { filter: none; } 100% { filter: none; } }

/* Lecture : la page du livre se retourne toutes les 5 s (en-tête des guides). */
.mca-mascotte--lecture [class="addi-livre"] { animation: mca-tourne-page 5s steps(1) infinite; transform-box: fill-box; transform-origin: center; }
@keyframes mca-tourne-page { 0%, 88% { transform: scaleX(1); } 90% { transform: scaleX(0.05); } 92%, 100% { transform: scaleX(1); } }

/* Minage : la pioche frappe en boucle (formulaire d'ajout pendant le test de sonde). */
.mca-mascotte--mine [class="addi-bras-droit"] { animation: mca-frappe 0.8s ease-in-out infinite; transform-box: fill-box; transform-origin: top center; }
@keyframes mca-frappe { 0%, 100% { transform: rotate(-70deg); } 50% { transform: rotate(-92deg); } }

@media (prefers-reduced-motion: reduce) {
	.mca-mascotte * { animation: none !important; }
}

/* ==========================================================================
   21. SLOTS / GRILLE D'ÉTABLI — interface GUI reproduite (DA v3 §6.4)
   ========================================================================== */
.mca-slot { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; width: var(--taille,48px); }
.mca-slot img { width: 100%; height: 100%; image-rendering: pixelated; background: var(--gui-slot);
	box-shadow: inset 2px 2px 0 var(--gui-ombre), inset -2px -2px 0 var(--gui-clair); padding: 4px; }
.mca-slot-nom { font-size: 11px; text-align: center; color: var(--ardoise); }

.mca-etabli { display: grid; grid-template-columns: repeat(3, 48px); grid-template-rows: repeat(3, 48px); gap: 4px;
	background: var(--gui-panneau); padding: 10px; width: max-content; }
.mca-etabli .mca-slot { width: 48px; height: 48px; }

/* ==========================================================================
   22. PIED DE PAGE — la coupe du monde (DA v3 §6, procédé transversal)
   ========================================================================== */
.mca-pied { color: #fff; }
.mca-pied-bande-terre { background: var(--terre); padding-block: 40px 24px; }
.mca-pied-grille { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.mca-pied-marque { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
/* Le sélecteur global `p { color: var(--encre) }` (§2) s'applique à CE <p> et
   écrase la couleur héritée du pied (blanc) : nom en encre foncée sur fond brun,
   illisible (défaut aperçu-1 §7). Couleur explicite ici. */
.mca-pied-nom { font-family: var(--police-pixel); font-weight: 700; font-size: 17px; color: #fff; }
.mca-pied-note { font-size: 13px; color: #EAD9C3; margin-bottom: 10px; max-width: 40ch; }
.mca-pied-non-affilie { font-size: 12px; color: #cbb190; max-width: 40ch; }
.mca-pied-colonne-titre { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; text-transform: uppercase;
	letter-spacing: .04em; margin-bottom: 10px; color: #fff; }
.mca-pied-colonne-titre svg { width: 16px; height: 16px; image-rendering: pixelated; }
.mca-pied-liste { display: flex; flex-direction: column; gap: 8px; }
.mca-pied-liste a { font-size: 14px; color: #EAD9C3; }
.mca-pied-liste a:hover { color: #fff; text-decoration: underline; }
@media (max-width: 900px) { .mca-pied-grille { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .mca-pied-grille { grid-template-columns: 1fr; } }

.mca-pied-bande-pierre { background: var(--pierre); padding-block: 16px; }
.mca-pied-bande-pierre p { color: #fff; font-size: 13px; margin: 0; text-align: center; }

/* La bande de bas de pied (défaut aperçu-1 §7 / aperçu-2 §E) : le fond ne doit
   JAMAIS être posé sur l'élément qui porte aussi .mca-enveloppe — .mca-enveloppe
   limite la largeur à var(--conteneur), donc un fond posé dessus devient une
   bande centrée avec du blanc de chaque côté au lieu d'occuper tout l'écran.
   Le fond vit sur .mca-ours (pleine largeur), le contenu sur .mca-ours-in
   (.mca-enveloppe, sans fond). */
.mca-ours { background: var(--roche-mere); }
.mca-ours-in { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-block: 16px; }
.mca-ours span { font-size: 12px; color: #b8b6c4; }
.mca-ours a { color: #b8b6c4; }
.mca-ours a:hover { color: #fff; }

/* ==========================================================================
   23. ACCESSIBILITÉ / UTILITAIRES
   ========================================================================== */
::selection { background: var(--herbe); color: var(--obsidienne); }

/* ==========================================================================
   24. GUIDES — familles, fiches, grille d'établi, infobulle enchantée
   (DA v3 §6.4, §6.5, §9.5, §9.6). Accents réutilisés du jeton de palette §3,
   jamais une couleur neuve : blocs=pierre, objets=diamant, mobs=redstone,
   recettes=terre, commandes=violet, enchantements=lapis, potions=herbe-profonde,
   biomes=ardoise.
   ========================================================================== */
.mca-porte-icone--blocs, .mca-guide-carte-sprite--blocs         { color: var(--pierre); background: color-mix(in srgb, var(--pierre) 12%, var(--neige)); }
.mca-porte-icone--objets, .mca-guide-carte-sprite--objets       { color: var(--diamant-texte); background: color-mix(in srgb, var(--diamant) 16%, var(--neige)); }
.mca-porte-icone--mobs, .mca-guide-carte-sprite--mobs           { color: var(--redstone); background: color-mix(in srgb, var(--redstone) 10%, var(--neige)); }
.mca-porte-icone--recettes, .mca-guide-carte-sprite--recettes   { color: var(--terre); background: color-mix(in srgb, var(--terre) 12%, var(--neige)); }
.mca-porte-icone--commandes, .mca-guide-carte-sprite--commandes { color: #5000FF; background: color-mix(in srgb, #5000FF 10%, var(--neige)); }
.mca-porte-icone--enchantements, .mca-guide-carte-sprite--enchantements { color: var(--lapis); background: color-mix(in srgb, var(--lapis) 10%, var(--neige)); }
.mca-porte-icone--potions, .mca-guide-carte-sprite--potions     { color: var(--herbe-profonde); background: color-mix(in srgb, var(--herbe) 14%, var(--neige)); }
.mca-porte-icone--biomes, .mca-guide-carte-sprite--biomes       { color: var(--ardoise); background: color-mix(in srgb, var(--ardoise) 10%, var(--neige)); }

.mca-porte-icone { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; margin-inline: auto; clip-path: polygon(4px 0,100% 0,100% calc(100% - 4px),calc(100% - 4px) 100%,0 100%,0 4px); }
.mca-porte-icone svg { width: 26px; height: 26px; }
.mca-porte--famille[data-accent] .mca-porte-nom { font-weight: 700; }

.mca-guide-index-mascotte { flex-shrink: 0; }
.mca-classement-tete.mca-enveloppe { display: flex; align-items: center; gap: 20px; }
@media (max-width: 640px) { .mca-classement-tete.mca-enveloppe { flex-direction: column; align-items: flex-start; text-align: left; } }

/* -- Tête de fiche / famille (bandeau teinté à l'accent) -- */
.mca-guide-tete { padding-block: 32px 24px; }
.mca-guide-tete--blocs { background: color-mix(in srgb, var(--pierre) 10%, var(--neige)); }
.mca-guide-tete--objets { background: color-mix(in srgb, var(--diamant) 12%, var(--neige)); }
.mca-guide-tete--mobs { background: color-mix(in srgb, var(--redstone) 8%, var(--neige)); }
.mca-guide-tete--recettes { background: color-mix(in srgb, var(--terre) 10%, var(--neige)); }
.mca-guide-tete--commandes { background: color-mix(in srgb, #5000FF 8%, var(--neige)); }
.mca-guide-tete--enchantements { background: color-mix(in srgb, var(--lapis) 8%, var(--neige)); }
.mca-guide-tete--potions { background: color-mix(in srgb, var(--herbe) 10%, var(--neige)); }
.mca-guide-tete--biomes { background: color-mix(in srgb, var(--ardoise) 8%, var(--neige)); }

.mca-guide-entete { display: flex; align-items: center; gap: 20px; margin-top: 14px; flex-wrap: wrap; }
.mca-guide-sprite-halo { width: 96px; height: 96px; flex-shrink: 0; background: var(--neige); display: flex; align-items: center; justify-content: center;
	clip-path: polygon(6px 0,100% 0,100% calc(100% - 6px),calc(100% - 6px) 100%,0 100%,0 6px); box-shadow: var(--ombre-dure); }
.mca-guide-sprite { image-rendering: pixelated; width: 64px; height: 64px; object-fit: contain; }
.mca-guide-sprite--vide { font-family: var(--police-pixel); font-size: 32px; color: var(--ardoise); }
.mca-guide-cat-lien { font-size: 12px; font-weight: 700; color: var(--ardoise); text-transform: uppercase; letter-spacing: .04em; }
.mca-guide-nom h1 { margin: 4px 0 6px; }
.mca-guide-chapo { color: var(--ardoise); font-size: 16px; max-width: 60ch; margin-bottom: 8px; }
.mca-guide-meta-ligne { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.mca-version-jeu { display: inline-flex; align-items: center; gap: 4px; background: var(--diamant); color: var(--obsidienne); font-size: 12px; font-weight: 700; padding: 4px 8px; clip-path: polygon(2px 0,100% 0,100% calc(100% - 2px),calc(100% - 2px) 100%,0 100%,0 2px); }
.mca-version-jeu span { opacity: .75; }
.mca-guide-badge-type { background: var(--ciel); font-size: 12px; font-weight: 700; padding: 4px 8px; }
.mca-guide-id { display: inline-flex; align-items: center; gap: 6px; background: var(--roche-mere); color: #fff; border: 0; padding: 5px 10px; font-size: 12px; cursor: pointer; }
.mca-guide-id svg { width: 14px; height: 14px; }
.mca-guide-id-copie { display: none; color: var(--herbe); }
.mca-guide-id.est-copie .mca-guide-id-copie { display: inline; }
.mca-guide-id.est-copie .mca-mono { display: none; }

.mca-guide-apercu { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 10px; margin-top: 20px; }
.mca-guide-apercu-tuile { display: flex; align-items: center; gap: 10px; background: var(--neige); padding: 10px 12px; box-shadow: var(--ombre-dure-sm); }
.mca-guide-apercu-icone { width: 30px; height: 30px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: var(--ardoise); }
.mca-guide-apercu-cle { display: block; font-size: 11px; color: var(--ardoise); font-weight: 700; text-transform: uppercase; }
.mca-guide-apercu-valeur { display: block; font-weight: 700; font-size: 14px; }

/* -- Corps 2 colonnes (sommaire hérité + texte / carte d'identité) -- */
.mca-guide-corps { display: grid; grid-template-columns: 1fr 320px; gap: 32px; padding-block: 32px 40px; align-items: start; }
.mca-guide-principal { max-width: 72ch; }
.mca-guide-annexe { display: flex; flex-direction: column; gap: 16px; position: sticky; top: calc(var(--entete-h) + 16px); }
@media (max-width: 1100px) { .mca-guide-corps { grid-template-columns: 1fr; } .mca-guide-annexe { position: static; } }

.mca-guide-section-corps { padding-block: 22px; border-top: 2px solid var(--ciel); }
.mca-guide-section-corps:first-child { border-top: 0; padding-top: 0; }
.mca-guide-section-corps h2 { margin-bottom: 14px; }
/* Titres collés (défaut aperçu-2 §I) : un h3 de contenu qui suit immédiatement le
   h2 de section n'avait AUCUNE marge (reset global h1-h4 à 0) — espacement toujours
   garanti, que l'article ait ou non un chapô entre les deux. */
.mca-prose h2 { margin: 1.6em 0 .6em; }
.mca-prose h3 { margin: 1.4em 0 .5em; font-size: 19px; }
.mca-prose h2:first-child, .mca-prose h3:first-child { margin-top: 0; }
.mca-prose p { margin-bottom: 1.2em; color: var(--encre); font-size: 17px; line-height: 1.65; }
.mca-prose a { color: var(--lapis); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.mca-guide-encart { background: var(--neige); border: 2px solid var(--obsidienne); padding: 16px; }
.mca-guide-encart h3 { font-size: 14px; margin-bottom: 10px; text-transform: uppercase; letter-spacing: .03em; color: var(--ardoise); }
.mca-guide-sommaire ul { display: flex; flex-direction: column; gap: 8px; }
.mca-guide-sommaire a { font-size: 14px; font-weight: 700; color: var(--encre); display: block; padding: 3px 0; }
.mca-guide-sommaire li.est-sous a { padding-left: 12px; font-weight: 400; font-size: 13px; color: var(--ardoise); }
.mca-guide-sommaire a.est-actif, .mca-guide-sommaire a:hover { color: var(--herbe-profonde); }

.mca-guide-encart-survie { text-align: center; }
.mca-guide-liees { display: flex; flex-direction: column; gap: 8px; }
.mca-guide-liees a { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; }
.mca-guide-liees-icone { width: 24px; height: 24px; flex-shrink: 0; }

/* -- Grille d'établi / recette (DA §6.4, interface GUI reproduite) -- */
.mca-guide-recette-corps { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; }
.mca-guide-grille { display: grid; grid-template-columns: repeat(3, 40px); grid-template-rows: repeat(3, 40px); gap: 3px; background: var(--gui-panneau); padding: 8px; }
.mca-guide-case { width: 40px; height: 40px; background: var(--gui-slot); box-shadow: inset 2px 2px 0 var(--gui-ombre), inset -2px -2px 0 var(--gui-clair); display: flex; align-items: center; justify-content: center; position: relative; }
.mca-guide-case img { width: 32px; height: 32px; image-rendering: pixelated; }
.mca-guide-case.est-vide { opacity: .5; }
.mca-guide-case-nom { font-size: 8px; text-align: center; color: #fff; line-height: 1.1; padding: 2px; }
.mca-guide-fleche { color: var(--ardoise); flex-shrink: 0; }
.mca-guide-fleche svg { width: 26px; height: 26px; }
.mca-guide-resultat { display: flex; flex-direction: column; align-items: center; gap: 4px; background: var(--gui-panneau); padding: 10px; box-shadow: inset 2px 2px 0 var(--gui-ombre), inset -2px -2px 0 var(--gui-clair); }
.mca-guide-resultat img { width: 40px; height: 40px; image-rendering: pixelated; }
.mca-guide-resultat-nom { font-size: 12px; font-weight: 700; }
.mca-guide-resultat-nom a { color: var(--obsidienne); }
.mca-guide-legende { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.mca-guide-legende li { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.mca-guide-legende-icone { width: 20px; height: 20px; flex-shrink: 0; }
.mca-guide-legende-icone img { width: 100%; height: 100%; image-rendering: pixelated; }
.mca-guide-legende-qte { margin-left: auto; font-family: var(--police-lecture); font-weight: 700; color: var(--ardoise); }

/* -- Pastilles / créatures / code -- */
.mca-guide-pastilles { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.mca-guide-pastille { display: inline-flex; align-items: center; padding: 5px 10px; font-size: 12px; font-weight: 700; background: var(--ciel); clip-path: polygon(2px 0,100% 0,100% calc(100% - 2px),calc(100% - 2px) 100%,0 100%,0 2px); }
.mca-guide-pastille--oui { background: color-mix(in srgb, var(--herbe) 30%, var(--neige)); color: var(--herbe-profonde); }
.mca-guide-pastille--non { background: var(--ciel); color: var(--ardoise); }
.mca-guide-pastille--lave { background: color-mix(in srgb, var(--redstone) 18%, var(--neige)); color: var(--redstone); }
.mca-guide-pastille--type { background: color-mix(in srgb, var(--diamant) 22%, var(--neige)); color: var(--diamant-texte); }

.mca-guide-creature-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 16px; }
.mca-guide-creature-label { display: block; font-size: 12px; font-weight: 700; color: var(--ardoise); text-transform: uppercase; margin-bottom: 6px; }
.mca-guide-creature-rangee { display: flex; gap: 2px; flex-wrap: wrap; margin-bottom: 4px; }
.mca-guide-creature-valeur { font-size: 13px; color: var(--ardoise); }
.mca-guide-coeur { display: inline-block; width: 16px; height: 16px; position: relative; color: var(--redstone); }
.mca-guide-coeur svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mca-guide-coeur-fond { fill: var(--ciel); }
.mca-guide-coeur-plein { fill: currentColor; }
.mca-guide-coeur--demi .mca-guide-coeur-plein { clip-path: inset(0 50% 0 0); }
.mca-guide-epee { display: inline-block; width: 16px; height: 16px; color: var(--pierre); }

.mca-guide-code-bloc { display: flex; align-items: center; gap: 10px; background: var(--roche-mere); color: #fff; padding: 12px 14px; margin-bottom: 10px; clip-path: polygon(3px 0,100% 0,100% calc(100% - 3px),calc(100% - 3px) 100%,0 100%,0 3px); }
.mca-guide-code-bloc code { flex: 1; font-size: 14px; word-break: break-word; }
.mca-guide-param { color: var(--diamant); font-style: normal; }
.mca-guide-code-copier { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.3); color: #fff; padding: 5px 9px; font-size: 12px; flex-shrink: 0; }
.mca-guide-code-copier svg { width: 14px; height: 14px; }
.mca-guide-parametres { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.mca-guide-parametre-carte { background: var(--ciel); padding: 10px 12px; min-width: 160px; }
.mca-guide-parametre-nom { display: block; margin-bottom: 4px; }
.mca-guide-parametre-carte p { font-size: 13px; color: var(--ardoise); margin-top: 4px; }
.mca-guide-exemples { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.mca-guide-exemple-effet { font-size: 13px; color: var(--ardoise); margin: -4px 0 8px; }
.mca-guide-permission { font-size: 13px; color: var(--ardoise); }

/* -- Encarts éditoriaux (astuce=panneau bois, erreur=TNT, jamais de puces) -- */
.mca-guide-encarts-colores { display: flex; flex-direction: column; gap: 12px; }
.mca-guide-encart-astuce, .mca-guide-encart-erreur { display: flex; gap: 12px; padding: 14px 16px; align-items: flex-start; }
.mca-guide-encart-astuce { background: color-mix(in srgb, var(--terre) 10%, #F7F1E1); border: 2px solid var(--terre); color: var(--obsidienne); }
.mca-guide-encart-astuce svg { color: var(--terre); flex-shrink: 0; }
.mca-guide-encart-erreur { background: color-mix(in srgb, var(--redstone) 8%, var(--neige)); border: 2px solid var(--redstone); }
.mca-guide-encart-erreur svg { color: var(--redstone); flex-shrink: 0; }
.mca-guide-encart-astuce p, .mca-guide-encart-erreur p { margin: 4px 0 0; font-size: 14px; }

.mca-guide-faq { display: flex; flex-direction: column; gap: 8px; }
.mca-guide-versions { display: flex; flex-direction: column; gap: 10px; }
.mca-guide-versions-item { display: flex; gap: 12px; align-items: baseline; border-left: 3px solid var(--diamant); padding-left: 12px; }
.mca-guide-versions-item p { margin: 0; color: var(--ardoise); font-size: 14px; }

/* -- Où le trouver : ruban de profondeur -- */
.mca-guide-profondeur { display: grid; grid-template-columns: 64px 1fr; gap: 20px; }
.mca-guide-profondeur.sans-ruban { grid-template-columns: 1fr; }
.mca-guide-profondeur-ruban { position: relative; background: linear-gradient(180deg, var(--pierre) 0%, var(--roche-mere) 66%, var(--obsidienne) 100%); height: 260px; overflow: hidden; }
.mca-guide-profondeur-repere { position: absolute; left: 0; right: 0; top: var(--y); font-size: 9px; color: #fff; opacity: .6; padding-left: 4px; border-top: 1px dashed rgba(255,255,255,.3); }
.mca-guide-profondeur-bande { position: absolute; left: 0; right: 0; top: var(--haut); height: var(--epaisseur); background: var(--herbe); opacity: .75; }
.mca-guide-profondeur-bande[data-accent-n="1"] { background: var(--diamant); }
.mca-guide-profondeur-bande[data-accent-n="2"] { background: var(--or); }
.mca-guide-profondeur-bande[data-accent-n="3"] { background: var(--redstone); }
.mca-guide-profondeur-legende { grid-column: 1 / -1; font-size: 12px; color: var(--ardoise); margin-top: -8px; }
.mca-guide-profondeur-liste { display: flex; flex-direction: column; gap: 10px; }
.mca-guide-profondeur-carte { background: var(--ciel); padding: 12px 14px; border-left: 4px solid var(--herbe); }
.mca-guide-profondeur-carte[data-accent-n="1"] { border-color: var(--diamant); }
.mca-guide-profondeur-carte[data-accent-n="2"] { border-color: var(--or); }
.mca-guide-profondeur-carte[data-accent-n="3"] { border-color: var(--redstone); }
.mca-guide-profondeur-carte-tete { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.mca-guide-profondeur-carte p { font-size: 13px; color: var(--ardoise); margin: 4px 0 0; }
@media (max-width: 640px) { .mca-guide-profondeur { grid-template-columns: 1fr; } .mca-guide-profondeur-ruban { height: 140px; } }

/* -- Butin -- */
.mca-guide-butin-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px,1fr)); gap: 10px; }
.mca-guide-butin-carte { display: flex; flex-direction: column; align-items: center; gap: 4px; background: var(--ciel); padding: 10px; text-align: center; }
.mca-guide-butin-icone { width: 34px; height: 34px; }
.mca-guide-butin-nom { font-size: 12px; font-weight: 700; }
.mca-guide-butin-qte { font-size: 11px; color: var(--ardoise); }

/* -- Voisines / liées en bas de fiche -- */
.mca-guide-voisines { padding-block: 32px 48px; }
.mca-guide-voisines h2 { margin-bottom: 16px; }
.mca-guide-voisines-liste { display: flex; gap: 10px; flex-wrap: wrap; }
.mca-guide-voisine { display: flex; align-items: center; gap: 8px; background: var(--ciel); padding: 8px 12px; font-size: 13px; font-weight: 700; }
.mca-guide-voisine-icone { width: 22px; height: 22px; flex-shrink: 0; }
.mca-guide-voisine-icone img { image-rendering: pixelated; }

/* -- Page famille : sidebar arbre + grille d'inventaire -- */
.mca-guide-famille-tete { padding-block: 32px 20px; }
.mca-guide-famille-corps { display: grid; grid-template-columns: 240px 1fr; gap: 28px; padding-bottom: 48px; align-items: start; }
@media (max-width: 900px) { .mca-guide-famille-corps { grid-template-columns: 1fr; } }
.mca-guide-famille-nav { position: sticky; top: calc(var(--entete-h) + 16px); display: flex; flex-direction: column; gap: 2px; }
@media (max-width: 900px) { .mca-guide-famille-nav { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px; } }
.mca-guide-famille-nav a { padding: 10px 12px; font-size: 14px; font-weight: 700; color: var(--ardoise); border-left: 3px solid transparent; }
.mca-guide-famille-nav a.est-actif { color: var(--obsidienne); border-left-color: var(--herbe); background: var(--ciel); }
@media (max-width: 900px) { .mca-guide-famille-nav a { border-left: 0; border-bottom: 3px solid transparent; background: var(--ciel); } .mca-guide-famille-nav a.est-actif { border-bottom-color: var(--herbe); } }

.mca-guide-outils { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.mca-guide-outils select { padding: 8px 10px; border: 2px solid var(--obsidienne); font-family: var(--police-lecture); font-size: 13px; background: var(--neige); }

.mca-guide-grille-cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px,1fr)); gap: 12px; }
.mca-guide-carte { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; background: var(--neige); border: 2px solid var(--obsidienne); padding: 14px 10px; position: relative;
	clip-path: polygon(4px 0,100% 0,100% calc(100% - 4px),calc(100% - 4px) 100%,0 100%,0 4px); transition: transform .12s ease; }
.mca-guide-carte:hover { transform: translateY(-3px); box-shadow: var(--ombre-dure-sm); }
.mca-guide-carte--vedette { flex-direction: row; text-align: left; max-width: 420px; }
.mca-guide-carte-sprite { width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; clip-path: polygon(3px 0,100% 0,100% calc(100% - 3px),calc(100% - 3px) 100%,0 100%,0 3px); }
.mca-guide-carte-sprite img { width: 40px; height: 40px; image-rendering: pixelated; }
.mca-guide-carte--vedette .mca-guide-carte-sprite { width: 72px; height: 72px; }
.mca-guide-carte--vedette .mca-guide-carte-sprite img { width: 56px; height: 56px; }
.mca-guide-carte-corps { display: flex; flex-direction: column; gap: 4px; }
.mca-guide-carte-nom { font-weight: 700; font-size: 14px; }
.mca-guide-carte-meta { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.mca-guide-carte--vedette .mca-guide-carte-meta { justify-content: flex-start; }
.mca-guide-carte-type { font-size: 11px; color: var(--ardoise); }
.mca-guide-carte-version { font-size: 11px; color: var(--diamant-texte); }
.mca-guide-mini-grille { position: absolute; top: 8px; right: 8px; display: grid; grid-template-columns: repeat(3, 4px); grid-template-rows: repeat(3, 4px); gap: 1px; }
.mca-guide-mini-case { width: 4px; height: 4px; background: var(--ciel); }
.mca-guide-mini-case.est-remplie { background: var(--herbe-profonde); }
@media (max-width: 640px) { .mca-guide-grille-cartes { grid-template-columns: repeat(4, 1fr); } .mca-guide-carte-meta { display: none; } }

.mca-guide-section { margin-bottom: 36px; }

/* -- Infobulle enchantée (DA §6.5) — au survol/focus d'un objet, pas de JS de suivi (P-207 sobriété) -- */
[data-mca-tooltip] { position: relative; }
[data-mca-tooltip]::after {
	content: attr(data-mca-tooltip); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%) translateY(4px);
	background: var(--tooltip-fond); color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; padding: 6px 10px;
	border: 2px solid; border-image: linear-gradient(180deg, #5000FF, #28007F) 1; opacity: 0; pointer-events: none;
	transition: opacity 80ms ease, transform 80ms ease; z-index: 80;
}
[data-mca-tooltip]:hover::after, [data-mca-tooltip]:focus-visible::after { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (hover: none) { [data-mca-tooltip]::after { display: none; } }

/* -- Catalogue complet de famille (encyclopédie exhaustive, 25/09/2026) --
   Réutilise les jetons et composants ci-dessus : aucune couleur neuve. -- */
.mca-cat-puces { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.mca-cat-puce { background: var(--ciel); border: 0; padding: 6px 11px; font-size: 12px; font-weight: 700; color: var(--ardoise); cursor: pointer; font-family: var(--police-lecture); }
.mca-cat-puce .mca-mono { opacity: .7; margin-left: 3px; }
.mca-cat-puce.est-active { background: var(--herbe-profonde); color: #fff; }
.mca-cat-puce.est-active .mca-mono { opacity: .85; }

.mca-cat-groupe { margin-bottom: 28px; }
.mca-cat-groupe-titre { font-family: var(--police-pixel); font-size: 16px; margin-bottom: 12px; padding-bottom: 6px; border-bottom: 2px solid var(--ciel); display: flex; align-items: center; gap: 8px; }
details.mca-cat-groupe > summary.mca-cat-groupe-titre { cursor: pointer; list-style: none; }
details.mca-cat-groupe > summary.mca-cat-groupe-titre::-webkit-details-marker { display: none; }
details.mca-cat-groupe > summary.mca-cat-groupe-titre::before { content: '▸'; color: var(--ardoise); transition: transform .12s ease; flex-shrink: 0; }
details[open].mca-cat-groupe > summary.mca-cat-groupe-titre::before { transform: rotate(90deg); }
.mca-cat-groupe-compte { font-size: 12px; font-weight: 400; color: var(--ardoise); margin-left: auto; }

.mca-cat-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px,1fr)); gap: 8px; }
.mca-cat-case { display: flex; flex-direction: column; align-items: center; gap: 4px; background: var(--neige); border: 1px solid var(--ciel); padding: 6px 4px 7px; text-align: center; min-width: 0; text-decoration: none; color: var(--encre); }
a.mca-cat-case:hover, a.mca-cat-case:focus-visible { border-color: var(--herbe-profonde); }
.mca-cat-case img { width: 28px; height: 28px; image-rendering: pixelated; }
.mca-cat-case-vide { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; background: var(--ciel); font-family: var(--police-pixel); font-size: 13px; color: var(--ardoise); flex-shrink: 0; }
.mca-cat-case-nom { font-size: 10px; line-height: 1.15; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.mca-cat-carte-pastilles { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.mca-cat-recettes-grille { display: flex; flex-wrap: wrap; gap: 18px; }
.mca-cat-recettes-grille .mca-guide-recette-corps { background: var(--neige); padding: 12px; border: 1px solid var(--ciel); }

.mca-guide-liees-statique { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--ardoise); }

@media (max-width: 640px) {
	.mca-cat-grille { grid-template-columns: repeat(4, 1fr); }
	.mca-cat-case-nom { display: none; }
}

/* ==========================================================================
   25. BARRE D'XP — progression (lecture, étapes de formulaire) DA §6.6
   ========================================================================== */
.mca-barre-xp { position: sticky; top: var(--entete-h); z-index: 40; height: 6px; background: var(--ciel); }
.mca-barre-xp-remplissage { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--herbe), #B8F04A); transition: width 80ms linear; }
.mca-xp-etapes { display: flex; align-items: center; gap: 8px; margin-bottom: 28px; }
.mca-xp-etape { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.mca-xp-etape-piste { height: 8px; background: var(--ciel); overflow: hidden; }
.mca-xp-etape-piste span { display: block; height: 100%; width: 0; background: var(--herbe); transition: width .3s ease; }
.mca-xp-etape.est-faite .mca-xp-etape-piste span, .mca-xp-etape.est-active .mca-xp-etape-piste span { width: 100%; }
.mca-xp-etape-label { font-size: 12px; font-weight: 700; color: var(--ardoise); }
.mca-xp-etape.est-active .mca-xp-etape-label { color: var(--herbe-profonde); }

/* ==========================================================================
   26. ARTICLE (single.php) — chapô, sommaire sticky, encarts, auteur unique
   (DA v3 §9.7, règles B-ART-*)
   ========================================================================== */
.mca-article-tete { padding-top: 20px; }
/* Peaufinage lot 2 (25/09), B-ART-09/AR-022/AR-068 (ligne de flottaison) + I-ART-08/10 :
   l'image portait son propre max-width/margin (pas la même boîte que le fil d'Ariane/H1/
   chapô, posés eux dans .mca-enveloppe) → décalée par rapport au texte à 1440, ET bord à
   bord sur mobile. Elle porte maintenant la classe .mca-enveloppe (posée dans single.php),
   qui lui donne exactement les mêmes marges que le reste de l'en-tête. Hauteur réduite
   (420→300, 180 à 390) pour que la 1re ligne de texte apparaisse dans le premier écran. */
.mca-article-image { display: block; margin: 12px auto 0; aspect-ratio: 21/9; max-height: 300px; overflow: hidden; border: 2px solid var(--obsidienne); }
.mca-article-image img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) { .mca-article-image { max-height: 180px; } }
.mca-article-badge-version { margin-bottom: 12px; }
.mca-article-tete h1 { max-width: 76ch; }
.mca-article-chapo { font-size: 19px; color: var(--ardoise); max-width: 68ch; margin: 10px 0 14px; }
.mca-article-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--ardoise); }
.mca-article-meta img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }

/* B-TEC-38 rouge 4 : 1fr seul refuse de rétrécir sous la largeur de son contenu (URL
   brutes, tableaux) → débordement de 390-419 px mesuré. minmax(0,1fr) + min-width:0 sur
   l'enfant laissent la colonne se comprimer et le contenu s'enrouler/défiler à la place. */
.mca-article-corps { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 36px; padding-block: 20px 44px; align-items: start; }
@media (max-width: 1100px) { .mca-article-corps { grid-template-columns: minmax(0,1fr); } }
.mca-article-texte { min-width: 0; max-width: 72ch; font-size: 18px; line-height: 1.7; overflow-wrap: anywhere; }
.mca-article-texte p { margin-bottom: 1.25em; }
.mca-article-texte h2 { margin: 1.6em 0 .6em; scroll-margin-top: calc(var(--entete-h) + 60px); }
.mca-article-texte h3 { margin: 1.4em 0 .5em; scroll-margin-top: calc(var(--entete-h) + 60px); }
.mca-article-texte img { border: 2px solid var(--obsidienne); margin-block: 1.4em; aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.mca-article-texte a { color: var(--lapis); font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
/* B-TEC-20/AR-098 rouge 6 : display:block cassait la mise en page native du tableau (les
   colonnes ne se partageaient plus la largeur, lignes à 1644px dans un cadre de 785px).
   Le socle (socle-mobile.php) enveloppe déjà chaque <table> dans .sbs_tableau : c'est CE
   conteneur qui défile, le <table> lui-même garde son display natif. */
.mca-article-texte .sbs_tableau { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; margin-block: 1.4em; border: 2px solid var(--obsidienne); }
.mca-article-texte table { width: 100%; min-width: 480px; border-collapse: collapse; margin: 0; border: 0; }
.mca-article-texte table th, .mca-article-texte table td { border: 1px solid var(--ciel-profond); padding: 10px 12px; text-align: left; font-size: 14px; white-space: normal; word-break: break-word; }
.mca-article-texte table th { background: var(--ciel); font-weight: 700; }
/* Bloc FAQ transformé depuis un H2 « FAQ »/« Questions fréquentes » (functions.php,
   mca_faq_accordeon) : réutilise .mca-faq/.mca-faq-item déjà posés pour /mise-en-avant/. */
.mca-article-texte .mca-faq { margin: 1.6em 0; max-width: 100%; }

.mca-article-annexe { display: flex; flex-direction: column; gap: 16px; position: sticky; top: calc(var(--entete-h) + 16px); }
@media (max-width: 1100px) { .mca-article-annexe { position: static; } }
.mca-article-annexe .mca-fiche-encart { padding: 16px; }
.mca-article-annexe .mca-fiche-encart:last-child { margin-top: auto; }

.mca-en-bref { background: #F7F1E1; border: 2px solid var(--terre); padding: 18px; margin: 1.6em 0; display: flex; gap: 12px; }
.mca-en-bref svg { color: var(--terre); flex-shrink: 0; }
.mca-en-bref h3 { margin-bottom: 6px; font-size: 15px; }
.mca-en-bref p { margin: 0; font-size: 14px; color: var(--obsidienne); }

.mca-avant-apres { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center; margin: 1.6em 0; }
.mca-avant-apres-carte { background: var(--neige); border: 2px solid var(--obsidienne); padding: 14px; }
.mca-avant-apres-carte h4 { font-size: 13px; text-transform: uppercase; color: var(--ardoise); margin-bottom: 8px; }
.mca-avant-apres-fleche { color: var(--herbe-profonde); }
@media (max-width: 640px) { .mca-avant-apres { grid-template-columns: 1fr; } .mca-avant-apres-fleche { transform: rotate(90deg); justify-self: center; } }

.mca-rail-wagonnet { display: flex; flex-direction: column; gap: 0; margin: 1.6em 0; border-left: 4px solid var(--pierre); padding-left: 20px; }
.mca-rail-gare { position: relative; padding-block: 14px; }
.mca-rail-gare::before { content: ""; position: absolute; left: -26px; top: 18px; width: 12px; height: 12px; background: var(--herbe); border: 2px solid var(--obsidienne); }
.mca-rail-gare-date { font-family: var(--police-pixel); font-size: 12px; color: var(--herbe-profonde); font-weight: 700; }
.mca-rail-gare p { margin: 4px 0 0; font-size: 14px; color: var(--ardoise); }

.mca-auteur-bloc { display: flex; gap: 14px; background: var(--ciel); padding: 18px; margin-top: 30px; align-items: flex-start; }
/* B-ART-05/B-AUT-05 (rouge 1, lot 2) : à l'intérieur de .mca-article-texte, la règle
   `.mca-article-texte img { width:100%; aspect-ratio:16/9 }` s'appliquait AUSSI à cette
   photo (750×64 étirée) et, avec flex-shrink:0 hérité de .mca-auteur-photo, écrasait la
   colonne de texte à quelques pixels (nom/bio une lettre par ligne). Cette règle, plus
   spécifique (.mca-article-texte .mca-auteur-photo), reprend la main sur TOUTES les
   propriétés en conflit : taille fixe, cercle, jamais d'aspect-ratio 16/9. */
.mca-article-texte .mca-auteur-photo,
.mca-auteur-photo { width: 64px; height: 64px; aspect-ratio: 1/1; border-radius: 50%; object-fit: cover; flex-shrink: 0; margin: 0; border: 2px solid var(--neige); box-shadow: var(--ombre-dure-sm); }
.mca-auteur-bloc > div { min-width: 0; }
.mca-auteur-nom { font-weight: 700; font-size: 16px; margin-bottom: 2px; }
.mca-auteur-nom a { color: var(--obsidienne); }
.mca-auteur-fonction { font-size: 13px; color: var(--herbe-profonde); font-weight: 700; margin-bottom: 6px; }
.mca-auteur-bio { font-size: 14px; color: var(--ardoise); margin: 0 0 8px; }
.mca-auteur-date { font-size: 12px; color: var(--ardoise); margin: 0 0 8px; }
.mca-auteur-lien-tout { font-size: 13px; font-weight: 700; color: var(--lapis); }

.mca-source-bloc { background: var(--neige); border: 2px solid var(--ardoise); padding: 16px; margin-top: 24px; }
.mca-source-bloc h3 { font-size: 13px; text-transform: uppercase; color: var(--ardoise); margin-bottom: 10px; }
.mca-source-liste { display: flex; flex-direction: column; gap: 6px; }
.mca-source-liste a { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--lapis); }
.mca-source-liste-date { font-weight: 400; color: var(--ardoise); font-size: 12px; }

.mca-articles-lies { padding-bottom: 48px; }
.mca-articles-lies h2 { margin-bottom: 16px; }
.mca-articles-lies-grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .mca-articles-lies-grille { grid-template-columns: 1fr; } }

/* ==========================================================================
   27. RUBRIQUE / ARCHIVE (category.php, archive.php) — DA §9.4
   ========================================================================== */
.mca-rubrique-tete { padding-block: 36px 24px; }
.mca-rubrique-tete-in { display: flex; align-items: center; gap: 16px; }
.mca-rubrique-icone { width: 52px; height: 52px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--neige); box-shadow: var(--ombre-dure-sm); clip-path: polygon(4px 0,100% 0,100% calc(100% - 4px),calc(100% - 4px) 100%,0 100%,0 4px); }
.mca-rubrique-compte { font-size: 13px; color: var(--ardoise); font-weight: 700; margin-top: 4px; }

.mca-vedette { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: stretch; background: var(--neige); border: 2px solid var(--obsidienne); overflow: hidden; margin-bottom: 28px;
	clip-path: polygon(6px 0,100% 0,100% calc(100% - 6px),calc(100% - 6px) 100%,0 100%,0 6px); }
.mca-vedette-img { display: block; aspect-ratio: 16/10; }
.mca-vedette-img img { width: 100%; height: 100%; object-fit: cover; }
.mca-vedette-corps { padding: 22px 24px 22px 0; display: flex; flex-direction: column; justify-content: center; }
.mca-vedette-etiquette { font-size: 12px; font-weight: 700; color: var(--herbe-profonde); text-transform: uppercase; margin-bottom: 8px; }
.mca-vedette-corps h2 { margin-bottom: 10px; }
.mca-vedette-corps p { color: var(--ardoise); margin-bottom: 12px; }
@media (max-width: 900px) { .mca-vedette { grid-template-columns: 1fr; } .mca-vedette-corps { padding: 0 20px 20px; } }

.mca-rubrique-grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .mca-rubrique-grille { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .mca-rubrique-grille { grid-template-columns: 1fr; } }

.mca-liste-longue { margin-top: 28px; }
.mca-liste-longue summary { cursor: pointer; font-weight: 700; padding: 12px 0; list-style: none; }
.mca-liste-longue summary::-webkit-details-marker { display: none; }
.mca-liste-longue summary::before { content: "▸ "; color: var(--herbe-profonde); }
.mca-liste-longue[open] summary::before { content: "▾ "; }
.mca-liste-longue-grille { display: flex; flex-wrap: wrap; gap: 8px; padding-block: 8px 16px; }
.mca-liste-longue-grille a { background: var(--ciel); padding: 6px 10px; font-size: 13px; font-weight: 700; }

/* ==========================================================================
   28. AUTEUR (author.php) — vraie fiche, photo ronde, tous ses articles
   ========================================================================== */
.mca-auteur-tete { padding-block: 40px 28px; }
.mca-auteur-tete-in { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.mca-auteur-tete-photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 3px solid var(--neige); box-shadow: var(--ombre-dure); }
.mca-auteur-tete-nom { margin-bottom: 4px; }
.mca-auteur-tete-fonction { color: var(--herbe-profonde); font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.mca-auteur-tete-bio { color: var(--ardoise); max-width: 62ch; }
.mca-auteur-tete-anciennete { font-size: 12px; color: var(--ardoise); margin-top: 6px; }

/* ==========================================================================
   29. RECHERCHE (search.php)
   ========================================================================== */
.mca-recherche-tete { padding-block: 36px 20px; text-align: center; }
.mca-recherche-tete .search-form { margin-top: 16px; }
.mca-recherche-resultats { padding-bottom: 48px; }
.mca-recherche-compte { color: var(--ardoise); font-size: 14px; margin-bottom: 18px; text-align: center; }

/* ==========================================================================
   30. PAGES ANNEXES (page.php générique, mentions légales, contact)
   ========================================================================== */
.mca-page-tete { padding-block: 32px 12px; }
.mca-page-tete-in { display: flex; align-items: center; gap: 16px; }
.mca-page-corps { max-width: 720px; margin-inline: auto; padding-block: 8px 56px; font-size: 17px; line-height: 1.7; }
.mca-page-corps h2 { margin: 1.5em 0 .6em; }
.mca-page-corps p { margin-bottom: 1.1em; color: var(--encre); }
.mca-page-corps ul:not(.mca-pied-liste) { padding-left: 22px; list-style: disc; margin-bottom: 1.1em; }
.mca-page-corps li { margin-bottom: .4em; }

.mca-contact-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding-block: 24px 48px; align-items: start; }
@media (max-width: 900px) { .mca-contact-grille { grid-template-columns: 1fr; } }
.mca-contact-form { display: flex; flex-direction: column; gap: 14px; }
.mca-champ { display: flex; flex-direction: column; gap: 6px; }
.mca-champ label { font-size: 13px; font-weight: 700; color: var(--ardoise); }
.mca-champ input, .mca-champ textarea, .mca-champ select { padding: 12px 14px; border: 2px solid var(--ardoise); font-family: var(--police-lecture); font-size: 15px; background: var(--neige); }
.mca-champ input:focus, .mca-champ textarea:focus, .mca-champ select:focus { border-color: var(--lapis); outline: none; }
.mca-champ-piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mca-contact-infos { background: var(--ciel); padding: 22px; }
.mca-contact-infos h3 { margin-bottom: 12px; }
.mca-contact-infos-ligne { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 15px; }
.mca-contact-infos-ligne svg { color: var(--herbe-profonde); flex-shrink: 0; width: 20px; height: 20px; }
.mca-contact-alerte { background: var(--neige); box-shadow: 0 0 0 2px var(--herbe); padding: 12px 16px; margin-bottom: 18px; font-weight: 700; font-size: 14px; color: var(--herbe-profonde); }

/* ==========================================================================
   31. FORMULAIRES SPÉCIAUX — ajouter / mise en avant / méthode
   ========================================================================== */
.mca-form-etape { display: none; }
.mca-form-etape.est-active { display: block; }
.mca-form-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .mca-form-grille { grid-template-columns: 1fr; } }
.mca-form-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; }
.mca-form-corps { display: grid; grid-template-columns: 1fr 320px; gap: 32px; padding-block: 12px 48px; align-items: start; }
@media (max-width: 1000px) { .mca-form-corps { grid-template-columns: 1fr; } }
.mca-form-annexe { display: flex; flex-direction: column; gap: 14px; }
.mca-form-annexe .mca-fiche-encart ul { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.mca-form-annexe .mca-fiche-encart li { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.mca-form-annexe .mca-fiche-encart li img { width: 22px; height: 22px; image-rendering: pixelated; }
.mca-sonde-resultat { background: var(--ciel); padding: 18px; text-align: center; margin: 16px 0; }
.mca-sonde-resultat.est-attente { color: var(--ardoise); }

.mca-coffres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-block: 8px 20px; }
@media (max-width: 900px) { .mca-coffres { grid-template-columns: 1fr; } }
.mca-coffre { background: var(--neige); border: 2px solid var(--obsidienne); padding: 26px 22px; text-align: center; box-shadow: var(--ombre-dure); display: flex; flex-direction: column; gap: 10px;
	clip-path: polygon(6px 0,100% 0,100% calc(100% - 6px),calc(100% - 6px) 100%,0 100%,0 6px); }
.mca-coffre-icone { width: 64px; height: 64px; margin-inline: auto; image-rendering: pixelated; }
.mca-coffre h3 { font-size: 20px; }
.mca-coffre-prix { font-family: var(--police-lecture); font-variant-numeric: tabular-nums; font-weight: 700; font-size: 30px; color: var(--herbe-profonde); }
.mca-coffre-periode { font-size: 13px; color: var(--ardoise); }
.mca-coffre-contenu { font-size: 14px; color: var(--encre); flex: 1; }
.mca-coffre-argument { font-size: 12px; color: var(--ardoise); font-style: italic; }
.mca-non-vendu { text-align: center; background: var(--roche-mere); color: #fff; padding: 16px; margin-bottom: 24px; font-size: 14px; font-weight: 700; }

.mca-circuit { display: flex; flex-direction: column; gap: 0; margin-block: 20px 32px; }
.mca-circuit-noeud { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; position: relative; border-left: 4px solid var(--redstone); padding-left: 22px; }
.mca-circuit-noeud::before { content: ""; position: absolute; left: -8px; top: 22px; width: 12px; height: 12px; background: var(--redstone); border: 2px solid var(--obsidienne); }
.mca-circuit-noeud h3 { font-size: 16px; margin-bottom: 4px; }
.mca-circuit-noeud p { font-size: 14px; color: var(--ardoise); margin: 0; }
.mca-circuit-noeud--refuse { border-left-color: var(--pierre); }
.mca-circuit-noeud--refuse::before { background: var(--pierre); }
.mca-deux-colonnes-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 24px; }
@media (max-width: 640px) { .mca-deux-colonnes-slots { grid-template-columns: 1fr; } }
.mca-deux-colonnes-slots h3 { margin-bottom: 10px; }
.mca-deux-colonnes-slots ul { display: flex; flex-direction: column; gap: 8px; list-style: none; padding: 0; margin: 0; }
.mca-deux-colonnes-slots li { display: flex; align-items: center; gap: 8px; font-size: 14px; }

/* Mobile : enfants de flex/grille qui refusaient de rétrécir (débordements 61-111 px mesurés le 25/09 à 390 px) */
.mca-guide-encart-astuce > div, .mca-guide-encart-erreur > div,
.mca-auteur-bloc > div, .mca-classement-tete.mca-enveloppe > div { min-width: 0; flex: 1 1 auto; max-width: 100%; }
.mca-prose, .mca-guide-encart-astuce, .mca-guide-encart-erreur, .mca-auteur-bloc, .mca-classement-tete { overflow-wrap: anywhere; }
@media (max-width: 640px) {
	.mca-fiche-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mca-fiche-stat { min-width: 0; }
	.mca-fiche-stat strong { white-space: normal; }
}

/* Corrections aperçu-4 (25/09) */
.mca-voter { display: inline-flex; align-items: center; gap: 8px; }
.mca-voter-icone { width: 18px; height: 18px; flex: none; }
.mca-voter .mca-voter-mascotte { display: none; }
.mca-fiche-stat strong span { display: inline; font-size: inherit; color: inherit; margin: 0; font-weight: inherit; }
/* Peaufinage /homepage (25/09), B-ACC-03 item 3 : cette règle regressait le fix de la
   section 13 (ligne ~453) — elle forçait la bannière en height:auto (~22px réels) dans
   un bloc obsidienne resté à la hauteur de la ligne (~128px), d'où le pavé sombre
   presque vide sur les lignes 4 à 13 du classement. .mca-col-mono n'est utilisé QUE
   par template-parts/serveur-ligne.php : supprimée, la règle de la section 13
   (stretch + object-fit:cover, sans vide) s'applique de nouveau. */
.mca-cat-recettes-grille[data-mca-recettes-differees] { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.mca-cat-recette-nom { font-size: 14px; color: var(--obsidienne); }

/* 25/09 soir — icônes d'encarts sans taille (explosaient en pleine largeur), noms de cases lisibles, grilles mobiles */
.mca-guide-encart-astuce > svg, .mca-guide-encart-erreur > svg { width: 24px; height: 24px; flex: none; }
.mca-cat-case-nom { white-space: normal; overflow: visible; text-overflow: clip; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.2; }
.mca-cat-grille, .mca-guide-grille-cartes, .mca-cat-recettes-grille { min-width: 0; }
.mca-cat-grille > *, .mca-guide-grille-cartes > *, .mca-cat-recettes-grille > * { min-width: 0; }
.mca-cat-grille { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
@media (max-width: 640px) {
	.mca-cat-grille { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.mca-guide-grille-cartes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mca-cat-case-nom { font-size: 9px; }
}
.mca-guide-vitrines { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: start; margin-top: 12px; }
.mca-guide-vitrines > section { margin: 0; }

/* ==========================================================================
   28. PEAUFINAGE LOT 1 (25/09) — en-têtes de page, maillage, minerais du pied
   ========================================================================== */
/* I-CAT-01 / B-TEC-38 : le libellé texte (h1 + fil d'Ariane) ne rétrécissait pas dans
   son flex, ce qui poussait le titre hors écran à 390 (rubriques, /méthode/, pages
   annexes). min-width:0 laisse le texte s'enrouler au lieu de déborder. */
.mca-page-tete-in > div, .mca-rubrique-tete-in > div { min-width: 0; flex: 1 1 auto; }
@media (max-width: 480px) {
	.mca-page-tete-in, .mca-rubrique-tete-in { align-items: flex-start; }
}
/* Peaufinage lot 2 (25/09), B-TEC-38 rouges 4/5 : min-width:0 seul ne suffisait pas sur
   /methode/ et /politique-de-confidentialite/ (mascotte 84-90px + H1 pixel côte à côte
   dans 358px utiles) — passage en colonne sous 560px : la mascotte au-dessus, le texte
   prend toute la largeur, plus aucune contention horizontale possible. */
@media (max-width: 560px) {
	.mca-page-tete-in { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* B-TEC-53 rouge 12 : grilles posées en `style="grid-template-columns:1fr"` dans
   single-mca_serveur.php (P-207 : une règle CSS sur une classe inexistante, ou ici
   un style inline, échappe à toute feuille de style commune). Classes de remplacement. */
.mca-fiche-courbes--seule { grid-template-columns: 1fr; }
.mca-avis-grille--seule { grid-template-columns: 1fr; }

/* actualite-CONSTAT R7 : « À découvrir également » (.sb-maillage, injecté par le
   mailleur dans le_content) n'avait aucun style — liste brute de liens bleus soulignés.
   Sélecteurs volontairement larges (structure exacte du mailleur hors thème) : ul/li/a
   ET lien nu direct sont couverts, jamais une classe qui n'existe pas ailleurs. */
.sb-maillage { background: var(--ciel); border: 2px solid var(--obsidienne); padding: 20px;
	margin-block: 32px; clip-path: polygon(4px 0,100% 0,100% calc(100% - 4px),calc(100% - 4px) 100%,0 100%,0 4px); }
.sb-maillage > *:first-child { margin-top: 0; }
.sb-maillage h2, .sb-maillage h3, .sb-maillage h4 { font-family: var(--police-lecture); font-size: 16px; margin-bottom: 12px; }
.sb-maillage ul, .sb-maillage ol { list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.sb-maillage li { min-width: 0; }
.sb-maillage a, .sb-maillage > a { display: block; background: var(--neige); border: 2px solid var(--obsidienne);
	padding: 12px 14px; font-size: 14px; font-weight: 700; color: var(--obsidienne); text-decoration: none !important;
	transition: transform .12s ease, background .12s ease; }
.sb-maillage a:hover, .sb-maillage > a:hover { background: var(--herbe); transform: translateY(-2px); }

/* Bande pierre du pied (procédé transversal DA §6) : la phrase « Minerais suivis en
   direct » laissait croire à un vrai suivi en direct des minerais (faux). Remplacée par
   une frise décorative de 5 icônes, jamais une affirmation. */
.mca-pied-minerais { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }
.mca-pied-minerai img { display: block; image-rendering: pixelated; }
@media (max-width: 900px) { .mca-guide-vitrines { grid-template-columns: minmax(0, 1fr); } }
/* Les infobulles invisibles (opacity 0) comptaient dans la largeur de page : elles n'existent qu'au survol/focus */
[data-mca-tooltip]:not(:hover):not(:focus-visible)::after,
[data-mca-tooltip]:not(:hover):not(:focus-visible)::before { display: none; }
[data-mca-tooltip]::after { max-width: 240px; white-space: normal; text-align: center; }
/* Bouton menu mobile : les trois barres restaient invisibles (écrasées par une règle de masquage des libellés) */
button.mca-burger > span { display: block !important; width: 22px; height: 2px; background: var(--obsidienne); margin: 0 auto; flex: none; }
.mca-article-principal { min-width: 0; }
.mca-source-domaine { font-weight: 600; color: var(--ardoise); }
/* Mobile : l'aspect-ratio 468/60 combiné à min-height:78px forçait 608 px de large (débordement 236 px, 25/09) */
@media (max-width: 900px) { .mca-col-mono { aspect-ratio: auto; width: 100%; max-width: 100%; min-height: 64px; } }

/* Bannière de ligne : jamais rognée (le nom du serveur se lisait « YOFSKI »). Colonne plus large,
   bannière entière centrée sur fond obsidienne, comme un panneau de l'écran multijoueur. */
.mca-ligne { grid-template-columns: 250px minmax(0, 1fr); }
.mca-col-mono { display: flex; align-items: center; justify-content: center; background: var(--obsidienne); padding: 8px; min-height: 0; }
.mca-col-mono .mca-ligne-banniere { width: 100%; height: auto; display: block; }
.mca-col-mono .mca-banniere-img, .mca-col-mono .mca-banniere-generee { width: 100%; height: auto; aspect-ratio: 468 / 60; object-fit: contain; }
@media (max-width: 900px) { .mca-ligne { grid-template-columns: minmax(0, 1fr); } .mca-col-mono { width: 100%; } }

/* Boutons dans la prose : le style des liens du corps (bleu souligné) ne s'applique jamais à un bouton */
.mca-prose a.mca-bouton, .mca-article-texte a.mca-bouton, a.mca-bouton { color: var(--obsidienne); text-decoration: none; background-image: none; }
a.mca-bouton--violet { color: #fff; }

/* Encadrés d'article (En bref / Le saviez-vous ? / Serveur à découvrir) */
.mca-encadre { margin: 28px 0; padding: 18px 20px; border: 2px solid var(--obsidienne); background: var(--ciel); box-shadow: 4px 4px 0 var(--obsidienne); }
.mca-encadre p { margin: 0 0 6px; }
.mca-encadre p:last-child { margin-bottom: 0; }
.mca-encadre-titre { font-family: var(--police-titre); font-size: 18px; margin-bottom: 8px !important; }
.mca-encadre-meta { font-size: 13px; color: var(--ardoise); font-weight: 600; }
/* Recette bijou (25/09) : même bug que la page de mode (§35) — flex à enfants texte
   non dimensionnés écrasait « Le saviez-vous ? » en 3 lignes sur le pilier /lancer-son-serveur/
   (contenu statique = 2 <p> frères, sans le <div> d'enrobage que produit mca_encadres_article()).
   Un float sur l'icône (optionnelle) fonctionne dans les deux cas, jamais de colonne forcée. */
.mca-encadre--savoir { background: #FFF8DC; }
.mca-encadre--savoir > img { float: left; width: 32px; height: 32px; margin: 4px 14px 8px 0; }
.mca-encadre--savoir::after { content: ""; display: block; clear: both; }
.mca-encadre--serveur { background: #EAF7E3; }
.mca-encadre code { background: var(--neige); padding: 1px 6px; font-size: 14px; }
.mca-annexe-cta { background: #EAF7E3; padding: 16px; margin-top: 14px; }
.mca-annexe-cta-titre { font-family: var(--police-titre); font-size: 17px; margin: 0 0 6px; }
.mca-annexe-cta p { font-size: 14px; margin: 0 0 10px; }
.mca-annexe-recherche { display: flex; gap: 6px; margin-top: 10px; }
.mca-annexe-recherche input { flex: 1; min-width: 0; padding: 8px 10px; border: 2px solid var(--obsidienne); font: inherit; font-size: 14px; }

/* ==========================================================================
   32. OUTIL « TESTER UN SERVEUR » (DA v3 §6.3 appliquée en direct, tâche B1 25/09)
   ========================================================================== */
.mca-testeur-corps { padding-block: 8px 40px; max-width: 640px; }
.mca-testeur-form { display: flex; flex-direction: column; gap: 4px; }
.mca-testeur-edition { display: flex; gap: 8px; flex-wrap: wrap; }
.mca-testeur-edition .mca-jeton { cursor: pointer; }
.mca-testeur-edition input[type="radio"] { accent-color: var(--herbe-profonde); }
.mca-testeur-erreur { color: var(--redstone); font-weight: 700; font-size: 14px; margin: 10px 0 0; }
.mca-testeur-erreur[hidden] { display: none; }

.mca-testeur-resultat { margin-top: 24px; }
.mca-testeur-resultat[hidden] { display: none; }
.mca-testeur-attente { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 28px; background: var(--ciel); }
.mca-testeur-attente p { color: var(--ardoise); font-weight: 700; margin: 0; }

/* La capsule multijoueur — même vocabulaire que .mca-col-mono (ligne de classement) :
   fond ardoise sombre, icône pixelisée, MOTD en vraies couleurs du jeu. */
.mca-testeur-capsule { display: flex; gap: 16px; background: var(--roche-mere); color: #fff; padding: 20px; box-shadow: var(--ombre-dure); }
.mca-testeur-capsule--injoignable { justify-content: center; }
.mca-testeur-capsule-vide { color: #d8d6e4; margin: 0; font-weight: 700; text-align: center; }
.mca-testeur-capsule-icone { flex-shrink: 0; width: 64px; height: 64px; display: flex; align-items: center; justify-content: center;
	background: var(--gui-slot); font-family: var(--police-pixel); font-weight: 700; font-size: 22px; color: #fff; image-rendering: pixelated; }
.mca-testeur-capsule-icone img { width: 64px; height: 64px; image-rendering: pixelated; }
.mca-testeur-capsule-corps { min-width: 0; flex: 1 1 auto; display: flex; flex-direction: column; gap: 10px; }
.mca-testeur-capsule-nom { font-family: var(--police-lecture); font-weight: 700; font-size: 17px; margin: 0; overflow-wrap: anywhere; }
.mca-testeur-capsule-statut { display: flex; align-items: center; gap: 4px; font-size: 13px; color: #d8d6e4; margin: 0; flex-wrap: wrap; }
.mca-testeur-latence { color: #d8d6e4; }
.mca-testeur-capsule .mca-compteur-bloc { color: #fff; }
.mca-testeur-capsule .mca-compteur-max { color: #d8d6e4; }
.mca-testeur-capsule .mca-jauge-piste { background: rgba(255,255,255,.18); }
.mca-testeur-motd { font-family: "Courier New", monospace; font-size: 13px; line-height: 1.6; background: rgba(0,0,0,.35); padding: 8px 10px; margin: 0; overflow-wrap: anywhere; }
.mca-testeur-cta { margin: 4px 0 0; }
@media (max-width: 560px) { .mca-testeur-capsule { flex-direction: column; align-items: flex-start; } }

/* Recette bijou point 2 (25/09) : la mascotte « cherche » (loupe) déborde de sa boîte
   déclarée (overflow:visible volontaire, §20) — 16px de gap ne suffisaient pas et
   la loupe mordait sur le texte (« et l'interroge »). Espace dédié à cette page. */
.mca-testeur-page-tete .mca-mascotte { margin-right: 24px; }

/* ==========================================================================
   33. ICÔNES RÉELLES DES SERVEURS (PLAN-BIJOU A2, recette bijou point 7)
   ========================================================================== */
.mca-icone-serveur { flex-shrink: 0; image-rendering: pixelated; border: 2px solid var(--obsidienne); background: var(--gui-slot); }
.mca-identite-nom { display: flex; align-items: center; gap: 10px; }
.mca-identite-nom h3, .mca-identite-nom h1 { margin: 0; }
.mca-icone-slot { flex-shrink: 0; line-height: 0; }

/* ==========================================================================
   34. PILIER « LANCER SON SERVEUR » — bloc « 3 routes » (recette bijou point 4)
   ========================================================================== */
.mca-routes-grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 1.6em 0; }
.mca-route-carte { display: flex; flex-direction: column; gap: 8px; background: var(--neige); border: 2px solid var(--obsidienne);
	padding: 18px; text-decoration: none !important; box-shadow: var(--ombre-dure-sm); transition: transform .12s ease, box-shadow .12s ease;
	clip-path: polygon(4px 0,100% 0,100% calc(100% - 4px),calc(100% - 4px) 100%,0 100%,0 4px); }
.mca-route-carte:hover, .mca-route-carte:focus-visible { transform: translateY(-3px); box-shadow: var(--ombre-dure); }
.mca-route-icone { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: var(--ciel); }
.mca-route-icone img { image-rendering: pixelated; }
.mca-route-titre { font-family: var(--police-lecture); font-weight: 700; font-size: 16px; color: var(--obsidienne); }
.mca-route-criteres { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; }
.mca-route-criteres li { position: relative; padding-left: 14px; font-size: 13px; color: var(--ardoise); line-height: 1.4; }
.mca-route-criteres li::before { content: ""; position: absolute; left: 0; top: 7px; width: 6px; height: 6px; background: var(--herbe-profonde); }
@media (max-width: 780px) { .mca-routes-grille { grid-template-columns: 1fr; } }

/* Étapes numérotées (ol.mca-etapes, contenu vitrine) : même vocabulaire que
   .mca-etape-num (badge pixel herbe sur carte ciel) — jamais de puce brute. */
ol.mca-etapes { counter-reset: mca-etape; display: flex; flex-direction: column; gap: 14px; margin: 1.4em 0; padding: 0; list-style: none; }
ol.mca-etapes > li { counter-increment: mca-etape; position: relative; background: var(--ciel); padding: 16px 18px 16px 56px; }
ol.mca-etapes > li::before {
	content: counter(mca-etape); position: absolute; left: 14px; top: 16px; width: 26px; height: 26px;
	background: var(--herbe); color: var(--obsidienne); font-family: var(--police-lecture); font-weight: 700; font-size: 14px;
	display: flex; align-items: center; justify-content: center;
	clip-path: polygon(3px 0,100% 0,100% calc(100% - 3px),calc(100% - 3px) 100%,0 100%,0 3px);
}

/* ==========================================================================
   35. PAGE DE MODE — en-tête (recette bijou point 1) : la combinaison
   .mca-classement-tete.mca-enveloppe (flex row, §24) était pensée pour 2 enfants
   (mascotte+texte, page guides) ; le fil d'Ariane, le H1, les chiffres et
   l'intro y devenaient 4-5 COLONNES écrasées côte à côte. L'enveloppe est
   redescendue d'un cran (div interne, plus de flex hérité) : bloc, jamais
   plusieurs colonnes de texte imposées.
   ========================================================================== */
.mca-classement-methode { font-size: 13px; color: var(--ardoise); margin: 8px 0 0; }
.mca-mode-intro-ligne { display: flex; gap: 32px; align-items: flex-start; margin-top: 16px; }
.mca-mode-intro-chiffres { flex: 0 0 auto; margin: 0; }
.mca-mode-intro-texte { flex: 1 1 320px; min-width: 0; }
.mca-mode-intro-texte p { margin: 0; }
@media (max-width: 640px) { .mca-mode-intro-ligne { flex-direction: column; gap: 14px; } }

/* Recette bijou (25/09) — filtres devenus liens (mode, joueurs) : même rendu que les pastilles-boutons ;
   cartes « 3 routes » : la puce du texte courant se cumulait au carré vert. */
a.mca-filtre-pill { display: inline-flex; align-items: center; gap: 6px; text-decoration: none !important; color: inherit; }
a.mca-filtre-pill.est-actif span { font-size: 11px; }
.mca-page-corps .mca-route-criteres, .mca-route-criteres { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.mca-page-corps .mca-route-criteres li { list-style: none !important; margin: 0; }
.mca-page-corps .mca-route-criteres li::marker { content: none; }

/* ==========================================================================
   36. RECETTE BIJOU — LOT 3 (25/09/2026) : Modrinth, Bedrock, boîte à outils.
   Aucune couleur neuve : tokens §1 uniquement (P-116).
   ========================================================================== */

/* -- Bedrock : puce d'adresse jumelle de la puce Java (même bouton copier, déjà branché) -- */
.mca-carte-identite { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.mca-puce-adresse-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--ardoise); margin-right: 2px; }
.mca-puce-adresse--bedrock { background: color-mix(in srgb, var(--diamant) 16%, var(--neige)); }
.mca-badge-version--edition { background: var(--ciel); color: var(--ardoise); }
.mca-col-version { gap: 6px; flex-wrap: wrap; }

/* -- La boîte à outils (accueil, recette bijou point 4) -- */
.mca-outils-grille { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.mca-outil-carte { display: flex; gap: 12px; align-items: flex-start; background: var(--neige); border: 2px solid var(--obsidienne); padding: 16px;
	clip-path: polygon(4px 0,100% 0,100% calc(100% - 4px),calc(100% - 4px) 100%,0 100%,0 4px); transition: transform .12s ease, box-shadow .12s ease; }
.mca-outil-carte:hover, .mca-outil-carte:focus-visible { transform: translateY(-3px); box-shadow: var(--ombre-dure-sm); }
.mca-outil-icone { flex-shrink: 0; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; color: var(--herbe-profonde); background: var(--ciel); }
.mca-outil-icone svg { width: 20px; height: 20px; }
.mca-outil-corps { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mca-outil-titre { font-weight: 700; font-size: 15px; color: var(--obsidienne); }
.mca-outil-phrase { font-size: 13px; color: var(--ardoise); line-height: 1.4; }
.mca-outil-chiffre { font-size: 12px; font-weight: 700; color: var(--herbe-profonde); font-variant-numeric: tabular-nums; }
@media (max-width: 1100px) { .mca-outils-grille { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .mca-outils-grille { grid-template-columns: 1fr; } }

/* -- Classements Modrinth (mods/shaders/packs de textures) — onglets en CSS pur -- */
.mca-onglets { position: relative; }
.mca-onglet-radio { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.mca-onglets-barre { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.mca-onglets-boutons { display: flex; gap: 8px; flex-wrap: wrap; }
.mca-onglet-bouton { display: inline-flex; align-items: center; padding: 9px 16px; font-weight: 700; font-size: 14px; background: var(--ciel); color: var(--ardoise); cursor: pointer;
	clip-path: polygon(3px 0,100% 0,100% calc(100% - 3px),calc(100% - 3px) 100%,0 100%,0 3px); }
#mca-onglet-top:checked ~ .mca-onglets-barre .mca-onglet-bouton[for="mca-onglet-top"],
#mca-onglet-tendance:checked ~ .mca-onglets-barre .mca-onglet-bouton[for="mca-onglet-tendance"] { background: var(--herbe); color: var(--obsidienne); }
.mca-modrinth-filtre { display: flex; align-items: center; gap: 8px; }
.mca-modrinth-filtre select { padding: 7px 10px; border: 2px solid var(--obsidienne); font-family: var(--police-lecture); font-size: 13px; background: var(--neige); }

.mca-onglet-panneau[data-panneau="tendance"] { display: none; }
#mca-onglet-tendance:checked ~ .mca-onglet-panneau[data-panneau="top"] { display: none; }
#mca-onglet-tendance:checked ~ .mca-onglet-panneau[data-panneau="tendance"] { display: block; }

.mca-modrinth-grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 1100px) { .mca-modrinth-grille { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .mca-modrinth-grille { grid-template-columns: 1fr; } }

.mca-modrinth-carte { position: relative; display: flex; flex-direction: column; gap: 10px; background: var(--neige); border: 2px solid var(--obsidienne); padding: 18px;
	box-shadow: var(--ombre-dure-sm); clip-path: polygon(4px 0,100% 0,100% calc(100% - 4px),calc(100% - 4px) 100%,0 100%,0 4px); transition: transform .12s ease, box-shadow .12s ease; }
.mca-modrinth-carte:hover { transform: translateY(-3px); box-shadow: var(--ombre-dure); }
.mca-modrinth-carte-tete { display: flex; gap: 12px; align-items: center; }
.mca-modrinth-icone { flex-shrink: 0; width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; background: var(--gui-slot); overflow: hidden; }
.mca-modrinth-icone img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.mca-modrinth-identite { min-width: 0; }
.mca-modrinth-nom { font-size: 16px; margin: 0; overflow-wrap: anywhere; }
.mca-modrinth-nom a:hover { text-decoration: underline; }
.mca-modrinth-auteur { font-size: 12px; color: var(--ardoise); margin: 2px 0 0; }
.mca-modrinth-desc { font-size: 13px; color: var(--ardoise); margin: 0; line-height: 1.5; }
.mca-modrinth-non-traduit { font-size: 11px; font-style: italic; color: var(--ardoise); opacity: .8; }
.mca-modrinth-badges { margin: 0; }
.mca-modrinth-pied { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--ciel); }
.mca-modrinth-dl { font-size: 12px; color: var(--ardoise); }

/* 37. TUILE DE CLASSEMENT (recette bijou 25/09) — remplace le filet de bannière générée. */
.mca-ligne { grid-template-columns: 150px minmax(0, 1fr); }
.mca-col-mono { padding: 0; }
.mca-col-mono .mca-ligne-banniere { height: 100%; display: flex; align-items: center; justify-content: center; }
.mca-tuile { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; min-height: 120px;
	background: radial-gradient(120% 90% at 50% 30%, hsl(var(--mca-teinte) 55% 32%), hsl(var(--mca-teinte) 45% 14%) 70%, #15121c);
	position: relative; overflow: hidden; }
.mca-tuile::after { content: ""; position: absolute; inset: 0; pointer-events: none;
	background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
	background-size: 12px 12px; }
.mca-tuile .mca-icone-serveur { width: 80px; height: 80px; image-rendering: pixelated; position: relative; z-index: 1;
	filter: drop-shadow(0 4px 0 rgba(0,0,0,.45)); transition: transform .15s ease; }
.mca-ligne:hover .mca-tuile .mca-icone-serveur { transform: translateY(-3px) scale(1.04); }
.mca-tuile--lettres { font-family: var(--police-pixel); font-size: 40px; line-height: 1; color: #fff; letter-spacing: 2px;
	text-shadow: 3px 3px 0 rgba(0,0,0,.45); }
@media (prefers-reduced-motion: reduce) { .mca-ligne:hover .mca-tuile .mca-icone-serveur { transform: none; } }
@media (max-width: 900px) {
	.mca-ligne { grid-template-columns: minmax(0, 1fr); }
	.mca-tuile { min-height: 96px; }
	.mca-tuile .mca-icone-serveur { width: 64px; height: 64px; }
	.mca-tuile--lettres { font-size: 32px; }
}

/* Adresse Java/Bedrock trop longue sur mobile (play.cobbleacademy.fr:19132) : elle se coupe
   proprement au lieu d'élargir la carte ; le bouton copier reste toujours visible. */
.mca-puce-adresse { max-width: 100%; min-width: 0; }
.mca-puce-adresse-texte { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mca-puce-adresse button, .mca-puce-adresse .mca-copier { flex-shrink: 0; }
@media (max-width: 900px) {
	.mca-ligne-corps-mobile { grid-template-columns: 40px minmax(0, 1fr); }
	.mca-ligne-corps-mobile > * { min-width: 0; }
}

/* 38. VITESSE (26/09) — le navigateur ne calcule les lignes et cartes hors écran qu'à l'approche
   du défilement : /serveurs/ porte ~3 000 éléments, l'accueil ~1 600. Taille réservée = pas de saut. */
.mca-classement-liste .mca-ligne { content-visibility: auto; contain-intrinsic-size: auto 140px; }
.mca-modrinth-grille > * { content-visibility: auto; contain-intrinsic-size: auto 210px; }
@media (max-width: 900px) {
	.mca-classement-liste .mca-ligne { contain-intrinsic-size: auto 330px; }
}
