/**
 * Visionneuse des photos — plugin 0.6.0 (03/11/2026). Commune aux listes, a la
 * banniere et au pop'up (assets/visionneuse.js).
 *
 * Voile sombre flou, image entiere, boutons ronds 44 px (meme visuel que le
 * dashboard). Contrastes : icones blanches sur #0f172a
 * a 80 % : 15:1 ; legende #e2e8f0 sur le voile : 14:1.
 */
.el-visionneuse {
	position: fixed;
	inset: 0;
	width: 100vw;
	height: 100vh;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	overflow: hidden;
	color: #e2e8f0;
}
.el-visionneuse::backdrop {
	/* Même voile clair que la fenêtre de détail des fiches (14/11/2026, 92 % de noir auparavant) */
	background: transparent; /* fond non assombri, seulement très flou (essai du 14/11/2026) */
	-webkit-backdrop-filter: blur(22px);
	backdrop-filter: blur(22px);
}
.el-visionneuse-ouverte {
	overflow: hidden;
}
.el-visionneuse__scene {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 64px 72px;
	box-sizing: border-box;
}
.el-visionneuse__figure {
	margin: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	max-width: 100%;
	max-height: 100%;
}
.el-visionneuse__image {
	display: block;
	max-width: 100%;
	max-height: calc(100vh - 168px);
	object-fit: contain;
	border-radius: 8px;
	/* Voile clair (14/11/2026) : une ombre détache la photo de la page vue en transparence */
	box-shadow: 0 18px 50px -12px rgba(13, 17, 23, 0.55), 0 2px 6px rgba(13, 17, 23, 0.2);
	transform: none !important; /* neutralise le zoom au survol du theme */
}
.el-visionneuse__legende {
	/* Sur le voile clair, la légende garde son fond sombre (lisible) */
	max-width: min(720px, 100%);
	padding: 4px 12px;
	border-radius: 999px;
	background: rgba(15, 23, 42, 0.8);
	color: #ffffff;
	font-size: 0.875rem;
	text-align: center;
}
.el-visionneuse__bouton {
	position: fixed;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 1px solid #475569;
	border-radius: 50%;
	background: rgba(15, 23, 42, 0.8);
	color: #ffffff;
	box-shadow: none;
	cursor: pointer;
}
.el-visionneuse__bouton:hover {
	background: rgba(15, 23, 42, 0.95);
}
.el-visionneuse__fermer { top: 16px; right: 16px; }
/* Croix dans le style habituel des fenêtres (14/11/2026) : transparente, verre dépoli, croix foncée */
/* Chevrons dans le même style (14/11/2026) */
.el-visionneuse__bouton.el-visionneuse__fermer,
.el-visionneuse__bouton.el-visionneuse__prec,
.el-visionneuse__bouton.el-visionneuse__suiv { border-color: rgba(255, 255, 255, 0.45); background: rgba(15, 23, 42, 0.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #ffffff; } /* noir transparent, comme les flèches des photos (14/11/2026) */
.el-visionneuse__bouton.el-visionneuse__fermer:hover,
.el-visionneuse__bouton.el-visionneuse__prec:hover,
.el-visionneuse__bouton.el-visionneuse__suiv:hover { background: rgba(15, 23, 42, 0.78); }
.el-visionneuse__prec { left: 16px; top: 50%; transform: translateY(-50%); }
.el-visionneuse__suiv { right: 16px; top: 50%; transform: translateY(-50%); }
.el-visionneuse__pastilles {
	position: fixed;
	bottom: 16px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 2px;
	/* Points sur une pastille sombre : visibles sur le voile clair */
	padding: 2px 8px;
	border-radius: 999px;
	background: rgba(15, 23, 42, 0.6);
}
/* Zone de clic de 24 x 24 px autour du point (RGAA, critere 2.5.8). */
.el-visionneuse__pastille {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 24px;
	height: 24px;
	margin: 0;
	padding: 0 2px;
	border: 0;
	background: transparent;
	box-shadow: none;
	cursor: pointer;
}
.el-visionneuse__pastille::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 9999px;
	background: rgba(226, 232, 240, 0.6);
}
.el-visionneuse__pastille[aria-current="true"]::before {
	width: 16px;
	background: #f8fafc;
}
.el-visionneuse button:focus-visible {
	outline: 3px solid #ffffff;
	outline-offset: 2px;
	box-shadow: 0 0 0 5px #0f172a;
}
@media (max-width: 600px) {
	.el-visionneuse__scene {
		padding: 64px 8px 72px;
	}
}
@media (forced-colors: active) {
	.el-visionneuse__bouton {
		border: 2px solid ButtonText;
	}
	.el-visionneuse__pastille::before {
		background: CanvasText;
	}
	.el-visionneuse__pastille[aria-current="true"]::before {
		background: Highlight;
	}
}
