/* Catalogue : barre d'outils collante, filtres WooCommerce (feuille sous 1024 px, volet repliable jusqu'à 1279 px, colonne au-delà), grille et pagination. */

.catalogue,
.catalogue * {
	box-sizing: border-box;
}

body .catalogue * {
	margin-block: 0;
}

/* Mise en page : barre d'outils, bandeau de l'offre, filtres et résultats. */
.catalogue .catalogue__corps {
	display: grid;
	grid-template-areas: "outils" "offre" "resultats";
	grid-template-columns: minmax(0, 1fr);
	padding: 0 16px;
}

.catalogue .catalogue__outils {
	position: sticky;
	z-index: 50;
	top: 60px;
	display: flex;
	grid-area: outils;
	align-items: stretch;
	margin: 0 -16px;
	border-top: 1px solid var(--wp--preset--color--beton);
	border-bottom: 1px solid var(--wp--preset--color--beton);
	background: var(--wp--preset--color--blanc);
}

.catalogue .catalogue__offre {
	grid-area: offre;
	margin: 0 -16px;
	padding: 10px 16px;
	overflow: hidden;
	color: var(--wp--preset--color--texte);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	text-align: center;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.catalogue .catalogue__resultats {
	grid-area: resultats;
	min-width: 0;
	padding-top: 16px;
}

/* Barre d'outils (mobile) : Filtrer | Trier. */
.outils-catalogue {
	display: flex;
	flex: 1;
	align-items: stretch;
}

.outils-catalogue__bouton,
.outils-catalogue__volet {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 0 16px;
	border: 0;
	background: transparent;
	color: var(--wp--preset--color--texte);
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
}

.outils-catalogue__bouton {
	flex: 1 1 0;
	min-height: 48px;
}

.outils-catalogue__bouton::before,
.outils-catalogue__volet::before {
	content: "";
	flex: none;
	width: 18px;
	height: 18px;
	background: currentColor;
	-webkit-mask: url(../images/icones/filtres.svg) center / contain no-repeat;
	mask: url(../images/icones/filtres.svg) center / contain no-repeat;
}

.outils-catalogue__trier::before {
	-webkit-mask-image: url(../images/icones/tri.svg);
	mask-image: url(../images/icones/tri.svg);
}

.outils-catalogue__separateur {
	flex: none;
	width: 1px;
	margin: 10px 0;
	background: var(--wp--preset--color--beton);
}

.outils-catalogue__badge {
	display: inline-grid;
	place-items: center;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	border-radius: var(--wp--preset--border-radius--pilule);
	background: var(--wp--preset--color--texte);
	color: var(--wp--preset--color--blanc);
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
}

.outils-catalogue__volet,
.outils-catalogue__nombre,
.outils-catalogue__univers,
.catalogue .filtres-actifs,
.catalogue .catalogue__tri,
.catalogue .filtre-univers,
.catalogue .catalogue__encart {
	display: none;
}

.outils-catalogue__nombre {
	color: var(--wp--preset--color--texte-secondaire);
	font-size: 15px;
	line-height: normal;
	white-space: nowrap;
}

.outils-catalogue__nombre strong {
	color: var(--wp--preset--color--texte);
}

/* Feuilles (filtres et tri) qui montent du bas de l'écran. */
.outils-catalogue__feuille-tri {
	position: fixed;
	z-index: 95;
	inset: 0;
	overscroll-behavior: contain;
}

.outils-catalogue__feuille-tri,
.outils-catalogue__feuille-tri * {
	box-sizing: border-box;
}

.outils-catalogue__feuille-tri[hidden] {
	display: none;
}

.feuille__voile {
	position: absolute;
	inset: 0;
	background: var(--wp--custom--couleur--voile-tiroir);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.feuille__panneau {
	position: absolute;
	bottom: 0;
	left: 50%;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-height: 85%;
	border-radius: 20px 20px 0 0;
	background: var(--wp--preset--color--blanc);
	box-shadow: var(--wp--preset--shadow--feuille);
	transform: translateX(-50%) translateY(100%);
	transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.est-ouverte .feuille__voile {
	opacity: 1;
}

.est-ouverte .feuille__panneau {
	transform: translateX(-50%) translateY(0);
}

.feuille__poignee,
.catalogue .filtres .wc-block-product-filters__overlay-dialog::before {
	display: block;
	flex: none;
	height: 18px;
	background: linear-gradient(var(--wp--custom--couleur--bordure), var(--wp--custom--couleur--bordure)) center / 40px 4px no-repeat;
}

.feuille__entete {
	display: flex;
	flex: none;
	align-items: center;
	gap: 8px;
	padding: 0 8px 6px 16px;
	border-bottom: 1px solid var(--wp--preset--color--beton);
}

.feuille__titre {
	flex: 1;
	margin: 0;
	font-family: var(--wp--preset--font-family--fraunces);
	font-size: 24px;
	font-variation-settings: "SOFT" 100;
	line-height: normal;
}

.feuille__fermer,
.catalogue .filtres .wc-block-product-filters__close-overlay {
	display: grid;
	flex: none;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--wp--preset--color--texte);
	cursor: pointer;
}

.feuille__fermer::before {
	content: "";
	width: 20px;
	height: 20px;
	background: currentColor;
	-webkit-mask: url(../images/icones/fermer.svg) center / contain no-repeat;
	mask: url(../images/icones/fermer.svg) center / contain no-repeat;
}

.feuille-tri__choix {
	padding: 6px 16px calc(16px + env(safe-area-inset-bottom, 0px));
	overflow-y: auto;
}

.feuille-tri__option {
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	min-height: 56px;
	padding: 0;
	border: 0;
	border-bottom: 1px solid var(--wp--custom--couleur--separateur-nav);
	background: transparent;
	color: var(--wp--preset--color--texte);
	font-family: inherit;
	font-size: 16px;
	text-align: left;
	cursor: pointer;
}

.feuille-tri__option::before {
	content: "";
	flex: none;
	width: 22px;
	height: 22px;
	border: 1.5px solid var(--wp--preset--color--gris);
	border-radius: 50%;
}

.feuille-tri__option[aria-checked="true"] {
	font-weight: 600;
}

.feuille-tri__option[aria-checked="true"]::before {
	border-color: var(--wp--preset--color--bleu);
	background: radial-gradient(circle, var(--wp--preset--color--bleu) 5.5px, transparent 6px);
}

/* Filtres (feuille sous 1024 px) : le panneau natif de WooCommerce, présenté comme une feuille. */
.catalogue .filtres {
	position: fixed;
	z-index: 95;
	top: 0;
	left: 0;
	display: block;
	width: 0;
	height: 0;
}

.catalogue .filtres .wc-block-product-filters__open-overlay {
	display: none;
}

.catalogue .filtres .wc-block-product-filters__overlay {
	z-index: 95;
	top: 0;
	background-color: transparent;
	transition: background-color 0.3s ease;
}

.catalogue .filtres.is-overlay-opened .wc-block-product-filters__overlay {
	background-color: var(--wp--custom--couleur--voile-tiroir);
}

.catalogue .filtres .wc-block-product-filters__overlay-dialog {
	inset: auto;
	bottom: 0;
	left: 50%;
	width: 100%;
	height: 85%;
	border-radius: 20px 20px 0 0;
	background: var(--wp--preset--color--blanc);
	box-shadow: var(--wp--preset--shadow--feuille);
	color: var(--wp--preset--color--texte);
	transform: translateX(-50%) translateY(100%);
	transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.catalogue .filtres.is-overlay-opened .wc-block-product-filters__overlay-dialog {
	transform: translateX(-50%) translateY(0);
}

.catalogue .filtres .wc-block-product-filters__overlay-dialog::before {
	content: "";
}

.catalogue .filtres .wc-block-product-filters__overlay-header {
	justify-content: flex-start;
	min-height: 50px;
	padding: 0 8px 6px 16px;
	border-bottom: 1px solid var(--wp--preset--color--beton);
}

.catalogue .filtres .wc-block-product-filters__close-overlay svg {
	width: 22px;
	height: 22px;
}

.catalogue .filtres .wc-block-product-filters__overlay-content {
	display: block;
	padding: 0 16px;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.catalogue .filtres .wc-block-product-filters__overlay-footer {
	padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
	border-top: 1px solid var(--wp--preset--color--beton);
	box-shadow: none;
}

.catalogue .filtres .wc-block-product-filters__apply {
	height: 52px;
	min-height: 52px;
	border-radius: var(--wp--preset--border-radius--pilule);
	background: var(--wp--preset--color--bleu);
	color: var(--wp--preset--color--blanc);
	font-size: 16px;
	font-weight: 600;
}

.catalogue .filtres .wc-block-product-filters__apply:hover {
	background: var(--wp--preset--color--bleu-fonce);
}

/* En-tête « Filtrer / Tout effacer » : placé dans l'en-tête de la feuille, à gauche du bouton de fermeture. */
.catalogue .filtres .filtres__entete {
	position: absolute;
	top: 18px;
	right: 52px;
	left: 16px;
	display: flex;
	align-items: center;
	gap: 8px;
	height: 50px;
}

.catalogue .filtres__titre {
	flex: 1;
	font-family: var(--wp--preset--font-family--fraunces);
	font-size: 24px;
	font-variation-settings: "SOFT" 100;
	line-height: normal;
}

.catalogue .filtres__effacer .wp-block-button__link,
.catalogue .filtres-actifs .wc-block-product-filter-clear-button .wp-block-button__link {
	min-height: 44px;
	padding: 0 8px;
	border: 0;
	color: var(--wp--preset--color--bleu);
	font-size: 15px;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.catalogue .filtres__effacer .wp-block-button__link::after,
.catalogue .filtres-actifs .wc-block-product-filter-clear-button .wp-block-button__link::after {
	content: none;
}

.filtres__effacer-bureau {
	display: none;
}

/* Groupes de filtres repliables (le titre devient un bouton, voir catalogue.js). */
.catalogue .filtre {
	border-bottom: 1px solid var(--wp--preset--color--beton);
}

.catalogue .filtre > h3 {
	font: inherit;
	letter-spacing: normal;
}

.filtre__bascule {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	min-height: 56px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--wp--preset--color--texte);
	font-family: inherit;
	font-size: 17px;
	font-weight: 600;
	text-align: left;
	cursor: pointer;
}

.filtre__bascule::after {
	content: "";
	flex: none;
	width: 14px;
	height: 14px;
	background: currentColor;
	-webkit-mask: url(../images/icones/chevron-bas.svg) center / contain no-repeat;
	mask: url(../images/icones/chevron-bas.svg) center / contain no-repeat;
	transition: transform var(--wp--custom--transition--rapide);
}

.filtre__bascule[aria-expanded="true"]::after {
	transform: rotate(180deg);
}

.filtre__actifs {
	margin-left: 6px;
	color: var(--wp--preset--color--bleu);
	letter-spacing: 0;
}

.catalogue .filtre.est-replie > :not(h3) {
	display: none;
}

/* Listes à cocher (filtres natifs et navigation des gammes). */
.catalogue .filtre fieldset {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.catalogue .wc-block-product-filter-checkbox-list__items,
.navigation-categories__liste {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0 0 10px;
	list-style: none;
}

.catalogue .wc-block-product-filter-checkbox-list__label,
.navigation-categories__liste a {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	min-height: 48px;
	margin: 0;
	color: var(--wp--preset--color--texte);
	font-size: 16px;
	line-height: normal;
	text-decoration: none;
	cursor: pointer;
}

.catalogue .wc-block-product-filter-checkbox-list__input-wrapper::before {
	content: none;
}

.catalogue .wc-block-product-filter-checkbox-list__input-wrapper {
	position: relative;
	display: grid;
	flex: none;
	place-items: center;
	width: 22px;
	height: 22px;
}

.catalogue input[type="checkbox"].wc-block-product-filter-checkbox-list__input,
.navigation-categories__case {
	flex: none;
	width: 22px;
	height: 22px;
	margin: 0;
	border: 1.5px solid var(--wp--preset--color--gris);
	border-radius: 6px;
	background: var(--wp--preset--color--blanc);
	cursor: pointer;
	appearance: none;
}

.catalogue input[type="checkbox"].wc-block-product-filter-checkbox-list__input {
	position: absolute;
	inset: 0;
}

.catalogue input[type="checkbox"].wc-block-product-filter-checkbox-list__input:checked,
.navigation-categories--gammes .est-coche .navigation-categories__case {
	border-color: var(--wp--preset--color--bleu);
	background: var(--wp--preset--color--bleu);
}

.catalogue .wc-block-product-filter-checkbox-list__mark {
	position: relative;
	display: none;
	width: 12px;
	height: 10px;
	color: var(--wp--preset--color--blanc);
	pointer-events: none;
}

.catalogue input[type="checkbox"].wc-block-product-filter-checkbox-list__input:checked + .wc-block-product-filter-checkbox-list__mark {
	display: block;
}

.navigation-categories--gammes .est-coche .navigation-categories__case {
	background: var(--wp--preset--color--bleu) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 8' fill='none'%3E%3Cpath d='M9.25 1.2L3.75 6.7L1 3.95' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.navigation-categories--univers .navigation-categories__case {
	border-radius: 50%;
}

.navigation-categories--univers .est-coche .navigation-categories__case {
	border-color: var(--wp--preset--color--bleu);
	background: radial-gradient(circle, var(--wp--preset--color--bleu) 4.5px, var(--wp--preset--color--blanc) 5px);
}

.catalogue .wc-block-product-filter-checkbox-list__text-wrapper,
.navigation-categories__nom {
	font-size: inherit;
	display: flex;
	flex: 1;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-width: 0;
}

.catalogue .wc-block-product-filter-checkbox-list__item:has(:checked) .wc-block-product-filter-checkbox-list__text,
.navigation-categories .est-coche .navigation-categories__nom {
	font-weight: 600;
}

/* Nombre de produits sans les parenthèses de WooCommerce. */
.catalogue .wc-block-product-filter-checkbox-list__count {
	font-size: 0;
}

.catalogue .wc-block-product-filter-checkbox-list__count span,
.navigation-categories__nombre {
	color: var(--wp--preset--color--texte-secondaire);
	font-size: 14px;
	font-weight: 400;
}

/* Senteur et poids en pastilles sous 1280 px. */
.catalogue .filtre-pastilles .wc-block-product-filter-checkbox-list__items {
	flex-direction: row;
	flex-wrap: wrap;
	gap: 8px;
	padding-bottom: 16px;
}

.catalogue .filtre-pastilles .wc-block-product-filter-checkbox-list__label {
	gap: 6px;
	width: auto;
	min-height: 44px;
	padding: 0 16px;
	border: 1.5px solid var(--wp--custom--couleur--bordure);
	border-radius: var(--wp--preset--border-radius--pilule);
	background: var(--wp--preset--color--blanc);
	font-size: 15px;
	font-weight: 600;
}

.catalogue .filtre-pastilles .wc-block-product-filter-checkbox-list__input-wrapper {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
}

.catalogue .filtre-pastilles .wc-block-product-filter-checkbox-list__text-wrapper {
	flex: none;
	justify-content: flex-start;
	gap: 6px;
}

.catalogue .filtre-pastilles .wc-block-product-filter-checkbox-list__count span {
	color: inherit;
	font-size: 15px;
}

.catalogue .filtre-pastilles .wc-block-product-filter-checkbox-list__item:has(:checked) .wc-block-product-filter-checkbox-list__label {
	border-color: var(--wp--preset--color--bleu);
	background: var(--wp--preset--color--bleu);
	color: var(--wp--preset--color--blanc);
}

.catalogue .filtre-pastilles .wc-block-product-filter-checkbox-list__label:has(:focus-visible) {
	outline: 2px solid var(--wp--preset--color--bleu);
	outline-offset: 2px;
}

/* Curseur de prix natif. */
.catalogue .wc-block-product-filter-price-slider {
	padding-bottom: 16px;
	--wc-product-filter-price-slider: var(--wp--preset--color--bleu);
	--wc-product-filter-price-slider-handle: var(--wp--preset--color--bleu);
	--wc-product-filter-price-slider-handle-border: var(--wp--preset--color--blanc);
}

.catalogue .wc-block-product-filter-price-slider .text input {
	height: 44px;
	padding: 0 14px;
	border: 1px solid var(--wp--custom--couleur--bordure);
	border-radius: var(--wp--preset--border-radius--pilule);
	color: var(--wp--preset--color--texte);
	font-family: inherit;
	font-size: 15px;
}

/* Grille de produits. */
.catalogue ul.catalogue__grille {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.catalogue ul.catalogue__grille > li {
	width: auto;
	max-width: none;
	margin: 0;
	padding: 0;
}

/* Cartes de la grille sous 1280 px : nom sur deux lignes, note complète, bouton sur toute la largeur, libellés courts. */
.catalogue .badge-produit__long,
.catalogue .ajout-panier__long {
	display: none;
}

.catalogue .badge-produit__court,
.catalogue .ajout-panier__court {
	display: inline;
}

.catalogue .carte-produit.carte-produit {
	height: auto;
}

.catalogue .carte-produit .carte-produit__nom {
	display: -webkit-box;
	overflow: hidden;
	-webkit-line-clamp: 2;
	font-size: 16px;
}

.catalogue .carte-produit .carte-produit__sous-titre {
	display: none;
}

.catalogue .carte-produit .note {
	--note-vide: var(--wp--custom--couleur--etoile-vide);
	margin-top: 0;
}

.catalogue .carte-produit .note__valeur {
	display: inline;
}

.catalogue .carte-produit .carte-produit__achat {
	margin-top: 0;
}

.catalogue .carte-produit .carte-produit__prix {
	flex: 0 1 auto;
}

.catalogue .carte-produit .carte-produit__prix-kilo {
	white-space: normal;
}

.catalogue .carte-produit .ajout-panier {
	flex: 1 1 100%;
	height: 44px;
}

/* Prix masqués : boutons alignés en bas des cartes d'une même rangée, même si un nom passe sur deux lignes. */
.prix-masques .catalogue .carte-produit.carte-produit {
	height: 100%;
}

.prix-masques .catalogue .carte-produit .carte-produit__achat {
	margin-top: auto;
}

.catalogue .catalogue__vide {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	padding: 40px 20px;
	border-radius: 18px;
	background: var(--wp--preset--color--fond-clair);
	text-align: center;
}

.catalogue .catalogue__vide-titre {
	font-family: var(--wp--preset--font-family--fraunces);
	font-size: 24px;
	font-variation-settings: "SOFT" 100;
	line-height: 1.15;
}

.catalogue .catalogue__vide p:not(.catalogue__vide-titre) {
	color: var(--wp--preset--color--texte-secondaire);
	font-size: 16px;
}

.catalogue .catalogue__vide .wp-block-button__link {
	height: 48px;
	min-height: 48px;
	padding: 0 24px;
	font-size: 16px;
}

/* Pagination : produits vus et jauge, puis « Voir plus » (sous 1280 px) ou numéros de page (desktop). */
.catalogue .pagination-catalogue {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	margin-top: 40px;
}

.pagination-catalogue__vus {
	color: var(--wp--preset--color--texte-secondaire);
	font-size: 15px;
	line-height: normal;
	white-space: nowrap;
}

.pagination-catalogue__vus strong {
	color: var(--wp--preset--color--texte);
}

.pagination-catalogue__vus--bureau,
.pagination-catalogue__pages {
	display: none;
}

.pagination-catalogue__jauge {
	width: 200px;
	height: 4px;
	overflow: hidden;
	border-radius: 4px;
	background: var(--wp--preset--color--beton);
}

.pagination-catalogue__jauge span {
	display: block;
	height: 100%;
	border-radius: 4px;
	background: var(--wp--preset--color--bleu);
	transition: width 0.3s ease;
}

.pagination-catalogue .pagination-catalogue__plus {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 320px;
	height: 48px;
	margin-top: 4px;
	border: 1.5px solid var(--wp--preset--color--bleu);
	border-radius: var(--wp--preset--border-radius--pilule);
	background: var(--wp--preset--color--blanc);
	color: var(--wp--preset--color--bleu);
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
}

.pagination-catalogue__plus:hover,
.pagination-catalogue__plus:focus-visible {
	background: var(--wp--preset--color--bleu);
	color: var(--wp--preset--color--blanc);
}

.pagination-catalogue__plus.est-en-cours {
	opacity: 0.6;
	pointer-events: none;
}

/* Réassurance du catalogue, sous la grille (sous 1280 px) ; masquée tant que les commandes en ligne sont fermées. */
.savonnerie-catalogue .reassurance.reassurance {
	margin-top: 48px;
}

.commandes-fermees .savonnerie-catalogue .reassurance.reassurance {
	display: none;
}

@media (min-width: 768px) {
	.catalogue .catalogue__corps {
		padding: 0 32px;
	}

	.catalogue .catalogue__outils {
		top: 72px;
		margin: 0 -32px;
	}

	.catalogue .catalogue__offre {
		margin: 0 -32px;
		padding: 10px 32px;
	}

	.catalogue .catalogue__resultats {
		padding-top: 24px;
	}

	.catalogue .filtres .wc-block-product-filters__overlay-dialog,
	.feuille__panneau {
		max-width: 720px;
	}

	.catalogue ul.catalogue__grille {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 32px 16px;
	}

	.catalogue .carte-produit .carte-produit__nom {
		font-size: 18px;
	}

	.catalogue .carte-produit .carte-produit__achat {
		margin-top: 2px;
	}
}

@media (max-width: 767px) {
	.catalogue .carte-produit .note__mot {
		display: none;
	}
}

/* Tablette paysage : barre d'outils complète et volet de filtres à gauche (masquable). */
@media (min-width: 1024px) {
	.catalogue .catalogue__corps {
		grid-template-areas: "outils outils" "filtres resultats";
		grid-template-columns: 240px minmax(0, 1fr);
		column-gap: 32px;
	}

	.catalogue.filtres-masques .catalogue__corps {
		grid-template-areas: "outils" "resultats";
		grid-template-columns: minmax(0, 1fr);
	}

	.catalogue .catalogue__outils {
		align-items: center;
		gap: 16px;
		height: 66px;
		padding: 0 32px;
	}

	.catalogue .outils-catalogue {
		display: contents;
	}

	.outils-catalogue__bouton,
	.outils-catalogue__separateur,
	.catalogue .catalogue__offre {
		display: none;
	}

	.outils-catalogue__volet {
		display: inline-flex;
		flex: none;
		order: 1;
		height: 44px;
		padding: 0 18px;
		border: 1.5px solid var(--wp--preset--color--texte);
		border-radius: var(--wp--preset--border-radius--pilule);
		background: var(--wp--preset--color--blanc);
		font-size: 15px;
	}

	.outils-catalogue__volet .outils-catalogue__badge {
		min-width: 22px;
		height: 22px;
		padding: 0 6px;
		background: var(--wp--preset--color--bleu);
		font-size: 12.5px;
	}

	.outils-catalogue__nombre {
		display: block;
		flex: none;
		order: 2;
	}

	.catalogue .filtres-actifs {
		display: block;
		flex: 1;
		order: 3;
		min-width: 0;
		overflow-x: auto;
		scrollbar-width: none;
	}

	.catalogue .catalogue__tri {
		display: flex;
		flex: none;
		order: 4;
		align-items: center;
		gap: 10px;
		margin-left: auto;
	}

	.catalogue__tri-libelle {
		color: var(--wp--preset--color--texte-secondaire);
		font-size: 15px;
		line-height: normal;
	}

	.catalogue .catalogue__tri .wc-block-catalog-sorting select.orderby {
		height: 44px;
		padding: 0 42px 0 18px;
		border: 1px solid var(--wp--custom--couleur--bordure);
		border-radius: var(--wp--preset--border-radius--pilule);
		background: var(--wp--preset--color--blanc) url(../images/icones/chevron-bas.svg) right 16px center / 12px no-repeat;
		color: var(--wp--preset--color--texte);
		font-family: inherit;
		font-size: 15px;
		font-weight: 600;
		cursor: pointer;
		appearance: none;
	}

	.catalogue .wc-block-catalog-sorting .woocommerce-ordering {
		margin: 0;
	}

	/* Filtres actifs : pastilles retirables et « Tout effacer ». */
	.catalogue .filtres-actifs .wc-block-product-filters__content,
	.catalogue .filtres-actifs .wp-block-woocommerce-product-filter-active {
		display: flex;
		align-items: center;
		gap: 4px;
		white-space: nowrap;
	}

	.catalogue .wc-block-product-filter-removable-chips__items {
		display: flex;
		gap: 4px;
		margin: 0;
		padding: 0;
		list-style: none;
	}

	.catalogue .wc-block-product-filter-removable-chips__item {
		display: inline-flex;
		align-items: center;
		gap: 8px;
		height: 34px;
		margin: 5px 0;
		padding: 0 12px 0 14px;
		border: 0;
		border-radius: var(--wp--preset--border-radius--pilule);
		background: var(--wp--preset--color--pastel-bleu);
		color: var(--wp--preset--color--texte);
		font-size: 14px;
		font-weight: 600;
	}

	.catalogue .wc-block-product-filter-removable-chips__remove {
		display: grid;
		place-items: center;
		width: 16px;
		height: 16px;
		padding: 0;
		border: 0;
		background: transparent;
		color: inherit;
		cursor: pointer;
	}

	.catalogue .wc-block-product-filter-removable-chips__remove svg {
		width: 16px;
		height: 16px;
	}

	.catalogue .filtres-actifs .wc-block-product-filter-clear-button .wp-block-button__link {
		padding: 0 8px;
		font-size: 14px;
	}

	/* Volet de filtres : le panneau natif affiché en colonne. */
	/* z-index auto : la colonne reste sous le header et ses menus déroulants (le 95 ne sert qu'à la feuille mobile). */
	.catalogue .filtres {
		position: sticky;
		z-index: auto;
		top: 154px;
		display: block;
		grid-area: filtres;
		width: auto;
		height: auto;
		max-height: calc(100vh - 170px);
		margin-top: 24px;
		padding-right: 6px;
		overflow-y: auto;
		overscroll-behavior: contain;
		scrollbar-width: thin;
	}

	.catalogue.filtres-masques .filtres {
		display: none;
	}

	.catalogue .filtres .wc-block-product-filters__overlay,
	.catalogue .filtres.is-overlay-opened .wc-block-product-filters__overlay {
		position: static;
		background: none;
		pointer-events: auto;
	}

	.catalogue .filtres .wc-block-product-filters__overlay-wrapper {
		height: auto;
	}

	.catalogue .filtres .wc-block-product-filters__overlay-dialog,
	.catalogue .filtres.is-overlay-opened .wc-block-product-filters__overlay-dialog {
		position: static;
		width: auto;
		max-width: none;
		height: auto;
		border-radius: 0;
		background: none;
		box-shadow: none;
		transform: none;
	}

	.catalogue .filtres .wc-block-product-filters__overlay-dialog::before,
	.catalogue .filtres .wc-block-product-filters__overlay-header,
	.catalogue .filtres .wc-block-product-filters__overlay-footer {
		display: none;
	}

	.catalogue .filtres .wc-block-product-filters__overlay-content {
		padding: 0;
		overflow: visible;
	}

	.catalogue .filtres .filtres__entete {
		position: static;
		height: auto;
		min-height: 44px;
		border-bottom: 1px solid var(--wp--preset--color--texte);
	}

	.catalogue .filtres__titre {
		font-size: 22px;
	}

	.catalogue .filtres__effacer .wp-block-button__link {
		padding: 0;
		font-size: 14px;
	}

	.filtre__bascule {
		min-height: 52px;
		font-size: 16px;
	}

	.catalogue .wc-block-product-filter-checkbox-list__label,
	.navigation-categories__liste a {
		gap: 10px;
		min-height: 44px;
		font-size: 15px;
	}

	.catalogue .wc-block-product-filter-checkbox-list__input-wrapper,
	.catalogue input[type="checkbox"].wc-block-product-filter-checkbox-list__input,
	.navigation-categories__case {
		width: 20px;
		height: 20px;
		border-radius: 5px;
	}

	.catalogue .wc-block-product-filter-checkbox-list__count span,
	.navigation-categories__nombre {
		font-size: 13px;
	}

	.catalogue .filtre-pastilles .wc-block-product-filter-checkbox-list__items {
		padding-bottom: 14px;
	}

	.catalogue .filtre-pastilles .wc-block-product-filter-checkbox-list__label {
		padding: 0 14px;
		font-size: 14px;
	}

	.catalogue .filtre-pastilles .wc-block-product-filter-checkbox-list__count span {
		font-size: 14px;
	}

	.catalogue ul.catalogue__grille {
		gap: 36px 20px;
	}

	.catalogue.filtres-masques ul.catalogue__grille {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	/* L'encart 3+1 occupe toute la 3e rangée, quel que soit le nombre de colonnes. */
	.catalogue ul.catalogue__grille > .catalogue__encart {
		display: block;
		grid-row: 3;
		grid-column: 1 / -1;
	}
}

/* Desktop : colonne de filtres fixe à gauche, nombre de produits et tri au-dessus de la grille. */
@media (min-width: 1280px) {
	.catalogue .catalogue__corps {
		grid-template-areas: "filtres outils" "filtres resultats";
		grid-template-columns: 272px minmax(0, 1fr);
		align-items: start;
		column-gap: 48px;
		max-width: 1440px;
		margin: 0 auto;
		padding: 48px 80px 112px;
	}

	.catalogue .catalogue__outils {
		position: static;
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 0 20px;
		height: auto;
		margin: 0;
		padding: 0;
		border: 0;
		background: none;
	}

	/* Filet sous la première ligne (nombre et tri) ; les filtres actifs passent dessous. */
	.catalogue .catalogue__outils::after {
		content: "";
		grid-row: 1;
		grid-column: 1 / -1;
		align-self: end;
		height: 1px;
		background: var(--wp--preset--color--beton);
	}

	.outils-catalogue__volet {
		display: none;
	}

	.outils-catalogue__nombre {
		grid-row: 1;
		grid-column: 1;
		padding-bottom: 16px;
	}

	.outils-catalogue__nombre strong {
		font-size: 16px;
	}

	.outils-catalogue__univers {
		display: inline;
	}

	.catalogue .catalogue__tri {
		grid-row: 1;
		grid-column: 2;
		padding-bottom: 16px;
	}

	.catalogue__tri-libelle {
		font-size: 14px;
	}

	.catalogue .catalogue__tri .wc-block-catalog-sorting select.orderby {
		font-size: 14px;
	}

	.catalogue .filtres-actifs {
		grid-row: 2;
		grid-column: 1 / -1;
		overflow: visible;
	}

	.catalogue .filtres-actifs .wp-block-woocommerce-product-filter-active:not([hidden]) {
		flex-wrap: wrap;
		gap: 8px;
		padding-top: 16px;
		white-space: normal;
	}

	.catalogue .wc-block-product-filter-removable-chips__items {
		flex-wrap: wrap;
		gap: 8px;
	}

	.catalogue .wc-block-product-filter-removable-chips__item {
		margin: 0;
		font-size: 13px;
	}

	.catalogue .filtres-actifs .wc-block-product-filter-clear-button .wp-block-button__link {
		min-height: 34px;
		padding: 0 6px;
		color: var(--wp--preset--color--texte-secondaire);
		font-size: 13px;
		font-weight: 400;
	}

	.catalogue .catalogue__resultats {
		padding-top: 28px;
	}

	.catalogue .filtres,
	.catalogue.filtres-masques .filtres {
		top: 165px;
		display: block;
		max-height: calc(100vh - 185px);
		margin-top: 0;
		padding-right: 8px;
	}

	.catalogue .filtres .filtres__entete {
		align-items: baseline;
		justify-content: space-between;
		min-height: 0;
		padding-bottom: 16px;
	}

	.catalogue .filtres__titre {
		flex: none;
		font-size: 26px;
	}

	.catalogue .filtres__effacer .wp-block-button__link {
		min-height: 0;
		font-size: 13px;
	}

	.filtres__effacer-bureau {
		display: inline;
	}

	.filtres__effacer-mobile {
		display: none;
	}

	.catalogue .filtre-univers {
		display: block;
	}

	.catalogue .filtre.est-masque-bureau {
		display: none;
	}

	.filtre__bascule {
		min-height: 0;
		padding: 18px 0;
		font-size: 12px;
		font-weight: 700;
		letter-spacing: 0.14em;
		text-transform: uppercase;
	}

	.filtre__bascule::after {
		width: 13px;
		height: 13px;
	}

	.filtre__actifs {
		margin-left: 8px;
	}

	.catalogue .wc-block-product-filter-checkbox-list__items,
	.navigation-categories__liste,
	.catalogue .filtre-pastilles .wc-block-product-filter-checkbox-list__items {
		flex-direction: column;
		flex-wrap: nowrap;
		gap: 4px;
		padding: 0 0 18px;
	}

	.catalogue .wc-block-product-filter-checkbox-list__label,
	.navigation-categories__liste a,
	.catalogue .filtre-pastilles .wc-block-product-filter-checkbox-list__label {
		gap: 12px;
		width: 100%;
		min-height: 0;
		padding: 7px 0;
		border: 0;
		border-radius: 0;
		background: none;
		color: var(--wp--preset--color--texte);
		font-size: 14.5px;
		font-weight: 400;
	}

	.catalogue .filtre-pastilles .wc-block-product-filter-checkbox-list__item:has(:checked) .wc-block-product-filter-checkbox-list__label {
		background: none;
		color: var(--wp--preset--color--texte);
	}

	.catalogue .filtre-pastilles .wc-block-product-filter-checkbox-list__input-wrapper {
		position: relative;
		width: 19px;
		height: 19px;
		overflow: visible;
		clip-path: none;
	}

	.catalogue .filtre-pastilles .wc-block-product-filter-checkbox-list__text-wrapper {
		flex: 1;
		justify-content: space-between;
	}

	.catalogue .wc-block-product-filter-checkbox-list__input-wrapper,
	.catalogue input[type="checkbox"].wc-block-product-filter-checkbox-list__input,
	.navigation-categories__case {
		width: 19px;
		height: 19px;
	}

	.catalogue .wc-block-product-filter-checkbox-list__count span,
	.navigation-categories__nombre,
	.catalogue .filtre-pastilles .wc-block-product-filter-checkbox-list__count span {
		color: var(--wp--preset--color--texte-secondaire);
		font-size: 12.5px;
	}

	/* Pictos des types de peau, senteurs, usages et types de cheveux. */
	.catalogue .wc-block-product-filter-checkbox-list__text::before {
		content: none;
		flex: none;
		width: 24px;
		height: 24px;
		margin-right: 12px;
		background: var(--wp--preset--color--bleu);
		-webkit-mask: var(--picto) center / contain no-repeat;
		mask: var(--picto) center / contain no-repeat;
	}

	.catalogue .wc-block-product-filter-checkbox-list__text {
		display: inline-flex;
		align-items: center;
	}

	.catalogue .wc-block-product-filter-checkbox-list__item:is(:has([value="seche"]), :has([value="grasse"]), :has([value="mixte"]), :has([value="sensible"]), :has([value="normale"]), :has([value="florale"]), :has([value="fruitee"]), :has([value="boisee"]), :has([value="fraiche"]), :has([value="gourmande"]), :has([value="orientale"]), :has([value="citronnee"]), :has([value="poudree"]), :has([value="sans-parfum"]), :has([value="linge"]), :has([value="detachant"]), :has([value="menage"]), :has([value="normaux"]), :has([value="gras"]), :has([value="secs"]), :has([value="sensibles"])) .wc-block-product-filter-checkbox-list__text::before {
		content: "";
	}

	/* Senteurs sans picto (Iodé, Picardie…) : emplacement vide, pour aligner leurs libellés sur les autres. */
	.catalogue .filtre-senteur .wc-block-product-filter-checkbox-list__item {
		--picto: linear-gradient(transparent, transparent);
	}

	.catalogue .filtre-senteur .wc-block-product-filter-checkbox-list__text::before {
		content: "";
	}

	.catalogue .wc-block-product-filter-checkbox-list__item:has([value="seche"]) { --picto: url(../images/pictos/seche.svg); }
	.catalogue .wc-block-product-filter-checkbox-list__item:has([value="grasse"]) { --picto: url(../images/pictos/grasse.svg); }
	.catalogue .wc-block-product-filter-checkbox-list__item:has([value="mixte"]) { --picto: url(../images/pictos/mixte.svg); }
	.catalogue .wc-block-product-filter-checkbox-list__item:has([value="sensible"]) { --picto: url(../images/pictos/sensible.svg); }
	.catalogue .wc-block-product-filter-checkbox-list__item:has([value="normale"]) { --picto: url(../images/pictos/normale.svg); }
	.catalogue .wc-block-product-filter-checkbox-list__item:has([value="florale"]) { --picto: url(../images/pictos/florale.svg); }
	.catalogue .wc-block-product-filter-checkbox-list__item:has([value="fruitee"]) { --picto: url(../images/pictos/fruitee.svg); }
	.catalogue .wc-block-product-filter-checkbox-list__item:has([value="boisee"]) { --picto: url(../images/pictos/boisee.svg); }
	.catalogue .wc-block-product-filter-checkbox-list__item:has([value="fraiche"]) { --picto: url(../images/pictos/fraiche.svg); }
	.catalogue .wc-block-product-filter-checkbox-list__item:has([value="gourmande"]) { --picto: url(../images/pictos/gourmande.svg); }
	.catalogue .wc-block-product-filter-checkbox-list__item:has([value="orientale"]) { --picto: url(../images/pictos/orientale.svg); }
	.catalogue .wc-block-product-filter-checkbox-list__item:has([value="citronnee"]) { --picto: url(../images/pictos/citronnee.svg); }
	.catalogue .wc-block-product-filter-checkbox-list__item:has([value="poudree"]) { --picto: url(../images/pictos/poudree.svg); }
	.catalogue .wc-block-product-filter-checkbox-list__item:has([value="sans-parfum"]) { --picto: url(../images/pictos/sans.svg); }
	.catalogue .wc-block-product-filter-checkbox-list__item:has([value="linge"]) { --picto: url(../images/pictos/linge.svg); }
	.catalogue .wc-block-product-filter-checkbox-list__item:has([value="detachant"]) { --picto: url(../images/pictos/detachant.svg); }
	.catalogue .wc-block-product-filter-checkbox-list__item:has([value="menage"]) { --picto: url(../images/pictos/menage.svg); }
	.catalogue .wc-block-product-filter-checkbox-list__item:has([value="normaux"]) { --picto: url(../images/pictos/ch-normaux.svg); }
	.catalogue .wc-block-product-filter-checkbox-list__item:has([value="gras"]) { --picto: url(../images/pictos/ch-gras.svg); }
	.catalogue .wc-block-product-filter-checkbox-list__item:has([value="secs"]) { --picto: url(../images/pictos/ch-secs.svg); }
	.catalogue .wc-block-product-filter-checkbox-list__item:has([value="sensibles"]) { --picto: url(../images/pictos/ch-sensibles.svg); }

	.catalogue ul.catalogue__grille,
	.catalogue.filtres-masques ul.catalogue__grille {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 44px 24px;
	}

	/* En desktop, l'encart n'apparaît qu'avec plus de 6 produits (7 cartes + l'encart). */
	.catalogue ul.catalogue__grille:not(:has(> :nth-child(8))) > .catalogue__encart {
		display: none;
	}

	/* Cartes de la grille en desktop : présentation complète (sous-titre, nom sur une ligne, bouton à droite du prix). */
	.catalogue .carte-produit .carte-produit__nom {
		display: block;
		overflow: visible;
		-webkit-line-clamp: unset;
		font-size: var(--wp--preset--font-size--titre-carte);
	}

	.catalogue .carte-produit .carte-produit__sous-titre {
		display: block;
	}

	.catalogue .badge-produit__long,
	.catalogue .ajout-panier__long {
		display: inline;
	}

	.catalogue .badge-produit__court,
	.catalogue .ajout-panier__court {
		display: none;
	}

	.catalogue .carte-produit .ajout-panier {
		flex: none;
		height: 42px;
	}

	.catalogue .catalogue__vide {
		gap: 14px;
		margin-top: 0;
		padding: 56px 40px;
		border-radius: 20px;
	}

	.catalogue .catalogue__vide-titre {
		font-size: 28px;
	}

	.catalogue .catalogue__vide p:not(.catalogue__vide-titre) {
		font-size: 15px;
	}

	.catalogue .catalogue__vide .wp-block-button__link {
		height: 50px;
		min-height: 50px;
		padding: 0 26px;
		font-size: 15px;
	}

	.catalogue .pagination-catalogue {
		gap: 16px;
		margin-top: 72px;
	}

	.pagination-catalogue__vus--bureau {
		display: block;
		font-size: 14px;
	}

	.pagination-catalogue__vus--mobile,
	.pagination-catalogue .pagination-catalogue__plus {
		display: none;
	}

	.pagination-catalogue__jauge {
		width: 240px;
		height: 2px;
		border-radius: 2px;
	}

	.pagination-catalogue__jauge span {
		border-radius: 2px;
		background: var(--wp--preset--color--texte);
	}

	.pagination-catalogue .pagination-catalogue__pages {
		display: flex;
		align-items: center;
		gap: 6px;
		margin-top: 6px;
	}

	.pagination-catalogue__page {
		display: grid;
		place-items: center;
		width: 44px;
		height: 44px;
		border: 1px solid var(--wp--custom--couleur--bordure);
		border-radius: 50%;
		background: var(--wp--preset--color--blanc);
		color: var(--wp--preset--color--texte);
		font-size: 14.5px;
		font-weight: 600;
		text-decoration: none;
	}

	.pagination-catalogue__page.est-actuelle {
		border-color: var(--wp--preset--color--texte);
		background: var(--wp--preset--color--texte);
		color: var(--wp--preset--color--blanc);
	}

	.pagination-catalogue__page.est-precedente::before,
	.pagination-catalogue__page.est-suivante::before {
		content: "";
		width: 15px;
		height: 15px;
		background: var(--wp--preset--color--texte);
		-webkit-mask: url(../images/icones/fleche-lien.svg) center / contain no-repeat;
		mask: url(../images/icones/fleche-lien.svg) center / contain no-repeat;
	}

	.pagination-catalogue__page.est-precedente::before {
		-webkit-mask-image: url(../images/icones/fleche-lien-gauche.svg);
		mask-image: url(../images/icones/fleche-lien-gauche.svg);
	}

	.pagination-catalogue__page[aria-disabled="true"] {
		opacity: 0.35;
	}

	.savonnerie-catalogue .reassurance.reassurance {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.feuille__panneau,
	.feuille__voile,
	.catalogue .filtres .wc-block-product-filters__overlay,
	.catalogue .filtres .wc-block-product-filters__overlay-dialog {
		transition: none;
	}
}
