.nono-lb-backdrop {
	position: fixed;
	inset: 0;
	z-index: 999998;
	background: rgba(10, 14, 20, 0.72);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	display: none;
	flex-direction: column;
	opacity: 0;
	transition: opacity 0.28s ease;
}
.nono-lb-backdrop.nono-lb-visible {
	display: flex;
}
.nono-lb-backdrop.nono-lb-open {
	opacity: 1;
}
.nono-lb-backdrop .nono-lb-inner {
	transform: scale(0.96);
	transition: transform 0.28s cubic-bezier(0.2, 0.9, 0.25, 1);
}
.nono-lb-backdrop.nono-lb-open .nono-lb-inner {
	transform: scale(1);
}

.nono-lb-inner {
	position: relative;
	flex: 1 1 auto;
	width: 100%;
	height: 100%;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.nono-lb-content {
	display: none;
	flex: 1 1 auto;
	width: 100%;
	min-height: 0;
	align-items: center;
	justify-content: center;
}

.nono-lb-loading {
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	justify-content: center;
	min-height: 300px;
}
.nono-lb-loading-glass {
	width: 150px;
	height: 150px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .28);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, .5);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, .18);
}
.nono-lb-loading-ring {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	border: 4px solid rgba(255, 255, 255, .35);
	border-top-color: #fff;
	animation: nono-lb-spin 0.9s linear infinite;
}
.nono-lb-loading-glass span {
	font-size: 12px;
	color: #fff;
	font-weight: 500;
	text-align: center;
	line-height: 1.3;
	text-shadow: 0 1px 3px rgba(0, 0, 0, .25);
}
@keyframes nono-lb-spin {
	to { transform: rotate(360deg); }
}

/* Bouton de fermeture — toujours visible en haut à droite, quel que soit le
   contenu chargé dedans, avec un effet au survol (agrandissement léger +
   fond qui s'éclaircit) pour un rendu plus moderne qu'un simple bouton plat. */
.nono-lb-close {
	position: fixed;
	top: max(16px, env(safe-area-inset-top, 0px));
	right: max(16px, env(safe-area-inset-right, 0px));
	z-index: 999999;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: none;
	background: rgba(255, 255, 255, 0.14);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
	transition: background-color 0.18s ease, transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.nono-lb-close:hover {
	background: rgba(255, 255, 255, 0.28);
	transform: scale(1.1) rotate(90deg);
}
.nono-lb-close:active {
	transform: scale(0.94) rotate(90deg);
}

body:has(.nono-lb-backdrop.nono-lb-open) {
	overflow: hidden;
}

body.nono-lb-scroll-lock {
	position: fixed !important;
	left: 0 !important;
	right: 0 !important;
	width: 100% !important;
	overflow: hidden !important;
	overscroll-behavior: none !important;
}
html.nono-lb-scroll-lock {
	overflow: hidden !important;
	overscroll-behavior: none !important;
}
