/* ==========================================================================
   Accueil — version 2 (bannière plein écran, manifeste, frise, liste des animaux).
   Chargé après home.css, uniquement sur l'accueil. Animations : home-gsap.js.
   ========================================================================== */

/* Lenis (défilement fluide) : incompatible avec le défilement "smooth" natif */
html.lenis,
html.lenis body {
	height: auto;
	scroll-behavior: auto !important;
}
.lenis.lenis-stopped {
	overflow: clip;
}

.zs-v2-h2 {
	margin: 0;
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(2.3rem, 4.8vw, 4.2rem);
	font-weight: 600;
	line-height: 1.02;
	letter-spacing: -0.025em;
	color: var(--wp--preset--color--primary);
}

/* --------------------------------------------------------------------------
   1. Bannière plein écran
   -------------------------------------------------------------------------- */
.zs-v2-hero {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: calc(100vh - var(--zs-header-h, 150px));
	overflow: hidden;
}
.zs-v2-hero-inner {
	position: relative;
	z-index: 1;
	box-sizing: border-box;
	display: grid;
	grid-template-columns: 1.08fr 0.92fr;
	align-items: center;
	gap: 56px;
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	padding: 40px 40px 120px;
}
.zs-v2-hero-text > * {
	margin: 0;
}
.zs-v2-hero-text > * + * {
	margin-top: 20px;
}
.zs-v2-hero .zs-v2-title {
	font-size: clamp(2.6rem, min(4.6vw, 8.2vh), 5rem);
	line-height: 1.02;
	letter-spacing: -0.032em;
}
.zs-v2-lead {
	max-width: 500px;
	font-size: 1.15rem;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.9) !important;
}
.zs-v2-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	padding-top: 6px;
}

/* Visuel : photo + éventail de photos produits + badges */
.zs-v2-visual {
	position: relative;
	justify-self: center;
	width: min(430px, 100%, 56vh);
}
.zs-v2-photo {
	position: relative;
	z-index: 1;
}
.zs-v2-visual .zs-photo {
	width: 100%;
	height: auto;
	aspect-ratio: 1;
}
.zs-v2-fan {
	position: absolute;
	inset: 0;
	z-index: 0;
}
.zs-v2-card {
	position: absolute;
	width: 42%;
	aspect-ratio: 1;
}
.zs-v2-card img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 24px;
	border: 6px solid rgba(255, 255, 255, 0.95);
	box-shadow: 0 26px 50px rgba(10, 25, 12, 0.35);
	transition: rotate 0.6s cubic-bezier(0.22, 1, 0.36, 1), scale 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.zs-v2-card.c1 { top: -16%; right: -26%; }
.zs-v2-card.c1 img { rotate: 10deg; }
.zs-v2-card.c2 { bottom: -12%; right: -20%; }
.zs-v2-card.c2 img { rotate: -8deg; }
.zs-v2-card.c3 { top: 46%; left: -9%; } /* reste dans sa colonne : ne mord plus sur le titre */
.zs-v2-card.c3 img { rotate: -12deg; }
.zs-v2-visual:hover .zs-v2-card img {
	rotate: 0deg;
	scale: 1.04;
}
.zs-v2-visual .zs-float { z-index: 2; }
.zs-v2-visual .zs-float-1 { top: 2%; left: -12%; }
.zs-v2-visual .zs-float-3 { bottom: 2%; left: 4%; }

/* Invitation à défiler */
.zs-v2-scroll {
	position: absolute;
	left: 50%;
	bottom: 78px;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	transform: translateX(-50%);
	color: rgba(255, 255, 255, 0.75);
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}
.zs-v2-scroll i {
	position: relative;
	width: 1px;
	height: 42px;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.25);
}
.zs-v2-scroll i::after {
	content: "";
	position: absolute;
	left: 0;
	top: -100%;
	width: 1px;
	height: 100%;
	background: #fff;
	animation: zs-scroll-hint 2s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
@keyframes zs-scroll-hint {
	to { top: 100%; }
}
.zs-v2-hero .zs-wave {
	position: absolute;
	bottom: -1px;
	left: 0;
	margin-left: 0;
	width: 100%;
	z-index: 1;
}

/* --------------------------------------------------------------------------
   3. Manifeste (le texte "s'écrit" au défilement)
   -------------------------------------------------------------------------- */
.wp-site-blocks > .wp-block-group.alignwide.zs-v2-manifesto {
	max-width: calc(1120px + 48px);
	padding-top: 110px;
	padding-bottom: 90px;
}
.zs-v2-manifesto > * {
	margin-top: 0;
	margin-bottom: 0;
}
.zs-v2-manifesto-text {
	margin: 20px 0 36px !important;
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(1.9rem, 3.9vw, 3.5rem);
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -0.015em;
	color: var(--wp--preset--color--primary);
}
.zs-v2-manifesto-text em {
	font-style: italic;
	color: var(--wp--preset--color--accent);
}
.zs-v2-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding-bottom: 4px;
	border-bottom: 1.5px solid var(--wp--preset--color--accent);
	color: var(--wp--preset--color--primary);
	font-weight: 600;
	text-decoration: none;
	transition: color 0.25s ease, gap 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.zs-v2-link:hover {
	gap: 16px;
	color: var(--wp--preset--color--accent);
}

/* --------------------------------------------------------------------------
   4. "De la plante au pot"
   -------------------------------------------------------------------------- */
.zs-v2-process-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
}
.zs-v2-process-head .zs-section-label {
	display: block;
	margin-bottom: 8px;
}
.zs-v2-counter {
	margin: 0;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.4rem;
	color: var(--wp--preset--color--primary-light);
	white-space: nowrap;
}
.zs-v2-counter-now {
	display: inline-block;
	font-size: 2.6rem;
	font-weight: 600;
	color: var(--wp--preset--color--accent);
}
.zs-home-process .zs-process {
	margin-top: 32px;
}
.zs-v2-step-img {
	display: none;
}
.zs-process.is-pinned .zs-step {
	flex-basis: 460px;
	padding: 18px 18px 30px;
}
.zs-process.is-pinned .zs-step > *:not(.zs-v2-step-img) {
	margin-left: 16px;
	margin-right: 16px;
}
.zs-process.is-pinned .zs-v2-step-img {
	display: block;
	width: 100%;
	height: min(250px, 28vh);
	object-fit: cover;
	margin: 0 0 22px !important;
	border-radius: 18px;
}
.zs-process.is-pinned .zs-step-dot {
	display: none;
}
.zs-process.is-pinned .zs-step-num {
	top: 30px;
	right: 34px;
	color: #fff;
	text-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}
.zs-process.is-pinned .zs-step h3 {
	margin-top: 0;
}

/* Titre de la section : "De la plante au pot" puis, quand les avis arrivent, "L'avis de nos clients" */
.zs-v2-heads {
	display: grid;
}
.zs-v2-head {
	grid-area: 1 / 1;
	transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.zs-v2-head-reviews {
	opacity: 0;
	transform: translateY(18px);
	pointer-events: none;
}
.zs-v2-process-head.is-reviews .zs-v2-head-steps {
	opacity: 0;
	transform: translateY(-18px);
}
.zs-v2-process-head.is-reviews .zs-v2-head-reviews {
	opacity: 1;
	transform: none;
}
.zs-v2-counter {
	transition: opacity 0.4s ease;
}
.zs-v2-process-head.is-reviews .zs-v2-counter {
	opacity: 0;
}

/* Galerie : étapes + avis à la suite */
.zs-v2-track-reviews {
	display: grid;
	max-width: 420px;
	margin-top: 32px;
}
.zs-v2-score {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 8px;
	padding: 30px 28px;
	border-radius: 26px;
	background: linear-gradient(135deg, #3F5641 0%, #55704A 60%, #7C9473 100%);
	color: rgba(255, 255, 255, 0.85);
	text-decoration: none;
	transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease;
}
.zs-v2-score strong {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 4.4rem;
	line-height: 1;
	color: #fff;
}
.zs-v2-score .zs-stars {
	font-size: 1.4rem;
}
.zs-v2-score-link {
	margin-top: 10px;
	font-weight: 600;
	color: #fff;
}
.zs-v2-score:hover {
	transform: translateY(-6px);
	box-shadow: 0 22px 48px rgba(63, 86, 65, 0.3);
}

.zs-process.is-pinned .zs-v2-track {
	display: flex;
	gap: 28px;
	width: max-content;
	will-change: transform;
}
.zs-process.is-pinned .zs-steps {
	will-change: auto;
}
/* Une seule rangée pour les 5 cartes, avec des largeurs FIXES (width, pas flex-basis) :
   Firefox calcule sinon la largeur d'une rangée imbriquée d'après le texte non coupé,
   ce qui créait un grand vide invisible après la carte 04. */
.zs-process.is-pinned .zs-steps {
	display: contents;
}
.zs-process.is-pinned .zs-step {
	flex: none;
	width: 460px;
}
/* 5e carte : la note Google, juste après l'étape 04 */
.zs-process.is-pinned .zs-v2-track-reviews {
	display: flex;
	flex: none;
	max-width: none;
	margin-top: 0;
}
.zs-process.is-pinned .zs-v2-score {
	flex: none;
	width: 360px;
	padding: 34px 34px 30px;
}
.zs-process.is-pinned .zs-v2-track-reviews .zs-review {
	flex: 0 0 380px;
	padding: 34px 32px 28px;
}
.zs-process.is-pinned .zs-v2-track-reviews .zs-review-featured {
	flex-basis: 480px;
}
.zs-process.is-pinned .zs-v2-track-reviews .zs-review blockquote {
	font-size: 1.3rem;
}

/* --------------------------------------------------------------------------
   5. Chiffres clés sur bandeau vert foncé
   -------------------------------------------------------------------------- */
.zs-v2-stats-band {
	margin-top: 48px !important;
	padding: 76px 24px;
	background: linear-gradient(135deg, #34493A 0%, #3F5641 50%, #55704A 100%);
}
.zs-v2-stats-band .zs-stats {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0;
	background: transparent;
	box-shadow: none;
}
.zs-v2-stats-band .zs-stat-num {
	font-size: clamp(2.8rem, 5.5vw, 4.6rem);
	color: #fff;
}
.zs-v2-stats-band .zs-stat-label {
	color: rgba(255, 255, 255, 0.72);
	font-size: 0.95rem;
}
.zs-v2-stats-band .zs-stat + .zs-stat {
	border-left-color: rgba(255, 255, 255, 0.16);
}

/* --------------------------------------------------------------------------
   6. "Pour quel animal ?" — onglets + produits les plus vendus
   -------------------------------------------------------------------------- */
.zs-v3-animals {
	margin-top: 28px;
}
.zs-v3-tabs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
}
.zs-v3-tab {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 10px 18px 10px 12px;
	border: 1.5px solid rgba(63, 86, 65, 0.14);
	border-radius: 999px;
	background: var(--wp--preset--color--surface);
	font-family: inherit;
	font-size: 0.98rem;
	font-weight: 600;
	color: var(--wp--preset--color--primary);
	cursor: pointer;
	transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.zs-v3-tab-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: linear-gradient(135deg, rgba(124, 148, 115, 0.2), rgba(194, 123, 160, 0.2));
	font-size: 1.15rem;
	transition: background 0.3s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.zs-v3-tab-count {
	padding: 1px 8px;
	border-radius: 999px;
	background: var(--wp--preset--color--background);
	font-size: 0.75rem;
	color: var(--wp--preset--color--primary-light);
	transition: background 0.3s ease, color 0.3s ease;
}
.zs-v3-tab:hover {
	border-color: var(--wp--preset--color--accent);
	transform: translateY(-2px);
}
.zs-v3-tab:hover .zs-v3-tab-icon {
	transform: rotate(-10deg) scale(1.1);
}
.zs-v3-tab[aria-selected="true"] {
	background: var(--wp--preset--color--primary);
	border-color: var(--wp--preset--color--primary);
	color: #fff;
	box-shadow: 0 10px 24px rgba(63, 86, 65, 0.25);
}
.zs-v3-tab[aria-selected="true"] .zs-v3-tab-icon {
	background: rgba(255, 255, 255, 0.16);
}
.zs-v3-tab[aria-selected="true"] .zs-v3-tab-count {
	background: rgba(255, 255, 255, 0.18);
	color: #fff;
}

.zs-v3-panel {
	margin-top: 32px;
}
.zs-v3-panel[hidden] {
	display: none;
}
.zs-v3-products {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 22px;
}
.zs-v3-product {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 12px 12px 18px;
	border-radius: 20px;
	background: var(--wp--preset--color--surface);
	box-shadow: 0 2px 8px rgba(43, 43, 38, 0.06);
	text-decoration: none;
	text-align: center;
	color: var(--wp--preset--color--primary);
	transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease;
}
.zs-v3-product-img {
	display: block;
	overflow: hidden;
	margin-bottom: 8px;
	border-radius: 14px;
	aspect-ratio: 1;
}
.zs-v3-product-img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.zs-v3-product-name {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.08rem;
	font-weight: 600;
	line-height: 1.3;
	transition: color 0.25s ease;
}
.zs-v3-product-price {
	font-size: 0.92rem;
	font-weight: 600;
	color: var(--wp--preset--color--accent);
}
.zs-v3-product-price del {
	opacity: 0.5;
	font-weight: 400;
}
.zs-v3-product:hover {
	transform: translateY(-6px);
	box-shadow: 0 20px 44px rgba(63, 86, 65, 0.16);
}
.zs-v3-product:hover .zs-v3-product-img img {
	transform: scale(1.07);
}
.zs-v3-product:hover .zs-v3-product-name {
	color: var(--wp--preset--color--accent);
}
.zs-v3-more {
	margin: 28px 0 0;
	text-align: center;
}

/* --------------------------------------------------------------------------
   Masquage avant animation (mode GSAP)
   -------------------------------------------------------------------------- */
.zs-gsap .zs-v2-card,
.zs-gsap .zs-v2-scroll {
	visibility: hidden;
}

/* --------------------------------------------------------------------------
   Tablette / mobile
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
	.zs-v2-hero-inner {
		gap: 32px;
		padding-left: 28px;
		padding-right: 28px;
	}
	.zs-v2-card.c1 { right: -8%; }
	.zs-v2-card.c2 { right: -6%; }
	.zs-v2-card.c3 { left: -4%; }
}
@media (max-width: 860px) {
	.zs-v2-hero {
		min-height: 0;
	}
	.zs-v2-hero-inner {
		grid-template-columns: 1fr;
		text-align: center;
		padding: 48px 20px 120px;
	}
	.zs-v2-hero-text {
		display: flex;
		flex-direction: column;
		align-items: center;
	}
	.zs-v2-actions {
		justify-content: center;
	}
	.zs-v2-visual {
		width: min(300px, 78vw);
		margin-top: 16px;
	}
	.zs-v2-card { width: 34%; }
	.zs-v2-card.c3 { display: none; }
	.zs-v2-scroll { display: none; }
	.zs-v2-process-head {
		align-items: flex-start;
		flex-direction: column;
		gap: 4px;
	}
	.zs-v2-counter { display: none; }
	.zs-v3-tabs {
		flex-wrap: nowrap;
		justify-content: flex-start;
		overflow-x: auto;
		margin: 0 -20px;
		padding: 4px 20px 10px;
		scrollbar-width: none;
	}
	.zs-v3-tabs::-webkit-scrollbar {
		display: none;
	}
	.zs-v3-tab {
		flex: 0 0 auto;
	}
	.zs-v3-products {
		grid-template-columns: repeat(2, 1fr);
		gap: 14px;
	}
	.zs-v3-product-name {
		font-size: 0.95rem;
	}
	.zs-v2-stats-band {
		padding: 56px 16px;
	}
}
@media (max-width: 560px) {
	.zs-v2-hero .zs-v2-title {
		font-size: clamp(2.3rem, 10vw, 2.9rem);
	}
	.wp-site-blocks > .wp-block-group.alignwide.zs-v2-manifesto {
		padding-top: 72px;
		padding-bottom: 56px;
	}
}

/* Le texte de la bannière passe toujours au-dessus des photos de l'éventail */
.zs-v2-hero-text {
	position: relative;
	z-index: 2;
}
.zs-v2-visual {
	z-index: 1;
}
