/*
 * Zarboutan Matériaux — finition visuelle et mobile.
 * Couche finale volontairement séparée afin de rester simple à ajuster
 * après validation sur la copie locale.
 */

/* Les deux scènes immersives restent présentes, mais demandent moins de
 * défilement avant d'accéder aux catégories et aux produits. */
@media (min-width: 769px) {
	.home .zbi-scene {
		height: 150vh;
	}

	.home .zbi-scene--terrasse {
		height: 120vh;
	}
}

/* Cartes produits : hauteur régulière, image carrée et action toujours
 * alignée en bas. Le visiteur compare plus facilement les produits. */
.home .woocommerce ul.products li.product {
	display: flex;
	flex-direction: column;
}

.home .woocommerce ul.products li.product figure,
.home .woocommerce ul.products li.product .ct-media-container,
.home .woocommerce ul.products li.product picture {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
}

.home .woocommerce ul.products li.product img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	aspect-ratio: 1 / 1 !important;
	object-fit: cover;
}

.home .woocommerce ul.products li.product .woocommerce-loop-product__title {
	min-height: 2.7em;
	margin-bottom: 8px;
	line-height: 1.35;
}

.home .woocommerce ul.products li.product .price {
	font-size: 1.05rem;
	font-weight: 800;
	color: var(--zb-accent-deep, #237a3d);
}

.home .woocommerce ul.products li.product .ct-woo-card-actions {
	margin-top: auto;
	padding-top: 14px;
}

.home .woocommerce ul.products li.product .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	text-align: center;
}

/* Mobile : scènes plus courtes, texte mieux contenu et CTA empilés. */
@media (max-width: 768px), (hover: none), (pointer: coarse) {
	.home .zbi-scene {
		height: 112vh;
	}

	.home .zbi-scene--terrasse {
		height: 100vh;
	}

	.home .zbi-content {
		padding: max(82px, env(safe-area-inset-top)) 18px max(30px, env(safe-area-inset-bottom));
	}

	.home .zbi-content h1,
	.home .zbi-content h2 {
		max-width: 18ch;
		font-size: clamp(28px, 8vw, 34px);
		line-height: 1.08;
	}

	.home .zbi-content > p:not(.zbi-trust-line) {
		max-width: 32ch;
		font-size: clamp(15px, 4.1vw, 18px);
		line-height: 1.5;
		margin-bottom: 20px;
	}

	.home .zbi-content .zbi-signature {
		max-width: 32ch;
		font-size: 15px;
		line-height: 1.45;
	}

	.home .zbi-content .zbi-ctas {
		display: grid;
		width: min(100%, 340px);
		gap: 10px;
		margin-top: 2px;
	}

	.home .zbi-content .zbi-ctas a {
		display: flex;
		width: 100%;
		min-height: 48px;
		margin: 0;
		padding: 12px 16px;
	}

	.home .zbi-content .zbi-trust-line {
		max-width: 34ch;
		line-height: 1.45;
	}

	/* Le pointeur Zako du premier écran disparaît sur téléphone. Les mascottes
	 * utiles présentes dans les sections restent affichées. */
	.home #zako-mascot {
		display: none !important;
	}

	.home .woocommerce ul.products[data-products] {
		gap: 14px !important;
	}

	.home .woocommerce ul.products li.product {
		padding-bottom: 14px;
	}

	.home .woocommerce ul.products li.product .woocommerce-loop-product__title,
	.home .woocommerce ul.products li.product .price,
	.home .woocommerce ul.products li.product .entry-meta,
	.home .woocommerce ul.products li.product .ct-woo-card-actions {
		padding-left: 12px;
		padding-right: 12px;
	}

	.home .woocommerce ul.products li.product .entry-meta {
		display: none;
	}

	.home .woocommerce ul.products li.product .woocommerce-loop-product__title {
		min-height: 2.8em;
		font-size: 13.5px;
	}

	.home .woocommerce ul.products li.product .price {
		font-size: 15px;
	}

	.home .woocommerce ul.products li.product .button {
		min-height: 44px;
		padding: 10px 8px;
		font-size: 13px;
		line-height: 1.2;
	}
}

/* Aucun mouvement supplémentaire pour les personnes qui le désactivent. */
@media (prefers-reduced-motion: reduce) {
	.home .zbi-scene,
	.home .zbi-scene--terrasse {
		height: 100vh;
	}
}
