/* Bandeau défilant — SYSTEL. Couleurs : héritées (currentColor) ou réglage du widget. */
.systel-bandeau {
	--ecart: 100px;
	position: relative;
	overflow: hidden;
	/* Fondu sur les bords : le texte apparaît et disparaît en douceur.
	   Dans un masque, seule l'OPACITÉ compte : « black » veut dire « visible »,
	   ce n'est pas une couleur affichée. */
	-webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
	mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.systel-bandeau__piste {
	display: flex;
	width: max-content;
	animation: systel-bandeau var(--duree, 40s) linear infinite;
}
.systel-bandeau[data-sens="droite"] .systel-bandeau__piste { animation-direction: reverse; }

.systel-bandeau__groupe {
	display: flex;
	flex: none;
	gap: var(--ecart);
	padding-right: var(--ecart); /* même écart à la jonction des deux groupes */
}
.systel-bandeau__item {
	margin: 0;
	white-space: nowrap;
	font-family: var(--ff-display, sans-serif);
	font-size: 13vw;
	line-height: 1.1;
	letter-spacing: -2px;
}

/* Pause : bouton, ou navigation au clavier dans le bandeau. Pas au survol
   (choix de design). :focus-visible et non :focus-within : un clic souris
   sur le bouton lui donne le focus, et « lecture » resterait en pause. */
.systel-bandeau.is-paused .systel-bandeau__piste,
.systel-bandeau:has(:focus-visible) .systel-bandeau__piste { animation-play-state: paused; }

/* Double classe : voir temoignages.css (styles <button> du kit Elementor). */
.systel-bandeau .systel-bandeau__pause {
	position: absolute;
	right: var(--sp-4, 1rem);
	bottom: var(--sp-4, 1rem);
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	color: inherit;
	background: none;
	border: 1px solid currentColor;
	border-radius: 50%;
	cursor: pointer;
	opacity: 0.6;
	transition: opacity 0.2s;
}
.systel-bandeau__pause:is(:hover, :focus-visible) { opacity: 1; }
/* Icône pause (deux barres) ↔ lecture (triangle), en CSS pur. */
.systel-bandeau__pause-ico {
	width: 10px;
	height: 12px;
	border-left: 3px solid currentColor;
	border-right: 3px solid currentColor;
}
.systel-bandeau.is-paused .systel-bandeau__pause-ico {
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 7px 0 7px 12px;
	border-color: transparent transparent transparent currentColor;
	margin-left: 3px;
}

/* Petit écran : le texte remplit la hauteur du bandeau, le bouton passait
   dessus. On lui réserve une bande en dessous. */
@media (width <= 767px) {
	.systel-bandeau { padding-bottom: 3.25rem; }
	.systel-bandeau .systel-bandeau__pause { bottom: 0.5rem; width: 2.25rem; height: 2.25rem; }
}

@keyframes systel-bandeau {
	to { transform: translateX(-50%); }
}

/* Mouvement réduit : immobile, et le bouton n'a plus d'objet. */
@media (prefers-reduced-motion: reduce) {
	.systel-bandeau__piste { animation: none; }
	.systel-bandeau__pause { display: none; }
}
