/* ==========================================================================
   Homepage — "Recherche par Aspect" (template-parts/home-original.php).
   A compact sample-chip strip: the title on the left, the five original aspect swatches as
   small square chips, like a showroom sample board. On hover the chip lifts a little and a
   band of light crosses it — strong on Poli, softer on Brillant and Satiné, none on Mat and
   Parquet. Original images, labels and links.
   ========================================================================== */

.o-asp {
	--asp-ink: #0b0b0b;
	--asp-text: #55524c;
	--asp-muted: #8b877f;
	--asp-line: #e6e1d7;
	--asp-gold: #c99a3f;
	--asp-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--asp-head: "Red Hat Display", var(--o-heading, sans-serif);
	padding: clamp(36px, 5vw, 64px) 0;
}
.o-asp__inner {
	display: grid;
	grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
	align-items: center;
	gap: clamp(24px, 4vw, 56px);
	width: min(1180px, 100% - 40px);
	margin-inline: auto;
}
.o-asp__head .o-headline {
	margin: 0;
	font-size: clamp(26px, 1.4rem + 0.9vw, 34px);
	line-height: 1.2;
	text-align: left;
}
.o-asp .o-asp__chips {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: clamp(12px, 1.6vw, 22px);
	margin: 0;
	padding: 0;
	list-style: none;
}
.o-asp__chip {
	--shine: 0;
	min-width: 0;
}
.o-asp__chip--poli {
	--shine: 0.85;
}
.o-asp__chip--brillant {
	--shine: 0.6;
}
.o-asp__chip--satine {
	--shine: 0.35;
}
.o-asp__chip a {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: end;
	gap: 10px 6px;
	color: inherit;
	text-decoration: none;
}
.o-asp__swatch {
	position: relative;
	grid-column: 1 / -1;
	display: block;
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: 4px;
	background: #ece9e3;
	box-shadow: 0 1px 0 rgba(11, 11, 11, 0.06), 0 0 0 1px rgba(11, 11, 11, 0.06);
	transition: transform 0.5s var(--asp-ease), box-shadow 0.5s var(--asp-ease);
}
.o-asp__swatch img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.9s var(--asp-ease);
}
.o-asp__shine {
	position: absolute;
	inset: 0;
	background: linear-gradient(115deg, transparent 35%, rgba(255, 252, 240, var(--shine)) 50%, transparent 65%) -130% 0 / 260% 100% no-repeat;
	mix-blend-mode: soft-light;
	pointer-events: none;
}
.o-asp__label {
	display: grid;
	gap: 2px;
	min-width: 0;
}
.o-asp__name {
	position: relative;
	justify-self: start;
	font-family: var(--asp-head);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--asp-ink);
}
.o-asp__name::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -3px;
	height: 1.5px;
	background: var(--asp-gold);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.45s var(--asp-ease);
}
.o-asp__count {
	font-size: 13px;
	color: var(--asp-muted);
}
.o-asp__arrow {
	width: 16px;
	height: 16px;
	margin-bottom: 3px;
	fill: none;
	stroke: var(--asp-ink);
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
	opacity: 0;
	transform: translateX(-6px);
	transition: opacity 0.3s, transform 0.45s var(--asp-ease);
}
.o-asp__chip a:focus-visible {
	outline: 2px solid var(--asp-gold);
	outline-offset: 4px;
	border-radius: 4px;
}
.o-asp__chip a:hover .o-asp__swatch,
.o-asp__chip a:focus-visible .o-asp__swatch {
	transform: translateY(-3px);
	box-shadow: 0 14px 24px -16px rgba(11, 11, 11, 0.45), 0 0 0 1px rgba(201, 154, 63, 0.5);
}
.o-asp__chip a:hover .o-asp__swatch img {
	transform: scale(1.04);
}
.o-asp__chip a:hover .o-asp__shine,
.o-asp__chip a:focus-visible .o-asp__shine {
	background-position: 230% 0;
	transition: background-position 1.1s var(--asp-ease);
}
.o-asp__chip a:hover .o-asp__name::after,
.o-asp__chip a:focus-visible .o-asp__name::after {
	transform: none;
}
.o-asp__chip a:hover .o-asp__arrow,
.o-asp__chip a:focus-visible .o-asp__arrow {
	opacity: 1;
	transform: none;
}

/* Entrance: the chips are laid one after another as the strip scrolls in (no JS). */
@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		.o-asp__chip {
			animation: asp-lay linear both;
			animation-timeline: view();
			animation-range: entry calc(var(--i) * 6%) entry calc(60% + var(--i) * 8%);
		}
	}
}
@keyframes asp-lay {
	from {
		opacity: 0;
		transform: translateY(16px);
	}
}

/* ------------------------------------------------------------ Responsive */
@media (max-width: 1023px) {
	.o-asp__inner {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
	}
}
/* Phones: one compact row that scrolls sideways, the next chip peeking in. */
@media (max-width: 599px) {
	.o-asp__inner {
		width: 100%;
	}
	.o-asp__head {
		padding-inline: 16px;
	}
	.o-asp .o-asp__chips {
		display: flex;
		gap: 12px;
		padding: 4px 16px 8px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scroll-padding-inline: 16px;
		scrollbar-width: none;
	}
	.o-asp .o-asp__chips::-webkit-scrollbar {
		display: none;
	}
	.o-asp__chip {
		flex: 0 0 38%;
		scroll-snap-align: start;
	}
	.o-asp__arrow {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.o-asp *,
	.o-asp *::after {
		transition: none !important;
		animation: none !important;
	}
}
