/* Fond de page au scroll — voir inc/assets/js/page-bg-scroll.js.
   Pour qu'un élément d'une section réglée garde sa couleur de texte, lui ajouter la classe CSS « hk-pbg-keep ». */

body.hk-pbg-ready {
	transition: background-color var(--hk-pbg-cur-dur, .5s) ease;
}

body.hk-pbg-bg-active {
	background-color: var(--hk-pbg-cur-bg) !important;
}

/* Les sections réglées laissent voir le fond commun de la page */
body.hk-pbg-ready .hk-pbg-on,
body.hk-pbg-ready .hk-pbg-on::before {
	background-color: transparent !important;
	background-image: none !important;
}

body.hk-pbg-ready :is(h1, h2, h3, h4, h5, h6, p, span, a, li, i, .elementor-heading-title, .elementor-icon) {
	transition: color var(--hk-pbg-cur-dur, .5s) ease;
}

body.hk-pbg-fg-active .hk-pbg-on,
body.hk-pbg-fg-active .hk-pbg-on :is(h1, h2, h3, h4, h5, h6, p, span, a, li, i, .elementor-heading-title, .elementor-icon):not(.elementor-button, .elementor-button *, .hk-pbg-keep, .hk-pbg-keep *) {
	color: var(--hk-pbg-cur-fg) !important;
}

body.hk-pbg-fg-active .hk-pbg-on .elementor-icon svg:not(.hk-pbg-keep *) {
	fill: var(--hk-pbg-cur-fg) !important;
}

/* Option « Toute la page » : tous les textes suivent (sauf le header adaptatif, qui garde ses propres réglages) */
body.hk-pbg-fg-page,
body.hk-pbg-fg-page :is(h1, h2, h3, h4, h5, h6, p, span, a, li, i, .elementor-heading-title, .elementor-icon):not(.elementor-button, .elementor-button *, .hk-pbg-keep, .hk-pbg-keep *, .hk-hdr-host *, .sub-menu *, .elementor-nav-menu--dropdown *) {
	color: var(--hk-pbg-cur-fg) !important;
}

body.hk-pbg-fg-page .elementor-icon svg:not(.hk-pbg-keep *, .hk-hdr-host *) {
	fill: var(--hk-pbg-cur-fg) !important;
}
