/* =====================================================================
   Homepage: banner carousel, category cards, newest products, and the
   Elementor sections that show "Images du site" photos (home-about-photo, home-band).
   ===================================================================== */

.uc-home { display: block; }
.uc-home *, .uc-home *::before, .uc-home *::after { box-sizing: border-box; }
.uc-home ul { list-style: none; margin: 0; padding: 0; }
.uch-section, .uch-hero { width: calc(100% - 2 * var(--uc-gutter, 48px)); max-width: calc(var(--uc-max, 1280px) + 96px); margin-inline: auto; }

/* ---------- hero carousel ---------- */
.uch-hero { position: relative; margin-top: 20px; border-radius: 40px; overflow: hidden; background: var(--color-beige); isolation: isolate; }
.uch-hero__viewport { position: relative; aspect-ratio: 3.2 / 1; max-height: 560px; width: 100%; }
.uch-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .9s var(--uc-ease, ease), visibility 0s linear .9s; }
.uch-slide.is-active { opacity: 1; visibility: visible; transition: opacity .9s var(--uc-ease, ease), visibility 0s; z-index: 1; }
.uch-slide__inner { position: absolute; inset: 0; display: block; color: inherit; text-decoration: none; }
.uch-slide picture, .uch-slide .uch-slide__img { display: block; width: 100%; height: 100%; }   /* T17: 2 classes — always fills the frame */
.uch-slide__img { object-fit: cover; transform: scale(1.04); transition: transform 7s linear; }
.uch-slide.is-active .uch-slide__img { transform: scale(1); }
/* Caption: light frosted-glass panel. The banner photo stays visible through it.
   Fallback (no backdrop-filter): a denser warm-white so the text keeps its contrast. */
.uch-slide__caption {
	position: absolute; inset-inline-start: 40px; bottom: 40px; z-index: 2; max-width: min(520px, 70%);
	display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 18px 26px 20px;
	background: rgba(255, 255, 255, .84); border: 1px solid rgba(255, 255, 255, .55);
	border-radius: 26px 26px 26px 8px; box-shadow: 0 8px 28px rgba(51, 47, 45, .08);
}
[dir="rtl"] .uch-slide__caption { border-radius: 26px 26px 8px 26px; }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
	.uch-slide__caption { background: rgba(255, 255, 255, .5); -webkit-backdrop-filter: blur(14px) saturate(1.15); backdrop-filter: blur(14px) saturate(1.15); }
	/* set by home.js after measuring the photo behind the caption: busy or dark areas get a denser glass */
	.uch-slide--busy .uch-slide__caption { background: rgba(255, 255, 255, .62); }
	.uch-slide--dark .uch-slide__caption { background: rgba(255, 255, 255, .7); }
}
.uch-slide__title { font-family: var(--uc-stack-display); font-size: 32px; line-height: 1.12; font-weight: 500; color: var(--color-charcoal); overflow-wrap: anywhere; }
html[lang^="ar"] .uch-slide__title { line-height: 1.45; font-size: 28px; }
.uch-slide__more { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #B81721; } /* dark brand red: contrast on glass */
html[lang^="ar"] .uch-slide__more { letter-spacing: 0; font-size: 14px; }
.uch-slide__more .ucx-icon { width: 16px; height: 16px; }
.uch-slide__inner:focus-visible { outline: 4px solid var(--color-olive-deep); outline-offset: -4px; }
a.uch-slide__inner:hover .uch-slide__more .ucx-icon { transform: translateX(3px); }
[dir="rtl"] a.uch-slide__inner:hover .uch-slide__more .ucx-icon { transform: scaleX(-1) translateX(3px); }

.uch-hero__arrow {
	position: absolute; top: 50%; z-index: 3; transform: translateY(-50%);
	display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; padding: 0;
	border-radius: 50%; border: 1px solid rgba(51, 47, 45, .15); background: rgba(255, 255, 255, .9); color: var(--color-charcoal);
	font-size: 28px; line-height: 1; cursor: pointer; transition: background-color .2s ease, transform .2s ease;
}
.uch-hero__arrow:hover, .uch-hero__arrow:focus { background: var(--color-surface); color: var(--color-terracotta-deep); }
.uch-hero__arrow:focus-visible, .uch-hero__dot:focus-visible, .uch-hero__pause:focus-visible { outline: 3px solid var(--color-olive-deep); outline-offset: 2px; }
.uch-hero__arrow--prev { inset-inline-start: 20px; }
.uch-hero__arrow--next { inset-inline-end: 20px; }
[dir="rtl"] .uch-hero__arrow > span[aria-hidden] { display: inline-block; transform: scaleX(-1); }
.uch-hero__controls {
	position: absolute; z-index: 3; bottom: 18px; inset-inline-end: 24px;
	display: flex; align-items: center; gap: 6px; padding: 4px 6px; border-radius: 999px; background: rgba(255, 255, 255, .9);
}
.uch-hero__dots { display: flex; align-items: center; }
.uch-hero__dot { width: 28px; height: 28px; padding: 0; border: 0; background: transparent; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.uch-hero__dot::before { content: ""; width: 9px; height: 9px; border-radius: 999px; background: var(--color-olive); transition: width .3s ease, background-color .3s ease; }
.uch-hero__dot.is-active::before { width: 24px; background: var(--color-terracotta-deep); }
.uch-hero__dot:hover::before { background: var(--color-olive-deep); }
.uch-hero__pause { width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: var(--color-charcoal); }
.uch-hero__pause[hidden] { display: none; }
.uch-hero__pause:hover { background: var(--color-beige); }
.uch-hero__pause-icon { width: 10px; height: 12px; border-inline: 3px solid currentColor; }
.uch-hero__pause[aria-pressed="true"] .uch-hero__pause-icon { width: 0; height: 0; border-inline: 0; border-block: 6px solid transparent; border-inline-start: 10px solid currentColor; }

/* fallback when no banner is visible */
.uch-hero--empty { background: var(--color-beige); color: var(--color-charcoal); }   /* T10: beige, dark text */
.uch-hero--empty::before { content: ""; position: absolute; z-index: -1; width: 380px; height: 380px; inset-inline-end: -80px; top: -140px; background: var(--color-terracotta); opacity: .07; border-radius: 62% 38% 46% 54% / 55% 48% 52% 45%; }
.uch-fallback { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 56px; max-width: 760px; }
.uch-fallback .uc-eyebrow { color: var(--color-olive-deep); }
.uch-fallback__title { margin: 0; font-family: var(--uc-stack-display); font-size: 54px; line-height: 1.06; font-weight: 500; color: var(--color-charcoal); }
.uch-fallback__text { margin: 0; font-size: 17px; line-height: 1.7; color: var(--color-ink-soft); max-width: 52ch; }
.uch-fallback__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.uch-fallback .uc-btn--outline:hover { background: #FFFFFF; }

/* ---------- section heads ---------- */
.uch-section { margin-top: 56px; }
/* the categories follow the carousel directly: a compact, deliberate gap that scales with the screen */
.uch-hero + .uch-section { margin-top: clamp(28px, 3vw, 40px); }
.uch-head .uc-eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.uch-head .uc-eyebrow::before { content: ""; width: 26px; height: 1.5px; border-radius: 2px; background: var(--color-terracotta); }

/* newest products sit on a soft beige band with curved ends (reference: ingredients band) */
.uch-products { padding: 44px 44px 48px; background: var(--color-beige); border-radius: 56px / 40px; }
.uch-products .ucp-card__link { background: var(--color-surface); border-color: transparent; }
.uch-products .ucp-card__media { background: var(--color-ivory); }
.uch-products .ucp-card__link:hover { border-color: var(--color-olive-deep); }
.uch-products .uc-eyebrow { color: var(--color-olive-deep); } /* dark red: 5.4:1 on the beige band */

/* cards appear one after another when their section scrolls into view */
.ucx-js .ucx-reveal .ucx-stagger > li { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--uc-ease, ease), transform .7s var(--uc-ease, ease); }
.ucx-js .ucx-reveal.is-in .ucx-stagger > li { opacity: 1; transform: none; }
.ucx-reveal.is-in .ucx-stagger > li:nth-child(2) { transition-delay: .07s; }
.ucx-reveal.is-in .ucx-stagger > li:nth-child(3) { transition-delay: .14s; }
.ucx-reveal.is-in .ucx-stagger > li:nth-child(4) { transition-delay: .21s; }
.ucx-reveal.is-in .ucx-stagger > li:nth-child(5) { transition-delay: .28s; }
.ucx-reveal.is-in .ucx-stagger > li:nth-child(6) { transition-delay: .35s; }
.ucx-reveal.is-in .ucx-stagger > li:nth-child(n+7) { transition-delay: .42s; }
/* the section itself only fades: its cards do the movement */
.ucx-js .uch-section.ucx-reveal { transform: none; }
.uch-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 24px; }
.uch-head__text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.uch-head__title { margin: 0; font-family: var(--uc-stack-display); font-size: 42px; line-height: 1.1; font-weight: 500; color: var(--color-charcoal); }
html[lang^="ar"] .uch-head__title { line-height: 1.4; }
.uch-head .ucx-arrow-link { flex: none; }

/* ---------- category cards ---------- */
.uch-cats__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.uch-cat {
	display: flex; flex-direction: column; height: 100%; overflow: hidden; text-decoration: none; color: var(--color-charcoal);
	background: #FFFFFF; border-radius: 32px; border: 1px solid var(--color-sand);   /* T10: white category cards */
	transition: transform .35s var(--uc-ease, ease), box-shadow .35s ease;
}
.uch-cat:hover { transform: translateY(-4px); box-shadow: var(--uc-shadow-card); color: var(--color-charcoal); }
.uch-cat:focus-visible { outline: 3px solid var(--color-olive-deep); outline-offset: 3px; }
.uch-cat__media { position: relative; display: block; aspect-ratio: 4 / 3.4; overflow: hidden; background: var(--color-beige); border-radius: 0 0 46% 54% / 0 0 13% 15%; }
.uch-cat__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--uc-ease, ease); }
.uch-cat:hover .uch-cat__media img { transform: scale(1.05); }
.uch-cat__ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--color-olive-deep); }
.uch-cat__ph .ucx-default-icon { width: 34%; height: auto; object-fit: contain; }   /* 0.9.1: Green House icon when no image */
.uch-cat__ph .ucx-icon { width: 56px; height: 56px; }
.uch-cat__body { display: flex; flex-direction: column; gap: 6px; padding: 16px 22px 20px; }
.uch-cat__name { font-family: var(--uc-stack-display); font-size: 26px; line-height: 1.15; font-weight: 600; overflow-wrap: anywhere; }
html[lang^="ar"] .uch-cat__name { line-height: 1.45; font-size: 23px; }
.uch-cat__meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--color-ink-soft); }
.uch-cat__go { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--color-beige); color: var(--color-olive-deep); transition: background-color .25s ease, color .25s ease; flex: none; }
.uch-cat__go .ucx-icon { width: 18px; height: 18px; }
.uch-cat:hover .uch-cat__go { background: var(--color-terracotta-deep); color: #fff; }

/* ---------- newest products (same cards as the catalogue) ---------- */
.uch-products__grid { margin-top: 0; }

/* ---------- Elementor sections fed by "Images du site" ---------- */
.uc-home__content { margin-top: 24px; }
.elementor .home-about-photo {
	background-color: var(--color-sand);
	background-image: var(--uc-img-home_about, linear-gradient(135deg, var(--color-sand), var(--color-beige)));
	background-size: cover; background-position: center;
}
.elementor .home-band {
	background-color: var(--color-charcoal);   /* T10: dark veil over the band photo (white text), never a red block */
	background-image: linear-gradient(90deg, rgba(51, 47, 45, .9) 0%, rgba(51, 47, 45, .72) 50%, rgba(51, 47, 45, .35) 100%), var(--uc-img-home_band, none);
	background-size: cover; background-position: center;
}
[dir="rtl"] .elementor .home-band {
	background-image: linear-gradient(270deg, rgba(51, 47, 45, .9) 0%, rgba(51, 47, 45, .72) 50%, rgba(51, 47, 45, .35) 100%), var(--uc-img-home_band, none);
}
@media (max-width: 767px) {
	.elementor .home-about-photo { background-image: var(--uc-img-home_about-m, var(--uc-img-home_about, linear-gradient(135deg, var(--color-sand), var(--color-beige)))); }
	.elementor .home-band, [dir="rtl"] .elementor .home-band {
		background-image: linear-gradient(180deg, rgba(51, 47, 45, .88) 0%, rgba(51, 47, 45, .8) 100%), var(--uc-img-home_band-m, var(--uc-img-home_band, none));
	}
}

/* the big curved corner of the presentation photo sits on the outer side in both languages */
[dir="rtl"] .elementor .home-about-photo { border-radius: 48px 48px 200px 48px; }
@media (max-width: 1024px) { [dir="rtl"] .elementor .home-about-photo { border-radius: 40px 40px 140px 40px; } }
@media (max-width: 767px) { [dir="rtl"] .elementor .home-about-photo { border-radius: 28px 28px 90px 28px; } }

/* ---------- responsive ---------- */
@media (min-width: 900px) and (max-width: 1199px) {
	.uch-products__grid > li:nth-child(n+7) { display: none; } /* 3 columns: show 2 full rows */
}
@media (max-width: 1024px) {
	.uch-hero { border-radius: 32px; }
	.uch-hero__viewport { aspect-ratio: 2.6 / 1; }
	.uch-slide__caption { inset-inline-start: 28px; bottom: 28px; }
	.uch-slide__title { font-size: 26px; }
	.uch-head__title { font-size: 36px; }
	.uch-section { margin-top: 44px; }
	.uch-fallback { padding: 40px 36px; }
	.uch-fallback__title { font-size: 44px; }
}
@media (max-width: 1024px) {
	.uch-products { padding: 36px 28px 40px; border-radius: 40px / 30px; }
}
@media (max-width: 767px) {
	.uch-products { padding: 26px 12px 28px; border-radius: 26px; margin-inline: auto; }
	/* 0.9.8 (T17): the banner photo fills the whole frame (no beige band under it); caption, dots and pause sit ON the photo */
	.uch-hero { margin-top: 12px; border-radius: 20px; }
	.uch-hero__viewport { aspect-ratio: 16 / 10; max-height: none; }
	.uch-hero__arrow { display: none; }
	.uch-slide__caption { inset-inline: 10px auto; bottom: 36px; max-width: calc(100% - 20px); gap: 2px; padding: 8px 12px 9px; border-radius: 14px 14px 14px 5px; }
	[dir="rtl"] .uch-slide__caption { border-radius: 14px 14px 5px 14px; }
	.uch-slide__title { font-size: 17px; line-height: 1.2; }
	html[lang^="ar"] .uch-slide__title { font-size: 16px; line-height: 1.35; }
	.uch-slide__more { font-size: 11px; }
	html[lang^="ar"] .uch-slide__more { font-size: 12px; }
	.uch-hero__controls { bottom: 7px; inset-inline-end: 50%; transform: translateX(50%); gap: 2px; padding: 1px 4px; background: rgba(255, 255, 255, .82); }
	[dir="rtl"] .uch-hero__controls { transform: translateX(-50%); }
	.uch-hero__dot { width: 24px; height: 24px; }   /* 24px: minimum touch target */
	.uch-hero__dot::before { width: 6px; height: 6px; }
	.uch-hero__dot.is-active::before { width: 16px; }
	.uch-hero__pause { width: 24px; height: 24px; }
	.uch-hero__pause-icon { width: 8px; height: 9px; border-inline-width: 2px; }
	.uch-hero__pause[aria-pressed="true"] .uch-hero__pause-icon { border-block-width: 5px; border-inline-start-width: 8px; }
	.uch-section { margin-top: 36px; }
	.uch-head { margin-bottom: 16px; }
	.uch-head__title { font-size: 28px; }
	.uch-cats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.uch-cat { border-radius: 22px; }
	.uch-cat__body { padding: 10px 14px 14px; gap: 4px; }
	.uch-cat__name { font-size: 19px; }
	html[lang^="ar"] .uch-cat__name { font-size: 18px; }
	.uch-cat__meta { font-size: 12.5px; }
	.uch-cat__go { width: 30px; height: 30px; }
	.uch-fallback { padding: 28px 20px; }
	.uch-fallback__title { font-size: 32px; }
	.uch-fallback__text { font-size: 15.5px; }
}

@media (prefers-reduced-motion: reduce) {
	.ucx-js .ucx-reveal .ucx-stagger > li { opacity: 1; transform: none; transition: none; }
	.uch-slide, .uch-slide.is-active { transition: none; }
	.uch-slide__img, .uch-slide.is-active .uch-slide__img { transform: none; transition: none; }
	.uch-cat, .uch-cat__media img { transition: none; }
	.uch-cat:hover { transform: none; }
	.uch-cat:hover .uch-cat__media img { transform: none; }
}

/* ===== 0.9.6 (T16): category bar → product gallery → explore button ===== */
.uch-catbar, .uch-gallery, .uch-explore { width: calc(100% - 2 * var(--uc-gutter, 48px)); max-width: calc(var(--uc-max, 1280px) + 96px); margin-inline: auto; }
.uch-catbar { margin-top: 16px; background: var(--color-beige, #F5EDE2); border-radius: 22px; padding: 14px 10px; }
.uch-catbar__list { display: flex; gap: 6px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--color-sand, #DDD1C2) transparent; padding: 2px 4px 4px; justify-content: safe center; }
.uch-catbar__item { flex: 0 0 auto; scroll-snap-align: start; }
.uch-catbar__link { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 104px; padding: 8px 4px; border-radius: 16px; color: var(--color-charcoal, #332F2D); text-decoration: none; transition: background-color .2s ease; }
.uch-catbar__link:hover { background: rgba(255,255,255,.65); }
.uch-catbar__link:focus-visible { outline: 3px solid var(--color-terracotta, #ED1C24); outline-offset: 2px; }
.uch-catbar__img { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; background: #fff; display: grid; place-items: center; box-shadow: 0 0 0 1px var(--color-sand, #DDD1C2); }
.uch-catbar__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.uch-catbar__img svg, .uch-catbar__img .ucx-default-icon { width: 60%; height: 60%; object-fit: contain; }
.uch-catbar__name { font-size: 14px; font-weight: 600; line-height: 1.25; text-align: center; overflow-wrap: anywhere; }
.uch-gallery { margin-top: 22px; }
.uch-gallery__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.uch-gallery__link { display: block; border-radius: 18px; overflow: hidden; background: var(--color-beige, #F5EDE2); aspect-ratio: 4 / 3; }
.uch-gallery__img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform .5s ease, filter .5s ease; }
.uch-gallery__img.is-contain { object-fit: contain; }
/* 0.9.7 (T16b): the whole photo is the link to its product — hand cursor, light zoom + soft shadow on hover */
a.uch-gallery__link { position: relative; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: box-shadow .35s ease, transform .35s ease; }
a.uch-gallery__link * { pointer-events: none; }
a.uch-gallery__link:hover { box-shadow: 0 10px 28px rgba(60, 40, 20, .16); transform: translateY(-2px); }
a.uch-gallery__link:hover .uch-gallery__img { transform: scale(1.035); filter: brightness(1.03); }
a.uch-gallery__link:active { transform: translateY(0); }
a.uch-gallery__link:focus-visible { outline: 3px solid var(--color-terracotta, #ED1C24); outline-offset: 3px; }
.uch-explore { margin-top: 28px; display: flex; justify-content: center; }
.uch-explore__btn { gap: 10px; }
[dir="rtl"] .uch-explore__btn svg { transform: scaleX(-1); }
@media (max-width: 767px) {
	.uch-catbar, .uch-gallery, .uch-explore { width: calc(100% - 24px); }
	.uch-catbar { margin-top: 12px; padding: 10px 4px; border-radius: 18px; }
	.uch-catbar__list { justify-content: flex-start; }
	.uch-catbar__link { width: 84px; padding: 6px 2px; }
	.uch-catbar__img { width: 60px; height: 60px; }
	.uch-catbar__name { font-size: 12.5px; }
	.uch-gallery { margin-top: 16px; }
	.uch-gallery__grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
	.uch-gallery__link { border-radius: 14px; }
}
@media (prefers-reduced-motion: reduce) { .uch-gallery__img, .uch-catbar__link { transition: none; } a.uch-gallery__link:hover .uch-gallery__img { transform: none; } a.uch-gallery__link, a.uch-gallery__link:hover { transition: none; transform: none; } }
