/* Atelier Gaming — Ergonomie moderne */

/* Fil d'Ariane */
.ag-crumbs { margin: 0 0 18px; font-size: 13px; }
.ag-crumbs ol, body .entry-content .ag-crumbs ol { counter-reset: none !important; list-style: none !important; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; align-items: center; }
.ag-crumbs li::marker { content: none; }
body .entry-content .ag-crumbs li { padding: 0 !important; margin: 0 !important; }
body .entry-content .ag-crumbs li::before { content: none !important; }
body .entry-content .ag-crumbs li + li::before { content: "›" !important; position: static !important; display: inline !important; width: auto !important; height: auto !important; background: none !important; box-shadow: none !important; color: #a3a7b8 !important; font-size: 13px !important; margin: 0 8px !important; }
.ag-crumbs li { display: flex; align-items: center; color: #6b7086; min-width: 0; }
.ag-crumbs li + li::before { content: "›"; margin: 0 8px; color: #a3a7b8; }
.ag-crumbs a { color: #4b5068 !important; text-decoration: none !important; font-weight: 600; }
.ag-crumbs a:hover { color: var(--ag-brand, #ff5a36) !important; text-decoration: underline !important; }
.ag-crumbs li[aria-current] span { max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
@media (max-width: 640px) { .ag-crumbs li[aria-current] { display: none; } }

/* Badges */
.ag-badge { display: inline-block; vertical-align: 0.15em; margin-right: 8px; padding: 2px 8px; border-radius: 999px; font-size: 11px; line-height: 1.5; font-weight: 800; letter-spacing: 0.03em; text-transform: uppercase; }
.ag-badge-new { background: #ff5a36; color: #fff; box-shadow: 0 0 0 0 rgba(255, 90, 54, 0.6); animation: ag-pulse 2.4s infinite; }
.ag-badge-upd { background: #22d3ee; color: #062430; }
@keyframes ag-pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 90, 54, 0.55); } 70% { box-shadow: 0 0 0 8px rgba(255, 90, 54, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 90, 54, 0); } }

/* Bandeau « À venir » */
.ag-events { margin: 28px 0; }
.ag-ev-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
body .ag-ev {
	--g: #ff5a36;
	position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 14px 18px;
	border-radius: 16px; text-decoration: none !important; color: var(--ag-text, #eef0f7) !important;
	background: linear-gradient(135deg, color-mix(in srgb, var(--g) 16%, transparent), transparent 65%), var(--ag-surface, rgba(255,255,255,.05));
	border: 1px solid var(--ag-line, rgba(255,255,255,.1)); overflow: hidden;
	transition: transform .3s cubic-bezier(.2,.8,.2,1), border-color .3s, box-shadow .3s;
}
body .ag-ev::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--g); }
body a.ag-ev:hover, body a.ag-ev:focus-visible { transform: translateY(-3px); border-color: color-mix(in srgb, var(--g) 60%, transparent); box-shadow: 0 16px 36px -18px var(--g); }
.ag-ev-game { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--g); }
.ag-ev-title { font-weight: 700; font-size: 15px; line-height: 1.3; }
.ag-ev-date { font-size: 13px; color: var(--ag-text-dim, #a4a9bf); }
.ag-ev-count { margin-top: 4px; align-self: flex-start; font-size: 12px; font-weight: 800; padding: 2px 9px; border-radius: 999px; background: color-mix(in srgb, var(--g) 22%, transparent); color: var(--ag-text, #fff); font-variant-numeric: tabular-nums; }
.ag-ev-count:empty { display: none; }
.ag-ev.is-live .ag-ev-count { background: #ef4444; color: #fff; }
.ag-ev-note { margin: 8px 0 0 !important; font-size: 12px; color: var(--ag-text-mute, #6f7590); }

/* Sommaire flottant */
.ag-ftoc { display: none; }
@media (min-width: 1500px) {
	.ag-ftoc {
		display: block; position: fixed; right: 20px; top: 110px; z-index: 40; width: 240px; max-height: calc(100vh - 140px); overflow: auto;
		padding: 14px 14px 12px; border-radius: 16px; background: rgba(13, 16, 32, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
		border: 1px solid rgba(255,255,255,.1); box-shadow: 0 20px 40px -20px rgba(0,0,0,.6);
		opacity: 0; transform: translateX(16px); pointer-events: none; transition: opacity .3s, transform .3s;
	}
	.ag-ftoc.is-on { opacity: 1; transform: none; pointer-events: auto; }
}
.ag-ftoc-t { margin: 0 0 8px !important; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #a4a9bf; }
.ag-ftoc ol { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.ag-ftoc li { margin: 0; }
.ag-ftoc a { display: block; padding: 6px 8px 6px 10px; border-left: 2px solid rgba(255,255,255,.1); font-size: 13px; line-height: 1.35; color: #c3c7d8 !important; text-decoration: none !important; transition: color .2s, border-color .2s, background .2s; }
.ag-ftoc a:hover { color: #fff !important; background: rgba(255,255,255,.05); }
.ag-ftoc a.is-active { color: #fff !important; border-left-color: #ff5a36; background: linear-gradient(90deg, rgba(255,90,54,.16), transparent); font-weight: 700; }

/* Visionneuse */
.ag-zoomable { cursor: zoom-in; transition: filter .25s, transform .25s; }
.ag-zoomable:hover { filter: brightness(1.06); }
.ag-zoomable:focus-visible { outline: 3px solid #ff5a36; outline-offset: 3px; }
html.ag-lb-lock { overflow: hidden; }
.ag-lb { position: fixed; inset: 0; z-index: 100000; display: none; align-items: center; justify-content: center; background: rgba(5,6,12,.92); backdrop-filter: blur(6px); padding: 24px 64px; }
.ag-lb.is-open { display: flex; animation: ag-fade .2s ease-out; }
.ag-lb figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ag-lb img { max-width: min(1400px, 100%); max-height: calc(100vh - 110px); object-fit: contain; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.ag-lb figcaption { color: #d5d8e6; font-size: 14px; text-align: center; max-width: 80ch; }
.ag-lb button { position: absolute; border: 0; cursor: pointer; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; font-size: 28px; line-height: 1; transition: background .2s; }
.ag-lb button:hover, .ag-lb button:focus-visible { background: rgba(255,255,255,.22); outline: none; }
.ag-lb-x { top: 16px; right: 16px; }
.ag-lb-p { left: 12px; top: 50%; transform: translateY(-50%); }
.ag-lb-n { right: 12px; top: 50%; transform: translateY(-50%); }
.ag-lb.is-single .ag-lb-p, .ag-lb.is-single .ag-lb-n { display: none; }
@media (max-width: 640px) { .ag-lb { padding: 60px 8px; } .ag-lb-p, .ag-lb-n { top: auto; bottom: 14px; transform: none; } }
@keyframes ag-fade { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
	.ag-badge-new { animation: none; }
	.ag-ev, .ag-ftoc, .ag-zoomable { transition: none; }
	.ag-lb.is-open { animation: none; }
}

/* 1.5.0 : étiquette de contenu terminé */
.ag-ended { display: inline-block; vertical-align: middle; margin-left: 10px; padding: 3px 10px; border-radius: 999px; font: 700 11px/1.4 system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: #d6d9e8 !important; -webkit-text-fill-color: #d6d9e8 !important; background: #4a4f63 !important; border: 1px solid rgba(255,255,255,.14); }
@media (max-width: 700px) { .aniimo-skill-name-row { flex-wrap: wrap; } .aniimo-skill-name-row .aniimo-skill-meta { white-space: normal; } }
/* 1.5.3 : contrastes relevés par l'audit */
.a2b-preset-btn { color: #3e2aa3 !important; }
.a2b-preset-btn:hover:not(:disabled) { background: #3e2aa3 !important; color: #fff !important; }
.asg-el.asg-el-sacre { background: #8f7010 !important; }
.asg-el.asg-el-glace { background: #2b7f91 !important; }
td.dqm-src a { color: #ff9d7a !important; }
