/* RH Slider – reproduction du carrousel Slider Revolution 5 (classic-carousel3). */

.rhs-wrap {
	--rhs-ease2: cubic-bezier(0.455, 0.03, 0.515, 0.955); /* Power2.easeInOut */
	--rhs-ease3: cubic-bezier(0.645, 0.045, 0.355, 1);    /* Power3.easeInOut */
	--rhs-ease4: cubic-bezier(0.77, 0, 0.175, 1);         /* Power4.easeInOut */
	position: relative;
	z-index: 0;
	width: 100%;
	margin: 0 auto;
	padding: 0;
	background: var(--rhs-bg, #fff);
	box-sizing: border-box;
	transition: opacity 1.5s linear;
}
.rhs-wrap.rhs-loading { opacity: 0; }
.rhs-wrap *,
.rhs-wrap *::before,
.rhs-wrap *::after { box-sizing: border-box; }

/* Ombre « shadow 4 » de Revolution : ombre inclinée en bas à droite. */
.rhs-cover {
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--rhs-bg, #fff);
}
.rhs-shadow::after {
	content: "";
	position: absolute;
	z-index: -2;
	top: 85%;
	bottom: 10px;
	right: 10px;
	width: 50%;
	max-width: 300px;
	background: transparent;
	box-shadow: 0 15px 10px rgba(0, 0, 0, 0.8);
	transform: rotate(3deg);
}

.rhs-viewport {
	position: absolute;
	inset: 0;
	overflow: hidden;
}

.rhs-slide {
	position: absolute;
	top: 0;
	left: 0;
	display: block;
	overflow: hidden;
	visibility: hidden;
	text-decoration: none !important;
	will-change: transform;
}
.rhs-slide.rhs-visible { visibility: visible; }

.rhs-bg {
	position: absolute;
	inset: 0;
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
	transform-origin: 50% 50%;
	will-change: transform;
}

/* Calques : dessinés dans la grille d'origine (ex. 1240×600) puis mis à l'échelle. */
.rhs-layers {
	position: absolute;
	top: 0;
	left: 0;
	transform-origin: 0 0;
	pointer-events: none;
}
.rhs-mask {
	position: absolute;
	top: 50%;
	left: 50%;
	overflow: hidden;
	transform: translate(-50%, -50%);
}
.rhs-mask-box { z-index: 5; }
.rhs-mask-title { z-index: 6; }
.rhs-mask > * {
	transform: translate3d(0, -100%, 0);
	transition: none;
}
.rhs-box {
	width: 100%;
	height: 100%;
	background-color: var(--rhs-box, rgba(0, 0, 0, 0.75));
}
.rhs-title {
	padding: 10px 0;
	margin: 0;
	font-family: Raleway, sans-serif;
	font-weight: 800;
	font-style: normal;
	font-size: var(--rhs-fs, 50px);
	line-height: var(--rhs-lh, 70px);
	letter-spacing: normal;
	color: var(--rhs-text, #fff);
	white-space: nowrap;
	text-align: left;
	text-transform: none;
	text-decoration: none;
}

/* Entrée : 1 s d'attente puis glissement depuis le haut (1,5 s). Sortie vers le bas (1 s). */
.rhs-in .rhs-mask > * {
	transform: translate3d(0, 0, 0);
	transition: transform 1.5s var(--rhs-ease3) 1s;
}
.rhs-in .rhs-mask-box > * { transition-timing-function: var(--rhs-ease4); }
.rhs-out .rhs-mask > * {
	transform: translate3d(0, 100%, 0);
	transition: transform 1s var(--rhs-ease2);
}

/* Vignettes, style « gyges ». */
.rhs-thumbs {
	position: absolute;
	z-index: 1000;
	left: 50%;
	bottom: 20px;
	transform: translateX(-50%);
}
.rhs-thumbs.rhs-hidden { display: none; }
.rhs-thumbs-mask {
	position: relative;
	height: 60px;
	overflow: hidden;
}
.rhs-thumbs-track {
	position: relative;
	height: 60px;
	transition: transform 0.3s ease-out;
}
.rhs-wrap .rhs-thumb {
	position: absolute;
	top: 0;
	width: 60px;
	height: 60px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	min-height: 0;
	line-height: 0;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}
.rhs-thumb-wrap {
	display: block;
	width: 100%;
	height: 100%;
	padding: 3px;
	background-color: rgba(0, 0, 0, 0.25);
	transition: all 0.3s;
}
.rhs-thumb:hover .rhs-thumb-wrap,
.rhs-thumb.rhs-selected .rhs-thumb-wrap {
	background: linear-gradient(to bottom, #fff 0%, #777 100%);
}
.rhs-thumb-img {
	display: block;
	width: 100%;
	height: 100%;
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
	box-shadow: inset 5px 5px 10px 0 rgba(0, 0, 0, 0.25);
}
.rhs-thumb:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Barre de progression. */
.rhs-timer {
	position: absolute;
	z-index: 200;
	left: 0;
	bottom: 0;
	width: 0;
	height: 7px;
	background: rgba(255, 255, 255, 0.25);
	pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
	.rhs-wrap { transition: none; }
}
