.comparaison-container {
	max-width: 20em;
	display: flex;
	flex-direction: column;
}

.comparaison {
	--position: 50%;
	position: relative;
	max-width: 100%;
	overflow: hidden;
	border-radius: 12px;
	user-select: none;
}

.comparaison img {
	display: block;
	width: 100%;
	height: auto;
}

.comparaison .image-droite {
	position: absolute;
	inset: 0;
	clip-path: inset(0 0 0 var(--position));
}

.separateur {
	position: absolute;
	top: 0;
	bottom: 0;
	left: var(--position);
	width: 3px;
	background: white;
	transform: translateX(-50%);
	pointer-events: none;
}

.poignee {
	position: absolute;
	top: 50%;
	left: var(--position);
	display: grid;
	width: 44px;
	height: 44px;
	place-items: center;
	color: #212529;
	background: white;
	border: 2px solid #212529;
	border-radius: 50%;
	transform: translate(-50%, -50%);
	pointer-events: none;
}

.curseur {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: ew-resize;
}

.etiquette {
	position: absolute;
	top: 12px;
	padding: 4px 10px;
	color: white;
	background: rgb(0 0 0 / 55%);
	border-radius: 4px;
	pointer-events: none;
}

.etiquette-gauche {
	left: 12px;
}

.etiquette-droite {
	right: 12px;
}

.side2sideLedgend {
	width: 100%;
	max-width: none;
	box-sizing: border-box;
	color: #adadad;
	font-size: calc(var(--name-size) * 0.08);
	text-align: justify;
}
