/*
 * Bloc « Avant / après » : photo « après » dessous, photo « avant » découpée au curseur.
 * Même langage que le reste de Vitrine : angles droits, filets fins, petites
 * capitales espacées, poignée en verre dépoli.
 */
.vtr-aa-bloc {
	margin-top: 0;
	margin-left: 0;
	margin-right: 0;
}
.vtr-aa {
	--pos: 50%;
	--format: 4 / 3;
	--vtr-aa-encre: #14171f;
	position: relative;
	aspect-ratio: var(--format);
	overflow: hidden;
	background: #f3f1ec;
	user-select: none;
	-webkit-user-select: none;
	-webkit-tap-highlight-color: transparent;
	touch-action: pan-y;
	cursor: ew-resize;
	isolation: isolate;
}
.vtr-aa img.vtr-aa__avant,
.vtr-aa img.vtr-aa__apres {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	max-width: none;
	height: 100%;
	margin: 0;
	object-fit: cover;
	pointer-events: none;
}
.vtr-aa__haut {
	position: absolute;
	inset: 0;
	clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
/* Voile discret en bas : les étiquettes restent lisibles sur toutes les photos. */
.vtr-aa::after {
	content: "";
	position: absolute;
	inset: auto 0 0;
	z-index: 1;
	height: 32%;
	background: linear-gradient(to top, rgba(10, 12, 16, .42), rgba(10, 12, 16, 0));
	pointer-events: none;
}
.vtr-aa__etiq {
	position: absolute;
	bottom: clamp(16px, 2.2vw, 28px);
	z-index: 2;
	color: #fff;
	font-size: 11px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: .24em;
	text-transform: uppercase;
	text-shadow: 0 1px 12px rgba(0, 0, 0, .25);
	pointer-events: none;
	transition: opacity .35s ease;
}
.vtr-aa__etiq.is-avant {
	left: clamp(16px, 2.2vw, 28px);
}
.vtr-aa__etiq.is-apres {
	right: clamp(16px, 2.2vw, 28px);
}
/* Une étiquette s'efface quand le curseur la recouvre. */
.vtr-aa.is-tout-avant .vtr-aa__etiq.is-apres,
.vtr-aa.is-tout-apres .vtr-aa__etiq.is-avant {
	opacity: 0;
}
/* Filet vertical et poignée. */
.vtr-aa__poignee {
	position: absolute;
	top: 0;
	bottom: 0;
	left: var(--pos);
	z-index: 3;
	width: 1px;
	background: rgba(255, 255, 255, .95);
	box-shadow: 0 0 0 .5px rgba(10, 12, 16, .12), 0 0 18px rgba(0, 0, 0, .14);
	pointer-events: none;
}
.vtr-aa__poignee::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 54px;
	height: 54px;
	border: 1px solid rgba(255, 255, 255, .9);
	border-radius: 50%;
	/* Verre dépoli clair : lisible sur les photos claires (chantier, murs blancs) comme sombres. */
	background: rgba(255, 255, 255, .62);
	-webkit-backdrop-filter: blur(12px) saturate(1.4);
	backdrop-filter: blur(12px) saturate(1.4);
	box-shadow: 0 8px 28px rgba(10, 12, 16, .2), inset 0 0 0 .5px rgba(10, 12, 16, .06);
	transform: translate(-50%, -50%);
	transition: transform .35s cubic-bezier(.2, .7, .2, 1), background-color .35s ease;
}
.vtr-aa__poignee::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 26px;
	height: 26px;
	transform: translate(-50%, -50%);
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%2314171f' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round' d='M9.5 7.5 5 12l4.5 4.5M14.5 7.5 19 12l-4.5 4.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.vtr-aa:hover .vtr-aa__poignee::before,
.vtr-aa.is-actif .vtr-aa__poignee::before {
	background: rgba(255, 255, 255, .82);
	transform: translate(-50%, -50%) scale(1.06);
}
.vtr-aa input[type="range"] {
	position: absolute;
	inset: 0;
	z-index: 4;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	pointer-events: none;
	-webkit-appearance: none;
	appearance: none;
}
.vtr-aa:focus-within .vtr-aa__poignee::before {
	outline: 1px solid var(--vtr-aa-encre);
	outline-offset: 4px;
}
.vtr-aa__legende {
	display: flex;
	gap: 12px;
	align-items: baseline;
	margin: 14px 0 0;
	color: #5d6068;
	font-size: 13px;
	font-weight: 300;
	line-height: 1.55;
	letter-spacing: .01em;
}
.vtr-aa__legende::before {
	content: "";
	flex: none;
	width: 24px;
	height: 1px;
	background: currentColor;
	transform: translateY(-4px);
	opacity: .6;
}
.vtr-aa__vide {
	padding: 24px;
	border: 1px dashed #c9c9c2;
	color: #5d6068;
	text-align: center;
}
@media (max-width: 600px) {
	.vtr-aa__poignee::before {
		width: 46px;
		height: 46px;
	}
	.vtr-aa__poignee::after {
		width: 22px;
		height: 22px;
	}
	.vtr-aa__etiq {
		font-size: 10px;
		letter-spacing: .2em;
	}
}
@media (prefers-reduced-motion: reduce) {
	.vtr-aa__poignee::before,
	.vtr-aa__etiq {
		transition: none;
	}
}
