/* ==========================================================================
   Simulator demo film in the homepage "Simulateur carrelage" section
   (template-parts/home-original.php, assets/js/sim-demo.js). The poster shows the film's
   "compare" step; one play button starts it with sound and native controls.
   ========================================================================== */

.sd {
	--sd-gold: #d6a743;
	--sd-ease: cubic-bezier(0.22, 1, 0.36, 1);
	position: relative;
	margin: 0;
	overflow: hidden;
	border-radius: 10px;
	background: #0d0c0b;
	box-shadow: 0 40px 70px -42px rgba(18, 17, 15, 0.6);
	aspect-ratio: 16 / 9;
}
.sd.is-mobile {
	aspect-ratio: 9 / 16;
	max-height: 82vh;
	margin-inline: auto;
}
.sd__video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: #0d0c0b;
}
.sd__play {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: flex-end;
	justify-content: flex-start;
	gap: 14px;
	width: 100%;
	padding: clamp(16px, 3vw, 32px);
	border: 0;
	background: linear-gradient(180deg, transparent 45%, rgba(10, 9, 8, 0.72));
	color: #fff;
	text-align: left;
	cursor: pointer;
	transition: opacity 0.4s;
}
.sd.is-mobile .sd__play {
	align-items: center;
	justify-content: center;
	flex-direction: column;
	text-align: center;
	background: rgba(10, 9, 8, 0.35);
}
.sd__icon {
	display: grid;
	place-items: center;
	flex: none;
	width: clamp(56px, 6vw, 76px);
	height: clamp(56px, 6vw, 76px);
	border-radius: 50%;
	background: var(--sd-gold);
	color: #12110f;
	box-shadow: 0 0 0 0 rgba(214, 167, 67, 0.5);
	transition: transform 0.4s var(--sd-ease), box-shadow 0.6s;
}
.sd__icon svg {
	width: 42%;
	height: 42%;
	margin-left: 6%;
	fill: currentColor;
}
.sd__label {
	display: grid;
	gap: 2px;
	font-family: var(--o-heading, "Red Hat Display", sans-serif);
	font-size: clamp(1.1rem, 0.95rem + 0.6vw, 1.45rem);
	font-weight: 700;
	line-height: 1.2;
}
.sd__label small {
	font-family: var(--o-body, Arial, sans-serif);
	font-size: 14px;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.75);
}
.sd__play:hover .sd__icon,
.sd__play:focus-visible .sd__icon {
	transform: scale(1.08);
	box-shadow: 0 0 0 12px rgba(214, 167, 67, 0.18);
}
.sd__play:focus-visible {
	outline: 3px solid var(--sd-gold);
	outline-offset: -3px;
}
.sd.is-playing .sd__play {
	opacity: 0;
	pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
	.sd__icon,
	.sd__play {
		transition: none;
	}
}
