/* Alexa : bandeau promo, en-tête, rangée de catégories, méga-menu. */

.alx-only-m {
	display: none;
}

/* Bandeau promo */
.alx-bar {
	background: var(--alx-ink);
	color: var(--alx-white);
	font-size: 12.5px;
}

.alx-bar .alx-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 28px;
	min-height: 36px;
}

.alx-bar a {
	text-decoration: underline;
}

.alx-bar__sep {
	opacity: 0.35;
}

.alx-bar__timer {
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

/* En-tête */
.alx-header {
	position: relative;
	z-index: 30;
	background: var(--alx-header-bg);
	border-bottom: 1px solid var(--alx-line);
}

.alx-top {
	display: grid;
	grid-template-columns: auto 1fr auto;
	grid-template-areas: "logo search icons";
	align-items: center;
	gap: 40px;
	height: 76px;
}

.alx-logo {
	grid-area: logo;
}

.alx-logo img {
	display: block;
	width: auto;
	height: 38px;
}

.alx-logo__text {
	font-size: var(--alx-fs-l);
	font-weight: 700;
}

.alx-search {
	grid-area: search;
	width: 100%;
	max-width: 640px;
	margin: 0 auto;
}

.alx-search__form {
	display: flex;
	align-items: center;
	height: 44px;
	padding: 0 6px 0 18px;
	border: 1.5px solid var(--alx-blue);
	border-radius: var(--alx-radius-pill);
	background: var(--alx-white);
}

.alx-search .alx-search__input {
	flex: 1;
	min-width: 0;
	min-height: 0;
	height: 100%;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	outline: 0;
	-webkit-appearance: none;
	appearance: none;
}

.alx-search__form:focus-within {
	outline: 2px solid var(--alx-accent);
	outline-offset: 2px;
}

.alx-search__submit {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: var(--alx-radius-pill);
	background: var(--alx-blue);
	color: var(--alx-white);
}

/* Recherche instantanée du plugin, habillée comme la recherche du thème. */
.alx-search .swe-search .swe-search__input {
	min-height: 44px;
	border: 1.5px solid var(--alx-blue);
	background: var(--alx-white);
}

.alx-search .swe-search button.swe-search__submit {
	right: 6px;
	width: 38px;
	height: 32px;
	background: var(--alx-blue);
	color: var(--alx-white);
}

.alx-search .swe-search button.swe-search__submit:hover,
.alx-search .swe-search button.swe-search__submit:focus-visible {
	color: var(--alx-white);
}

.alx-icons {
	grid-area: icons;
	display: flex;
	gap: 2px;
}

.alx-ib {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	transition: background 0.15s;
}

.alx-ib:hover {
	background: var(--alx-soft);
}

.alx-cnt,
.alx-ib .swe-wl-count,
.alx-ib .swe-wl-count[data-swe-wl-count] {
	position: absolute;
	top: 4px;
	right: 2px;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 17px;
	height: 17px;
	margin: 0;
	padding: 0 4px;
	border: 0;
	border-radius: 9px;
	background: var(--alx-ink);
	color: var(--alx-white);
	font-size: 10.5px;
	font-weight: 600;
	line-height: 1;
}

.alx-cnt.is-empty,
.alx-ib .swe-wl-count.is-empty,
.alx-ib .swe-wl-count[data-swe-wl-count].is-empty {
	display: none;
}

/* Rangée de catégories et méga-menu */
.alx-cats .alx-wrap {
	overflow-x: clip;
}

.alx-cats__list {
	display: flex;
	gap: 26px;
	height: 46px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.alx-cats__item {
	display: flex;
}

.alx-cats__item > a {
	position: relative;
	display: flex;
	align-items: center;
	height: 100%;
	color: #333;
	font-size: 14px;
	font-weight: 500;
	white-space: nowrap;
}

.alx-cats__item > a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2px;
	background: var(--alx-ink);
	transform: scaleX(0);
	transition: transform 0.2s;
}

.alx-cats__item:hover > a,
.alx-cats__item > a:focus-visible,
.alx-cats__item.is-current > a {
	color: var(--alx-ink);
}

.alx-cats__item:hover > a::after,
.alx-cats__item > a:focus-visible::after,
.alx-cats__item.is-current > a::after,
.alx-cats__item.has-mega.is-open > a::after {
	transform: scaleX(1);
}

.alx-cats__item.alx-promo > a,
.alx-cats__item.swc-promo > a {
	color: var(--alx-promo);
}

.alx-mega {
	display: none;
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	background: var(--alx-white);
	border-top: 1px solid var(--alx-line);
	box-shadow: var(--alx-shadow-m);
}

.has-mega.is-open > .alx-mega {
	display: block;
}

html:not(.alx-js) .has-mega:hover > .alx-mega,
html:not(.alx-js) .has-mega:focus-within > .alx-mega {
	display: block;
}

.alx-mega__in {
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr);
	gap: 40px;
	padding-top: 28px;
	padding-bottom: 32px;
}

.alx-mega__in.has-promos {
	grid-template-columns: 220px minmax(0, 1fr) 220px;
}

.alx-mega__side {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.alx-mega__title {
	display: block;
	margin-bottom: 12px;
	font-size: var(--alx-fs-m);
	font-weight: 600;
}

.alx-mega__all {
	margin-top: 14px;
	font-size: var(--alx-fs-s);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.alx-mega__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
	gap: 22px 18px;
	align-content: start;
	max-height: min(62vh, 520px);
	margin: 0;
	padding: 0;
	overflow-y: auto;
	list-style: none;
}

.alx-mtile {
	display: block;
	text-align: center;
}

.alx-mtile__img {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: var(--alx-radius-m);
	background: var(--alx-soft);
}

.alx-mtile__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.25s;
}

.alx-mtile__img--ph {
	background: hsl(var(--alx-hue) 35% 93%);
	color: hsl(var(--alx-hue) 25% 35%);
	font-size: 28px;
	font-weight: 600;
}

.alx-mtile__name {
	display: block;
	margin-top: 8px;
	color: var(--alx-text-soft);
	font-size: var(--alx-fs-s);
	line-height: 1.3;
}

.alx-mtile:hover .alx-mtile__img img,
.alx-mtile:focus-visible .alx-mtile__img img {
	transform: scale(1.04);
}

.alx-mtile:hover .alx-mtile__name,
.alx-mtile:focus-visible .alx-mtile__name {
	color: var(--alx-ink);
}

.alx-mega__promos {
	display: grid;
	gap: 16px;
	align-content: start;
}

.alx-mega__promos .alx-tile {
	min-height: 150px;
}

.alx-mega__link {
	display: block;
	padding: 5px 0;
	color: var(--alx-text-soft);
}

.alx-mega__link:hover,
.alx-mega__link:focus-visible {
	color: var(--alx-ink);
}

.alx-mega__link.alx-promo,
.alx-mega__link.swc-promo {
	color: var(--alx-promo);
}

.alx-tile {
	--alx-tile-bg: var(--alx-soft);
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 190px;
	overflow: hidden;
	border-radius: 14px;
	background: var(--alx-tile-bg);
}

.alx-tile__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.alx-tile__txt {
	position: relative;
	display: block;
	padding: 18px;
	background: var(--alx-tile-bg);
}

.alx-tile:not(.has-img) .alx-tile__txt {
	padding: 0;
	background: none;
}

.alx-tile:not(.has-img) {
	padding: 18px;
}

.alx-tile__title {
	display: block;
	font-size: 17px;
	font-weight: 600;
}

.alx-tile small {
	display: block;
	margin-top: 4px;
	color: var(--alx-text-soft);
	font-size: var(--alx-fs-s);
}

@media (max-width: 767px) {
	.alx-only-d { display: none !important; }
	.alx-only-m { display: flex; }

	.alx-bar .alx-wrap {
		min-height: 32px;
		gap: 0;
		font-size: 12px;
		text-align: center;
	}

	.alx-header {
		position: sticky;
		top: 0;
	}

	body.admin-bar .alx-header {
		top: 46px;
	}

	.alx-top {
		grid-template-columns: 1fr auto;
		grid-template-areas: "logo icons" "search search";
		grid-template-rows: 56px auto;
		gap: 0 10px;
		height: auto;
		padding-bottom: 10px;
	}

	.alx-logo img {
		height: 28px;
	}

	.alx-search {
		max-width: none;
	}

	.alx-search__form {
		height: 40px;
		padding-left: 14px;
		border-width: 1px;
		border-color: #d8d8de;
		background: var(--alx-soft);
	}

	.alx-search__submit {
		width: 32px;
		background: none;
		color: var(--alx-blue);
	}

	.alx-search .swe-search .swe-search__input {
		min-height: 40px;
		border-width: 1px;
		border-color: #d8d8de;
		background: var(--alx-soft);
	}

	.alx-search .swe-search button.swe-search__submit {
		width: 32px;
		background: none;
		color: var(--alx-blue);
	}

	.alx-search .swe-search button.swe-search__submit:hover,
	.alx-search .swe-search button.swe-search__submit:focus-visible {
		color: var(--alx-blue);
	}

	.alx-ib {
		width: 38px;
		height: 38px;
	}

	.swc-has-appshell .alx-ib--app {
		display: none;
	}

	.swc-appshell-header .alx-header {
		display: none;
	}

	.alx-chips {
		gap: 20px;
		height: 40px;
		padding: 0 var(--alx-gutter);
		overflow-x: auto;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}

	.alx-chips::-webkit-scrollbar {
		display: none;
	}

	.alx-chips a {
		position: relative;
		display: flex;
		align-items: center;
		color: #666;
		white-space: nowrap;
	}

	.alx-chips a.on {
		color: var(--alx-ink);
		font-weight: 600;
	}

	.alx-chips a.on::after {
		content: "";
		position: absolute;
		left: 20%;
		right: 20%;
		bottom: 6px;
		height: 2.5px;
		border-radius: 2px;
		background: var(--alx-ink);
	}

	.alx-chips a.alx-promo,
	.alx-chips a.swc-promo {
		color: var(--alx-promo);
	}
}
