/* ==========================================================================
   Lalazina – homepage
   Hero slider, trust strip, category tiles, "Nos sélections", "Notre maison",
   category showcase, testimonials. Logical properties; --dir mirrors motion in RTL.
   ========================================================================== */

.site-main--home {
	--dir: 1;
	--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
	--ease-soft: cubic-bezier(0.2, 0.7, 0.2, 1);
}

[dir="rtl"] .site-main--home {
	--dir: -1;
}

/* The footer follows the last section directly. */
.home .site-footer {
	margin-block-start: 0;
}

/* Shared ------------------------------------------------------------------ */

.home-section {
	padding-block: 110px;
}

.home-head {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	margin-block-end: 48px;
	text-align: center;
}

.home-head .eyebrow,
.site-main--home .eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	margin: 0;
	color: var(--color-accent);
	font-size: 0.75rem;
	letter-spacing: 0.22em;
}

[dir="rtl"] .site-main--home .eyebrow {
	font-size: var(--step--1);
	letter-spacing: 0;
}

.site-main--home .eyebrow::before {
	inline-size: 28px;
	margin: 0;
	background: currentColor;
}

.eyebrow--center::after {
	content: "";
	inline-size: 28px;
	block-size: 1px;
	background: currentColor;
}

.home-title {
	margin: 0;
	font-size: clamp(2.125rem, 4vw, 3.375rem);
	font-weight: 400;
	line-height: 1.05;
}

[dir="rtl"] .home-title {
	line-height: 1.35;
}

.home-intro {
	max-inline-size: 520px;
	margin: 0;
	color: var(--color-muted);
	font-size: 1rem;
	line-height: 1.7;
}

.home-more {
	display: flex;
	justify-content: center;
	margin-block-start: 52px;
}

/* Buttons: an ink (or white) layer slides up on hover. */
.btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-block-size: 52px;
	padding: 0 32px;
	overflow: hidden;
	isolation: isolate;
	border: 0;
	font-family: var(--font-sans);
	font-size: 0.78125rem;
	font-weight: 600;
	letter-spacing: 0.2em;
	line-height: 1;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	cursor: pointer;
}

[dir="rtl"] .btn {
	font-size: var(--step--1);
	letter-spacing: 0;
}

.btn::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	transform: translateY(101%);
	transition: transform 0.5s var(--ease-soft);
}

.btn:hover::before {
	transform: none;
}

.btn-primary,
.btn-gold {
	background: var(--brand-orange);
	color: var(--color-ink);
}

.btn-primary::before {
	background: var(--color-ink);
}

.btn-primary:hover {
	color: var(--brand-yellow);
}

.btn-gold::before {
	background: #fff;
}

.btn-gold:hover {
	color: var(--color-ink);
}

.hs-cta {
	border-radius: var(--radius-pill);
	padding-inline: 30px;
}

.hs-cta .icon {
	transition: translate 0.4s var(--ease-soft);
}

.hs-cta:hover .icon {
	translate: calc(5px * var(--dir)) 0;
}

.link-arrow--light {
	color: var(--color-on-dark);
}

.link-arrow--light:hover {
	color: var(--brand-saffron);
}

.site-main--home :focus-visible {
	outline-color: var(--color-accent);
}

/* Scroll reveals: progressive. Without view timelines everything is simply visible. */
@supports (animation-timeline: view()) {
	/* Finished as soon as the element is fully on screen, so nothing stays half-faded. */
	.rv {
		animation: med-rv linear both;
		animation-timeline: view();
		animation-range: entry 0% entry 100%;
	}

	.rv-start {
		animation: med-rv-start linear both;
		animation-timeline: view();
		animation-range: entry 0% cover 35%;
	}

	.grow-x {
		animation: med-grow-x linear both;
		animation-timeline: view();
		animation-range: entry 20% cover 45%;
	}
}

@keyframes med-rv {
	from { opacity: 0; transform: translateY(48px); }
	to { opacity: 1; transform: none; }
}

@keyframes med-rv-start {
	from { opacity: 0; transform: translateX(calc(-70px * var(--dir))); }
	to { opacity: 1; transform: none; }
}

@keyframes med-grow-x {
	from { transform: scaleX(0); }
	to { transform: scaleX(1); }
}

@keyframes med-fade {
	from { opacity: 0; transform: translateY(16px); }
	to { opacity: 1; transform: none; }
}

@keyframes med-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-10px); }
}

/* Hero slider ------------------------------------------------------------ */

.hs {
	position: relative;
	padding-block: 64px 40px;
	overflow: hidden;
}

/* Every slide sits in the same grid cell: the stage keeps the height of the tallest one (no shift). */
.hs-stage {
	display: grid;
}

.hs-slide {
	grid-area: 1 / 1;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	grid-template-areas: "t a" "c a";
	grid-template-rows: 1fr 1fr;
	column-gap: 56px;
	row-gap: 34px;
	min-block-size: 620px;
	visibility: hidden;
	opacity: 0;
	transition: opacity 0.45s ease, visibility 0s linear 0.45s;
}

.hs-slide.is-active {
	visibility: visible;
	opacity: 1;
	transition: opacity 0.45s ease;
}

.hs-text {
	grid-area: t;
	align-self: end;
	display: flex;
	flex-direction: column;
	gap: 28px;
	padding-inline-start: 40px;
}

.hs-pill {
	align-self: flex-start;
	padding: 10px 20px;
	border-radius: var(--radius-pill);
	background: var(--brand-yellow);
	color: var(--color-ink);
	font-size: 0.875rem;
	letter-spacing: 0.04em;
	line-height: 1.2;
}

.hs-title {
	margin: 0;
	font-size: clamp(2.875rem, 5.8vw, 5.375rem);
	font-weight: 500;
	line-height: 1.02;
	letter-spacing: -0.01em;
}

.hs-title span,
.hs-title em {
	display: block;
}

.hs-title em {
	color: var(--color-accent);
}

[dir="rtl"] .hs-title {
	font-size: clamp(2.25rem, 4.6vw, 4.25rem);
	line-height: 1.3;
}

[dir="rtl"] .hs-title em {
	font-style: normal;
}

.hs-lead {
	max-inline-size: 470px;
	margin: 0;
	color: var(--color-muted);
	font-size: 1.0625rem;
	line-height: 1.75;
}

.hs-art {
	grid-area: a;
	align-self: center;
	position: relative;
	block-size: 600px;
}

.hs-circle {
	position: absolute;
	inset-inline-start: 50%;
	inset-block-end: 30px;
	inline-size: 480px;
	block-size: 480px;
	margin-inline-start: -240px;
	border-radius: 50%;
	background: var(--zellige-light), var(--circle, var(--brand-orange));
}

.hs-circle--dark {
	background: var(--zellige-dark), var(--circle, var(--color-ink));
}

.hs-product {
	position: absolute;
	inset-inline-start: 50%;
	inset-block-end: 70px;
	inline-size: 320px;
	block-size: 480px;
	margin-inline-start: -160px;
}

.hs-float {
	inline-size: 100%;
	block-size: 100%;
}

.hs-img {
	inline-size: 100%;
	block-size: 100%;
	max-inline-size: none;
	object-fit: contain;
	object-position: 50% 100%;
}

.hs-card {
	position: absolute;
	inset-inline-start: -10px;
	inset-block-end: 60px;
	z-index: 2;
	color: var(--color-ink);
	text-decoration: none;
}

.hs-card:hover {
	color: var(--color-ink);
}

.hs-card-in {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	inline-size: 176px;
	padding: 12px 12px 16px;
	border-radius: 22px;
	background: #fff;
	box-shadow: 0 30px 60px -30px rgba(26, 23, 20, 0.45);
	transition: box-shadow 0.4s var(--ease-soft);
}

.hs-card:hover .hs-card-in {
	box-shadow: 0 34px 60px -26px rgba(26, 23, 20, 0.55);
}

.hs-thumb {
	display: flex;
	align-items: center;
	justify-content: center;
	inline-size: 100%;
	aspect-ratio: 4 / 5; /* Portrait, like the other product cards. */
	margin-block-end: 6px;
	overflow: hidden;
	border-radius: 14px;
	background: var(--zellige-light), var(--circle, var(--brand-orange));
}

.hs-thumb--dark {
	background: var(--zellige-dark), var(--circle, var(--color-ink));
}

.hs-thumb img {
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
	object-position: center top;
}

.hs-thumb .silhouette {
	block-size: 78%;
	inline-size: auto;
	filter: none;
}

.hs-card-name {
	font-family: var(--font-serif);
	font-size: 1.25rem;
	line-height: 1.2;
	text-align: center;
}

.hs-card-price {
	white-space: nowrap;
	color: var(--color-accent);
	font-size: 0.9375rem;
	font-weight: 500;
}

.hs-card-price del {
	color: #6E6458; /* 5.1:1 on the page background (WCAG AA) */
	font-size: 0.8125rem;
	font-weight: 400;
}

.hs-card-price ins {
	text-decoration: none;
}

/* "1 090 DH" never breaks across lines. */
.hs-card-price .amount,
.pc-price .amount {
	white-space: nowrap;
}

.hs-card-price .price-from--sale {
	color: var(--color-sale);
}

.hs-cta-row {
	--d: 0.6s;
	grid-area: c;
	align-self: start;
	padding-inline-start: 40px;
}

.hs-card {
	--d: 0.65s;
}

/* Entrances, replayed each time a slide becomes active. */
.hs-slide.is-active .in-start {
	animation: med-in-start 1s var(--ease-out) var(--d, 0s) both;
}

.hs-slide.is-active .in-end {
	animation: med-in-end 1.1s var(--ease-out) both;
}

.hs-slide.is-active .in-end-tilt {
	animation: med-in-end-tilt 1.2s var(--ease-out) 0.18s both;
}

.hs-slide.is-active .in-up {
	animation: med-in-up 0.9s var(--ease-out) var(--d, 0.65s) both;
}

.hs-slide.is-active .hs-float {
	animation: med-float 6s ease-in-out infinite;
}

.hs-slide.is-active .hs-card-in {
	animation: med-float 7s ease-in-out 1.2s infinite;
}

@keyframes med-in-start {
	from { opacity: 0; transform: translateX(calc(-70px * var(--dir))); }
	to { opacity: 1; transform: none; }
}

@keyframes med-in-end {
	from { opacity: 0; transform: translateX(calc(160px * var(--dir))) scale(0.9); }
	to { opacity: 1; transform: none; }
}

@keyframes med-in-end-tilt {
	from { opacity: 0; transform: translateX(calc(220px * var(--dir))) rotate(calc(8deg * var(--dir))); }
	to { opacity: 1; transform: none; }
}

@keyframes med-in-up {
	from { opacity: 0; transform: translateY(50px); }
	to { opacity: 1; transform: none; }
}

/* Arrows and progress */

.hs-arrow {
	position: absolute;
	inset-block-start: 50%;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: center;
	inline-size: 52px;
	block-size: 52px;
	margin-block-start: -26px;
	padding: 0;
	border: 1px solid #CDBB9E;
	border-radius: 50%;
	background: rgba(251, 248, 243, 0.7);
	color: var(--color-ink);
	cursor: pointer;
	transition: background-color 0.35s, color 0.35s, border-color 0.35s, opacity 0.35s;
}

.hs-arrow:hover {
	background: var(--color-ink);
	border-color: var(--color-ink);
	color: #fff;
}

.hs-prev {
	inset-inline-start: 28px;
}

.hs-next {
	inset-inline-end: 28px;
}

.hs-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-block-start: 10px;
}

.hs-count {
	margin: 0;
	padding-inline-start: 40px;
	font-family: var(--font-serif);
	font-size: 1.375rem;
}

.hs-total {
	color: #6E6458; /* 5.1:1 on the page background (WCAG AA) */
}

.hs-dots {
	display: flex;
	gap: 10px;
}

.hs-dot {
	display: flex;
	align-items: center;
	inline-size: 56px;
	block-size: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.hs-dot__bar {
	display: block;
	inline-size: 100%;
	block-size: 2px;
	overflow: hidden;
	background: #DCCDB5;
}

.hs-dot__fill {
	display: block;
	block-size: 100%;
	background: var(--brand-orange);
	transform: scaleX(0);
	transform-origin: left;
}

[dir="rtl"] .hs-dot__fill {
	transform-origin: right;
}

.hs-dot.is-on .hs-dot__fill {
	transform: scaleX(1);
}

/* With autoplay the active bar fills over 7 s; home.js moves on when it is full. */
.hs[data-autoplay="1"] .hs-dot.is-on .hs-dot__fill {
	animation: med-progress 7s linear both;
}

.hs.is-paused .hs-dot__fill {
	animation-play-state: paused !important;
}

@keyframes med-progress {
	from { transform: scaleX(0); }
	to { transform: scaleX(1); }
}

@media (max-width: 1024px) {
	.hs-slide {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas: "t" "a" "c";
		grid-template-rows: auto;
		gap: 20px;
		min-block-size: 0;
	}

	.hs-text,
	.hs-cta-row,
	.hs-count {
		padding-inline-start: 0;
	}

	.hs-cta-row {
		margin-block-start: 6px;
	}

	.hs-cta-row .hs-cta {
		inline-size: 100%;
	}

	.hs-arrow {
		display: none;
	}

	.hs-art {
		inline-size: 100%;
		max-inline-size: 460px;
		block-size: 520px;
		margin-inline: auto;
	}

	.hs-circle {
		inline-size: 380px;
		block-size: 380px;
		margin-inline-start: -190px;
	}

	.hs-product {
		inline-size: 250px;
		block-size: 380px;
		margin-inline-start: -125px;
	}
}

/* Phones: desktop proportions. A small card 12px from the screen edge with only its inner ~28% over
   the bottom start edge of the circle; the circle (and the product on it) start from there, so the
   card never covers the product. Logical properties: mirrored in RTL.
   The art box is as tall as the circle plus 50px (the same for every slide): the product box ends
   40px above the circle, so tall products rise at most 40px above it and nothing leaves empty space. */
@media (max-width: 767px) {
	/* Slides share the tallest one's height; a shorter slide keeps its rows packed at the top,
	   so the text-to-art gap stays 16px on every slide. */
	.hs-slide {
		row-gap: 16px;
		align-content: start;
	}

	.hs-art {
		--hs-card-w: 112px;
		/* Card offset inside .hs-art (which starts at the gutter, or is centred at 460px max). */
		--hs-card-x: calc(12px - max(var(--gutter), (100vw - 460px) / 2));
		--hs-circle-x: calc(var(--hs-card-x) + var(--hs-card-w) * 0.72);
		/* Viewport-based (not %), so the box height can use it too: 281px at 390px wide. */
		--hs-circle: min(300px, min(460px, 100vw - 2 * var(--gutter)) - var(--hs-circle-x));
		block-size: calc(var(--hs-circle) + 50px);
	}

	.hs-circle {
		inset-inline-start: var(--hs-circle-x);
		inset-block-end: 10px;
		inline-size: var(--hs-circle);
		block-size: auto;
		aspect-ratio: 1;
		margin-inline-start: 0;
	}

	.hs-product {
		inset-inline-start: calc(var(--hs-circle-x) + var(--hs-circle) / 6);
		inset-block-end: 50px;
		inline-size: calc(var(--hs-circle) * 2 / 3);
		block-size: auto;
		aspect-ratio: 2 / 3;
		margin-inline-start: 0;
	}

	/* Photos are already anchored at the bottom (object-position); the silhouette is too. */
	.hs-float {
		display: flex;
		align-items: flex-end;
		justify-content: center;
	}

	svg.hs-img {
		block-size: auto;
		max-block-size: 100%;
	}

	/* Same place against the circle as before (just below its bottom edge). */
	.hs-card {
		inset-inline-start: var(--hs-card-x);
		inset-block-end: 4px;
	}

	.hs-card-in {
		gap: 4px;
		inline-size: var(--hs-card-w);
		padding: 8px;
		border-radius: 16px;
	}

	.hs-thumb {
		margin-block-end: 2px;
		border-radius: 10px;
	}

	.hs-card-name {
		display: -webkit-box;
		overflow: hidden;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
		line-clamp: 2;
		font-size: 0.8125rem;
		line-height: 1.25;
	}

	/* One line, "Dès" included; the struck price would not fit in the small card. */
	.hs-card-price {
		font-size: 0.78125rem;
	}

	.hs-card-price del {
		display: none;
	}

	.hs-card-price .price-from {
		font-size: 0.85em;
	}
}

/* Very small phones: everything slightly smaller. */
@media (max-width: 359px) {
	.hs-art {
		--hs-card-w: 100px;
	}

	.hs-card-in {
		padding: 7px;
		border-radius: 14px;
	}

	.hs-card-name {
		font-size: 0.75rem;
	}

	.hs-card-price {
		font-size: 0.71875rem;
	}

	.hs-card-price .price-from {
		font-size: 0.8em;
	}
}

@media (max-width: 600px) {
	.hs {
		padding-block: 28px 20px;
	}

	.hs-text {
		gap: 20px;
	}

	.hs-nav {
		margin-block-start: 4px;
	}
}

/* Trust strip ------------------------------------------------------------ */

.trust-strip {
	background: var(--color-surface);
	border-block: 1px solid #E6DACA;
}

.trust-strip__list {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
	margin-block: 0;
	padding-block: 30px;
	list-style: none;
}

.trust-item {
	display: flex;
	align-items: center;
	gap: 16px;
}

.trust-item__icon {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	inline-size: 48px;
	block-size: 48px;
	border: 1px solid #F5C7A6;
	border-radius: 50%;
	color: var(--color-accent);
	transition: background-color 0.4s, color 0.4s, transform 0.6s var(--ease-soft);
}

.trust-item:hover .trust-item__icon {
	background: var(--brand-saffron);
	color: var(--color-ink);
	transform: rotate(-12deg);
}

.trust-item__text {
	display: flex;
	flex-direction: column;
	gap: 3px;
	line-height: 1.4;
}

.trust-item__text strong {
	font-size: 0.875rem;
	font-weight: 500;
}

.trust-item__text span {
	color: var(--color-muted);
	font-size: 0.8125rem;
}

@media (max-width: 1024px) {
	.trust-strip__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Phones: a compact 2 × 2 grid, each item centred (icon, title, text), thin dividers between items. */
@media (max-width: 767px) {
	.trust-strip__list {
		grid-auto-rows: 1fr; /* Equal-height items. */
		gap: 0;
		padding-block: 6px;
	}

	.trust-item {
		flex-direction: column;
		justify-content: flex-start;
		gap: 10px;
		padding: 16px 8px;
		text-align: center;
	}

	/* Vertical divider after the first column, horizontal one under the first row. */
	.trust-item:nth-child(odd):not(:last-child) {
		border-inline-end: 1px solid #EDE3D6;
	}

	.trust-item:nth-child(-n+2):nth-last-child(n+3) {
		border-block-end: 1px solid #EDE3D6;
	}

	.trust-item__icon {
		inline-size: 44px;
		block-size: 44px;
	}

	.trust-item__text {
		gap: 4px;
		line-height: 1.35;
	}

	.trust-item__text span {
		font-size: 0.78125rem;
	}
}

/* Category tiles --------------------------------------------------------- */

.home-cats {
	padding-block: 100px 90px;
}

/* 5 per row on desktop, 4 on tablets and phones; an incomplete last row is centred. */
.cats {
	--per-row: 5;
	--gap: 24px;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--gap);
	max-inline-size: 1120px;
	margin: 0 auto;
	padding: 0;
	list-style: none;
}

.cats > li {
	flex: 0 0 calc((100% - (var(--per-row) - 1) * var(--gap)) / var(--per-row));
	min-inline-size: 0;
}

@media (max-width: 1024px) {
	.cats {
		--per-row: 4;
		max-inline-size: 900px;
	}
}

.cat {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	color: var(--color-ink);
	text-decoration: none;
}

.cat-box {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	inline-size: 100%;
	aspect-ratio: 1;
	overflow: hidden;
	isolation: isolate;
	border: 1px solid #E6DACA;
	background: var(--color-surface);
	transition: transform 0.5s var(--ease-soft), box-shadow 0.5s, border-color 0.5s;
}

.cat-pat {
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image: var(--zellige-light);
	opacity: 0;
	transition: opacity 0.5s;
}

.cat-img {
	block-size: 62%;
	inline-size: auto;
	max-inline-size: 80%;
	object-fit: contain;
	transition: transform 0.6s var(--ease-soft);
}

svg.cat-img {
	inline-size: 80%;
}

.cat-name {
	font-size: 0.9375rem;
	font-weight: 500;
	letter-spacing: 0.04em;
	line-height: 1.3;
	text-align: center;
	transition: color 0.3s;
}

.cat:hover {
	color: var(--color-ink);
}

.cat:hover .cat-box {
	border-color: var(--brand-orange);
	box-shadow: 0 24px 40px -28px rgba(26, 23, 20, 0.45);
	transform: translateY(-6px);
}

.cat:hover .cat-pat {
	opacity: 1;
}

.cat:hover .cat-img {
	transform: scale(1.08) rotate(calc(-3deg * var(--dir)));
}

.cat:hover .cat-name {
	color: var(--color-accent);
}

@media (max-width: 600px) {
	.cats {
		--gap: 10px;
	}

	.cat {
		gap: 10px;
	}

	.cat-name {
		font-size: 0.78125rem;
		letter-spacing: 0;
	}
}

/* Nos sélections ---------------------------------------------------------- */

.home-sel .home-head {
	margin-block-end: 34px;
}

.tabs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px 30px;
	margin-block-end: 40px;
}

.tab {
	position: relative;
	min-block-size: 44px;
	padding: 0 2px;
	border: 0;
	background: transparent;
	color: #6E6458; /* 5.1:1 on the page background (WCAG AA) */
	font-family: var(--font-sans);
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	transition: color 0.3s;
}

[dir="rtl"] .tab {
	font-size: var(--step-0);
	letter-spacing: 0;
}

.tab::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	inset-block-end: 6px;
	block-size: 3px;
	background: var(--brand-amber);
	transform: scaleX(0);
	transition: transform 0.45s var(--ease-soft);
}

.tab:hover,
.tab.is-on {
	color: var(--color-ink);
}

.tab.is-on::after {
	transform: scaleX(1);
}

.sel {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 34px 24px;
}

.sel:focus-visible {
	outline-offset: 8px;
}

.sel > .pc {
	flex: 0 1 calc(25% - 18px);
}

/* Product card (grid and showcase) */

.pc {
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-inline-size: 0;
	animation: med-fade 0.6s ease both;
}

.pc-media {
	position: relative;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	isolation: isolate;
	background: #F0EAE1;
}

.pc-img-link {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.pc-pat {
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image: var(--zellige-light);
	opacity: 0;
	transition: opacity 0.6s;
}

.pc-photo {
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
	object-position: center top;
	transition: transform 0.8s var(--ease-soft);
}

.pc-img {
	block-size: 62%;
	inline-size: 78%;
	transition: transform 0.8s var(--ease-soft);
}

.pc-media:hover .pc-pat {
	opacity: 1;
}

.pc-media:hover .pc-photo,
.pc-media:hover .pc-img {
	transform: scale(1.07);
}

/* One badge, top end corner. */
.pc .product-badge {
	inset-block-start: 14px;
	inset-inline-start: auto;
	inset-inline-end: 14px;
	padding: 6px 10px;
	border-radius: 0;
	font-size: 0.71875rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: none;
}

/* Slides up on hover (desktop); always visible on touch screens and phones. */
.pc-quick {
	position: absolute;
	inset-inline: 14px;
	inset-block-end: 14px;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	min-block-size: 46px;
	padding: 0 10px;
	background: var(--color-ink);
	color: #fff;
	font-family: var(--font-sans);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.18em;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	transform: translateY(calc(100% + 16px));
	transition: transform 0.5s var(--ease-soft), background-color 0.3s, color 0.3s;
}

[dir="rtl"] .pc-quick {
	font-size: var(--step--1);
	letter-spacing: 0;
}

.pc-media:hover .pc-quick,
.pc-quick:focus-visible {
	transform: none;
}

.pc-quick:hover {
	background: var(--brand-orange);
	color: var(--color-ink);
}

.pc-quick.loading {
	opacity: 0.7;
	cursor: progress;
}

.pc-quick.added {
	background: var(--brand-orange);
	color: var(--color-ink);
}

/* WooCommerce's "Voir le panier" link: the cart drawer opens instead. */
.pc-media .added_to_cart {
	display: none;
}

@media (hover: none) {
	.pc-quick {
		transform: none;
	}
}

.pc-info {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	text-align: center;
}

.pc-sw {
	display: flex;
	gap: 8px;
	min-block-size: 16px;
}

.sw {
	inline-size: 15px;
	block-size: 15px;
	border-radius: 50%;
	background: var(--sw);
	box-shadow: 0 0 0 1px rgba(26, 23, 20, 0.15);
	transition: transform 0.3s;
}

.sw:hover {
	transform: scale(1.25);
}

.pc-opt {
	min-block-size: 16px;
	color: #6E6458; /* 5.1:1 on the page background (WCAG AA) */
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	line-height: 1.35;
}

.pc-name {
	margin: 0;
	font-family: var(--font-sans);
	font-size: 1rem;
	font-weight: 500;
	letter-spacing: 0.01em;
	line-height: 1.35;
}

/* At least 24px tall to tap (WCAG 2.5.8), without changing the line spacing. */
.pc-name a {
	display: inline-block;
	padding-block: 2px;
	text-decoration: none;
}

.pc-price {
	display: flex;
	flex-wrap: nowrap; /* One line, always. */
	white-space: nowrap;
	justify-content: center;
	align-items: baseline;
	gap: 0 10px;
	margin: 0;
	color: var(--color-accent);
	font-size: 0.96875rem;
	font-weight: 600;
	line-height: 1.4;
}

.pc-price del {
	order: 2;
	color: #6E6458; /* 5.1:1 on the page background (WCAG AA) */
	font-size: 0.84375rem;
	font-weight: 400;
}

.pc-price ins {
	color: var(--color-sale);
	text-decoration: none;
}

/* Narrow phones: the longest price ("ابتداءً من 1 090 DH 1 250 DH") still fits on one line. */
@media (max-width: 400px) {
	.pc-price {
		gap: 0 6px;
		font-size: 0.875rem;
	}

	.pc-price del,
	.pc-price .price-from {
		font-size: 0.75rem;
	}

	/* "Dès" + sale price + struck price is the longest: it scales with the card so it never wraps. */
	.pc {
		container-type: inline-size;
	}

	.pc-price:has(.price-from--sale) {
		font-size: min(0.875rem, 7.5cqi);
	}

	.pc-price:has(.price-from--sale) del,
	.pc-price:has(.price-from--sale) .price-from {
		font-size: 0.85em;
	}
}

@media (max-width: 1024px) {
	.sel > .pc {
		flex-basis: calc(50% - 12px);
	}
}

@media (max-width: 600px) {
	.sel {
		gap: 26px 12px;
	}

	.sel > .pc {
		flex-basis: calc(50% - 6px);
	}

	.tabs {
		gap: 0 18px;
		margin-block-end: 26px;
	}

	.tab {
		font-size: 0.71875rem;
		letter-spacing: 0.1em;
	}

	.pc {
		gap: 12px;
	}

	.pc-quick {
		inset-inline: 8px;
		inset-block-end: 8px;
		min-block-size: 40px;
		font-size: 0.625rem;
		letter-spacing: 0.12em;
		transform: none;
	}

	.pc .product-badge {
		inset-block-start: 8px;
		inset-inline-end: 8px;
		font-size: 0.65625rem;
	}

	.pc-name {
		font-size: 0.875rem;
	}
}

/* Notre maison ----------------------------------------------------------- */

.maison {
	padding-block: 40px;
}

/* Contained dark card: as wide as the content column, the page background shows around it. */
.maison__card {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	padding: 72px 40px;
	border: 1px solid rgba(255, 95, 0, 0.25);
	border-radius: 24px;
	background: var(--color-ink);
	color: var(--color-on-dark);
}

.maison__card::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image: var(--zellige-dark);
	opacity: 0.15;
}

.maison__in {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	max-inline-size: 960px;
	margin-inline: auto;
	text-align: center;
}

.maison .eyebrow {
	color: var(--brand-saffron);
}

.maison__title {
	margin: 0;
	color: var(--color-on-dark);
	font-size: clamp(2.125rem, 3.6vw, 3.125rem);
	font-weight: 400;
	line-height: 1.05;
}

[dir="rtl"] .maison__title {
	line-height: 1.4;
}

.maison__title em {
	display: block;
	color: var(--brand-saffron);
}

.maison__text {
	max-inline-size: 540px;
	margin: 0;
	color: var(--color-on-dark-muted);
	font-size: 0.96875rem;
	line-height: 1.8;
}

.maison__line {
	display: block;
	inline-size: 100%;
	max-inline-size: 640px;
	block-size: 1px;
	background: var(--brand-orange);
	opacity: 0.5;
	transform-origin: center;
}

.maison__pillars {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
	inline-size: 100%;
	margin: 6px 0 0;
	padding: 0;
	list-style: none;
}

.pillar {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.pillar__ic {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	inline-size: 46px;
	block-size: 46px;
	margin-block-end: 14px;
	border: 1px solid rgba(255, 140, 0, 0.55);
	border-radius: 50%;
	color: var(--brand-saffron);
	transition: background-color 0.4s, color 0.4s, transform 0.6s var(--ease-soft);
}

.pillar:hover .pillar__ic {
	background: var(--brand-saffron);
	color: var(--color-ink);
	transform: rotate(-12deg);
}

.pillar__title {
	margin: 0;
	color: var(--color-on-dark);
	font-size: 1.25rem;
	font-weight: 500;
	line-height: 1.2;
}

[dir="rtl"] .pillar__title {
	font-size: 1.0625rem;
	line-height: 1.5;
}

.pillar__text {
	margin: 6px 0 0;
	color: var(--color-on-dark-muted);
	font-size: 0.90625rem;
	line-height: 1.65;
}

.maison__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 24px;
	margin-block-start: 6px;
}

.maison :focus-visible {
	outline-color: var(--brand-saffron);
}

@media (max-width: 1024px) {
	.maison__pillars {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.maison__card {
		padding: 44px 20px;
	}

	.maison__in {
		gap: 16px;
	}

	.maison__pillars {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
	}
}

/* Category showcase ------------------------------------------------------ */

.cs {
	position: relative;
	padding-block: 90px 100px;
	overflow: hidden;
}

/* Desktop composition, sized from the grid width (container query units), so it holds from 1024px up:
   - the blob bleeds from the start edge of the screen and ends at --cs-blob-reach of the image column;
   - its height follows its visible width, so the person always fits inside it;
   - the image box is 115% of the blob's height, sits on its bottom edge and is centred in its visible part:
     the head rises above the top edge, as if stepping out of the shape;
   - the cards run over the end of the blob by --cs-overlap, beside the person, never on it. */
.cs-in {
	--cs-gap: 56px;
	--cs-overlap: 72px;
	--cs-blob-bottom: 80px;
	--cs-blob-reach: 0.92;
	--cs-art-w: calc((100cqi - var(--cs-gap)) * 0.45);
	/* Distance from the screen edge to the image column (the part of the blob outside the container). */
	--cs-bleed: calc(max(0px, (100vw - var(--container)) / 2) + var(--gutter));
	--cs-blob-w: calc(var(--cs-bleed) + var(--cs-art-w) * var(--cs-blob-reach));
	--cs-blob-h: min(640px, (var(--cs-blob-w) - 2 * var(--cs-overlap) - 30px) * 1.6);
	--cs-fig-h: calc(var(--cs-blob-h) * 1.15);
	/* Wide enough for a 4:5 cut-out; a 2:3 one is centred in it. */
	--cs-fig-w: calc(var(--cs-fig-h) * 0.8);
	container-type: inline-size;
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	grid-template-rows: auto auto auto;
	column-gap: var(--cs-gap);
	row-gap: 40px;
}

/* Zellige pattern on the shape, unless "Motif sur la forme" is off. */
.cs {
	--cs-pattern: var(--zellige-ink-soft);
}

.cs--plain {
	--cs-pattern: none;
}

.cs-art {
	position: relative;
	grid-column: 1;
	grid-row: 1 / span 3;
	min-block-size: 560px;
}

/* A soft tint of the Customizer colour over the page background. */
.cs-blob {
	position: absolute;
	inset-block-end: var(--cs-blob-bottom);
	inset-inline-end: calc((1 - var(--cs-blob-reach)) * 100%);
	block-size: var(--cs-blob-h);
	inline-size: 100vw;
	border-start-end-radius: 320px;
	border-end-end-radius: 320px;
	background: var(--cs-pattern), var(--blob, var(--brand-saffron));
	background: var(--cs-pattern), color-mix(in srgb, var(--blob, var(--brand-saffron)) 40%, var(--color-bg));
}

.cs-figure {
	position: absolute;
	z-index: 1;
	inset-block-end: var(--cs-blob-bottom);
	inset-inline-start: calc((var(--cs-blob-w) - var(--cs-fig-w)) / 2 - var(--cs-bleed));
	block-size: var(--cs-fig-h);
	inline-size: var(--cs-fig-w);
}

/* The <picture> wrapper must not change the image's box. */
.cs-figure picture {
	display: contents;
}

.cs-img {
	display: block;
	inline-size: 100%;
	block-size: 100%;
	object-fit: contain;
	object-position: bottom center;
}

.cs-text {
	grid-column: 2;
	grid-row: 1;
	display: flex;
	flex-direction: column;
	gap: 22px;
	padding-block-start: 70px;
}

.cs-kicker {
	margin: 0;
	color: var(--color-accent);
	font-size: 0.9375rem;
	font-weight: 500;
	letter-spacing: 0.08em;
}

.cs-title {
	display: flex;
	align-items: center;
	gap: 18px;
	margin: 0;
	font-size: clamp(2.625rem, 4.8vw, 4.25rem);
	font-weight: 500;
	line-height: 1.05;
}

[dir="rtl"] .cs-title {
	line-height: 1.35;
}

.cs-star {
	flex: none;
	fill: var(--brand-orange);
}

.cs-lead {
	max-inline-size: 520px;
	margin: 0;
	color: var(--color-muted);
	font-size: 1.03125rem;
	line-height: 1.75;
}

.cs-slider {
	position: relative;
	z-index: 2;
	grid-column: 2;
	grid-row: 2;
	min-inline-size: 0;
	/* Back over the column gap and the end of the blob, then --cs-overlap onto it. */
	margin-inline-start: calc(-1 * (var(--cs-gap) + var(--cs-art-w) * (1 - var(--cs-blob-reach)) + var(--cs-overlap)));
}

/* Manual scroll: arrows, swipe or trackpad; snap to cards; no visible scrollbar. */
.cs-cards {
	display: flex;
	gap: 24px;
	margin: 0;
	padding: 4px 2px 10px;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	list-style: none;
}

.cs-cards::-webkit-scrollbar {
	display: none;
}

.cs-card {
	flex: none;
	inline-size: 310px;
	scroll-snap-align: start;
}

.pc--cs {
	gap: 12px;
	animation: none;
}

.pc--cs .pc-media {
	border-radius: 22px 22px 0 0;
	background: #F3EEE7;
	box-shadow: 0 30px 50px -40px rgba(26, 23, 20, 0.5);
}

.pc--cs .product-badge {
	inset-inline-start: 14px;
	inset-inline-end: auto;
	border-radius: 6px;
	font-size: 0.6875rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.pc--cs .pc-info {
	gap: 4px;
}

.cs-btn {
	inset-block-start: 38%;
	background: var(--color-surface);
	box-shadow: 0 12px 24px -14px rgba(26, 23, 20, 0.5);
}

.cs-btn-prev {
	inset-inline-start: -26px;
}

.cs-btn-next {
	inset-inline-end: -26px;
}

.cs-btn:disabled {
	opacity: 0;
	pointer-events: none;
}

.cs-cta {
	grid-column: 2;
	grid-row: 3;
	display: flex;
	justify-content: center;
	margin-inline-start: calc(-1 * (var(--cs-gap) + var(--cs-art-w) * (1 - var(--cs-blob-reach)) + var(--cs-overlap)));
}

/* Narrow desktops: smaller cards, so more than two show beside the image. */
@media (min-width: 1024px) and (max-width: 1279px) {
	.cs-card {
		inline-size: 260px;
	}
}

/* Tablets and phones: text, then the image in a rounded block, then the products, then the button.
   No overlap: the products sit below the image block. */
@media (max-width: 1023px) {
	.cs-in {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: none;
		row-gap: 20px;
	}

	.cs-in > * {
		grid-column: 1;
		grid-row: auto;
	}

	.cs-text {
		order: -1;
		padding-block-start: 0;
	}

	.cs-title {
		gap: 12px;
	}

	.cs-art {
		position: relative;
		isolation: isolate;
		min-block-size: 0;
		block-size: 280px;
		overflow: hidden;
		border-radius: 24px;
		background: var(--cs-pattern), var(--blob, var(--brand-saffron));
		background: var(--cs-pattern), color-mix(in srgb, var(--blob, var(--brand-saffron)) 40%, var(--color-bg));
	}

	/* No uploaded image: no image block (the silhouette stays on desktop only). */
	.cs--no-image .cs-art,
	.cs-blob {
		display: none;
	}

	.cs-figure {
		inset: 20px 20px 0;
		inline-size: auto;
		block-size: auto;
	}

	.cs-img {
		block-size: 100%;
		inline-size: 100%;
		object-fit: contain;
		object-position: 50% 100%;
	}

	.cs-slider,
	.cs-cta {
		margin: 0;
	}

	.cs-card {
		inline-size: 220px;
	}

	.cs-btn {
		inline-size: 42px;
		block-size: 42px;
		margin-block-start: -21px;
	}

	.cs-btn-prev {
		inset-inline-start: -8px;
	}

	.cs-btn-next {
		inset-inline-end: -8px;
	}

	.cs-cta .hs-cta {
		inline-size: 100%;
	}
}

@media (max-width: 600px) {
	.cs-text {
		gap: 16px;
	}

	.cs-cards {
		gap: 12px;
	}

	/* Two cards visible. */
	.cs-card {
		inline-size: calc((100vw - 2 * var(--gutter) - 12px) / 2);
	}

	.cs-btn {
		inline-size: 36px;
		block-size: 36px;
		margin-block-start: -18px;
	}

	.cs-btn-prev {
		inset-inline-start: 6px;
	}

	.cs-btn-next {
		inset-inline-end: 6px;
	}

	.pc--cs .pc-quick {
		display: none;
	}

	.pc--cs .pc-media {
		border-radius: 16px 16px 0 0;
	}

	.pc--cs .product-badge {
		inset-inline-start: 8px;
		font-size: 0.625rem;
		letter-spacing: 0.1em;
	}

	.pc--cs .pc-price {
		font-size: 0.875rem;
	}
}

/* Phones: no image block (its <picture> loads a 1×1 inline GIF here, not the photo). */
@media (max-width: 767px) {
	.cs-art {
		display: none;
	}
}

/* Testimonials ----------------------------------------------------------- */

.tst {
	padding-block: 120px;
}

.quotes {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.quote {
	display: flex;
	flex-direction: column;
	gap: 22px;
	block-size: 100%;
	margin: 0;
	padding: 40px 34px;
	border: 1px solid #E6DACA;
	background: var(--color-surface);
	transition: transform 0.6s var(--ease-soft), box-shadow 0.6s;
}

.quote:hover {
	box-shadow: 0 24px 50px -30px rgba(26, 23, 20, 0.35);
	transform: translateY(-6px);
}

.quote__rating {
	display: flex;
	gap: 4px;
	margin: 0;
	color: var(--brand-saffron);
}

.quote__rating .icon {
	fill: currentColor;
}

.quote__text {
	flex: 1;
	margin: 0;
	font-family: var(--font-serif);
	font-size: 1.5rem;
	font-style: italic;
	line-height: 1.45;
	quotes: "«\00a0" "\00a0»";
}

[dir="rtl"] .quote__text {
	font-size: 1.125rem;
	font-style: normal;
	line-height: 1.8;
}

.quote__text p {
	margin: 0;
}

.quote__text p::before {
	content: open-quote;
}

.quote__text p::after {
	content: close-quote;
}

.quote__author {
	display: flex;
	align-items: center;
	gap: 14px;
}

.quote__ini {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	inline-size: 44px;
	block-size: 44px;
	border-radius: 50%;
	background: #EADFCF;
	color: var(--color-accent);
	font-size: 0.9375rem;
}

.quote__who {
	display: flex;
	flex-direction: column;
	gap: 2px;
	line-height: 1.4;
}

.quote__who strong {
	font-size: 0.875rem;
	font-weight: 500;
}

.quote__who span {
	color: var(--color-muted);
	font-size: 0.8125rem;
}

@media (max-width: 1024px) {
	.quotes {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Phones: one row that scrolls sideways. */
@media (max-width: 600px) {
	.quotes {
		grid-template-columns: none;
		grid-auto-flow: column;
		grid-auto-columns: 85%;
		gap: 12px;
		margin-inline: calc(-1 * var(--gutter));
		padding-inline: var(--gutter);
		overflow-x: auto;
		scroll-padding-inline: var(--gutter);
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
	}

	.quotes::-webkit-scrollbar {
		display: none;
	}

	.quotes > li {
		scroll-snap-align: start;
	}

	.quote {
		padding: 28px 24px;
	}

	.quote__text {
		font-size: 1.25rem;
	}
}

/* Phones: tight vertical rhythm (about 56px between sections). */
@media (max-width: 600px) {
	.home-section,
	.home-cats,
	.cs,
	.tst {
		padding-block: 56px;
	}

	.maison {
		padding-block: 28px;
	}

	.home-head {
		margin-block-end: 28px;
	}

	.home-more {
		margin-block-start: 36px;
	}
}

/* Reduced motion: everything in place, no entrances, floats or reveals. */
@media (prefers-reduced-motion: reduce) {
	.rv,
	.rv-start,
	.grow-x,
	.pc,
	.hs-slide.is-active .in-start,
	.hs-slide.is-active .in-end,
	.hs-slide.is-active .in-end-tilt,
	.hs-slide.is-active .in-up,
	.hs-slide.is-active .hs-float,
	.hs-slide.is-active .hs-card-in {
		animation: none !important;
	}

	.hs-slide {
		transition: none;
	}
}
