.trilogie-block {
	position: relative;
	padding-top: var(--mt-mobile, 0);
	padding-bottom: var(--mb-mobile, 0);
    margin-top: 1rem;
}

@media (min-width: 851px) {
	.trilogie-block {
		padding-top: var(--mt-desktop, 0);
		padding-bottom: var(--mb-desktop, 0);
	}
}

.trilogie-frise {
	display: flex;
	width: 100%;
	height: 6px;
	background-image: url(../../../assets/svg/line-1.svg);
	background-repeat: repeat;
	background-position: center;
	background-size: auto;
}

.trilogie-categories {
	display: flex;
	justify-content: center;
	width: 100%;
	padding: 1rem 0;
}

.trilogie-category-wrap {
	padding: 0.5rem 4rem;
	border-left: 1px solid var(--wp--preset--color--bordeau);
}

.trilogie-category-wrap:last-child {
	border-right: 1px solid var(--wp--preset--color--bordeau);
}

.trilogie-category {
	position: relative;
	display: flex;
	overflow: hidden;
	padding-bottom: 0.5rem;
	color: var(--wp--preset--color--bordeau);
	font-size: var(--wp--preset--font-size--size-16);
	text-decoration: none;
	text-transform: uppercase;
}

.trilogie-category::before {
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 1px;
	background-color: var(--wp--preset--color--bordeau);
	transform: scaleX(0);
	transform-origin: right;
	transition: transform 0.3s ease;
}

.trilogie-category-wrap:hover {
	cursor: pointer;
}

.trilogie-category-wrap:hover .trilogie-category::before,
.trilogie-category.active::before {
	transform: scaleX(1);
	transform-origin: left;
}

.trilogie-category.active {
	font-family: 'Gotham Medium', sans-serif;
}

.trilogie-content-wrapper {
	display: flex;
	justify-content: space-between;
	width: 100%;
	padding: 2rem var(--gutters);
	background-color: var(--wp--preset--color--background);
}

.trilogie-content {
	display: flex;
	flex-direction: column;
	width: 50%;
}

.trilogie-title,
.trilogie-text,
.trilogie-proprietaire,
.trilogie-assemblage {
	opacity: 1;
	transform: translateY(0);
	transition: opacity 240ms ease, transform 240ms ease;
	will-change: opacity, transform;
}

.trilogie-title {
	margin-bottom: 1rem;
}

.trilogie-content h3 {
	margin: 0;
}

.trilogie-text,
.trilogie-proprietaire,
.trilogie-assemblage {
	margin-bottom: 1rem;
	border-bottom: 1px solid var(--wp--preset--color--bordeau);
}
.trilogie-text {
    border-bottom: 0;
}
/* Composition visuelle issue de home-slider-images. */
.trilogie-images-wrapper {
	display: flex;
	flex-direction: column;
	width: 40%;
}

.trilogie-image-stage {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 600px;
}

.trilogie-mobile-title {
	display: none;
}

.trilogie-images {
	position: relative;
	z-index: 1;
	width: 300px;
	height: 400px;
	overflow: hidden;
	clip-path: polygon(68% 0, 90% 20%, 100% 50%, 89% 84%, 66% 100%, 34% 100%, 12% 83%, 0 50%, 13% 19%, 35% 0);
}

.trilogie-bottle {
	position: absolute;
	left: 50%;
	top: 50%;
	z-index: 3;
	width: 200px;
	height: 450px;
	transform: translate(-50%, -50%);
	opacity: 1;
	transition: opacity 500ms ease-in-out;
	will-change: opacity;
}

.trilogie-bottle img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.trilogie-bkg-img,
.trilogie-bkg-layer {
	position: absolute;
	inset: 0;
}

.trilogie-bkg-img {
	z-index: 0;
}

.trilogie-bkg-layer {
	z-index: 0;
	opacity: 0;
	pointer-events: none;
	transition: opacity 500ms ease-in-out;
}

.trilogie-bkg-layer img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.trilogie-bkg-layer.is-current {
	z-index: 2;
	opacity: 1;
}

.trilogie-arrow {
	display: none;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: transparent;
	line-height: 1;
}

.trilogie-mobile-nav,
.trilogie-mobile-modal {
	display: none;
}

.trilogie-link {
	position: relative;
	display: flex;
	width: fit-content;
	overflow: hidden;
	color: var(--wp--preset--color--noir);
	font-family: 'Montserrat', sans-serif;
	font-size: 12px;
	font-weight: 500;
	text-transform: uppercase;
}

.trilogie-link::before {
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 1px;
	background-color: var(--wp--preset--color--noir);
	transform: scaleX(0);
	transform-origin: right;
	transition: transform 0.3s ease;
}

.trilogie-link:hover {
	cursor: pointer;
}

.trilogie-link:hover::before {
	transform: scaleX(1);
	transform-origin: left;
}

@media (max-width: 1024px) {
	.trilogie-images {
		height: 40vh;
		max-height: 500px;
	}
}

@media (max-width: 850px) {
	.trilogie-categories,
	.trilogie-content {
		display: none;
	}

	.trilogie-frise {
		margin: 1rem 0;
	}

	.trilogie-content-wrapper {
		display: flex;
		flex-direction: column-reverse;
		gap: 2rem;
		min-height: auto;
		padding: 2.5rem var(--gutters) 5rem;
	}

	.trilogie-images-wrapper {
		flex-direction: column;
		width: 100%;
		min-height: 0;
		order: -1;
	}

	.trilogie-mobile-title {
		display: block;
		width: 100%;
		margin-bottom: 1rem;
		text-align: center;
		text-transform: uppercase;
        transform: translateY(-4rem);
	}

	.trilogie-mobile-title > * {
		margin: 0;
	}

	.trilogie-image-stage {
		width: 100%;
		height: 40vh;
		max-height: 500px;
		min-height: 0;
	}

	.trilogie-bottle {
		height: 400px;
	}

	.trilogie-arrow {
		position: absolute;
		top: 50%;
		z-index: 5;
		display: block;
		width: 36px;
		height: 36px;
		background-repeat: no-repeat;
		background-position: center;
		background-size: contain;
		transform: translateY(-50%);
	}

	.trilogie-arrow-prev {
		left: 1rem;
		background-image: url(../../../assets/svg/arrow-left.svg);
	}

	.trilogie-arrow-next {
		right: 1rem;
		background-image: url(../../../assets/svg/arrow-right.svg);
	}

	.trilogie-mobile-nav {
		display: flex;
		align-items: center;
		flex-direction: column;
		justify-content: center;
		gap: 1rem;
		padding: 1rem 0 2rem;
		background-color: var(--wp--preset--color--background);
	}

	.trilogie-mobile-cuvee-name {
		display: flex;
		flex-wrap: nowrap;
		margin: 0;
		font-family: var(--wp--preset--font-family--kalufonia-regular);
		font-size: 15px;
		font-weight: 500;
		line-height: 1.1;
		letter-spacing: 1.5px;
		text-transform: uppercase;
		opacity: 1;
		transform: translateY(0);
		transition: opacity 240ms ease, transform 240ms ease;
		will-change: opacity, transform;
	}

	.trilogie-mobile-modal {
		position: fixed;
		inset: 0;
		z-index: 0;
		display: flex;
		align-items: center;
		flex-direction: column;
		min-height: 100dvh;
		padding: 2rem var(--gutters);
		overflow-y: auto;
		background-color: rgba(11, 11, 11, 0.9);
		opacity: 0;
		pointer-events: none;
		transition: opacity 240ms ease-in-out;
		-webkit-overflow-scrolling: touch;
	}

	.trilogie-mobile-modal.is-open {
		z-index: 999;
		opacity: 1;
		pointer-events: all;
	}

	html.trilogie-mobile-modal-open,
	body.trilogie-mobile-modal-open {
		overflow: hidden;
	}

	.trilogie-mobile-modal .trilogie-text,
	.trilogie-mobile-modal .trilogie-proprietaire,
	.trilogie-mobile-modal .trilogie-assemblage {
		width: 100%;
		border-bottom: 1px solid var(--wp--preset--color--background);
		color: var(--wp--preset--color--background) !important;
	}

	.trilogie-mobile-modal .trilogie-text *,
	.trilogie-mobile-modal .trilogie-proprietaire *,
	.trilogie-mobile-modal .trilogie-assemblage * {
		color: var(--wp--preset--color--background) !important;
	}

	.trilogie-mobile-modal-close {
		width: fit-content;
		margin-bottom: 1rem;
		padding: 0 0 0.5rem;
		border: 0;
		border-bottom: 1px solid var(--wp--preset--color--background);
		border-radius: 0;
		background: transparent;
		color: var(--wp--preset--color--background);
		line-height: 1;
	}

	.trilogie-mobile-bkg-image {
		position: fixed;
		inset: 0;
		z-index: -1;
		width: 100%;
		height: 100%;
	}

	.trilogie-mobile-bkg-image img {
		width: 100%;
		height: 100%;
		object-fit: cover;
	}

	.trilogie-mobile-bkg-image::after {
		content: '';
		position: absolute;
		inset: 0;
		background-color: rgba(11, 11, 11, 0.5);
	}
}

@media (max-width: 576px) {
	.trilogie-content-wrapper {
		gap: 5rem;
        padding: 8rem var(--gutters) 5rem;
	}

	.trilogie-images {
		width: 75%;
		max-width: 270px;
		height: 100%;
		max-height: 330px;
	}

	.trilogie-image-stage {
		max-height: 330px;
	}

	.trilogie-arrow-prev {
		left: 0;
	}

	.trilogie-arrow-next {
		right: 0;
	}
}
