/* FOLIO Scroll 2027 — voir inc/elements/widget/hk-horizontal-scroll.php et inc/assets/js/hk-horizontal-scroll.js

   Le widget est une suite de cartes. Une carte « verticale » (case décochée) reste dans le défilement normal de la page
   (.hk-hs__vcard). Les cartes « horizontales » (case cochée) qui se suivent forment une bande (.hk-hs).
   Sans JavaScript, sur tablette/mobile et par défaut : tout est empilé en vertical.
   Quand le script active une bande (classe .is-active), la bande prend la hauteur « largeur de la rangée + une hauteur
   d'écran », son cadre reste collé en haut (sticky) et la rangée glisse vers la gauche selon le scroll. */

.hk-folio {
	--hk-hs-w: 45vw;
	--hk-hs-gap: 48px;
	--hk-hs-pad: 8vw;
	--hk-hs-ratio: 4 / 5;
	--hk-hs-top: 0px;
	--hk-hs-px: 80px;
	--hk-hs-bar: #111;
	--hk-hs-sw: 78vw;
	--hk-hs-scw: 100vw;
	--hk-hs-sh: calc(100svh - var(--hk-hs-top));
	position: relative;
	width: 100%;
}

.hk-hs {
	position: relative;
	width: 100%;
}

.hk-hs__editor-hint,
.hk-hs__flag {
	display: none;
}

.hk-hs__sticky {
	position: relative;
	padding: 48px var(--hk-hs-pad);
}

.hk-hs__track {
	display: flex;
	flex-direction: column;
	gap: var(--hk-hs-gap);
}

.hk-hs__intro,
.hk-hs__vintro {
	max-width: 36rem;
}

.hk-hs__vintro {
	padding: 48px var(--hk-hs-pad) 0;
}

.hk-hs__intro-title {
	margin: 0 0 .5em;
}

.hk-hs__intro-text {
	margin: 0;
}

.hk-hs__card {
	display: flex;
	flex-direction: column;
	gap: 20px;
	width: 100%;
}

/* carte verticale : image et texte côte à côte sur écran large, empilés sinon */
.hk-hs__vcard {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 24px;
	align-items: center;
	padding: 48px var(--hk-hs-pad);
}

@media (min-width: 768px) {
	.hk-folio--v-left .hk-hs__vcard,
	.hk-folio--v-right .hk-hs__vcard,
	.hk-folio--v-alt .hk-hs__vcard {
		grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
		gap: 64px;
	}

	.hk-folio--v-right .hk-hs__vcard .hk-hs__media,
	.hk-folio--v-alt .hk-hs__vcard--rev .hk-hs__media {
		order: 2;
	}

	.hk-hs__vcard .hk-hs__media {
		max-height: 80vh;
		max-height: 80svh;
	}
}

.hk-hs__media {
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: var(--hk-hs-ratio);
	background: var(--hk-hs-fbg, transparent);
}

/* cadre réglable carte par carte (cartes classiques, pas les scènes) */
.hk-hs__card:not(.hk-hs--scene) .hk-hs__media,
.hk-hs__vcard:not(.hk-hs--scene) .hk-hs__media {
	width: var(--hk-hs-fw, 100%);
}

/* l'image dans son cadre : ajustement (remplir ou entière), taille en % du cadre, point de l'image gardé visible.
   Sélecteur renforcé (.hk-folio) : la feuille d'Elementor « .elementor img { height: auto; max-width: 100% } » gagnait
   sinon, et l'image gardait sa hauteur naturelle au lieu de remplir son cadre (pleine hauteur, parallaxe). */
.hk-folio .hk-hs__img {
	display: block;
	flex: none;
	width: var(--hk-hs-isz, 100%);
	height: var(--hk-hs-isz, 100%);
	max-width: none;
	max-height: none;
	object-fit: var(--hk-hs-fit, cover);
	object-position: var(--hk-hs-ifocus, 50% 50%);
	user-select: none;
	-webkit-user-drag: none;
}

.hk-hs__title {
	margin: 0 0 .4em;
}

.hk-hs__t1,
.hk-hs__t2 {
	display: block;
	/* 253 : position X / Y propre à chaque titre (se cumule avec la parallaxe, qui utilise transform) */
	translate: var(--hk-tx, 0) var(--hk-ty, 0);
}

.hk-hs__t2 {
	margin-left: 1.5em;
}

.hk-hs__text {
	margin: 0 0 1em;
}

/* largeur du texte de la carte : variables posées par les réglages Elementor (général ou par carte) ; sans réglage, rien ne change */
.hk-folio .hk-hs__text {
	box-sizing: border-box;
	max-width: var(--hk-hs-tw, none);
	margin-left: var(--hk-hs-tml, 0) !important;
	margin-right: var(--hk-hs-tmr, 0) !important;
	position: relative;
	top: calc(var(--hk-hs-tmt, 0px) - var(--hk-hs-tmb, 0px)); /* 231 : marges en haut / en bas = déplacement vertical, sans toucher à la mise en page */
	padding: var(--hk-hs-tpad, 0);
	border-radius: var(--hk-hs-trad, 0);
	background: var(--hk-hs-tbg, transparent);
}

.hk-folio .hk-hs__link {
	margin-left: var(--hk-hs-tml, 0);
}

.hk-hs__link {
	display: inline-flex;
	gap: .5em;
	align-items: center;
	color: inherit;
	text-decoration: none;
	border-bottom: 1px solid currentColor;
	padding-bottom: 2px;
}

.hk-hs__bar {
	display: none;
}

/* ───────── bande active (écran large, hors éditeur) ───────── */
/* Secours (thème qui empêche « sticky » de coller) : le cadre est tenu par le script, voir HS.prototype.pin */
.hk-hs.is-active.is-pinjs .hk-hs__sticky {
	position: relative !important;
	top: auto !important;
	will-change: transform;
}

/* Bande pleine largeur dans une section en largeur boîte : le cadre déborde de la section (largeur posée par le script) */
.hk-hs.is-active.is-bleed .hk-hs__sticky {
	max-width: none;
}

.hk-hs.is-active .hk-hs__sticky {
	position: sticky;
	top: var(--hk-hs-top);
	height: calc(100vh - var(--hk-hs-top));
	height: calc(100svh - var(--hk-hs-top));
	padding: 0;
	overflow: hidden;
	display: flex;
	align-items: center;
}

.hk-hs.is-active .hk-hs__track {
	flex-direction: row;
	align-items: flex-start;
	flex: none;
	gap: var(--hk-hs-gap);
	padding: 0 var(--hk-hs-pad);
	width: max-content;
	will-change: transform;
}

.hk-hs.is-active .hk-hs__intro {
	align-self: center;
	flex: none;
	width: min(36rem, 40vw);
}

.hk-hs.is-active .hk-hs__card {
	flex: none;
	width: max(var(--hk-hs-cw, var(--hk-hs-w, 45vw)), 25vw);
	max-height: calc(100vh - var(--hk-hs-top) - 4rem);
	max-height: calc(100svh - var(--hk-hs-top) - 4rem);
}

.hk-hs.is-active .hk-hs__media {
	flex: none;
	max-height: calc(100svh - var(--hk-hs-top) - 14rem);
}

/* l'image est un peu plus large que son cadre (de la valeur de la parallaxe) pour pouvoir glisser sans montrer de vide */
.hk-hs.is-active .hk-hs__card:not(.is-pi-y) .hk-hs__img {
	width: calc(var(--hk-hs-isz, 100%) + var(--hk-hs-px));
	will-change: transform;
}

/* parallaxe de l'image forcée en verticale dans une bande : elle dépasse en hauteur */
.hk-hs.is-active .hk-hs__card.is-pi-y .hk-hs__img {
	height: calc(var(--hk-hs-isz, 100%) + var(--hk-hs-px));
	will-change: transform;
}

.hk-hs.is-active .hk-hs__bar {
	display: block;
	position: absolute;
	left: var(--hk-hs-pad);
	right: var(--hk-hs-pad);
	bottom: 28px;
	height: 2px;
	background: color-mix(in srgb, var(--hk-hs-bar) 18%, transparent);
	pointer-events: none;
}

.hk-hs.is-active .hk-hs__bar i {
	display: block;
	height: 100%;
	background: var(--hk-hs-bar);
	transform-origin: 0 50%;
	transform: scaleX(var(--hk-hs-p, 0));
}

/* carte verticale avec parallaxe : l'image dépasse de son cadre en hauteur et glisse dedans */
.hk-hs__vcard.is-par:not(.is-pi-x) .hk-hs__img {
	height: calc(var(--hk-hs-isz, 100%) + var(--hk-hs-px));
	will-change: transform;
}

/* parallaxe de l'image forcée en horizontale dans une carte verticale : elle dépasse en largeur */
.hk-hs__vcard.is-par.is-pi-x .hk-hs__img {
	width: calc(var(--hk-hs-isz, 100%) + var(--hk-hs-px));
	will-change: transform;
}

.hk-hs__vcard.is-par .hk-hs__body,
.hk-hs.is-active .hk-hs__body,
.hk-hs.is-active .hk-hs__media,
.hk-hs.is-active .hk-hs__t1,
.hk-hs.is-active .hk-hs__t2 {
	will-change: transform;
}

/* ───────── scène : image, titre et texte placés librement dans la carte ─────────
   Par défaut (mobile, bande non active) les trois calques sont simplement empilés. Ils ne se placent et ne se
   chevauchent que dans une bande active, sur une carte verticale sur écran large, et dans l'éditeur sans aperçu animé. */
.hk-hs--scene .hk-hs__title {
	font-size: clamp(2.2rem, 6vw, 7.5rem);
	font-weight: 300;
	line-height: .95;
	text-transform: uppercase;
}

.hk-hs--scene .hk-hs__text {
	margin: 0 0 1em;
	font-size: .95rem;
	text-transform: uppercase;
	letter-spacing: .04em;
}

.hk-hs--scene {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.hk-hs__layer {
	position: relative;
}

/* 230 : le titre et le texte d'une scène restent dans la scène. Leur point d'ancrage (gauche, milieu, droite)
   plus le décalage en % est ramené entre 0 et 100 % : « Milieu droite » avec un décalage positif colle le calque
   au bord droit au lieu de le pousser hors de la carte. L'image, elle, peut toujours déborder volontairement. */
.hk-folio .hk-hs__layer--title,
.hk-folio .hk-hs__layer--text {
	--hk-lmin: 0%;
	--hk-lmax: 100%;
}

/* 228 : « Largeur maximale du texte » (+ marges) peut élargir le bloc texte d'une scène au-delà de sa largeur de
   mise en page (26 % de la scène pour A à D, « Texte : largeur » en personnalisée), sans dépasser la scène. */
.hk-folio .hk-hs__layer--text {
	--hk-hs-lw: min(100%, max(var(--w, 26%), calc(var(--hk-hs-tw, 0px) + var(--hk-hs-tml, 0px) + var(--hk-hs-tmr, 0px))));
}

.hk-hs__layer--title {
	width: max-content;
	max-width: var(--w, 100%);
}

@media (min-width: 768px) {
	.hk-hs__vcard.hk-hs--scene {
		position: relative;
		display: block;
		height: max(var(--hk-hs-sh), 40svh);
		padding: 0;
		overflow: hidden;
	}

	.hk-hs__vcard.hk-hs--scene .hk-hs__layer {
		position: absolute;
		left: clamp(var(--hk-lmin, -1000%), calc(var(--ax) * 100% + var(--ox) * 1%), var(--hk-lmax, 1000%));
		top: clamp(var(--hk-lmin, -1000%), calc(var(--ay) * 100% + var(--oy) * 1%), var(--hk-lmax, 1000%));
		translate: calc(var(--ax) * -100%) calc(var(--ay) * -100%);
		z-index: var(--z, 1);
	}

	.hk-hs__vcard.hk-hs--scene .hk-hs__layer--img,
	.hk-hs__vcard.hk-hs--scene .hk-hs__layer--text {
		width: var(--hk-hs-lw, var(--w));
	}

	.hk-hs__vcard.hk-hs--scene .hk-hs__layer--img.is-full {
		height: 100%;
	}

	.hk-hs__vcard.hk-hs--scene .hk-hs__layer--img.is-full .hk-hs__media {
		height: 100%;
		max-height: none;
		aspect-ratio: auto;
	}

	.hk-hs__vcard.hk-hs--scene .hk-hs__media {
		max-height: none;
	}

	.hk-hs__vcard.hk-hs--scene .hk-hs__title {
		margin: 0;
	}

	.hk-hs__vcard.hk-hs--scene .hk-hs__text {
		margin: 0;
	}

	.hk-hs__vcard.hk-hs--scene .hk-hs__link {
		margin-top: 1em;
	}

	.hk-hs__vcard.hk-hs--scene > .hk-hs__flag {
		position: absolute;
		top: 8px;
		left: 8px;
		z-index: 20;
		margin: 0;
	}
}

/* Bande arrêtée (« Défilement horizontal » sur Non, écran étroit, repli) : ses cartes s'affichent comme les cartes
   verticales, pleine largeur, au lieu d'une colonne rétrécie. */
.hk-hs:not(.is-active):not(.is-swipe) .hk-hs__sticky {
	padding-left: 0;
	padding-right: 0;
}

.hk-hs:not(.is-active):not(.is-swipe) .hk-hs__card.hk-hs--scene {
	width: 100%;
	max-width: 100%;
}

@media (min-width: 768px) {
	body:not(.elementor-editor-active) .hk-hs:not(.is-active):not(.is-swipe) .hk-hs__card.hk-hs--scene,
	body.hk-live .hk-hs:not(.is-active):not(.is-swipe) .hk-hs__card.hk-hs--scene {
		position: relative;
		display: block;
		height: max(var(--hk-hs-sh), 40svh);
		padding: 0;
		overflow: hidden;
	}

	body:not(.elementor-editor-active) .hk-hs:not(.is-active):not(.is-swipe) .hk-hs__card.hk-hs--scene .hk-hs__layer,
	body.hk-live .hk-hs:not(.is-active):not(.is-swipe) .hk-hs__card.hk-hs--scene .hk-hs__layer {
		position: absolute;
		left: clamp(var(--hk-lmin, -1000%), calc(var(--ax) * 100% + var(--ox) * 1%), var(--hk-lmax, 1000%));
		top: clamp(var(--hk-lmin, -1000%), calc(var(--ay) * 100% + var(--oy) * 1%), var(--hk-lmax, 1000%));
		translate: calc(var(--ax) * -100%) calc(var(--ay) * -100%);
		z-index: var(--z, 1);
	}

	body:not(.elementor-editor-active) .hk-hs:not(.is-active):not(.is-swipe) .hk-hs__card.hk-hs--scene .hk-hs__layer--img,
	body.hk-live .hk-hs:not(.is-active):not(.is-swipe) .hk-hs__card.hk-hs--scene .hk-hs__layer--img,
	body:not(.elementor-editor-active) .hk-hs:not(.is-active):not(.is-swipe) .hk-hs__card.hk-hs--scene .hk-hs__layer--text,
	body.hk-live .hk-hs:not(.is-active):not(.is-swipe) .hk-hs__card.hk-hs--scene .hk-hs__layer--text {
		width: var(--hk-hs-lw, var(--w));
	}

	body:not(.elementor-editor-active) .hk-hs:not(.is-active):not(.is-swipe) .hk-hs__card.hk-hs--scene .hk-hs__layer--img.is-full,
	body.hk-live .hk-hs:not(.is-active):not(.is-swipe) .hk-hs__card.hk-hs--scene .hk-hs__layer--img.is-full {
		height: 100%;
	}

	body:not(.elementor-editor-active) .hk-hs:not(.is-active):not(.is-swipe) .hk-hs__card.hk-hs--scene .hk-hs__layer--img.is-full .hk-hs__media,
	body.hk-live .hk-hs:not(.is-active):not(.is-swipe) .hk-hs__card.hk-hs--scene .hk-hs__layer--img.is-full .hk-hs__media {
		height: 100%;
		max-height: none;
		aspect-ratio: auto;
	}

	body:not(.elementor-editor-active) .hk-hs:not(.is-active):not(.is-swipe) .hk-hs__card.hk-hs--scene .hk-hs__media,
	body.hk-live .hk-hs:not(.is-active):not(.is-swipe) .hk-hs__card.hk-hs--scene .hk-hs__media {
		max-height: none;
	}

	body:not(.elementor-editor-active) .hk-hs:not(.is-active):not(.is-swipe) .hk-hs__card.hk-hs--scene .hk-hs__title,
	body.hk-live .hk-hs:not(.is-active):not(.is-swipe) .hk-hs__card.hk-hs--scene .hk-hs__title {
		margin: 0;
	}

	body:not(.elementor-editor-active) .hk-hs:not(.is-active):not(.is-swipe) .hk-hs__card.hk-hs--scene .hk-hs__text,
	body.hk-live .hk-hs:not(.is-active):not(.is-swipe) .hk-hs__card.hk-hs--scene .hk-hs__text {
		margin: 0;
	}

	body:not(.elementor-editor-active) .hk-hs:not(.is-active):not(.is-swipe) .hk-hs__card.hk-hs--scene .hk-hs__link,
	body.hk-live .hk-hs:not(.is-active):not(.is-swipe) .hk-hs__card.hk-hs--scene .hk-hs__link {
		margin-top: 1em;
	}

	body:not(.elementor-editor-active) .hk-hs:not(.is-active):not(.is-swipe) .hk-hs__card.hk-hs--scene > .hk-hs__flag,
	body.hk-live .hk-hs:not(.is-active):not(.is-swipe) .hk-hs__card.hk-hs--scene > .hk-hs__flag {
		position: absolute;
		top: 8px;
		left: 8px;
		z-index: 20;
		margin: 0;
	}
}

.hk-hs.is-active .hk-hs__card.hk-hs--scene,
body.elementor-editor-active:not(.hk-live) .hk-folio .hk-hs__card.hk-hs--scene {
	position: relative;
	display: block;
	width: max(var(--hk-hs-cw, var(--hk-hs-scw, 100vw)), 40vw); /* 0 ou vide dans le réglage : jamais de carte sans largeur */
	height: max(var(--hk-hs-sh), 40svh);
	max-height: none;
	align-self: center;
	overflow: hidden;
}

.hk-hs.is-active .hk-hs__card.hk-hs--scene .hk-hs__layer,
body.elementor-editor-active:not(.hk-live) .hk-folio .hk-hs__card.hk-hs--scene .hk-hs__layer {
	position: absolute;
	left: clamp(var(--hk-lmin, -1000%), calc(var(--ax) * 100% + var(--ox) * 1%), var(--hk-lmax, 1000%));
	top: clamp(var(--hk-lmin, -1000%), calc(var(--ay) * 100% + var(--oy) * 1%), var(--hk-lmax, 1000%));
	translate: calc(var(--ax) * -100%) calc(var(--ay) * -100%);
	z-index: var(--z, 1);
}

.hk-hs.is-active .hk-hs__card.hk-hs--scene .hk-hs__layer--img,
.hk-hs.is-active .hk-hs__card.hk-hs--scene .hk-hs__layer--text,
body.elementor-editor-active:not(.hk-live) .hk-folio .hk-hs__card.hk-hs--scene .hk-hs__layer--img,
body.elementor-editor-active:not(.hk-live) .hk-folio .hk-hs__card.hk-hs--scene .hk-hs__layer--text {
	width: var(--hk-hs-lw, var(--w));
}

.hk-hs.is-active .hk-hs__card.hk-hs--scene .hk-hs__layer--img.is-full,
body.elementor-editor-active:not(.hk-live) .hk-folio .hk-hs__card.hk-hs--scene .hk-hs__layer--img.is-full {
	height: 100%;
}

.hk-hs.is-active .hk-hs__card.hk-hs--scene .hk-hs__layer--img.is-full .hk-hs__media,
body.elementor-editor-active:not(.hk-live) .hk-folio .hk-hs__card.hk-hs--scene .hk-hs__layer--img.is-full .hk-hs__media {
	height: 100%;
	max-height: none;
	aspect-ratio: auto;
}

.hk-hs.is-active .hk-hs__card.hk-hs--scene .hk-hs__media,
body.elementor-editor-active:not(.hk-live) .hk-folio .hk-hs__card.hk-hs--scene .hk-hs__media {
	max-height: none;
}

.hk-hs.is-active .hk-hs__card.hk-hs--scene .hk-hs__title,
body.elementor-editor-active:not(.hk-live) .hk-folio .hk-hs__card.hk-hs--scene .hk-hs__title {
	margin: 0;
}

.hk-hs.is-active .hk-hs__card.hk-hs--scene .hk-hs__text,
body.elementor-editor-active:not(.hk-live) .hk-folio .hk-hs__card.hk-hs--scene .hk-hs__text {
	margin: 0;
}

.hk-hs.is-active .hk-hs__card.hk-hs--scene .hk-hs__link,
body.elementor-editor-active:not(.hk-live) .hk-folio .hk-hs__card.hk-hs--scene .hk-hs__link {
	margin-top: 1em;
}

.hk-hs.is-active .hk-hs__card.hk-hs--scene > .hk-hs__flag,
body.elementor-editor-active:not(.hk-live) .hk-folio .hk-hs__card.hk-hs--scene > .hk-hs__flag {
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 20;
	margin: 0;
}

/* dans une bande de scènes, les scènes se touchent (comme la démo) : l'espace entre elles vient du fond de chaque carte */
.hk-hs.is-active.hk-hs--scenes .hk-hs__track {
	padding: 0;
	gap: 0;
}

.hk-hs.is-active.hk-hs--scenes .hk-hs__bar {
	z-index: 30;
}

/* ───────── balayage au doigt (option, sous la largeur choisie) ───────── */
.hk-hs.is-swipe .hk-hs__sticky {
	overflow-x: auto;
	padding: 24px 0;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
}

.hk-hs.is-swipe .hk-hs__track {
	flex-direction: row;
	align-items: flex-start;
	width: max-content;
	padding: 0 var(--hk-hs-pad);
	gap: 20px;
}

.hk-hs.is-swipe .hk-hs__intro {
	flex: none;
	width: var(--hk-hs-sw);
}

.hk-hs.is-swipe .hk-hs__card {
	flex: none;
	width: var(--hk-hs-sw);
	scroll-snap-align: center;
}

/* ───────── apparition (activée par le script seulement : sans JavaScript tout reste visible) ───────── */
.hk-folio.is-fx .hk-hs__media,
.hk-folio.is-fx .hk-hs__layer--title .hk-hs__title,
.hk-folio.is-fx .hk-hs__body > * {
	opacity: 0;
	translate: 0 28px;
	transition: opacity .9s cubic-bezier(.25, .74, .22, .99), translate .9s cubic-bezier(.25, .74, .22, .99);
}

.hk-folio.is-fx .is-in .hk-hs__media,
.hk-folio.is-fx .is-in .hk-hs__layer--title .hk-hs__title,
.hk-folio.is-fx .is-in .hk-hs__body > * {
	opacity: 1;
	translate: 0 0;
}

.hk-folio.is-fx .is-in .hk-hs__layer--title .hk-hs__title { transition-delay: .12s; }
.hk-folio.is-fx .is-in .hk-hs__body > :nth-child(1) { transition-delay: .12s; }
.hk-folio.is-fx .is-in .hk-hs__body > :nth-child(2) { transition-delay: .22s; }
.hk-folio.is-fx .is-in .hk-hs__body > :nth-child(3) { transition-delay: .32s; }

/* ───────── éditeur Elementor : cartes côte à côte, zone défilable, pas de sticky ─────────
   (sauf si le bouton global « Aperçu animé » est activé : la page se comporte alors comme sur le site) */
.elementor-editor-active .hk-hs__editor-hint {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 0 0 8px;
	padding: 10px 14px;
	border: 1px dashed #93003c;
	border-radius: 4px;
	background: rgba(147, 0, 60, .06);
	color: #333;
	font: 12px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body:not(.hk-live) .hk-hs__hint-on,
body.hk-live .hk-hs__hint-off {
	display: none;
}

/* bouton global « Aperçu animé » (éditeur seulement, posé par le script) */
.hk-live-toggle {
	position: fixed;
	left: 14px;
	bottom: 14px;
	z-index: 2147483000;
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin: 0;
	padding: 9px 14px 9px 10px;
	border: 0;
	border-radius: 99px;
	background: #111;
	color: #fff;
	font: 600 12px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	letter-spacing: 0;
	text-transform: none;
	box-shadow: 0 4px 16px rgba(0, 0, 0, .3);
	cursor: pointer;
}

.hk-live-toggle__sw {
	position: relative;
	flex: none;
	width: 30px;
	height: 16px;
	border-radius: 99px;
	background: #666;
	transition: background .2s;
}

.hk-live-toggle__sw::after {
	content: "";
	position: absolute;
	top: 2px;
	left: 2px;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #fff;
	transition: transform .2s;
}

.hk-live-toggle[aria-pressed="true"] .hk-live-toggle__sw {
	background: #93003c;
}

.hk-live-toggle[aria-pressed="true"] .hk-live-toggle__sw::after {
	transform: translateX(14px);
}

.hk-live-toggle:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

/* repère de chaque carte (éditeur seulement) */
.elementor-editor-active .hk-hs__flag {
	display: inline-block;
	align-self: flex-start;
	margin: 0 0 8px;
	padding: 3px 9px;
	border-radius: 99px;
	background: #111;
	color: #fff;
	font: 600 11px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	pointer-events: none;
}

.elementor-editor-active .hk-hs__card .hk-hs__flag {
	background: #93003c;
}

.elementor-editor-active .hk-hs__vcard .hk-hs__flag {
	grid-column: 1 / -1;
	justify-self: start;
	margin: 0 0 -32px;
	order: -1;
}

.elementor-editor-active .hk-hs.is-active .hk-hs__card {
	position: relative;
}

.elementor-editor-active .hk-hs.is-active .hk-hs__flag {
	position: absolute;
	top: -28px;
	left: 0;
	margin: 0;
}

body.elementor-editor-active:not(.hk-live) .hk-folio .hk-hs__sticky {
	overflow-x: auto;
	padding: 24px var(--hk-hs-pad);
}

body.elementor-editor-active:not(.hk-live) .hk-folio .hk-hs__track {
	flex-direction: row;
	align-items: flex-start;
	width: max-content;
}

body.elementor-editor-active:not(.hk-live) .hk-folio .hk-hs__intro {
	flex: none;
	width: min(32rem, 40vw);
}

body.elementor-editor-active:not(.hk-live) .hk-folio .hk-hs__card {
	flex: none;
	width: max(var(--hk-hs-cw, var(--hk-hs-w, 45vw)), 25vw);
}

@media (prefers-reduced-motion: reduce) {
	.hk-hs.is-active .hk-hs__track,
	.hk-hs.is-active .hk-hs__img,
	.hk-hs.is-active .hk-hs__body,
	.hk-hs__vcard.is-par .hk-hs__img,
	.hk-hs__vcard.is-par .hk-hs__body {
		will-change: auto;
	}
}

/* ───────── flèche « retour en haut » (comme grigoriak.doctor) ─────────
   Placée en fin de page par le script (une seule par page). Cachée quand on descend, visible dès qu'on remonte. */
.hk-hs-up {
	position: fixed;
	top: calc(var(--hk-up-t, 34px) + var(--wp-admin--admin-bar--height, 0px));
	right: var(--hk-up-r, 40px);
	z-index: 2147483000;
	display: block;
	padding: 14px 4px;
	line-height: 0;
	color: var(--hk-up-c, #fff);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(-10px);
	transition: opacity .45s cubic-bezier(.25, .74, .22, .99), transform .45s cubic-bezier(.25, .74, .22, .99), visibility 0s linear .45s;
	-webkit-tap-highlight-color: transparent;
}

.hk-hs-up--blend {
	mix-blend-mode: difference;
}

.hk-hs-up.is-shown {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: none;
	transition-delay: 0s;
}

.hk-hs-up svg {
	display: block;
	width: 46px;
	height: 9px;
	overflow: visible;
	transition: transform .4s cubic-bezier(.25, .74, .22, .99);
}

.hk-hs-up:hover svg,
.hk-hs-up:focus-visible svg {
	transform: translateY(-3px);
}

.hk-hs-up:focus-visible {
	outline: 1px solid currentColor;
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.hk-hs-up,
	.hk-hs-up svg {
		transition: none;
	}
}

/* 251 : bouton « Masquer le texte / Afficher l'aide » du bandeau de l'éditeur (mémorisé pour tous les widgets FOLIO) */
.elementor-editor-active .hk-hs__editor-hint { position: relative; padding-right: 150px; }
.hk-hs__hint-btn {
	position: absolute; top: 8px; right: 10px;
	padding: 3px 10px; border: 1px solid #93003c; border-radius: 99px;
	background: #fff; color: #93003c; font: 600 11px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	cursor: pointer;
}
.hk-hs__hint-btn:hover { background: #93003c; color: #fff; }
.hk-hs__hint-show,
body.hk-hint-hidden .hk-hs__hint-hide { display: none; }
body.hk-hint-hidden .hk-hs__hint-show { display: inline; }
body.hk-hint-hidden .hk-hs__hint-on,
body.hk-hint-hidden .hk-hs__hint-off { display: none !important; }
/* aide masquée : tout le bandeau disparaît (titre « FOLIO Scroll 2027 » compris) ; on réaffiche l'aide avec le bouton du panneau (Contenu > Introduction, Style) */
body.hk-hint-hidden .hk-hs__editor-hint { display: none !important; }

/* Hk-camillos 1.1 : bascule d'aide plus lisible (plein quand l'aide est masquée) */
.hk-hs__hint-btn[aria-pressed="true"] { background: #93003c; color: #fff; }
