/* Mur de l'accueil et visionneuse. Couleurs et polices : variables d'Oxygen. */
.pv-fragment-projet { display: none; }
.pv-mur .pv-fragment-legende { display: none; }
.pv-fragment-lien { position: relative; }
.pv-fragment.a-un-projet .pv-fragment-lien::after {
	content: "Projet";
	position: absolute;
	left: 8px;
	bottom: 8px;
	padding: 2px 6px;
	background: var(--pv-fond, #e0e0e0);
	color: var(--pv-encre, #1c1c1c);
	font-family: var(--pv-texte, sans-serif);
	font-size: 12px;
	line-height: 1.4;
}

/* L'en-tête reste utilisable pendant la visionneuse. */
html.pv-agrandi-ouvert { overflow: hidden; }
html.pv-agrandi-ouvert .pv-entete {
	position: fixed;
	top: var(--pv-agrandi-barre, 0px);
	left: 0;
	right: 0;
	z-index: 1001;
}

.pv-agrandi {
	position: fixed;
	top: var(--pv-agrandi-haut, 0px);
	left: 0;
	z-index: 1000;
	box-sizing: border-box;
	width: 100vw;
	height: calc(100vh - var(--pv-agrandi-haut, 0px));
	height: calc(100dvh - var(--pv-agrandi-haut, 0px));
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	overflow: hidden;
	background: var(--pv-fond, #e0e0e0);
	color: var(--pv-encre, #1c1c1c);
	font-family: var(--pv-texte, sans-serif);
}
.pv-agrandi[open] {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: var(--pv-marge, 24px);
	padding: 0 var(--pv-marge, 24px) var(--pv-marge, 24px);
}
.pv-agrandi-scene {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	min-height: 0;
	overflow: hidden;
}
.pv-agrandi-image {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
}
.pv-agrandi-infos {
	display: flex;
	flex-direction: column;
	min-height: 0;
	font-size: 14px;
	line-height: 1.4;
}
.pv-agrandi-textes {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	min-height: 0;
	margin-top: 24px;
	overflow-y: auto;
}
.pv-agrandi-titre {
	margin: 0;
	color: inherit;
	font-family: inherit;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.25;
}
.pv-agrandi-legende, .pv-agrandi-disciplines { margin: 0; }
.pv-agrandi-legende[hidden], .pv-agrandi-disciplines[hidden], .pv-agrandi-projet[hidden] { display: none; }
.pv-agrandi-projet { margin-top: 8px; color: inherit; font-weight: 500; text-decoration: underline; text-decoration-thickness: var(--pv-trait, 1.5px); text-underline-offset: 3px; }
.pv-agrandi-projet:hover { color: inherit; text-decoration-color: var(--pv-accent, #f0f); text-decoration-thickness: var(--pv-trait, 1.5px); }
.pv-agrandi-navigation { display: flex; justify-content: flex-end; gap: 4px; }
.pv-agrandi-bouton {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: inherit;
	cursor: pointer;
}
.pv-agrandi-bouton:hover { background: var(--pv-encre, #1c1c1c); color: var(--pv-fond, #e0e0e0); }
.pv-agrandi-bouton:focus-visible { outline: 2px solid var(--pv-encre, #1c1c1c); outline-offset: 2px; }
.pv-agrandi-bouton[hidden] { display: none; }

@media (max-width: 767px) {
	.pv-agrandi[open] {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: minmax(0, 1fr) auto;
		gap: 8px;
		padding: 0 16px 8px;
	}
	.pv-agrandi { touch-action: none; }
	.pv-agrandi-infos { max-height: 40vh; overflow: hidden; }
	.pv-agrandi-textes { margin-top: 0; }
	/* Boutons remplacés par les gestes, conservés pour les lecteurs d'écran. */
	.pv-agrandi-navigation {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}
}
