/* =========================================================
   Special Offer Carousel — styles
   Toutes les classes sont préfixées "vdtos-" pour rester
   facilement ciblables et modifiables avec Yellow Pencil.
   Aucun !important n'est utilisé afin de laisser la priorité
   aux styles ajoutés par Yellow Pencil / Elementor.
   ========================================================= */

.vdtos-wrapper {
	position: relative;
	width: 100%;
}

.vdtos-viewport {
	position: relative;
	width: 100%;
}

.vdtos-track {
	--vdtos-slides-visible: 1.15;
	--vdtos-gap: 16px;
	display: flex;
	gap: var(--vdtos-gap);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.vdtos-track::-webkit-scrollbar {
	display: none;
}

.vdtos-slide {
	position: relative;
	scroll-snap-align: start;
	flex: 0 0 calc((100% - (var(--vdtos-gap) * (var(--vdtos-slides-visible) - 1))) / var(--vdtos-slides-visible));
	height: 260px;
	border-radius: 24px;
	overflow: hidden;
	background-size: cover;
	background-position: center;
	background-color: #1b1f24;
	display: flex;
	align-items: flex-end;
}

/* Quand toutes les slides tiennent déjà dans la largeur visible (pas besoin
   de scroller), elles se répartissent équitablement tout l'espace : plus
   jamais d'espace vide, et la nav (flèches/dots) est masquée en JS. */
.vdtos-fit .vdtos-slide {
	flex: 1 1 0;
	min-width: 0;
}

.vdtos-overlay {
	position: absolute;
	inset: 0;
	background-color: #0a0f14;
	opacity: 0.55;
	z-index: 1;
}

.vdtos-content {
	position: relative;
	z-index: 2;
	width: 100%;
	padding: 18px 20px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	box-sizing: border-box;
}

.vdtos-badge {
	position: absolute;
	top: 16px;
	left: 20px;
	background-color: rgba(255, 255, 255, 0.18);
	color: #ffffff;
	font-size: 12px;
	font-weight: 500;
	padding: 5px 12px;
	border-radius: 20px;
	backdrop-filter: blur(4px);
	width: fit-content;
}

.vdtos-title {
	color: #ffffff;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.2;
	margin: 0;
}

.vdtos-offer-row {
	display: flex;
	align-items: center;
	margin: 4px 0 2px;
}

.vdtos-offer-text {
	display: flex;
	align-items: center;
	gap: 10px;
}

.vdtos-prefix {
	color: rgba(255, 255, 255, 0.85);
	font-size: 14px;
	font-weight: 400;
}

.vdtos-percentage-wrap {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.vdtos-percentage-wrap.vdtos-ring {
	border: 3px solid #22c55e;
	border-radius: 50%;
	width: 56px;
	height: 56px;
	border-right-color: transparent;
}

.vdtos-percentage {
	color: #ffffff;
	font-size: 22px;
	font-weight: 700;
	line-height: 1;
}

.vdtos-description {
	color: rgba(255, 255, 255, 0.85);
	font-size: 12px;
	margin: 0 0 6px;
}

.vdtos-button {
	display: inline-block;
	width: fit-content;
	background-color: #22c55e;
	color: #ffffff;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	padding: 10px 22px;
	border-radius: 24px;
	transition: background-color 0.25s ease, color 0.25s ease;
}

.vdtos-button:hover {
	background-color: #16a34a;
	color: #ffffff;
}

/* Navigation par flèches */
.vdtos-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	width: 36px;
	height: 36px;
	border: none;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.35);
	color: #ffffff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
}

.vdtos-arrow-prev {
	left: 10px;
}

.vdtos-arrow-next {
	right: 10px;
}

/* Points de pagination */
.vdtos-dots {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin-top: 14px;
}

.vdtos-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background-color: rgba(0, 0, 0, 0.2);
	border: none;
	padding: 0;
	cursor: pointer;
	transition: background-color 0.25s ease, transform 0.25s ease;
}

.vdtos-dot.is-active {
	background-color: #22c55e;
	transform: scale(1.2);
}

/* Responsive */
@media (max-width: 767px) {
	.vdtos-slide {
		height: 220px;
	}

	.vdtos-title {
		font-size: 18px;
	}
}
