/**
 * 3DX RGAA – 13.8 Bouton pause / lecture des vidéos de fond (rond, 36 px)
 * Fichier : assets/css/troisdx-rgaa.css (chargé par includes/frontend.php)
 *
 * Couleurs : par défaut, les couleurs globales du kit Elementor du site
 *   --troisdx-rgaa-btn-bg    → var(--e-global-color-secondary)
 *   --troisdx-rgaa-btn-color → var(--e-global-color-primary)
 *
 * Les couleurs globales Elementor sont déclarées sur <body> (.elementor-kit-X),
 * pas sur :root. Elles sont donc lues directement dans la règle du bouton
 * (qui en hérite), avec une valeur de secours si le kit ne les définit pas.
 *
 * Personnaliser sur un site (CSS du thème), sans modifier le plugin :
 *   body { --troisdx-rgaa-btn-bg: #ECF442; --troisdx-rgaa-btn-color: #000; }
 * Vérifier un contraste d'au moins 3:1 avec le fond de la vidéo (critère 3.3).
 *
 * « body button. » : passe devant les styles globaux de boutons du kit Elementor
 * (.elementor-kit-X button).
 */
body button.a11y-video-toggle {
	position: absolute;
	right: var(--troisdx-rgaa-btn-right, 1rem);
	bottom: var(--troisdx-rgaa-btn-bottom, 1rem);
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	min-width: 0;
	margin: 0;
	padding: 0;
	color: var(--troisdx-rgaa-btn-color, var(--e-global-color-primary, #000));
	fill: currentColor;
	background: var(--troisdx-rgaa-btn-bg, var(--e-global-color-secondary, #ECF442));
	border: 2px solid var(--troisdx-rgaa-btn-border, var(--troisdx-rgaa-btn-color, var(--e-global-color-primary, #000)));
	border-radius: 50%;
	box-shadow: none;
	line-height: 1;
	cursor: pointer;
}

body button.a11y-video-toggle:hover,
body button.a11y-video-toggle:focus {
	color: var(--troisdx-rgaa-btn-color, var(--e-global-color-primary, #000));
	background: var(--troisdx-rgaa-btn-bg-hover, #fff);
	border-color: var(--troisdx-rgaa-btn-border, var(--troisdx-rgaa-btn-color, var(--e-global-color-primary, #000)));
}

body button.a11y-video-toggle:focus-visible {
	outline: 3px solid var(--troisdx-rgaa-btn-focus, #fff);
	outline-offset: 2px;
}

body button.a11y-video-toggle svg {
	flex: none;
	width: 16px;
	height: 16px;
}
