/* ==========================================================================
   HK Portfolio : grille irrégulière, en-têtes de projet, fiche, projet suivant,
   curseur, rideau de transition, préchargeur.
   Les polices et couleurs de texte héritent du thème / des réglages Elementor.
   ========================================================================== */

:root {
	--hk-accent: #111;
	--hk-container: min(1320px, 90vw);
	--hk-gap: clamp(1.5rem, 5vw, 6rem);
	--hk-row-gap: clamp(3rem, 8vw, 9rem);
	--hk-offset: clamp(4rem, 22vh, 16rem);
	--hk-ease: cubic-bezier(.19, 1, .22, 1);
	--hk-letter-color: currentColor;
	--hk-letter-opacity: .05;
}

.hk-theme-light { color: #fff; }
.hk-theme-dark { color: #111; }

.hk-img-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, rgba(127, 127, 127, .25), rgba(127, 127, 127, .08));
}

/* --------------------------------------------------------------------------
   Grille irrégulière
   Disposition « rhye » : une ligne par projet, image de largeur variable (n/12)
   alternée à gauche et à droite, titre de l'autre côté, lettre géante derrière.
   Dispositions « 1 » et « 2 » : variante décalée sur deux colonnes.
   -------------------------------------------------------------------------- */

.hk-grid { position: relative; overflow-x: clip; }
/* Le débord des lettres géantes ne doit jamais créer de défilement horizontal. */
.hk-single, .hk-hero, .hk-next { overflow-x: clip; }

.hk-grid__heading {
	margin: 0 0 1.5rem;
	font-size: clamp(2.5rem, 7vw, 6rem);
	line-height: 1;
}

.hk-filters {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem 2.5rem;
	margin: 0 0 clamp(3rem, 8vw, 10rem);
}
.hk-filters__btn {
	position: relative;
	padding: .5rem 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	opacity: .35;
	cursor: pointer;
	transition: opacity .3s;
}
.hk-filters__btn::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: right;
	transition: transform .6s var(--hk-ease);
}
.hk-filters__btn:hover,
.hk-filters__btn:focus-visible,
.hk-filters__btn.is-active { opacity: 1; }
.hk-filters__btn.is-active::after { transform: scaleX(1); transform-origin: left; }
.hk-filters__btn:focus-visible { outline: 1px dashed currentColor; outline-offset: 4px; }

.hk-grid__item { min-width: 0; }
.hk-grid__item.is-hidden { display: none; }

.hk-grid__link {
	display: block;
	color: inherit;
	text-decoration: none;
}
.hk-grid__link:focus-visible { outline: 1px dashed currentColor; outline-offset: 8px; }

.hk-grid__media { position: relative; z-index: 0; }

/* Image : zoom « Rhye » (le cadre se resserre, l'image grossit). */
.hk-grid__img {
	position: relative;
	z-index: 1;
	overflow: hidden;
	background: rgba(127, 127, 127, .1);
	transition: transform .6s var(--hk-ease);
}
.hk-grid__zoom { height: 100%; transition: transform .6s var(--hk-ease); }
.hk-grid__img img,
.hk-grid__img .hk-img-placeholder {
	display: block;
	width: 100%;
	height: auto;
}
.hk-grid__img .hk-img-placeholder { aspect-ratio: 4 / 3; }
.hk-grid__link:hover .hk-grid__img { transform: scale(.94); }
.hk-grid__link:hover .hk-grid__zoom { transform: scale(1.12); }

/* Lettre géante */
.hk-grid__letter-wrap {
	position: absolute;
	z-index: -1;
	bottom: 0;
	left: 0;
	transform: translate(-50%, 50%);
	pointer-events: none;
	user-select: none;
}
.hk-grid__letter {
	display: inline-block;
	font-size: clamp(67px, calc(67px + 333 * (100vw - 320px) / 1600), 400px);
	line-height: 1;
	white-space: nowrap;
	color: var(--hk-letter-color);
	opacity: var(--hk-letter-opacity, .05);
}

.hk-grid__title {
	margin: 0;
	font-size: clamp(1.9rem, calc(31px + 30 * (100vw - 320px) / 1600), 3.8rem);
	font-weight: 400;
	line-height: 1.13;
}

.hk-grid__cat,
.hk-grid__more {
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: 2px;
	line-height: 1;
	text-transform: uppercase;
}
.hk-grid__cat { opacity: .55; }

/* Catégorie qui laisse place à « Voir le projet » au survol */
.hk-swap {
	position: relative;
	display: inline-block;
	margin-top: 1.25rem;
	white-space: nowrap;
}
.hk-swap__normal { display: inline-block; transition: transform .5s var(--hk-ease), opacity .3s; }
.hk-swap__hover {
	position: absolute;
	top: 0;
	left: 0;
	display: inline-flex;
	align-items: center;
	opacity: 0;
	transition: opacity .3s;
}
.hk-swap__line {
	display: inline-block;
	width: 60px;
	height: 1px;
	margin-right: 1em;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .5s var(--hk-ease);
}
.hk-grid__link:hover .hk-swap--on .hk-swap__normal { opacity: 0; transform: translateX(30%); }
.hk-grid__link:hover .hk-swap--on .hk-swap__hover { opacity: 1; }
.hk-grid__link:hover .hk-swap--on .hk-swap__line { transform: scaleX(1); }
.hk-grid__more--plain { display: inline-block; margin-top: 1.25rem; }

/* ---- Disposition « rhye » ---- */
.hk-grid--layout-rhye .hk-grid__items {
	display: flex;
	flex-direction: column;
	gap: var(--hk-row-gap, clamp(4rem, 8vw, 10rem));
}
.hk-grid--layout-rhye { padding-bottom: clamp(2rem, 10vw, 12rem); }
.hk-grid--layout-rhye .hk-grid__link {
	display: flex;
	align-items: center;
}
.hk-grid--layout-rhye .hk-grid__media { flex: 0 0 calc(var(--hk-col, 8) / 12 * 100%); max-width: calc(var(--hk-col, 8) / 12 * 100%); }
.hk-grid--layout-rhye .hk-grid__caption { flex: 1 1 auto; min-width: 0; padding: 0 clamp(1.5rem, 5vw, 6.25rem); transition: transform .3s ease; }
.hk-grid--layout-rhye .hk-img-right .hk-grid__link { flex-direction: row-reverse; }
.hk-grid--layout-rhye .hk-img-right .hk-grid__caption { text-align: right; }
.hk-grid--layout-rhye .hk-img-right .hk-swap__hover { left: auto; right: 0; }
.hk-grid--layout-rhye .hk-img-right .hk-swap__normal { transform-origin: right; }
.hk-grid--layout-rhye .hk-img-right .hk-grid__link:hover .hk-swap--on .hk-swap__normal { transform: translateX(-30%); }
/* Lettre du côté opposé au texte */
.hk-grid--layout-rhye .hk-img-left .hk-grid__letter-wrap { left: auto; right: 0; transform: translate(50%, 50%); }

/* ---- Dispositions décalées « 1 » et « 2 » ---- */
.hk-grid--layout-1 .hk-grid__items,
.hk-grid--layout-2 .hk-grid__items {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	column-gap: var(--hk-gap);
	row-gap: var(--hk-row-gap);
	align-items: start;
}
.hk-grid--layout-1 .hk-grid__caption,
.hk-grid--layout-2 .hk-grid__caption { margin-top: 1.4rem; }
.hk-grid--layout-1 .hk-pos-0 { grid-column: 1 / span 6; }
.hk-grid--layout-1 .hk-pos-1 { grid-column: 8 / span 5; margin-top: var(--hk-offset); }
.hk-grid--layout-1 .hk-pos-2 { grid-column: 2 / span 5; }
.hk-grid--layout-1 .hk-pos-3 { grid-column: 7 / span 6; margin-top: calc(var(--hk-offset) * .6); }
.hk-grid--layout-2 .hk-grid__items { grid-auto-flow: dense; }
.hk-grid--layout-2 .hk-pos-0 { grid-column: 7 / span 6; }
.hk-grid--layout-2 .hk-pos-1 { grid-column: 1 / span 5; margin-top: var(--hk-offset); }
.hk-grid--layout-2 .hk-pos-2 { grid-column: 8 / span 5; }
.hk-grid--layout-2 .hk-pos-3 { grid-column: 1 / span 6; margin-top: calc(var(--hk-offset) * .6); }

@media (max-width: 1024px) {
	:root { --hk-offset: clamp(3rem, 12vh, 8rem); }
	.hk-grid--layout-1 .hk-grid__item,
	.hk-grid--layout-2 .hk-grid__item { grid-column: span 6 !important; }
}
@media (max-width: 767px) {
	.hk-grid--layout-rhye .hk-grid__link,
	.hk-grid--layout-rhye .hk-img-right .hk-grid__link { display: block; }
	.hk-grid--layout-rhye .hk-grid__media { max-width: none; }
	.hk-grid--layout-rhye .hk-grid__caption,
	.hk-grid--layout-rhye .hk-img-right .hk-grid__caption { padding: 1.25rem 0 0; text-align: left; }
	.hk-grid--layout-rhye .hk-img-right .hk-swap__hover { left: 0; right: auto; }
	.hk-grid__letter-wrap { display: none; }
	.hk-grid--layout-1 .hk-grid__item,
	.hk-grid--layout-2 .hk-grid__item { grid-column: 1 / -1 !important; margin-top: 0 !important; }
}

/* --------------------------------------------------------------------------
   En-tête de projet : 4 familles
   -------------------------------------------------------------------------- */

.hk-hero {
	position: relative;
	overflow: hidden;
	background-color: var(--hk-bg, transparent);
}

.hk-hero__cat {
	display: block;
	margin-bottom: 1.2rem;
	font-size: .8rem;
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
	opacity: .75;
	color: var(--hk-cat-color, inherit);
	text-align: var(--hk-cat-align, inherit);
	position: relative;
	left: var(--hk-cat-ox, 0);
	top: var(--hk-cat-oy, 0);
}

.hk-hero__title {
	margin: 0;
	font-size: var(--hk-hero-title-size, clamp(2.8rem, 8.5vw, 9rem));
	line-height: .95;
	letter-spacing: -.02em;
	color: var(--hk-title-color, inherit);
	text-align: var(--hk-title-align, inherit);
	position: relative;
	left: var(--hk-title-ox, 0);
	top: var(--hk-title-oy, 0);
}
/* Titre masqué à l'écran mais conservé dans la page (référencement, lecteurs d'écran). */
.hk-hero__title.hk-sr {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.hk-hero__subtitle {
	max-width: 36em;
	margin: 1.5rem 0 0;
	font-size: var(--hk-hero-subtitle-size, clamp(1rem, 1.3vw, 1.25rem));
	line-height: 1.5;
	opacity: .85;
	color: var(--hk-subtitle-color, inherit);
	text-align: var(--hk-subtitle-align, inherit);
	position: relative;
	left: var(--hk-subtitle-ox, 0);
	top: var(--hk-subtitle-oy, 0);
}

.hk-hero__media { position: relative; overflow: hidden; view-transition-name: hk-hero-media; }
.hk-hero__media-inner { position: absolute; inset: -14% 0; }
.hk-hero__media img,
.hk-hero__media video,
.hk-hero__media .hk-img-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: var(--hk-hero-fit, cover);
	object-position: var(--hk-hero-px, 50%) var(--hk-hero-py, 50%);
}
.hk-hero__media img,
.hk-hero__media video { transform: scale(var(--hk-hero-zoom, 1)); }
.hk-hero--static .hk-hero__media-inner { inset: 0; }
.hk-hero.hk-hero--align-left .hk-hero__text { text-align: left; }
.hk-hero.hk-hero--align-left .hk-hero__subtitle { margin-left: 0; margin-right: auto; }
.hk-hero.hk-hero--align-center .hk-hero__text { text-align: center; }
.hk-hero.hk-hero--align-center .hk-hero__subtitle { margin-inline: auto; }
.hk-hero.hk-hero--align-right .hk-hero__text { text-align: right; }
.hk-hero.hk-hero--align-right .hk-hero__subtitle { margin-left: auto; margin-right: 0; }

.hk-hero__scroll {
	position: absolute;
	z-index: 3;
	left: 50%;
	bottom: 2rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: .75rem;
	font-size: .7rem;
	font-weight: 600;
	letter-spacing: .2em;
	text-transform: uppercase;
	transform: translateX(-50%);
}
.hk-hero__scroll-line {
	position: relative;
	display: block;
	width: 1px;
	height: 3.5rem;
	overflow: hidden;
	background: currentColor;
	opacity: .35;
}
.hk-hero__scroll-line::after {
	content: "";
	position: absolute;
	inset: 0;
	background: currentColor;
	animation: hk-scroll-line 2.2s var(--hk-ease) infinite;
}
@keyframes hk-scroll-line {
	0% { transform: translateY(-100%); }
	60%, 100% { transform: translateY(100%); }
}

/* A. Plein écran */
.hk-hero--fullscreen {
	display: flex;
	min-height: 100vh;
	min-height: 100svh;
	color: #fff;
}
.hk-hero--fullscreen .hk-hero__media { position: absolute; inset: 0; z-index: 0; }
.hk-hero--fullscreen .hk-hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, .25) 0%, rgba(0, 0, 0, .1) 40%, rgba(0, 0, 0, .55) 100%);
}
.hk-hero--fullscreen .hk-hero__text {
	position: relative;
	z-index: 2;
	align-self: stretch;
	width: var(--hk-container);
	margin: 0 auto;
	padding: var(--hk-text-pt, 18vh) 0 var(--hk-text-pb, 14vh);
}
.hk-hero--fullscreen-center .hk-hero__text { text-align: center; }
.hk-hero--fullscreen-center .hk-hero__subtitle { margin-inline: auto; }
/* position verticale par défaut : plein écran à gauche = en bas, sinon au milieu */
:where(.hk-hero--fullscreen-left) { --hk-vt-before: 1; --hk-vt-after: 0; }

/* B. Demi-écran */
.hk-hero--halfscreen {
	display: grid;
	grid-template-columns: 1fr 1fr;
	min-height: 100vh;
	min-height: 100svh;
}
.hk-hero--halfscreen .hk-hero__text {
	align-self: stretch;
	padding: var(--hk-text-pt, 16vh) clamp(1.5rem, 6vw, 7rem) var(--hk-text-pb, 16vh);
}
/* Fiche dans l'en-tête : collée près du bas de l'image (20 px par défaut) */
.hk-hero--halfscreen.hk-hero--with-details .hk-hero__text { padding-bottom: var(--hk-text-pb, 1.25rem); }

/* Colonne de texte : titre (.hk-hero__main) placé en haut / milieu / bas, fiche (.hk-hero__foot) calée en bas */
.hk-hero--halfscreen .hk-hero__text,
.hk-hero--fullscreen .hk-hero__text { display: flex; flex-direction: column; }
.hk-hero--halfscreen .hk-hero__text::before,
.hk-hero--fullscreen .hk-hero__text::before { content: ""; flex: var(--hk-vt-before, 1) 1 0px; }
.hk-hero--halfscreen .hk-hero__foot,
.hk-hero--fullscreen .hk-hero__foot { flex: var(--hk-vt-after, 1) 1 0px; display: flex; flex-direction: column; justify-content: flex-end; }
@media (min-width: 768px) {
	.hk-hero--halfscreen-right { grid-template-columns: 1fr var(--hk-hero-imgw, 1fr); }
	.hk-hero--halfscreen-left { grid-template-columns: var(--hk-hero-imgw, 1fr) 1fr; }
}
.hk-hero--halfscreen .hk-hero__title { font-size: var(--hk-hero-title-size, clamp(2.5rem, 6vw, 6.5rem)); }
.hk-hero--halfscreen .hk-hero__media { min-height: 100%; }
.hk-hero--halfscreen-left .hk-hero__media { order: -1; }
.hk-hero--halfscreen .hk-hero__scroll { left: 25%; }
.hk-hero--halfscreen-left .hk-hero__scroll { left: 75%; }
/* Avec la fiche en bas du texte, « Défiler » passe côté image pour ne pas la gêner */
.hk-hero--halfscreen.hk-hero--with-details .hk-hero__scroll { left: 75%; color: #fff; text-shadow: 0 0 14px rgba(0, 0, 0, .4); }
.hk-hero--halfscreen-left.hk-hero--with-details .hk-hero__scroll { left: 25%; }

/* B + fiche projet dans l'en-tête */
.hk-hero__details { margin-top: clamp(2rem, 5vh, 3.5rem); }
.hk-hero__details .hk-details__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 2rem; }

/* C / D. Titre puis image */
.hk-hero--bottom { padding-top: clamp(8rem, 22vh, 14rem); }
.hk-hero--bottom .hk-hero__text {
	width: var(--hk-container);
	margin: 0 auto clamp(3rem, 8vh, 6rem);
	text-align: center;
}
.hk-hero--bottom .hk-hero__subtitle { margin-inline: auto; }
.hk-hero--bottom-container .hk-hero__media {
	width: var(--hk-container);
	margin: 0 auto;
	aspect-ratio: 16 / 9;
}
.hk-hero--bottom-narrow .hk-hero__media {
	width: min(600px, 90vw);
	margin: 0 auto;
	aspect-ratio: 4 / 5;
}
.hk-hero--bottom-fullwidth .hk-hero__media {
	width: 100%;
	height: 85vh;
	height: 85svh;
}
.hk-hero--bottom .hk-hero__scroll { display: none; }

@media (max-width: 767px) {
	.hk-hero--halfscreen { grid-template-columns: 1fr; }
	.hk-hero--halfscreen .hk-hero__media { order: 2; min-height: 60vh; }
	.hk-hero--halfscreen .hk-hero__text,
	.hk-hero--halfscreen.hk-hero--with-details .hk-hero__text { padding: var(--hk-text-pt, 9rem) 1.25rem var(--hk-text-pb, 3rem); }
	.hk-hero--halfscreen .hk-hero__scroll { display: none; }
	.hk-hero--bottom-container .hk-hero__media { width: 100%; aspect-ratio: 4 / 5; }
	.hk-hero--bottom-narrow .hk-hero__media {
	width: min(600px, 90vw);
	margin: 0 auto;
	aspect-ratio: 4 / 5;
}
.hk-hero--bottom-fullwidth .hk-hero__media { height: 70vh; }
}

/* --------------------------------------------------------------------------
   Image parallaxe
   -------------------------------------------------------------------------- */

.hk-parallax { margin: 0; }
.hk-parallax__frame {
	position: relative;
	height: var(--hk-parallax-h, 80vh);
	overflow: hidden;
}
.hk-parallax__inner { position: absolute; inset: calc(var(--hk-parallax-overscan, 12%) * -1) 0; }
.hk-parallax__inner img,
.hk-parallax__inner .hk-img-placeholder { display: block; width: 100%; height: 100%; object-fit: cover; }
.hk-parallax--container .hk-parallax__frame { width: var(--hk-container); margin-inline: auto; }
.hk-parallax--container-left .hk-parallax__frame { margin-right: calc((100% - var(--hk-container)) / 2); }
.hk-parallax--container-right .hk-parallax__frame { margin-left: calc((100% - var(--hk-container)) / 2); }
.hk-parallax__caption {
	width: var(--hk-container);
	margin: 1rem auto 0;
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	opacity: .6;
}
@media (max-width: 767px) {
	.hk-parallax__frame { height: min(var(--hk-parallax-h, 80vh), 60vh); }
}

/* --------------------------------------------------------------------------
   Fiche projet
   -------------------------------------------------------------------------- */

.hk-single__details,
.hk-single__content > :not(.elementor):not(.hk-parallax) {
	width: var(--hk-container);
	margin-inline: auto;
}
.hk-single__details { padding: clamp(3rem, 8vw, 7rem) 0 clamp(2rem, 5vw, 4rem); }
.hk-single__content > :not(.elementor):not(.hk-parallax) { max-width: 820px; }
.hk-single__content img { max-width: 100%; height: auto; }

.hk-details__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 2rem;
	margin: 0;
}
.hk-details__row { margin: 0; }
.hk-details dt {
	margin-bottom: .5rem;
	font-size: var(--hk-details-label-size, .72rem);
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	opacity: .55;
}
.hk-details dd { margin: 0; font-size: var(--hk-details-value-size, 1.05rem); line-height: 1.4; }
.hk-details dd a { color: inherit; text-decoration: underline; text-underline-offset: .2em; }
.hk-details__credits { margin-top: clamp(2.5rem, 6vw, 5rem); }
.hk-details__credits-title { margin: 0 0 1.5rem; font-size: clamp(1.6rem, 3vw, 2.6rem); }

/* --------------------------------------------------------------------------
   Projet suivant
   -------------------------------------------------------------------------- */

.hk-next {
	position: relative;
	background-color: var(--hk-bg, transparent);
}
.hk-next--auto { height: 180vh; }
.hk-next__sticky {
	position: sticky;
	top: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 100vh;
	height: 100svh;
	overflow: hidden;
	text-align: center;
}
.hk-next__link {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	color: inherit;
	text-decoration: none;
}
.hk-next__label {
	position: relative;
	z-index: 2;
	font-size: .8rem;
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
	opacity: .6;
}
.hk-next__title {
	position: relative;
	z-index: 2;
	margin-top: 1rem;
	font-size: var(--hk-next-title-size, clamp(2.8rem, 9vw, 9rem));
	font-weight: 700;
	line-height: .95;
	letter-spacing: -.02em;
	mix-blend-mode: difference;
	color: #fff;
}
.hk-theme-dark .hk-next__title,
.hk-next:not(.hk-theme-light) .hk-next__title { mix-blend-mode: normal; color: inherit; }
.hk-next__media {
	position: absolute;
	z-index: 1;
	top: 50%;
	left: 50%;
	width: clamp(180px, 26vw, 380px);
	aspect-ratio: 4 / 5;
	overflow: hidden;
	opacity: .9;
	transform: translate(-50%, -50%) scale(.85);
	transition: transform 1s var(--hk-ease);
}
.hk-next__media img,
.hk-next__media .hk-img-placeholder { width: 100%; height: 100%; object-fit: cover; display: block; }
.hk-next__link:hover .hk-next__media { transform: translate(-50%, -50%) scale(1); }
.hk-next__progress {
	position: absolute;
	left: 50%;
	bottom: 3rem;
	width: 160px;
	height: 1px;
	background: currentColor;
	opacity: .3;
	transform: translateX(-50%);
}
.hk-next__progress-bar {
	position: absolute;
	inset: 0;
	background: currentColor;
	transform: scaleX(var(--hk-progress, 0));
	transform-origin: left;
}
.hk-next__hint {
	position: absolute;
	bottom: 4rem;
	font-size: .7rem;
	letter-spacing: .2em;
	text-transform: uppercase;
	opacity: .6;
}

/* --------------------------------------------------------------------------
   En-tête du site collant (ajouté par le script uniquement une fois figé)
   -------------------------------------------------------------------------- */

.hk-header-solid {
	background-color: var(--hk-header-bg, #fff) !important;
	box-shadow: 0 1px 0 rgba(0, 0, 0, .06);
	transition: background-color .3s, box-shadow .3s;
}

/* --------------------------------------------------------------------------
   Curseur, rideau, préchargeur
   -------------------------------------------------------------------------- */

.hk-cursor {
	position: fixed;
	z-index: 10000;
	top: 0;
	left: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 14px;
	height: 14px;
	margin: -7px 0 0 -7px;
	border: 1px solid var(--hk-accent);
	border-radius: 50%;
	pointer-events: none;
	opacity: 0;
	transition: width .45s var(--hk-ease), height .45s var(--hk-ease), margin .45s var(--hk-ease), background-color .3s, opacity .3s;
}
.hk-cursor.is-visible { opacity: 1; }
.hk-cursor.is-active {
	width: 96px;
	height: 96px;
	margin: -48px 0 0 -48px;
	background-color: var(--hk-accent);
}
.hk-cursor__label {
	color: #fff;
	font-size: .72rem;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	opacity: 0;
	transition: opacity .3s;
}
.hk-cursor.is-active .hk-cursor__label { opacity: 1; }
@media (hover: none), (pointer: coarse) { .hk-cursor { display: none; } }

.hk-curtain {
	position: fixed;
	z-index: 9999;
	inset: 0;
	background: var(--hk-accent);
	transform: scaleY(0);
	transform-origin: bottom;
	pointer-events: none;
}

.hk-preloader {
	position: fixed;
	z-index: 10001;
	inset: 0;
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	background: #111;
	color: #fff;
}
html.hk-preloading .hk-preloader { display: flex; }
.hk-preloader__text { font-size: clamp(1.5rem, 4vw, 3rem); font-weight: 700; }
.hk-preloader__count { font-size: .8rem; letter-spacing: .2em; opacity: .6; font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------------
   États initiaux des animations (seulement quand le script a pris la main)
   -------------------------------------------------------------------------- */

html.hk-anim [data-hk-reveal] { opacity: 0; transform: translateY(30px); }
html.hk-anim [data-hk-media-reveal] { clip-path: inset(100% 0 0 0); }
html.hk-anim [data-hk-media-reveal] img { transform: scale(1.25); }
.hk-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; }
.hk-word > span { display: inline-block; }
html.hk-anim [data-hk-split] .hk-word > span { transform: translateY(105%); }

/* Transitions entre pages natives du navigateur */
::view-transition-old(root),
::view-transition-new(root) { animation-duration: .5s; }
::view-transition-group(hk-hero-media) { animation-duration: .9s; animation-timing-function: cubic-bezier(.77, 0, .175, 1); }

@media (prefers-reduced-motion: reduce) {
	html.hk-anim [data-hk-reveal],
	html.hk-anim [data-hk-media-reveal],
	html.hk-anim [data-hk-media-reveal] img,
	html.hk-anim [data-hk-split] .hk-word > span { opacity: 1; transform: none; clip-path: none; }
	.hk-hero__scroll-line::after { animation: none; }
	.hk-next--auto { height: auto; }
	::view-transition-group(*),
	::view-transition-old(*),
	::view-transition-new(*) { animation: none !important; }
}
