.yceo-diaporama {
	position: relative;
	width: 100%;
	overflow: hidden;
	background: #000;
	aspect-ratio: 1088 / 349;
	box-sizing: border-box;
}

/* Fait déborder le diaporama de son conteneur pour occuper toute la largeur de l'écran,
   quelle que soit la largeur imposée par le thème (colonne de contenu, marges, etc.). */
.yceo-diaporama.yceo-fullwidth {
	width: 100vw;
	max-width: 100vw;
	position: relative;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
}

@media (max-width: 767px) {
	.yceo-diaporama {
		aspect-ratio: 4 / 5;
	}
}

.yceo-diaporama-track {
	position: relative;
	width: 100%;
	height: 100%;
}

.yceo-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.9s ease-in-out;
	z-index: 1;
}

.yceo-slide.is-active {
	opacity: 1;
	visibility: visible;
	z-index: 2;
}

.yceo-slide picture,
.yceo-slide img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	object-position: center;
}

.yceo-slide-link {
	position: absolute;
	inset: 0;
	display: block;
}

/* Flèches précédent / suivant */
.yceo-diaporama-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
	background: rgba(0, 0, 0, 0.35);
	color: #fff;
	border: 0;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	font-size: 18px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease;
}

.yceo-diaporama-arrow:hover {
	background: rgba(0, 0, 0, 0.6);
}

.yceo-arrow-prev {
	left: 16px;
}

.yceo-arrow-next {
	right: 16px;
}

/* Puces de navigation */
.yceo-diaporama-dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 16px;
	z-index: 5;
	display: flex;
	justify-content: center;
	gap: 8px;
}

.yceo-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.5);
	border: 0;
	padding: 0;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
}

.yceo-dot.is-active {
	background: #fff;
	transform: scale(1.25);
}

/* Bouton pause : en haut à droite pour laisser la place au CTA en bas à gauche */
.yceo-diaporama-pause {
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 6;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: 0;
	background: rgba(0, 0, 0, 0.4);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.yceo-icon-pause {
	display: inline-block;
	width: 12px;
	height: 12px;
	position: relative;
}

.yceo-icon-pause::before,
.yceo-icon-pause::after {
	content: "";
	position: absolute;
	top: 0;
	width: 3px;
	height: 12px;
	background: #fff;
}

.yceo-icon-pause::before {
	left: 1px;
}

.yceo-icon-pause::after {
	right: 1px;
}

.yceo-diaporama-pause[data-playing="0"] .yceo-icon-pause {
	width: 0;
	height: 0;
	border-top: 6px solid transparent;
	border-bottom: 6px solid transparent;
	border-left: 11px solid #fff;
	background: none;
}

.yceo-diaporama-pause[data-playing="0"] .yceo-icon-pause::before,
.yceo-diaporama-pause[data-playing="0"] .yceo-icon-pause::after {
	display: none;
}

/* Bouton call-to-action, bas à gauche */
.yceo-diaporama-cta {
	position: absolute;
	bottom: 16px;
	left: 16px;
	z-index: 6;
	padding: 12px 24px;
	border-radius: 10px;
	font-weight: 600;
	text-decoration: none;
	text-align: center;
	line-height: 1.2;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.yceo-diaporama-cta:hover {
	opacity: 0.9;
	transform: translateY(-2px);
	color: inherit;
}

@media (max-width: 480px) {
	.yceo-diaporama-cta {
		padding: 10px 16px;
		font-size: 14px;
	}
	.yceo-diaporama-arrow {
		width: 34px;
		height: 34px;
	}
}
