/* Accueil Black Friday : sous le premier écran, chargé sans bloquer (inc/accueil-black-friday.php). */

/* ---------- Flèches des carrousels (ordinateur) ---------- */

.uc-bf .uc-bf-defil__b {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 4px;
	background: var(--uc-bf-btn);
	color: var(--uc-bf-btn-ink);
	cursor: pointer;
	transition-property: background-color, transform, opacity;
	transition-duration: 160ms;
	transition-timing-function: var(--uc-bf-ease);
}

.uc-bf .uc-bf-defil__b:hover {
	background: var(--uc-bf-btn-survol);
	color: var(--uc-bf-btn-ink);
}

.uc-bf .uc-bf-defil__b:active {
	transform: scale(.94);
}

.uc-bf .uc-bf-defil__b:disabled {
	opacity: .35;
	cursor: default;
}

.uc-bf-ico--g {
	transform: rotate(180deg);
}

/* ---------- Vus récemment ---------- */

.uc-bf-vus {
	padding-top: 40px;
}

.uc-bf-vus[hidden] {
	display: none;
}

/* ---------- Collections ---------- */

.uc-bf-colls {
	padding-top: clamp(48px, 6vw, 96px);
}

.uc-bf .uc-bf-colls__l {
	display: flex;
	gap: 10px;
	margin: 0;
	padding: 0 var(--uc-bf-m) 8px;
	overflow-x: auto;
	list-style: none;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: var(--uc-bf-m);
	scrollbar-width: none;
	overscroll-behavior-x: contain;
}

.uc-bf-colls__l::-webkit-scrollbar {
	display: none;
}

.uc-bf-coll {
	--c-fond: #0b2a6b;
	--c-ink: #fff;
	--c-remise: #fff;
	--c-remise-ink: #000;
	flex: none;
	width: min(80vw, 440px);
	margin: 0;
	scroll-snap-align: start;
}

/* Aplats profonds, chacun pris dans la couleur du produit qu'il porte. */
.uc-bf-fond--bleu { --c-fond: #0c2a72; }
.uc-bf-fond--vert { --c-fond: #0b4430; }
.uc-bf-fond--rouille { --c-fond: #a3401a; }
.uc-bf-fond--brique { --c-fond: #5e1520; }
.uc-bf-fond--roi { --c-fond: #2350d8; }

.uc-bf-coll a {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 4 / 5;
	background: var(--c-fond);
	color: var(--c-ink);
	text-decoration: none;
	isolation: isolate;
}

.uc-bf-coll a {
	container-type: inline-size;
}

/* Titre aussi grand que le permet son mot le plus long (--n lettres). */
.uc-bf-coll__t {
	position: absolute;
	top: 16px;
	right: 16px;
	left: 16px;
	z-index: 1;
	font-size: min(72px, calc((100cqi - 32px) / (var(--n) * .68)));
	font-weight: 600;
	line-height: .84;
	letter-spacing: -.05em;
	text-transform: uppercase;
}

.uc-bf-coll__pied {
	position: absolute;
	right: 16px;
	bottom: 16px;
	left: 16px;
	z-index: 3;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
}

.uc-bf-coll__remise {
	padding: 6px 12px 7px;
	border-radius: 999px;
	background: var(--c-remise);
	color: var(--c-remise-ink);
	font-size: 17px;
	font-weight: 600;
	line-height: 1;
}

.uc-bf-coll__l {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.25;
}

/* Carte photo : photo pleine carte, titre et pied sur un voile neutre. */
.uc-bf-coll__photo {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 700ms var(--uc-bf-ease);
}

.uc-bf-coll--photo a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, .78), rgba(0, 0, 0, .4) 38%, rgba(0, 0, 0, 0) 62%); /* taste-skill-ignore: voile neutre sous le texte sur photo */
}

.uc-bf-coll--photo a {
	background: #1a1a1d;
}

/* Sur photo, le titre descend au-dessus du pied : les visages restent libres. */
.uc-bf-coll--photo .uc-bf-coll__t {
	top: auto;
	bottom: 84px;
}

/* Carte sans photo : packshots détourés, très grands, qui sortent du cadre et passent devant le titre. */
.uc-bf-coll img.uc-bf-pk {
	position: absolute;
	z-index: 2;
	display: block;
	height: auto;
	max-width: none;
	filter: drop-shadow(0 22px 22px rgba(0, 0, 0, .42));
	transition: transform 700ms var(--uc-bf-ease);
}

.uc-bf-coll--protections img.uc-bf-pk--a { width: 62%; right: -6%; bottom: 21%; transform: rotate(-10deg); }
.uc-bf-coll--protections img.uc-bf-pk--b { width: 46%; left: 3%; bottom: 15%; transform: rotate(14deg); z-index: 3; }

.uc-bf-coll--ballons-de-rugby img.uc-bf-pk--a { width: 96%; right: -42%; bottom: 30%; transform: rotate(-24deg); }
.uc-bf-coll--ballons-de-rugby img.uc-bf-pk--b { width: 42%; left: 3%; bottom: 17%; transform: rotate(-6deg); z-index: 3; }
.uc-bf-coll--ballons-de-rugby img.uc-bf-pk--c { width: 32%; right: 4%; bottom: 17%; transform: rotate(10deg); z-index: 2; }

.uc-bf-coll--vetements-techniques img.uc-bf-pk--a { width: 56%; right: -8%; bottom: 27%; transform: rotate(7deg); }
.uc-bf-coll--vetements-techniques img.uc-bf-pk--b { width: 33%; left: 38%; bottom: 9%; transform: rotate(-14deg); z-index: 4; }
.uc-bf-coll--vetements-techniques img.uc-bf-pk--c { width: 40%; left: 1%; bottom: 16%; transform: rotate(-7deg); z-index: 3; }

.uc-bf-coll--crampons-adidas-f50 img.uc-bf-pk--a { width: 110%; right: -28%; bottom: 15%; transform: rotate(-12deg); z-index: 3; }
.uc-bf-coll--crampons-adidas-f50 img.uc-bf-pk--b { width: 90%; left: -22%; bottom: 35%; transform: rotate(-20deg); }

.uc-bf-coll--running img.uc-bf-pk--a { width: 124%; right: -30%; bottom: 29%; transform: rotate(-16deg); }
.uc-bf-coll--running img.uc-bf-pk--b { width: 72%; left: -8%; bottom: 13%; transform: rotate(-12deg); z-index: 3; }

.uc-bf .uc-bf-coll a:hover {
	color: var(--c-ink);
}

@media (hover: hover) {
	.uc-bf-coll a:hover .uc-bf-coll__l {
		text-decoration: underline;
		text-underline-offset: 3px;
	}

	.uc-bf-coll a:hover .uc-bf-coll__photo {
		transform: scale(1.04);
	}

	.uc-bf-coll a:hover img.uc-bf-pk--a {
		translate: 0 -10px;
	}
}

.uc-bf-coll a:focus-visible {
	outline: 3px solid var(--uc-bf-focus);
	outline-offset: 3px;
}

@media (min-width: 768px) {
	.uc-bf .uc-bf-colls__l {
		gap: 14px;
	}

	.uc-bf-coll {
		width: clamp(300px, 26vw, 440px);
	}

	.uc-bf-coll__t {
		top: 22px;
		right: 22px;
		left: 22px;
		font-size: min(80px, calc((100cqi - 44px) / (var(--n) * .68)));
	}

	.uc-bf-coll__pied {
		right: 22px;
		bottom: 22px;
		left: 22px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.uc-bf-coll__photo,
	.uc-bf-pk,
	.uc-bf .uc-bf-defil__b {
		transition: none;
	}
}

/* ---------- Plus vendus, un bandeau par sport ---------- */

.uc-bf-ventes {
	padding-top: clamp(56px, 7vw, 112px);
}

.uc-bf-bande {
	background: #6f9bff;
	color: #000;
}

.uc-bf-ventes--foot .uc-bf-bande {
	background: #000;
	color: #fff;
}

.uc-bf-bande__in {
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 96px;
	padding-block: 14px;
}

.uc-bf-bande__in .uc-bf-h {
	flex: 1 1 auto;
	text-transform: uppercase;
}

.uc-bf-bande__in > .uc-bf-ico {
	width: clamp(34px, 3.4vw, 48px);
	height: auto;
}

a.uc-bf-voir {
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	color: inherit;
	font-size: 16px;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 4px;
}

a.uc-bf-voir .uc-bf-ico {
	transition: transform 160ms var(--uc-bf-ease);
}

a.uc-bf-voir:hover .uc-bf-ico {
	transform: translateX(3px);
}

.uc-bf .uc-bf-bande a.uc-bf-voir:hover {
	color: inherit;
}

.uc-bf-bande a.uc-bf-voir:focus-visible {
	outline-color: currentColor;
}

.uc-bf-ventes__g {
	padding-top: 24px;
}

.uc-bf-ventes .woocommerce,
.uc-bf-ventes ul.products {
	margin-bottom: 0;
}

.uc-bf-ventes ul.products li.product,
.uc-bf-ventes ul.products li.product .woocommerce-card__header {
	display: flex;
	flex-direction: column;
}

.uc-bf-ventes ul.products li.product .woocommerce-card__header {
	flex: 1 1 auto;
}

.uc-bf .uc-bf-ventes ul.products li.product:not(.product-category) {
	align-self: stretch;
	height: auto;
	margin-bottom: 0;
}

.uc-bf-ventes ul.products li.product .woocommerce-image__wrapper img {
	height: auto;
	aspect-ratio: 1 / 1;
}

.uc-bf-ventes ul.products li.product .price {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	align-items: flex-start;
}

.uc-bf-ventes ul.products li.product .uc-code-prix {
	margin-top: auto;
	margin-bottom: 16px;
}

/* ---------- Newsletter : bandeau photo plein cadre ---------- */

.uc-bf-nl {
	position: relative;
	display: grid;
	margin-top: clamp(64px, 8vw, 128px);
	background: var(--uc-bf-ground);
	color: var(--uc-bf-ink);
}

.uc-bf-nl__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	object-position: 62% 60%;
}

.uc-bf-nl__in {
	position: relative;
	padding-block: 24px 40px;
}

.uc-bf-nl__box {
	max-width: 520px;
}

.uc-bf .uc-bf-nl__l {
	margin: 12px 0 18px;
	color: inherit;
	font-size: 18px;
	line-height: 1.4;
	text-wrap: pretty;
}

@media (min-width: 768px) {
	/* Photo sur les deux tiers droits, fondue dans le noir ; texte sur le noir à gauche (les deux habillages). */
	.uc-bf-nl {
		grid-template: 1fr / 1fr;
		align-items: center;
		min-height: clamp(460px, 40vw, 640px);
		background: #000;
		color: #fff;
	}

	.uc-bf-nl > * {
		grid-area: 1 / 1;
	}

	.uc-bf-nl__img {
		justify-self: end;
		width: 68%;
		height: 100%;
		aspect-ratio: auto;
		object-position: 50% 62%;
		-webkit-mask-image: linear-gradient(to right, transparent, #000 30%); /* taste-skill-ignore: masque de la photo */
		mask-image: linear-gradient(to right, transparent, #000 30%); /* taste-skill-ignore */
	}

	.uc-bf-nl__in {
		z-index: 1;
		padding-block: 56px;
	}

	.uc-bf-nl .uc-bf-h {
		font-size: clamp(44px, 4.6vw, 72px);
		text-transform: uppercase;
	}
}

/* Formulaire WCBM : titre et mention remplacés par ceux de la maquette. */
.uc-bf .wcbm-nl__title,
.uc-bf .wcbm-nl__fine {
	display: none;
}

.uc-bf .wcbm-nl {
	margin: 0;
}

.uc-bf .wcbm-nl__row {
	display: flex;
	flex-flow: row nowrap;
	gap: 8px;
}

.uc-bf .wcbm-nl__row input[type="email"] {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 52px;
	margin: 0;
	padding: 0 16px;
	border: 2px solid #000;
	border-radius: 4px;
	background: #fff;
	color: #000;
	font-size: 16px;
}

.uc-bf .wcbm-nl__row input[type="email"]::placeholder {
	color: #55555c;
}

.uc-bf .wcbm-nl__row .button:active {
	transform: scale(.97);
}

.uc-bf .wcbm-nl__row input[type="email"]:focus-visible,
.uc-bf .wcbm-nl__row .button:focus-visible {
	outline: 3px solid var(--uc-bf-focus);
	outline-offset: 2px;
}

.uc-bf .uc-bf-consent {
	margin: 12px 0 0;
	color: inherit;
	font-size: 14px;
	line-height: 1.4;
}

.uc-bf-consent a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* ---------- Fenêtre e-mail (reprise de c3) ---------- */

.uc-bf-dlg {
	box-sizing: border-box;
	padding: 22px 18px 14px;
	border: 0;
	background: #fff;
	color: #000;
	box-shadow: 0 -8px 32px rgba(0, 0, 0, .28); /* taste-skill-ignore: fenêtre flottante */
	--uc-bf-focus: #1d4fd8;
	--uc-bf-acc: #236CFF;
}

/* Feuille (show()) : posée en bas, 40 % de l'écran au plus, la page reste utilisable derrière. */
.uc-bf-dlg[open]:not(.is-modal) {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 99990;
	width: 100%;
	max-width: none;
	max-height: 40vh;
	margin: 0;
	padding-bottom: calc(14px + env(safe-area-inset-bottom));
	overflow: auto;
	border-radius: 16px 16px 0 0;
	animation: uc-bf-in 260ms var(--uc-bf-ease);
}

.uc-bf-dlg.is-modal {
	width: calc(100% - 32px);
	max-width: 480px;
	padding: 30px 28px 22px;
	border-radius: 16px;
}

.uc-bf-dlg.is-modal::backdrop {
	background: rgba(0, 0, 0, .6);
	overflow: hidden;
	overscroll-behavior: contain;
}

/* La page derrière la fenêtre ne défile pas quand on fait défiler la fenêtre. */
.uc-bf-dlg.is-modal:modal {
	overscroll-behavior: contain;
}

.uc-bf-dlg.is-modal[open] {
	animation: uc-bf-pop 220ms var(--uc-bf-ease);
}

.uc-bf .uc-bf-dlg__t {
	margin: 0;
	padding-right: 44px;
	color: #000;
	font-size: 26px;
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
	text-wrap: balance;
}

.uc-bf-dlg__t:focus {
	outline: none;
}

.uc-bf .uc-bf-dlg__l {
	margin: 8px 0 14px;
	color: #000;
	font-size: 16px;
	line-height: 1.4;
}

.uc-bf .uc-bf-dlg__x {
	position: absolute;
	top: 10px;
	right: 10px;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: #000;
	cursor: pointer;
}

.uc-bf .uc-bf-dlg__x:hover {
	background: #f2f3f5;
}

.uc-bf-dlg button:focus-visible,
.uc-bf-dlg a:focus-visible {
	outline: 3px solid var(--uc-bf-focus);
	outline-offset: 2px;
}

@keyframes uc-bf-in {
	from {
		transform: translateY(100%);
	}
}

@keyframes uc-bf-pop {
	from {
		opacity: 0;
		transform: scale(.96);
	}
}

@media (prefers-reduced-motion: reduce) {
	.uc-bf-coll__img img,
	.uc-bf-defil__b,
	a.uc-bf-pastille,
	.uc-bf .wcbm-nl__row .button {
		transition: none;
	}

	.uc-bf-dlg[open],
	.uc-bf-dlg.is-modal[open] {
		animation: none;
	}
}

/* Contraste AA dans les rangées (étiquette de remise et prix soldé du thème). */
.uc-bf .uc-bf-ventes .sale-item.product-label {
	background: #c8282a;
}


