/* Boutique 2026 — astra-child/inc/boutique.php */

:root {
	--mpe-max: 1440px; /* largeur utile des pages boutique */
	--mpe-gutter: 3rem; /* marge latérale minimale du contenu */
	--mpe-inset: 4rem; /* marge supplémentaire des sections sous le bandeau (page Boutique) */
	--mpe-pad: max(var(--mpe-gutter), calc((100vw - var(--mpe-scrollbar, 0px) - var(--mpe-max)) / 2)); /* marge latérale */
	--mpe-accent: var(--ast-global-color-0, #3b5bdb);
	--mpe-text: var(--ast-global-color-2, #1e1e1e);
	--mpe-muted: var(--ast-global-color-3, #666);
	--mpe-bg: var(--ast-global-color-4, #fff);
	--mpe-soft: rgba(0, 0, 0, .04);
	--mpe-border: rgba(0, 0, 0, .1);
	--mpe-radius: 12px;
}

/* Toutes les pages boutique (fiche produit, page Boutique, recherche, catégories, étiquettes, boutique filtrée) :
   largeur utile réduite à 1200px, sections alignées sur la barre.
   --mpe-pad est redéclaré car il est calculé sur :root (sinon il garderait 1440px). */
.mpe-boutique-layout {
	--mpe-max: 1200px;
	--mpe-inset: 0;
	--mpe-pad: max(var(--mpe-gutter), calc((100vw - var(--mpe-scrollbar, 0px) - var(--mpe-max)) / 2));
}

/* Mise en page large (conteneur Astra pleine largeur) */
.mpe-boutique-layout #primary,
.mpe-boutique-layout #main.site-main {
	margin-inline: 0;
	padding-inline: 0;
}

/* Pas d'espace entre le header principal et la barre de navigation boutique */
.mpe-boutique-layout #content,
.mpe-boutique-layout #primary,
.mpe-boutique-layout #main.site-main {
	margin-top: 0;
	padding-top: 0;
}

.mpe-boutique-layout .ast-woocommerce-container {
	padding-inline: var(--mpe-pad);
	padding-bottom: 0; /* le bandeau Partenaires apporte déjà son espacement (40 px + filet) */
}
/* Dernière section (ex. « Voir tout : Nutrition ») : pas de marge en plus avant le bandeau Partenaires. */
.mpe-boutique-layout .ast-woocommerce-container > section:last-of-type { margin-bottom: 0; }
/* Dernière strate sans bouton en bas (lien « Tous les produits … » en haut) : un peu d'air avant le bandeau Partenaires. */
.mpe-boutique-layout .ast-woocommerce-container > section.mpe-selection:last-of-type:not(:has(.mpe-section__cta)) { margin-bottom: 2rem; }

/* Barre de navigation boutique et bandeau (hero) en pleine largeur : on annule la marge latérale
   du conteneur ; leur contenu reste aligné sur le reste de la page. */
.mpe-boutique-layout .mpe-shopnav,
.mpe-boutique-layout .mpe-hero {
	margin-inline: calc(-1 * var(--mpe-pad));
	padding-inline: var(--mpe-pad);
	border-radius: 0;
}

/* Page Boutique : sous-navigation juste sous la navigation principale, bandeau collé dessous, puis les sections */
.mpe-boutique-landing .mpe-shopnav { margin-bottom: 0; }
.mpe-boutique-landing .mpe-hero { margin-bottom: 3rem; }

/* Page Boutique : sections sous le bandeau (catégories, sélections, tous les produits) plus en retrait */
.mpe-boutique-landing .ast-woocommerce-container > :not(.mpe-shopnav):not(.mpe-hero):not(.mpe-promos):not(.mpe-bandeau-info) {
	margin-inline: var(--mpe-inset);
}

/* Navigation secondaire + recherche */
.mpe-shopnav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin: 0 0 1.25rem; /* espace sous la barre de navigation boutique */
	padding: .75rem 1rem;
	border-radius: var(--mpe-radius);
	background: var(--mpe-accent);
}

.mpe-shopnav__list {
	display: flex;
	flex-wrap: wrap;
	gap: .25rem 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mpe-shopnav__list a {
	display: block;
	padding: .35rem 0;
	color: #fff;
	font-weight: 600;
	text-decoration: none;
	border-bottom: 2px solid transparent;
}

.mpe-shopnav__list a:hover,
.mpe-shopnav__list .current-menu-item > a {
	border-bottom-color: #fff;
}

.mpe-shopnav__search { flex: 0 1 320px; }

.mpe-shopnav__search .woocommerce-product-search {
	display: flex;
	overflow: hidden;
	border-radius: 999px;
	background: #fff;
}

.mpe-shopnav__search input[type="search"] {
	flex: 1;
	min-width: 0;
	padding: .5rem 1rem;
	border: 0;
	background: transparent;
}

.mpe-shopnav__search button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: .5rem 1rem;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--mpe-text);
	line-height: 1;
	cursor: pointer;
}

.mpe-shopnav__search button:hover,
.mpe-shopnav__search button:focus-visible { color: var(--mpe-accent); }

/* Hero */
.mpe-hero {
	display: flex;
	align-items: center;
	min-height: 0;
	margin: 0 0 3rem;
	padding: 1.75rem 2.5rem;
	border-radius: var(--mpe-radius);
	background: var(--mpe-accent);
	color: #fff;
}

.mpe-hero--image {
	/* Filtre bleu (couleur principale du site) par-dessus l'image ; 55 % = intensité du filtre */
	background:
		linear-gradient(color-mix(in srgb, var(--mpe-accent) 55%, transparent), color-mix(in srgb, var(--mpe-accent) 55%, transparent)),
		var(--mpe-hero-image) left center / cover no-repeat;
}

.mpe-hero__inner { max-width: 1000px; } /* intro sur une ligne en desktop */

.mpe-hero__title {
	margin: 0 0 .2rem;
	color: inherit;
	font-size: clamp(1.5rem, 2.4vw, 2rem);
	line-height: 1.1;
}

.mpe-hero__intro { margin: 0 0 .55rem; font-size: 1em; line-height: 1.45; }

.mpe-hero__tier {
	display: inline-block;
	margin: 0;
	padding: .2rem .65rem;
	border-radius: 6px;
	background: rgba(255, 255, 255, .15);
	font-size: .85em;
}

.mpe-hero__tier a { color: inherit; text-decoration: underline; }

/* Sections */
.mpe-section { margin: 0 0 3rem; }

.mpe-section__title { margin: 0 0 2rem; font-size: clamp(1.5rem, 2.4vw, 1.875rem); line-height: 1.2; } /* 24 → 30 px (le h2 du thème est trop grand ici) */
.mpe-section__intro { margin: -1.25rem 0 2rem; color: var(--mpe-muted); }
.mpe-section__title--all { margin-top: 1rem; }
/* Titre de section + lien « Tous les produits … → » à droite (strates de catégories de la boutique). */
.mpe-section__tete { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin: 0 0 2rem; } /* 13/11 : plus d'air entre le titre et les cartes */
.mpe-section__tete .mpe-section__title { margin: 0; }
.mpe-section > .mpe-section__title:not(:last-child) { margin-bottom: 2rem; } /* titre seul : l'emporte sur la marge des h2 du thème */
.mpe-section__tout { flex: none; color: var(--mpe-accent, #1f53f3); font-weight: 700; text-decoration: none; }
.mpe-section__tout:hover, .mpe-section__tout:focus-visible { color: var(--mpe-accent, #1f53f3); text-decoration: underline; text-underline-offset: 3px; }


/* Catégories */
.mpe-categories__list {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(200px, 1fr);
	gap: 1rem;
	margin: 0;
	padding: 0 0 .5rem;
	overflow-x: auto;
	list-style: none;
	scroll-snap-type: x mandatory;
}

.mpe-categories__item { margin: 0; scroll-snap-align: start; }

.mpe-categories__item a {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 12px;
	color: inherit;
	text-decoration: none;
	background: #fff;
	border: 1px solid #dcdfe6;
	border-radius: 20px;
	transition: border-color .15s, box-shadow .15s;
}
.mpe-categories__item a:hover { border-color: #c7d4f5; box-shadow: 0 10px 28px rgba(0, 0, 52, .08); }

.mpe-categories__media {
	display: block;
	overflow: hidden;
	aspect-ratio: 1 / 1;
	border-radius: 12px;
	background: var(--mpe-soft);
}

.mpe-categories__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .3s;
}

.mpe-categories__item a:hover img { transform: scale(1.04); }

/* Bas de carte : nom et nombre de produits à gauche, flèche bleue à droite. */
.mpe-categories__corps { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 10px 10px 12px; }
.mpe-categories__texte { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mpe-categories__name {
	font-family: "Plus Jakarta Sans", sans-serif; /* 16/11 : Jakarta sur les cartes (Toroka réservé aux titres de strates) */
	font-size: clamp(16px, 1.3vw, 19px);
	font-weight: 700;
	line-height: 1.15;
	color: var(--ast-global-color-2, #000034);
	transition: color .15s;
}
.mpe-categories__nb { font-size: 14px; color: #4a4a68; }
.mpe-categories__fleche { flex: none; color: var(--ast-global-color-0, #1f53f3); transition: transform .15s; }
.mpe-categories__item a:hover .mpe-categories__name { color: var(--ast-global-color-0, #1f53f3); }
.mpe-categories__item a:hover .mpe-categories__fleche { transform: translateX(4px); }
.mpe-categories__desc { color: var(--mpe-muted); font-size: .9em; }

/* Listes produits : partenaire, remises, code promo */
.mpe-partner {
	margin: 0 0 .25rem;
	color: var(--mpe-muted);
	font-size: .8em;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.mpe-extras { margin: .5rem 0; }

.mpe-code-promo {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .4rem;
	margin: 0;
	font-size: .9em;
}

.mpe-code {
	padding: .25rem .6rem;
	border: 1px dashed var(--mpe-accent);
	border-radius: 6px;
	background: transparent;
	color: var(--mpe-text);
	font-family: monospace;
	font-size: 1em;
	cursor: copy;
}

.mpe-code.is-copied { background: var(--mpe-accent); color: #fff; }

.mpe-code--locked {
	border-color: var(--mpe-border);
	color: var(--mpe-muted);
	font-family: inherit;
	cursor: default;
}

@media (max-width: 768px) {
	:root { --mpe-gutter: 1.5rem; --mpe-inset: 0; }
	.mpe-shopnav { flex-direction: column; align-items: stretch; }
	.mpe-shopnav__search { flex-basis: auto; }
	.mpe-hero { min-height: 0; padding: 1.25rem 1.5rem; }
}

/* -------------------------------------------------------------------------
 * Listes avec facettes (catégories, recherche, boutique filtrée)
 * ---------------------------------------------------------------------- */

.mpe-archive {
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	gap: 2.5rem;
	align-items: start;
}

.mpe-archive__main .woocommerce-products-header { margin-bottom: 1.5rem; }

.mpe-archive__main .term-description {
	max-width: 760px;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid var(--mpe-border);
	color: var(--mpe-muted);
}

.mpe-facets__toggle {
	margin: 0 0 1rem;
	font-size: 1.1em;
	font-weight: 700;
	list-style: none;
	cursor: default;
}

.mpe-facets__toggle::-webkit-details-marker { display: none; }

.mpe-facet {
	padding: 1rem 0;
	border-top: 1px solid var(--mpe-border);
}

.mpe-facet__title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-weight: 600;
	list-style: none;
	cursor: pointer;
}

.mpe-facet__title::-webkit-details-marker { display: none; }

.mpe-facet__title::after {
	content: "";
	width: .5rem;
	height: .5rem;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(-135deg);
	transition: transform .2s;
}

.mpe-facet:not([open]) > .mpe-facet__title::after { transform: rotate(45deg); }

.mpe-facet__body { padding-top: .75rem; }

.mpe-facet__body ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.mpe-facet__body li {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	margin: 0 0 .4rem;
	font-size: .95em;
}

.mpe-facet__body li ul.children { flex-basis: 100%; padding: .4rem 0 0 1rem; }

.mpe-facet__body li a { color: var(--mpe-text); text-decoration: none; }
.mpe-facet__body li a:hover,
.mpe-facet__body li.chosen > a,
.mpe-facet__body li.current-cat > a { color: var(--mpe-accent); font-weight: 600; }

.mpe-facet__body .count { color: var(--mpe-muted); font-size: .85em; }

/* Attributs : case à cocher visuelle */
.mpe-facet--attribute li a::before {
	content: "";
	display: inline-block;
	width: 1rem;
	height: 1rem;
	margin-right: .5rem;
	border: 1px solid var(--mpe-border);
	border-radius: 3px;
	vertical-align: -2px;
}

.mpe-facet--attribute li.chosen a::before {
	border-color: var(--mpe-accent);
	background: var(--mpe-accent);
	box-shadow: inset 0 0 0 2px #fff;
}

/* Filtres actifs : pastilles « ✕ Libellé » (Astra met le fond sur le <li> sans marge intérieure,
   la croix collait au bord). Fond porté par le <li>, ajusté au contenu ; croix centrée dans la marge. */
.mpe-facets .mpe-facet--active ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.mpe-facets .mpe-facet--active ul li,
.mpe-facet--active ul li {
	display: inline-flex !important;
	flex: none !important;
	width: auto !important;
	max-width: 100%;
	margin: 0 !important;
	padding: 6px 14px 6px 10px !important;
	border-radius: 999px;
	background: var(--mpe-soft);
}
.mpe-facets .mpe-facet--active ul li a,
.mpe-facet--active ul li a {
	display: inline-flex;
	flex: none !important;
	align-items: center;
	gap: 8px;
	padding: 0 !important;
	background: none;
	font-size: .85em;
	line-height: 1.3;
}
.mpe-facets .mpe-facet--active ul li a::before,
.mpe-facet--active ul li a::before { position: static !important; flex: none; margin: 0 !important; top: auto; }

/* Interrupteur « disponibles uniquement » */
.mpe-switch {
	display: inline-flex;
	align-items: center;
	gap: .6rem;
	color: var(--mpe-text);
	font-size: .95em;
	line-height: 1.3;
	text-decoration: none;
}

.mpe-switch__track {
	position: relative;
	flex: none; /* sinon le libellé sur 2 lignes écrase la piste et le rond déborde */
	width: 2.2rem;
	height: 1.25rem;
	border-radius: 999px;
	background: rgba(0, 0, 0, .2);
	transition: background .2s;
}

.mpe-switch__track::after {
	content: "";
	position: absolute;
	top: .15rem;
	left: .15rem;
	width: .95rem;
	height: .95rem;
	border-radius: 50%;
	background: #fff;
	transition: transform .2s;
}

.mpe-switch.is-on .mpe-switch__track { background: var(--mpe-accent); }
.mpe-switch.is-on .mpe-switch__track::after { transform: translateX(.95rem); }

/* Slider de prix WooCommerce */
.mpe-facet--price .price_slider_wrapper .ui-slider .ui-slider-range,
.mpe-facet--price .price_slider_wrapper .ui-slider .ui-slider-handle { background: var(--mpe-accent); }

@media (max-width: 921px) {
	.mpe-archive { grid-template-columns: 1fr; gap: 1rem; }

	.mpe-facets {
		padding: .75rem 1rem;
		border: 1px solid var(--mpe-border);
		border-radius: var(--mpe-radius);
	}

	.mpe-facets__toggle { margin: 0; cursor: pointer; }
	.mpe-facets[open] .mpe-facets__toggle { margin-bottom: .5rem; }
}

/* Filtres AJAX */
.mpe-archive__main { transition: opacity .2s; }
.mpe-archive__main.is-loading { opacity: .4; pointer-events: none; }

/* Avec JavaScript, la liste se met à jour seule : bouton « Filtrer » inutile */
.mpe-ajax-filters .mpe-facet--price .price_slider_amount .button { display: none; }
.mpe-ajax-filters .mpe-facet--price .price_slider_amount .price_label { float: none; text-align: left; }

/* Curseur de prix plus confortable */
.mpe-facet--price .price_slider { margin: .5rem .5rem 1rem; }
.mpe-facet--price .ui-slider .ui-slider-handle {
	width: 1.1rem;
	height: 1.1rem;
	top: -.4rem;
	margin-left: -.55rem;
	border: 2px solid #fff;
	border-radius: 50%;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
	cursor: grab;
	touch-action: none;
}
.mpe-facet--price .ui-slider .ui-slider-handle:active { cursor: grabbing; transform: scale(1.1); }
.mpe-facet--price .price_slider_wrapper .ui-widget-content { background: rgba(0, 0, 0, .12); }

/* Pré-footer MPE sous le contenu boutique (le conteneur Astra est en flex : on passe à la ligne) */
.mpe-boutique-layout #content > .ast-container { flex-wrap: wrap; }
.mpe-boutique-layout #primary { width: 100%; }
.mpe-prefooter { flex: 0 0 100%; width: 100%; }

/* Fiche produit : bloc remises / code promo avant le bouton */
.single-product .summary .mpe-extras { margin: 1rem 0; }
.single-product .summary .mpe-partner { margin-bottom: .5rem; }
.single-product .summary .mpe-partner a { color: inherit; text-decoration: underline; text-decoration-color: rgba(0, 0, 52, .3); text-underline-offset: 3px; }
.single-product .summary .mpe-partner a:hover { color: #1F53F3; text-decoration-color: currentColor; }

/* Cartes produits : léger zoom de l'image au survol */
.woocommerce ul.products li.product .astra-shop-thumbnail-wrap .woocommerce-loop-product__link {
	display: block;
	overflow: hidden;
	border-radius: 12px; /* coins arrondis de l'image (le zoom reste dans le cadre) */
}

.woocommerce ul.products li.product .astra-shop-thumbnail-wrap img {
	/* Même cadre carré pour toutes les cartes, même si l'image source est plus petite ou pas carrée. */
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: contain; /* image entière (24/10/2026 : plus de recadrage) */
	background-color: #f2f5ff; /* fond gris-bleu derrière les images non carrées (comme les PNG détourés) */
	transition: transform .5s ease;
}

.woocommerce ul.products li.product:hover .astra-shop-thumbnail-wrap img,
.woocommerce ul.products li.product:focus-within .astra-shop-thumbnail-wrap img {
	transform: scale(1.06);
}

@media (prefers-reduced-motion: reduce) {
	.woocommerce ul.products li.product .astra-shop-thumbnail-wrap img { transition: none; }
	.woocommerce ul.products li.product:hover .astra-shop-thumbnail-wrap img { transform: none; }
}

/* Grille de prix par palier (cartes + fiche produit) */
.mpe-grille {
	display: grid;
	gap: 3px; /* petite séparation entre les lignes de prix */
	margin: .35rem 0 .5rem;
	padding: 0;
	font-size: .9em;
}

.mpe-grille__row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: .75rem;
	padding: .3rem .6rem;
	border-radius: 6px;
	background: #F2F4F8; /* chaque ligne a son fond gris-bleu, séparée des autres par le gap de la grille */
	color: var(--mpe-muted);
}

.mpe-grille dt,
.mpe-grille dd { margin: 0; font-weight: 400; }

.mpe-grille dd { white-space: nowrap; }

.mpe-grille__pct { margin-left: .25rem; font-size: .85em; opacity: .8; }
.mpe-grille__from { margin-right: .2rem; font-size: .85em; }

.mpe-grille__row.is-current {
	background: color-mix(in srgb, var(--mpe-accent) 10%, transparent);
	color: var(--mpe-text);
}

.mpe-grille__row.is-current dt,
.mpe-grille__row.is-current dd { font-weight: 700; }
.mpe-grille__row.is-current dd { color: var(--mpe-accent); }
/* Libellés « Prix public » et « Prix Membre » toujours en gras. Les montants ne sont en gras que sur le prix appliqué
   (ligne .is-current, ou la ligne unique d'un produit sans remise). */
.mpe-grille__row--none dt,
.mpe-grille__row--membre dt, /* libellé « Prix Membre » toujours en gras aussi */
.mpe-grille--simple .mpe-grille__row--none dd { font-weight: 700; }
/* Pastille « -10 % » de la ligne Membre : même forme que celle de Fan+, fond bleu nuit. */
.mpe-grille__row--membre .mpe-grille__pct { display: inline-block; padding: 1px 6px; border-radius: 999px; background: #000034; color: #fff; font-weight: 700; line-height: 1.4; opacity: 1; }
/* Prix Membre : toujours en bleu nuit ; en gras seulement quand c'est le prix appliqué (ligne .is-current). */
.mpe-grille__row.mpe-grille__row--membre dd { color: #000034; }

.single-product .summary .mpe-grille { max-width: 380px; font-size: 1em; }

/* Ligne unique « Prix public » (produit sans remise) : le prix WooCommerce prend le style de la grille. */
.woocommerce ul.products li.product .mpe-grille--simple dd .price,
.woocommerce ul.products li.product .mpe-grille--simple dd .price * { display: inline; margin: 0; color: inherit; font-size: inherit; font-weight: inherit; }
.woocommerce ul.products li.product .mpe-grille--simple dd .price .woocommerce-price-suffix { font-size: .8em; } /* « TTC » comme dans la grille */
.mpe-grille--simple dd .price del { opacity: .6; margin-right: .25rem; }
.mpe-grille--simple dd .price ins { text-decoration: none; }

/* -------------------------------------------------------------------------
 * Facettes en liste verticale : case à cocher | libellé | compteur à droite
 * (annule le style « boutons » d'Astra Pro sur les filtres d'attributs)
 * ---------------------------------------------------------------------- */
.mpe-facets .mpe-facet__body ul li,
.mpe-facets .woocommerce-widget-layered-nav-list .woocommerce-widget-layered-nav-list__item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .75rem;
	width: 100%;
	margin: 0;
	padding: .45rem 0;
	border: 0;
}

.mpe-facets .mpe-facet__body ul li > a,
.mpe-facets .woocommerce-widget-layered-nav-list .woocommerce-widget-layered-nav-list__item > a {
	display: flex;
	flex: 1;
	align-items: center;
	gap: .9rem;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	color: var(--mpe-text);
	font-weight: 400;
	line-height: 1.3;
}

/* Case à cocher (attributs, disponibilité visuelle cohérente) */
.mpe-facets .mpe-facet--attribute li > a::before {
	content: "";
	flex: 0 0 auto;
	width: 1.5rem;
	height: 1.5rem;
	margin: 0;
	border: 1px solid rgba(0, 0, 0, .25);
	border-radius: 4px;
	background: #fff;
	transition: background .15s, border-color .15s;
}

.mpe-facets .mpe-facet--attribute li > a:hover::before { border-color: var(--mpe-accent); }

.mpe-facets .mpe-facet--attribute li.chosen > a::before {
	/* Annule la croix rouge de WooCommerce (icône « \e013 ») sur les valeurs cochées */
	content: "" !important;
	margin: 0 !important; /* WooCommerce ajoute une marge droite (.618em) à la valeur cochée : décalait le libellé */
	font-family: inherit !important;
	color: transparent !important;
	border-color: var(--mpe-accent);
	background: var(--mpe-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 70% no-repeat;
	box-shadow: none;
}

.mpe-facets .mpe-facet--attribute li.chosen > a { font-weight: 600; }

/* Compteur à droite, discret */
.mpe-facets .mpe-facet__body .count {
	margin-left: auto;
	color: var(--mpe-muted);
	font-size: .9em;
	font-variant-numeric: tabular-nums;
}

/* « Afficher plus » (au-delà de 5 valeurs) */
.mpe-facets .mpe-facet:not(.is-expanded) li.mpe-facet__extra { display: none; }

.mpe-facet__more {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	margin-top: .5rem;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none !important; /* 29/11 : ombre des boutons du thème retirée */
	color: var(--mpe-accent);
	font-size: .95em;
	font-weight: 600;
	cursor: pointer;
}

.mpe-facet__more::before {
	content: "";
	width: .45rem;
	height: .45rem;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	flex: none;
	transform: translateY(-2px) rotate(45deg);
	transition: transform .2s;
}

.mpe-facet.is-expanded .mpe-facet__more::before { transform: translateY(2px) rotate(-135deg); }

/* Cartes produits : fond bleuté derrière l'image (même teinte que l'image de remplacement),
 * pour qu'un PNG transparent soit cadré comme les autres visuels. */
.woocommerce ul.products li.product .astra-shop-thumbnail-wrap img,
.woocommerce-page ul.products li.product .astra-shop-thumbnail-wrap img { background-color: #f2f5ff; }

/* Fiche produit : « Dans la même rubrique » / « Vous aimerez aussi » à la taille des titres de section de la boutique. */
.single-product section.related.products > h2,
.single-product section.up-sells.products > h2 { font-size: clamp(1.5rem, 2.4vw, 1.875rem); line-height: 1.2; margin-bottom: 1.25rem; }

/* Infobulle « i » des prix Membre / Fan+ (grille de prix) */
.mpe-info { position: relative; display: inline-flex; vertical-align: middle; margin-left: .3rem; }
.mpe-grille .mpe-info__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 13px;
	height: 13px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: inherit;
	line-height: 0;
	opacity: .7;
	cursor: help;
}
.mpe-grille .mpe-info__btn:hover,
.mpe-grille .mpe-info__btn:focus-visible { opacity: 1; background: transparent; color: inherit; }
.mpe-grille .mpe-info__btn svg { display: block; width: 13px; height: 13px; } /* icône « i » (15px dans le HTML) */
.mpe-info__bubble {
	position: absolute;
	bottom: calc(100% + 8px);
	left: -12px;
	z-index: 20;
	width: max-content;
	max-width: min(300px, 80vw);
	padding: .85rem 1rem;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	background: #fff;
	color: #334155;
	font-size: .85rem;
	font-style: normal;
	font-weight: 400;
	line-height: 1.55;
	text-align: left;
	text-transform: none;
	letter-spacing: normal;
	white-space: normal;
	box-shadow: 0 12px 32px -8px rgba(0, 0, 52, .18), 0 2px 6px rgba(0, 0, 52, .06);
	opacity: 0;
	visibility: hidden;
	transform: translateY(4px);
	transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
/* Petite flèche blanche bordée + zone tampon pour garder l'infobulle ouverte en passant de l'icône au texte. */
.mpe-info__bubble::after {
	content: "";
	position: absolute;
	top: calc(100% - 5px);
	left: 14px;
	width: 10px;
	height: 10px;
	background: #fff;
	border-right: 1px solid #e2e8f0;
	border-bottom: 1px solid #e2e8f0;
	transform: rotate(45deg);
}
.mpe-info__bubble::before { content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 10px; }
.mpe-info__titre { display: block; margin-bottom: .35rem; color: var(--mpe-ink, #000034); font-size: .95rem; font-weight: 700; line-height: 1.3; }
.mpe-info__bubble a { display: inline-block; margin-top: .45rem; color: var(--ast-global-color-0, #1f53f3); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.mpe-info__bubble a:hover { color: var(--mpe-ink, #000034); }
.mpe-info:hover .mpe-info__bubble,
.mpe-info:focus-within .mpe-info__bubble,
.mpe-info.is-open .mpe-info__bubble { opacity: 1; visibility: visible; transform: none; }
@media (prefers-reduced-motion: reduce) { .mpe-info__bubble { transition: none; } }

/* Fiche produit : image principale arrondie, sans l'ombre du thème (Astra). */
/* Fiche produit : zone image élargie à 500px (desktop), le résumé prend le reste (gouttière 72px) */
@media (min-width: 922px) {
	/* sélecteurs renforcés pour passer devant Astra Pro (.woocommerce #content .ast-woocommerce-container div.product div.images => 30%) */
	body.single-product #content .ast-woocommerce-container div.product > div.images.woocommerce-product-gallery { width: 500px; }
	body.single-product #content .ast-woocommerce-container div.product > div.summary.entry-summary { width: calc(100% - 500px - 72px); }
}
.single-product .woocommerce-product-gallery .woocommerce-product-gallery__wrapper { box-shadow: none; }
.single-product .woocommerce-product-gallery .flex-viewport,
.single-product .woocommerce-product-gallery__wrapper { border-radius: 12px; overflow: hidden; }
.single-product .woocommerce-product-gallery__image { border-radius: 12px; overflow: hidden; } /* repris du CSS personnalisé de la prod */
.single-product .woocommerce-product-gallery__image img { border-radius: 12px; background-color: #f2f5ff; } /* même fond bleuté que les cartes (PNG transparents) */
/* Image principale : au moins un carré (une image très large, comme un logo, est centrée dans un carré au lieu de rester collée en haut). */
.single-product .woocommerce-product-gallery .woocommerce-product-gallery__image { display: grid; place-items: center; background-color: #f2f5ff; }
/* 25/11 : agrandissement au clic (PhotoSwipe) et zoom au survol : même fond bleuté (logos en PNG transparent). */
.pswp__img:not(.pswp__img--placeholder) { background-color: #f2f5ff; border-radius: 12px; }
.single-product .woocommerce-product-gallery .zoomImg { background-color: #f2f5ff; }
.single-product .woocommerce-product-gallery .woocommerce-product-gallery__image::before { content: ""; grid-area: 1 / 1; padding-top: 100%; }
.single-product .woocommerce-product-gallery .woocommerce-product-gallery__image > a,
.single-product .woocommerce-product-gallery .woocommerce-product-gallery__image > img { grid-area: 1 / 1; width: 100%; }
.single-product .woocommerce-product-gallery .flex-control-thumbs img { border-radius: 8px; } /* vignettes */
/* Vignettes de la galerie (carrousel Astra) : petites vignettes carrées sur une ou deux lignes, sans flèches ni défilement. */
.single-product .ast-single-product-thumbnails { margin-top: 10px; }
.single-product .ast-single-product-thumbnails .flex-viewport { height: auto !important; overflow: visible !important; }
.single-product .ast-single-product-thumbnails .woocommerce-product-gallery-thumbnails__wrapper { display: flex; flex-wrap: wrap; gap: 8px; width: auto !important; transform: none !important; }
.single-product .ast-single-product-thumbnails .ast-woocommerce-product-gallery__image { float: none !important; width: 64px !important; height: 64px; margin: 0 !important; border: 1px solid #e3e6f0; border-radius: 4px; overflow: hidden; cursor: pointer; opacity: .7; transition: opacity .15s, border-color .15s; }
.single-product .ast-single-product-thumbnails .ast-woocommerce-product-gallery__image:hover { opacity: 1; }
.single-product .ast-single-product-thumbnails .ast-woocommerce-product-gallery__image.flex-active-slide { opacity: 1; border-color: #000034; }
.single-product .ast-single-product-thumbnails .ast-woocommerce-product-gallery__image img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; background-color: #f2f5ff; }
.single-product .ast-single-product-thumbnails .flex-direction-nav { display: none; }

/* Fiche produit : quantité avec − / + et bouton « Ajouter au panier » en grand (même taille
 * avant et après le choix d'une variation). */
.single-product form.cart .quantity {
	display: inline-flex;
	align-items: stretch;
	height: 56px;
	margin-right: 12px;
	border: 1px solid #d5d8e0;
	border-radius: 999px;
	background: #fff;
	overflow: hidden;
}
.single-product form.cart .quantity:has(input[type="hidden"]) { display: none; }
.single-product form.cart .quantity .qty {
	width: 44px;
	height: auto;
	padding: 0;
	border: 0;
	background: transparent;
	font-size: 1.05rem;
	font-weight: 700;
	text-align: center;
	-moz-appearance: textfield;
	appearance: textfield;
}
.single-product form.cart .quantity .qty::-webkit-outer-spin-button,
.single-product form.cart .quantity .qty::-webkit-inner-spin-button { margin: 0; -webkit-appearance: none; }
.single-product form.cart .quantity .qty:focus { outline: none; box-shadow: none; }
.single-product form.cart .quantity:focus-within { border-color: var(--mpe-accent, #1f53f3); box-shadow: 0 0 0 1px var(--mpe-accent, #1f53f3); }
.single-product form.cart .mpe-qty__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--mpe-text, #000034);
	font-size: 1.35rem;
	font-weight: 500;
	line-height: 1;
	cursor: pointer;
}
.single-product form.cart .mpe-qty__btn:hover,
.single-product form.cart .mpe-qty__btn:focus-visible { background: #f2f5ff; color: var(--mpe-accent, #1f53f3); }

/* Sélecteurs plus forts que ceux d'Astra (woocommerce-grid : 10px 20px une fois la taille choisie) :
 * même bouton « aéré » qu'à l'arrivée sur la page, avant et après le choix d'une variation. */
body.single-product div.product form.cart .button.single_add_to_cart_button,
body.single-product div.product form.cart .button.single_add_to_cart_button.disabled {
	min-height: 56px;
	padding: 20px 40px;
	border-radius: 999px;
	font-size: 16px;
	line-height: 1;
}
.single-product form.cart .woocommerce-variation-add-to-cart,
.single-product form.cart:not(.variations_form) { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 0; }

/* Choix d'une variation sans prix / stock / description propres : le bloc vide de WooCommerce
 * apparaît avec une marge basse qui décalait la quantité et le bouton de quelques pixels. */
body.single-product div.product form.cart .single_variation_wrap .woocommerce-variation.single_variation:not(:has(> :not(:empty))) { margin: 0; }

/* Fiche produit : boutons de variantes (tailles…) arrondis, bordure gris clair (la variante active garde la couleur d'Astra). */
body.single-product div.product form.cart .ast-single-variation { border-radius: 8px; font-size: 14px; }
body.single-product div.product form.cart .ast-single-variation:not(.active) { border-color: #D9D9D9; }

/* Produit sans variante : même trait au-dessus de « quantité + Ajouter au panier » que celui
 * qui sépare le choix de taille (bordure basse de table.variations d'Astra). */
body.single-product div.product form.cart:not(.variations_form) {
	padding-top: 16px;
	border-top: 1px solid #D9D9D9; /* gris des filets du site (29/11) */
}
/* Prix seul juste au-dessus (abonnements, produits sans grille Membre / Fan+) : un peu d'air avant le trait. */
body.single-product div.product .price + form.cart:not(.variations_form) { margin-top: 16px; }

/* Astra décale le bouton de -1em quand la quantité est masquée (abonnements, vente à l'unité) :
 * il dépassait à gauche de la colonne. */
body.single-product .product:has(.quantity input[type="hidden"]) form.cart .button.single_add_to_cart_button,
body.single-product .sold-individually form.cart .button.single_add_to_cart_button { margin-left: 0; }

/* Fiche produit : titre un peu plus grand que le thème (20 px), au-dessus du prix (24 px). */
body.single-product div.product .summary .product_title { font-size: clamp(1.5rem, 2.2vw, 1.75rem); line-height: 1.2; } /* 24 → 28 px */

/* Fil d'Ariane WooCommerce (fiches et listes) : un peu plus petit, plus d'air au-dessus,
 * page courante (dernier élément, texte sans lien) en bleu foncé, liens en gris. */
.woocommerce-js .woocommerce-breadcrumb {
	padding-top: 1rem; /* marge haute absorbée par le conteneur (fusion des marges) */
	font-size: 13px;
	color: var(--mpe-text, #000034);
	font-weight: 600;
}
.woocommerce-js .woocommerce-breadcrumb a { color: #777; font-weight: 400; }
.woocommerce-js .woocommerce-breadcrumb a:hover { color: var(--mpe-accent, #1f53f3); }
.woocommerce-js .woocommerce-breadcrumb .mpe-breadcrumb__sep { display: inline-block; margin: 0 .45em; color: #202020; vertical-align: -1px; }
.woocommerce-js .woocommerce-breadcrumb .mpe-breadcrumb__sep svg { display: block; }

/* Facettes : le clearfix WooCommerce (li::before / ::after) devient un élément flex et décale la case de 12 px */
.mpe-facets .mpe-facet .mpe-facet__body ul li::before,
.mpe-facets .mpe-facet .mpe-facet__body ul li::after { content: none !important; display: none !important; }

/* « Afficher plus / moins » : pas de style bouton Astra au survol / focus (fond bleu, texte blanc) */
.mpe-facets .mpe-facet__more:hover,
.mpe-facets .mpe-facet__more:focus,
.mpe-facets .mpe-facet__more:active {
	background: none;
	color: var(--mpe-accent);
	border: 0;
	box-shadow: none;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.mpe-facets .mpe-facet__more:focus:not(:focus-visible) { text-decoration: none; outline: none; }
.mpe-facets .mpe-facet__more:focus-visible { outline: 2px solid var(--mpe-accent); outline-offset: 3px; border-radius: 4px; }

/* Fil d'Ariane : même espacement sur toutes les pages boutique (fiches, catégories, recherche) */
.woocommerce-js .woocommerce-breadcrumb { padding-top: .25rem; margin-bottom: 1.5rem; } /* 28/11 : .75rem → .25rem, un peu plus près de la barre bleue */

/* En-tête des listes (catégorie, recherche) : trait de séparation toujours présent,
 * description éventuelle collée au titre (le trait d'Astra sous .term-description est retiré). */
.mpe-boutique-layout .woocommerce-products-header {
	margin-bottom: 1.5rem;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid rgba(0, 0, 0, .1);
}
.mpe-boutique-layout .woocommerce-products-header .page-title { margin-bottom: 0; }
.mpe-boutique-layout .woocommerce-products-header .term-description {
	margin-top: .5rem;
	padding-bottom: 0;
	border-bottom: 0;
}
.mpe-boutique-layout .woocommerce-products-header .term-description > :last-child { margin-bottom: 0; }

/* Recherche sans résultat (template-parts/boutique/recherche-vide.php) : encadré bleuté (même fond que les cartes
 * produits), nouvelle recherche en pilule, idées de recherche ; puis cartes catégories et sélection. */
.mpe-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin: 0 0 3.5rem;
	padding: clamp(32px, 5vw, 56px) clamp(20px, 4vw, 48px);
	border-radius: 24px;
	background: #f2f5ff;
	text-align: center;
}
.mpe-empty__icon {
	display: grid;
	place-items: center;
	width: 76px;
	height: 76px;
	margin-bottom: 1.25rem;
	border-radius: 50%;
	background: #fff;
	color: var(--mpe-accent);
	box-shadow: 0 8px 24px rgba(31, 83, 243, .12);
}
.mpe-empty__title { max-width: 640px; margin: 0 0 .5rem; color: #000034; font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.2; }
.mpe-empty__text { max-width: 560px; margin: 0 0 1.75rem; color: var(--mpe-muted); }
.mpe-empty__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .75rem 1.5rem; }
.mpe-empty a.mpe-empty__btn {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	padding: 0 28px;
	border-radius: 999px;
	background: var(--mpe-accent);
	color: #fff;
	font-weight: 600;
	text-decoration: none;
}
.mpe-empty a.mpe-empty__btn:hover { filter: brightness(1.1); color: #fff; }
.mpe-empty a.mpe-empty__link { color: var(--mpe-accent); font-weight: 600; text-decoration: none; }
.mpe-empty a.mpe-empty__link:hover { text-decoration: underline; text-underline-offset: 3px; }
/* Nouvelle recherche : champ et bouton dans une même pilule blanche. */
.mpe-empty__form {
	display: flex;
	width: min(100%, 520px);
	padding: 6px;
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(0, 0, 52, .06);
}
.mpe-empty__form input[type="search"] {
	flex: 1;
	min-width: 0;
	height: 48px;
	padding: 0 18px;
	border: 0 !important;
	background: transparent;
	color: #000034;
	font-size: 16px;
	box-shadow: none !important;
	outline: none;
}
.mpe-empty__form button {
	flex: none;
	height: 48px;
	padding: 0 24px;
	border: 0;
	border-radius: 999px;
	background: var(--mpe-accent);
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}
.mpe-empty__form button:hover { filter: brightness(1.1); }
.mpe-empty__form:focus-within { box-shadow: 0 0 0 2px var(--mpe-accent), 0 8px 24px rgba(0, 0, 52, .06); }
.mpe-empty__idees { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin: 1.25rem 0 0; font-size: 14px; }
.mpe-empty__idees span { color: var(--mpe-muted); }
.mpe-empty__idees a {
	padding: 6px 14px;
	border-radius: 999px;
	background: #fff;
	color: #000034;
	font-weight: 600;
	text-decoration: none;
	transition: color .15s, background-color .15s;
}
.mpe-empty__idees a:hover { background: var(--mpe-accent); color: #fff; }
@media (max-width: 480px) {
	.mpe-empty__form button { padding: 0 16px; }
}

/* Cartes produits : toute la zone texte (titre + grille de prix) mène à la fiche produit,
 * via le lien du titre étendu ; infobulles « i » et bouton de copie du code restent cliquables au-dessus. */
.woocommerce ul.products li.product .astra-shop-summary-wrap { position: relative; }
.woocommerce ul.products li.product .astra-shop-summary-wrap .ast-loop-product__link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}
.woocommerce ul.products li.product .astra-shop-summary-wrap .mpe-info,
.woocommerce ul.products li.product .astra-shop-summary-wrap button,
.woocommerce ul.products li.product .astra-shop-summary-wrap .mpe-extras a { position: relative; z-index: 2; }
/* Survol de la zone : titre en bleu (couleur d'accent), comme un lien */
.woocommerce ul.products li.product .astra-shop-summary-wrap .woocommerce-loop-product__title { transition: color .2s; }
.woocommerce ul.products li.product .astra-shop-summary-wrap:hover .woocommerce-loop-product__title { color: var(--mpe-accent); }

/* Interrupteur « Offres partenaires uniquement » : compteur aligné à droite comme les autres facettes */
.mpe-facets .mpe-facet--partenaires .mpe-switch { display: flex; width: 100%; }

/* Bouton sous une section de produits (ex. « Voir toutes les offres de nos partenaires ») */
.mpe-section__cta { margin: 1.5rem 0 0; text-align: center; }
.mpe-section a.mpe-btn-outline {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	padding: 0 28px;
	border: 1.5px solid var(--mpe-accent);
	border-radius: 999px;
	color: var(--mpe-accent);
	font-weight: 600;
	text-decoration: none;
	transition: background-color .2s, color .2s;
}
.mpe-section a.mpe-btn-outline:hover,
.mpe-section a.mpe-btn-outline:focus-visible { background: var(--mpe-accent); color: #fff; }

/* Fiche produit : largeur de lecture de l'onglet Description (repris du CSS personnalisé de la prod). */
.woocommerce-Tabs-panel--description { max-width: 900px; }

/* Fiche produit : catégorie en rose au-dessus du titre, description courte sous le titre. */
body.single-product div.product .summary .single-product-category { display: block; margin-bottom: .25rem; font-size: 14px; font-weight: 600; color: #FF00A3; }
body.single-product div.product .summary .single-product-category a { color: inherit; text-decoration: none; transition: opacity .15s; }
body.single-product div.product .summary .single-product-category a:hover,
body.single-product div.product .summary .single-product-category a:focus-visible { opacity: .7; text-decoration: none; }
body.single-product div.product .summary .product_title + .woocommerce-product-details__short-description { margin: .5rem 0 1rem; color: var(--mpe-muted); }
body.single-product div.product .summary .woocommerce-product-details__short-description > :last-child { margin-bottom: 0; }

/* Fiche produit : onglets Description / Informations complémentaires — soulignement sous l'onglet
   (bleu pour l'actif, gris clair pour les autres), ligne fine sur toute la largeur. */
body.single-product div.product .woocommerce-tabs ul.tabs { display: flex; flex-wrap: wrap; gap: 0 36px; margin: 0 0 32px; padding: 0; }
body.single-product div.product .woocommerce-tabs ul.tabs::before { top: auto; bottom: 0; height: 1px; background: #E5E7EB; }
body.single-product div.product .woocommerce-tabs ul.tabs li { margin: 0; padding: 0 0 12px; border: 0; }
body.single-product div.product .woocommerce-tabs ul.tabs li::before,
body.single-product div.product .woocommerce-tabs ul.tabs li.active::before { content: ""; display: block; position: absolute; top: auto; bottom: 0; left: 0; width: 100%; height: 3px; border-radius: 2px; background: transparent; z-index: 1; } /* 28/11 : plus de trait gris sous l'onglet inactif */
body.single-product div.product .woocommerce-tabs ul.tabs li.active::before { background: var(--mpe-accent, #1f53f3); }
body.single-product div.product .woocommerce-tabs ul.tabs li a { padding: 0; font-size: 15px; font-weight: 400; color: var(--mpe-muted); }
body.single-product div.product .woocommerce-tabs ul.tabs li.active a { font-weight: 600; color: var(--mpe-text); }
body.single-product div.product .woocommerce-tabs ul.tabs li a:hover { color: var(--mpe-text); }
body.single-product div.product .woocommerce-tabs ul.tabs li a:focus:not(:focus-visible) { outline: none; }

/* Onglet Informations complémentaires : tableau encadré, coins arrondis, lignes séparées. */
body.single-product div.product .woocommerce-tabs table.shop_attributes { max-width: 640px; border: 1px solid #D9D9D9; border-collapse: separate; border-spacing: 0; border-radius: 12px; overflow: hidden; margin: 0; }
body.single-product div.product .woocommerce-tabs table.shop_attributes tr,
body.single-product div.product .woocommerce-tabs table.shop_attributes tr:nth-child(even) th,
body.single-product div.product .woocommerce-tabs table.shop_attributes tr:nth-child(even) td { background: transparent; }
body.single-product div.product .woocommerce-tabs table.shop_attributes th,
body.single-product div.product .woocommerce-tabs table.shop_attributes td { padding: 14px 16px; border: 0; border-bottom: 1px solid #E5E7EB; font-size: 14px; line-height: 1.5; vertical-align: top; }
body.single-product div.product .woocommerce-tabs table.shop_attributes tr:last-child th,
body.single-product div.product .woocommerce-tabs table.shop_attributes tr:last-child td { border-bottom: 0; }
body.single-product div.product .woocommerce-tabs table.shop_attributes th { width: 30%; font-weight: 600; color: var(--mpe-text); text-align: left; }
body.single-product div.product .woocommerce-tabs table.shop_attributes td { font-style: normal; color: var(--mpe-muted); }
body.single-product div.product .woocommerce-tabs table.shop_attributes td p { margin: 0; padding: 0; }

/* Fiche produit : zone « Ajouter au panier » (maquette) — quantité en pilule avec − / + ronds,
   bouton qui prend toute la largeur restante, encadré de réassurance en dessous. */
body.single-product div.product form.cart .quantity { height: 48px; margin-right: 16px; padding: 4px; gap: 4px; border-color: #D9D9D9; }
body.single-product div.product form.cart .mpe-qty__btn { width: 40px; height: 40px; align-self: center; border-radius: 50%; background: #F1F2F6; font-size: 1.15rem; font-weight: 700; }
body.single-product div.product form.cart .mpe-qty__btn:hover,
body.single-product div.product form.cart .mpe-qty__btn:focus-visible { background: #E4E9FB; }
body.single-product div.product form.cart .quantity .qty { width: 32px; }
body.single-product div.product form.cart .button.single_add_to_cart_button,
body.single-product div.product form.cart .button.single_add_to_cart_button.disabled { flex: 1 1 220px; min-height: 60px; font-size: 17px; font-weight: 700; }

.mpe-reassurance { list-style: none; margin: 24px 0 0; padding: 20px 24px; border-radius: 12px; background: #F2F3F7; }
.mpe-reassurance li { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 15px; line-height: 1.4; color: var(--mpe-text); }
.mpe-reassurance li + li { margin-top: 12px; }
.mpe-reassurance__icon { flex: none; color: var(--mpe-text); }

/* Cartes produit : on masque le bouton panier / « Choix des options » / « Profiter de l'offre partenaire »
   posé sur l'image (Astra Pro), quel que soit le type de produit (simple, variable, externe…). Le badge promo reste. */
.astra-shop-thumbnail-wrap .ast-on-card-button:not(.ast-onsale-card) { display: none !important; }

/* Fiche produit : disponibilité (En stock / Rupture de stock) avec pastille de couleur. */
body.single-product div.product .summary .stock { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px; font-size: 14px; font-weight: 600; }
body.single-product div.product .summary .stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
body.single-product div.product .summary .stock.in-stock { color: #16a34a; }
body.single-product div.product .summary .stock.out-of-stock { color: #dc2626; }
/* Moins d'espace entre « En stock » et la quantité (marge du <p> + marge du bloc variation d'Astra). */
body.single-product div.product form.cart .single_variation_wrap .woocommerce-variation-availability .stock { margin-bottom: 0; }
/* « Disponibilité : » + pastille + « 200 en stock » sur une même ligne centrée (28/11) : le libellé (texte) et le stock
   (inline-flex dont le 1er élément est la pastille vide) ne partageaient pas la même ligne de base, le stock tombait plus bas. */
body.single-product div.product .summary .ast-stock-detail { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
body.single-product div.product .summary .ast-stock-detail > .stock { margin: 0; }
body.single-product div.product form.cart .single_variation_wrap .woocommerce-variation.single_variation:has(.stock) { margin-bottom: 16px; }

/* Fiche produit : mention de connexion sous la grille de prix (visiteurs non connectés). */
.single-product .summary .mpe-grille__login { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 24px 0 0; font-size: 14px; line-height: 1.4; color: var(--mpe-muted); }
.single-product .summary .mpe-grille__login a { font-weight: 700; color: var(--mpe-accent, #1f53f3); text-decoration: none; }
.single-product .summary .mpe-grille__login a:hover { text-decoration: underline; }

/* Barre boutique : champ de recherche en pilule plus haute (maquette) — texte 16px gris, loupe foncée plus grande. */
.mpe-shopnav { padding-block: 12px; }
.mpe-shopnav__search { flex: 0 1 260px; }
.mpe-shopnav__search .woocommerce-product-search { align-items: center; height: 46px; }
.mpe-shopnav__search input[type="search"] { height: 100%; padding: 0 8px 0 20px; font-size: 16px; color: var(--mpe-text); }
.mpe-shopnav__search input[type="search"]::placeholder { color: #6b7280; opacity: 1; }
.mpe-shopnav__search input[type="search"]:focus { outline: none; box-shadow: none; }
.mpe-shopnav__search .woocommerce-product-search:focus-within { box-shadow: 0 0 0 3px rgba(255, 255, 255, .45); }
.mpe-shopnav__search button { height: 100%; padding: 0 18px 0 8px; color: #1e1e1e; }
.mpe-shopnav__search button svg { width: 22px; height: 22px; }
@media (max-width: 768px) {
	.mpe-shopnav__search { flex-basis: auto; }
}
	.mpe-shopnav__search .woocommerce-product-search { height: 38px; }
	.mpe-shopnav__search input[type="search"] { padding-left: 18px; font-size: 14px; }
	.mpe-shopnav__search button { padding-right: 14px; }
	.mpe-shopnav__search button svg { width: 18px; height: 18px; }
}
.single-product .summary .mpe-grille__login > span { color: #707070; }

/* Page Boutique : carrousel de promos (template-parts/boutique/promos.php), pleine largeur,
   slide centrée avec les voisines visibles sur les côtés. */
.mpe-promos {
	--mpe-slide-w: min(1000px, 84vw);
	--mpe-slide-gap: 16px;
	position: relative;
	margin: 0 calc(-1 * var(--mpe-pad)) 3rem;
	overflow: hidden;
}
.mpe-boutique-landing .mpe-hero:has(+ .mpe-promos) { margin-bottom: 2rem; }
.mpe-promos__viewport { overflow: hidden; }
.mpe-promos__track {
	display: flex;
	align-items: center;
	gap: var(--mpe-slide-gap);
	margin: 0;
	padding: 0 0 0 calc((100% - var(--mpe-slide-w)) / 2); /* avant le JS : 1re promo centrée */
	list-style: none;
	will-change: transform;
}
.mpe-promos.is-ready .mpe-promos__track { padding: 0; transition: transform .6s cubic-bezier(.22, .61, .36, 1); }
.mpe-promos--single .mpe-promos__track { justify-content: center; padding: 0; }
.mpe-promos__slide { flex: 0 0 var(--mpe-slide-w); margin: 0; }
.mpe-promos__link { display: block; border-radius: 12px; }
.mpe-promos__link:focus-visible { outline: 3px solid var(--mpe-accent); outline-offset: 3px; }
.mpe-promos__img { display: block; width: 100%; height: auto; aspect-ratio: 2.55 / 1; object-fit: cover; border-radius: 12px; }
.mpe-promos__nav {
	position: absolute;
	top: calc(50% - 16px); /* centré sur l'image (hors points) */
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: var(--mpe-text);
	box-shadow: 0 2px 10px rgba(0, 0, 52, .18);
	transform: translateY(-50%);
	cursor: pointer;
}
.mpe-promos__nav:hover,
.mpe-promos__nav:focus-visible { background: #fff; color: var(--mpe-accent); }
.mpe-promos__nav--prev { left: calc(50% - var(--mpe-slide-w) / 2 - 22px); }
.mpe-promos__nav--next { right: calc(50% - var(--mpe-slide-w) / 2 - 22px); }
.mpe-promos__dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.mpe-promos__dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: #D9D9D9; cursor: pointer; transition: width .3s, background-color .3s; }
.mpe-promos__dot:hover { background: #bfc3cc; }
.mpe-promos__dot.is-active { width: 24px; background: var(--mpe-accent); }
@media (max-width: 768px) {
	.mpe-promos { --mpe-slide-w: 88vw; --mpe-slide-gap: 10px; margin-bottom: 2rem; }
	.mpe-promos__slide picture .mpe-promos__img { aspect-ratio: 4 / 3; }
	.mpe-promos__nav { display: none; } /* balayage + points sur mobile */
}
@media (prefers-reduced-motion: reduce) {
	.mpe-promos.is-ready .mpe-promos__track { transition: none; }
}

/* Cartes produit : partenaire collé au nom du produit (le lien en ligne autour du titre ajoutait ~5px d'interligne). */
.mpe-boutique-layout ul.products li.product .mpe-partner { margin-bottom: 2px; }
.mpe-boutique-layout ul.products li.product .mpe-partner + .ast-loop-product__link { display: block; line-height: 1; }

/* Cartes produit : catégorie en gris discret au-dessus du titre. */
.mpe-boutique-layout ul.products li.product .ast-woo-product-category { display: block; margin: 0 0 4px; color: #707070; font-size: 13px; font-weight: 500; line-height: 1.3; letter-spacing: 0; text-transform: none; opacity: 1; }

/* Offres partenaires : « Catégorie | PARTENAIRE » sur une même ligne (passe à la ligne si le nom est long). */
.woocommerce ul.products li.product .astra-shop-summary-wrap:has(> .mpe-partner) { font-size: 13px; line-height: 16.9px; } /* bloc en 13 px (comme la catégorie) : la ligne « Catégorie | MARQUE » démarre exactement au même endroit que la catégorie des produits MPE ; les éléments suivants gardent leur taille (voir plus bas) */
/* Le bloc est en 13 px : le reste de la carte retrouve ses tailles d'origine (en rem, indépendantes du bloc). */
.woocommerce ul.products li.product .astra-shop-summary-wrap:has(> .mpe-partner) > .ast-loop-product__link,
.woocommerce ul.products li.product .astra-shop-summary-wrap:has(> .mpe-partner) > .mpe-extras { font-size: 1rem; }
.woocommerce ul.products li.product .astra-shop-summary-wrap:has(> .mpe-partner) > .mpe-partner { font-size: .8rem; }
.woocommerce ul.products li.product .astra-shop-summary-wrap:has(> .mpe-partner) > .price { font-size: .9rem; }
.woocommerce ul.products li.product .astra-shop-summary-wrap:has(> .mpe-partner) > .mpe-offre-conditions { font-size: .82rem; }
.woocommerce ul.products li.product .astra-shop-summary-wrap:has(> .mpe-partner) > .mpe-offre-fin { font-size: .78rem; }
.woocommerce ul.products li.product .astra-shop-summary-wrap:has(> .mpe-partner) .mpe-extras { line-height: 1.65; } /* code promo : interlignage d'origine */
.woocommerce ul.products li.product .astra-shop-summary-wrap .ast-woo-product-category:has(+ .mpe-partner),
.woocommerce ul.products li.product .astra-shop-summary-wrap .ast-woo-product-category + .mpe-partner { display: inline; margin: 0; line-height: 1.3; }
.woocommerce ul.products li.product .astra-shop-summary-wrap .ast-woo-product-category + .mpe-partner::before { content: "|"; margin: 0 .4em; opacity: .6; }
.woocommerce ul.products li.product .astra-shop-summary-wrap .ast-woo-product-category + .mpe-partner + a { display: block; margin: 4px 0 16px; } /* titre et ligne suivante aux mêmes hauteurs que sur les cartes produit MPE */
/* Offre sans catégorie : pas de ligne vide avant la marque. */
.woocommerce ul.products li.product.mpe-offre--sans-categorie .astra-shop-summary-wrap .ast-woo-product-category { display: none; }

/* Page Boutique : sections « Notre sélection » / « Offres partenaires » — l'espace entre deux lignes de cartes
   passe par row-gap (la marge basse des cartes s'ajoutait sous la dernière ligne, ~75px de trop avant la section suivante). */
.mpe-selection ul.products { row-gap: 40px; margin-bottom: 0; }
.mpe-selection ul.products li.product { margin-bottom: 0; padding-bottom: 0; }

/* En-tête d'archive WooCommerce vide (titre masqué) : son trait apparaissait sous la grande bannière. */
.mpe-boutique-landing .ast-woocommerce-container > .woocommerce-products-header { display: none; }

/* Carrousel de promos : promo « texte » (champs Petit titre / Titre / Texte / Bouton) — photo à gauche,
   panneau bleu nuit à droite avec un fondu, texte écrit par le site. Tailles relatives à la largeur de la slide (cqw). */
.mpe-promos__card {
	position: relative;
	display: block;
	container-type: inline-size;
	aspect-ratio: 2.55 / 1;
	overflow: hidden;
	border-radius: 12px;
	background: #000034;
	color: #fff;
	text-decoration: none;
}
.mpe-promos__card .mpe-promos__img,
.mpe-promos__card picture { position: absolute; inset: 0 auto 0 0; width: 68%; height: 100%; }
.mpe-promos__card .mpe-promos__img { aspect-ratio: auto; object-fit: cover; border-radius: 0; }
.mpe-promos__content {
	position: absolute;
	inset: 0 0 0 auto;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	width: 54%;
	padding: 0 5.5cqw 0 9cqw;
	background: linear-gradient(to right, rgba(0, 0, 52, 0), #000034 30%);
}
.mpe-promos__kicker { margin-bottom: .3cqw; color: #FF00A3; font-size: clamp(11px, 1.45cqw, 15px); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.mpe-promos__title { font-family: Toroka, Helvetica, Arial, sans-serif; font-size: clamp(22px, 4.3cqw, 44px); font-weight: 800; line-height: 1.05; }
.mpe-promos__text { margin-top: 1.4cqw; color: rgba(255, 255, 255, .85); font-size: clamp(13px, 1.75cqw, 18px); line-height: 1.45; }
.mpe-promos__btn {
	display: inline-flex;
	align-items: center;
	margin-top: 1.6cqw;
	padding: clamp(8px, 1.1cqw, 12px) clamp(16px, 2.3cqw, 24px);
	border-radius: 999px;
	background: var(--mpe-accent, #1f53f3);
	color: #fff;
	font-size: clamp(13px, 1.6cqw, 16px);
	font-weight: 700;
	line-height: 1.2;
	transition: background-color .2s;
}
a.mpe-promos__card:hover .mpe-promos__btn { background: #1440c9; }
@media (max-width: 768px) {
	/* Mobile : photo en haut, texte dessous sur le fond bleu nuit. */
	.mpe-promos__card { aspect-ratio: auto; }
	.mpe-promos__card .mpe-promos__img,
	.mpe-promos__card picture { position: static; width: 100%; height: auto; }
	.mpe-promos__card .mpe-promos__img { aspect-ratio: 16 / 9; }
	.mpe-promos__slide picture .mpe-promos__img { aspect-ratio: 4 / 3; }
	.mpe-promos__content { position: static; width: auto; padding: 20px; background: none; }
	.mpe-promos__kicker { margin-bottom: 3px; }
	.mpe-promos__text { margin-top: 8px; }
	.mpe-promos__btn { margin-top: 10px; }
}
/* Promo « texte » au survol : le lien prenait la couleur de survol des liens du thème (titre bleu nuit sur fond bleu nuit). */
.mpe-boutique-layout .mpe-promos__card,
.mpe-boutique-layout a.mpe-promos__card:hover,
.mpe-boutique-layout a.mpe-promos__card:focus,
.mpe-boutique-layout .mpe-promos__card .mpe-promos__title,
.mpe-boutique-layout .mpe-promos__card .mpe-promos__btn { color: #fff; }
.mpe-boutique-layout .mpe-promos__card .mpe-promos__kicker { color: #FF00A3; }
.mpe-boutique-layout .mpe-promos__card .mpe-promos__text { color: rgba(255, 255, 255, .85); }
/* Page Boutique : strates par catégorie sous la grande bannière. */
.mpe-boutique-landing .mpe-banniere:has(~ .mpe-selection) { margin-bottom: 3rem; }

/* Fiche produit sans onglets Description / Infos : « Vous aimerez aussi » / « Dans la même rubrique » arrivaient
   à 32px de l'encadré de réassurance. Padding plutôt que marge (la section ne passait pas sous les blocs flottants : clear). */
.single-product div.product > .summary + section.related.products,
.single-product div.product > .summary + section.up-sells.products { clear: both; padding-top: 2rem; }

/* Fiche produit : bandeau promo sous « Dans la même rubrique ». */
.single-product div.product > .mpe-banniere { clear: both; margin: 1rem 0 0; } /* + marge basse des cartes au-dessus ≈ 56px */

/* Pages de catégorie et « Offres partenaires » : bandeau d'annonce sous le fil d'Ariane (template-parts/boutique/cat-hero.php). */
.mpe-cathero {
	display: flex;
	align-items: center;
	min-height: 200px;
	margin: 0 0 2.5rem;
	padding: 32px 56px;
	border-radius: 12px;
	background: #000034;
	color: #fff;
}
.mpe-cathero--image {
	/* Photo assombrie (bleu nuit), un peu plus à gauche derrière le texte. */
	background:
		linear-gradient(to right, rgba(0, 0, 52, .7), rgba(0, 0, 52, .35) 70%),
		var(--mpe-cathero-image) center / cover no-repeat;
}
.mpe-cathero__inner { max-width: 640px; }
.mpe-cathero__kicker { margin: 0 0 4px; color: #FF00A3; font-size: 12px; font-style: normal; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.mpe-boutique-layout .mpe-cathero__title { margin: 0 0 10px; color: #fff; font-size: clamp(1.75rem, 3.2vw, 2.5rem); line-height: 1.05; }
.mpe-cathero__text { margin: 0; color: rgba(255, 255, 255, .92); font-size: 18px; line-height: 1.5; }
/* L'en-tête WooCommerce (titre retiré) laissait un trait vide au-dessus des produits. */
.tax-product_cat .mpe-archive__main > .woocommerce-products-header,
.term-offres-partenaires .mpe-archive__main > .woocommerce-products-header { display: none; }
@media (max-width: 768px) {
	.mpe-cathero { min-height: 160px; margin-bottom: 1.5rem; padding: 24px 22px; }
	.mpe-cathero__text { font-size: 15px; }
}
/* Pages de catégorie : espace entre lignes de cartes via row-gap (la marge basse des cartes s'ajoutait sous la dernière
   ligne, et le bandeau du bas était plus ou moins éloigné selon que la colonne des filtres ou celle des produits était la plus haute). */
.tax-product_cat .mpe-archive__main ul.products,
.term-offres-partenaires .mpe-archive__main ul.products { row-gap: 40px; margin-bottom: 0; }
.tax-product_cat .mpe-archive__main ul.products li.product,
.term-offres-partenaires .mpe-archive__main ul.products li.product { margin-bottom: 0; padding-bottom: 0; }

/* Grille de prix : ligne Fan+ mise en avant pour qui n'est pas Fan+ (pastille bleue, badge « Meilleur prix », libellé et prix en bleu #1F53F3).
   Sur la fiche produit, toute la ligne est cliquable vers les abonnements. */
.mpe-grille__row.is-upsell .mpe-grille__pct { display: inline-block; padding: 1px 6px; border-radius: 999px; background: #1F53F3; color: #fff; font-weight: 700; line-height: 1.4; opacity: 1; }
.mpe-grille__badge { display: inline-block; margin-left: .35rem; padding: 1px 5px; border: 1px solid #1F53F3; border-radius: 4px; color: #1F53F3; font-size: .62em; font-weight: 700; letter-spacing: .04em; line-height: 1.4; text-transform: uppercase; vertical-align: middle; white-space: nowrap; }
.mpe-grille__row.is-upsell dt,
.mpe-grille__row.is-upsell dd { color: #1F53F3; }
.mpe-grille__row.is-upsell dt { font-weight: 700; } /* montant en gras seulement si c'est le prix appliqué */
.mpe-grille__row.is-upsell { position: relative; }
.mpe-grille__rowlink { position: absolute; inset: 0; z-index: 1; border-radius: 6px; }
.mpe-grille__row.is-upsell .mpe-info { position: relative; z-index: 2; } /* l'infobulle reste utilisable au-dessus du lien */
.mpe-grille__row.is-upsell:has(.mpe-grille__rowlink) { transition: background-color .2s; }
.mpe-grille__row.is-upsell:has(.mpe-grille__rowlink:hover),
.mpe-grille__row.is-upsell:has(.mpe-grille__rowlink:focus-visible) { background: #E4EAFD; }
.mpe-grille__rowlink:focus-visible { outline: 2px solid #1F53F3; outline-offset: 1px; }
/* Cartes produit : trop étroites pour le badge (la ligne passait sur deux lignes) → pastille + prix bleus seulement. */
ul.products li.product .mpe-grille__badge { display: none; }

/* Facettes : libellés un peu plus petits (14px), compteurs en gris clair (chiffres proportionnels :
   les chiffres tabulaires de Plus Jakarta Sans donnaient un « 1 » à empattement). */
.mpe-facets .mpe-facet__body ul li > a,
.mpe-facets .woocommerce-widget-layered-nav-list .woocommerce-widget-layered-nav-list__item > a { font-size: 14px; }
.mpe-facets .mpe-facet__body .count { color: #707070; font-size: 13px; font-variant-numeric: normal; }
.mpe-facets .mpe-facet--attribute li > a::before { width: 1.25rem; height: 1.25rem; }

/* Popup « Ajouté à votre panier » (inc/boutique.php + assets/js/boutique.js). */
.mpe-addmodal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.mpe-addmodal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 52, .45); opacity: 0; transition: opacity .2s; }
.mpe-addmodal__dialog { position: relative; width: 100%; max-width: 420px; padding: 28px; border-radius: 16px; background: #fff; box-shadow: 0 20px 60px rgba(0, 0, 52, .25); opacity: 0; transform: translateY(12px) scale(.98); transition: opacity .2s, transform .2s; }
.mpe-addmodal.is-open .mpe-addmodal__backdrop,
.mpe-addmodal.is-open .mpe-addmodal__dialog { opacity: 1; transform: none; }
.mpe-addmodal-open { overflow: hidden; }
.mpe-addmodal__x { position: absolute; top: 14px; right: 14px; display: inline-flex; padding: 6px; border: 0; border-radius: 50%; background: transparent; color: var(--mpe-muted); cursor: pointer; }
.mpe-addmodal__x:hover, .mpe-addmodal__x:focus-visible { background: #F1F2F6; color: var(--mpe-text); }
.mpe-addmodal__title { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; color: var(--mpe-text); font-size: 18px; font-weight: 700; }
.mpe-addmodal__check { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: #16a34a; color: #fff; }
.mpe-addmodal__product { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 12px; background: #F2F3F7; }
.mpe-addmodal .mpe-addmodal__img { flex: none; width: 64px; height: 64px; object-fit: cover; border-radius: 8px; background: #f2f5ff; }
.mpe-addmodal__name { margin: 0 0 2px; color: var(--mpe-text); font-size: 15px; font-weight: 700; line-height: 1.3; }
.mpe-addmodal__meta, .mpe-addmodal__cart { margin: 0; color: #707070; font-size: 13px; }
.mpe-addmodal__cart { margin-top: 12px; }
.mpe-addmodal__actions { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.mpe-addmodal__btn { display: flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border-radius: 999px; font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer; }
.mpe-addmodal .mpe-addmodal__btn--primary { border: 0; background: var(--mpe-accent, #1f53f3); color: #fff; }
.mpe-addmodal .mpe-addmodal__btn--primary:hover { background: #1440c9; color: #fff; }
.mpe-addmodal .mpe-addmodal__btn--secondary { border: 1px solid #D9D9D9; background: #fff; color: var(--mpe-text); }
.mpe-addmodal .mpe-addmodal__btn--secondary:hover { border-color: var(--mpe-text); background: #fff; color: var(--mpe-text); }
/* 25/11 : popup élargie avec « Vous aimerez aussi » (3 produits). Boutons côte à côte, cartes en grille. */
.mpe-addmodal__dialog--reco { max-width: 720px; max-height: calc(100vh - 32px); overflow-y: auto; }
.mpe-addmodal__dialog--reco .mpe-addmodal__actions { flex-direction: row; }
.mpe-addmodal__dialog--reco .mpe-addmodal__btn { flex: 1 1 0; }
.mpe-addmodal__reco { margin-top: 26px; padding-top: 22px; border-top: 1px solid #ECEDF2; }
/* 25/11 : popup élargie (suggestions) : produit ajouté plus grand, en proportion des cartes du dessous. */
.mpe-addmodal__dialog--reco .mpe-addmodal__product { gap: 20px; padding: 16px; }
.mpe-addmodal__dialog--reco .mpe-addmodal__img { width: 112px; height: 112px; border-radius: 10px; }
.mpe-addmodal__dialog--reco .mpe-addmodal__name { margin-bottom: 6px; font-size: 18px; }
.mpe-addmodal__dialog--reco .mpe-addmodal__meta { font-size: 14px; }
@media (max-width: 600px) {
	.mpe-addmodal__dialog--reco .mpe-addmodal__img { width: 80px; height: 80px; }
	.mpe-addmodal__dialog--reco .mpe-addmodal__name { font-size: 16px; }
}
.mpe-addmodal__reco-titre { margin: 0 0 14px; color: var(--mpe-text); font-size: 16px; font-weight: 700; }
.mpe-addmodal ul.mpe-addmodal__reco-liste { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.mpe-addmodal__reco-liste li { margin: 0; }
.mpe-addmodal .mpe-addmodal__reco-carte { display: flex; flex-direction: column; gap: 8px; height: 100%; color: var(--mpe-text); text-decoration: none; }
.mpe-addmodal__reco-img { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 10px; background: #F2F3F7; }
.mpe-addmodal__reco-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.mpe-addmodal__reco-carte:hover .mpe-addmodal__reco-img img { transform: scale(1.04); }
.mpe-addmodal__reco-nom { font-size: 14px; font-weight: 700; line-height: 1.3; }
.mpe-addmodal__reco-carte:hover .mpe-addmodal__reco-nom { color: var(--mpe-accent, #1f53f3); }
.mpe-addmodal__reco-prix { color: var(--mpe-text); font-size: 14px; font-weight: 700; }
.mpe-addmodal__reco-prix .mpe-prixcarte { display: grid; justify-items: start; gap: 2px; }
.mpe-addmodal__reco-prix .mpe-prixcarte__votre { font-size: 11px; }
.mpe-addmodal__reco-prix .mpe-prixcarte__prix { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; margin: 0; font-size: 16px; font-weight: 800; }
.mpe-addmodal__reco-prix .mpe-prixcarte__avec { font-size: 11px; font-weight: 600; }
.mpe-addmodal__reco-prix .mpe-prixcarte__note { margin: 0; color: #6b6f8a; font-size: 12px; font-weight: 500; }
.mpe-addmodal__reco-prix .woocommerce-price-suffix { margin-left: 2px; font-size: .7em; }
@media (max-width: 600px) {
	.mpe-addmodal__dialog--reco { padding: 22px 18px; }
	.mpe-addmodal__dialog--reco .mpe-addmodal__actions { flex-direction: column; }
	/* 3 cartes trop serrées : défilement horizontal. */
	.mpe-addmodal ul.mpe-addmodal__reco-liste { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 42%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; }
	.mpe-addmodal__reco-liste li { scroll-snap-align: start; }
}
@media (prefers-reduced-motion: reduce) {
	.mpe-addmodal__backdrop, .mpe-addmodal__dialog { transition: none; }
}

/* Les infobulles « i » masquées (positionnées en absolu) élargissaient la page (défilement horizontal), en mobile comme
   en desktop pour la colonne de droite. Près du bord droit, l'infobulle s'ouvre vers la gauche (classe posée par boutique.js). */
.mpe-info:not(:hover):not(:focus-within):not(.is-open) .mpe-info__bubble { display: none; }
.mpe-info.is-gauche .mpe-info__bubble { right: -12px; left: auto; }
.mpe-info.is-gauche .mpe-info__bubble::after { right: 14px; left: auto; }

/* Souscription entreprise : ligne « soit … TTC · TVA récupérable » sous le prix HT */
.single-product .summary .price + .mpe-prix-ttc-ligne,
.single-product .mpe-prix-ttc-ligne { margin: -6px 0 16px; color: #707070; font-size: 15px; line-height: 1.4; }
.single-product .mpe-prix-ttc-ligne .woocommerce-Price-amount { color: inherit; font-weight: 600; }
.single-product .summary .price .mpe-prix-ttc-ligne { display: block; margin: 4px 0 0; color: #707070; font-size: 15px; font-weight: 400; line-height: 1.4; }
.single-product .summary .price .mpe-prix-ttc-ligne { margin-top: 6px; font-size: 17px; color: #707070 !important; }
.single-product .summary .price .mpe-prix-ttc-ligne * { color: #707070 !important; font-size: inherit !important; }
.single-product .summary .price .mpe-prix-ttc-ligne .woocommerce-Price-amount { font-weight: 600; }

/* Étiquette « Nouveau » sur l'image (cartes + fiche produit) — inc/boutique.php, mpe_boutique_render_badge_nouveau(). */
.mpe-badge-nouveau {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 6; /* au-dessus de l'image zoomée au survol et des boutons de carte d'Astra */
	display: inline-flex;
	align-items: center;
	padding: .4em .85em;
	border-radius: 999px;
	background-color: #FF00A3;
	color: #fff;
	font-size: .78rem;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
	pointer-events: none; /* la carte reste cliquable sous l'étiquette */
}
/* Badge de réduction de la braderie (mu-plugins/mpe-braderie.php) : il garde le coin, « Nouveau » passe dessous.
   Le badge « Promo » d'Astra (.ast-onsale-card) n'est pas pris en compte : il est masqué par le CSS personnalisé
   du Customizer, mais présent dès qu'un Membre / Fan+ a une remise. */
.astra-shop-thumbnail-wrap:has(.mlb-discount-badge) .mpe-badge-nouveau { top: calc(20px + 2.6em); }
/* Fiche produit : au-dessus du diaporama de la galerie, un peu plus grande. */
.single-product div.product > .mpe-badge-nouveau { top: 20px; left: 20px; z-index: 9; font-size: .875rem; padding: .45em .95em; } /* 29/11 : étiquettes de la fiche réduites (39 → 30 px) */
.single-product div.product:has(.mlb-discount-badge) > .mpe-badge-nouveau { top: 64px; } /* sous la réduction (badge de mpe-braderie, ~2em de haut) */
@media (max-width: 544px) {
	.mpe-badge-nouveau { top: 10px; left: 10px; font-size: .72rem; }
}

/* Page Boutique : bandeau fin rose avec 3 messages cochés (template-parts/boutique/hero.php),
   à la place de l'ancien hero titre + intro + image. Pleine largeur via les règles .mpe-hero ci-dessus. */
.mpe-hero.mpe-hero--bandeau {
	display: block;
	padding-block: 1.05rem;
	background: #FF00A3;
	color: #fff;
}
.mpe-boutique-landing .mpe-hero.mpe-hero--bandeau,
.mpe-boutique-landing .mpe-hero.mpe-hero--bandeau:has(+ .mpe-promos) { margin-bottom: 1.25rem; }
.mpe-hero__messages {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-around;
	gap: .5rem 2rem;
	max-width: 1100px;
	margin: 0 auto;
	padding: 0;
	list-style: none;
}
.mpe-hero__messages li {
	display: flex;
	align-items: center;
	gap: .55rem;
	margin: 0;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
}
.mpe-hero__check { flex: 0 0 auto; }
.mpe-hero__messages strong { font-weight: 800; }
.mpe-hero__messages a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.mpe-hero__messages a:hover,
.mpe-hero__messages a:focus-visible { text-decoration-thickness: 2px; }
@media (max-width: 768px) {
	.mpe-hero.mpe-hero--bandeau { padding-block: .85rem; }
	.mpe-hero__messages { flex-direction: column; align-items: flex-start; gap: .35rem; }
	.mpe-hero__messages li { font-size: 13px; }
}

/* -------------------------------------------------------------------------
 * Accueil : strate « Boutique » (shortcode [mpe_boutique_accueil], template-parts/boutique/accueil.php)
 * En-tête, cartes des catégories (+ « Offres partenaires » en rose), « Notre sélection » (3 produits).
 * ---------------------------------------------------------------------- */
.mpe-home-shop { margin: 0; padding: clamp(56px, 7vw, 96px) var(--mpe-pad); background: #fff; color: #000034; }
.mpe-home-shop__inner { display: grid; gap: clamp(32px, 4vw, 48px); max-width: 1200px; margin: 0 auto; }

/* En-tête */
.mpe-home-shop__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; }
.mpe-home-shop__head > div { flex: 1 1 520px; max-width: 760px; }
.mpe-home-shop__kicker { margin: 0 0 12px; color: #FF00A3; font-size: 14px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.mpe-home-shop__title { margin: 0 0 16px; color: #000034; font-size: clamp(2rem, 4.4vw, 3.5rem); line-height: 1.05; }
.mpe-home-shop__text { margin: 0; color: #384050; font-size: 17px; line-height: 1.55; }
.mpe-home-shop__text strong { color: #000034; }
.mpe-home-shop__btn { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 10px; min-height: 52px; padding: 0 26px; border: 2px solid #1F53F3; border-radius: 999px; background: transparent; color: #1F53F3; font-weight: 700; text-decoration: none !important; transition: background-color .15s, color .15s; }
.mpe-home-shop__btn:hover,
.mpe-home-shop__btn:focus-visible { background: #1F53F3; color: #fff; }
.mpe-home-shop__btn svg { transition: transform .15s; }
.mpe-home-shop__btn:hover svg { transform: translateX(3px); }

/* Cartes des catégories */
.mpe-home-shop__cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin: 0 !important; padding: 0 !important; list-style: none; } /* !important : retrait des listes du contenu de page */
.mpe-home-shop__cat { margin: 0; }
.mpe-home-shop__cat a { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 260px; overflow: hidden; padding: 24px 26px; border-radius: 16px; background: linear-gradient(160deg, #1F53F3 0%, #000034 100%); color: #fff; text-decoration: none !important; isolation: isolate; }
.mpe-home-shop__cat img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.mpe-home-shop__cat a::before { /* voile bleu nuit en bas seulement : la photo reste visible, le nom lisible */
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(180deg, rgba(0, 0, 52, 0) 40%, rgba(0, 0, 52, .75) 100%);
}
/* Catégorie sans image : abeille MPE centrée sur fond bleuté, nom en bleu nuit (pas de voile). */
.mpe-home-shop__cat--sans-image a { background: #F2F5FF; color: #000034; }
.mpe-home-shop__cat--sans-image a::before { content: none; }
.mpe-home-shop__cat--sans-image img.mpe-home-shop__cat-placeholder { inset: 18px 0 64px; width: 100%; height: calc(100% - 82px); object-fit: contain; }
.mpe-home-shop__cat--sans-image .mpe-home-shop__cat-name { color: #000034; }
.mpe-home-shop__cat a:hover img,
.mpe-home-shop__cat a:focus-visible img { transform: scale(1.06); }
.mpe-home-shop__cat-name { color: #fff; font-size: clamp(1.4rem, 2vw, 1.75rem); font-weight: 800; line-height: 1.1; }
.mpe-home-shop__cat--offres a { justify-content: space-between; background: #FF00A3; transition: background-color .2s; }
.mpe-home-shop__cat--offres a::before { content: none; }
.mpe-home-shop__cat--offres a:hover,
.mpe-home-shop__cat--offres a:focus-visible { background: #E6008F; }
.mpe-home-shop__cat-kicker { font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

/* Notre sélection */
.mpe-home-shop__subtitle { margin: 0 0 20px; color: #000034; font-size: clamp(1.5rem, 2.4vw, 1.875rem); line-height: 1.2; }
.mpe-home-shop ul.products { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin: 0 !important; padding: 0; }
.mpe-home-shop ul.products::before,
.mpe-home-shop ul.products::after { content: none !important; }
.mpe-home-shop ul.products li.product { width: auto !important; margin: 0 !important; }

@media (max-width: 921px) {
	.mpe-home-shop ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mpe-home-shop__cat a { min-height: 200px; }
}
@media (max-width: 768px) {
	/* Mobile : catégories et produits en carrousels horizontaux (défilement au doigt). */
	.mpe-home-shop__cats,
	.mpe-home-shop ul.products { display: flex !important; gap: 14px; margin: 0 calc(-1 * var(--mpe-pad)) !important; padding: 4px var(--mpe-pad) 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--mpe-pad); scrollbar-width: none; }
	.mpe-home-shop__cats::-webkit-scrollbar,
	.mpe-home-shop ul.products::-webkit-scrollbar { display: none; }
	.mpe-home-shop__cat { flex: 0 0 62%; scroll-snap-align: start; }
	.mpe-home-shop ul.products li.product { flex: 0 0 78%; scroll-snap-align: start; }
}

/* -------------------------------------------------------------------------
 * Passe responsive (octobre 2026)
 * ---------------------------------------------------------------------- */

/* Grille de prix des cartes : quand la carte est étroite (2 colonnes en mobile, 3 en tablette), le libellé, la pastille
   et le « i » passent sur une ligne, le montant en dessous (au lieu de « Prix / public » coupé en deux). */
.woocommerce ul.products li.product .mpe-extras { container-type: inline-size; }
@container (max-width: 250px) {
	.woocommerce ul.products li.product .mpe-grille { font-size: 13px; }
	.woocommerce ul.products li.product .mpe-grille__row { flex-direction: column; align-items: stretch; gap: 1px; padding: 6px 8px; }
	.woocommerce ul.products li.product .mpe-grille dt { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 4px; font-size: 12.5px; line-height: 1.3; }
	.woocommerce ul.products li.product .mpe-grille__pct { margin: 0; padding: 1px 5px !important; font-size: 10.5px; }
	.woocommerce ul.products li.product .mpe-grille dd { line-height: 1.35; }
	.woocommerce ul.products li.product .mpe-grille__badge { display: none; } /* « Meilleur prix » : pas la place */
}

/* « Équipement | OVERSTIM.S » : la marque est en ligne (pas en bloc) ; une marque longue se coupe entre deux mots
   (« Équipement | PRECISION FUEL & » / « HYDRATION ») au lieu de passer en entier à la ligne avec le « | » devant. */
.woocommerce ul.products li.product .astra-shop-summary-wrap .ast-woo-product-category + .mpe-partner { display: inline; overflow-wrap: anywhere; }
/* Carte étroite : catégorie et marque l'une sous l'autre, sans « | ». */
.woocommerce ul.products li.product .astra-shop-summary-wrap { container-type: inline-size; }
@container (max-width: 250px) {
	.woocommerce ul.products li.product .astra-shop-summary-wrap .ast-woo-product-category:has(+ .mpe-partner),
	.woocommerce ul.products li.product .astra-shop-summary-wrap .ast-woo-product-category + .mpe-partner { display: block; }
	.woocommerce ul.products li.product .astra-shop-summary-wrap .ast-woo-product-category + .mpe-partner::before { content: none; }
}

/* Filtres repliables (mobile, tablette) : chevron qui indique que le bloc s'ouvre. */
@media (max-width: 921px) {
	.mpe-facets__toggle { display: flex; align-items: center; justify-content: space-between; }
	.mpe-facets__toggle::after {
		content: ""; flex: none; width: 9px; height: 9px; margin: -4px 4px 0 12px;
		border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s;
	}
	.mpe-facets[open] .mpe-facets__toggle::after { margin-top: 4px; transform: rotate(-135deg); }
	.mpe-archive__main ul.products { margin-top: 0 !important; } /* trop d'espace sous « Filtrer les produits » */
}

@media (max-width: 921px) {
	/* Catégories de la boutique (mobile, tablette) : pastilles sur une seule ligne qui défile au doigt, la dernière
	   estompée à droite ; pastille pleine pour la catégorie en cours (boutique.js la ramène à l'écran). */
	.mpe-shopnav { flex-direction: column; align-items: stretch; gap: .75rem; min-width: 0; padding-block: 12px; }
	.mpe-shopnav__search { flex-basis: auto; }
	.mpe-shopnav__menu { min-width: 0; max-width: calc(100% + 2rem); margin-inline: -1rem; }
	.mpe-shopnav__list {
		flex-wrap: nowrap; gap: 8px; padding-inline: 1rem; overflow-x: auto; scrollbar-width: none; scroll-padding-inline: 1rem;
		-webkit-mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent);
		mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent);
	}
	.mpe-shopnav__list.has-gauche { /* fondu des deux côtés quand la ligne a défilé (classe posée par boutique.js) */
		-webkit-mask-image: linear-gradient(to right, transparent, #000 32px, #000 calc(100% - 32px), transparent);
		mask-image: linear-gradient(to right, transparent, #000 32px, #000 calc(100% - 32px), transparent);
	}
	.mpe-shopnav__list.has-gauche.is-fin { -webkit-mask-image: linear-gradient(to right, transparent, #000 32px); mask-image: linear-gradient(to right, transparent, #000 32px); }
	.mpe-shopnav__list.is-fin:not(.has-gauche) { -webkit-mask-image: none; mask-image: none; }
	.mpe-shopnav__list::-webkit-scrollbar { display: none; }
	.mpe-shopnav__list li { flex: none; }
	.mpe-shopnav__list li:last-child { padding-right: 24px; } /* la dernière pastille sort du fondu en fin de défilement */
	.mpe-shopnav__list a {
		display: flex; align-items: center; min-height: 38px; padding: 0 16px;
		border: 1px solid rgba(255, 255, 255, .45); border-radius: 999px;
		font-size: 14px; white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s;
	}
	.mpe-shopnav__list a:hover { border-color: #fff; background: rgba(255, 255, 255, .12); }
	.mpe-shopnav__list .current-menu-item > a { border-color: #fff; background: #fff; color: var(--mpe-accent); }
	.mpe-shopnav__search .woocommerce-product-search { height: 44px; }
}

@media (max-width: 768px) {
	/* Bandeau de catégorie : photo plus assombrie, le texte passe sur toute la largeur de l'image */
	.mpe-cathero--image {
		background:
			linear-gradient(rgba(0, 0, 52, .62), rgba(0, 0, 52, .62)),
			var(--mpe-cathero-image) center / cover no-repeat;
	}
}

@media (max-width: 544px) {
	/* Bandeau rose de la page Boutique : plus compact (3 lignes serrées) */
	.mpe-hero.mpe-hero--bandeau { padding-block: .65rem; }
	.mpe-hero__messages { gap: .2rem; }
	.mpe-hero__messages li { gap: .45rem; font-size: 12.5px; }
	.mpe-hero__check { width: 14px; height: 14px; }
}

/* -------------------------------------------------------------------------
 * Strate « Boutique » de l'accueil, version compacte (octobre 2026) : sans « Notre sélection »,
 * titre sur une ligne, tuiles et marges plus basses (~1 480 px → ~550 px sur ordinateur).
 * ---------------------------------------------------------------------- */
.mpe-home-shop { padding-block: clamp(48px, 5vw, 64px); }
.mpe-home-shop__inner { gap: 24px; } /* = titre → cartes de « L'actu de la Ruche » */
.mpe-home-shop__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 16px 40px; }
.mpe-home-shop__head > div { max-width: 820px; }
.mpe-home-shop__head .mpe-home-shop__text { margin-bottom: 0 !important; } /* la marge des paragraphes du contenu décalait le bouton sous le texte */
.mpe-home-shop__head .mpe-home-shop__btn { margin-bottom: -1px; } /* bouton aligné sur le bas du texte */
@media (max-width: 921px) {
	/* Plus de place à côté du texte : le bouton passe dessous, aligné à gauche (il ne « flotte » plus à droite). */
	.mpe-home-shop__head { grid-template-columns: minmax(0, 1fr); }
	.mpe-home-shop__head .mpe-home-shop__btn { justify-self: start; margin-bottom: 0; }
}
/* !important : les marges des paragraphes et titres du contenu (22 et 28 px) prenaient le dessus. */
.mpe-home-shop__kicker { margin-bottom: 8px !important; } /* = « L'actu de la Ruche » (actualites.css) */
.mpe-home-shop__title { margin-bottom: 10px !important; font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
.mpe-home-shop__text { font-size: 16px; }
.mpe-home-shop__text strong { white-space: nowrap; } /* « 8 marques » sur une seule ligne */
.mpe-home-shop__cat a { min-height: 180px; padding: 20px 22px; }
.mpe-home-shop__cat-name { font-size: clamp(1.25rem, 1.6vw, 1.5rem); }
@media (max-width: 921px) {
	.mpe-home-shop__cat a { min-height: 160px; }
}

/* Accueil, strate Boutique : cartes des catégories comme « Découvrez nos catégories » (.mpe-categories__*),
   plus une carte rose « Offres partenaires ». */
.mpe-home-shop__cats--cartes { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
.mpe-home-shop__cats--cartes a { text-decoration: none !important; } /* les liens du contenu de page sont soulignés */
.mpe-home-shop__carte { margin: 0; }
.mpe-categories__item--offres a { justify-content: space-between; color: #fff; background: #ff00a3; border-color: #ff00a3; }
.mpe-categories__item--offres a:hover { background: #e6008f; border-color: #e6008f; box-shadow: none; }
.mpe-categories__offres-kicker { padding: 16px 12px 0; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
/* Abeille blanche sous « Réseau MPE » (picto du thème, en masque pour la couleur). */
.mpe-categories__offres-abeille {
	display: block;
	width: 56px;
	height: 50px;
	margin: 14px 0 0 12px;
	background: #fff;
	-webkit-mask: url(../img/picto-abeille.svg) left center / contain no-repeat;
	mask: url(../img/picto-abeille.svg) left center / contain no-repeat;
}
.mpe-categories__item--offres a { justify-content: flex-start; }
.mpe-categories__item--offres .mpe-categories__corps { margin-top: auto; }
.mpe-categories__item--offres .mpe-categories__name,
.mpe-categories__item--offres a:hover .mpe-categories__name,
.mpe-categories__item--offres .mpe-categories__nb,
.mpe-categories__item--offres .mpe-categories__fleche { color: #fff; }
@media (max-width: 768px) {
	.mpe-home-shop__carte { flex: 0 0 62%; scroll-snap-align: start; }
}
.mpe-categories__nb { line-height: 1.35; }

/* En-tête de catégorie simple (sans image ni fond) : surtitre rose, titre bleu nuit, description grise. */
.mpe-cathero,
.mpe-cathero--image { display: block; min-height: 0; margin: 0 0 2.5rem; padding: 0; border-radius: 0; background: none; color: #000034; }
.mpe-cathero__inner { max-width: 720px; }
.mpe-cathero__kicker { margin: 0 0 2px; font-size: 14px; line-height: 1.2; letter-spacing: normal; text-transform: none; }
.mpe-boutique-layout .mpe-cathero__title { margin: 0; color: #000034; font-size: clamp(2.25rem, 4.2vw, 3.25rem); line-height: 1.05; }
.mpe-cathero__text { margin: 12px 0 0; color: #4a4a68; font-size: 17px; line-height: 1.5; }
@media (max-width: 768px) {
	.mpe-cathero, .mpe-cathero--image { min-height: 0; margin-bottom: 1.75rem; padding: 0; background: none; }
	.mpe-cathero__text { font-size: 15px; }
}

/* Navigation boutique (ordinateur) : les liens occupent toute la hauteur du bandeau bleu,
   le trait de soulignement touche le bas du bandeau. */
@media (min-width: 922px) {
	/* Bandeau de 52 px : recherche 36 px + 2 × 8 px (28/11, avant 64 px). */
	.mpe-shopnav { box-sizing: border-box; min-height: 52px; padding-block: 8px; }
	.mpe-shopnav__search .woocommerce-product-search { height: 36px; }
	/* La police place ses lettres un peu bas : 3 px en bas recentrent le texte sur la loupe. */
	.mpe-shopnav__search input[type="search"] { padding-bottom: 3px; font-size: 14px; line-height: 1; }
	.mpe-shopnav__search button svg { width: 18px; height: 18px; }
	.mpe-shopnav__menu { display: flex; align-self: stretch; margin-block: -8px; }
	.mpe-shopnav__list { align-items: stretch; column-gap: 1.75rem; }
	.mpe-shopnav__list li { display: flex; padding-bottom: 2px; } /* soulignement 2 px au-dessus du bas du bandeau */
	.mpe-shopnav__list a { display: flex; align-items: center; padding: 2px 0 0; font-size: 14px; font-weight: 600; border-bottom-width: 3px; } /* 28/11 : 14 px comme le menu principal */
}

/* 28/11 : recherche « verre dépoli » : champ blanc translucide sur la barre bleue, loupe à gauche, texte blanc ;
   au clic (focus), il repasse en blanc avec un halo pour la saisie. */
.mpe-shopnav .mpe-shopnav__search .woocommerce-product-search { background: rgba(255, 255, 255, .16); box-shadow: none; transition: background-color .15s, box-shadow .15s; }
.mpe-shopnav .mpe-shopnav__search .woocommerce-product-search:hover { background: rgba(255, 255, 255, .24); }
.mpe-shopnav .mpe-shopnav__search button { order: -1; padding: 0 4px 0 14px; border: 0 !important; color: #fff; background: transparent; box-shadow: none; }
.mpe-shopnav .mpe-shopnav__search input[type="search"] { padding-left: 6px; color: #fff; }
.mpe-shopnav .mpe-shopnav__search input[type="search"]::placeholder { color: rgba(255, 255, 255, .85); }
.mpe-shopnav .mpe-shopnav__search .woocommerce-product-search:focus-within { background: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .35); }
.mpe-shopnav .mpe-shopnav__search .woocommerce-product-search:focus-within input[type="search"] { color: #000034; }
.mpe-shopnav .mpe-shopnav__search .woocommerce-product-search:focus-within input[type="search"]::placeholder { color: #6b7280; }
.mpe-shopnav .mpe-shopnav__search .woocommerce-product-search:focus-within button { color: var(--mpe-accent, #1f53f3); }
.mpe-shopnav .mpe-shopnav__search button:hover, .mpe-shopnav .mpe-shopnav__search button:focus-visible { background: transparent; }

/* Toutes les pages avec en-tête (catégories, Offres partenaires, Nouveau, Promos) : pas d'en-tête WooCommerce vide
   (trait en trop) et la même marge sous le titre (section.mpe-cathero : passe devant « section:last-of-type »). */
.mpe-cathero ~ .mpe-archive .mpe-archive__main > .woocommerce-products-header { display: none; }
.mpe-boutique-layout .ast-woocommerce-container > section.mpe-cathero { margin-bottom: 2.5rem; }
@media (max-width: 768px) {
	.mpe-boutique-layout .ast-woocommerce-container > section.mpe-cathero { margin-bottom: 1.75rem; }
}

/* Carrousel promos (page Boutique) : flèches pleines dans un grand rond blanc, centré dans l'espace entre deux visuels. */
/* Un seul comportement : rond blanc + flèche bleu nuit au repos ; au survol (et au clavier) le rond passe en bleu,
   flèche blanche. Après un clic, la flèche revient à l'état de repos (le thème Astra laissait un fond bleu au focus). */
.mpe-promos__nav,
.mpe-promos__nav:focus,
.mpe-promos__nav:active { width: 64px; height: 64px; color: #000034; background: #fff; box-shadow: none; transition: background-color .2s, color .2s; }
.mpe-promos__nav:hover,
.mpe-promos__nav:focus-visible { color: #fff; background: var(--mpe-accent); }
.mpe-promos__nav--prev { left: calc(50% - var(--mpe-slide-w) / 2 - var(--mpe-slide-gap, 16px) / 2 - 32px); }
.mpe-promos__nav--next { right: calc(50% - var(--mpe-slide-w) / 2 - var(--mpe-slide-gap, 16px) / 2 - 32px); }
/* Survol des flèches : on passe d'abord sur le visuel voisin, son bouton (« Voir les offres »…) s'allumait aussi.
   Tant que la souris est sur une flèche ou dans l'espace entre deux visuels, les boutons des visuels restent au repos. */
.mpe-promos:has(.mpe-promos__nav:hover) a.mpe-promos__card .mpe-promos__btn { background: var(--mpe-accent); transition: none; }

/* Cartes produit : prix simplifié (template-parts/boutique/extras.php) — prix à payer en grand, prix public barré
   pour les abonnés, pastille « … avec Fan+ » pour les autres. La grille complète reste sur la fiche produit. */
.woocommerce ul.products li.product .mpe-prixcarte { display: grid; justify-items: start; gap: 8px; margin-top: 4px; }
.mpe-prixcarte__votre { color: #FF00A3; font-size: 12px; font-weight: 700; line-height: 1.2; }
.mpe-prixcarte--membre .mpe-prixcarte__votre { color: #1F53F3; }
.woocommerce ul.products li.product .mpe-prixcarte__prix { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0; color: #000034; font-size: 22px; font-weight: 800; line-height: 1.15; }
.mpe-prixcarte__prix .woocommerce-Price-amount,
.mpe-prixcarte__prix .amount { color: inherit; font-weight: 800; }
.mpe-prixcarte .woocommerce-price-suffix { margin-left: 3px; font-size: .55em; font-weight: 700; } /* suffixe des cartes : « HT » (profil entreprise) seulement, plus de « TTC » (26/11, prix-carte.php) */
.mpe-tuiles__prix .woocommerce-price-suffix { display: inline-block; margin-left: 3px; font-size: .6em; font-weight: 700; text-decoration: none; } /* « TTC » dans les tuiles de la fiche (25/11) */
.mpe-prixcarte--fanplus .mpe-prixcarte__montant { color: #FF00A3; }
.mpe-prixcarte__from { font-size: 14px; font-weight: 600; color: #4a4a68; }
.mpe-prixcarte__public { color: #6b6f8a; font-size: 15px; font-weight: 500; }
.mpe-prixcarte__public .amount { font-weight: 500; }
/* prix WooCommerce sans remise par palier : promo (ancien prix barré) et fourchette */
.mpe-prixcarte__prix--wc del { order: 2; color: #6b6f8a; font-size: 15px; font-weight: 500; }
.mpe-prixcarte__prix--wc ins { text-decoration: none; }
.woocommerce ul.products li.product .mpe-prixcarte__fan {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin: 0;
	padding: 5px 12px;
	border-radius: 999px;
	background: #1F53F3;
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
}
.mpe-prixcarte__fan strong,
.mpe-prixcarte__fan .amount { color: #fff; font-weight: 800; }
/* Prix des cartes resserré : collé au titre, libellé « Votre prix … » collé au prix. */
.woocommerce ul.products li.product .astra-shop-summary-wrap > .mpe-extras:has(.mpe-prixcarte) { margin: 2px 0 0; }
.woocommerce ul.products li.product:has(.mpe-prixcarte) .woocommerce-loop-product__title { margin-bottom: 4px; }
.woocommerce ul.products li.product .mpe-prixcarte { gap: 6px; margin: 0; }
.woocommerce ul.products li.product .mpe-prixcarte__votre + .mpe-prixcarte__prix { margin-top: -5px; }
.woocommerce ul.products li.product .mpe-prixcarte__prix { line-height: 1.1; }
/* « À partir de » + prix Fan+ (visiteur) ; ligne de précision grise dessous (remplace la pastille bleue). */
.mpe-prixcarte:not(.mpe-prixcarte--membre):not(.mpe-prixcarte--fanplus) .mpe-prixcarte__votre { color: #4a4a68; font-weight: 600; }
.mpe-prixcarte:not(.mpe-prixcarte--membre):not(.mpe-prixcarte--fanplus) .mpe-prixcarte__votre + .mpe-prixcarte__prix .mpe-prixcarte__montant { color: #FF00A3; }
.woocommerce ul.products li.product .mpe-prixcarte__note { margin: -2px 0 0; color: #4a4a68; font-size: 13px; line-height: 1.4; }
.mpe-prixcarte__note .amount { color: inherit; font-weight: 700; }
/* 28/11 : prix public normal barré quand le prix public est en promo (cartes et tuiles de la fiche). */
.mpe-prixcarte__note .mpe-prixcarte__barre, .mpe-prixcarte__note .mpe-prixcarte__barre .amount { color: #8a8fa8; font-weight: 500; text-decoration: line-through; }
.mpe-tuiles__barre { display: block; margin-top: 3px; color: #8a8fa8; font-size: 13px; font-weight: 500; line-height: 1.2; text-decoration: line-through; }
.mpe-tuiles__barre .amount { color: inherit; font-weight: inherit; }
.woocommerce ul.products li.product .mpe-prixcarte__avec { color: #FF00A3; font-size: 14px; font-weight: 600; }
/* Même rendu visiteur / abonné : libellé gris, prix rose (Fan+) ou bleu (Membre), remise à droite. */
.woocommerce ul.products li.product .mpe-prixcarte .mpe-prixcarte__votre { color: #4a4a68; font-weight: 600; }
.woocommerce ul.products li.product .mpe-prixcarte--fanplus .mpe-prixcarte__montant,
.woocommerce ul.products li.product .mpe-prixcarte--fanplus .mpe-prixcarte__avec { color: #FF00A3; }
.woocommerce ul.products li.product .mpe-prixcarte--membre .mpe-prixcarte__montant,
.woocommerce ul.products li.product .mpe-prixcarte--membre .mpe-prixcarte__avec { color: #1F53F3; }

/* Fiche produit : bloc prix en haut (prix-carte.php, fiche) + titre et « Votre prix » sur la grille. */
.single-product .summary .mpe-prixcarte--fiche { display: grid; justify-items: start; gap: 4px; margin: 0 0 1rem; }
.mpe-prixcarte--fiche .mpe-prixcarte__votre { color: #4a4a68; font-size: 14px; font-weight: 600; }
.mpe-prixcarte--fiche .mpe-prixcarte__prix { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0; color: #000034; font-size: 32px; font-weight: 800; line-height: 1.1; }
.mpe-prixcarte--fiche .mpe-prixcarte__montant .amount { font-weight: 800; color: inherit; }
.mpe-prixcarte--fiche .mpe-prixcarte__montant .woocommerce-price-suffix { display: inline; margin-left: 4px; font-size: 15px; font-weight: 700; }
.mpe-prixcarte--fiche.mpe-prixcarte--fanplus .mpe-prixcarte__montant,
.mpe-prixcarte--fiche.mpe-prixcarte--fanplus .mpe-prixcarte__avec { color: #FF00A3; }
.mpe-prixcarte--fiche.mpe-prixcarte--membre .mpe-prixcarte__montant,
.mpe-prixcarte--fiche.mpe-prixcarte--membre .mpe-prixcarte__avec { color: #1F53F3; }
.mpe-prixcarte--fiche .mpe-prixcarte__avec { font-size: 16px; font-weight: 700; }
.mpe-prixcarte--fiche .mpe-prixcarte__from { font-size: 16px; font-weight: 600; color: #4a4a68; }
.single-product .summary .mpe-prixcarte--fiche .mpe-prixcarte__note { margin: 0; color: #4a4a68; font-size: 15px; }
.mpe-prixcarte--fiche .mpe-prixcarte__note .amount { font-weight: 700; color: inherit; }
.mpe-prixcarte--fiche .mpe-prixcarte__note .woocommerce-price-suffix { display: inline; margin-left: 2px; font-size: .85em; }
.single-product .summary .mpe-grille__titre { margin: 0 0 8px; color: #000034; font-size: 14px; font-weight: 700; }
.mpe-grille__votre { display: inline-block; margin-left: 4px; padding: 2px 8px; border-radius: 999px; background: #000034; color: #fff; font-size: 11px; font-weight: 700; line-height: 1.4; vertical-align: middle; }

/* Fiche produit : grille de détail homogène (octobre 2026) — mêmes libellés, mêmes pastilles de remise (bleu Membre,
   rose Fan+, comme le bloc prix du haut), ligne de « votre prix » ou « meilleur prix » cerclée de sa couleur. */
.single-product .summary .mpe-grille { --mpe-g-membre: #1F53F3; --mpe-g-fan: #FF00A3; gap: 6px; }
.single-product .summary .mpe-grille__row { align-items: center; min-height: 44px; padding: 8px 14px; border: 1.5px solid transparent; border-radius: 10px; background: #f1f3f9; }
.single-product .summary .mpe-grille__row dt { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; color: #000034; font-weight: 600; }
.single-product .summary .mpe-grille__row dd { color: #000034; font-weight: 600; }
.single-product .summary .mpe-grille__row dd .woocommerce-price-suffix { font-size: .8em; font-weight: 500; }
.single-product .summary .mpe-grille__pct,
.single-product .summary .mpe-grille__row--membre .mpe-grille__pct,
.single-product .summary .mpe-grille__row.is-upsell .mpe-grille__pct { display: inline-block; margin: 0; padding: 2px 8px; border-radius: 999px; background: rgba(31, 83, 243, .12); color: var(--mpe-g-membre); font-size: 12px; font-weight: 700; line-height: 1.4; opacity: 1; }
.single-product .summary .mpe-grille__row--fanplus .mpe-grille__pct { background: rgba(255, 0, 163, .12) !important; color: var(--mpe-g-fan) !important; }
.single-product .summary .mpe-grille__votre,
.single-product .summary .mpe-grille__badge { margin: 0; padding: 2px 8px; border: 0; border-radius: 999px; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0; line-height: 1.4; text-transform: none; }
.single-product .summary .mpe-grille__votre { background: #000034; }
.single-product .summary .mpe-grille__row--membre .mpe-grille__votre { background: var(--mpe-g-membre); }
.single-product .summary .mpe-grille__row--fanplus .mpe-grille__votre,
.single-product .summary .mpe-grille__badge { background: var(--mpe-g-fan); }
/* Ligne mise en avant : votre prix (abonné) ou meilleur prix (Fan+, pour les autres) */
.single-product .summary .mpe-grille__row.is-current:not(.mpe-grille__row--none),
.single-product .summary .mpe-grille__row.is-upsell { background: #fff; }
.single-product .summary .mpe-grille__row--membre.is-current { border-color: var(--mpe-g-membre); }
.single-product .summary .mpe-grille__row--fanplus.is-current,
.single-product .summary .mpe-grille__row--fanplus.is-upsell { border-color: var(--mpe-g-fan); }
.single-product .summary .mpe-grille__row.is-current:not(.mpe-grille__row--none) dd,
.single-product .summary .mpe-grille__row.is-upsell dd { font-weight: 800; }
.single-product .summary .mpe-grille__row--membre.is-current dd { color: var(--mpe-g-membre); }
.single-product .summary .mpe-grille__row--fanplus.is-current dd,
.single-product .summary .mpe-grille__row--fanplus.is-upsell dd,
.single-product .summary .mpe-grille__row.is-upsell dt { color: var(--mpe-g-fan); }
.single-product .summary .mpe-grille__row.is-upsell dt { color: #000034; }
.single-product .summary .mpe-grille__row.is-upsell:has(.mpe-grille__rowlink:hover),
.single-product .summary .mpe-grille__row.is-upsell:has(.mpe-grille__rowlink:focus-visible) { background: #fff0f9; }
.single-product .summary .mpe-grille .mpe-info__btn { color: #6b6f8a; }
/* Moins de rose sur la ligne mise en avant : seuls le contour et la pastille de remise gardent la couleur du palier ;
   pastille « Votre prix » / « Meilleur prix » et montant en bleu nuit. */
.single-product .summary .mpe-grille__row .mpe-grille__votre,
.single-product .summary .mpe-grille__row .mpe-grille__badge { background: #000034; }
.single-product .summary .mpe-grille__row.is-current dd,
.single-product .summary .mpe-grille__row.is-upsell dd { color: #000034; }
/* Prix des cartes et du haut de fiche : montant en bleu nuit, « avec Fan+ / Membre (-x %) » en bleu (tous paliers). */
.woocommerce ul.products li.product .mpe-prixcarte .mpe-prixcarte__montant,
.single-product .summary .mpe-prixcarte--fiche .mpe-prixcarte__montant { color: #000034 !important; }
.woocommerce ul.products li.product .mpe-prixcarte .mpe-prixcarte__avec,
.single-product .summary .mpe-prixcarte--fiche .mpe-prixcarte__avec { color: #1F53F3 !important; }
/* Inversion : montant en bleu, mention « avec Fan+ / votre prix … » en bleu nuit, plus petite. */
.woocommerce ul.products li.product .mpe-prixcarte .mpe-prixcarte__montant,
.single-product .summary .mpe-prixcarte--fiche .mpe-prixcarte__montant,
.mpe-addmodal__reco-prix .mpe-prixcarte .mpe-prixcarte__montant { color: #1F53F3 !important; }
.woocommerce ul.products li.product .mpe-prixcarte .mpe-prixcarte__avec,
.single-product .summary .mpe-prixcarte--fiche .mpe-prixcarte__avec,
.mpe-addmodal__reco-prix .mpe-prixcarte .mpe-prixcarte__avec { color: #000034 !important; font-weight: 500; }
.mpe-addmodal__reco-prix .mpe-prixcarte .mpe-prixcarte__votre { color: #4a4a68; } /* pop-in : comme les cartes (25/11) */
.woocommerce ul.products li.product .mpe-prixcarte .mpe-prixcarte__avec { font-size: 12.5px; }
.single-product .summary .mpe-prixcarte--fiche .mpe-prixcarte__avec { font-size: 14px; }
/* Mention collée au prix */
.woocommerce ul.products li.product .mpe-prixcarte .mpe-prixcarte__prix { column-gap: 6px; }
.single-product .summary .mpe-prixcarte--fiche .mpe-prixcarte__prix { column-gap: 8px; }
/* Pas d'interlettrage hérité (0,48 px) sur les mentions du prix */
.mpe-prixcarte .mpe-prixcarte__avec,
.mpe-prixcarte .mpe-prixcarte__note,
.mpe-prixcarte .mpe-prixcarte__votre,
.mpe-prixcarte .mpe-prixcarte__prix { letter-spacing: normal; } /* hérité du réglage « p » du thème (0,03 rem), pas voulu ici */

/* Fiche produit : tuiles de prix Fan+ / Membre / Public (template-parts/boutique/extras.php). */
.single-product .summary .mpe-tuiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 480px; margin: 0 0 4px; padding: 0; list-style: none; }
.mpe-tuiles__item { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; margin: 0; padding: 14px 16px 16px; border: 2px solid transparent; border-radius: 14px; background: #f1f3f9; color: #000034; }
.mpe-tuiles__item.is-vedette { border-color: #1F53F3; background: #fff; color: #1F53F3; }
.mpe-tuiles__palier { font-size: 14px; font-weight: 600; line-height: 1.2; letter-spacing: normal; }
.mpe-tuiles__prix { font-size: 20px; font-weight: 800; line-height: 1.15; letter-spacing: normal; white-space: nowrap; }
.mpe-tuiles__prix .amount { color: inherit; font-weight: inherit; }
.mpe-tuiles__from { margin-right: 3px; font-size: 13px; font-weight: 600; }
.mpe-tuiles__pct { display: inline-block; padding: 5px 14px; border-radius: 999px; background: #000034; color: #fff; font-size: 14px; font-weight: 700; line-height: 1.2; letter-spacing: normal; }
.mpe-tuiles__item--fanplus .mpe-tuiles__pct { background: #1F53F3; }
/* 28/11 : cartes, remise en pastille après « prix Fan+ » / « votre prix Membre » (mêmes couleurs que les tuiles). */
.mpe-prixcarte__pct { display: inline-block; align-self: baseline; padding: 3px 9px; border-radius: 999px; background: #000034; color: #fff; font-size: 12px; font-weight: 700; line-height: 1.2; letter-spacing: normal; white-space: nowrap; }
.mpe-prixcarte__pct--fanplus { background: #1F53F3; }
/* 29/11 : texte de la pastille un peu trop haut (marges haut / bas visuellement inégales) : 1 px de plus en haut, 1 px de moins en bas. */
.mpe-prixcarte__pct { padding: 4px 9px 2px; }
.mpe-prixcarte__pct.mpe-prixcarte__pct--fanplus { padding: 2.2px 9px 3.8px; } /* 29/11 : texte remonté, centré dans la gélule bleue */
@media (max-width: 400px) {
	.single-product .summary .mpe-tuiles { gap: 6px; }
	.mpe-tuiles__item { padding: 12px 10px 12px; }
	.mpe-tuiles__prix { font-size: 17px; }
	.mpe-tuiles__pct { padding: 4px 10px; font-size: 12px; }
}
.single-product .summary .mpe-grille__login { letter-spacing: normal; } /* pas l’interlettrage des « p » du thème */

/* Tuiles Membre / Fan+ (autre palier que le sien) : bulle au clic (boutique.js, [data-mpe-info]). */
.mpe-tuiles .mpe-tuiles__item.mpe-info { display: flex; margin: 0; vertical-align: top; cursor: pointer; transition: background-color .2s, border-color .2s; }
.mpe-tuiles .mpe-tuiles__item.mpe-info:hover { border-color: rgba(31, 83, 243, .35); }
.mpe-tuiles .mpe-tuiles__btn { position: absolute; inset: -2px; z-index: 1; width: auto; height: auto; margin: 0; padding: 0; border: 0; border-radius: 14px; background: transparent; cursor: pointer; }
.mpe-tuiles .mpe-tuiles__btn:hover,
.mpe-tuiles .mpe-tuiles__btn:focus { background: transparent; }
.mpe-tuiles .mpe-tuiles__btn:focus-visible { outline: 2px solid #1F53F3; outline-offset: 2px; }
.mpe-tuiles .mpe-info__bubble { left: 0; z-index: 30; color: #334155; font-size: 13.5px; }
.mpe-tuiles .mpe-info__bubble::after { left: 24px; }
/* au clic seulement (pas au survol ni au focus) */
.mpe-tuiles .mpe-tuiles__item.mpe-info:not(.is-open) .mpe-info__bubble { display: none !important; }
.mpe-tuiles .mpe-tuiles__item.mpe-info.is-open .mpe-info__bubble { display: block; opacity: 1; visibility: visible; transform: none; }
.mpe-tuiles .mpe-tuiles__item.mpe-info.is-gauche .mpe-info__bubble { right: 0; left: auto; }
.mpe-tuiles .mpe-tuiles__item.mpe-info.is-gauche .mpe-info__bubble::after { right: 24px; left: auto; }
/* Tuiles plus larges (toute la colonne), pastille de remise en haut à droite. */
.single-product .summary .mpe-tuiles { max-width: 100%; }
.mpe-tuiles__item { padding: 14px 16px 16px; }
.mpe-tuiles__item .mpe-tuiles__palier { padding-right: 58px; }
.mpe-tuiles__item .mpe-tuiles__pct { position: absolute; top: 12px; right: 12px; padding: 3px 9px; font-size: 12.5px; }
.mpe-tuiles__item .mpe-tuiles__prix { font-size: 22px; }
@media (max-width: 544px) {
	.mpe-tuiles__item .mpe-tuiles__palier { padding-right: 0; }
	.mpe-tuiles__item .mpe-tuiles__pct { position: static; }
}

/* Cartes catégories : image collée aux bords de la carte (un seul arrondi, celui de la carte). */
.mpe-categories__item a { overflow: hidden; padding: 0; }
.mpe-categories__media { border-radius: 0; }
.mpe-categories__corps { padding: 16px 18px 18px 20px; }
.mpe-categories__item--offres .mpe-categories__offres-kicker { padding: 20px 20px 0; }
.mpe-categories__item--offres .mpe-categories__offres-abeille { margin-left: 20px; }

/* Bulle des tuiles : abeille à gauche */
.mpe-tuiles .mpe-info__bubble { padding-left: 62px; max-width: min(340px, 80vw); }
.mpe-tuiles__abeille { position: absolute; top: 16px; left: 16px; width: 32px; height: 28px; background: #1F53F3; -webkit-mask: url(../img/picto-abeille.svg) center / contain no-repeat; mask: url(../img/picto-abeille.svg) center / contain no-repeat; }
.mpe-tuiles__item--fanplus .mpe-tuiles__abeille { background: #FF00A3; }
/* Abeille de la bulle aux couleurs des pastilles : bleu nuit (Membre), bleu (Fan+). */
.mpe-tuiles__item--membre .mpe-tuiles__abeille { background: #000034; }
.mpe-tuiles__item--fanplus .mpe-tuiles__abeille { background: #1F53F3; }

/* Abonné : prix public barré (gris), autre palier atténué ; sa tuile reste mise en avant. */
.mpe-tuiles--abonne .mpe-tuiles__item--none .mpe-tuiles__palier,
.mpe-tuiles--abonne .mpe-tuiles__item:not(.is-vedette) .mpe-tuiles__palier,
.mpe-tuiles--abonne .mpe-tuiles__item:not(.is-vedette) .mpe-tuiles__prix { color: #8a8fa8; }
.mpe-tuiles--abonne .mpe-tuiles__item--none .mpe-tuiles__prix { font-weight: 600; text-decoration: line-through; text-decoration-thickness: 1.5px; }
.mpe-tuiles--abonne .mpe-tuiles__item:not(.is-vedette):not(.mpe-tuiles__item--none) .mpe-tuiles__pct { opacity: .45; }
/* Atténuation un peu moins forte */
.mpe-tuiles--abonne .mpe-tuiles__item--none .mpe-tuiles__palier,
.mpe-tuiles--abonne .mpe-tuiles__item:not(.is-vedette) .mpe-tuiles__palier,
.mpe-tuiles--abonne .mpe-tuiles__item:not(.is-vedette) .mpe-tuiles__prix { color: #5f6482; }
.mpe-tuiles--abonne .mpe-tuiles__item:not(.is-vedette):not(.mpe-tuiles__item--none) .mpe-tuiles__pct { opacity: .65; }
/* Visiteur : prix public = son prix, mais neutre (blanc, contour gris foncé, bleu nuit) ; tuile Fan+ légèrement teintée
   pour donner envie. Le bleu clair reste la couleur Fan+. */
.mpe-tuiles:not(.mpe-tuiles--abonne) .mpe-tuiles__item--none.is-vedette { border-color: #b9bdcf; background: #fff; color: #000034; }
.mpe-tuiles:not(.mpe-tuiles--abonne) .mpe-tuiles__item--fanplus { background: #e8eeff; }
.mpe-tuiles:not(.mpe-tuiles--abonne) .mpe-tuiles__item--fanplus.mpe-info:hover { border-color: rgba(31, 83, 243, .45); }

/* « ✓ Votre prix » sous le montant de la tuile appliquée */
.mpe-tuiles__votre { display: inline-flex; align-items: center; gap: 4px; margin-top: 2px; font-size: 13px; font-weight: 700; line-height: 1.2; letter-spacing: normal; color: inherit; }
/* « ✓ Votre prix » posé sur le contour de la tuile (pas de hauteur en plus) */
.mpe-tuiles__item .mpe-tuiles__votre { position: absolute; top: -10px; left: 12px; z-index: 2; margin: 0; padding: 2px 8px; border: 1.5px solid currentColor; border-radius: 999px; background: #fff; font-size: 11.5px; }
.mpe-tuiles:not(.mpe-tuiles--abonne) .mpe-tuiles__item--none .mpe-tuiles__votre { border-color: #b9bdcf; }
.single-product .summary .mpe-tuiles { margin-top: 14px; } /* place pour l'étiquette */
/* Tuiles un peu plus hautes, contour plus fin */
.mpe-tuiles__item { padding-top: 20px; padding-bottom: 20px; border-width: 1.5px; }
.mpe-tuiles__item .mpe-tuiles__pct { top: 16px; }
.mpe-tuiles__item .mpe-tuiles__votre { border-width: 1px; }
/* Plus d'air entre le titre du produit et les tuiles (les marges se fondaient : padding) */
.single-product .summary .mpe-extras:has(> .mpe-tuiles) { margin-top: 0; padding-top: 24px; }
.single-product .summary .mpe-extras > .mpe-tuiles { margin-top: 0; }

/* « Votre prix » : coche ronde pleine en bas à droite de la tuile appliquée (comme une carte sélectionnée),
   fond légèrement teinté ; plus d'étiquette sur le contour. */
.single-product .summary .mpe-extras:has(> .mpe-tuiles) { padding-top: 14px; }
.mpe-tuiles__item .mpe-tuiles__votre { position: absolute; top: auto; right: 14px; bottom: 14px; left: auto; display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: #1F53F3; color: #fff; }
.mpe-tuiles__item--membre .mpe-tuiles__votre { background: #000034; }
.mpe-tuiles:not(.mpe-tuiles--abonne) .mpe-tuiles__item--none .mpe-tuiles__votre { background: #000034; }
.mpe-tuiles--abonne .mpe-tuiles__item.is-vedette { background: #f3f6ff; }

/* Coche ronde devant le libellé de la tuile appliquée (pas en coin : la pastille de remise y est déjà) */
.mpe-tuiles__item .mpe-tuiles__palier { display: inline-flex; align-items: center; gap: 6px; }
.mpe-tuiles__item .mpe-tuiles__votre { position: static; flex: none; width: 18px; height: 18px; }
.mpe-tuiles__item .mpe-tuiles__votre svg { width: 11px; height: 11px; }
/* Coche seule, sans rond plein, dans la couleur de la tuile */
.mpe-tuiles__item .mpe-tuiles__votre,
.mpe-tuiles__item--membre .mpe-tuiles__votre,
.mpe-tuiles:not(.mpe-tuiles--abonne) .mpe-tuiles__item--none .mpe-tuiles__votre { width: auto; height: auto; background: none; color: inherit; }
.mpe-tuiles__item .mpe-tuiles__votre svg { width: 14px; height: 14px; }
/* Mobile (la pastille de remise passe sous le prix) : coche en haut à droite, le libellé garde toute la largeur. */
@media (max-width: 544px) {
	.mpe-tuiles__item .mpe-tuiles__votre { position: absolute; top: 10px; right: 10px; bottom: auto; left: auto; }
	.mpe-tuiles__item.is-vedette .mpe-tuiles__palier { padding-right: 16px; }
}

/* « Vous économisez … grâce à votre abonnement » sous les tuiles (abonné) */
.single-product .summary .mpe-tuiles__eco { margin: 12px 0 0; color: #000034; font-size: 14px; line-height: 1.4; letter-spacing: normal; }
.mpe-tuiles__eco strong { color: #1F53F3; font-weight: 800; white-space: nowrap; }
/* Mention sous les tuiles (visiteur / connecté / Membre) : même place et même typo que « Vous économisez … » */
.single-product .summary .mpe-extras:has(> .mpe-tuiles) .mpe-grille__login { display: block; margin: 12px 0 0; color: #000034; font-size: 14px; line-height: 1.4; letter-spacing: normal; }
.single-product .summary .mpe-extras:has(> .mpe-tuiles) .mpe-grille__login > span { color: inherit; }
.single-product .summary .mpe-extras:has(> .mpe-tuiles) .mpe-grille__login a { margin-left: 4px; color: #1F53F3; font-weight: 800; }

/* Visiteur : « Économisez … avec un abonnement Fan+ » puis « Déjà Membre ou Fan+ ? Connectez-vous » juste dessous */
.single-product .summary .mpe-tuiles__eco a { margin-left: 4px; color: #1F53F3; font-weight: 800; text-decoration: none; }
.single-product .summary .mpe-tuiles__eco a:hover { text-decoration: underline; }
.single-product .summary .mpe-tuiles__eco + .mpe-grille__login { margin-top: 4px !important; }
.single-product .summary .mpe-extras .mpe-tuiles__eco ~ .mpe-code-promo { margin-top: 16px; } /* 28/11 : code promo détaché de « Économisez… » */

/* Tailles (fiche produit) : boutons plus bas ; au-delà de 6 tailles, grille régulière (6 par ligne, 4 en mobile). */
body.single-product div.product form.cart .ast-single-variation { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding-top: 0; padding-bottom: 0; }
body.single-product div.product form.cart .ast-variation-button-group:has(> .ast-single-variation:nth-child(7)) { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
body.single-product div.product form.cart .ast-variation-button-group:has(> .ast-single-variation:nth-child(7)) .ast-single-variation { width: auto; min-width: 0; margin: 0; padding-inline: 4px; }
@media (max-width: 544px) {
	body.single-product div.product form.cart .ast-variation-button-group:has(> .ast-single-variation:nth-child(7)) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Guide des tailles : lien à droite du libellé de la première taille, image dans une fenêtre */
body.single-product div.product form.variations_form { position: relative; }
.mpe-guide-tailles { position: absolute; top: 0; right: 0; z-index: 1; display: inline-flex; align-items: center; gap: 6px; min-height: 0; margin: 0; padding: 0; border: 0; background: none; color: #1F53F3; font-size: 14px; font-weight: 700; letter-spacing: normal; cursor: pointer; }
/* 28/11 : survol plus doux : texte bleu un peu plus foncé, soulignement fin et décalé, picto inchangé. */
.mpe-guide-tailles:hover, .mpe-guide-tailles:focus-visible,
a.mpe-guide-tailles:hover, a.mpe-guide-tailles:focus-visible { background: none !important; color: #1438C4 !important; text-decoration: underline !important; text-decoration-thickness: 1.5px !important; text-underline-offset: 4px; }
.mpe-guide-tailles:focus:not(:focus-visible) { background: none; color: #1F53F3; text-decoration: none; }
.mpe-guide-tailles svg { flex: none; }
.mpe-guide-tailles, .mpe-guide-tailles:hover, .mpe-guide-tailles:focus { box-shadow: none !important; } /* ombre des boutons du thème : ici c'est un lien */
.mpe-guide-tailles__fenetre { width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 28px; border: 0; border-radius: 18px; box-shadow: 0 24px 60px rgba(0, 0, 52, .3); }
.mpe-guide-tailles__fenetre::backdrop { background: rgba(0, 0, 52, .55); }
.mpe-guide-tailles__fenetre img { display: block; width: 100%; height: auto; }
.mpe-guide-tailles__titre { margin: 0 40px 16px 0; color: #000034; font-size: 20px; font-weight: 800; }
.mpe-guide-tailles__fermer { position: absolute; top: 18px; right: 18px; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: #f1f3f9; color: #000034; cursor: pointer; }
.mpe-guide-tailles__fermer:hover, .mpe-guide-tailles__fermer:focus { background: #000034; color: #fff; }

/* Fiche d'une offre partenaire : 3 tailles seulement (surtitre 13 px, accroche 16 px, tout le reste 14 px),
   sans interlettrage hérité des « p » du thème. */
.single-product .summary .mpe-partner { font-size: 13px; }
.single-product .summary:has(.mpe-offre-infos) .woocommerce-product-details__short-description,
.single-product .summary:has(.mpe-offre-infos) .woocommerce-product-details__short-description p { font-size: 16px; letter-spacing: normal; }
.single-product .summary .mpe-offre-infos,
.single-product .summary .mpe-offre-infos *,
.single-product .summary:has(.mpe-offre-infos) .mpe-extras,
.single-product .summary:has(.mpe-offre-infos) .mpe-extras *:not(.mpe-info__bubble):not(.mpe-info__bubble *), /* 28/11 : bulles des tuiles comme sur les produits */
.single-product .summary .mpe-offre-cta__note { font-size: 14px; letter-spacing: normal; }
.single-product .summary .mpe-offre-infos p { line-height: 1.5; }
/* Visiteur : tuile Membre atténuée comme pour un abonné ; tuile Fan+ seulement adoucie (elle reste l'offre mise en avant). */
.mpe-tuiles:not(.mpe-tuiles--abonne) .mpe-tuiles__item--membre .mpe-tuiles__palier,
.mpe-tuiles:not(.mpe-tuiles--abonne) .mpe-tuiles__item--membre .mpe-tuiles__prix { color: #5f6482; }
.mpe-tuiles:not(.mpe-tuiles--abonne) .mpe-tuiles__item--membre .mpe-tuiles__pct { opacity: .65; }
.mpe-tuiles:not(.mpe-tuiles--abonne) .mpe-tuiles__item--fanplus .mpe-tuiles__palier,
.mpe-tuiles:not(.mpe-tuiles--abonne) .mpe-tuiles__item--fanplus .mpe-tuiles__prix { color: #3a4170; }
/* 25/11 : plus d'atténuation des tuiles non actives (visiteur comme abonné) : textes en bleu nuit, pastilles pleines.
   Prix public non barré depuis le 27/11. */
.mpe-tuiles .mpe-tuiles__item:not(.is-vedette) .mpe-tuiles__palier,
.mpe-tuiles .mpe-tuiles__item:not(.is-vedette) .mpe-tuiles__prix { color: #000034; }
.mpe-tuiles .mpe-tuiles__item:not(.is-vedette) .mpe-tuiles__pct { opacity: 1; }
/* 27/11 : abonné : prix public non barré, pastille de l'autre palier pleine (bleu nuit pour Membre) ;
   sélecteurs aussi précis que les règles d'atténuation d'origine pour les remplacer. */
.mpe-tuiles--abonne .mpe-tuiles__item--none .mpe-tuiles__prix { text-decoration: none; }
.mpe-tuiles--abonne .mpe-tuiles__item:not(.is-vedette):not(.mpe-tuiles__item--none) .mpe-tuiles__pct { opacity: 1; }
/* 25/11 : « TTC » de retour après le prix sur la fiche produit (masquage du commit e722395f retiré). */
/* Fiche produit : pas de filet sous le choix de taille (le bloc « Effacer » qu'il séparait a disparu). */
.single-product .summary form.variations_form table.variations { border-bottom: 0 !important; margin-bottom: 8px; }
/* Fiche produit variable : place réservée à la ligne de stock + loader pendant la vérification de la variante. */
.single-product .summary form.variations_form .single_variation_wrap .woocommerce-variation { min-height: 26px; }
.single-product .summary form.variations_form:not(.mpe-var-pret) .single_variation_wrap .woocommerce-variation { position: relative; min-height: 42px; }
.single-product .summary form.variations_form:not(.mpe-var-pret) .single_variation_wrap .woocommerce-variation > * { visibility: hidden; }
.single-product .summary form.variations_form:not(.mpe-var-pret) .single_variation_wrap .woocommerce-variation::before {
	content: ""; position: absolute; left: 0; top: 6px; width: 96px; height: 14px; border-radius: 999px;
	background: linear-gradient(90deg, #eceef4 0%, #f7f8fb 50%, #eceef4 100%); background-size: 200% 100%;
	animation: mpe-var-shimmer 1.1s linear infinite;
}
@keyframes mpe-var-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
/* Bulle des tuiles Membre / Fan+ : version enrichie (pastille abeille, croix de fermeture, bouton). */
.mpe-tuiles .mpe-info__bubble { width: min(340px, 82vw); max-width: none; padding: 18px 44px 18px 72px; border: 0; border-radius: 14px; color: #475569; font-size: 13.5px; line-height: 1.5; box-shadow: 0 18px 44px -12px rgba(0, 0, 52, .32), 0 0 0 1px rgba(0, 0, 52, .06); }
.mpe-tuiles .mpe-info__bubble::after { border-color: transparent; box-shadow: 2px 2px 2px -1px rgba(0, 0, 52, .06); }
.mpe-tuiles__icone { position: absolute; top: 18px; left: 18px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: #000034; }
.mpe-tuiles__item--fanplus .mpe-tuiles__icone { background: #1F53F3; }
.mpe-tuiles .mpe-tuiles__icone .mpe-tuiles__abeille { position: static; width: 22px; height: 19px; background: #fff !important; }
.mpe-tuiles .mpe-info__titre { margin: 1px 0 4px; color: #000034; font-size: 15px; font-weight: 800; }
.mpe-tuiles .mpe-info__bubble a.mpe-info__cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 8px 14px; border-radius: 999px; background: #1F53F3; color: #fff; font-size: 13px; font-weight: 700; line-height: 1.2; text-decoration: none; transition: background-color .15s; }
.mpe-tuiles .mpe-info__bubble a.mpe-info__cta:hover { background: #000034; color: #fff; }
.mpe-tuiles .mpe-info__fermer { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #6b6f8a; cursor: pointer; transition: background-color .15s, color .15s; }
.mpe-tuiles .mpe-info__fermer:hover, .mpe-tuiles .mpe-info__fermer:focus-visible { background: #F2F3F7; color: #000034; }
/* Listes de produits : nombre de produits + tri, en haut à droite de la grille. */
.mpe-tri { display: flex; align-items: center; justify-content: flex-end; gap: 20px; margin: 0 0 20px; }
.mpe-tri__nb { margin: 0 !important; font-size: 14px; color: #6b6f8a; letter-spacing: normal; }
form.mpe-tri__menu { float: none; margin: 0 !important; }
.mpe-tri__menu select.orderby {
	height: 38px; padding: 0 34px 0 14px; border: 1px solid #dfe3ee; border-radius: 999px;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%23000034' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 12px center / 14px no-repeat;
	-webkit-appearance: none; appearance: none; color: #000034; font-size: 14px; font-weight: 600; cursor: pointer;
}
.mpe-tri__menu select.orderby:hover, .mpe-tri__menu select.orderby:focus-visible { border-color: #1F53F3; outline: none; }
@media (max-width: 544px) { .mpe-tri { justify-content: space-between; } }
/* Mobile : tuiles de prix plus compactes (les montants à 6 chiffres dépassaient du cadre). */
@media (max-width: 544px) {
	.mpe-tuiles .mpe-tuiles__item { padding: 12px 10px !important; }
	.mpe-tuiles .mpe-tuiles__prix { font-size: 18px !important; white-space: nowrap; }
	.mpe-tuiles .mpe-tuiles__palier { font-size: 13px; }
}


/* Recherche de la boutique : pas de fond bleu clair de Chrome quand il remplit le champ automatiquement. */
.mpe-shopnav__search input[type="search"]:-webkit-autofill,
.mpe-shopnav__search input[type="search"]:-webkit-autofill:hover,
.mpe-shopnav__search input[type="search"]:-webkit-autofill:focus {
	-webkit-box-shadow: 0 0 0 1000px #fff inset !important;
	box-shadow: 0 0 0 1000px #fff inset !important;
	-webkit-text-fill-color: var(--mpe-text, #000034);
	caret-color: var(--mpe-text, #000034);
	transition: background-color 9999s ease-out 0s;
}
.mpe-shopnav__search input[type="search"]:autofill { background-color: #fff !important; }


/* Strate « Boutique » de l'accueil : « Explorer la boutique → » en simple lien à droite du titre (sur sa ligne de base),
   comme « Toutes les actualités » et « Toutes les offres partenaires ». Le bloc texte est « déplié » dans la grille
   pour que le lien partage la ligne du titre. */
.mpe-home-shop__head { grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; row-gap: 0; }
.mpe-home-shop__head > div { display: contents; }
.mpe-home-shop__head .mpe-home-shop__kicker { grid-column: 1 / -1; }
.mpe-home-shop__head .mpe-home-shop__title { grid-column: 1; grid-row: 2; }
.mpe-home-shop__head .mpe-home-shop__text { grid-column: 1 / -1; grid-row: 3; max-width: 820px; }
.mpe-home-shop__head .mpe-home-shop__btn {
	grid-column: 2;
	grid-row: 2;
	gap: 6px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: #1F53F3;
	font-size: 16px;
}
.mpe-home-shop__head .mpe-home-shop__btn svg { width: 16px; height: 16px; }
.mpe-home-shop__head .mpe-home-shop__btn:hover,
.mpe-home-shop__head .mpe-home-shop__btn:focus-visible { background: transparent; color: #1F53F3; text-decoration: underline !important; text-underline-offset: 3px; }
@media (max-width: 921px) {
	.mpe-home-shop__head { grid-template-columns: minmax(0, 1fr) auto; }
	.mpe-home-shop__head .mpe-home-shop__btn { justify-self: end; margin: 0; }
}
@media (max-width: 600px) {
	/* Petit écran : le lien passe sous le texte, aligné à gauche. */
	.mpe-home-shop__head .mpe-home-shop__title { grid-column: 1 / -1; }
	.mpe-home-shop__head .mpe-home-shop__btn { grid-column: 1; grid-row: 4; justify-self: start; margin-top: 12px; }
}

/* [mpe_offres_partenaires] juste avant le bandeau « Partenaires » (page Offres) : ni marge basse de la section (48 px)
   ni espaceur de 50 px entre les deux (≈ 150 px → 50 px, comme sur les fiches partenaires). */
.mpe-offres-shortcode .mpe-section:last-child { margin-bottom: 0; }
.entry-content .mpe-offres-shortcode + .wp-block-spacer:has(+ .mpe-partenaires-bandeau) { display: none; }
/* Au-dessus : pas d'espaceur de 50 px juste avant la strate (≈ 100 px → 50 px sous les onglets des offres). */
.entry-content .wp-block-spacer:has(+ .mpe-offres-shortcode) { display: none; }

/* Page Boutique : un peu plus d'air au-dessus de la strate « Offres partenaires » (48 → 64 px). */
.mpe-boutique-landing .mpe-selection--partenaires { padding-top: 16px; } /* padding : une marge fusionnerait avec celle de la strate précédente */

/* Carrousel de la page Boutique : pas de puces sous les bannières (flèches et balayage suffisent). */
.mpe-promos .mpe-promos__dots { display: none !important; }

/* Carrousel de la page Boutique (ordinateur) : bannières plus larges (1 260 px) et moins hautes (3,6 : 1), 10 px entre elles,
   flèches écartées vers les bords de l'écran, sur les bannières voisines. */
@media (min-width: 769px) {
	.mpe-promos { --mpe-slide-w: min(1260px, 88vw); --mpe-slide-gap: 10px; }
	.mpe-boutique-landing .mpe-hero.mpe-hero--bandeau { margin-bottom: 12px !important; } /* bandeau rose → bannières : 20 → 12 px */
	.mpe-promos__img,
	.mpe-promos__card { aspect-ratio: 3.6 / 1; }
	/* Visuel avec texte intégré (souvent au format ~ 2,5:1) : recadrage un peu au-dessus du centre, pour garder le texte. */
	.mpe-promos__slide--complet .mpe-promos__img { object-position: 50% 40%; }
	.mpe-promos__nav--prev { left: max(16px, calc(50% - var(--mpe-slide-w) / 2 - 120px)); }
	.mpe-promos__nav--next { right: max(16px, calc(50% - var(--mpe-slide-w) / 2 - 120px)); }
}

/* Carrousel de la page Boutique : bouton pause / lecture dans le coin haut droit de la bannière affichée (ordinateur) ;
   sur mobile, flèches + pause centrées sous le carrousel (accessibilité, audit du 26/11/2026). Bannières voisines inertes : curseur « main » pour
   indiquer qu'un clic les amène au centre. */
.mpe-promos__controles {
	position: absolute;
	top: 12px;
	right: calc(50% - var(--mpe-slide-w) / 2 + 12px);
	z-index: 3;
	display: flex;
	gap: 6px;
}
.mpe-promos .mpe-promos__ctrl {
	display: inline-grid;
	place-items: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, .92);
	color: #000034;
	box-shadow: 0 1px 6px rgba(0, 0, 52, .2);
	cursor: pointer;
	transition: background-color .2s, color .2s;
}
.mpe-promos .mpe-promos__ctrl:is(:hover, :focus-visible) { background: var(--mpe-accent); color: #fff; }
.mpe-promos .mpe-promos__ctrl:focus-visible { outline: 3px solid #000034; outline-offset: 2px; }
.mpe-promos__ico-lecture,
.mpe-promos__pause.is-lecture .mpe-promos__ico-pause { display: none; }
.mpe-promos__pause.is-lecture .mpe-promos__ico-lecture { display: block; }
.mpe-promos__ctrl--mobile { display: none !important; }
.mpe-promos.is-ready .mpe-promos__slide[inert] { cursor: pointer; }
.mpe-promos__viewport { position: relative; }
@media (max-width: 768px) {
	/* Mobile : les bannières n'ont pas toutes la même hauteur → commandes centrées sous le carrousel. */
	.mpe-promos { display: flex; flex-direction: column; }
	.mpe-promos__controles { position: static; order: 2; justify-content: center; gap: 10px; margin-top: 12px; }
	.mpe-promos .mpe-promos__ctrl { width: 40px; height: 40px; background: #F2F3F7; box-shadow: none; }
	.mpe-promos__ctrl--mobile { display: inline-grid !important; }
}

/* Grande bannière image (promo « Emplacement : grande bannière ») à la place de la strate « Offre partenaire » :
   visuel complet sur la largeur du contenu, coins arrondis, léger zoom au survol. */
.mpe-banniere { overflow: hidden; border-radius: 16px; }
.mpe-banniere__lien { display: block; }
.mpe-banniere__img,
.mpe-banniere picture { display: block; width: 100%; height: auto; }
.mpe-banniere__img { transition: transform .5s ease; }
.mpe-banniere__lien:hover .mpe-banniere__img { transform: scale(1.015); }
.mpe-banniere__lien:focus-visible { outline: 3px solid var(--mpe-accent); outline-offset: 3px; }


/* Tuiles de prix : même fond gris clair partout (comme le bloc « Livraison offerte… »), quel que soit le palier ;
   la tuile du prix appliqué garde seulement son contour. */
.mpe-tuiles .mpe-tuiles__item,
.mpe-tuiles .mpe-tuiles__item.is-vedette,
.mpe-tuiles--abonne .mpe-tuiles__item.is-vedette,
.mpe-tuiles:not(.mpe-tuiles--abonne) .mpe-tuiles__item--fanplus,
.mpe-tuiles:not(.mpe-tuiles--abonne) .mpe-tuiles__item--none.is-vedette { background: #F2F3F7; }
/* Visiteur : tuile « Prix public » (prix appliqué) avec un contour bleu nuit au lieu du gris. */
.mpe-tuiles:not(.mpe-tuiles--abonne) .mpe-tuiles__item--none.is-vedette { border-color: #000034; }
/* … et pour un abonné : tuile Fan+ ou Membre sélectionnée avec le même contour bleu nuit. */
.mpe-tuiles .mpe-tuiles__item.is-vedette { border-color: #000034; }

/* Grande bannière sous les produits d'une catégorie / d'« Offres partenaires » : même espace que l'ancienne strate
   (mesuré depuis le bas de la colonne la plus haute, filtres ou produits). */
.tax-product_cat .ast-woocommerce-container > .mpe-banniere,
.term-offres-partenaires .ast-woocommerce-container > .mpe-banniere { clear: both; margin: 4rem 0 0; }

/* Barre de tri : nombre de produits à gauche (plus gras), « Trier par » à gauche du menu, à droite. */
.mpe-tri { justify-content: space-between; }
.mpe-tri__nb { font-weight: 600; color: #000034; }
form.mpe-tri__menu { display: flex; align-items: center; gap: 10px; }
.mpe-tri__label { margin: 0; font-size: 14px; color: #6b6f8a; white-space: nowrap; }

/* -------------------------------------------------------------------------
 * Précommandes (mu-plugins/mpe-precommandes.php, extension WooCommerce Pre-Orders)
 * ---------------------------------------------------------------------- */
/* Badge « Précommande » : même place que « Nouveau », qu'il remplace. */
.mpe-badge-nouveau.mpe-badge-precommande { background-color: #c2410c; } /* orange des précommandes (étiquette des cartes, encadré de la fiche) */
.mpe-badge-precommande ~ .mpe-badge-nouveau:not(.mpe-badge-precommande) { display: none; }
/* 28/11 : produit épuisé (inc/boutique.php) : étiquette bleu nuit à la place de « Nouveau », image et prix estompés. */
.mpe-badge-nouveau.mpe-badge-epuise { background-color: #6b6f8a; } /* 29/11 : gris « indisponible » (bleu nuit = Réservé aux abonnés) */
.mpe-badge-epuise ~ .mpe-badge-nouveau:not(.mpe-badge-epuise) { display: none; }
.woocommerce ul.products li.product.mpe-epuise .astra-shop-thumbnail-wrap img { opacity: .55; filter: grayscale(.5); }
.woocommerce ul.products li.product.mpe-epuise .mpe-prixcarte { opacity: .6; }
/* Fiche : encadré au-dessus du bouton. */
.single-product .summary .mpe-precommande-info {
	display: grid;
	gap: 4px;
	margin: 0 0 16px;
	padding: 12px 16px;
	border-radius: 12px;
	background: #fff7ed;
	color: #000034;
	font-size: .9rem;
	line-height: 1.45;
}
/* Titre en orange avec la même pastille que l'étiquette « Précommande » des cartes. */
.single-product .summary .mpe-precommande-info strong { display: flex; align-items: center; gap: 8px; color: #c2410c; font-size: .98rem; }
.single-product .summary .mpe-precommande-info strong::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 2px; border-radius: 50%; background: currentColor; }
.single-product .summary .mpe-precommande-info span { color: #334155; }
/* Panier / commande : mention du paiement sous le total, en petit. */
.mpe-precommande-total { display: block; margin-top: 2px; color: #707070; font-size: .78rem; font-weight: 400; line-height: 1.3; white-space: normal; }

/* Message de date de l'extension (span.availability_date) : remplacé par l'encadré .mpe-precommande-info et le badge. */
.single-product .summary .availability_date,
ul.products li.product .availability_date { display: none; }
a.mpe-guide-tailles { text-decoration: none; }
/* Produit simple (pas de libellé « Taille » à côté) : le lien passe au-dessus du bouton. */
form.cart:not(.variations_form) .mpe-guide-tailles { position: static; margin: 0 0 14px; }
/* Guide des tailles en image : fenêtre plus large (tableaux fournisseurs en paysage), image cliquable pour l'ouvrir en grand. */
.mpe-guide-tailles__fenetre { width: min(1100px, calc(100vw - 32px)); }
.mpe-guide-tailles__zoom { display: block; cursor: zoom-in; }
.mpe-guide-tailles__aide { margin: -4px 4px 10px; color: #4a4a68; font-size: 13px; }
@media (min-width: 641px) {
	/* Sur ordinateur, l'image entière tient dans la fenêtre : texte d'aide adapté au clic. */
	.mpe-guide-tailles__aide { display: none; }
}
@media (max-width: 640px) {
	/* Mobile : fenêtre quasi plein écran ; un tableau en paysage garde une largeur lisible et défile horizontalement. */
	.mpe-guide-tailles__fenetre { width: calc(100vw - 16px); max-height: calc(100dvh - 32px); padding: 18px 14px; border-radius: 14px; }
	.mpe-guide-tailles__titre { margin: 0 44px 12px 4px; font-size: 18px; }
	.mpe-guide-tailles__fermer { top: 12px; right: 12px; }
	.mpe-guide-tailles__zoom.is-paysage { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 8px; }
	.mpe-guide-tailles__zoom.is-paysage img { width: 900px; max-width: none; height: auto; }
}

/* Marque à côté de la catégorie (cartes et fiche) : « Nutrition · SiS ». */
.mpe-marque-sep { margin: 0 .4em; opacity: .6; }
.mpe-marque { white-space: nowrap; }

/* Cartes : disponibilité sous le prix, en petite étiquette teintée (pastille + texte centrés). */
ul.products li.product .mpe-dispo {
	display: inline-flex; align-items: center; gap: 6px; margin: 8px 0 0; padding: 5px 10px 5px 8px;
	border-radius: 999px; background: color-mix(in srgb, currentColor 12%, #fff);
	font-size: 12px; font-weight: 700; line-height: 1;
}
ul.products li.product .mpe-dispo::before {
	content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: currentColor;
	margin-top: 2px; /* Plus Jakarta Sans : texte placé bas dans sa ligne ; pastille recentrée sur les minuscules */
}
ul.products li.product .mpe-dispo--stock { color: #15803d; }
ul.products li.product .mpe-dispo--rupture { color: #dc2626; }
ul.products li.product .mpe-dispo--precommande,
ul.products li.product .mpe-dispo--commande { color: #c2410c; }
ul.products li.product .mpe-dispo--bientot { color: #64748b; }
/* Fiche produit : même étiquette quand toutes les tailles sont en rupture (inc/boutique.php). */
.mpe-dispo--fiche {
	display: inline-flex; align-items: center; gap: 6px; margin: 0 0 16px; padding: 6px 12px 6px 10px;
	border-radius: 999px; background: color-mix(in srgb, currentColor 12%, #fff); color: #dc2626;
	font-size: 14px; font-weight: 700; line-height: 1;
}
.mpe-dispo--fiche::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: 2px; border-radius: 50%; background: currentColor; }

/* Fiche produit : icône « panier + » devant « Ajouter au panier » (produits de la boutique, marqueur [data-mpe-prix-unitaire]),
 * flèche « lien externe » après le bouton des offres partenaires. En pseudo-élément (masque SVG, couleur du texte) :
 * boutique.js réécrit le libellé du bouton (montant total) sans toucher à l'icône. */
body.single-product div.product form.cart:has([data-mpe-prix-unitaire]) .button.single_add_to_cart_button,
body.single-product div.product.product-type-external form.cart .button.single_add_to_cart_button {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
}
body.single-product div.product form.cart:has([data-mpe-prix-unitaire]) .button.single_add_to_cart_button::before,
body.single-product div.product.product-type-external form.cart .button.single_add_to_cart_button::after {
	content: ""; flex: none; width: 22px; height: 22px; background-color: currentColor;
	-webkit-mask: var(--mpe-icone) no-repeat center / contain; mask: var(--mpe-icone) no-repeat center / contain;
}
body.single-product div.product form.cart:has([data-mpe-prix-unitaire]) .button.single_add_to_cart_button::before {
	--mpe-icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 3h2.5l2.2 11.2a2 2 0 0 0 2 1.6h8.6a2 2 0 0 0 2-1.5L21 7H6.2'/%3E%3Ccircle cx='9.5' cy='20.2' r='1.3'/%3E%3Ccircle cx='17' cy='20.2' r='1.3'/%3E%3Cpath d='M13.6 8.8v4.4M11.4 11h4.4'/%3E%3C/svg%3E");
}
body.single-product div.product.product-type-external form.cart .button.single_add_to_cart_button::after {
	width: 18px; height: 18px;
	--mpe-icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E");
}

/* Souscription entreprise : « soit … TTC » collé au prix HT (interligne du prix resserré). */
.single-product .summary .price:has(.mpe-prix-ttc-ligne) { line-height: 1.15; }
.single-product .summary .price .mpe-prix-ttc-ligne { margin-top: 2px; line-height: 1.3; }

/* Pagination de la boutique : même style que celle des actualités (assets/css/actualites.css) —
 * pastilles rondes 44 px, chiffres en gras, page courante en bleu marine, flèches seules. */
.woocommerce nav.woocommerce-pagination { margin-top: 16px; text-align: center; } /* la grille a déjà sa marge basse */
.woocommerce nav.woocommerce-pagination ul.page-numbers {
	display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 6px;
	margin: 0; padding: 0; border: 0 !important;
}
.woocommerce nav.woocommerce-pagination ul.page-numbers li { float: none; margin: 0; border: 0 !important; overflow: visible; }
.woocommerce nav.woocommerce-pagination ul.page-numbers li .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 44px; height: 44px; margin: 0; padding: 0 14px;
	border: 1px solid #e2e8f0 !important; border-radius: 999px;
	background: transparent; color: #000034; font-size: 16px; font-weight: 700; line-height: 1;
	transition: color .15s, border-color .15s;
}
.woocommerce nav.woocommerce-pagination ul.page-numbers li a.page-numbers:hover,
.woocommerce nav.woocommerce-pagination ul.page-numbers li a.page-numbers:focus-visible {
	background: transparent; color: #1f53f3; border-color: #1f53f3 !important;
}
.woocommerce nav.woocommerce-pagination ul.page-numbers li span.page-numbers.current {
	background: #000034; color: #fff; border-color: #000034 !important;
}
.woocommerce nav.woocommerce-pagination ul.page-numbers li .page-numbers.dots { min-width: 20px; padding: 0; border: 0 !important; }
.woocommerce nav.woocommerce-pagination ul.page-numbers li .page-numbers.prev,
.woocommerce nav.woocommerce-pagination ul.page-numbers li .page-numbers.next { width: 44px; padding: 0; font-size: 18px; }

/* Recherche sans résultat : l'en-tête WooCommerce vide (titre déplacé dans .mpe-cathero) ne garde ni trait ni marges ;
 * l'encadré « Pas de produit… » remonte sous le titre. */
.mpe-cathero--recherche + .woocommerce-products-header:not(:has(> *)) { display: none; }
.mpe-cathero--recherche:has(+ .woocommerce-products-header + .mpe-empty) { margin-bottom: 24px; }

/* Fiche produit : intertitres de la description (« Caractéristiques », « Comment ça marche ? »…) plus discrets. */
.single-product .woocommerce-Tabs-panel h3 { margin: 1.6em 0 .5em; font-size: 19px; line-height: 1.3; }
.single-product .woocommerce-Tabs-panel h2 { font-size: 22px; line-height: 1.3; }

/* Strate bannière de l'accueil ([mpe_banniere]) : largeur du contenu (1200px), marges de strate. */
.entry-content .mpe-banniere--accueil { max-width: 1200px; margin: 72px auto 0; } /* 28/11 : 100 → 72 px */
/* Accueil : 100 px au-dessus et en dessous de la bannière. */
.entry-content .mpe-offres-home:has(+ .mpe-banniere--accueil) { padding-bottom: 0; }
.entry-content .mpe-offres-home + .mpe-banniere--accueil { margin-top: 28px; }
.entry-content .mpe-banniere--accueil + .wp-block-group .mpe-kicker:first-child { margin-top: 80px !important; } /* 28/11 : 100 → 80 px */
@media (max-width: 1239px) { .entry-content .mpe-banniere--accueil { margin-left: 20px; margin-right: 20px; } }

/* Code promo réservé (fiche produit) : petit cadenas avant le texte. */
.mpe-code--locked { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.mpe-code__cadenas { flex: none; opacity: .75; }

/* 16/11 : titres des cartes produits et offres partenaires en Plus Jakarta Sans (pas en Toroka). */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce-page ul.products li.product .woocommerce-loop-product__title { font-family: "Plus Jakarta Sans", sans-serif; font-weight: 800; letter-spacing: -.01em; line-height: 1.25; }
/* 16/11 : un peu d'air entre le prix et le code promo (cartes et fiche produit). */
.mpe-extras:has(.mpe-prixcarte) .mpe-code-promo { margin-top: 12px; } /* sous un prix ; sans prix (offre partenaire), marge d'origine */
/* Carte d'offre partenaire sans prix : code plus près du titre (la marge venait du lien du titre). */
.woocommerce ul.products li.product .astra-shop-summary-wrap:has(> .mpe-extras .mpe-code-promo):not(:has(.mpe-prixcarte)) > .ast-loop-product__link { margin-bottom: 6px; }

/* 16/11 : précommande sur les cartes, plus sobre : pas de pastille teintée, petite icône calendrier,
   texte bleu nuit (« Expédition en décembre ») ; « Précommande » reste sur l'étiquette orange de l'image. */
ul.products li.product .mpe-dispo--precommande { padding: 0; background: none; color: #334155; font-weight: 600; font-size: 13px; }
ul.products li.product .mpe-dispo--precommande::before {
	width: 14px; height: 14px; margin-top: 0; border-radius: 0; background: #c2410c;
	-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='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 10h18'/%3E%3C/svg%3E") no-repeat center / contain;
	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='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 10h18'/%3E%3C/svg%3E") no-repeat center / contain;
}
/* Accueil : 100 px au-dessus de la strate boutique. */
.entry-content .mpe-home-shop { padding-top: 100px; }
@media (max-width: 921px) { .entry-content .mpe-home-shop { padding-top: 64px; } }
/* Boutique juste après l’actu (abonnés : pas de strate « Je soutiens » entre les deux) : la grille d’actus a déjà
   ~96 px d’espace sous elle, on vise 100 px au total jusqu’au surtitre « La boutique ». */
.entry-content > .wp-block-group:has(.mpe-actus--accueil) + .mpe-home-shop { padding-top: 4px; }

/* Accueil, strate boutique : apparition discrète des cartes (fondu + 12 px, 0,08 s d'écart). Le zoom de l'image au survol existe déjà. */
.mpe-home-shop.is-pret ul.products li.product { opacity: 0; transform: translateY(12px); }
.mpe-home-shop.is-visible ul.products li.product { opacity: 1; transform: none; transition: opacity .5s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.mpe-home-shop.is-visible ul.products li.product:nth-child(2) { transition-delay: .08s; }
.mpe-home-shop.is-visible ul.products li.product:nth-child(3) { transition-delay: .16s; }
.mpe-home-shop.is-visible ul.products li.product:nth-child(4) { transition-delay: .24s; }

/* Page Boutique : bloc de réassurance (template-parts/boutique/hero.php) entre les bannières et les catégories,
   à la place du bandeau rose pleine largeur. Bannières collées sous la sous-navigation. */
.mpe-boutique-landing .mpe-promos { margin-top: 20px; margin-bottom: 1.5rem; }
.mpe-reassurance {
	margin: 0 0 3rem;
	padding: 1rem 1.5rem;
	border-radius: var(--mpe-radius);
	background: #F3F4FA;
	color: #000034;
}
/* 28/11 : fiche produit, bloc de réassurance détaché du bouton « Ajouter au panier » (la règle ci-dessus, pour la page Boutique, annulait sa marge du haut). */
body.single-product div.product ul.mpe-reassurance { margin: 32px 0 0; }
.mpe-reassurance__liste {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
}
.mpe-reassurance__liste li {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .65rem;
	margin: 0;
	padding: .2rem 1rem;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
}
.mpe-reassurance__liste li + li { margin-top: 0; border-left: 1px solid rgba(0, 0, 52, .12); }
.mpe-reassurance__check {
	flex: 0 0 auto;
	box-sizing: content-box;
	padding: 5px;
	border-radius: 50%;
	background: #FF00A3;
	color: #fff;
	width: 14px;
	height: 14px;
}
.mpe-reassurance strong { font-weight: 800; }
.mpe-reassurance a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.mpe-reassurance a:hover,
.mpe-reassurance a:focus-visible { color: #FF00A3; }
@media (max-width: 768px) {
	.mpe-boutique-landing .mpe-promos { margin-top: 12px; }
	.mpe-reassurance { padding: .9rem 1.1rem; margin-bottom: 2rem; }
	.mpe-reassurance__liste { grid-template-columns: 1fr; gap: .55rem; }
	.mpe-reassurance__liste li { justify-content: flex-start; padding: 0; font-size: 14px; }
	.mpe-reassurance__liste li + li { border-left: 0; }
}

/* « Découvrez nos catégories » : défilement horizontal sans barre de défilement visible (balayage au doigt / trackpad).
   Mobile : la liste déborde jusqu'aux bords de l'écran, la carte suivante dépasse pour montrer qu'on peut faire défiler. */
.mpe-categories__list { scrollbar-width: none; }
.mpe-categories__list::-webkit-scrollbar { display: none; }
@media (max-width: 768px) {
	.mpe-categories__list { grid-auto-columns: min(220px, 62vw); }
	.mpe-boutique-landing .mpe-categories__list {
		margin-inline: calc(-1 * var(--mpe-pad));
		padding: 2px var(--mpe-pad) 4px;
		scroll-padding-inline: var(--mpe-pad);
	}
}

/* 26/11 : taille indisponible (boutique.js) : barrée, grisée, non cliquable, dès le chargement de la fiche. */
body.single-product div.product form.cart .ast-single-variation.mpe-indispo {
	position: relative;
	border-color: #e5e7eb !important;
	background: #f8f9fb !important;
	color: #9ca3af !important;
	cursor: not-allowed;
	text-decoration: line-through;
	text-decoration-thickness: 1px;
}
body.single-product div.product form.cart .ast-single-variation.mpe-indispo:hover { border-color: #e5e7eb !important; color: #9ca3af !important; }

/* -------------------------------------------------------------------------
 * Tablette portrait (641–768 px), strate boutique de l'accueil : marge latérale de 40 px comme les autres strates
 * de l'accueil (24 px avant), carrousels à deux cartes et demie au lieu d'une et quart.
 * ---------------------------------------------------------------------- */
@media (min-width: 641px) and (max-width: 768px) {
	.mpe-home-shop { --mpe-pad: 40px; }
	.mpe-home-shop__cat { flex-basis: 40%; }
	.mpe-home-shop ul.products li.product { flex-basis: 42%; }
}

/* Fiche produit sur tablette.
   - 922–1199 px : l'image gardait 500 px, le résumé tombait à ~350 px et les tuiles de prix débordaient
     (« TTC » coupé, pastilles par-dessus le libellé). Image à 44 %, résumé ~480 px à 1024 px.
   - 641–921 px (une colonne) : l'image carrée prenait toute la largeur (~700 px de haut avant le prix) ; limitée à 480 px. */
@media (min-width: 922px) and (max-width: 1199px) {
	body.single-product #content .ast-woocommerce-container div.product > div.images.woocommerce-product-gallery { width: 44%; }
	body.single-product #content .ast-woocommerce-container div.product > div.summary.entry-summary { width: calc(56% - 48px); }
}
@media (min-width: 641px) and (max-width: 921px) {
	body.single-product #content .ast-woocommerce-container div.product > div.images.woocommerce-product-gallery { max-width: 480px; margin-inline: auto; float: none; }
}

/* Étiquettes de la fiche, calées sur l'image (29/11) : réduction / avantage / Nouveau en haut à gauche,
   « Réservé aux abonnés » / « Réservé Fan+ » en haut à droite. Elles sont positionnées dans div.product, pas dans l'image :
   on suit la largeur de l'image selon l'écran (500 px, 44 %, 480 px centrée, pleine largeur). */
@media (min-width: 1200px) {
	body.single-product div.product[class] > .mpe-badge-fanplus { right: calc(100% - 500px + 20px); }
}
@media (min-width: 922px) and (max-width: 1199px) {
	body.single-product div.product[class] > .mpe-badge-fanplus { right: calc(56% + 20px); }
}
@media (min-width: 641px) and (max-width: 921px) {
	body.single-product div.product[class] > .mpe-badge-fanplus { right: calc(50% - 240px + 20px); }
	body.single-product div.product[class] > .mpe-badge-avantage,
	body.single-product div.product[class] > .mpe-badge-nouveau { left: calc(50% - 240px + 20px); }
}

/* Code réservé aux abonnés, fiche produit : pastille « Débloquer le code » (29/11) */
.mpe-code-promo:has(> .mpe-code-cle) { display: block; }
.mpe-code-cle {
	display: flex; align-items: center; gap: 14px; width: 100%; max-width: 380px; box-sizing: border-box; /* 440 → 380 px le 29/11 */
	padding: 7px 7px 7px 20px; border-radius: 999px;
	background: linear-gradient(135deg, #f3f5ff, #fdf0f8); border: 1px solid transparent; /* 29/11 : sans filet */
	color: #000034; text-decoration: none !important; font-size: 1rem; line-height: 1.2;
}
.mpe-code-cle:focus-visible { outline: 2px solid #1F53F3; outline-offset: 3px; }
.mpe-code-cle__faux {
	flex: 1 1 auto; min-width: 0; overflow: hidden; white-space: nowrap;
	font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-weight: 700; font-size: 19px; letter-spacing: .14em;
	color: #000034; filter: blur(5px); user-select: none; -webkit-user-select: none;
}
.mpe-code-cle__cta {
	flex: none; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
	padding: 11px 18px; border-radius: 999px; background: #fff; color: #1F53F3;
	font-size: 14.5px; font-weight: 700; box-shadow: 0 1px 4px rgba(0, 0, 52, .12);
	transition: background-color .15s, color .15s;
}
.mpe-code-cle__cta svg { flex: none; }
.mpe-code-cle:hover .mpe-code-cle__cta { background: #1F53F3; color: #fff; }
@media (max-width: 544px) {
	.mpe-code-cle { gap: 10px; padding-left: 16px; max-width: none; }
	.mpe-code-cle__faux { font-size: 17px; letter-spacing: .1em; }
	.mpe-code-cle__cta { font-size: 14px; padding: 11px 15px; }
}

/* Offre partenaire : « Proposé par » sous le titre (29/11) */
.single-product .summary .mpe-propose { display: inline-flex; align-items: center; gap: 10px; margin: 2px 0 0; color: #3d4060; font-size: 14.5px; line-height: 1.3; text-decoration: none; }
.single-product .summary a.mpe-propose b { text-decoration: underline; text-decoration-color: rgba(0, 0, 52, .25); text-underline-offset: 3px; }
.single-product .summary a.mpe-propose:hover b { color: #1F53F3; text-decoration-color: currentColor; }
.mpe-propose b { color: #000034; font-weight: 700; }
.mpe-propose__rond { flex: none; width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 1px solid rgba(0, 0, 52, .14); box-sizing: border-box; display: flex; align-items: center; justify-content: center; overflow: hidden; } /* filet gris : on voit le rond même sur fond blanc */
/* Logo entier dans le rond : contenu dans le carré inscrit au cercle (côté ≈ 71 % du diamètre : ~15 % de marge ; 12 % suffit pour un logo en largeur). */
.mpe-propose__rond img.mpe-propose__img { width: 100%; height: 100%; object-fit: contain; padding: 12%; box-sizing: border-box; border-radius: 0; margin: 0; }

/* Police TorokaCondensedBlack (gardée pour les autres usages). */
@font-face { font-family: TorokaCondensedBlack; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/Toroka-CondensedBlack.woff) format("woff"); }
/* 29/11 : réassurance d'après la maquette Figma (nœud 3298-20540) — encadré #F2F4F8 arrondi 16 px,
   pastille coche 32 px bleu pâle, titre 16 px gras marine, phrase 14 px #384050, lien bleu souligné. */
section.mpe-reassurance--f { margin: 40px 0; padding: 22px 24px; border-radius: 16px; background: #F2F4F8; }
section.mpe-reassurance--f .mpe-reassurance__liste { display: flex; flex-wrap: wrap; justify-content: space-evenly; gap: 16px 32px; margin: 0; padding: 0; list-style: none; }
section.mpe-reassurance--f .mpe-reassurance__item { display: flex; align-items: center; gap: 14px; margin: 0; padding: 0; border: 0 !important; }
section.mpe-reassurance--f .mpe-reassurance__pastille { flex: none; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: #E1ECFF; color: #1F53F3; }
section.mpe-reassurance--f .mpe-reassurance__texte { display: flex; flex-direction: column; gap: 2px; }
section.mpe-reassurance--f .mpe-reassurance__cle { color: #000034; font-size: 16px; font-weight: 700; line-height: 1.25; }
section.mpe-reassurance--f .mpe-reassurance__phrase { color: #384050; font-size: 14px; font-weight: 400; line-height: 1.4; }
section.mpe-reassurance--f .mpe-reassurance__phrase strong { color: #000034; font-weight: 700; }
section.mpe-reassurance--f a.mpe-reassurance__lien { color: #1F53F3; font-weight: 600; text-decoration: none; white-space: nowrap; }
section.mpe-reassurance--f a.mpe-reassurance__lien > span:first-child { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
section.mpe-reassurance--f a.mpe-reassurance__lien:is(:hover, :focus-visible) { color: #000034; }
@media (max-width: 1000px) {
	section.mpe-reassurance--f { padding: 18px 20px; }
	section.mpe-reassurance--f .mpe-reassurance__liste { flex-direction: column; gap: 14px; }
}
@media (max-width: 768px) { section.mpe-reassurance--f { margin: 32px 0; } }

/* Offre partenaire sans image (29/11) : logo du partenaire centré, 50 % de la carte au plus (marge de 25 % autour). */
/* Le fond bleuté passe sur le lien : en « multiply », le blanc des logos (JPG, GIF) se fond dans la carte. */
.woocommerce-page ul.products li.product .astra-shop-thumbnail-wrap a:has(> img.mpe-op-logo) { display: block; background-color: #f2f5ff; border-radius: inherit; isolation: isolate; }
.woocommerce-page ul.products li.product .astra-shop-thumbnail-wrap img.mpe-op-logo { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; padding: 25%; box-sizing: border-box; background: transparent; mix-blend-mode: multiply; }
/* Même chose sur la fiche de l'offre : image principale = logo centré (50 % du cadre au plus) sur le fond bleuté. */
.single-product .mpe-op-logo-fiche { display: grid; place-items: center; aspect-ratio: 1; background-color: #f2f5ff; border-radius: 12px; isolation: isolate; }
.woocommerce.single-product div.product div.images .mpe-op-logo-fiche img.mpe-op-logo { width: 50%; height: 50%; object-fit: contain; margin: 0; border-radius: 0; background: transparent; mix-blend-mode: multiply; }

/* 30/11 : texte des bannières promo un peu plus à gauche (début vers 50 % au lieu de 55 %), plus de place pour les titres longs. */
@media (min-width: 769px) {
	.mpe-promos__content { padding-left: 4cqw; }
}

/* 30/11 : bannière promo avec version mobile (<picture>) : l'image prenait 68 % du <picture>, lui-même à 68 % de la carte
   (soit 46 % de la carte) et était fortement recadrée. Sur mobile, 16:9 comme les bannières sans version mobile (au lieu du 4:3 forcé ;
   les bannières mobiles fournies font 1634 × 928). */
.mpe-promos__card picture .mpe-promos__img { position: static; width: 100%; height: 100%; }
@media (max-width: 768px) {
	.mpe-promos__card picture .mpe-promos__img { height: auto; aspect-ratio: 16 / 9; }
}
