/*
 * Mise en avant mi.com (produit principal d'un onglet de l'accueil) — mesures du bloc principal des onglets de
 * mi.com (featured-tabs) : deux moitiés, visuel qui remplit la sienne, texte centré sur fond #fafafa,
 * coins 6 px, police MiSans, bouton noir arrondi. Tranches : ≤ 720 px, 721–1024, 1025–1440, ≥ 1441.
 */

/* Police MiSans de mi.com, sous le nom propre à l'extension (voir bannieres.css). */
@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-ved {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: stretch;
	min-height: 348px;
	overflow: hidden;
	border-radius: 6px;
	background: #fafafa;
	color: #191919;
	font-family: "XS MiSans", CamphorProForXiaoMi, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
}
.xs-ved--sans-visuel { grid-template-columns: minmax(0, 1fr); }
.xs-ved--image-droite .xs-ved__visuel { order: 2; }

.xs-ved__visuel { position: relative; display: block; min-height: 100%; overflow: hidden; }
.xs-ved .xs-ved__img {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
	object-position: center;
	border-radius: 0 !important;
	transition: transform .5s;
}
.xs-ved:hover .xs-ved__img { transform: scale(1.03); }
/* Photo détourée (produit seul, à peu près carrée) : entière, centrée, sur le fond du bloc. */
.xs-ved--detoure .xs-ved__img { box-sizing: border-box; padding: 24px; object-fit: contain; }

.xs-ved__info {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-width: 0;
	padding: 12px clamp(24px, 11%, 66px);
	text-align: center;
}
.xs-ved .xs-ved__titre-img {
	display: block;
	width: 100%;
	max-width: 342px;
	height: auto;
	margin: 12px auto 0;
}
.xs-ved .xs-ved__titre {
	margin: 0;
	color: #191919;
	font-family: inherit;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.3;
}
.xs-ved .xs-ved__sous {
	display: -webkit-box;
	width: 100%;
	margin: 12px 0 0;
	overflow: hidden;
	color: #191919;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.45;
	word-break: break-word;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}
.xs-ved .xs-ved__prix { margin: 12px 0 0; color: #191919; font-size: 14px; line-height: 1.4; }
.xs-ved__prix strong { font-size: 18px; font-weight: 700; }
.xs-ved__prix s { margin-left: 6px; color: #8c8c8c; font-size: 13px; }
.xs-ved__des { color: #3c3c3c; }
.xs-ved .xs-ved__bouton {
	display: inline-block;
	max-width: 100%;
	margin-top: 20px;
	padding: 0 24px;
	border-radius: 10px;
	background: #191919;
	color: #fff;
	font-size: 16px;
	font-weight: 500;
	line-height: 32px;
	text-decoration: none;
	white-space: nowrap;
	transition: opacity .3s;
}
.xs-ved .xs-ved__bouton:hover, .xs-ved .xs-ved__bouton:focus { color: #fff; opacity: .9; }

@media (min-width: 1441px) {
	.xs-ved__info { padding: 16px clamp(24px, 13%, 140px); }
	.xs-ved .xs-ved__titre-img { max-width: 400px; }
	.xs-ved .xs-ved__bouton { line-height: 36px; }
}
@media (min-width: 721px) and (max-width: 1024px) {
	.xs-ved { min-height: 280px; }
	.xs-ved__info { padding: 10px 24px; }
	.xs-ved .xs-ved__titre-img { max-width: 280px; margin-top: 8px; }
	.xs-ved .xs-ved__sous { margin-top: 8px; font-size: 14px; }
	.xs-ved .xs-ved__bouton { font-size: 14px; }
}
/* Téléphone : visuel en haut (278 px), texte dessous, comme mi.com. */
@media (max-width: 720px) {
	.xs-ved { grid-template-columns: minmax(0, 1fr); min-height: 0; }
	.xs-ved--image-droite .xs-ved__visuel { order: 0; }
	.xs-ved__visuel { min-height: 0; height: 278px; }
	.xs-ved__info { padding: 20px 36px; }
	.xs-ved .xs-ved__titre-img { max-width: 260px; margin-top: 8px; }
	.xs-ved .xs-ved__titre { font-size: 16px; }
	.xs-ved .xs-ved__sous { margin-top: 8px; font-size: 12px; font-weight: 400; }
	.xs-ved .xs-ved__bouton { font-size: 14px; }
}
