/* Recherche instantanée — bouton d'en-tête + fenêtre */
.header-main { position: relative; }
.ags-btn {
	position: absolute; right: 16px; top: 50%; transform: translateY(-50%); z-index: 20;
	display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
	font: 600 14px/1 inherit; cursor: pointer; color: #eef0f7;
	background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18);
	transition: background .2s, border-color .2s;
}
.ags-btn:hover, .ags-btn:focus-visible { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .35); }
html.ags-open { overflow: hidden; }
.ags-overlay {
	position: fixed; inset: 0; z-index: 100000; display: flex; justify-content: center; align-items: flex-start;
	padding: 12vh 16px 16px; background: rgba(5, 6, 12, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.ags-overlay[hidden] { display: none; }
.ags-panel {
	width: 100%; max-width: 640px; border-radius: 18px; overflow: hidden;
	background: #12142a; border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); color: #eef0f7;
}
.ags-form { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid rgba(255, 255, 255, .1); color: #a4a9bf; }
.ags-input {
	flex: 1; min-width: 0; border: 0 !important; outline: 0; background: transparent !important; color: #fff !important;
	font-size: 18px; padding: 6px 0 !important; box-shadow: none !important;
}
.ags-input::placeholder { color: #6f7590; }
.ags-close { border: 1px solid rgba(255, 255, 255, .2); background: transparent; color: #a4a9bf; border-radius: 8px; padding: 4px 8px; font-size: 12px; cursor: pointer; }
.ags-results { list-style: none; margin: 0; padding: 6px; max-height: 55vh; overflow-y: auto; }
.ags-results li { margin: 0; padding: 0; }
.ags-results li::before { display: none; }
.ags-results a { display: flex; gap: 10px; align-items: baseline; padding: 10px 12px; border-radius: 10px; color: #eef0f7 !important; text-decoration: none !important; }
.ags-results a:hover, .ags-results a.is-active { background: rgba(255, 255, 255, .08); }
.ags-type { flex: none; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #a78bfa; min-width: 56px; }
.ags-title { line-height: 1.35; }
.ags-all a { color: #ff9a3d !important; font-weight: 700; }
.ags-empty { padding: 14px 12px !important; color: #a4a9bf; }
.ags-results.is-loading { opacity: .6; }
.ags-hint { margin: 0; padding: 10px 16px; font-size: 12px; color: #6f7590; border-top: 1px solid rgba(255, 255, 255, .08); }
.ags-hint kbd { border: 1px solid rgba(255, 255, 255, .25); border-radius: 4px; padding: 0 5px; font-size: 11px; }
@media (max-width: 700px) {
	.ags-btn { top: 14px; transform: none; right: 12px; padding: 8px; }
	.ags-btn span { display: none; }
	.ags-overlay { padding-top: 8vh; }
}
.ags-cat { display: block; margin-top: 2px; font-size: 12px; color: #6f7590; }
/* Vignettes, couleur du jeu, surlignage, accès rapides */
.ags-results a { align-items: center; }
.ags-thumb { flex: none; width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: linear-gradient(135deg, color-mix(in srgb, var(--g, #7c5cff) 45%, #12142a), #12142a); box-shadow: 0 0 0 1px color-mix(in srgb, var(--g, #fff) 35%, transparent); }
.ags-results .ags-type { display: block; min-width: 0; margin-bottom: 2px; font-size: 10px; color: var(--g, #a78bfa); }
.ags-title mark { background: color-mix(in srgb, var(--g, #ff9a3d) 30%, transparent); color: #fff; border-radius: 3px; padding: 0 1px; }
.ags-results a.is-active { box-shadow: inset 3px 0 0 var(--g, #ff9a3d); }
.ags-group { padding: 10px 12px 4px !important; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #6f7590; }
.ags-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--g, #ff9a3d); box-shadow: 0 0 10px var(--g, #ff9a3d); margin: 0 4px; }
.ags-ico { flex: none; width: 18px; text-align: center; color: #6f7590; }
.ags-g[data-game="aion-2"] { --g: #a78bfa; }
.ags-g[data-game="aniimo"] { --g: #2dd4bf; }
.ags-g[data-game="pokemon-go"] { --g: #3b9bff; }
.ags-g[data-game="pokemontgcp"] { --g: #facc15; }
.ags-g[data-game="pokemon-champions"] { --g: #f43f5e; }
.ags-g[data-game="gta-6"] { --g: #f472b6; }
.ags-g[data-game="poe2"], .ags-g[data-game="monster-hunter-outlanders"] { --g: #f59e0b; }
.ags-g[data-game="bf6"], .ags-g[data-game="dragon-quest-monsters-boisfletri"] { --g: #60a5fa; }
.ags-g[data-game="cod"] { --g: #84cc16; }
.ags-g[data-game="spam"] { --g: #e879f9; }
.ags-g[data-game="fantasy-online-2"] { --g: #34d399; }
.ags-g[data-game="star-wars-zero-company"] { --g: #fbbf24; }
.ags-panel { animation: ags-pop .22s cubic-bezier(.2, .8, .2, 1); }
@keyframes ags-pop { from { opacity: 0; transform: translateY(-8px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .ags-panel { animation: none; } }
