/* Aiola – Décorations de fêtes. Rien ici ne bloque les clics sur le site (pointer-events: none). */
.af-garland, .af-snow { position: fixed; left: 0; right: 0; pointer-events: none; z-index: 99990; }
.af-garland { top: 0; height: 34px; overflow: hidden; }
.af-garland svg { position: absolute; inset: 0; width: 100%; height: 100%; }
body.admin-bar .af-garland { top: 32px; }
@media (max-width: 782px) { body.admin-bar .af-garland { top: 46px; } }

.af-bulb { position: absolute; width: 9px; height: 14px; margin-left: -4.5px; transform-origin: 50% 0; }
.af-bulb::before { /* douille */
	content: ""; position: absolute; left: 2px; top: 0; width: 5px; height: 4px; border-radius: 1px; background: #2c3140;
}
.af-bulb::after { /* ampoule */
	content: ""; position: absolute; left: 0; top: 3px; width: 9px; height: 11px; border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
	background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.85) 0 2px, transparent 3px), var(--c);
	box-shadow: 0 0 5px 1px var(--c), 0 0 12px 2px var(--glow);
	animation: af-twinkle var(--d, 2.4s) ease-in-out var(--delay, 0s) infinite;
}
@keyframes af-twinkle {
	0%, 100% { opacity: 1; filter: brightness(1.15); }
	50% { opacity: .45; filter: brightness(.7); box-shadow: 0 0 2px 0 var(--c); }
}

.af-snow { top: 0; bottom: 0; width: 100%; height: 100%; z-index: 99989; }

/* Message de fêtes */
.af-msg {
	position: fixed; left: 50%; transform: translateX(-50%); z-index: 99991;
	display: flex; align-items: center; gap: 12px; box-sizing: border-box;
	max-width: calc(100vw - 24px); padding: 10px 8px 10px 16px;
	background: #1B1D2B; color: #fff; border: 2px solid #E1B01E; border-radius: 999px;
	box-shadow: 0 10px 30px rgba(15, 18, 30, .35), 0 0 0 4px rgba(225, 176, 30, .18);
	font-size: 17px; line-height: 1.35; font-weight: 500; letter-spacing: .01em;
	animation: af-in .6s cubic-bezier(.2, .8, .2, 1) both;
}
.af-msg.af-bottom { bottom: 18px; }
.af-msg.af-top { top: 44px; }
body.admin-bar .af-msg.af-top { top: 76px; }
.af-msg .af-text { text-align: center; text-wrap: balance; }
.af-msg .af-brand {
	font-weight: 800;
	background: linear-gradient(90deg, #CF7A1C, #E1B01E 30%, #FCEB8A 50%, #E1B01E 70%, #CF7A1C);
	background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
	animation: af-shine 4s linear infinite;
}
.af-msg .af-deco { flex: none; width: 30px; height: 30px; }
.af-msg .af-close {
	flex: none; width: 36px; height: 36px; margin: 0; padding: 0; border: 0; border-radius: 50%;
	background: rgba(255, 255, 255, .1); color: #fff; font: 400 22px/36px system-ui, sans-serif; cursor: pointer;
}
.af-msg .af-close:hover, .af-msg .af-close:focus-visible { background: rgba(255, 255, 255, .25); outline: 2px solid #E1B01E; outline-offset: 1px; }
.af-msg.af-hide { animation: af-out .35s ease-in both; }
@keyframes af-in { from { opacity: 0; transform: translate(-50%, 16px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes af-out { to { opacity: 0; transform: translate(-50%, 16px); } }
@keyframes af-shine { to { background-position: -200% 0; } }
@media (max-width: 600px) {
	.af-msg { font-size: 15px; gap: 8px; padding: 8px 6px 8px 12px; border-radius: 18px; width: calc(100vw - 24px); }
	.af-msg .af-deco { width: 24px; height: 24px; }
}

@media (prefers-reduced-motion: reduce) {
	.af-bulb::after, .af-msg, .af-msg .af-brand, .af-msg.af-hide { animation: none; }
}
