/* EH Product Page — système typographique homogène */

.single-product {
	--eh-pp-label-size: 0.6875rem;
	--eh-pp-label-ls: 0.12em;
	--eh-pp-title-size: clamp(1.375rem, 2.2vw, 1.75rem);
	--eh-pp-body-size: 0.9375rem;
	--eh-pp-body-lh: 1.85;
	--eh-pp-body-color: rgba(0, 0, 0, 0.64);
	--eh-pp-muted: rgba(0, 0, 0, 0.42);
	--eh-pp-space-p: 1.35rem;
	--eh-pp-pad-x: clamp(1.5rem, 6vw, 5rem);
}

/* Masquer onglets WooCommerce legacy */
.single-product .woocommerce-tabs.wc-tabs-wrapper {
	display: none !important;
}

.product_infos .product_meta {
	display: none !important;
}

/* ── Pleine largeur sous le produit ── */
.single-product #product,
.single-product .product_layout_classic {
	overflow: visible;
}

.eh-pp-below {
	width: 100vw;
	max-width: 100vw;
	position: relative;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
	margin-top: clamp(3rem, 6vw, 5rem);
	padding-left: var(--eh-pp-pad-x);
	padding-right: var(--eh-pp-pad-x);
	box-sizing: border-box;
}

.eh-pp-below::before {
	content: "";
	display: block;
	width: 100%;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
	margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

/* Réassurance centrée, story en pleine largeur */
.eh-pp-below > .eh-pp-reassurance {
	max-width: min(1240px, 100%);
	margin-left: auto;
	margin-right: auto;
}

.eh-pp-below > .eh-pp-story {
	max-width: none;
	width: 100%;
}

/* ── Accordéons premium ── */
.product_infos .eh-pp-accordions {
	--eh-acc-title: 1rem;
	--eh-acc-body: 0.9375rem;
	--eh-acc-lh: 1.72;
	--eh-acc-muted: rgba(0, 0, 0, 0.58);
	--eh-acc-line: rgba(0, 0, 0, 0.1);
	margin-top: 1.5rem;
	padding-top: 0;
	border-top: none;
	display: flex;
	flex-direction: column;
	gap: 0;
}

/* Une seule ligne entre chaque bloc — pas de double séparateur */
.product_infos .eh-pp-accordion {
	border-top: 1px solid var(--eh-acc-line);
	border-bottom: none;
}

.product_infos .eh-pp-accordion:last-child {
	border-bottom: 1px solid var(--eh-acc-line);
}

/* Reset styles bouton Shopkeeper */
.product_infos .eh-pp-accordion__trigger,
.product_layout_classic .product_infos .eh-pp-accordion__trigger,
.woocommerce .product_infos .eh-pp-accordion__trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 1.25rem 0 !important;
	margin: 0 !important;
	min-height: 0 !important;
	background: none !important;
	background-color: transparent !important;
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	cursor: pointer;
	text-align: left;
	font-family: inherit;
	font-size: var(--eh-acc-title) !important;
	font-weight: 600 !important;
	text-transform: none !important;
	color: #000 !important;
	line-height: 1.35 !important;
	letter-spacing: 0.02em !important;
	transition: color 0.2s ease;
}

.product_infos .eh-pp-accordion__trigger:hover,
.product_infos .eh-pp-accordion__trigger:focus,
.product_infos .eh-pp-accordion__trigger:active,
.product_layout_classic .product_infos .eh-pp-accordion__trigger:hover,
.woocommerce .product_infos .eh-pp-accordion__trigger:hover {
	background: none !important;
	background-color: transparent !important;
	color: rgba(0, 0, 0, 0.55) !important;
	opacity: 1;
}

.product_infos .eh-pp-accordion--open .eh-pp-accordion__trigger,
.product_infos .eh-pp-accordion--open .eh-pp-accordion__trigger .eh-pp-accordion__title {
	color: #000 !important;
}

.product_infos .eh-pp-accordion__title {
	font-size: inherit !important;
	font-weight: inherit !important;
	letter-spacing: inherit !important;
	text-transform: none !important;
	line-height: inherit !important;
	color: inherit !important;
}

.eh-pp-accordion__icon {
	position: relative;
	flex-shrink: 0;
	width: 11px;
	height: 11px;
	margin-left: 1rem;
	opacity: 0.75;
}

.eh-pp-accordion__icon::before,
.eh-pp-accordion__icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	width: 100%;
	height: 1px;
	background: #000;
	transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.eh-pp-accordion__icon::after {
	transform: rotate(90deg);
}

.eh-pp-accordion--open .eh-pp-accordion__icon::after {
	transform: rotate(90deg) scaleX(0);
}

.eh-pp-accordion__panel {
	overflow: hidden;
	max-height: 0;
	opacity: 0;
	transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
}

.eh-pp-accordion__panel[hidden] {
	display: block;
}

.eh-pp-accordion--open .eh-pp-accordion__panel {
	opacity: 1;
}

.product_infos .eh-pp-accordion__inner {
	padding: 0 0 1.375rem;
	font-size: var(--eh-acc-body);
	line-height: var(--eh-acc-lh);
	color: var(--eh-acc-muted);
}

.product_infos .eh-pp-accordion__inner p {
	margin: 0 0 1rem;
}

.product_infos .eh-pp-accordion__inner p:last-child {
	margin-bottom: 0;
}

.eh-pp-accordion__inner > h2 {
	display: none;
}

/* Liens : forcer noir (override thème Shopkeeper) */
.product_infos .eh-pp-accordions a,
.product_infos .eh-pp-accordions a:hover,
.product_infos .eh-pp-accordions a:focus,
.product_infos .eh-pp-accordions a:active,
.eh-pp-below a,
.eh-pp-below a:hover,
.eh-pp-below a:focus,
.eh-pp-below a:active {
	color: #000 !important;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.eh-pp-conseil a {
	font-weight: 600;
}

.eh-pp-accordion__inner table.shop_attributes {
	margin: 0;
	border: none;
}

.product_infos .eh-pp-accordion__inner table.shop_attributes th,
.product_infos .eh-pp-accordion__inner table.shop_attributes td {
	border: none;
	border-bottom: 1px solid rgba(0, 0, 0, 0.05);
	font-size: var(--eh-acc-body);
	line-height: var(--eh-acc-lh);
	color: var(--eh-acc-muted) !important;
	padding: 0.625rem 0;
	background: transparent !important;
}

.product_infos .eh-pp-accordion__inner table.shop_attributes th {
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.04em;
	text-transform: none;
	color: rgba(0, 0, 0, 0.42) !important;
	width: 38%;
}

/* ── Storytelling pleine largeur ── */
.eh-pp-story {
	padding: 0 0 clamp(3.5rem, 7vw, 6rem);
	margin: 0;
	border-top: none;
}

.eh-pp-story__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(2.5rem, 5vw, 5.5rem);
	align-items: center;
	width: 100%;
	max-width: none;
}

.eh-pp-story__media {
	overflow: hidden;
	aspect-ratio: 4 / 5;
	background: #f4f4f4;
}

.eh-pp-story__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.eh-pp-story:hover .eh-pp-story__media img {
	transform: scale(1.02);
}

.eh-pp-story__eyebrow,
.eh-pp-reassurance__title {
	font-size: var(--eh-pp-label-size);
	font-weight: 600;
	letter-spacing: var(--eh-pp-label-ls);
	text-transform: uppercase;
}

.eh-pp-story__eyebrow {
	margin: 0 0 1rem;
	color: var(--eh-pp-muted);
	line-height: 1.45;
}

.eh-pp-story__title {
	margin: 0 0 1.75rem;
	font-size: var(--eh-pp-title-size);
	font-weight: 600;
	line-height: 1.3;
	color: #000;
	letter-spacing: -0.015em;
}

.eh-pp-story__text p,
.eh-pp-reassurance__text {
	font-size: var(--eh-pp-body-size);
	line-height: var(--eh-pp-body-lh);
	color: var(--eh-pp-body-color);
}

.eh-pp-story__text p {
	margin: 0 0 var(--eh-pp-space-p);
}

.eh-pp-story__text p:last-child {
	margin-bottom: 0;
}

.eh-pp-story__text a {
	font-weight: 600;
}

/* ── Réassurance ── */
.eh-pp-reassurance {
	padding-bottom: clamp(3.5rem, 6vw, 5.5rem);
}

.eh-pp-reassurance__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: clamp(1.75rem, 3vw, 2.75rem);
	padding-top: clamp(2.5rem, 4vw, 3.5rem);
	border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.eh-pp-reassurance__icon {
	width: 26px;
	height: 26px;
	margin-bottom: 1.125rem;
	color: #000;
}

.eh-pp-reassurance__icon svg {
	width: 100%;
	height: 100%;
	display: block;
}

.eh-pp-reassurance__title {
	margin: 0 0 0.75rem;
	font-size: var(--eh-pp-label-size) !important;
	font-weight: 600 !important;
	letter-spacing: var(--eh-pp-label-ls) !important;
	text-transform: uppercase !important;
	color: #000 !important;
	line-height: 1.45 !important;
}

.eh-pp-reassurance__text {
	margin: 0;
}

/* ── Animations scroll ── */
.eh-pp-reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1), transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.eh-pp-reveal.eh-pp-reveal--visible {
	opacity: 1;
	transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
	.eh-pp-story__grid {
		gap: 2.5rem;
	}

	.eh-pp-reassurance__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 767px) {
	.single-product {
		--eh-pp-body-size: 0.875rem;
		--eh-pp-space-p: 1.15rem;
		--eh-pp-pad-x: 1.25rem;
	}

	.product_infos .eh-pp-accordions {
		--eh-acc-title: 0.9375rem;
		gap: 0;
		margin-top: 1.25rem;
	}

	.product_infos .eh-pp-accordion__trigger {
		padding: 1.125rem 0 !important;
	}

	.product_infos .eh-pp-accordion__inner {
		font-size: 0.875rem;
	}

	.eh-pp-below {
		margin-top: 2.5rem;
	}

	.eh-pp-below::before {
		margin-bottom: 2rem;
	}

	.eh-pp-story {
		padding-bottom: 2.75rem;
	}

	.eh-pp-story__grid {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.eh-pp-story__media {
		aspect-ratio: 5 / 4;
		order: -1;
	}

	.eh-pp-story__title {
		margin-bottom: 1.35rem;
	}

	.eh-pp-reassurance__grid {
		grid-template-columns: 1fr;
		gap: 1.75rem;
		padding-top: 2rem;
	}
}
