/* ==== Bandes défilantes (classe defilant ; js/base.js répète la liste, le site donne l'aspect des éléments) ==== */
.defilant {
	position: relative;
	overflow: hidden;
}
.defilant :is(ul, .defilant-piste) {
	display: flex;
	width: max-content;
	margin: 0;
	padding: 0;
	list-style: none;
}
.defilant.en-mouvement :is(ul, .defilant-piste) {
	animation: defile var(--defile-duree, 60s) linear infinite;
}
.defilant.vers-droite.en-mouvement :is(ul, .defilant-piste) {
	animation-direction: reverse;
}
.defilant:is(:hover, :focus-within, .est-arrete) :is(ul, .defilant-piste) {
	animation-play-state: paused;
}
.defilant-pause {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1;
	padding: 8px 12px;
	border: 0;
	background: var(--e-global-color-fond-1);
	color: var(--e-global-color-text);
}
.defilant-pause:not(:focus-visible) {
	clip-path: inset(50%);
	white-space: nowrap;
}
@keyframes defile {
	to {
		transform: translateX(calc(-1 * var(--defile-largeur, 0px)));
	}
}

/* ==== Vidéos de fond (js/base.js ajoute le bouton de pause, en bas à droite de la section) ==== */
/* The kit styles every button (.elementor-kit-N button and its states): the parent and the tag win over it. */
:is(.e-con, .elementor-section) > button.video-pause {
	position: absolute;
	right: var(--pad-x, 24px);
	bottom: 24px;
	z-index: 2;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid color-mix(in srgb, var(--e-global-color-fond-1) 60%, transparent);
	border-radius: 50%;
	background: color-mix(in srgb, var(--e-global-color-text) 45%, transparent);
	color: var(--e-global-color-fond-1);
	cursor: pointer;
}
:is(.e-con, .elementor-section) > button.video-pause:is(:hover, :focus) {
	border-color: var(--e-global-color-fond-1);
	background: color-mix(in srgb, var(--e-global-color-text) 70%, transparent);
	color: var(--e-global-color-fond-1);
}
:is(.e-con, .elementor-section) > button.video-pause:focus-visible {
	outline-color: var(--e-global-color-fond-1);
}
.video-pause::before,
.video-pause::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 4px;
	height: 14px;
	background: currentColor;
	transform: translate(calc(-50% - 4px), -50%);
}
.video-pause::after {
	transform: translate(calc(-50% + 4px), -50%);
}
.video-pause.est-arretee::before {
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 8px 0 8px 13px;
	border-color: transparent transparent transparent currentColor;
	background: none;
	transform: translate(-40%, -50%);
}
.video-pause.est-arretee::after {
	display: none;
}
