/*
 * Pilote Xiaomi Store : en-tête façon mi.com/fr (mesures relevées le 21/11/2026).
 * Barre blanche de 56 px, ombre 0 6px 16px rgba(25,25,25,.06), largeur utile 1500 px ; logo 32 px ;
 * menu MiSans 15 px/400 #191919, 48 px entre les entrées, orange #ff6900 au survol (trait de 2 px) ;
 * boutons de 44 × 56 px à pictogrammes de 28 px, 32 px entre eux ; pastille du panier #ff6900.
 * Ordinateur seulement : sous 1200 px, le thème masque cet en-tête et affiche son en-tête mobile.
 */

@supports (font-variation-settings: normal) {
	@font-face {
		font-family: "XS MiSans";
		font-style: normal;
		font-weight: 100 900;
		font-display: swap;
		src: url("https://i05.appmifile.com/i18n/fonts/MiSansLatin/vf/4.woff2?v=lwrpi0tp") format("woff2");
		unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
	}
	@font-face {
		font-family: "XS MiSans";
		font-style: normal;
		font-weight: 100 900;
		font-display: swap;
		src: url("https://i05.appmifile.com/i18n/fonts/MiSansLatin/vf/3.woff2?v=lwrpi0tp") format("woff2");
		unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
	}
}

/* ---------- logo animé (comme mi.com : le « mi » sort à droite, la maison entre par la gauche) ---------- */

.xs-logo { display: block; width: 32px; height: 32px; line-height: 0; border-radius: 9px; }
.xs-logo__svg { display: block; width: 32px; height: 32px; overflow: hidden; }
.xs-logo__glisse { transform: translateX(-112px); transition: transform .2s; }
.xs-logo:hover .xs-logo__glisse,
.xs-logo:focus-visible .xs-logo__glisse { transform: translateX(0); }
.xs-logo:focus-visible { outline: 2px solid #ff6900; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
	.xs-logo__glisse { transition: none; }
}

.xs-ent-rech[hidden],
.xs-ent-voile[hidden] { display: none !important; }

@media (min-width: 1200px) {
	body.xs-entete-mi #tbay-header {
		--xs-police: "XS MiSans", CamphorProForXiaoMi, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
		position: relative;
		z-index: 1000;
		font-family: var(--xs-police);
	}

	/* ---------- barre ---------- */

	body.xs-entete-mi #tbay-header .elementor-top-section {
		padding-top: 0;
		padding-bottom: 0;
		background-color: #fff;
		box-shadow: 0 6px 16px rgba(25, 25, 25, .06);
	}
	body.xs-entete-mi #tbay-header .elementor-top-section > .elementor-container {
		position: static;
		max-width: 1548px;
		min-height: 56px;
		padding: 0 24px;
		align-items: center;
	}
	body.xs-entete-mi #tbay-header .xs-ent-col {
		width: auto;
		min-height: 56px;
		flex: 0 0 auto;
	}
	body.xs-entete-mi #tbay-header .xs-ent-col > .elementor-widget-wrap {
		padding: 0;
		align-content: center;
		align-items: center;
		flex-wrap: nowrap;
	}
	body.xs-entete-mi #tbay-header .xs-ent-col .elementor-widget {
		width: auto;
		margin: 0;
	}
	body.xs-entete-mi #tbay-header .xs-ent-col .elementor-widget > .elementor-widget-container {
		margin: 0;
		padding: 0;
	}
	body.xs-entete-mi #tbay-header .xs-ent-col-vide { display: none; }
	body.xs-entete-mi #tbay-header .xs-ent-col-nav {
		min-width: 0;
		margin-left: 48px;
		flex: 1 1 auto;
	}
	body.xs-entete-mi #tbay-header .xs-ent-col-nav .elementor-widget { width: 100%; }
	body.xs-entete-mi #tbay-header .xs-ent-col-compte,
	body.xs-entete-mi #tbay-header .xs-ent-col-panier { margin-left: 32px; }

	/* ---------- logo ---------- */

	body.xs-entete-mi #tbay-header .xs-ent-col-logo {
		position: relative;
		z-index: 21;
	}
	body.xs-entete-mi #tbay-header .xs-ent-col-logo .xs-logo__svg {
		width: 32px;
		max-width: none;
		height: 32px;
	}
	body.xs-entete-mi #tbay-header .xs-ent-col-logo .tbay-element-site-logo,
	body.xs-entete-mi #tbay-header .xs-ent-col-logo .header-logo {
		display: flex;
		align-items: center;
		height: 56px;
		margin: 0;
		padding: 0;
	}

	/* ---------- menu ---------- */

	body.xs-entete-mi #tbay-header .xs-ent-col-nav .elementor-nav-menu--main {
		justify-content: flex-start;
	}
	body.xs-entete-mi #tbay-header .xs-ent-col-nav .elementor-nav-menu--main .elementor-nav-menu {
		display: flex;
		flex-wrap: nowrap;
		justify-content: flex-start;
		margin: 0;
	}
	body.xs-entete-mi #tbay-header .xs-ent-col-nav .elementor-nav-menu--main .elementor-nav-menu > li { margin: 0 48px 0 0; }
	body.xs-entete-mi #tbay-header .xs-ent-col-nav .elementor-nav-menu--main .elementor-nav-menu > li:last-child { margin-right: 0; }
	body.xs-entete-mi #tbay-header .xs-ent-col-nav .elementor-nav-menu--main .elementor-nav-menu > li > .elementor-item {
		display: flex;
		align-items: center;
		height: 56px;
		margin: 0;
		padding: 0;
		background: none;
		box-shadow: inset 0 -2px 0 transparent;
		color: #191919;
		fill: #191919;
		font-family: var(--xs-police);
		font-size: 15px;
		font-weight: 400;
		line-height: 1.25;
		letter-spacing: 0;
		text-transform: none;
		white-space: nowrap;
		transition: color .2s, box-shadow .2s;
	}
	body.xs-entete-mi #tbay-header .xs-ent-col-nav .elementor-nav-menu--main .elementor-nav-menu > li > .elementor-item:hover,
	body.xs-entete-mi #tbay-header .xs-ent-col-nav .elementor-nav-menu--main .elementor-nav-menu > li > .elementor-item:focus-visible,
	body.xs-entete-mi #tbay-header .xs-ent-col-nav .elementor-nav-menu--main .elementor-nav-menu > li.xs-hm-li-ouvert > .elementor-item {
		box-shadow: inset 0 -2px 0 #ff6900;
		color: #ff6900;
		fill: #ff6900;
	}
	body.xs-entete-mi #tbay-header .xs-ent-col-nav .elementor-nav-menu--main .elementor-nav-menu > li > .elementor-item.elementor-item-active,
	body.xs-entete-mi #tbay-header .xs-ent-col-nav .elementor-nav-menu--main .elementor-nav-menu > li.current-menu-item > .elementor-item,
	body.xs-entete-mi #tbay-header .xs-ent-col-nav .elementor-nav-menu--main .elementor-nav-menu > li.current-menu-ancestor > .elementor-item {
		color: #ff6900;
		fill: #ff6900;
	}
	body.xs-entete-mi #tbay-header .xs-ent-col-nav .elementor-nav-menu--main .elementor-item:focus-visible { outline: none; }

	/* ---------- boutons à pictogramme ---------- */

	body.xs-entete-mi #tbay-header .xs-ent-icone,
	body.xs-entete-mi #tbay-header .xs-ent-col-compte .account-button,
	body.xs-entete-mi #tbay-header .xs-ent-col-panier .elementor-menu-cart__toggle .elementor-button {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 44px;
		min-width: 0;
		height: 56px;
		margin: 0;
		padding: 0;
		border: 0;
		border-radius: 0;
		background: none;
		box-shadow: none;
		color: #191919;
		cursor: pointer;
		transition: color .2s;
	}
	body.xs-entete-mi #tbay-header .xs-ent-icone:hover,
	body.xs-entete-mi #tbay-header .xs-ent-icone:focus-visible,
	body.xs-entete-mi #tbay-header .xs-ent-col-compte .account-button:hover,
	body.xs-entete-mi #tbay-header .xs-ent-col-compte .tbay-login:hover .account-button,
	body.xs-entete-mi #tbay-header .xs-ent-col-panier .elementor-menu-cart__toggle .elementor-button:hover {
		background: none;
		color: #ff6900;
	}
	body.xs-entete-mi #tbay-header .xs-ent-icone:focus-visible { outline: 2px solid #ff6900; outline-offset: -6px; }
	body.xs-entete-mi #tbay-header .xs-ent-ico { display: block; width: 28px; height: 28px; }

	/* Compte et panier : le pictogramme du thème devient un pictogramme au trait (masque, couleur du texte). */
	body.xs-entete-mi #tbay-header .xs-ent-col-compte .account-button i,
	body.xs-entete-mi #tbay-header .xs-ent-col-panier .elementor-menu-cart__toggle .elementor-button-icon i {
		display: block;
		width: 28px;
		height: 28px;
		font-size: 0;
		line-height: 0;
		background-color: currentColor;
		-webkit-mask: var(--xs-ent-masque) center / 28px 28px no-repeat;
		mask: var(--xs-ent-masque) center / 28px 28px no-repeat;
	}
	body.xs-entete-mi #tbay-header .xs-ent-col-compte .account-button i::before,
	body.xs-entete-mi #tbay-header .xs-ent-col-panier .elementor-menu-cart__toggle .elementor-button-icon i::before { content: none; }
	body.xs-entete-mi #tbay-header .xs-ent-col-compte .account-button i {
		--xs-ent-masque: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8.6' r='3.9'/%3E%3Cpath d='M4.6 20.4c.9-3.9 3.9-6.2 7.4-6.2s6.5 2.3 7.4 6.2'/%3E%3C/svg%3E");
	}
	body.xs-entete-mi #tbay-header .xs-ent-col-panier .elementor-menu-cart__toggle .elementor-button-icon i {
		--xs-ent-masque: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4.6h2.3l2.2 10.3c.1.6.7 1 1.3 1h8.5c.6 0 1.1-.4 1.3-1L20.4 8H6.1'/%3E%3Ccircle cx='9.4' cy='19.4' r='1.2'/%3E%3Ccircle cx='17' cy='19.4' r='1.2'/%3E%3C/svg%3E");
	}

	/* Panier : sans montant, pastille orange (masquée à 0). */
	body.xs-entete-mi #tbay-header .xs-ent-col-panier .elementor-menu-cart__toggle .elementor-button-text { display: none; }
	body.xs-entete-mi #tbay-header .xs-ent-col-panier .elementor-menu-cart__toggle .elementor-button-icon {
		position: relative;
		display: block;
		width: 28px;
		height: 28px;
		margin: 0;
		color: inherit;
	}
	body.xs-entete-mi #tbay-header .xs-ent-col-panier .elementor-menu-cart__toggle .elementor-button-icon[data-counter]::before {
		content: attr(data-counter);
		position: absolute;
		top: -5px;
		right: -10px;
		left: auto;
		display: block;
		box-sizing: border-box;
		min-width: 18px;
		height: 16px;
		padding: 0 5px;
		border-radius: 8px 8px 0 8px;
		background: #ff6900;
		color: #fff;
		font-family: var(--xs-police);
		font-size: 11px;
		font-weight: 500;
		line-height: 16px;
		text-align: center;
	}
	body.xs-entete-mi #tbay-header .xs-ent-col-panier .elementor-menu-cart__toggle .elementor-button-icon[data-counter="0"]::before { display: none; }

	/* ---------- recherche : loupe, panneau par-dessus l'en-tête, voile ---------- */

	body.xs-entete-mi #tbay-header .xs-ent-col-recherche,
	body.xs-entete-mi #tbay-header .xs-ent-col-recherche > .elementor-widget-wrap,
	body.xs-entete-mi #tbay-header .xs-ent-col-recherche .elementor-widget-besa-search-form,
	body.xs-entete-mi #tbay-header .xs-ent-col-recherche .elementor-widget-besa-search-form > .elementor-widget-container { position: static; }

	body.xs-entete-mi #tbay-header .xs-ent-voile {
		position: fixed;
		inset: 0;
		z-index: 19;
		background: rgba(153, 153, 153, .5);
	}
	body.xs-entete-mi #tbay-header .xs-ent-rech {
		position: absolute;
		top: 0;
		right: 0;
		left: 0;
		z-index: 20;
		padding: 80px 24px 48px;
		background: #fff;
		box-shadow: 0 6px 16px rgba(25, 25, 25, .06);
		text-align: left;
	}
	body.xs-entete-mi #tbay-header .xs-ent-rech__fermer {
		position: absolute;
		top: 0;
		right: max(24px, calc((100% - 1500px) / 2));
	}
	body.xs-entete-mi #tbay-header .xs-ent-rech__in {
		max-width: 832px;
		margin: 0 auto;
	}
	body.xs-entete-mi #tbay-header .xs-ent-rech .tbay-search-form,
	body.xs-entete-mi #tbay-header .xs-ent-rech .searchform,
	body.xs-entete-mi #tbay-header .xs-ent-rech .form-group {
		width: 100%;
		max-width: none;
		margin: 0;
	}
	body.xs-entete-mi #tbay-header .xs-ent-rech .input-group {
		position: relative;
		display: flex;
		align-items: center;
		width: 100%;
		height: 56px;
		border: 1px solid #e0e0e0;
		border-radius: 14px;
		background: #fff;
		transition: border-color .2s;
	}
	body.xs-entete-mi #tbay-header .xs-ent-rech .input-group:focus-within { border-color: #ff6900; }
	body.xs-entete-mi #tbay-header .xs-ent-rech .input-group::before {
		content: "";
		position: absolute;
		top: 50%;
		left: 18px;
		width: 24px;
		height: 24px;
		margin-top: -12px;
		background-color: #8c8c8c;
		-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.6'/%3E%3Cpath d='M15.9 15.9l4.6 4.6'/%3E%3C/svg%3E") center / 24px 24px no-repeat;
		mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.6'/%3E%3Cpath d='M15.9 15.9l4.6 4.6'/%3E%3C/svg%3E") center / 24px 24px no-repeat;
		pointer-events: none;
	}
	body.xs-entete-mi #tbay-header .xs-ent-rech input.tbay-search {
		width: 100%;
		height: 54px;
		margin: 0;
		padding: 0 20px 0 54px;
		flex: 1 1 auto;
		border: 0;
		border-radius: 14px;
		background: transparent;
		box-shadow: none;
		outline: 0;
		color: #191919;
		font-family: var(--xs-police);
		font-size: 20px;
		line-height: 54px;
	}
	body.xs-entete-mi #tbay-header .xs-ent-rech input.tbay-search::placeholder { color: #8c8c8c; }
	body.xs-entete-mi #tbay-header .xs-ent-rech .button-group { display: none; }
	body.xs-entete-mi #tbay-header .xs-ent-rech .autocomplete-suggestions {
		border: 1px solid #eee;
		border-radius: 12px;
		box-shadow: 0 8px 24px rgba(25, 25, 25, .08);
		overflow: hidden;
	}

	body.xs-entete-mi #tbay-header .xs-ent-rech__liens { margin: 28px 0 0; padding: 0 20px; }
	body.xs-entete-mi #tbay-header .xs-ent-rech__titre {
		margin: 0 0 8px;
		color: #898989;
		font-family: var(--xs-police);
		font-size: 20px;
		font-weight: 700;
		line-height: 1.4;
	}
	body.xs-entete-mi #tbay-header .xs-ent-rech__liens ul { margin: 0; padding: 0; list-style: none; }
	body.xs-entete-mi #tbay-header .xs-ent-rech__liens li { margin: 0; padding: 0; }
	body.xs-entete-mi #tbay-header .xs-ent-rech__liens a {
		display: block;
		padding: 8px 0 8px 22px;
		color: #5f5f5f;
		font-family: var(--xs-police);
		font-size: 16px;
		font-weight: 400;
		line-height: 1.5;
		text-decoration: none;
		transition: color .2s;
	}
	body.xs-entete-mi #tbay-header .xs-ent-rech__liens a:hover,
	body.xs-entete-mi #tbay-header .xs-ent-rech__liens a:focus-visible { color: #ff6900; }
}
