/*
 * Pilote Xiaomi Store : page d'accueil façon mi.com/fr/store (mesures relevées le 21/11/2026).
 * Largeur utile 1400 px ; titres de blocs 32 px gras ; cartes blanches à coins de 12 px sur fond #f7f7f7,
 * 4 colonnes de 335 px espacées de 20 px ; grande carte sur 2 colonnes (photo 260 px), petite carte 335 × 335
 * (photo 170 px) ; « Nouveau » #be7600 ; raccourcis 120 px (photo 110 px, libellé 15 px) ; bandeau 1400 × 200.
 */

@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;
	}
}

.xs-acc {
	--xs-police: "XS MiSans", CamphorProForXiaoMi, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	padding: 0 0 64px;
	background: #f7f7f7;
	color: #191919;
	font-family: var(--xs-police);
	-webkit-font-smoothing: antialiased;
}
.xs-acc *, .xs-acc *::before, .xs-acc *::after { box-sizing: border-box; }
.xs-acc a { text-decoration: none; }
.xs-acc img { max-width: 100%; height: auto; }
.xs-acc-in { max-width: 1448px; margin: 0 auto; padding: 0 24px; }
.xs-acc-bloc { margin-top: 56px; }
.xs-acc-carrousel { margin-top: 0; }
.xs-acc-raccourcis { margin-top: 28px; }
.xs-acc-carrousel + .xs-acc-bloc:not(.xs-acc-raccourcis) { margin-top: 40px; }

/* ---------- titres ---------- */

.xs-acc-tete { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 0 0 24px; }
.xs-acc-tete--centre { justify-content: center; text-align: center; }
.xs-acc .xs-acc-titre { margin: 0; padding: 0; color: #191919; font-family: var(--xs-police); font-size: 32px; font-weight: 700; line-height: 40px; letter-spacing: 0; text-transform: none; }
.xs-acc-titre a { display: inline-flex; align-items: center; gap: 2px; color: inherit; transition: color .2s; }
.xs-acc-titre a:hover, .xs-acc-titre a:focus-visible { color: #ff6900; }
.xs-acc-titre .xs-acc-chevron { width: 30px; height: 30px; }
.xs-acc-sous { margin: 6px 0 0; color: #5e5e5e; font-size: 16px; line-height: 1.4; }
.xs-acc-chevron { display: inline-block; flex: none; vertical-align: middle; }
.xs-acc-fleches { display: flex; flex: none; gap: 12px; }
.xs-acc-fleche { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: #757575; color: #fff; cursor: pointer; transition: background .2s, opacity .2s; }
.xs-acc-fleche:hover { background: #191919; }
.xs-acc-fleche:focus-visible { outline: 2px solid #ff6900; outline-offset: 2px; }
.xs-acc-fleche[disabled] { background: #c7c7c7; cursor: default; }
.xs-acc-fleche .xs-acc-chevron { width: 20px; height: 20px; }

/* ---------- raccourcis ---------- */

.xs-acc-raccourcis__liste { display: flex; gap: 24px; max-width: 1448px; margin: 0 auto; padding: 0 24px 4px; overflow-x: auto; list-style: none; scrollbar-width: none; }
.xs-acc-raccourcis__liste::-webkit-scrollbar { display: none; }
.xs-acc-raccourcis__liste li { flex: none; margin: 0; padding: 0; }
.xs-acc-raccourcis__liste li:first-child { margin-left: auto; }
.xs-acc-raccourcis__liste li:last-child { margin-right: auto; }
.xs-acc-raccourci { display: flex; flex-direction: column; align-items: center; width: 120px; color: #191919; }
.xs-acc-raccourci__img { display: flex; align-items: center; justify-content: center; width: 110px; height: 110px; border-radius: 16px; overflow: hidden; }
.xs-acc-raccourci__img img { width: 92%; height: 92%; object-fit: contain; transition: transform .3s ease; }
.xs-acc-raccourci__nom { margin-top: 4px; color: #191919; font-size: 15px; line-height: 18.75px; text-align: center; transition: color .2s; }
.xs-acc-raccourci:hover img { transform: scale(1.06); }
.xs-acc-raccourci:hover .xs-acc-raccourci__nom, .xs-acc-raccourci:focus-visible .xs-acc-raccourci__nom { color: #ff6900; }

/* ---------- bandeau ---------- */

.xs-acc-bandeau { position: relative; display: block; height: 200px; border-radius: 12px; overflow: hidden; background: #eef0f3; }
.xs-acc-bandeau picture, .xs-acc-bandeau__img { position: absolute; inset: 0; width: 100%; height: 100%; }
.xs-acc-bandeau picture img, .xs-acc-bandeau__img { width: 100%; height: 100%; object-fit: cover; }
.xs-acc-bandeau__txt { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; max-width: 56%; height: 100%; padding: 0 60px; }
.xs-acc-bandeau__titre { font-size: 28px; font-weight: 700; line-height: 35px; }
.xs-acc-bandeau__texte { font-size: 16px; line-height: 1.4; }
.xs-acc-bandeau__btn { margin-top: 12px; padding: 8px 22px; border-radius: 8px; background: #191919; color: #fff; font-size: 14px; font-weight: 500; line-height: 20px; }
.xs-acc-bandeau--clair { color: #191919; }
.xs-acc-bandeau--sombre { color: #fff; }
.xs-acc-bandeau--sombre .xs-acc-bandeau__btn { background: #fff; color: #191919; }

/* ---------- cartes produits ---------- */

.xs-acc-grille { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.xs-acc-carte { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 335px; padding: 20px 28px 36px; border-radius: 12px; background: #fff; color: #191919; overflow: hidden; transition: box-shadow .25s ease; }
.xs-acc-carte:hover { box-shadow: 0 10px 28px rgba(25, 25, 25, .08); }
.xs-acc-carte:focus-visible { outline: 2px solid #ff6900; outline-offset: 2px; }
.xs-acc-carte--grande { grid-column: span 2; padding: 20px 36px 42px; }
.xs-acc-carte__infos { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; max-width: 100%; }
.xs-acc-carte--grande .xs-acc-carte__infos { max-width: 53%; }
.xs-acc-carte__nouveau { margin-bottom: 6px; color: #be7600; font-size: 12px; font-weight: 600; line-height: 15px; }
.xs-acc-carte--grande .xs-acc-carte__nouveau { font-size: 14px; line-height: 17.5px; }
.xs-acc-carte__nom { display: -webkit-box; overflow: hidden; color: #191919; font-size: 20px; font-weight: 700; line-height: 25px; -webkit-line-clamp: 2; -webkit-box-orient: vertical; transition: color .2s; }
.xs-acc-carte--grande .xs-acc-carte__nom { font-size: 26px; line-height: 32.5px; }
.xs-acc-carte:hover .xs-acc-carte__nom { color: #ff6900; }
.xs-acc-carte__accroche { display: -webkit-box; margin-top: 6px; overflow: hidden; color: #5e5e5e; font-size: 14px; line-height: 18px; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.xs-acc-carte__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.xs-acc-tag { display: inline-block; padding: 2px 8px; border-radius: 4px; background: #fff0e5; color: #ff6900; font-size: 13px; font-weight: 600; line-height: 18px; }
.xs-acc-carte__prix { position: absolute; bottom: 36px; left: 28px; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; color: #191919; font-size: 14px; line-height: 1.2; }
.xs-acc-carte__montant { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 0 4px; }
.xs-acc-carte__prix strong { font-size: 20px; font-weight: 600; }
.xs-acc-carte__prix small { font-size: 13px; }
.xs-acc-carte__des { color: #5e5e5e; font-size: 13px; }
.xs-acc-carte__prix del { margin-top: 2px; color: #757575; font-size: 13px; }
.xs-acc-carte__barre { color: #757575; font-size: 13px; font-weight: 400; }
.xs-acc-carte--grande .xs-acc-carte__prix { bottom: 42px; left: 36px; }
.xs-acc-carte--grande .xs-acc-carte__prix strong { font-size: 26px; }
.xs-acc-carte__image { position: absolute; right: 16px; bottom: 20px; display: flex; align-items: center; justify-content: center; width: 170px; height: 170px; }
.xs-acc-carte--grande .xs-acc-carte__image { top: 38px; right: 28px; bottom: auto; width: 260px; height: 260px; }
.xs-acc-carte__img { width: 100%; height: 100%; object-fit: contain; transition: transform .35s ease; }
.xs-acc-carte:hover .xs-acc-carte__img { transform: scale(1.04); }
.xs-acc .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* « Tous les produits » (dernière case des blocs catégories) */
.xs-acc-tous { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.xs-acc-tous__carte { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; min-height: 200px; padding: 24px 16px; border-radius: 12px; background: #eceef1; color: #191919; transition: background .2s; }
.xs-acc-tous__carte:hover { background: #e3e6ea; }
.xs-acc-tous__nom, .xs-acc-tous__lien { display: inline-flex; align-items: center; gap: 2px; font-size: 20px; font-weight: 600; line-height: 25px; transition: color .2s; }
.xs-acc-tous__imgs { display: flex; gap: 16px; margin-top: 24px; }
.xs-acc-tous__imgs img { width: 96px; height: 96px; object-fit: contain; }
.xs-acc-tous__lien { justify-content: center; min-height: 80px; padding: 16px; border-radius: 12px; background: #fff; color: #191919; font-size: 18px; }
.xs-acc-tous__carte:hover .xs-acc-tous__nom, .xs-acc-tous__lien:hover { color: #ff6900; }

/* Promotions : bande de couleur sur toute la largeur */
.xs-acc-promos { padding: 48px 0 56px; background: var(--xs-acc-fond, #ffd6ba); }
.xs-acc-promos .xs-acc-titre, .xs-acc-promos .xs-acc-titre a { color: #fff; }
.xs-acc-promos .xs-acc-titre a:hover { color: #ffd4b5; }
.xs-acc-promos .xs-acc-sous { color: rgba(255, 255, 255, .8); }
.xs-acc-promos--clair .xs-acc-titre, .xs-acc-promos--clair .xs-acc-titre a { color: #191919; }
.xs-acc-promos--clair .xs-acc-titre a:hover { color: #ff6900; }
.xs-acc-promos--clair .xs-acc-sous { color: #333; }

/* Nouveautés : piste qui défile */
.xs-acc-piste { display: grid; grid-auto-columns: calc((100% - 60px) / 4); grid-auto-flow: column; gap: 20px; overflow-x: auto; scroll-behavior: smooth; scroll-snap-type: x mandatory; scrollbar-width: none; }
.xs-acc-piste::-webkit-scrollbar { display: none; }
.xs-acc-piste > .xs-acc-carte { scroll-snap-align: start; }
.xs-acc-piste > .xs-acc-carte--grande { grid-column: span 2; }
.xs-acc-piste:focus-visible { outline: 2px solid #ff6900; outline-offset: 4px; }

/* ---------- avantages ---------- */

.xs-acc-avantages__liste { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin: 0; padding: 28px 16px; border-radius: 12px; background: #fff; list-style: none; }
.xs-acc-avantages__liste li { margin: 0; padding: 0; }
.xs-acc-avantages__liste a, .xs-acc-avantages__el { display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; padding: 8px 12px; color: #191919; text-align: center; }
.xs-acc-avantages__ico { display: flex; color: #ff6900; }
.xs-acc-avantages__ico svg { width: 32px; height: 32px; }
.xs-acc-avantages__titre { font-size: 15px; font-weight: 500; line-height: 1.3; }
.xs-acc-avantages__texte { color: #757575; font-size: 13px; line-height: 1.4; }
.xs-acc-avantages__liste a:hover .xs-acc-avantages__titre { color: #ff6900; }

/* ---------- magasin et SAV ---------- */

.xs-acc-magasin .xs-contacts-accueil { background: transparent; }

/* ---------- tablette ---------- */

@media (max-width: 1199px) {
	.xs-acc-grille { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.xs-acc-piste { grid-auto-columns: calc((100% - 40px) / 3); }
	.xs-acc-carte__image { width: 140px; height: 140px; }
	.xs-acc-carte--grande .xs-acc-carte__image { width: 220px; height: 220px; }
}

/* ---------- téléphone ---------- */

@media (max-width: 767px) {
	.xs-acc { padding-bottom: 40px; }
	.xs-acc-in { padding: 0 12px; }
	.xs-acc-bloc { margin-top: 36px; }
	.xs-acc-raccourcis { margin-top: 20px; }
	.xs-acc-tete { margin-bottom: 14px; }
	.xs-acc .xs-acc-titre { font-size: 22px; line-height: 28px; }
	.xs-acc-titre .xs-acc-chevron { width: 22px; height: 22px; }
	.xs-acc-sous { font-size: 14px; }
	.xs-acc-fleches { display: none; }

	.xs-acc-raccourcis__liste { gap: 8px; padding: 0 12px 4px; }
	.xs-acc-raccourci { width: 76px; }
	.xs-acc-raccourci__img { width: 68px; height: 68px; border-radius: 12px; }
	.xs-acc-raccourci__nom { font-size: 12px; line-height: 15px; }

	.xs-acc-bandeau { height: 150px; }
	.xs-acc-bandeau__txt { max-width: 68%; padding: 0 18px; }
	.xs-acc-bandeau__titre { font-size: 18px; line-height: 23px; }
	.xs-acc-bandeau__texte { font-size: 13px; }
	.xs-acc-bandeau__btn { margin-top: 6px; padding: 6px 14px; font-size: 12px; }

	.xs-acc-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.xs-acc-carte { min-height: 0; padding: 14px 14px 16px; }
	.xs-acc-carte__nom { font-size: 15px; line-height: 20px; }
	.xs-acc-carte__accroche { font-size: 12px; line-height: 16px; }
	.xs-acc-carte__tags { margin-top: 6px; }
	.xs-acc-tag { font-size: 12px; }
	.xs-acc-carte__image { position: static; order: 2; width: 100%; height: 120px; margin: 10px 0 8px; }
	.xs-acc-carte__prix { position: static; order: 3; margin-top: auto; }
	.xs-acc-carte__prix strong { font-size: 17px; }
	.xs-acc-carte--grande { min-height: 210px; padding: 18px 18px 20px; }
	.xs-acc-carte--grande .xs-acc-carte__infos { max-width: 56%; }
	.xs-acc-carte--grande .xs-acc-carte__nom { font-size: 20px; line-height: 25px; }
	.xs-acc-carte--grande .xs-acc-carte__image { position: absolute; top: 50%; right: 10px; width: 42%; height: 170px; margin: 0; transform: translateY(-50%); }
	.xs-acc-carte--grande .xs-acc-carte__prix { position: absolute; bottom: 20px; left: 18px; }
	.xs-acc-carte--grande .xs-acc-carte__prix strong { font-size: 20px; }

	.xs-acc-tous { grid-column: span 2; flex-direction: row; gap: 10px; }
	.xs-acc-tous__carte { flex: 1.4; min-height: 0; padding: 16px 10px; }
	.xs-acc-tous__nom { font-size: 16px; }
	.xs-acc-tous__imgs { gap: 8px; margin-top: 10px; }
	.xs-acc-tous__imgs img { width: 56px; height: 56px; }
	.xs-acc-tous__lien { flex: 1; min-height: 0; font-size: 15px; }

	.xs-acc-promos { padding: 32px 0 36px; }
	.xs-acc-piste { grid-auto-columns: calc((100% - 10px) / 2.15); gap: 10px; }

	.xs-acc-avantages__liste { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 16px 6px; }
	.xs-acc-avantages__liste li:last-child:nth-child(odd) { grid-column: span 2; }
}

@media (prefers-reduced-motion: reduce) {
	.xs-acc-piste { scroll-behavior: auto; }
	.xs-acc-carte__img, .xs-acc-raccourci__img img { transition: none; }
}

/* Titre principal (H1, réglage Optimisations) : lu par Google et les lecteurs d'écran, sans place à l'écran. */
.xs-acc-h1 { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
