/* Atelier Gaming — Articles v3 : hero immersif, lecture sombre, accent par jeu.
   Tout est scopé sous body.ag-art3 (articles uniquement). */
html body.ag-art3.ag-art3.ag-art3 {
	--a3-bg: #0c0e1b;
	--a3-bg-2: #111427;
	--a3-text: #d6d9e8;
	--a3-dim: #9aa0b8;
	--a3-head: #ffffff;
	--a3-line: rgba(255, 255, 255, 0.09);
}
html body.ag-art3.ag-art3.ag-art3 .site-main > article:is(.type-post,.type-page) { --a3-acc: color-mix(in srgb, var(--g, #ff5a36) 70%, #fff); }

/* --- Carte article : sombre, plus large ----------------------------------- */
html body.ag-art3.ag-art3.ag-art3 .site-main > article:is(.type-post,.type-page) {
	max-width: 1180px !important;
	margin-left: auto !important;
	margin-right: auto !important;
	padding: 0 0 48px !important;
	overflow: hidden;
	color: var(--a3-text) !important;
	background:
		radial-gradient(900px 420px at 85% 0%, color-mix(in srgb, var(--g) 14%, transparent), transparent 70%),
		linear-gradient(180deg, var(--a3-bg-2), var(--a3-bg) 40%) !important;
	box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.75), 0 0 0 1px var(--a3-line) !important;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
}
html body.ag-art3.ag-art3.ag-art3 .site-main > article:is(.type-post,.type-page)::before { z-index: 3; background: linear-gradient(90deg, var(--g), color-mix(in srgb, var(--g) 30%, #22d3ee)); }

/* --- Hero : image pleine largeur + titre posé dessus ---------------------- */
html body.ag-art3.ag-art3.ag-art3 .site-main > article:is(.type-post,.type-page) > .wp-post-image {
	grid-area: 1 / 1;
	width: 100% !important;
	max-width: none !important;
	height: clamp(340px, 58vh, 600px) !important;
	object-fit: cover;
	border-radius: 0 !important;
	box-shadow: none !important;
	margin: 0 !important;
}
html body.ag-art3.ag-art3.ag-art3 .site-main > article:is(.type-post,.type-page) > .entry-header {
	grid-area: 1 / 1;
	align-self: stretch;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	position: relative;
	z-index: 2;
	margin: 0 !important;
	padding: 140px clamp(20px, 5vw, 64px) 34px !important;
	background: linear-gradient(180deg, transparent 30%, rgba(12, 14, 27, 0.6) 60%, rgba(12, 14, 27, 0.94) 88%, var(--a3-bg-2) 100%);
}
html body.ag-art3.ag-art3.ag-art3 .site-main > article:is(.type-post,.type-page) > .entry-header :is(.entry-title,.page-title) {
	max-width: 22ch;
	margin: 0 0 14px !important;
	color: #fff !important;
	font-size: clamp(1.9rem, 3.6vw, 3.1rem) !important;
	line-height: 1.08 !important;
	letter-spacing: -0.02em;
	text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
}
html body.ag-art3.ag-art3.ag-art3 .entry-header .entry-meta { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
html body.ag-art3.ag-art3.ag-art3 .entry-header .entry-meta > span {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 5px 12px; border-radius: 999px;
	background: rgba(255, 255, 255, 0.08); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
	border: 1px solid rgba(255, 255, 255, 0.12);
	font-size: 13px;
}
html body.ag-art3.ag-art3.ag-art3 .entry-header .entry-meta,
html body.ag-art3.ag-art3.ag-art3 .entry-header .entry-meta a { color: #e3e6f3 !important; }
html body.ag-art3.ag-art3.ag-art3 .entry-header .entry-meta .meta-author { display: none; } /* auteur vide */
html body.ag-art3.ag-art3.ag-art3 .entry-header .entry-meta .meta-category { background: color-mix(in srgb, var(--g) 30%, transparent); border-color: color-mix(in srgb, var(--g) 60%, transparent); }
html body.ag-art3.ag-art3.ag-art3 .entry-header .entry-meta .icon { fill: currentColor; opacity: 0.8; }

/* --- Colonne de lecture --------------------------------------------------- */
html body.ag-art3.ag-art3.ag-art3 .site-main > article:is(.type-post,.type-page) > .entry-content,
html body.ag-art3.ag-art3.ag-art3 .site-main > article:is(.type-post,.type-page) > footer,
html body.ag-art3.ag-art3.ag-art3 .site-main > article:is(.type-post,.type-page) > .entry-footer {
	width: 100%;
	max-width: 800px !important;
	margin: 0 auto !important;
	padding: 0 clamp(18px, 4vw, 36px) !important;
	box-sizing: border-box;
}
html body.ag-art3.ag-art3.ag-art3 .site-main > article:is(.type-post,.type-page) .entry-content { color: var(--a3-text) !important; font-size: 18px; line-height: 1.75; }
html body.ag-art3.ag-art3.ag-art3 .site-main > article:is(.type-post,.type-page) .entry-content p:not(.entry-content div[class]:not([class*="wp-"]):not([class*="ag-"]):not([class^="has-"]):not([class*=" has-"]) *),
html body.ag-art3.ag-art3.ag-art3 .site-main > article:is(.type-post,.type-page) .entry-content li:not(.entry-content div[class]:not([class*="wp-"]):not([class*="ag-"]):not([class^="has-"]):not([class*=" has-"]) *) { color: var(--a3-text); }
html body.ag-art3.ag-art3.ag-art3 .site-main > article:is(.type-post,.type-page) .entry-content strong:not(.entry-content [style] *):not([class]:not([class*="wp-"]) > strong):not(.entry-content div[class]:not([class*="wp-"]):not([class*="ag-"]):not([class^="has-"]):not([class*=" has-"]) *),
html body.ag-art3.ag-art3.ag-art3 .site-main > article:is(.type-post,.type-page) .entry-content b:not(.entry-content [style] *):not([class]:not([class*="wp-"]) > b):not(.entry-content div[class]:not([class*="wp-"]):not([class*="ag-"]):not([class^="has-"]):not([class*=" has-"]) *) { color: #fff !important; background: none !important; box-shadow: none !important; }
html body.ag-art3.ag-art3.ag-art3 .site-main > article:is(.type-post,.type-page) .entry-content a:not(.ag-related-card):not(.ag-related-more):not(.wp-block-button__link):not(.entry-content div[class]:not([class*="wp-"]):not([class*="ag-"]):not([class^="has-"]):not([class*=" has-"]) *) {
	color: var(--a3-acc) !important;
	text-decoration: underline !important;
	text-decoration-color: color-mix(in srgb, var(--g) 45%, transparent) !important;
	text-underline-offset: 3px;
	text-decoration-thickness: 1.5px;
}
html body.ag-art3.ag-art3.ag-art3 .site-main > article:is(.type-post,.type-page) .entry-content a:not(.ag-related-card):hover:not(.entry-content div[class]:not([class*="wp-"]):not([class*="ag-"]):not([class^="has-"]):not([class*=" has-"]) *) { text-decoration-color: currentColor !important; }
html body.ag-art3.ag-art3.ag-art3 .entry-content h2:not(.entry-content div[class]:not([class*="wp-"]):not([class*="ag-"]):not([class^="has-"]):not([class*=" has-"]) *),
html body.ag-art3.ag-art3.ag-art3 .entry-content h3:not(.entry-content div[class]:not([class*="wp-"]):not([class*="ag-"]):not([class^="has-"]):not([class*=" has-"]) *),
html body.ag-art3.ag-art3.ag-art3 .entry-content h4:not(.entry-content div[class]:not([class*="wp-"]):not([class*="ag-"]):not([class^="has-"]):not([class*=" has-"]) *) { color: var(--a3-head) !important; }
html body.ag-art3.ag-art3.ag-art3 .entry-content h3:not(.entry-content div[class]:not([class*="wp-"]):not([class*="ag-"]):not([class^="has-"]):not([class*=" has-"]) *) { margin-top: 1.8em; }
html body.ag-art3.ag-art3.ag-art3 .entry-content h3:not(.entry-content div[class]:not([class*="wp-"]):not([class*="ag-"]):not([class^="has-"]):not([class*=" has-"]) *)::before { content: ""; display: inline-block; width: 8px; height: 8px; margin: 0 10px 0.18em 0; border-radius: 2px; background: var(--g); transform: rotate(45deg); }

/* Intertitres numérotés */
html body.ag-art3.ag-art3.ag-art3 .entry-content { counter-reset: a3h; }
html body.ag-art3.ag-art3.ag-art3 .entry-content > h2.wp-block-heading:not(.entry-content div[class]:not([class*="wp-"]):not([class*="ag-"]):not([class^="has-"]):not([class*=" has-"]) *),
html body.ag-art3.ag-art3.ag-art3 .entry-content > h2[id]:not(.ag-related-title):not(.entry-content div[class]:not([class*="wp-"]):not([class*="ag-"]):not([class^="has-"]):not([class*=" has-"]) *) {
	counter-increment: a3h;
	position: relative;
	margin: 2.4em 0 0.8em !important;
	padding: 0 0 0 0 !important;
	font-size: clamp(1.45rem, 2.2vw, 1.85rem) !important;
	line-height: 1.2 !important;
	border: 0 !important;
}
html body.ag-art3.ag-art3.ag-art3 .entry-content > h2.wp-block-heading:not(.entry-content div[class]:not([class*="wp-"]):not([class*="ag-"]):not([class^="has-"]):not([class*=" has-"]) *)::before,
html body.ag-art3.ag-art3.ag-art3 .entry-content > h2[id]:not(.ag-related-title):not(.entry-content div[class]:not([class*="wp-"]):not([class*="ag-"]):not([class^="has-"]):not([class*=" has-"]) *)::before {
	content: counter(a3h, decimal-leading-zero);
	display: block;
	margin-bottom: 4px;
	font-size: 0.82em;
	font-weight: 900;
	letter-spacing: 0.04em;
	color: transparent;
	-webkit-text-stroke: 1.5px var(--g);
	text-shadow: 0 0 24px color-mix(in srgb, var(--g) 55%, transparent);
	line-height: 1;
}
html body.ag-art3.ag-art3.ag-art3 .entry-content > h2.wp-block-heading:not(.entry-content div[class]:not([class*="wp-"]):not([class*="ag-"]):not([class^="has-"]):not([class*=" has-"]) *)::after,
html body.ag-art3.ag-art3.ag-art3 .entry-content > h2[id]:not(.ag-related-title):not(.entry-content div[class]:not([class*="wp-"]):not([class*="ag-"]):not([class^="has-"]):not([class*=" has-"]) *)::after {
	width: 72px !important; height: 3px !important; margin-top: 0.45em !important;
	background: linear-gradient(90deg, var(--g), transparent) !important;
	box-shadow: 0 0 14px color-mix(in srgb, var(--g) 70%, transparent);
}

/* Fil d'Ariane, temps de lecture, sommaire */
html body.ag-art3.ag-art3.ag-art3 .entry-content .ag-crumbs:not(.entry-content div[class]:not([class*="wp-"]):not([class*="ag-"]):not([class^="has-"]):not([class*=" has-"]) *) { margin-top: 26px; }
html body.ag-art3.ag-art3.ag-art3 .site-main > article:is(.type-post,.type-page) .entry-content .ag-crumbs a:not(.ag-related-card):not(.ag-related-more):not(.wp-block-button__link):not(.entry-content div[class]:not([class*="wp-"]):not([class*="ag-"]):not([class^="has-"]):not([class*=" has-"]) *) { color: var(--a3-dim) !important; text-decoration: none !important; }
html body.ag-art3.ag-art3.ag-art3 .entry-content .ag-crumbs a:hover:not(.entry-content div[class]:not([class*="wp-"]):not([class*="ag-"]):not([class^="has-"]):not([class*=" has-"]) *) { color: #fff !important; }
html body.ag-art3.ag-art3.ag-art3 .entry-content .ag-crumbs li:not(.entry-content div[class]:not([class*="wp-"]):not([class*="ag-"]):not([class^="has-"]):not([class*=" has-"]) *),
html body.ag-art3.ag-art3.ag-art3 .entry-content .ag-crumbs li span:not(.entry-content div[class]:not([class*="wp-"]):not([class*="ag-"]):not([class^="has-"]):not([class*=" has-"]) *) { color: #6f7590 !important; }
html body.ag-art3.ag-art3.ag-art3 .entry-content .ag-readtime:not(.entry-content div[class]:not([class*="wp-"]):not([class*="ag-"]):not([class^="has-"]):not([class*=" has-"]) *) { background: rgba(255,255,255,.06) !important; color: var(--a3-dim) !important; border: 1px solid var(--a3-line); }
html body.ag-art3.ag-art3.ag-art3 .entry-content .ag-toc:not(.entry-content div[class]:not([class*="wp-"]):not([class*="ag-"]):not([class^="has-"]):not([class*=" has-"]) *) {
	background: linear-gradient(135deg, color-mix(in srgb, var(--g) 10%, transparent), rgba(255,255,255,.03)) !important;
	border: 1px solid var(--a3-line) !important;
	border-left: 3px solid var(--g) !important;
	border-radius: 16px !important;
}
html body.ag-art3.ag-art3.ag-art3 .entry-content .ag-toc summary:not(.entry-content div[class]:not([class*="wp-"]):not([class*="ag-"]):not([class^="has-"]):not([class*=" has-"]) *) { color: #fff !important; }
html body.ag-art3.ag-art3.ag-art3 .site-main > article:is(.type-post,.type-page) .entry-content .ag-toc a:not(.ag-related-card):not(.ag-related-more):not(.wp-block-button__link):not(.entry-content div[class]:not([class*="wp-"]):not([class*="ag-"]):not([class^="has-"]):not([class*=" has-"]) *) { color: var(--a3-text) !important; text-decoration: none !important; }
html body.ag-art3.ag-art3.ag-art3 .site-main > article:is(.type-post,.type-page) .entry-content .ag-toc a:not(.ag-related-card):not(.ag-related-more):not(.wp-block-button__link):hover:not(.entry-content div[class]:not([class*="wp-"]):not([class*="ag-"]):not([class^="has-"]):not([class*=" has-"]) *) { color: #fff !important; }
html body.ag-art3.ag-art3.ag-art3 .entry-content .ag-toc li:not(.entry-content div[class]:not([class*="wp-"]):not([class*="ag-"]):not([class^="has-"]):not([class*=" has-"]) *)::marker { color: var(--g); }

/* Encadrés */
html body.ag-art3.ag-art3.ag-art3 .entry-content :is(p,div).ag-callout:not(.entry-content div[class]:not([class*="wp-"]):not([class*="ag-"]):not([class^="has-"]):not([class*=" has-"]) *) {
	position: relative;
	padding: 16px 18px 16px 52px !important;
	border: 1px solid var(--a3-line) !important;
	border-left: 3px solid var(--c, var(--g)) !important;
	border-radius: 14px !important;
	background: linear-gradient(135deg, color-mix(in srgb, var(--c, var(--g)) 14%, transparent), rgba(255,255,255,.02)) !important;
	color: var(--a3-text) !important;
	box-shadow: 0 0 0 0 transparent, inset 0 0 30px -18px var(--c, var(--g));
}
html body.ag-art3.ag-art3.ag-art3 .entry-content :is(p,div).ag-callout:not(.entry-content div[class]:not([class*="wp-"]):not([class*="ag-"]):not([class^="has-"]):not([class*=" has-"]) *)::before {
	content: "i"; position: absolute; left: 16px; top: 16px;
	width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
	font: 800 13px/1 system-ui, sans-serif; color: #0c0e1b; background: var(--c, var(--g));
}
html body.ag-art3.ag-art3.ag-art3 .entry-content .ag-callout--warn:not(.entry-content div[class]:not([class*="wp-"]):not([class*="ag-"]):not([class^="has-"]):not([class*=" has-"]) *) { --c: #f59e0b; }
html body.ag-art3.ag-art3.ag-art3 .entry-content .ag-callout--warn:not(.entry-content div[class]:not([class*="wp-"]):not([class*="ag-"]):not([class^="has-"]):not([class*=" has-"]) *)::before { content: "!"; }
html body.ag-art3.ag-art3.ag-art3 .entry-content .ag-callout--info:not(.entry-content div[class]:not([class*="wp-"]):not([class*="ag-"]):not([class^="has-"]):not([class*=" has-"]) *) { --c: #3b9bff; }
html body.ag-art3.ag-art3.ag-art3 .entry-content .ag-callout--tip:not(.entry-content div[class]:not([class*="wp-"]):not([class*="ag-"]):not([class^="has-"]):not([class*=" has-"]) *) { --c: #22c55e; }
html body.ag-art3.ag-art3.ag-art3 .entry-content .ag-callout--tip:not(.entry-content div[class]:not([class*="wp-"]):not([class*="ag-"]):not([class^="has-"]):not([class*=" has-"]) *)::before { content: "✓"; }

/* Citations / chiffres clés */
html body.ag-art3.ag-art3.ag-art3 .entry-content blockquote:not(.entry-content div[class]:not([class*="wp-"]):not([class*="ag-"]):not([class^="has-"]):not([class*=" has-"]) *) {
	margin: 2em 0 !important;
	padding: 22px 26px !important;
	border: 0 !important;
	border-radius: 18px !important;
	background: linear-gradient(135deg, color-mix(in srgb, var(--g) 18%, transparent), rgba(255,255,255,.03)) !important;
	box-shadow: inset 0 0 0 1px var(--a3-line);
	font-size: 1.15em;
	color: #fff !important;
}
html body.ag-art3.ag-art3.ag-art3 .entry-content blockquote p:not(.entry-content div[class]:not([class*="wp-"]):not([class*="ag-"]):not([class^="has-"]):not([class*=" has-"]) *) { color: #fff !important; }
html body.ag-art3.ag-art3.ag-art3 .entry-content blockquote cite:not(.entry-content div[class]:not([class*="wp-"]):not([class*="ag-"]):not([class^="has-"]):not([class*=" has-"]) *) { color: var(--a3-dim) !important; font-size: 0.8em; }

/* Tableaux */
html body.ag-art3.ag-art3.ag-art3 .entry-content .wp-block-table:not(.entry-content div[class]:not([class*="wp-"]):not([class*="ag-"]):not([class^="has-"]):not([class*=" has-"]) *),
html body.ag-art3.ag-art3.ag-art3 .entry-content .ag-table-wrap:not(.entry-content div[class]:not([class*="wp-"]):not([class*="ag-"]):not([class^="has-"]):not([class*=" has-"]) *) { border-radius: 14px; }
html body.ag-art3.ag-art3.ag-art3 .entry-content .ag-table-wrap:not(.entry-content div[class]:not([class*="wp-"]):not([class*="ag-"]):not([class^="has-"]):not([class*=" has-"]) *) { border: 1px solid var(--a3-line) !important; background: rgba(255,255,255,.02) !important; box-shadow: 0 20px 40px -28px rgba(0,0,0,.8); }
html body.ag-art3.ag-art3.ag-art3 .entry-content table:not(.entry-content div[class]:not([class*="wp-"]):not([class*="ag-"]):not([class^="has-"]):not([class*=" has-"]) *) { background: transparent !important; color: var(--a3-text) !important; border-collapse: collapse !important; }
html body.ag-art3.ag-art3.ag-art3 .entry-content table th:not(.entry-content div[class]:not([class*="wp-"]):not([class*="ag-"]):not([class^="has-"]):not([class*=" has-"]) *) {
	background: color-mix(in srgb, var(--g) 26%, #161a33) !important;
	color: #fff !important;
	border: 0 !important;
	border-bottom: 1px solid color-mix(in srgb, var(--g) 50%, transparent) !important;
}
html body.ag-art3.ag-art3.ag-art3 .entry-content table td:not(.entry-content div[class]:not([class*="wp-"]):not([class*="ag-"]):not([class^="has-"]):not([class*=" has-"]) *) { color: var(--a3-text) !important; background: transparent !important; border: 0 !important; border-bottom: 1px solid var(--a3-line) !important; }
html body.ag-art3.ag-art3.ag-art3 .entry-content table tbody tr:nth-child(even) td:not(.entry-content div[class]:not([class*="wp-"]):not([class*="ag-"]):not([class^="has-"]):not([class*=" has-"]) *) { background: rgba(255,255,255,.025) !important; }
html body.ag-art3.ag-art3.ag-art3 .entry-content table tbody tr:not(.entry-content div[class]:not([class*="wp-"]):not([class*="ag-"]):not([class^="has-"]):not([class*=" has-"]) *) { transition: background .2s; }
html body.ag-art3.ag-art3.ag-art3 .entry-content table tbody tr:hover td:not(.entry-content div[class]:not([class*="wp-"]):not([class*="ag-"]):not([class^="has-"]):not([class*=" has-"]) *) { background: color-mix(in srgb, var(--g) 10%, transparent) !important; }
html body.ag-art3.ag-art3.ag-art3 .entry-content table tbody tr:last-child td:not(.entry-content div[class]:not([class*="wp-"]):not([class*="ag-"]):not([class^="has-"]):not([class*=" has-"]) *) { border-bottom: 0 !important; }
html body.ag-art3.ag-art3.ag-art3 .entry-content table.ag-stack tr:not(.entry-content div[class]:not([class*="wp-"]):not([class*="ag-"]):not([class^="has-"]):not([class*=" has-"]) *) { background: rgba(255,255,255,.03) !important; border-color: var(--a3-line) !important; }

/* Images du corps */
html body.ag-art3.ag-art3.ag-art3 .entry-content figure.wp-block-image:not(.entry-content div[class]:not([class*="wp-"]):not([class*="ag-"]):not([class^="has-"]):not([class*=" has-"]) *),
html body.ag-art3.ag-art3.ag-art3 .entry-content figure:has(> img):not(.entry-content div[class]:not([class*="wp-"]):not([class*="ag-"]):not([class^="has-"]):not([class*=" has-"]) *) { margin: 2em 0 !important; }
html body.ag-art3.ag-art3.ag-art3 .entry-content figure img:not(.entry-content div[class]:not([class*="wp-"]):not([class*="ag-"]):not([class^="has-"]):not([class*=" has-"]) *) {
	border-radius: 16px !important;
	box-shadow: 0 24px 50px -24px color-mix(in srgb, var(--g) 60%, #000), 0 0 0 1px var(--a3-line) !important;
	transition: transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .5s;
}
html body.ag-art3.ag-art3.ag-art3 .entry-content figure:hover img:not(.entry-content div[class]:not([class*="wp-"]):not([class*="ag-"]):not([class^="has-"]):not([class*=" has-"]) *) { transform: scale(1.015); box-shadow: 0 30px 60px -22px color-mix(in srgb, var(--g) 75%, #000), 0 0 0 1px color-mix(in srgb, var(--g) 40%, transparent) !important; }
html body.ag-art3.ag-art3.ag-art3 .entry-content figcaption:not(.entry-content div[class]:not([class*="wp-"]):not([class*="ag-"]):not([class^="has-"]):not([class*=" has-"]) *) { color: var(--a3-dim) !important; font-size: 14.5px !important; line-height: 1.5 !important; text-align: center; margin-top: 10px !important; }
html body.ag-art3.ag-art3.ag-art3 .entry-content hr:not(.entry-content div[class]:not([class*="wp-"]):not([class*="ag-"]):not([class^="has-"]):not([class*=" has-"]) *) { border: 0 !important; height: 1px !important; background: linear-gradient(90deg, transparent, var(--a3-line), transparent) !important; }
html body.ag-art3.ag-art3.ag-art3 .entry-content code:not(.entry-content div[class]:not([class*="wp-"]):not([class*="ag-"]):not([class^="has-"]):not([class*=" has-"]) *) { background: rgba(255,255,255,.08) !important; color: #fff !important; border-radius: 6px; padding: 1px 6px; }

/* Blocs HTML hérités au fond clair : on les garde lisibles en carte claire */
html body.ag-art3.ag-art3.ag-art3 .entry-content [style*="background:#fff"]:not(.entry-content div[class]:not([class*="wp-"]):not([class*="ag-"]):not([class^="has-"]):not([class*=" has-"]) *),
html body.ag-art3.ag-art3.ag-art3 .entry-content [style*="background: #fff"]:not(.entry-content div[class]:not([class*="wp-"]):not([class*="ag-"]):not([class^="has-"]):not([class*=" has-"]) *),
html body.ag-art3.ag-art3.ag-art3 .entry-content [style*="background-color:#fff"]:not(.entry-content div[class]:not([class*="wp-"]):not([class*="ag-"]):not([class^="has-"]):not([class*=" has-"]) *),
html body.ag-art3.ag-art3.ag-art3 .entry-content [style*="background:#f"]:not(.entry-content div[class]:not([class*="wp-"]):not([class*="ag-"]):not([class^="has-"]):not([class*=" has-"]) *),
html body.ag-art3.ag-art3.ag-art3 .entry-content [style*="background: #f"]:not(.entry-content div[class]:not([class*="wp-"]):not([class*="ag-"]):not([class^="has-"]):not([class*=" has-"]) *) { color: #1d2030 !important; border-radius: 12px; }
html body.ag-art3.ag-art3.ag-art3 .entry-content [style*="background:#fff"] *:not(.entry-content div[class]:not([class*="wp-"]):not([class*="ag-"]):not([class^="has-"]):not([class*=" has-"]) *),
html body.ag-art3.ag-art3.ag-art3 .entry-content [style*="background: #fff"] *:not(.entry-content div[class]:not([class*="wp-"]):not([class*="ag-"]):not([class^="has-"]):not([class*=" has-"]) *),
html body.ag-art3.ag-art3.ag-art3 .entry-content [style*="background:#f"] *:not(.entry-content div[class]:not([class*="wp-"]):not([class*="ag-"]):not([class^="has-"]):not([class*=" has-"]) *),
html body.ag-art3.ag-art3.ag-art3 .entry-content [style*="background: #f"] *:not(.entry-content div[class]:not([class*="wp-"]):not([class*="ag-"]):not([class^="has-"]):not([class*=" has-"]) *) { color: inherit; }

/* Navigation précédent / suivant et commentaires */
html body.ag-art3.ag-art3.ag-art3 .post-navigation .nav-links a { background: rgba(255,255,255,.05) !important; border: 1px solid var(--a3-line); color: var(--a3-text) !important; }
html body.ag-art3.ag-art3.ag-art3 .post-navigation .nav-links a:hover { background: color-mix(in srgb, var(--g) 14%, transparent) !important; }
html body.ag-art3.ag-art3.ag-art3 .post-navigation .nav-links a * { color: inherit !important; }

/* Articles liés : grandes cartes visuelles */
html body.ag-art3.ag-art3.ag-art3 .ag-related { margin-top: 3em !important; }
html body.ag-art3.ag-art3.ag-art3 .ag-related-card { position: relative; overflow: hidden; }
html body.ag-art3.ag-art3.ag-art3 .ag-related-img { aspect-ratio: 4 / 3 !important; }
html body.ag-art3.ag-art3.ag-art3 .ag-related-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
html body.ag-art3.ag-art3.ag-art3 .ag-related-card:hover .ag-related-img img { transform: scale(1.07); }
html body.ag-art3.ag-art3.ag-art3 .ag-related-more {
	display: inline-flex !important; margin-top: 18px; padding: 10px 18px; border-radius: 999px;
	background: var(--g) !important; color: #0c0e1b !important; font-weight: 800; text-decoration: none !important;
	box-shadow: 0 10px 30px -10px var(--g);
}

/* Barre de progression à la couleur du jeu */
html body.ag-art3.ag-art3.ag-art3 .ag-progress span { background: linear-gradient(90deg, var(--g, #ff5a36), #22d3ee) !important; }

/* Apparition au défilement (seulement si le JS l'a armée) */
html.a3-reveal body.ag-art3.ag-art3 .entry-content > :is(h2:not(.entry-content div[class]:not([class*="wp-"]):not([class*="ag-"]):not([class^="has-"]):not([class*=" has-"]) *),
figure,
.wp-block-table,
.ag-callout,
blockquote,
.ag-related) {
	opacity: 0; transform: translateY(18px);
	transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1);
}
html.a3-reveal body.ag-art3.ag-art3 .entry-content > .a3-in:not(.entry-content div[class]:not([class*="wp-"]):not([class*="ag-"]):not([class^="has-"]):not([class*=" has-"]) *) { opacity: 1 !important; transform: none !important; }

/* Mobile */
@media (max-width: 760px) {
	html body.ag-art3.ag-art3.ag-art3 .site-main > article:is(.type-post,.type-page) { border-radius: 0 0 18px 18px !important; }
	html body.ag-art3.ag-art3.ag-art3 .site-main > article:is(.type-post,.type-page) > .wp-post-image { height: 300px !important; }
	html body.ag-art3.ag-art3.ag-art3 .site-main > article:is(.type-post,.type-page) > .entry-header { padding: 110px 18px 22px !important; }
	html body.ag-art3.ag-art3.ag-art3 .site-main > article:is(.type-post,.type-page) .entry-content { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
	html.a3-reveal body.ag-art3.ag-art3 .entry-content > * { opacity: 1 !important; transform: none !important; transition: none !important; }
	html body.ag-art3.ag-art3.ag-art3 .entry-content figure img:not(.entry-content div[class]:not([class*="wp-"]):not([class*="ag-"]):not([class^="has-"]):not([class*=" has-"]) *),
html body.ag-art3.ag-art3.ag-art3 .ag-related-img img { transition: none; }
}

/* Listes : séparateurs discrets */
html body.ag-art3.ag-art3.ag-art3 .site-main > article:is(.type-post,.type-page) .entry-content li:not(.entry-content div[class]:not([class*="wp-"]):not([class*="ag-"]):not([class^="has-"]):not([class*=" has-"]) *) { border-color: var(--a3-line) !important; }
html body.ag-art3.ag-art3.ag-art3 .site-main > article:is(.type-post,.type-page) .entry-content li:not(.entry-content div[class]:not([class*="wp-"]):not([class*="ag-"]):not([class^="has-"]):not([class*=" has-"]) *)::marker { color: var(--g); }
/* Trait sous les intertitres : détaché du texte */
html body.ag-art3.ag-art3.ag-art3 .entry-content > h2.wp-block-heading:not(.entry-content div[class]:not([class*="wp-"]):not([class*="ag-"]):not([class^="has-"]):not([class*=" has-"]) *)::after,
html body.ag-art3.ag-art3.ag-art3 .entry-content > h2[id]:not(.ag-related-title):not(.entry-content div[class]:not([class*="wp-"]):not([class*="ag-"]):not([class^="has-"]):not([class*=" has-"]) *)::after { position: static !important; margin-top: 12px !important; }

/* === Pages (guides, builds, donjons) ===================================== */
/* En-tête sans image à la une */
html body.ag-art3.ag-art3.ag-art3 .site-main > article:is(.type-post,.type-page):not(:has(> .wp-post-image)) > .entry-header {
	padding: clamp(40px, 6vw, 72px) clamp(20px, 5vw, 64px) 30px !important;
	background:
		radial-gradient(700px 260px at 0% 0%, color-mix(in srgb, var(--g) 26%, transparent), transparent 70%),
		radial-gradient(500px 240px at 100% 100%, rgba(34, 211, 238, .12), transparent 70%) !important;
	border-bottom: 1px solid var(--a3-line);
	margin-bottom: 8px !important;
}
html body.ag-art3.ag-art3.ag-art3 .site-main > article.type-page .entry-header .page-title { display: block !important; }

/* Composants inconnus (outils, fiches Aniimo, Pokémon…) : carte claire, rendu d'origine */
html body.ag-art3.ag-art3.ag-art3 .entry-content div[class]:not([class*="wp-"]):not([class*="ag-"]):not([class^="has-"]):not([class*=" has-"]):not(.a2c):not(.a2x):not(.entry-content div[class]:not([class*="wp-"]):not([class*="ag-"]):not([class^="has-"]):not([class*=" has-"]) *) {
	background-color: #fbfbfd;
	color: #2a2c38;
	border-radius: 16px;
	padding: clamp(14px, 2.4vw, 24px);
	box-shadow: 0 0 0 1px var(--a3-line), 0 20px 40px -26px rgba(0,0,0,.7);
}

/* === Fiches Aion 2 (.a2c) en sombre ===================================== */
html body.ag-art3.ag-art3.ag-art3 .entry-content .a2c {
	--c: #8b6cff; --c-soft: rgba(139,108,255,.12); --ink: #e3e6f3; --mut: #a4a9bf;
	--line: rgba(255,255,255,.1); --card: rgba(255,255,255,.04);
	color: var(--ink);
}
html body.ag-art3.ag-art3.ag-art3 .entry-content .a2c :is(p, li, td, dd, span:not(.a2c-bar):not(.a2c-rank)) { color: inherit; }
html body.ag-art3.ag-art3.ag-art3 .entry-content .a2c :is(h2, h3, h4):not(.a2c-hero-title) { color: #fff !important; }
html body.ag-art3.ag-art3.ag-art3 .entry-content .a2c strong, html body.ag-art3.ag-art3.ag-art3 .entry-content .a2c b { color: #fff; background: none !important; }
html body.ag-art3.ag-art3.ag-art3 .entry-content .a2c .a2c-tldr { background: linear-gradient(135deg, rgba(139,108,255,.16), rgba(34,211,238,.06)) !important; border-color: rgba(139,108,255,.35) !important; }
html body.ag-art3.ag-art3.ag-art3 .entry-content .a2c .a2c-tldr > strong:first-child,
html body.ag-art3.ag-art3.ag-art3 .entry-content .a2c .a2c-col strong:first-child { color: #c9bcff !important; }
html body.ag-art3.ag-art3.ag-art3 .entry-content .a2c .a2c-btn.ghost { background: transparent !important; color: #c9bcff !important; border-color: rgba(139,108,255,.5) !important; }
html body.ag-art3.ag-art3.ag-art3 .entry-content .a2c .a2c-toc a { background: rgba(255,255,255,.05) !important; color: #d9d0ff !important; }
html body.ag-art3.ag-art3.ag-art3 .entry-content .a2c .a2c-toc a:hover { background: rgba(139,108,255,.2) !important; }
html body.ag-art3.ag-art3.ag-art3 .entry-content .a2c .a2c-box { background: rgba(255,255,255,.04) !important; }
html body.ag-art3.ag-art3.ag-art3 .entry-content .a2c .a2c-box.tip { background: rgba(34,197,94,.1) !important; border-color: rgba(34,197,94,.3) !important; }
html body.ag-art3.ag-art3.ag-art3 .entry-content .a2c .a2c-box.warn { background: rgba(245,158,11,.1) !important; border-color: rgba(245,158,11,.3) !important; }
html body.ag-art3.ag-art3.ag-art3 .entry-content .a2c .a2c-box.info { background: rgba(59,155,255,.1) !important; border-color: rgba(59,155,255,.3) !important; }
html body.ag-art3.ag-art3.ag-art3 .entry-content .a2c .a2c-box.new { background: rgba(139,108,255,.12) !important; border-color: rgba(139,108,255,.35) !important; }
html body.ag-art3.ag-art3.ag-art3 .entry-content .a2c .a2c-label { background: transparent !important; }
html body.ag-art3.ag-art3.ag-art3 .entry-content .a2c .a2c-box.info .a2c-label { color: #7fb6ff !important; }
html body.ag-art3.ag-art3.ag-art3 .entry-content .a2c .a2c-skill { box-shadow: 0 10px 24px -16px rgba(0,0,0,.8) !important; }
html body.ag-art3.ag-art3.ag-art3 .entry-content .a2c .a2c-slots li { background: rgba(255,255,255,.05) !important; }
html body.ag-art3.ag-art3.ag-art3 .entry-content .a2c .a2c-flow > li:not(:last-child)::after { background: rgba(139,108,255,.35) !important; }
html body.ag-art3.ag-art3.ag-art3 .entry-content .a2c .a2c-set li { background: rgba(255,255,255,.05) !important; }
html body.ag-art3.ag-art3.ag-art3 .entry-content .a2c th { background: rgba(139,108,255,.22) !important; color: #fff !important; }
html body.ag-art3.ag-art3.ag-art3 .entry-content .a2c td { background: transparent; border-color: var(--line) !important; }
html body.ag-art3.ag-art3.ag-art3 .entry-content .a2c tbody tr:nth-child(even) td { background: rgba(255,255,255,.03) !important; }
html body.ag-art3.ag-art3.ag-art3 .entry-content .a2c kbd { background: rgba(255,255,255,.08) !important; border-color: rgba(255,255,255,.2) !important; color: #fff; }
html body.ag-art3.ag-art3.ag-art3 .entry-content .a2c a:not(.a2c-btn):not(.a2c-links a) { color: #c9bcff !important; }
html body.ag-art3.ag-art3.ag-art3 .entry-content .a2c .a2c-links a { color: var(--ink) !important; }

/* === Fiches donjons Aion 2 (.a2x) en sombre ============================== */
html body.ag-art3.ag-art3.ag-art3 .entry-content .a2x { --ink: #e3e6f3; --mut: #a4a9bf; --line: rgba(255,255,255,.1); color: var(--ink); }
html body.ag-art3.ag-art3.ag-art3 .entry-content .a2x :is(p, li, td) { color: inherit; }
html body.ag-art3.ag-art3.ag-art3 .entry-content .a2x :is(h2, h3, h4) { color: #fff !important; }
html body.ag-art3.ag-art3.ag-art3 .entry-content .a2x strong { color: #fff; background: none !important; }
html body.ag-art3.ag-art3.ag-art3 .entry-content .a2x a:not(.a2x-card) { color: #c9bcff !important; }
html body.ag-art3.ag-art3.ag-art3 .entry-content .a2x .a2x-card { background: rgba(255,255,255,.04) !important; }
html body.ag-art3.ag-art3.ag-art3 .entry-content .a2x .a2x-note { background: rgba(59,155,255,.1) !important; color: #cfe2ff !important; }
html body.ag-art3.ag-art3.ag-art3 .entry-content .a2x .a2x-warn { background: rgba(245,158,11,.1) !important; color: #ffe2b0 !important; }
html body.ag-art3.ag-art3.ag-art3 .entry-content .a2x .a2x-tip { background: rgba(34,197,94,.1) !important; color: #c8f2d6 !important; }
html body.ag-art3.ag-art3.ag-art3 .entry-content .a2x .a2x-note *, html body.ag-art3.ag-art3.ag-art3 .entry-content .a2x .a2x-warn *, html body.ag-art3.ag-art3.ag-art3 .entry-content .a2x .a2x-tip * { color: inherit; }
html body.ag-art3.ag-art3.ag-art3 .entry-content .a2x th { background: rgba(139,108,255,.22) !important; color: #fff !important; }
html body.ag-art3.ag-art3.ag-art3 .entry-content .a2x .a2x-pill { background: rgba(139,108,255,.2) !important; color: #d9d0ff !important; }
html body.ag-art3.ag-art3.ag-art3 .entry-content .a2x .a2x-pill.kr { background: rgba(239,68,68,.18) !important; color: #ffb4b4 !important; }
html body.ag-art3.ag-art3.ag-art3 .entry-content .a2x .a2x-pill.gl { background: rgba(34,197,94,.16) !important; color: #b5f0c9 !important; }
html body.ag-art3.ag-art3.ag-art3 .entry-content .a2x .a2x-filter { background: rgba(255,255,255,.05); color: #fff; }

/* Macros Aion 2 (.a2m, styles intégrés à l'article) */
html body.ag-art3.ag-art3.ag-art3 .entry-content .a2m-nav a { background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(139,108,255,.08)) !important; color: #e3e6f3 !important; }
html body.ag-art3.ag-art3.ag-art3 .entry-content .a2m-macro.alt { background: rgba(255,255,255,.04) !important; }
html body.ag-art3.ag-art3.ag-art3 .entry-content .a2m-chain li { background: rgba(255,255,255,.06) !important; color: #e3e6f3 !important; }
html body.ag-art3.ag-art3.ag-art3 .entry-content .a2m-chips li { background: rgba(255,255,255,.07) !important; color: #e3e6f3 !important; }

/* Encadrés intégrés aux anciens articles (styles dans le contenu) */
html body.ag-art3.ag-art3.ag-art3 .entry-content :is(.ag-t3-tip, .a2m-chg) { background: rgba(34,197,94,.1) !important; color: #d4f5df !important; }
html body.ag-art3.ag-art3.ag-art3 .entry-content :is(.ag-t3-caveat, .ag-formes-debat) { background: rgba(245,158,11,.1) !important; color: #ffe6b8 !important; }
html body.ag-art3.ag-art3.ag-art3 .entry-content .ag-formes-note { background: rgba(59,155,255,.1) !important; color: #d3e5ff !important; }
html body.ag-art3.ag-art3.ag-art3 .entry-content :is(.ag-t3-tip, .a2m-chg, .ag-t3-caveat, .ag-formes-debat, .ag-formes-note) :is(p, li, span, strong, b, em, small) { color: inherit !important; }
html body.ag-art3.ag-art3.ag-art3 .entry-content :is(.ag-t3-table, .ag-formes-table) th { background: color-mix(in srgb, var(--g) 26%, #161a33) !important; color: #fff !important; }
html body.ag-art3.ag-art3.ag-art3 .entry-content .ag-t3-thumb { background: rgba(255,255,255,.05) !important; }

/* Blocs à fond clair définis dans le contenu : texte foncé */
html body.ag-art3.ag-art3.ag-art3 .entry-content .anb-card, html body.ag-art3.ag-art3.ag-art3 .entry-content .anb-cat.Alpha, html body.ag-art3.ag-art3.ag-art3 .entry-content .anb-cat.Omega, html body.ag-art3.ag-art3.ag-art3 .entry-content .anb-chip, html body.ag-art3.ag-art3.ag-art3 .entry-content .anb-elem-list span, html body.ag-art3.ag-art3.ag-art3 .entry-content .anb-fact, html body.ag-art3.ag-art3.ag-art3 .entry-content .anb-meta span, html body.ag-art3.ag-art3.ag-art3 .entry-content .anb-modal, html body.ag-art3.ag-art3.ag-art3 .entry-content .anb-reward-list li, html body.ag-art3.ag-art3.ag-art3 .entry-content .anb-select, html body.ag-art3.ag-art3.ag-art3 .entry-content .anb-stat-table th, html body.ag-art3.ag-art3.ag-art3 .entry-content .anb-tab, html body.ag-art3.ag-art3.ag-art3 .entry-content .anb-visual-box, html body.ag-art3.ag-art3.ag-art3 .entry-content .anb-visual-caption, html body.ag-art3.ag-art3.ag-art3 .entry-content .aniimo-build-disclaimer, html body.ag-art3.ag-art3.ag-art3 .entry-content .aniimo-build-thumb, html body.ag-art3.ag-art3.ag-art3 .entry-content .aniimo-codes-disclaimer, html body.ag-art3.ag-art3.ag-art3 .entry-content .aniimo-codes-table code, html body.ag-art3.ag-art3.ag-art3 .entry-content .aniimo-codes-table th, html body.ag-art3.ag-art3.ag-art3 .entry-content .aniimo-currency-disclaimer, html body.ag-art3.ag-art3.ag-art3 .entry-content .aniimo-items-disclaimer, html body.ag-art3.ag-art3.ag-art3 .entry-content .aniimo-items-table th, html body.ag-art3.ag-art3.ag-art3 .entry-content .aniimo-sim-disclaimer, html body.ag-art3.ag-art3.ag-art3 .entry-content .aniimo-sim-parent, html body.ag-art3.ag-art3.ag-art3 .entry-content .aniimo-team-cons, html body.ag-art3.ag-art3.ag-art3 .entry-content .aniimo-team-table th, html body.ag-art3.ag-art3.ag-art3 .entry-content .aniimo-team-thumb, html body.ag-art3.ag-art3.ag-art3 .entry-content .aniimo-teams-disclaimer, html body.ag-art3.ag-art3.ag-art3 .entry-content .aniimo-teams-note, html body.ag-art3.ag-art3.ag-art3 .entry-content .aniimo-tier-card, html body.ag-art3.ag-art3.ag-art3 .entry-content .aniimo-tier-disclaimer, html body.ag-art3.ag-art3.ag-art3 .entry-content .ant-card, html body.ag-art3.ag-art3.ag-art3 .entry-content .ant-card-stage, html body.ag-art3.ag-art3.ag-art3 .entry-content .ant-member, html body.ag-art3.ag-art3.ag-art3 .entry-content .ant-member-alt, html body.ag-art3.ag-art3.ag-art3 .entry-content .ant-modal, html body.ag-art3.ag-art3.ag-art3 .entry-content .ant-modal-close, html body.ag-art3.ag-art3.ag-art3 .entry-content .ant-modal-stage, html body.ag-art3.ag-art3.ag-art3 .entry-content .ant-modal-synergy, html body.ag-art3.ag-art3.ag-art3 .entry-content .ant-swot-bad, html body.ag-art3.ag-art3.ag-art3 .entry-content .ant-swot-good, html body.ag-art3.ag-art3.ag-art3 .entry-content .card-item, html body.ag-art3.ag-art3.ag-art3 .entry-content .count-icon, html body.ag-art3.ag-art3.ag-art3 .entry-content .count-separator, html body.ag-art3.ag-art3.ag-art3 .entry-content .dg-badge, html body.ag-art3.ag-art3.ag-art3 .entry-content .dg-card-box, html body.ag-art3.ag-art3.ag-art3 .entry-content .dg-counts, html body.ag-art3.ag-art3.ag-art3 .entry-content .dg-header, html body.ag-art3.ag-art3.ag-art3 .entry-content .pgo-sept .pgo-badge.dark, html body.ag-art3.ag-art3.ag-art3 .entry-content .pgo-sept .pgo-badge.dynamax, html body.ag-art3.ag-art3.ag-art3 .entry-content .pgo-sept .pgo-callout, html body.ag-art3.ag-art3.ag-art3 .entry-content .pgo-sept .pgo-callout.red, html body.ag-art3.ag-art3.ag-art3 .entry-content .pgo-sept .pgo-row, html body.ag-art3.ag-art3.ag-art3 .entry-content .pgo-sept .pgo-vedette-card, html body.ag-art3.ag-art3.ag-art3 .entry-content .strategy-card, html body.ag-art3.ag-art3.ag-art3 .entry-content .weakness-box, html body.ag-art3.ag-art3.ag-art3 .entry-content body { color: #22252f !important; }
html body.ag-art3.ag-art3.ag-art3 .entry-content .anb-card :is(p, li, span, strong, b, em, small, td):not([class]), html body.ag-art3.ag-art3.ag-art3 .entry-content .anb-cat.Alpha :is(p, li, span, strong, b, em, small, td):not([class]), html body.ag-art3.ag-art3.ag-art3 .entry-content .anb-cat.Omega :is(p, li, span, strong, b, em, small, td):not([class]), html body.ag-art3.ag-art3.ag-art3 .entry-content .anb-chip :is(p, li, span, strong, b, em, small, td):not([class]), html body.ag-art3.ag-art3.ag-art3 .entry-content .anb-elem-list span :is(p, li, span, strong, b, em, small, td):not([class]), html body.ag-art3.ag-art3.ag-art3 .entry-content .anb-fact :is(p, li, span, strong, b, em, small, td):not([class]), html body.ag-art3.ag-art3.ag-art3 .entry-content .anb-meta span :is(p, li, span, strong, b, em, small, td):not([class]), html body.ag-art3.ag-art3.ag-art3 .entry-content .anb-modal :is(p, li, span, strong, b, em, small, td):not([class]), html body.ag-art3.ag-art3.ag-art3 .entry-content .anb-reward-list li :is(p, li, span, strong, b, em, small, td):not([class]), html body.ag-art3.ag-art3.ag-art3 .entry-content .anb-select :is(p, li, span, strong, b, em, small, td):not([class]), html body.ag-art3.ag-art3.ag-art3 .entry-content .anb-stat-table th :is(p, li, span, strong, b, em, small, td):not([class]), html body.ag-art3.ag-art3.ag-art3 .entry-content .anb-tab :is(p, li, span, strong, b, em, small, td):not([class]), html body.ag-art3.ag-art3.ag-art3 .entry-content .anb-visual-box :is(p, li, span, strong, b, em, small, td):not([class]), html body.ag-art3.ag-art3.ag-art3 .entry-content .anb-visual-caption :is(p, li, span, strong, b, em, small, td):not([class]), html body.ag-art3.ag-art3.ag-art3 .entry-content .aniimo-build-disclaimer :is(p, li, span, strong, b, em, small, td):not([class]), html body.ag-art3.ag-art3.ag-art3 .entry-content .aniimo-build-thumb :is(p, li, span, strong, b, em, small, td):not([class]), html body.ag-art3.ag-art3.ag-art3 .entry-content .aniimo-codes-disclaimer :is(p, li, span, strong, b, em, small, td):not([class]), html body.ag-art3.ag-art3.ag-art3 .entry-content .aniimo-codes-table code :is(p, li, span, strong, b, em, small, td):not([class]), html body.ag-art3.ag-art3.ag-art3 .entry-content .aniimo-codes-table th :is(p, li, span, strong, b, em, small, td):not([class]), html body.ag-art3.ag-art3.ag-art3 .entry-content .aniimo-currency-disclaimer :is(p, li, span, strong, b, em, small, td):not([class]), html body.ag-art3.ag-art3.ag-art3 .entry-content .aniimo-items-disclaimer :is(p, li, span, strong, b, em, small, td):not([class]), html body.ag-art3.ag-art3.ag-art3 .entry-content .aniimo-items-table th :is(p, li, span, strong, b, em, small, td):not([class]), html body.ag-art3.ag-art3.ag-art3 .entry-content .aniimo-sim-disclaimer :is(p, li, span, strong, b, em, small, td):not([class]), html body.ag-art3.ag-art3.ag-art3 .entry-content .aniimo-sim-parent :is(p, li, span, strong, b, em, small, td):not([class]), html body.ag-art3.ag-art3.ag-art3 .entry-content .aniimo-team-cons :is(p, li, span, strong, b, em, small, td):not([class]), html body.ag-art3.ag-art3.ag-art3 .entry-content .aniimo-team-table th :is(p, li, span, strong, b, em, small, td):not([class]), html body.ag-art3.ag-art3.ag-art3 .entry-content .aniimo-team-thumb :is(p, li, span, strong, b, em, small, td):not([class]), html body.ag-art3.ag-art3.ag-art3 .entry-content .aniimo-teams-disclaimer :is(p, li, span, strong, b, em, small, td):not([class]), html body.ag-art3.ag-art3.ag-art3 .entry-content .aniimo-teams-note :is(p, li, span, strong, b, em, small, td):not([class]), html body.ag-art3.ag-art3.ag-art3 .entry-content .aniimo-tier-card :is(p, li, span, strong, b, em, small, td):not([class]), html body.ag-art3.ag-art3.ag-art3 .entry-content .aniimo-tier-disclaimer :is(p, li, span, strong, b, em, small, td):not([class]), html body.ag-art3.ag-art3.ag-art3 .entry-content .ant-card :is(p, li, span, strong, b, em, small, td):not([class]), html body.ag-art3.ag-art3.ag-art3 .entry-content .ant-card-stage :is(p, li, span, strong, b, em, small, td):not([class]), html body.ag-art3.ag-art3.ag-art3 .entry-content .ant-member :is(p, li, span, strong, b, em, small, td):not([class]), html body.ag-art3.ag-art3.ag-art3 .entry-content .ant-member-alt :is(p, li, span, strong, b, em, small, td):not([class]), html body.ag-art3.ag-art3.ag-art3 .entry-content .ant-modal :is(p, li, span, strong, b, em, small, td):not([class]), html body.ag-art3.ag-art3.ag-art3 .entry-content .ant-modal-close :is(p, li, span, strong, b, em, small, td):not([class]), html body.ag-art3.ag-art3.ag-art3 .entry-content .ant-modal-stage :is(p, li, span, strong, b, em, small, td):not([class]), html body.ag-art3.ag-art3.ag-art3 .entry-content .ant-modal-synergy :is(p, li, span, strong, b, em, small, td):not([class]), html body.ag-art3.ag-art3.ag-art3 .entry-content .ant-swot-bad :is(p, li, span, strong, b, em, small, td):not([class]), html body.ag-art3.ag-art3.ag-art3 .entry-content .ant-swot-good :is(p, li, span, strong, b, em, small, td):not([class]), html body.ag-art3.ag-art3.ag-art3 .entry-content .card-item :is(p, li, span, strong, b, em, small, td):not([class]), html body.ag-art3.ag-art3.ag-art3 .entry-content .count-icon :is(p, li, span, strong, b, em, small, td):not([class]), html body.ag-art3.ag-art3.ag-art3 .entry-content .count-separator :is(p, li, span, strong, b, em, small, td):not([class]), html body.ag-art3.ag-art3.ag-art3 .entry-content .dg-badge :is(p, li, span, strong, b, em, small, td):not([class]), html body.ag-art3.ag-art3.ag-art3 .entry-content .dg-card-box :is(p, li, span, strong, b, em, small, td):not([class]), html body.ag-art3.ag-art3.ag-art3 .entry-content .dg-counts :is(p, li, span, strong, b, em, small, td):not([class]), html body.ag-art3.ag-art3.ag-art3 .entry-content .dg-header :is(p, li, span, strong, b, em, small, td):not([class]), html body.ag-art3.ag-art3.ag-art3 .entry-content .pgo-sept .pgo-badge.dark :is(p, li, span, strong, b, em, small, td):not([class]), html body.ag-art3.ag-art3.ag-art3 .entry-content .pgo-sept .pgo-badge.dynamax :is(p, li, span, strong, b, em, small, td):not([class]), html body.ag-art3.ag-art3.ag-art3 .entry-content .pgo-sept .pgo-callout :is(p, li, span, strong, b, em, small, td):not([class]), html body.ag-art3.ag-art3.ag-art3 .entry-content .pgo-sept .pgo-callout.red :is(p, li, span, strong, b, em, small, td):not([class]), html body.ag-art3.ag-art3.ag-art3 .entry-content .pgo-sept .pgo-row :is(p, li, span, strong, b, em, small, td):not([class]), html body.ag-art3.ag-art3.ag-art3 .entry-content .pgo-sept .pgo-vedette-card :is(p, li, span, strong, b, em, small, td):not([class]), html body.ag-art3.ag-art3.ag-art3 .entry-content .strategy-card :is(p, li, span, strong, b, em, small, td):not([class]), html body.ag-art3.ag-art3.ag-art3 .entry-content .weakness-box :is(p, li, span, strong, b, em, small, td):not([class]), html body.ag-art3.ag-art3.ag-art3 .entry-content body :is(p, li, span, strong, b, em, small, td):not([class]) { color: inherit !important; }
html body.ag-art3.ag-art3.ag-art3 .entry-content :is([style*="background:#f"],[style*="background: #f"],[style*="background:#e"],[style*="background: #e"],[style*="background-color:#f"],[style*="background-color: #f"],[style*="background-color:#e"],[style*="background:white"],[style*="background: white"]) { color: #22252f !important; }
html body.ag-art3.ag-art3.ag-art3 .entry-content :is([style*="background:#f"],[style*="background: #f"],[style*="background:#e"],[style*="background: #e"],[style*="background-color:#f"],[style*="background-color: #f"],[style*="background-color:#e"],[style*="background:white"],[style*="background: white"]) :is(p, li, span, strong, b, em, small, td):not([class]) { color: inherit !important; }

/* Largeurs : moins de vide autour du bloc central */
html body.ag-art3.ag-art3.ag-art3 .site-main > article:is(.type-post,.type-page) { max-width: 1240px !important; }
html body.ag-art3.ag-art3.ag-art3 .site-main > article:is(.type-post,.type-page) > :is(.entry-content, footer, .entry-footer) { max-width: none !important; width: auto !important; padding-left: clamp(20px, 5vw, 64px) !important; padding-right: clamp(20px, 5vw, 64px) !important; box-sizing: border-box !important; }
html body.ag-art3.ag-art3.ag-art3 .site-main > article.type-page > .entry-header { padding-left: clamp(20px, 5vw, 64px) !important; padding-right: clamp(20px, 5vw, 64px) !important; }
html body.ag-art3.ag-art3.ag-art3 .site-main > article.type-page > .entry-header > * { max-width: none; margin-left: auto !important; margin-right: auto !important; }

@media (min-width: 761px) {
	html body.ag-art3.ag-art3.ag-art3 .entry-content .a2c .a2c-skills { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 16px !important; }
}

/* 1.3.2 — contrastes restants (fonds clairs) */
html body.ag-art3.ag-art3.ag-art3 .entry-content .pgo-note { color: #5a5e6e !important; }
html body.ag-art3.ag-art3.ag-art3 .entry-content .pgo-imglabel { color: #7a5f00 !important; }
html body.ag-art3.ag-art3.ag-art3 .entry-content .anb-lvl { color: #5f6372 !important; }
html body.ag-art3.ag-art3.ag-art3 .entry-content .strat-yellow { color: #8a5a00 !important; }

/* 1.3.3 — nav/récap/macro builds en sombre */
html body.ag-art3.ag-art3.ag-art3 .entry-content .a2j { background: rgba(18,19,28,.92) !important; border-color: rgba(255,255,255,.1) !important; }
html body.ag-art3.ag-art3.ag-art3 .entry-content .a2j-crumb, html body.ag-art3.ag-art3.ag-art3 .entry-content .a2j-crumb a { color: #c9c3e6 !important; }
html body.ag-art3.ag-art3.ag-art3 .entry-content .a2j-crumb strong { color: #fff !important; }
html body.ag-art3.ag-art3.ag-art3 .entry-content .a2j .a2c-toc a.is-on { background: var(--a3-acc, #7c5cff) !important; color: #fff !important; }
html body.ag-art3.ag-art3.ag-art3 .entry-content .a2r-t th, html body.ag-art3.ag-art3.ag-art3 .entry-content .a2r-t td { border-color: rgba(255,255,255,.08) !important; background: transparent !important; color: #e6e3f2 !important; }
html body.ag-art3.ag-art3.ag-art3 .entry-content .a2r-t thead th { background: rgba(255,255,255,.06) !important; color: #fff !important; }
html body.ag-art3.ag-art3.ag-art3 .entry-content .a2r-n { color: var(--a3-acc, #9d86ff) !important; }
html body.ag-art3.ag-art3.ag-art3 .entry-content .a2m-box { background: rgba(124,92,255,.08) !important; border-color: var(--a3-acc, #7c5cff) !important; color: #e6e3f2 !important; }
html body.ag-art3.ag-art3.ag-art3 .entry-content .a2m-title { color: var(--a3-acc, #b3a2ff) !important; }
html body.ag-art3.ag-art3.ag-art3 .entry-content .a2m-seq li { background: rgba(255,255,255,.06) !important; border-color: rgba(255,255,255,.12) !important; color: #fff !important; }
html body.ag-art3.ag-art3.ag-art3 .entry-content .a2m-seq li::before { background: var(--a3-acc, #7c5cff) !important; color: #fff !important; }


/* 1.3.6 — sommaire et encadrés dans les guides de classe (.a2c) */
html body.ag-art3.ag-art3.ag-art3.ag-art3 .entry-content .a2c .ag-toc {
	background: linear-gradient(135deg, color-mix(in srgb, var(--g) 10%, transparent), rgba(255,255,255,.03)) !important;
	border: 1px solid var(--a3-line) !important;
	border-left: 3px solid var(--g) !important;
	border-radius: 16px !important;
}
html body.ag-art3.ag-art3.ag-art3.ag-art3 .entry-content .a2c .ag-toc summary { color: #fff !important; }
html body.ag-art3.ag-art3.ag-art3.ag-art3 .site-main > article:is(.type-post,.type-page) .entry-content .a2c .ag-toc a:not(.ag-related-card):not(.ag-related-more):not(.wp-block-button__link) { color: var(--a3-text) !important; text-decoration: none !important; }
html body.ag-art3.ag-art3.ag-art3.ag-art3 .site-main > article:is(.type-post,.type-page) .entry-content .a2c .ag-toc a:not(.ag-related-card):not(.ag-related-more):not(.wp-block-button__link):hover { color: #fff !important; }
html body.ag-art3.ag-art3.ag-art3.ag-art3 .entry-content .a2c .ag-toc li::marker { color: var(--g); }

/* Encadrés */
html body.ag-art3.ag-art3.ag-art3.ag-art3 .entry-content .a2c p.ag-callout {
	position: relative;
	padding: 16px 18px 16px 52px !important;
	border: 1px solid var(--a3-line) !important;
	border-left: 3px solid var(--c, var(--g)) !important;
	border-radius: 14px !important;
	background: linear-gradient(135deg, color-mix(in srgb, var(--c, var(--g)) 14%, transparent), rgba(255,255,255,.02)) !important;
	color: var(--a3-text) !important;
	box-shadow: 0 0 0 0 transparent, inset 0 0 30px -18px var(--c, var(--g));
}
html body.ag-art3.ag-art3.ag-art3.ag-art3 .entry-content .a2c p.ag-callout::before {
	content: "i"; position: absolute; left: 16px; top: 16px;
	width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
	font: 800 13px/1 system-ui, sans-serif; color: #0c0e1b; background: var(--c, var(--g));
}
html body.ag-art3.ag-art3.ag-art3.ag-art3 .entry-content .a2c .ag-callout--warn { --c: #f59e0b; }
html body.ag-art3.ag-art3.ag-art3.ag-art3 .entry-content .a2c .ag-callout--warn::before { content: "!"; }
html body.ag-art3.ag-art3.ag-art3.ag-art3 .entry-content .a2c .ag-callout--info { --c: #3b9bff; }
html body.ag-art3.ag-art3.ag-art3.ag-art3 .entry-content .a2c .ag-callout--tip { --c: #22c55e; }
html body.ag-art3.ag-art3.ag-art3.ag-art3 .entry-content .a2c .ag-callout--tip::before { content: "✓"; }
html body.ag-art3.ag-art3.ag-art3.ag-art3 .entry-content .a2c .ag-toc { color: var(--a3-text) !important; }
html body.ag-art3.ag-art3.ag-art3.ag-art3 .entry-content .a2c p.ag-callout strong { color: #fff !important; }

/* 1.3.7 — blocs de code / notation de macros */
html body.ag-art3.ag-art3.ag-art3.ag-art3 .entry-content pre,
html body.ag-art3.ag-art3.ag-art3.ag-art3 .entry-content .wp-block-code,
html body.ag-art3.ag-art3.ag-art3.ag-art3 .entry-content .wp-block-preformatted {
	background: #0d0f1a !important; color: #e8e6f5 !important;
	border: 1px solid var(--a3-line, rgba(255,255,255,.1)) !important; border-left: 3px solid var(--a3-acc, #7c5cff) !important;
	border-radius: 12px !important; padding: 16px 18px !important; overflow-x: auto; font-size: 14.5px; line-height: 1.6;
}
html body.ag-art3.ag-art3.ag-art3.ag-art3 .entry-content pre *,
html body.ag-art3.ag-art3.ag-art3.ag-art3 .entry-content .wp-block-code code { color: inherit !important; background: transparent !important; }
html body.ag-art3.ag-art3.ag-art3.ag-art3 .entry-content :not(pre) > code { background: rgba(255,255,255,.08) !important; color: #f1edff !important; padding: 1px 6px; border-radius: 5px; }
html body.ag-art3.ag-art3.ag-art3.ag-art3 .entry-content .aniimo-dex-card-index { color: #5c6070 !important; }

/* 1.3.9 — mobile : tableaux empilés en cartes sombres */
@media (max-width: 700px) {
	html body.ag-art3.ag-art3.ag-art3.ag-art3 .entry-content table.ag-stack tr { background: rgba(255,255,255,.04) !important; border-color: var(--a3-line, rgba(255,255,255,.1)) !important; box-shadow: none !important; }
	html body.ag-art3.ag-art3.ag-art3.ag-art3 .entry-content table.ag-stack :is(td,th) { border-bottom-color: rgba(255,255,255,.08) !important; color: var(--a3-text, #e6e3f2) !important; }
	html body.ag-art3.ag-art3.ag-art3.ag-art3 .entry-content table.ag-stack td::before { color: var(--a3-acc, #a99bff) !important; }
}

/* 1.4.0 : gras lisible dans les encadrés sombres */
html body.ag-art3.ag-art3.ag-art3.ag-art3 .entry-content .ag-callout :is(strong,b){color:var(--a3-text,#e8e6f5) !important;-webkit-text-fill-color:currentColor !important;}

/* 1.4.1 : la barre .a2j ne doit pas élargir la grille de l'article, et doit rester collante */
html body.ag-art3.ag-art3.ag-art3 article:is(.type-post,.type-page) > :is(.entry-content,header,footer,.entry-header){min-width:0 !important;}
html body.ag-art3.ag-art3.ag-art3 article:is(.type-post,.type-page):has(.a2j){overflow:clip !important;}
html body.ag-art3.ag-art3.ag-art3 .entry-content .a2j{max-width:100%;min-width:0;box-sizing:border-box;}
html body.ag-art3.ag-art3.ag-art3.ag-art3 article:is(.type-post,.type-page) > :is(.entry-content,footer,.entry-footer){margin-left:0 !important;margin-right:0 !important;justify-self:stretch !important;}


/* 1.5.0 : ergonomie */
/* 1. Longueur de ligne : texte courant plafonné, tableaux/images/encadrés en pleine largeur */
html body.ag-art3.ag-art3.ag-art3.ag-art3 .entry-content > :is(p:not([class]), ul:not([class]), ol:not([class]), .wp-block-list),
html body.ag-art3.ag-art3.ag-art3.ag-art3 .entry-content > :is(.a2c,.a2x) > :is(p:not([class]), ul:not([class]), ol:not([class])) { max-width: 82ch !important; }
/* 2. Sommaire repliable */
html body.ag-art3.ag-art3.ag-art3.ag-art3 .entry-content .ag-toc summary { cursor: pointer; }
/* 3. Petits textes */
/* 5. Date de mise à jour */
html body.ag-art3.ag-art3.ag-art3.ag-art3 .entry-content .ag-readtime .ag-upd { color: #fff !important; font-weight: 700; }
html body.ag-art3.ag-art3.ag-art3.ag-art3 .entry-content .ag-readtime .ag-upd::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #22c55e; margin: 0 7px 1px 2px; }
/* 7. Encadrés en div */
html body.ag-art3.ag-art3.ag-art3.ag-art3 .entry-content div.ag-callout { margin: 1.4em 0 !important; }
html body.ag-art3.ag-art3.ag-art3.ag-art3 .entry-content div.ag-callout > :is(p,ul,ol) { margin: 0 0 .5em !important; padding: 0 !important; background: none !important; border: 0 !important; color: inherit !important; max-width: none !important; }
html body.ag-art3.ag-art3.ag-art3.ag-art3 .entry-content div.ag-callout > :last-child { margin-bottom: 0 !important; }
/* 8. Bloc Sources compact */
html body.ag-art3.ag-art3.ag-art3.ag-art3 .entry-content h2[id^="sources"] { font-size: 1.15em !important; margin-top: 2.4em !important; opacity: .9; }
html body.ag-art3.ag-art3.ag-art3.ag-art3 .entry-content h2[id^="sources"] + :is(ul,ol,p),
html body.ag-art3.ag-art3.ag-art3.ag-art3 .entry-content h2[id^="sources"] + p + :is(ul,ol) { font-size: 14.5px !important; line-height: 1.55 !important; color: var(--a3-dim) !important; max-width: none !important; }
html body.ag-art3.ag-art3.ag-art3.ag-art3 .entry-content h2[id^="sources"] + :is(ul,ol) li,
html body.ag-art3.ag-art3.ag-art3.ag-art3 .entry-content h2[id^="sources"] + p + :is(ul,ol) li { font-size: 14.5px !important; margin: 0 0 4px !important; padding-top: 0 !important; padding-bottom: 0 !important; border: 0 !important; color: var(--a3-dim) !important; }
@media (min-width: 800px) {
	html body.ag-art3.ag-art3.ag-art3.ag-art3 .entry-content h2[id^="sources"] + :is(ul,ol),
	html body.ag-art3.ag-art3.ag-art3.ag-art3 .entry-content h2[id^="sources"] + p + :is(ul,ol) { columns: 2; column-gap: 40px; }
	html body.ag-art3.ag-art3.ag-art3.ag-art3 .entry-content h2[id^="sources"] + :is(ul,ol) li { break-inside: avoid; }
}
/* 1.5.3 : liens dans les paragraphes clairs des équipes Aniimo */
html body.ag-art3.ag-art3.ag-art3.ag-art3 .site-main > article:is(.type-post,.type-page) .entry-content p[class^="aniimo-team-"] a:not(#_):not(#_):not(#_) { color: #0b5ea8 !important; -webkit-text-fill-color: #0b5ea8 !important; }
