/* Accueil vidéo (gabarit page-accueil-video.php). Préfixe uh- : « UCS home ». */
.uh {
	--uh-pad: clamp(16px, 4vw, 56px);
	--uh-gap: clamp(56px, 8vw, 120px);
	--uh-max: 1440px;
	--uh-kids: #ff9d00;
	--uh-orange: #ff7a1a;
	display: flex;
	flex-direction: column;
	gap: var(--uh-gap);
	padding-bottom: var(--uh-gap);
	color: var(--ucs-ink);
	font-family: var(--ucs-font-text);
}
.uh > :where(section:not(.uh-hero)) { box-sizing: border-box; width: 100%; max-width: calc(var(--uh-max) + 2 * var(--uh-pad)); margin: 0 auto; padding: 0 var(--uh-pad); }
.uh h2, .uh p { margin: 0; }
.uh-title { font-family: var(--ucs-font-head); font-weight: 700; font-size: clamp(2rem, 4.2vw, 3.6rem); line-height: 1; letter-spacing: -.012em; text-wrap: balance; }
.uh-lead { max-width: 46ch; font-size: clamp(1.02rem, 1.3vw, 1.18rem); line-height: 1.55; color: var(--ucs-muted); }
.uh-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: clamp(24px, 3vw, 40px); }
.uh-head--row { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 20px; }

/* Boutons et liens */
.uh a.uh-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border-radius: 999px; font-weight: 700; font-size: 1rem; text-decoration: none; transition: background .2s, color .2s, transform .2s; }
.uh a.uh-btn:focus-visible, .uh-link:focus-visible, .uh-dot:focus-visible, .uh-shape__link:focus-visible, .uh-hero__toggle:focus-visible { outline: 3px solid var(--ucs-yellow); outline-offset: 3px; }
.uh a.uh-btn--yellow { background: var(--ucs-yellow); color: var(--ucs-ink); }
.uh a.uh-btn--yellow:hover { background: #fff; color: var(--ucs-ink); }
.uh a.uh-btn--ink { background: var(--ucs-ink); color: #fff; }
.uh a.uh-btn--ink:hover { background: var(--ucs-yellow); color: var(--ucs-ink); }
.uh a.uh-btn--glass { background: rgba(255,255,255,.14); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.7); backdrop-filter: blur(8px); }
.uh a.uh-btn--glass:hover { background: #fff; color: var(--ucs-ink); }
.uh a.uh-btn--orange { background: var(--uh-orange); color: var(--ucs-ink); }
.uh a.uh-btn--orange:hover { background: #fff; color: var(--ucs-ink); }
.uh a.uh-link { color: inherit; font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: var(--ucs-yellow); }
.uh a.uh-link:hover { text-decoration-color: currentColor; }
.uh-more { margin-top: clamp(28px, 3vw, 44px) !important; text-align: center; }

/* 1. Vidéo */
.uh-hero { position: relative; display: flex; align-items: flex-end; min-height: 560px; height: 100svh; max-height: 1100px; overflow: hidden; background: var(--ucs-ink); color: #fff; }
.uh-hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* La vidéo porte son propre titre : seuls les boutons sont posés dessus, en bas. */
.uh-hero__shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,10,10,.5) 0%, rgba(10,10,10,0) 28%), linear-gradient(to bottom, rgba(10,10,10,.45), rgba(10,10,10,0) 180px); }
.uh-hero__body { position: relative; display: flex; flex-direction: column; gap: 20px; width: 100%; max-width: var(--uh-max); margin: 0 auto; padding: 0 var(--uh-pad) clamp(40px, 7vw, 96px); box-sizing: content-box; }
.uh-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px !important; }
.uh button.uh-hero__toggle { position: absolute; right: var(--uh-pad); bottom: clamp(40px, 7vw, 96px); display: grid; place-items: center; width: 44px; height: 44px; min-height: 0; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.18); color: #fff; backdrop-filter: blur(8px); cursor: pointer; }
.uh button.uh-hero__toggle:hover { background: rgba(255,255,255,.32); }
.uh button.uh-hero__toggle svg { fill: currentColor; }
.uh button.uh-hero__toggle .is-play, .uh-hero__toggle[aria-pressed="true"] .is-pause { display: none; }
.uh button.uh-hero__toggle[aria-pressed="true"] .is-play { display: inline; }

/* 2. Les formes : la couleur se choisit sur la carte */
.uh-shapes__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px) clamp(14px, 1.6vw, 24px); margin: 0; padding: 0; list-style: none; }
.uh-shape { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.uh-shape__link { display: flex; flex-direction: column; gap: 4px; color: inherit; text-decoration: none; border-radius: 24px; }
.uh-shape__media { position: relative; display: block; aspect-ratio: 1 / 1; margin-bottom: 12px; border-radius: 24px; overflow: hidden; background: color-mix(in srgb, var(--tint) 16%, #ffffff); transition: background .35s ease; }
.uh-shape__media img { position: absolute; inset: 0; box-sizing: border-box; width: 100%; height: 100%; max-width: none; object-fit: contain; padding: 9%; transition: transform .45s ease, opacity .2s; }
.uh-shape__link:hover .uh-shape__media img { transform: scale(1.04) rotate(-2deg); }
.uh-shape__line { font-size: .85rem; color: var(--ucs-muted); }
.uh-shape__name { font-family: var(--ucs-font-head); font-weight: 700; font-size: clamp(1.25rem, 1.7vw, 1.6rem); line-height: 1.05; letter-spacing: -.005em; }
.uh-shape__meta { display: flex; justify-content: space-between; gap: 10px; font-size: .95rem; }
.uh-shape__meta [data-uh-label] { color: var(--ucs-muted); text-align: right; }
.uh-shape__dots { display: flex; flex-wrap: wrap; gap: 7px; }
.uh button.uh-dot { width: 24px; height: 24px; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 50%; background: var(--dot); box-shadow: inset 0 0 0 1px rgba(0,0,0,.14); cursor: pointer; transition: box-shadow .15s, transform .15s; }
.uh button.uh-dot:hover { transform: scale(1.12); }
.uh button.uh-dot[aria-pressed="true"] { box-shadow: inset 0 0 0 1px rgba(0,0,0,.14), 0 0 0 2px var(--ucs-ground), 0 0 0 4px var(--ucs-ink); }

/* 3. Customised */
.uh-custom { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: clamp(24px, 4vw, 64px); }
.uh-custom__text { display: flex; flex-direction: column; gap: 18px; }
.uh-custom__price { font-weight: 700; }
.uh-custom__watches { padding: clamp(20px, 3vw, 40px); border-radius: 32px; background: #fff; }
.uh-custom__watches .ucss-cfg-teaser { margin: 0; }

/* 4. Superkids : leur propre univers */
.uh > section.uh-kids { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: clamp(24px, 4vw, 64px); padding: clamp(32px, 5vw, 72px) clamp(22px, 4vw, 64px); border-radius: 36px; background: var(--uh-kids); max-width: calc(var(--uh-max)); width: calc(100% - 2 * var(--uh-pad)); }
.uh-kids__text { display: flex; flex-direction: column; gap: 18px; }
.uh-kids__brand { font-family: var(--ucs-font-head); font-weight: 700; font-size: 1.1rem; }
.uh-kids .uh-lead { color: rgba(20,20,20,.82); }
.uh-kids__price { display: inline-block; margin-left: 12px; font-weight: 700; white-space: nowrap; }
.uh-kids__watches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 20px); margin: 0; padding: 0; list-style: none; }
.uh-kids__watches li:nth-child(2) { transform: translateY(-18px); }
.uh-kids__watches a { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--ucs-ink); font-weight: 700; text-decoration: none; }
.uh-kids__watches img { box-sizing: border-box; width: 100%; aspect-ratio: 3 / 4; object-fit: contain; padding: 10%; border-radius: 24px; background: #fff; transition: transform .3s; }
.uh-kids__watches a:hover img { transform: rotate(-3deg); }

/* 5. Solar : la photo (avec son logo) reste entière, le texte dessous */
.uh-solar__photo { margin: 0 0 clamp(22px, 3vw, 36px); }
.uh-solar__photo img { display: block; width: 100%; aspect-ratio: 2560 / 1127; object-fit: cover; border-radius: 32px; }
.uh-solar__text { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; gap: 14px clamp(24px, 4vw, 64px); }
.uh-solar__text > :not(.uh-title) { grid-column: 2; }

/* 6. Atelier : titre à gauche, texte et faits à droite */
.uh-atelier__text { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; gap: 20px clamp(24px, 4vw, 64px); }
.uh-atelier__text > :not(.uh-title) { grid-column: 2; }
.uh-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 24px; margin: 6px 0 0; padding: 20px 0 0; border-top: 1px solid var(--ucs-line); }
.uh-facts div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 2px; }
.uh-facts dt { font-size: .9rem; color: var(--ucs-muted); }
.uh-facts dd { margin: 0; font-family: var(--ucs-font-head); font-weight: 700; font-size: clamp(1.35rem, 1.9vw, 1.7rem); letter-spacing: -.01em; white-space: nowrap; }

/* 7. Mine-ex : une cause, pas une collection comme les autres */
.uh > section.uh-mineex { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); align-items: center; gap: clamp(24px, 4vw, 64px); padding: clamp(40px, 6vw, 88px) clamp(22px, 4vw, 64px); border-left: 6px solid var(--uh-orange); border-radius: 0 36px 36px 0; background: var(--ucs-ink); color: #fff; max-width: var(--uh-max); width: calc(100% - 2 * var(--uh-pad)); }
.uh-mineex__text { display: flex; flex-direction: column; gap: 18px; }
.uh-mineex__name { font-family: var(--ucs-font-head); font-weight: 700; font-size: 1.1rem; color: var(--uh-orange); }
.uh-mineex .uh-title { color: #fff; }
.uh-mineex .uh-lead { max-width: 52ch; color: rgba(255,255,255,.78); }
.uh-mineex__watch { margin: 0; }
.uh-mineex__watch img { display: block; box-sizing: border-box; width: 100%; aspect-ratio: 1 / 1; object-fit: contain; padding: 10%; border-radius: 28px; background: #262626; }

/* 8. Actualités */
.uh-news__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); margin: 0; padding: 0; list-style: none; }
.uh-news__list li { display: flex; }
.uh-news__list a { display: flex; flex-direction: column; width: 100%; overflow: hidden; border-radius: 22px; background: #fff; color: inherit; text-decoration: none; }
.uh-news__img { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--ucs-tile); }
.uh-news__body { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 18px 22px 22px; }
.uh-news__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.uh-news__list a:hover img { transform: scale(1.04); }
.uh-news__list time { font-size: .88rem; color: var(--ucs-muted); }
.uh-news__title { font-family: var(--ucs-font-head); font-weight: 700; font-size: 1.2rem; line-height: 1.2; }

/* 9. Revendeurs : carte blanche arrondie, logos en grand */
.uh > section.uh-stockists { display: flex; flex-direction: column; align-items: center; gap: clamp(22px, 3vw, 36px); padding: clamp(36px, 5vw, 64px) clamp(22px, 4vw, 64px); border-radius: 36px; background: #fff; max-width: var(--uh-max); width: calc(100% - 2 * var(--uh-pad)); }
.uh-stockists__title { margin: 0; font-family: var(--ucs-font-head); font-weight: 700; font-size: clamp(1.6rem, 2.6vw, 2.3rem); letter-spacing: -.01em; text-align: center; }
.uh-stockists ul { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(28px, 6vw, 96px); margin: 0; padding: 0; list-style: none; }
.uh-stockists img { display: block; height: clamp(64px, 8vw, 104px); width: auto; max-width: 100%; mix-blend-mode: multiply; }

/* Tablette */
@media (max-width: 1100px) {
	.uh-shapes__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.uh-custom, .uh > section.uh-kids { grid-template-columns: 1fr; }
	.uh-solar__text { grid-template-columns: 1fr 1fr; }
	.uh > section.uh-mineex { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
}
/* Téléphone : les formes défilent à l'horizontale */
@media (max-width: 680px) {
	.uh-hero { min-height: 520px; height: 88svh; }
	.uh-hero__toggle { bottom: auto; top: 140px; }
	.uh-shapes__grid { display: flex; gap: 14px; margin: 0 calc(-1 * var(--uh-pad)); padding: 0 var(--uh-pad) 6px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--uh-pad); -webkit-overflow-scrolling: touch; scrollbar-width: none; }
	.uh-shapes__grid::-webkit-scrollbar { display: none; }
	.uh-shape { flex: 0 0 76%; scroll-snap-align: start; }
	.uh > section.uh-kids, .uh > section.uh-mineex { width: calc(100% - 2 * var(--uh-pad) + 0px); border-radius: 28px; }
	.uh > section.uh-mineex { grid-template-columns: 1fr; border-left-width: 5px; border-radius: 0 28px 28px 0; }
	.uh-mineex__watch { max-width: 240px; }
	.uh-kids__watches li:nth-child(2) { transform: none; }
	.uh-news__list { grid-template-columns: 1fr; }
	.uh-head--row { flex-direction: column; align-items: flex-start; }
	.uh-solar__text, .uh-atelier__text { grid-template-columns: 1fr; }
	.uh-solar__text > :not(.uh-title), .uh-atelier__text > :not(.uh-title) { grid-column: 1; }
	.uh-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.uh-facts div:nth-child(3) { grid-column: 1 / -1; }
	.uh-solar__photo img { aspect-ratio: 4 / 3; object-position: 55% center; border-radius: 24px; }
}
@media (prefers-reduced-motion: reduce) {
	.uh *, .uh *::before { transition: none !important; }
}
