/*
 * LC Médical — Comptoir : the shop sign.
 * Tiers: .lc-util (dark strip, desktop) / .lc-sign (logo, search, tools) / .lc-depts (departments, desktop).
 * The utility strip (desktop) or the logo row (mobile) scrolls away; the rest stays stuck.
 */

/* ---------- Frame ---------- */
.lc-header {
	--lc-hd-hide: var(--lc-util-h);
	position: sticky;
	inset-block-start: calc(var(--lc-adminbar, 0px) - var(--lc-hd-hide));
	z-index: 100;
	background: var(--lc-paper);
	border-block-end: 1px solid var(--lc-line);
	transition: box-shadow var(--lc-dur-med) linear;
}

.lc-scrolled .lc-header {
	box-shadow: var(--lc-shadow-bar);
}

/* Phones: the logo row (56px) and the switch row (50px) scroll away, the full-width search stays stuck. */
@media (max-width: 999.98px) {
	.lc-header {
		--lc-hd-hide: 106px;
	}
}

/* ---------- Logo ---------- */
.lc-logo {
	--lc-logo-ink: var(--lc-navy-800);
	--lc-logo-sub: var(--lc-ink-muted);
	--lc-logo-pulse: var(--lc-red);
	display: block;
	flex: none;
	color: var(--lc-navy-800);
	text-decoration: none;
}

.lc-on-dark .lc-logo {
	--lc-logo-ink: #ffffff;
	--lc-logo-sub: var(--lc-navy-200);
	--lc-logo-pulse: var(--lc-red-on-dark);
}

.lc-logo__svg {
	display: block;
	inline-size: auto;
	block-size: 50px;
	aspect-ratio: 210 / 52;
	overflow: visible;
}

/* ---------- Utility strip (desktop) ---------- */
.lc-util {
	display: none;
	block-size: var(--lc-util-h);
	background: var(--lc-navy-950);
	font-size: var(--lc-fs-sm);
}

@media (min-width: 1000px) {
	.lc-util {
		display: block;
	}
}

.lc-util__in,
.lc-util__start {
	display: flex;
	align-items: center;
	gap: var(--lc-s-5);
}

.lc-util__in {
	justify-content: center;
	block-size: 100%;
}

.lc-util__hours {
	margin: 0;
	color: var(--lc-text-muted);
}

.lc-util__promises {
	display: flex;
	align-items: center;
	gap: var(--lc-s-5);
	margin: 0;
	padding: 0;
	list-style: none;
	color: #fff;
}

.lc-util__promises li {
	display: inline-flex;
	align-items: center;
	gap: 0.45em;
}

.lc-svc__menu {
	display: flex;
	align-items: center;
	gap: var(--lc-s-5);
	margin: 0;
	padding: 0;
	list-style: none;
}

.lc-util .lc-citybtn {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 0.45em;
	color: #fff;
	font-weight: 500;
}

/* The strip is 36px tall; the hit area still reaches 44px. */
.lc-util .lc-citybtn::after {
	content: '';
	position: absolute;
	inset-block: -4px;
	inset-inline: -6px;
}

.lc-util .lc-citybtn:hover {
	color: var(--lc-navy-200);
}

.lc-util .lc-icon {
	inline-size: 1.1em;
	block-size: 1.1em;
	color: var(--lc-navy-300);
}

@media (max-width: 1199.98px) {
	.lc-util__promises li:first-child {
		display: none;
	}
}

/* City button (utility strip variant and mobile chip). */
.lc-citybtn {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	cursor: pointer;
}

.lc-citybtn__text {
	display: inline-flex;
	gap: 0.35em;
	align-items: baseline;
}

.lc-citybtn__small {
	color: var(--lc-text-muted);
}

.lc-citybtn__name {
	font-weight: 700;
}

.lc-citybtn__chev {
	inline-size: 1em;
	block-size: 1em;
	opacity: 0.8;
}

/* ---------- Sign (row 1): logo + search + tools ---------- */
.lc-sign {
	background: var(--lc-paper);
}

.lc-sign__in {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: var(--lc-s-5);
	block-size: var(--lc-sign-h);
}

.lc-sign__brand {
	display: flex;
	align-items: center;
	min-inline-size: 0;
}

.lc-sign__mobile-tools {
	display: none;
}

.lc-sign__tools {
	display: flex;
	align-items: center;
	gap: var(--lc-s-1);
}

.lc-hd__item {
	position: relative;
	display: flex;
	align-items: center;
	gap: 0.65em;
	min-block-size: 48px;
	padding: 0.35em 0.7em;
	border-radius: var(--lc-r-pill);
	color: var(--lc-ink);
	font-size: var(--lc-fs-sm);
	font-weight: 600;
	text-decoration: none;
	transition: background-color var(--lc-dur-fast) linear;
}

.lc-hd__item:hover {
	background: var(--lc-blue-50);
	color: var(--lc-link-hover);
}

.lc-hd__icon {
	position: relative;
	display: inline-grid;
	place-items: center;
}

.lc-hd__icon .lc-icon {
	inline-size: 1.5rem;
	block-size: 1.5rem;
}

.lc-hd__store .lc-icon,
.lc-hd__account .lc-icon {
	color: var(--lc-navy-800);
}

.lc-hd__store-label {
	white-space: nowrap;
}

.lc-hd__account {
	justify-content: center;
	inline-size: 48px;
	padding: 0;
}

.lc-hd__label {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
}

.lc-hd__small {
	font-size: var(--lc-fs-xs);
	color: var(--lc-ink-muted);
	white-space: nowrap;
}

.lc-hd__strong {
	font-size: var(--lc-fs-sm);
	font-weight: 700;
	white-space: nowrap;
}

/* Phone pill: pale-blue ground, medical-blue disc, navy figures (navy-800 on blue-100: 11.9:1). */
.lc-hd__phone {
	display: flex;
	align-items: center;
	gap: 0.7em;
	min-block-size: 48px;
	padding: 0.25em 1.15em 0.25em 0.3em;
	border-radius: var(--lc-r-pill);
	background: var(--lc-blue-100);
	color: var(--lc-navy-800);
	text-decoration: none;
	box-shadow: inset 0 0 0 1.5px transparent;
	transition: box-shadow var(--lc-dur-fast) linear;
}

.lc-hd__phone:hover {
	color: var(--lc-navy-800);
	box-shadow: inset 0 0 0 1.5px var(--lc-blue-600);
}

.lc-hd__phone-disc {
	display: grid;
	place-items: center;
	flex: none;
	inline-size: 38px;
	block-size: 38px;
	border-radius: 50%;
	background: var(--lc-blue-600);
	color: #fff;
}

.lc-hd__phone-disc .lc-icon {
	inline-size: 1.15rem;
	block-size: 1.15rem;
}

.lc-hd__phone-text {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
}

.lc-hd__phone-small {
	font-size: var(--lc-fs-xs);
	color: var(--lc-ink-muted);
	white-space: nowrap;
}

.lc-hd__phone-num {
	font-size: 1.125rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	white-space: nowrap;
}

/* Cart: icon + item count only, like the account icon (no pill, no label, no amount). 48x48 target. */
.lc-hd__cart {
	justify-content: center;
	min-inline-size: 48px;
	margin-inline-start: var(--lc-s-1, 4px);
	padding: 0.35em 0.6em;
	background: none;
	color: var(--lc-navy-800, var(--lc-ink));
}

.lc-hd__cart .lc-hd__icon .lc-icon {
	inline-size: 1.65rem;
	block-size: 1.65rem;
}

/* Cart count: a small paper label with an ink hairline (flat). */
.lc-cart-count {
	position: absolute;
	inset-block-start: -9px;
	inset-inline-end: -12px;
	display: grid;
	place-items: center;
	min-inline-size: 22px;
	block-size: 22px;
	padding-inline: 4px;
	background: var(--lc-paper);
	color: var(--lc-ink);
	border: 1.5px solid var(--lc-ink);
	border-radius: 4px;
	font-family: var(--lc-font-label);
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 1;
}

/* In the header drawer the count sits on the icon's top-end corner and the label starts clear of it (wider icon-to-label
   gap above, inward offset here), so even a two-digit count never touches "Panier". */
.lc-hd__cart .lc-cart-count {
	inset-block-start: -6px;
	inset-inline-end: -8px;
	min-inline-size: 16px;
	block-size: 16px;
	padding-inline: 3px;
	border-width: 1px;
	border-radius: 3px;
	font-size: 0.6875rem;
}

.lc-cart-count.is-empty {
	display: none;
}

/* Narrow desktops: the store link, the phone caption and the cart caption fold away (text stays for screen readers). */
@media (min-width: 1000px) and (max-width: 1259.98px) {
	.lc-hd__store-label,
	.lc-hd__phone-small {
		position: absolute;
		inline-size: 1px;
		block-size: 1px;
		margin: -1px;
		overflow: hidden;
		clip-path: inset(50%);
	}

	.lc-hd__store {
		inline-size: 48px;
		justify-content: center;
		padding: 0;
	}

	.lc-hd__phone {
		padding-inline-end: 1em;
	}

	.lc-sign__in {
		gap: var(--lc-s-4);
	}
}

.lc-hd__icon-btn {
	display: inline-grid;
	place-items: center;
	inline-size: var(--lc-tap);
	block-size: var(--lc-tap);
	border-radius: var(--lc-r-field);
	color: var(--lc-ink);
	text-decoration: none;
}

.lc-hd__icon-btn .lc-icon {
	inline-size: 1.6rem;
	block-size: 1.6rem;
}

/* ---------- Search: a big rounded field, medical-blue outline, round blue button ---------- */
.lc-search {
	position: relative;
	inline-size: 100%;
	max-inline-size: none;
	margin: 0;
}

.lc-search__holder {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	min-block-size: 48px; /* same height as the "Conseil & commande" pill */
	padding: 2px 2px 2px 1.15rem;
	background: var(--lc-paper);
	border: 1.5px solid var(--lc-action);
	border-radius: var(--lc-r-pill);
	box-shadow: 0 1px 1px rgb(20 36 107 / 0.06), 0 6px 14px -8px rgb(20 36 107 / 0.28);
	transition: border-color var(--lc-dur-fast) linear;
}

.lc-search__holder:hover {
	border-color: var(--lc-action-hover);
}

.lc-search__holder:focus-within {
	border-color: var(--lc-action);
	outline: 3px solid var(--lc-focus);
	outline-offset: 3px;
}

.lc-search__icon {
	flex: none;
	color: var(--lc-ink-muted);
	inline-size: 1.4rem;
	block-size: 1.4rem;
}

.lc-search .lc-search__input {
	flex: 1;
	min-inline-size: 0;
	min-block-size: 41px;
	block-size: 41px; /* Blocksy sets height: var(--theme-form-field-height) on every input */
	margin: 0;
	padding: 0.3em 0.25em;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: var(--lc-ink);
	font: 500 1rem/1.3 var(--lc-font-text);
	text-overflow: ellipsis;
	-webkit-appearance: none;
	appearance: none;
	outline: 0;
}

.lc-search .lc-search__input:focus,
.lc-search .lc-search__input:focus-visible {
	outline: 0;
	box-shadow: none;
}

.lc-search .lc-search__input::placeholder {
	color: var(--lc-ink-faint);
	font-weight: 400;
}

.lc-search .lc-search__go {
	display: inline-flex;
	align-items: center;
	gap: 0.55em;
	flex: none;
	min-block-size: 41px;
	margin: 0;
	padding: 0 1.3rem;
	border: 0;
	border-radius: var(--lc-r-pill);
	background: var(--lc-action);
	color: #fff;
	font: 700 0.9375rem/1 var(--lc-font-label);
	letter-spacing: 0.07em;
	text-transform: uppercase;
	box-shadow: var(--lc-shadow-lacquer);
	cursor: pointer;
	transition: background-color var(--lc-dur-fast) linear;
}

.lc-search .lc-search__go:hover {
	background: var(--lc-action-hover);
	color: #fff;
}

.lc-search__go .lc-icon {
	inline-size: 1.25em;
	block-size: 1.25em;
}

/* Type-ahead list (lc-core suggest.js appends .lc-suggest__list to the form). */
.lc-search .lc-suggest__list {
	position: absolute;
	inset-inline: 0;
	inset-block-start: calc(100% + 10px);
	z-index: 120;
	max-block-size: min(70dvh, 28rem);
	margin: 0;
	padding: 6px;
	overflow: auto;
	list-style: none;
	background: var(--lc-paper);
	border: 0;
	border-radius: var(--lc-r-drawer);
	box-shadow: var(--lc-shadow-panel);
}

.lc-search .lc-suggest__list[hidden] {
	display: none;
}

.lc-search .lc-suggest__item a {
	display: flex;
	align-items: center;
	gap: var(--lc-s-3);
	min-block-size: 56px;
	padding: 6px 10px;
	border-radius: var(--lc-r-field);
	color: var(--lc-ink);
	text-decoration: none;
}

.lc-search .lc-suggest__item[aria-selected='true'] a,
.lc-search .lc-suggest__item a:hover {
	background: var(--lc-blue-50);
}

.lc-search .lc-suggest__item img {
	inline-size: 44px;
	block-size: 44px;
	object-fit: contain;
	border-radius: var(--lc-r-label);
	background: var(--lc-shelf);
}

.lc-search .lc-suggest__name {
	flex: 1;
	font-size: var(--lc-fs-sm);
	font-weight: 500;
	line-height: 1.3;
}

.lc-search .lc-suggest__sku {
	display: block;
	margin-block-start: 2px;
	font-size: var(--lc-fs-xs);
	font-weight: 400;
	color: var(--lc-ink-muted);
}

.lc-search .lc-suggest__price {
	font-family: var(--lc-font-label);
	font-size: var(--lc-fs-sm);
	font-weight: 700;
	white-space: nowrap;
	font-variant-numeric: tabular-nums lining-nums;
	font-feature-settings: 'tnum' 1, 'lnum' 1;
}

/* The home page used to park the header search while its counter search was on screen; the header search is now
   always there (one big search in the header), so those rules (home.css, higher specificity here) are neutralised. */
.js .lc-home:not(.lc-hero-search-out) .lc-header .lc-sign .lc-search {
	visibility: visible;
	opacity: 1;
	pointer-events: auto;
}

/* ---------- Row 2 (desktop): audience switch, "Tous les rayons", thematic links ---------- */
.lc-depts {
	display: none;
	background: var(--lc-paper);
	border-block-start: 1px solid var(--lc-line);
}

@media (min-width: 1000px) {
	.lc-depts {
		display: block;
	}
}

.lc-depts__in {
	display: flex;
	align-items: center;
	gap: var(--lc-s-4);
	block-size: var(--lc-depts-h);
}

/* Desktop bar copy: compact, same 36px height as "Tous les rayons" (mouse-driven row; phone copies keep 44px). */
.lc-aud.lc-aud--bar {
	padding: 0;
	gap: 0;
}

.lc-aud--bar .lc-aud__seg {
	min-block-size: 36px;
	padding: 0 0.9em;
	font-size: 0.875rem;
}

/* The phone copy of the switch lives in the sign; desktop shows the one in row 2. */
.lc-sign__in > .lc-aud--sheet {
	display: none;
}

/* Particulier | Professionnel: a segmented control (links; it navigates). */
.lc-aud {
	display: inline-flex;
	align-items: stretch;
	flex: none;
	gap: 2px;
	padding: 4px;
	border-radius: var(--lc-r-pill);
	background: var(--lc-blue-100);
}

.lc-aud__seg {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	min-block-size: var(--lc-tap, 44px);
	padding: 0 1.1em;
	border-radius: var(--lc-r-pill);
	color: var(--lc-navy-800);
	font: 700 1rem/1 var(--lc-font-label);
	letter-spacing: 0.02em;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color var(--lc-dur-fast) linear, color var(--lc-dur-fast) linear;
}

.lc-aud__seg:hover {
	background: rgb(255 255 255 / 0.7);
	color: var(--lc-navy-800);
}

.lc-aud__seg.is-active,
.lc-aud__seg.is-active:hover {
	background: var(--lc-navy-800);
	color: #fff;
}

.lc-aud__icon {
	flex: none;
	inline-size: 1.2em;
	block-size: 1.2em;
	color: var(--lc-blue-600);
}

.lc-aud__seg.is-active .lc-aud__icon {
	color: #fff;
}

.lc-aud__ht {
	padding: 3px 8px;
	border-radius: var(--lc-r-pill);
	background: var(--lc-paper);
	color: var(--lc-navy-800);
	font: 700 0.75rem/1 var(--lc-font-label);
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.lc-depts__toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.55em;
	min-block-size: 36px;
	padding: 0 0.95em 0 0.85em;
	border: 0;
	border-radius: var(--lc-r-pill);
	background: var(--lc-action);
	color: #fff;
	font: 700 0.8125rem/1 var(--lc-font-label);
	letter-spacing: 0.07em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color var(--lc-dur-fast) linear;
}

.lc-depts__toggle:hover,
.lc-depts__toggle[aria-expanded='true'] {
	background: var(--lc-action-hover);
}

.lc-depts__chev {
	inline-size: 1em;
	block-size: 1em;
	margin-inline-start: 0.1em;
	transition: transform var(--lc-dur-med) var(--lc-ease-out);
}

.lc-depts__toggle[aria-expanded='true'] .lc-depts__chev {
	transform: rotate(180deg);
}

/* Department links: the ones that fit; the rest wrap onto a hidden second line (ui.js also hides them from the tab order). */
.lc-depts__nav {
	flex: 1;
	min-inline-size: 0;
}

.lc-depts__menu {
	display: flex;
	flex-wrap: wrap;
	block-size: 44px;
	margin: 0;
	padding: 0;
	overflow: hidden;
	list-style: none;
}

.lc-depts__menu > li {
	display: flex;
}

.lc-depts__menu > li[hidden] {
	display: none;
}

.lc-depts__menu a {
	display: flex;
	align-items: center;
	block-size: 44px;
	padding-inline: 0.75rem;
	border-radius: var(--lc-r-pill);
	color: var(--lc-ink-2);
	font: 500 0.9375rem/1 var(--lc-font-text);
	text-decoration: none;
	white-space: nowrap;
	transition: background-color var(--lc-dur-fast) linear;
}

.lc-depts__menu a:hover,
.lc-depts__menu .current-menu-item > a,
.lc-depts__menu a[aria-current='page'] {
	background: var(--lc-blue-50);
	color: var(--lc-link-hover);
}

/* Thematic links: Location, Promotions (real sales only), Espace Pro, Magasin. */
.lc-hd-links {
	flex: none;
	margin-inline-start: auto;
}

.lc-hd-links__list {
	display: flex;
	align-items: center;
	gap: var(--lc-s-1);
	margin: 0;
	padding: 0;
	list-style: none;
}

.lc-hd-links__a {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	min-block-size: 44px;
	padding: 0 0.9em;
	border-radius: var(--lc-r-pill);
	color: var(--lc-ink);
	font: 600 1.0625rem/1 var(--lc-font-label);
	letter-spacing: 0.01em;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color var(--lc-dur-fast) linear;
}

.lc-hd-links__a .lc-icon {
	inline-size: 1.2em;
	block-size: 1.2em;
	color: var(--lc-blue-500);
}

.lc-hd-links__a:hover,
.lc-hd-links__a.is-current {
	background: var(--lc-blue-50);
	color: var(--lc-link-hover);
}

.lc-hd-links__a.is-current {
	box-shadow: inset 0 0 0 1.5px var(--lc-blue-100);
}

@media (min-width: 1000px) and (max-width: 1159.98px) {
	.lc-hd-links__a {
		padding-inline: 0.6em;
	}

	.lc-hd-links__a .lc-icon {
		display: none;
	}
}

/* ---------- Pro bar (lc-b2b): same strip language, in lacquer ---------- */
body .lc-pro-bar {
	background: var(--lc-navy-800);
	color: #fff;
	border-block-end: 1px solid rgb(255 255 255 / 0.18);
	font-family: var(--lc-font-text);
	font-size: var(--lc-fs-sm);
}

body .lc-pro-bar__inner {
	max-inline-size: var(--lc-container);
	padding: 0.6em var(--lc-gutter);
}

body .lc-pro-bar a {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 0.25em;
	font-weight: 700;
}

/* ---------- Mobile / tablet (below 1000px): logo + icons, the switch, the full-width search (stuck) ---------- */
@media (max-width: 999.98px) {
	.lc-sign__in {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
		block-size: auto;
	}

	.lc-sign__brand {
		justify-content: space-between;
		gap: var(--lc-s-2);
		block-size: 56px;
	}

	.lc-sign__mobile-tools {
		display: flex;
		align-items: center;
		flex: none;
		gap: var(--lc-s-1);
	}

	.lc-sign__mobile-tools > .lc-hd__icon-btn {
		flex: none;
	}

	.lc-sign__tools {
		display: none;
	}

	.lc-logo__svg {
		block-size: 38px;
	}

	/* The switch: a compact segmented control, two equal halves, 44px targets, 8px below. */
	.lc-sign__in > .lc-aud--sheet {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		inline-size: 100%;
		padding: 3px;
	}

	.lc-aud--sheet .lc-aud__seg {
		min-block-size: 44px;
		padding-inline: 0.6em;
		font-size: 0.9375rem;
	}

	.lc-search {
		padding-block: 8px 10px;
	}

	.lc-search .lc-search__go-text {
		position: absolute;
		inline-size: 1px;
		block-size: 1px;
		margin: -1px;
		overflow: hidden;
		clip-path: inset(50%);
	}

	.lc-search .lc-search__go {
		padding-inline: 0.9rem;
	}

	.lc-search__holder {
		min-block-size: 50px;
	}

	.lc-search .lc-suggest__list {
		inset-block-start: calc(100% - 4px);
	}

	.js .lc-home:not(.lc-hero-search-out) .lc-header .lc-sign .lc-search {
		display: block;
	}
}

@media (max-width: 389.98px) {
	.lc-aud--sheet .lc-aud__icon {
		display: none;
	}

	.lc-search .lc-search__go {
		padding-inline: 0.8rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.lc-depts__chev {
		transition: none;
	}
}
