/* ==========================================================================
   Page d'accueil v6 – complète la CSS compilée du thème (dist/css).
   Chargée uniquement sur la page d'accueil (inc/home-fields.php).
   Couleurs = variables SCSS du thème (tools/_variables.scss).
   ========================================================================== */

.hp {
	--hp-blue: #424669;
	--hp-red: #e83d41;
	--hp-pink: #f8d5c4;
	--hp-lightpink: #fef2ed;
	--hp-white: #fff;
	--hp-heading: "Peignot LT W05 Bold", Times, sans-serif;
	color: var(--hp-blue);
}

/* Sections & titres
   -------------------------------------------------------------------------- */
.hp-section {
	padding: 5rem 0;
	background-color: var(--hp-pink);
}

.hp-section--white {
	background-color: var(--hp-white);
}

.hp-header {
	margin-bottom: 2.5rem;
}

.hp-eyebrow {
	margin: 0 0 0.75rem;
	font-family: var(--hp-heading);
	font-size: 0.8rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--hp-red);
}

.hp .hp-title {
	margin: 0;
	font-family: var(--hp-heading);
	font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.25rem);
	line-height: 1.1;
	text-transform: uppercase;
	color: var(--hp-blue);
}

.hp .hp-title--big {
	margin-bottom: 1.5rem;
	font-size: clamp(2rem, 1.3rem + 2.4vw, 3rem);
}

.hp-richtext p:last-child {
	margin-bottom: 0;
}

.hp-richtext a,
.hp-faq__answer a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.hp-richtext a:hover,
.hp-faq__answer a:hover {
	color: var(--hp-red);
}

/* Boutons : variante contour (absente du thème)
   -------------------------------------------------------------------------- */
.hp .btn--outline {
	background-color: transparent;
	color: var(--hp-blue);
	box-shadow: inset 0 0 0 2px var(--hp-blue);
}

.hp .btn--outline:hover,
.hp .btn--outline:focus-visible {
	color: var(--hp-white);
}

.hp .btn:focus-visible,
.hp-pill:focus-visible,
.hp-shopnav__card:focus-visible,
.hp-artists__item:focus-visible,
.hp-faq__question:focus-visible {
	outline: 2px solid var(--hp-red);
	outline-offset: 3px;
}

.hp-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

/* 1. Hero
   -------------------------------------------------------------------------- */
.hp-hero .page-header {
	padding-bottom: 1rem;
}

.hp-hero__text {
	max-width: 32rem;
	font-size: 1.05rem;
	line-height: 1.5;
}

/* 2. Best-sellers
   -------------------------------------------------------------------------- */
.hp-products {
	padding-top: 2rem;
}

.hp-products .products-list {
	margin-bottom: 1.5rem;
}

/* 3. Navigation boutique
   -------------------------------------------------------------------------- */
.hp .hp-shopnav__styles {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1rem;
	margin: 0 0 3rem;
	padding: 0;
	list-style: none;
}

/* Carte sans illustration : on retire le carré vide. */
.hp-shopnav__card--noimg {
	justify-content: center;
	min-height: 5.5rem;
}

.hp-shopnav__card {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 1rem;
	border-radius: 6px;
	background-color: var(--hp-lightpink);
	color: var(--hp-blue);
	text-decoration: none;
	transition: background-color 0.3s ease, transform 0.3s ease;
}

.hp-shopnav__card:hover {
	background-color: var(--hp-pink);
	color: var(--hp-blue);
	transform: translateY(-3px);
}

.hp-shopnav__img {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1 / 1;
	margin-bottom: 0.75rem;
}

.hp-shopnav__img img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	mix-blend-mode: multiply;
}

.hp-shopnav__label {
	font-weight: 700;
	font-size: 0.9rem;
	text-align: center;
}

.hp-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hp-pill {
	display: inline-block;
	padding: 0.5rem 1.1rem;
	border: 2px solid var(--hp-blue);
	border-radius: 999px;
	font-weight: 700;
	font-size: 0.875rem;
	line-height: 1.2;
	color: var(--hp-blue);
	text-decoration: none;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.hp-pill:hover {
	background-color: var(--hp-blue);
	color: var(--hp-white);
}

/* 4. Présentation
   -------------------------------------------------------------------------- */
.hp-intro__picture img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 560px;
	object-fit: cover;
	border-radius: 6px;
}

/* 5. Deux offres
   -------------------------------------------------------------------------- */
.hp-offers {
	padding-bottom: 3rem;
}

.hp-card {
	height: 100%;
	padding: 2rem;
	border-radius: 6px;
	background-color: var(--hp-lightpink);
}

.hp .hp-card__title {
	margin: 0 0 0.75rem;
	font-family: var(--hp-heading);
	font-size: 1.4rem;
	text-transform: uppercase;
	color: var(--hp-blue);
}

.hp-card p:not(.hp-eyebrow) {
	margin-bottom: 1.5rem;
}

/* 6. Réassurance
   -------------------------------------------------------------------------- */
.hp-reassurance {
	padding: 1rem 0 4rem;
	background-color: var(--hp-pink);
	border-bottom: 1px solid rgba(66, 70, 105, 0.15);
}

.hp-reassurance__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.hp-reassurance__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 72px;
	margin-bottom: 1rem;
}

.hp-reassurance__icon img {
	width: 72px;
	height: 72px;
	object-fit: contain;
}

.hp .hp-reassurance__title {
	margin-bottom: 0.5rem;
	font-family: var(--hp-heading);
	font-size: 1rem;
	text-transform: uppercase;
	color: var(--hp-blue);
}

.hp-reassurance p {
	max-width: 22rem;
	margin: 0 auto;
	font-size: 0.9rem;
}

/* 7. Artistes
   -------------------------------------------------------------------------- */
.hp-artists__list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 2.5rem 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hp-artists__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	color: var(--hp-blue);
	text-decoration: none;
}

.hp-artists__avatar {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 140px;
	height: 140px;
	overflow: hidden;
	border-radius: 18px;
	background-color: var(--hp-lightpink);
	box-shadow: 0 6px 18px rgba(66, 70, 105, 0.12);
	transition: transform 0.3s ease;
}

.hp-artists__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hp-artists__item:hover .hp-artists__avatar {
	transform: translateY(-4px) rotate(-2deg);
}

.hp-artists__name {
	font-family: var(--hp-heading);
	font-size: 1rem;
	text-align: center;
	text-transform: uppercase;
}

.hp-artists__item:hover .hp-artists__name {
	color: var(--hp-red);
}

/* 8. Comment ça marche
   -------------------------------------------------------------------------- */
.hp-steps__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.hp-steps__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 110px;
	margin-bottom: 1rem;
}

.hp-steps__icon img {
	width: 110px;
	height: 110px;
	object-fit: contain;
}

.hp-steps__number {
	display: block;
	font-family: var(--hp-heading);
	font-size: 1.75rem;
	color: var(--hp-red);
}

.hp .hp-steps__title {
	margin: 0.25rem 0 0.5rem;
	font-family: var(--hp-heading);
	font-size: 1.1rem;
	text-transform: uppercase;
	color: var(--hp-blue);
}

.hp-steps p {
	max-width: 18rem;
	margin: 0 auto;
	font-size: 0.95rem;
}

/* 9. B2B
   -------------------------------------------------------------------------- */
.hp-b2b__box {
	padding: 3.5rem;
	border-radius: 8px;
	background-color: var(--hp-red);
	color: var(--hp-white);
}

.hp-b2b .hp-eyebrow {
	color: var(--hp-pink);
}

.hp-b2b .hp-title {
	margin-bottom: 1.5rem;
	color: var(--hp-white);
}

.hp-b2b .hp-richtext {
	max-width: 40rem;
	margin-bottom: 1.5rem;
}

.hp-b2b .hp-pills {
	margin-bottom: 2rem;
}

.hp-pills--light .hp-pill {
	border-color: rgba(255, 255, 255, 0.55);
	background-color: rgba(255, 255, 255, 0.08);
	color: var(--hp-white);
	font-weight: 500;
}

.hp-pills--light .hp-pill:hover {
	border-color: var(--hp-white);
	background-color: var(--hp-white);
	color: var(--hp-red);
}

.hp-b2b__picto {
	width: 100%;
	max-width: 260px;
	height: auto;
}

/* 10. Avis + logos
   -------------------------------------------------------------------------- */
.hp-reviews {
	padding-bottom: 3rem;
	background-color: var(--hp-lightpink);
}

.hp-review {
	height: 100%;
	margin: 0;
}

.hp-review__stars {
	margin-bottom: 0.75rem;
	letter-spacing: 0.15em;
	color: var(--hp-red);
}

.hp-review blockquote {
	margin: 0 0 1rem;
	font-style: italic;
	font-size: 0.95rem;
	line-height: 1.55;
}

.hp-review figcaption {
	font-weight: 700;
	font-size: 0.9rem;
}

.hp .hp-reviews .hp-logos {
	margin-top: 4rem;
	background: transparent;
}

.hp-logos__marquee {
	overflow: hidden;
	padding: 1.5rem 0 0;
}

.hp-logos__track {
	display: flex;
	width: max-content;
	animation: hp-logos-defile var(--hp-logos-duration, 75s) linear infinite;
}

.hp-logos__marquee:hover .hp-logos__track {
	animation-play-state: paused;
}

.hp .hp-logos__list {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hp-logos__list li {
	flex-shrink: 0;
	padding: 0 2rem;
}

.hp-logos__list img {
	display: block;
	width: auto;
	max-width: 170px;
	height: auto;
	max-height: 80px;
	mix-blend-mode: multiply;
}

@keyframes hp-logos-defile {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(-50%);
	}
}

/* 11. FAQ
   -------------------------------------------------------------------------- */
.hp-faq__list {
	border-top: 1px solid rgba(66, 70, 105, 0.2);
}

.hp-faq__item {
	border-bottom: 1px solid rgba(66, 70, 105, 0.2);
}

.hp-faq__question {
	position: relative;
	display: block;
	padding: 1.25rem 0 1.25rem 2rem;
	font-family: var(--hp-heading);
	font-size: 1.1rem;
	text-transform: uppercase;
	color: var(--hp-blue);
	list-style: none;
	cursor: pointer;
	transition: color 0.3s ease;
}

.hp-faq__question::-webkit-details-marker {
	display: none;
}

.hp-faq__question::before,
.hp-faq__question::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	width: 14px;
	height: 2px;
	margin-top: -1px;
	border-radius: 2px;
	background-color: currentColor;
	transition: transform 0.4s ease;
}

.hp-faq__question::after {
	transform: rotate(90deg);
}

.hp-faq__item[open] .hp-faq__question,
.hp-faq__question:hover {
	color: var(--hp-red);
}

.hp-faq__item[open] .hp-faq__question::after {
	transform: rotate(0deg);
}

.hp-faq__answer {
	padding: 0 0 1.5rem 2rem;
	max-width: 52rem;
}

.hp-faq__answer p:last-child {
	margin-bottom: 0;
}

/* Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
	.hp-section {
		padding: 3.5rem 0;
	}

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

	.hp-b2b__box {
		padding: 2.5rem 1.75rem;
	}
}

@media (max-width: 767px) {
	.hp-header {
		margin-bottom: 1.75rem;
	}

	.hp-buttons .btn {
		width: 100%;
	}

	.hp-artists__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 2rem 1rem;
	}

	.hp-artists__avatar {
		width: 110px;
		height: 110px;
	}

	.hp-card {
		padding: 1.5rem;
	}

	.hp-faq__question {
		font-size: 0.95rem;
	}

	.hp .hp-reviews .hp-logos {
		margin-top: 2.5rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hp-shopnav__card,
	.hp-artists__avatar,
	.hp-faq__question::after {
		transition: none;
	}

	.hp-logos__track {
		animation: none;
		flex-wrap: wrap;
		justify-content: center;
		width: auto;
	}

	.hp-logos__list[aria-hidden="true"] {
		display: none;
	}
}
