.agm-loader {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 2147483647;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--agm-bg, #0b1a2e);
	opacity: 1;
	visibility: visible;
	transition: opacity var(--agm-fade, .6s) ease, visibility 0s linear var(--agm-fade, .6s);
}

.agm-loader.is-hiding {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.agm-loader .agm-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 18px;
	padding: 20px;
	text-align: center;
}

.agm-loader .agm-moon {
	width: var(--agm-size, 160px);
	height: var(--agm-size, 160px);
	max-width: 80vw;
	max-height: 80vw;
	transform-origin: center;
}

.agm-loader .agm-moon svg {
	display: block;
	width: 100%;
	height: 100%;
	overflow: visible;
	filter: drop-shadow(0 0 0 transparent);
	transition: filter .6s ease;
}

.agm-loader .agm-unlit { fill: var(--agm-unlit, #22344f); }
.agm-loader .agm-lit   { fill: var(--agm-moon, #f5e6a3); }
.agm-loader .agm-rim {
	fill: none;
	stroke: var(--agm-moon, #f5e6a3);
	stroke-opacity: .35;
	stroke-width: 1.5;
}

.agm-loader .agm-halo {
	opacity: 0;
	transition: opacity .6s ease;
}

.agm-loader .agm-text,
.agm-loader .agm-percent {
	margin: 0;
	padding: 0;
	font-family: var(--agm-font, inherit);
	color: var(--agm-text, #fff);
}

.agm-loader .agm-text {
	font-size: var(--agm-fsize, 28px);
	font-weight: var(--agm-weight, 700);
	letter-spacing: var(--agm-ls, 2px);
	line-height: 1.2;
	transition: text-shadow .6s ease;
}

.agm-loader .agm-percent {
	font-size: 14px;
	line-height: 1;
	letter-spacing: .12em;
	opacity: .6;
	font-variant-numeric: tabular-nums;
}

/* Lune pleine : elle s'allume */
.agm-loader.agm-full .agm-halo { opacity: 1; }

.agm-loader.agm-full .agm-moon {
	animation: agm-pulse 1.6s ease-in-out infinite;
}

.agm-loader.agm-full .agm-moon svg {
	filter: drop-shadow(0 0 10px var(--agm-glow, #ffe58a)) drop-shadow(0 0 28px var(--agm-glow, #ffe58a));
}

.agm-loader.agm-full .agm-text {
	text-shadow: 0 0 16px var(--agm-glow, #ffe58a);
}

@keyframes agm-pulse {
	0%, 100% { transform: scale(1); }
	50%      { transform: scale(1.035); }
}

@media (prefers-reduced-motion: reduce) {
	.agm-loader.agm-full .agm-moon { animation: none; }
}

/* Empêche le défilement pendant le chargement */
html.agm-lock,
html.agm-lock body {
	overflow: hidden !important;
}
