:root {
	--hdf-green: #149249;
	--hdf-light-green: #74ad43;
	--hdf-pale-green: #e2f0df;
	--hdf-ink: #171717;
	--hdf-muted: #6e6e6e;
}

.hdf-products-page,
.hdf-product-single {
	font-family: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
	color: var(--hdf-ink);
}

.single-produits body,
body.single-produits {
	padding-bottom: 106px;
}

.hdf-products-container {
	width: min(1180px, calc(100% - 48px));
	margin-right: auto;
	margin-left: auto;
}

.hdf-product-hero {
	position: relative;
	min-height: 310px;
	display: flex;
	align-items: stretch;
	padding: 14px;
	background-image: var(--hdf-product-banner);
	background-position: center;
	background-size: cover;
	overflow: hidden;
}

.hdf-product-hero::before {
	content: "";
	position: absolute;
	inset: 0 42% 0 0;
	background: rgba(20, 146, 73, .8);
	clip-path: polygon(0 0, 100% 0, 86% 100%, 0 100%);
}

.hdf-product-hero__frame {
	position: relative;
	z-index: 1;
	width: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 42px 28px;
	border: 1px solid rgba(255, 255, 255, .82);
}

.hdf-product-hero h1 {
	max-width: 660px;
	margin: 0;
	color: #fff;
	font-size: clamp(2.25rem, 4.2vw, 4.1rem);
	line-height: 1.04;
	text-transform: uppercase;
	letter-spacing: .01em;
}

.hdf-product-hero__eyebrow {
	margin: 0 0 5px;
	color: #fff;
	font-size: 1.1rem;
	font-weight: 500;
	text-transform: uppercase;
}

.hdf-products-catalogue {
	padding-top: 52px;
	padding-bottom: 90px;
}

.hdf-product-ranges {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 28px;
	padding: 0 26px 10px;
}

.hdf-product-ranges__swiper {
	width: 100%;
	min-width: 0;
	overflow: hidden;
	flex: 1;
}

.hdf-product-ranges .swiper-wrapper {
	display: flex;
	width: 100%;
	height: auto;
	align-items: stretch;
}

.hdf-product-range-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 5px;
	box-sizing: border-box;
	padding: 8px 5px 10px;
	border-bottom: 2px solid transparent;
	color: #555;
	text-decoration: none;
	text-align: center;
	transition: color .2s ease, border-color .2s ease, transform .2s ease;
}

.hdf-product-range-card.swiper-slide {
	display: block;
	flex-shrink: 0;
	width: calc((100% - 84px) / 8);
	height: auto;
}

.hdf-product-range-card:hover,
.hdf-product-range-card:focus-visible,
.hdf-product-range-card.is-active {
	color: var(--hdf-green);
	border-color: var(--hdf-green);
	transform: translateY(-3px);
}

.hdf-product-range-card__media {
	display: block;
	position: relative;
	width: 100%;
	height: 76px;
}

.hdf-product-range-card__media img {
	display: block;
	max-width: 100%;
	max-height: 100%;
	margin: 0 auto;
	width: auto;
	height: auto;
	object-fit: contain;
}

/* Keep the Rack de stockage visual on a white cushion without affecting the other ranges. */
.hdf-product-range-card--rack-storage .hdf-product-range-card__media {
	box-sizing: border-box;
	padding: 8px 16px;
	background: #fff;
}

.hdf-product-range-card__placeholder {
	display: block;
	width: 72%;
	height: 52px;
	background: var(--hdf-pale-green);
}

.hdf-product-range-card__title,
.hdf-product-range-card__subtitle {
	display: block;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	text-transform: uppercase;
}

.hdf-product-range-card__title {
	margin-top: 8px;
	font-size: .71rem;
	font-weight: 700;
}

.hdf-product-range-card__subtitle {
	color: #777;
	font-size: .64rem;
	font-weight: 400;
}

.hdf-product-ranges__control {
	position: absolute;
	z-index: 1;
	top: 50%;
	display: grid;
	place-items: center;
	width: 26px;
	height: 42px;
	padding: 0;
	border: 1px solid var(--hdf-green);
	background: #fff;
	color: var(--hdf-green);
	cursor: pointer;
	transform: translateY(-50%);
	transition: background-color .2s ease, color .2s ease;
}

.hdf-product-ranges__control:hover,
.hdf-product-ranges__control:focus-visible {
	background: var(--hdf-green);
	color: #fff;
}

.hdf-product-ranges__control:disabled {
	opacity: .3;
	cursor: default;
}

.hdf-product-ranges__control:disabled:hover {
	background: #fff;
	color: var(--hdf-green);
}

.hdf-product-ranges__control--prev {
	left: 0;
}

.hdf-product-ranges__control--next {
	right: 0;
}

.hdf-product-filters {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 18px 20px;
	margin: 0 0 70px;
}

.hdf-product-filters a {
	position: relative;
	display: inline-flex;
	align-items: center;
	min-height: 0;
	padding: 15px;
	margin: 0;
	background: linear-gradient(#ffffffcc, #ffffffcc), linear-gradient(45deg, #149249 30%, #71aa46 50%);
	color: #000;
	font-family: "Roboto Condensed", Sans-serif;
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
	text-transform: uppercase;
	transform: translateY(0);
	transition: all .3s;
}

.hdf-product-filters a::after,
.hdf-product-button::after,
.hdf-product-sticky-cta > a::after {
	content: "";
	position: absolute;
	inset: 0;
	border: 1px solid currentColor;
	transform: translate(6px, 6px);
	pointer-events: none;
}

.hdf-product-filters a::after {
	border-color: #daecda;
	z-index: -1;
	transition: transform .3s ease;
}

.hdf-product-filters a:hover,
.hdf-product-filters a:focus-visible,
.hdf-product-filters a.is-active {
	background: linear-gradient(45deg, #149249 30%, #71aa46 50%);
	color: #fff;
	transform: translateY(-10px);
}

.hdf-product-filters a:hover::after,
.hdf-product-filters a:focus-visible::after,
.hdf-product-filters a.is-active::after {
	border-color: #149249;
	transform: translate(7px, 7px);
}

.hdf-products-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	column-gap: clamp(30px, 6vw, 86px);
	row-gap: 72px;
}

#hdf-product-results.is-loading {
	opacity: .45;
	pointer-events: none;
}

.hdf-product-card__link {
	display: block;
	color: inherit;
	text-align: center;
	text-decoration: none;
}

.hdf-product-card__media {
	position: relative;
	aspect-ratio: 1 / 1;
	display: grid;
	place-items: center;
	margin-bottom: 24px;
	background: #fff;
	overflow: hidden;
}

.hdf-product-card__media::after,
.hdf-product-gallery__main::after {
	content: "HDF\A EMBALLAGES";
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%) rotate(-9deg);
	white-space: pre;
	color: rgba(25, 25, 25, .075);
	font-size: clamp(2rem, 5vw, 5rem);
	font-weight: 900;
	line-height: .7;
	letter-spacing: .06em;
	pointer-events: none;
}

.hdf-product-card__media img {
	position: relative;
	z-index: 1;
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: transform .35s ease;
}

.hdf-product-card__link:hover .hdf-product-card__media img,
.hdf-product-card__link:focus-visible .hdf-product-card__media img {
	transform: scale(1.045);
}

.hdf-product-card__placeholder,
.hdf-product-gallery__placeholder {
	width: 52%;
	height: 52%;
	border: 2px solid #dfe9df;
	background: linear-gradient(135deg, #f5faf4 25%, #e7f2e4 25%, #e7f2e4 50%, #f5faf4 50%, #f5faf4 75%, #e7f2e4 75%);
	background-size: 28px 28px;
}

.hdf-product-card__category {
	display: block;
	margin-bottom: 5px;
	color: var(--hdf-green);
	font-size: .96rem;
	font-weight: 500;
	text-transform: uppercase;
}

.hdf-product-card__title {
	margin: 0;
	font-size: 1.22rem;
	font-weight: 800;
	line-height: 1.25;
	text-transform: uppercase;
}

.hdf-products-description {
	max-width: 1080px;
	margin: 86px auto 0;
	color: var(--hdf-muted);
	text-align: center;
}

.hdf-products-description--text-only {
	margin-bottom: 60px;
	text-align: left;
}

.hdf-products-description--text-only p {
	margin: 0;
	font-size: 1rem;
	line-height: 1.6;
}

.hdf-product-category-description {
	box-sizing: border-box;
	padding: 30px clamp(20px, 5vw, 70px);
	border-top: 4px solid var(--hdf-green);
	background: var(--hdf-pale-green);
	text-align: left;
}

.hdf-product-category-description h2 {
	margin: 0 0 12px;
	color: var(--hdf-green);
	font-size: clamp(1.35rem, 2.5vw, 2rem);
	text-transform: uppercase;
}

.hdf-product-category-description p {
	margin: 0;
	line-height: 1.7;
}

.hdf-products-empty {
	margin: 60px 0;
	text-align: center;
}

.hdf-product-overview {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(360px, .95fr);
	gap: clamp(45px, 8vw, 110px);
	align-items: start;
	padding: 78px 0 88px;
}

.hdf-product-gallery__main {
	position: relative;
	display: grid;
	place-items: center;
	background: #fff;
}

.hdf-product-gallery__main img {
	position: relative;
	z-index: 1;
	width: 100%;
	height: auto;
	max-height: none;
	object-fit: contain;
}

.hdf-product-gallery__thumbs {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 20px;
}

.hdf-product-gallery__thumbs button {
	width: 76px;
	height: 76px;
	padding: 4px;
	border: 1px solid #d8d8d8;
	background: #fff;
	cursor: pointer;
}

.hdf-product-gallery__thumbs button.is-active {
	border-color: var(--hdf-green);
	box-shadow: 0 0 0 1px var(--hdf-green);
}

.hdf-product-gallery__thumbs img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.hdf-product-details {
	padding-top: 28px;
}

.hdf-product-copy {
	color: var(--hdf-muted);
	font-family: Arial, sans-serif;
	font-size: .98rem;
	line-height: 1.45;
}

.hdf-product-copy h2,
.hdf-product-copy h3,
.hdf-product-copy h4 {
	margin: 0 0 18px;
	color: var(--hdf-ink) !important;
	font-family: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
	font-size: 1.6rem;
	font-weight: 800;
	text-transform: uppercase;
}

.hdf-product-copy h2:not(:first-child),
.hdf-product-copy h3:not(:first-child),
.hdf-product-copy h4:not(:first-child) {
	margin-top: 30px;
}

.hdf-product-copy p,
.hdf-product-copy ul {
	margin: 0 0 16px;
}

.hdf-product-sheet {
	position: relative;
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: end;
	gap: 10px 25px;
	margin-top: 45px;
	padding: 30px 34px;
	background: linear-gradient(90deg, #d8eee2, #e8f1d8);
}

.hdf-product-sheet h2 {
	grid-column: 1 / -1;
	margin: 0 0 4px;
	font-size: 1.55rem;
	text-transform: uppercase;
}

.hdf-product-sheet p {
	margin: 0;
	color: var(--hdf-muted);
	font-family: Arial, sans-serif;
}

.hdf-product-button,
.hdf-product-sticky-cta > a,
.hdf-product-sticky-cta .phone-button {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 22px;
	border: 0;
	background: var(--hdf-green);
	color: #fff;
	font-weight: 800;
	text-decoration: none;
	text-transform: uppercase;
	cursor: pointer;
}

.hdf-product-benefits {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 34px;
	margin-bottom: 96px;
	padding: 42px 36px;
	border: 1px solid #fff;
	outline: 12px solid #e3f0df;
	background: linear-gradient(90deg, #d8eee2, #eef3da);
}

.hdf-product-benefits article {
	text-align: center;
}

.hdf-product-benefits img {
	width: 62px;
	height: 62px;
	margin-bottom: 14px;
	display: inline-block;
}

.hdf-product-benefits h2 {
	margin: 0 0 14px;
	font-size: 1.24rem;
	text-transform: uppercase;
}

.hdf-product-benefits p {
	margin: 0;
	color: var(--hdf-muted);
	font-family: Arial, sans-serif;
	font-size: .93rem;
	line-height: 1.35;
}

.hdf-related-products {
	padding: 20px 0 105px;
}

.hdf-related-products > h2 {
	margin: 0 0 55px;
	font-size: clamp(2rem, 4vw, 3.2rem);
	text-align: center;
	text-transform: uppercase;
}

.hdf-product-sticky-cta {
	position: fixed;
	z-index: 999;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 34px;
	min-height: 106px;
	padding: 20px 30px;
	background: linear-gradient(90deg, var(--hdf-green), var(--hdf-light-green));
	color: #fff;
	box-shadow: 0 -8px 30px rgba(0, 0, 0, .08);
}

.hdf-product-sticky-cta strong {
	font-size: clamp(1.3rem, 2.4vw, 2rem);
	text-transform: uppercase;
}

.hdf-product-sticky-cta > a,
.hdf-product-sticky-cta .phone-button {
	min-width: 205px;
	background: #fff;
	color: var(--hdf-green);
}

/* Match the product CTA buttons with the buttons used on service pages. */
.hdf-product-button,
.hdf-product-sticky-cta > a,
.hdf-product-sticky-cta .phone-button {
	display: inline-block;
	box-sizing: border-box;
	min-width: 0;
	min-height: 0;
	padding: 12px 24px;
	border: 0;
	border-radius: 2px;
	font-family: "Roboto Condensed", Sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1;
	text-transform: uppercase;
	color: #149249;
	background-color: #ffffff;
	background-image: linear-gradient(#ffffff, #ffffff), linear-gradient(45deg, #149249 30%, #71aa46 50%);
	background-repeat: repeat;
	background-size: auto;
	background-position: 0 0;
	transition: color 0.3s, background 0.3s;
	transform: none;
	z-index: 1;
}

.hdf-product-sticky-cta .phone-button {
	width: 180px;
	min-width: 180px;
}

.hdf-product-button:hover,
.hdf-product-button:focus-visible,
.hdf-product-sticky-cta > a:hover,
.hdf-product-sticky-cta > a:focus-visible,
.hdf-product-sticky-cta .phone-button:hover,
.hdf-product-sticky-cta .phone-button:focus-visible {
	color: #ffffff;
	background-image: linear-gradient(#ffffff00, #ffffff00), linear-gradient(45deg, #149249 30%, #71aa46 50%);
}

.hdf-product-button::before {
	content: "";
	position: absolute;
	inset: 0;
	border: 1px solid rgba(255, 255, 255, 0.45);
	transform: translate(4px, 4px);
	z-index: -1;
	pointer-events: none;
	transition: all 0.35s ease;
}

.hdf-product-button:hover::before,
.hdf-product-button:focus-visible::before {
	border-color: #149249;
	transform: translate(7px, 7px);
}

.hdf-product-sticky-cta .phone-button .elementor-button-text {
	color: #149249;
}

.hdf-product-sticky-cta .phone-button:hover .elementor-button-text,
.hdf-product-sticky-cta .phone-button:focus-visible .elementor-button-text {
	color: #ffffff;
}

.hdf-product-sticky-cta > a::before,
.hdf-product-sticky-cta .phone-button::before {
	content: "";
	position: absolute;
	inset: 0;
	border: 1px solid rgba(255, 255, 255, 0.45);
	transform: translate(4px, 4px);
	z-index: -1;
	pointer-events: none;
	transition: all 0.35s ease;
}

.hdf-product-sticky-cta > a:hover::before,
.hdf-product-sticky-cta > a:focus-visible::before,
.hdf-product-sticky-cta .phone-button:hover::before,
.hdf-product-sticky-cta .phone-button:focus-visible::before {
	border-color: #149249;
	transform: translate(7px, 7px);
}

.hdf-product-button::after,
.hdf-product-sticky-cta > a::after,
.hdf-product-sticky-cta .phone-button::after {
	display: none;
}

/* The download button follows the header phone-button interaction. */
.hdf-product-button {
	color: #ffffff;
	background-color: transparent;
	background-image: linear-gradient(45deg, #149249 30%, #71aa46 50%);
	text-align: center;
	transform: translateY(0);
	transition: transform 0.5s, color 0.3s, background 0.3s;
}

.hdf-product-button:hover,
.hdf-product-button:focus-visible {
	transform: translateY(-10px);
}

.hdf-product-phone-widget .elementor-button-wrapper,
.hdf-product-phone-widget .elementor-button-content-wrapper,
.hdf-product-phone-widget .elementor-button-text {
	width: 100%;
}

.hdf-product-sticky-cta .phone-button {
	text-align: center;
}

.hdf-product-sticky-cta .phone-button .elementor-button-content-wrapper:not(.hidden-numbers) {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: auto !important;
	margin-right: auto;
	margin-left: auto;
}

.hdf-product-sticky-cta .phone-button .elementor-button-content-wrapper.hidden-numbers {
	display: none !important;
}

.hdf-product-sticky-cta .phone-button .elementor-button-content-wrapper:not(.hidden-numbers) .elementor-button-text {
	display: inline-flex;
	width: auto !important;
	text-align: center;
}

.hdf-product-phone-widget .phone-button {
	font-family: 'Roboto Condensed', sans-serif;
}

/* Keep the product CTA responsive behavior aligned with the service CTA. */
@media (max-width: 1023px) {
	body.single-produits {
		padding-bottom: 72px;
	}

	.hdf-product-sticky-cta {
		min-height: 0;
		gap: 16px;
		padding: 16px 30px;
	}

	.hdf-product-sticky-cta strong {
		display: none;
	}

	.hdf-product-phone-widget {
		display: flex;
		align-items: center;
	}
}

@media (max-width: 900px) {
	.hdf-product-hero::before {
		inset: 0;
		width: 100%;
		height: 100%;
		clip-path: none;
		background: rgba(20, 146, 73, .8);
	}

	.hdf-products-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.hdf-product-range-card.swiper-slide {
		width: calc((100% - 36px) / 4);
	}

	.hdf-product-overview {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.hdf-product-details {
		padding-top: 0;
	}

	.hdf-product-benefits {
		gap: 20px;
		padding: 32px 20px;
	}

}

@media (max-width: 640px) {
	body.single-produits {
		padding-bottom: 64px;
	}

	.hdf-products-container {
		box-sizing: border-box;
		width: min(100% - 40px, 1180px);
	}

	.hdf-product-hero {
		min-height: 235px;
		padding: 8px;
	}

	.hdf-product-hero::before {
		inset: 0;
		width: 100%;
		height: 100%;
		clip-path: none;
		background: rgba(20, 146, 73, .8);
	}

	.hdf-product-hero__frame {
		padding: 28px 18px;
	}

	.hdf-products-catalogue {
		padding-top: 34px;
	}

	.hdf-product-ranges {
		margin-right: 0;
		margin-left: 0;
		padding-right: 0;
		padding-left: 0;
	}

	.hdf-product-range-card__media {
		height: 66px;
	}

	.hdf-product-range-card.swiper-slide {
		width: calc((100% - 12px) / 2);
	}

	.hdf-product-ranges__control {
		width: 24px;
	}

	.hdf-product-filters {
		justify-content: center;
		gap: 16px 18px;
		margin-bottom: 45px;
	}

	.hdf-product-filters a {
		padding: 8px 13px;
		margin: 0;
		font-size: .84rem;
	}

	.hdf-products-grid {
		grid-template-columns: 1fr;
		row-gap: 48px;
	}

	.hdf-product-card__media {
		max-width: 420px;
		margin-right: auto;
		margin-left: auto;
	}

	.hdf-product-overview {
		padding: 45px 0 64px;
	}

	.hdf-product-sheet {
		grid-template-columns: 1fr;
	}

	.hdf-product-button {
		margin-top: 12px;
	}

	.hdf-product-benefits {
		grid-template-columns: 1fr;
		gap: 38px;
		margin-right: 0;
		margin-left: 0;
	}

	.hdf-related-products {
		padding-bottom: 65px;
	}

	.hdf-product-sticky-cta {
		gap: 12px;
		padding: 12px 15px;
	}

	.hdf-product-sticky-cta > a,
	.hdf-product-sticky-cta .phone-button {
		padding-right: 14px;
		padding-left: 14px;
	}

	.hdf-product-sticky-cta .phone-button {
		width: 160px;
		min-width: 160px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hdf-product-card__media img,
	.hdf-product-filters a {
		transition: none;
	}
}
