.projets-scroll-stage {
	position: relative;
	height: 100svh;
	width: 100%;
	z-index: calc(var(--z-fixed, 1000) - 1);
}

.projets {
	display: flex;
	align-items: center;
	height: 100svh;
	width: 100%;
	position: fixed;
	top: 0;
	left: 0;
	z-index: calc(var(--z-fixed, 1000) - 1);
	overflow: hidden;
	isolation: isolate;
	transition: opacity 0.6s ease;
}

.projets-scroll-stage.is-archive-visible .projets {
	opacity: 0;
	pointer-events: none;
}

.projets-project {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: calc(var(--projects-count, 1) - var(--project-index, 0));
}

.projets-project-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.projets-project-content {
	display: flex;
	flex-direction: column;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	align-items: center;
}

.projets-project-type {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
}

.projets-project-logo {
	display: block;
	width: 15px;
	height: 15px;
	background-image: url('../../../assets/svg/star-white.svg');
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
}

.projets-project-type-label {
	color: var(--wp--preset--color--white);
	font-family: "Mona Sans";
	font-size: 15px;
	font-weight: 600;
	line-height: 14px;
	text-transform: uppercase;
}

.projets-project-title p {
	color: var(--wp--preset--color--white);
}

.projets-project-link.socreativ-btn {
	color: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--white);
	margin-top: 4rem;
}

.projets-nav-shell {
	position: absolute;
	right: var(--gutters);
	bottom: 3rem;
	width: 140px;
	z-index: 20;
	isolation: isolate;
}

.projets-nav-mask {
	width: 120px;
	height: calc((120px * 15 / 28 * 4) + (1rem * 3));
	overflow: hidden;
	position: relative;
	z-index: 2;
}

.projets-nav {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	position: relative;
	z-index: 2;
	will-change: transform;
}

.projets-miniature {
	width: 120px;
	flex-shrink: 0;
	aspect-ratio: 28 / 15;
	position: relative;
	z-index: 2;
	cursor: pointer;
	border: 0;
	padding: 0;
	background: transparent;
}

.projets-miniature img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.projets-nav-indicator {
	width: 140px;
	flex-shrink: 0;
	aspect-ratio: 28 / 15;
	border: 1px solid var(--wp--preset--color--white);
	position: absolute;
	top: 0;
	left: 0;
	transform: translate(-10px, -3.5px);
	pointer-events: none;
	z-index: 3;
}
.projets-link-all{
	position: absolute;
	left: var(--gutters);
	bottom: 3rem;
	z-index: 20;
	cursor: pointer;
	padding: 0;
	background: transparent;
	border: 0;
	color: var(--wp--preset--color--white);
	font-family: "IBM Plex Mono";
	font-size: 10px;
	font-weight: 400;
	text-transform: uppercase;
	display: flex;
	gap: 0.5rem;
	align-items: center;
	transition: color 0.3s ease-in-out;
}
.projets-link-all svg path{
	transition: stroke 0.3s ease-in-out;
}
.projets-link-all:hover{
	color: var(--wp--preset--color--vert);
}
.projets-link-all:hover svg path{
	stroke: var(--wp--preset--color--vert);
}

.projets-scroll-stage > .archive-projets {
	display: flex;
	flex-direction: column;
	gap: 2rem;
	justify-content: center;
	height: 100svh;
	width: 100%;
	position: fixed;
	top: 0;
	left: 0;
	z-index: calc(var(--z-fixed, 1000) - 2);
	overflow: hidden;
	background-color: var(--wp--preset--color--blanc);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition:
		opacity 0.6s ease,
		visibility 0s linear 0.6s;
}

.projets-scroll-stage.is-archive-visible > .archive-projets {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transition:
		opacity 0.6s ease,
		visibility 0s linear 0s;
}

.projets-scroll-stage > .archive-projets .archive-projets-list {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	width: 100%;
	padding: 0 var(--gutters);
	align-items: center;
}

.projets-scroll-stage > .archive-projets .archive-projets-list-link {
	color: var(--wp--preset--color--noir);
	font-family: "IBM Plex Mono";
	font-size: 13px;
	font-weight: 400;
	text-transform: uppercase;
    transition: color 0.3s ease-in-out;
}

.projets-scroll-stage > .archive-projets .archive-projets-list-link:hover {
    color: var(--wp--preset--color--violet);
}

.projets-scroll-stage > .archive-projets .archive-projets-list-separator {
	display: flex;
	align-items: center;
	justify-content: center;
}

.projets-scroll-stage > .archive-projets .archive-projets-list-separator img {
	display: block;
	width: 8px;
	height: 8px;
}

.projets-scroll-stage > .archive-projets .archive-projets-carousel {
	display: flex;
	gap: 1rem;
	width: 100%;
	overflow-x: auto;
	overflow-y: hidden;
	padding: 0 var(--gutters);
	scrollbar-width: none;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	scroll-behavior: auto;
	will-change: scroll-position;
	contain: layout paint;
}

.projets-scroll-stage > .archive-projets .archive-projets-carousel::-webkit-scrollbar {
	display: none;
}

.projets-scroll-stage > .archive-projets .archive-projets-card {
	display: flex;
	flex-direction: column;
	min-width: 290px;
	width: 290px;
	height: 360px;
	position: relative;
	overflow: hidden;
	contain: layout paint;
	transform: translateZ(0);
	will-change: clip-path;
}

.projets-scroll-stage > .archive-projets .archive-projets-card-link {
	display: flex;
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	overflow: hidden;
}

.projets-scroll-stage > .archive-projets .archive-projets-card-media {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	display: flex;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.projets-scroll-stage > .archive-projets .archive-projets-card-img,
.projets-scroll-stage > .archive-projets .archive-projets-card-video,
.projets-scroll-stage > .archive-projets .archive-projets-card-media img,
.projets-scroll-stage > .archive-projets .archive-projets-card-media video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	max-width: none;
	max-height: none;
	flex: 0 0 100%;
}

.projets-scroll-stage > .archive-projets .archive-projets-card-img {
	transition: transform 0.3s ease;
}

.projets-scroll-stage > .archive-projets .archive-projets-card-content {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin-top: auto;
	position: relative;
	z-index: 1;
	padding: 1rem;
}

.projets-scroll-stage > .archive-projets .archive-project-card-category {
	color: var(--wp--preset--color--blanc);
	font-family: "Brier", serif;
	font-size: 13px;
	font-weight: 400;
	text-transform: uppercase;
	margin: 0;
}

.projets-scroll-stage > .archive-projets .archive-projets-card-title {
	margin: 0;
	color: var(--wp--preset--color--blanc) !important;
	font-family: "Mona Sans", sans-serif;
	font-size: 18px !important;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0;
}

.archive-projets-close {
	position: absolute;
	left: var(--gutters);
	bottom: 3rem;
	width: 28px;
	height: 28px;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.archive-projets-close span,
.archive-projets-close span::before {
	content: "";
	position: absolute;
	width: 20px;
	height: 1px;
	background-color: var(--wp--preset--color--noir);
	transition: background-color 0.3s ease;
}

.archive-projets-close span {
	transform: rotate(45deg);
}

.archive-projets-close span::before {
	left: 0;
	top: 0;
	transform: rotate(90deg);
}

.archive-projets-close:hover span,
.archive-projets-close:hover span::before {
	background-color: var(--wp--preset--color--vert);
}

/* Open the archive directly on mobile, without the full-screen scroll showcase. */
@media (max-width: 768px) {
    .projets-scroll-stage {
        height: auto;
        min-height: 100svh;
        padding-bottom: 4rem;
    }

    .projets-scroll-stage > .projets {
        display: none;
    }

    .projets-scroll-stage > .archive-projets {
        position: relative;
        height: auto;
        min-height: 100svh;
        padding-block: 100px 40px;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition: none;
    }

    .projets-scroll-stage > .archive-projets .archive-projets-close {
        display: none;
    }
}
