/* ============================================================
   Claude Filtre — Design coherent avec Frexolaire
   Vert sapin / crème / accent doré, micro-interactions pro
   ============================================================ */

:root {
	/* Couleurs de marque (overridables depuis le panneau Design). */
	--fe-color-primary:  #025048;
	--fe-color-accent:   #036a5e;
	--fe-color-gold:     #d4a017;
	--fe-text:           #1f2a26;
	--fe-muted:          #6b7d76;
	--fe-bg:             #ffffff;
	--fe-surface:        #faf9f5;
	--fe-border:         #e2ddd0;
	--fe-hover:          #f3f1ea;
	--fe-selected:       #025048;

	/* Boutons. */
	--fe-btn-bg:         #025048;
	--fe-btn-text:       #ffffff;
	--fe-btn-radius:     10px;
	--fe-btn-padding:    11px 18px;

	/* Typographie. */
	--fe-font-size:      14px;
	--fe-font-weight:    400;
	--fe-title-size:     13px;
	--fe-title-weight:   600;
	--fe-title-transform: uppercase;

	/* Espacement & formes. */
	--fe-gap:            18px;
	--fe-radius:         10px;
	--fe-padding:        18px;
	--fe-block-border:   1px;
	--fe-shadow:         0 1px 2px rgba(0,0,0,.04), 0 4px 12px rgba(15,77,58,.06);

	/* Inputs custom. */
	--fe-input-size:     18px;
	--fe-input-radius:   4px;

	/* Pastilles. */
	--fe-swatch-size:    24px;
	--fe-swatch-gap:     8px;
	--fe-swatch-border:  #cccccc;

	/* Slider. */
	--fe-slider-track:   #e2ddd0;
	--fe-slider-fill:    #025048;
	--fe-slider-handle:  #d4a017;
	--fe-slider-height:  4px;
	--fe-slider-handle-size: 18px;

	--fe-transition:     180ms;
}

/* ---------- Conteneur ---------- */
.fe-filter-wrap {
	color: var(--fe-text);
	font-size: var(--fe-font-size);
	font-weight: var(--fe-font-weight);
	font-family: inherit;
}

.fe-filter-form {
	display: flex;
	flex-direction: column;
	gap: var(--fe-gap);
	padding: var(--fe-padding);
	background: var(--fe-bg);
	border: var(--fe-block-border) solid var(--fe-border);
	border-radius: var(--fe-radius);
	box-shadow: var(--fe-shadow);
}

.fe-filter-wrap[data-layout="horizontal"] .fe-filter-form {
	flex-direction: row;
	flex-wrap: wrap;
	align-items: end;
}

/* ---------- Blocs ---------- */
.fe-block {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.fe-block + .fe-block {
	border-top: 1px solid var(--fe-border);
	padding-top: var(--fe-gap);
	margin-top: 0;
}
.fe-block__title {
	font-size: var(--fe-title-size);
	font-weight: var(--fe-title-weight);
	text-transform: var(--fe-title-transform);
	letter-spacing: .04em;
	color: var(--fe-color-primary);
	margin: 0;
}
.fe-block ul.fe-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.fe-count {
	color: var(--fe-muted);
	font-size: 12px;
	margin-left: auto;
	flex-shrink: 0;
}

/* ---------- Inputs ---------- */
.fe-filter-form input[type="search"],
.fe-filter-form input[type="number"],
.fe-filter-form input[type="text"],
.fe-filter-form select {
	width: 100%;
	padding: 9px 12px;
	border: 1px solid var(--fe-border);
	border-radius: var(--fe-input-radius);
	background: var(--fe-bg);
	color: var(--fe-text);
	font: inherit;
	transition: border-color var(--fe-transition) ease,
	            box-shadow var(--fe-transition) ease,
	            background var(--fe-transition) ease;
}
.fe-filter-form input:hover,
.fe-filter-form select:hover { border-color: var(--fe-color-primary); }
.fe-filter-form input:focus,
.fe-filter-form select:focus {
	outline: none;
	border-color: var(--fe-color-primary);
	box-shadow: 0 0 0 3px rgba(15, 77, 58, .12);
	background: #fff;
}

/* Recherche : icône loupe à gauche. */
.fe-block-search { position: relative; }
.fe-block-search input[type="search"] {
	padding-left: 36px;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7d76' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='7'/><line x1='20' y1='20' x2='16.65' y2='16.65'/></svg>");
	background-repeat: no-repeat;
	background-position: 12px center;
}

/* Cases / radios personnalisés. */
.fe-filter-form input[type="checkbox"],
.fe-filter-form input[type="radio"] {
	appearance: none;
	-webkit-appearance: none;
	width: var(--fe-input-size);
	height: var(--fe-input-size);
	border: 1.5px solid #c9c2af;
	background: var(--fe-bg);
	flex-shrink: 0;
	margin-right: 8px;
	cursor: pointer;
	transition: all var(--fe-transition) ease;
	position: relative;
}
.fe-filter-form input[type="checkbox"] { border-radius: var(--fe-input-radius); }
.fe-filter-form input[type="radio"] { border-radius: 50%; }

.fe-filter-form input[type="checkbox"]:hover,
.fe-filter-form input[type="radio"]:hover { border-color: var(--fe-color-primary); }

.fe-filter-form input[type="checkbox"]:checked,
.fe-filter-form input[type="radio"]:checked {
	background: var(--fe-color-primary);
	border-color: var(--fe-color-primary);
}
.fe-filter-form input[type="checkbox"]:checked::after {
	content: '';
	position: absolute;
	left: 5px; top: 1px;
	width: 5px; height: 9px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}
.fe-filter-form input[type="radio"]:checked::after {
	content: '';
	position: absolute;
	inset: 4px;
	background: #fff;
	border-radius: 50%;
}

/* Labels cliquables. */
.fe-filter-form label {
	display: flex;
	align-items: center;
	cursor: pointer;
	padding: 5px 8px;
	border-radius: var(--fe-input-radius);
	transition: background var(--fe-transition) ease;
}
.fe-filter-form label:hover { background: var(--fe-hover); }

/* ---------- Pastilles couleur ---------- */
.fe-swatches {
	list-style: none;
	margin: 0; padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: var(--fe-swatch-gap);
}
.fe-swatch {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	position: relative;
}
.fe-swatch__dot {
	width: var(--fe-swatch-size);
	height: var(--fe-swatch-size);
	display: inline-block;
	background: var(--fe-color);
	border: 1px solid var(--fe-swatch-border);
	transition: transform var(--fe-transition) ease, box-shadow var(--fe-transition) ease;
}
.fe-swatch--circle .fe-swatch__dot { border-radius: 50%; }
.fe-swatch--square .fe-swatch__dot { border-radius: 4px; }
.fe-swatch--pill   .fe-swatch__dot { width: calc(var(--fe-swatch-size) * 1.6); border-radius: 999px; }
.fe-swatch:hover .fe-swatch__dot   { transform: scale(1.08); }
.fe-swatch.is-active .fe-swatch__dot,
.fe-swatch input:checked + .fe-swatch__dot {
	box-shadow: 0 0 0 2px var(--fe-bg), 0 0 0 4px var(--fe-color-primary);
}
.fe-swatch input { position: absolute; opacity: 0; pointer-events: none; }

/* ---------- Slider de prix / range ---------- */
.fe-block-range .fe-range-inputs {
	display: flex;
	align-items: center;
	gap: 10px;
}
.fe-block-range .fe-range-inputs > span {
	color: var(--fe-muted);
	font-weight: 600;
}

.fe-slider {
	position: relative;
	height: var(--fe-slider-handle-size);
	margin: 16px 8px 8px;
	user-select: none;
	touch-action: none;
}
.fe-slider__track {
	position: absolute;
	left: 0; right: 0;
	top: 50%;
	transform: translateY(-50%);
	height: var(--fe-slider-height);
	background: var(--fe-slider-track);
	border-radius: 999px;
}
.fe-slider__fill {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	height: var(--fe-slider-height);
	background: var(--fe-slider-fill);
	border-radius: 999px;
	left: 0;
	width: 0%;
	pointer-events: none;
}
.fe-slider__handle {
	position: absolute;
	top: 50%;
	width: var(--fe-slider-handle-size);
	height: var(--fe-slider-handle-size);
	margin-left: calc(var(--fe-slider-handle-size) * -0.5);
	transform: translateY(-50%);
	background: var(--fe-slider-handle);
	border: 2px solid #fff;
	border-radius: 50%;
	cursor: grab;
	box-shadow: 0 2px 6px rgba(0, 0, 0, .25), 0 0 0 1px rgba(15, 77, 58, .3);
	transition: transform 120ms ease, box-shadow 120ms ease;
	z-index: 2;
}
.fe-slider__handle:hover {
	transform: translateY(-50%) scale(1.12);
	box-shadow: 0 3px 8px rgba(0, 0, 0, .3), 0 0 0 1px rgba(15, 77, 58, .5);
}
.fe-slider__handle:active,
.fe-slider__handle:focus {
	cursor: grabbing;
	outline: none;
	box-shadow: 0 0 0 6px rgba(212, 160, 23, .25), 0 2px 6px rgba(0, 0, 0, .25);
}

/* ---------- Boutons (Rechercher / Réinitialiser) ---------- */
.fe-actions {
	display: flex;
	gap: 8px;
	margin-top: 4px;
}
.fe-filter-form button.fe-apply,
.fe-filter-form button.fe-reset,
.fe-filter-form button[type="submit"] {
	flex: 1 1 0;
	min-width: 0;
	padding: 10px 12px;
	font: 600 clamp(11px, 2.5vw, 13px) / 1.2 inherit;
	letter-spacing: .02em;
	text-transform: uppercase;
	border-radius: 10px;
	border: 1px solid var(--fe-color-primary);
	cursor: pointer;
	box-sizing: border-box;
	min-height: 42px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	transition: background 200ms ease, color 200ms ease;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* Bouton primaire : fond vert / texte blanc → légèrement assombri au survol. */
.fe-filter-form button.fe-apply,
.fe-filter-form button[type="submit"] {
	background: var(--fe-color-primary);
	color: #ffffff;
}
.fe-filter-form button.fe-apply:hover,
.fe-filter-form button.fe-apply:focus,
.fe-filter-form button[type="submit"]:hover,
.fe-filter-form button[type="submit"]:focus {
	filter: brightness(.92);
	outline: none;
}

/* Bouton secondaire : fond blanc / texte vert → légèrement assombri au survol. */
.fe-filter-form button.fe-reset {
	background: #ffffff;
	color: var(--fe-color-primary);
}
.fe-filter-form button.fe-reset:hover,
.fe-filter-form button.fe-reset:focus {
	background: #f3f1ea;
	border-color: var(--fe-color-accent, var(--fe-color-primary));
	outline: none;
}

/* ---------- Toggles disponibilité ---------- */
.fe-block-toggles {
	border: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.fe-block-toggles label {
	background: var(--fe-surface);
	border: 1px solid var(--fe-border);
}

/* ---------- Mobile launcher (positionné sous le titre de la page) ---------- */
.fe-mobile-launcher {
	display: none;
	position: relative;
	margin: 12px 0 16px;
	align-items: center;
	gap: 10px;
	padding: 11px 18px;
	background: var(--fe-color-primary);
	color: #fff;
	border: 1px solid var(--fe-color-primary);
	border-radius: var(--fe-btn-radius);
	box-shadow: 0 4px 12px rgba(2, 80, 72, .18);
	cursor: pointer;
	font: 600 13px/1 inherit;
	letter-spacing: .04em;
	text-transform: uppercase;
	width: max-content;
	max-width: 100%;
	transition: background 220ms ease,
	            transform 220ms ease,
	            box-shadow 220ms ease,
	            padding 220ms ease,
	            border-radius 220ms ease;
}
.fe-mobile-launcher:hover,
.fe-mobile-launcher:focus {
	background: var(--fe-color-accent);
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(2, 80, 72, .28);
	outline: none;
}
.fe-mobile-launcher__icon { font-size: 18px; line-height: 1; }
.fe-mobile-launcher__label { transition: max-width 220ms ease, opacity 220ms ease, margin 220ms ease; }
.fe-mobile-launcher__badge {
	background: var(--fe-color-gold);
	color: #1f2a26;
	min-width: 22px;
	height: 22px;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	font-weight: 700;
	padding: 0 7px;
	letter-spacing: 0;
}

/* Quand l'utilisateur scrolle vers le bas, le bouton devient sticky en haut
   à gauche et se réduit à une pastille ronde avec juste l'icône.
   Le `top` est posé sous le header sticky du thème (Astra Pro ≈ 64px). */
.fe-mobile-launcher.is-stuck {
	position: fixed;
	top: 80px;
	left: 12px;
	margin: 0;
	padding: 11px;
	border-radius: 50%;
	z-index: 99;
	box-shadow: 0 6px 18px rgba(2, 80, 72, .35);
}
.fe-mobile-launcher.is-stuck .fe-mobile-launcher__label {
	max-width: 0;
	opacity: 0;
	margin: 0;
	overflow: hidden;
}

/* ---------- En-tête mobile + backdrop ---------- */
.fe-mobile-head { display: none; }
.fe-mobile-backdrop { display: none; }

/* ---------- États ---------- */
.fe-loading {
	opacity: .55;
	pointer-events: none;
	transition: opacity 200ms ease;
	min-height: 120px;
}

/* Indentation arborescente — toujours visible, avec barre de hiérarchie. */
.fe-tree { list-style: none; margin: 0; padding: 0; }
.fe-tree__item { margin: 0; padding: 0; }
.fe-tree__item--depth-1 {
	padding-left: 24px;
	position: relative;
}
.fe-tree__item--depth-1::before {
	content: '';
	position: absolute;
	left: 12px;
	top: 0;
	bottom: 0;
	width: 1px;
	background: var(--fe-border);
}
.fe-tree__item--depth-2 { padding-left: 48px; }
.fe-tree__item--depth-2::before { left: 36px; content: ''; position: absolute; top: 0; bottom: 0; width: 1px; background: var(--fe-border); }
.fe-tree__item--depth-1 > label,
.fe-tree__item--depth-2 > label {
	color: var(--fe-text);
	font-size: .94em;
	opacity: .9;
}

/* Show more. */
.fe-list .fe-hidden { display: none; }
.fe-show-more {
	margin-top: 6px;
	background: none;
	border: 0;
	padding: 4px 0;
	color: var(--fe-color-primary);
	cursor: pointer;
	font: 600 12px/1.4 inherit;
	text-transform: uppercase;
	letter-spacing: .04em;
	transition: color var(--fe-transition) ease;
}
.fe-show-more:hover { color: var(--fe-color-accent); }
.fe-show-more::after { content: ' →'; }

/* Collapsible. */
.fe-collapsible .fe-toggle {
	background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-align: left;
	color: inherit;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.fe-collapsible .fe-toggle::after {
	content: "−";
	font-weight: 400;
	font-size: 18px;
	transition: transform var(--fe-transition) ease;
	color: var(--fe-muted);
}
.fe-collapsible.is-collapsed .fe-toggle::after { content: "+"; }
.fe-collapsible.is-collapsed .fe-list,
.fe-collapsible.is-collapsed .fe-show-more,
.fe-collapsible.is-collapsed .fe-swatches { display: none; }

/* No results. */
.fe-no-results {
	list-style: none !important;
	text-align: center;
	padding: 40px 20px !important;
	color: var(--fe-muted);
	background: var(--fe-surface);
	border-radius: var(--fe-radius);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.fe-filter-wrap[data-layout="horizontal"] .fe-filter-form { flex-direction: column; }
}

@media (max-width: 782px) {
	/* Bouton fixe en haut à gauche. */
	.fe-mobile-launcher { display: inline-flex; }

	/* Le wrap devient un panneau hors-écran qui glisse depuis la gauche. */
	.fe-filter-wrap {
		position: fixed;
		top: 0;
		left: 0;
		bottom: 0;
		width: min(88vw, 380px);
		z-index: 9999;
		background: var(--fe-bg);
		box-shadow: 4px 0 24px rgba(0, 0, 0, .18);
		transform: translateX(-100%);
		transition: transform 320ms cubic-bezier(.4, 0, .2, 1);
		overflow-y: auto;
		overscroll-behavior: contain;
		-webkit-overflow-scrolling: touch;
		max-width: none !important;
		margin: 0 !important;
		max-height: none !important;
	}
	body.fe-drawer-open .fe-filter-wrap { transform: translateX(0); }

	/* Backdrop. */
	.fe-mobile-backdrop {
		display: block;
		position: fixed;
		inset: 0;
		background: rgba(15, 30, 25, .55);
		z-index: 9998;
		opacity: 0;
		pointer-events: none;
		transition: opacity 320ms cubic-bezier(.4, 0, .2, 1);
		backdrop-filter: blur(2px);
	}
	body.fe-drawer-open .fe-mobile-backdrop {
		opacity: 1;
		pointer-events: auto;
	}

	/* En-tête mobile : flèche gauche + titre. */
	.fe-mobile-head {
		display: flex !important;
		align-items: center;
		gap: 12px;
		padding: 14px 16px;
		border-bottom: 1px solid var(--fe-border);
		font-weight: 700;
		font-size: 14px;
		color: var(--fe-color-primary);
		text-transform: uppercase;
		letter-spacing: .08em;
		position: sticky;
		top: 0;
		background: var(--fe-bg);
		z-index: 1;
	}
	.fe-mobile-head__title { flex: 1; }
	.fe-mobile-head__badge {
		background: var(--fe-color-gold);
		color: #1f2a26;
		padding: 2px 9px;
		border-radius: 999px;
		font-size: 11px;
		text-transform: none;
		letter-spacing: 0;
	}
	.fe-mobile-close {
		width: 36px;
		height: 36px;
		border-radius: 8px;
		border: 1px solid var(--fe-border);
		background: var(--fe-bg);
		color: var(--fe-color-primary);
		font-size: 26px;
		font-weight: 600;
		line-height: 1;
		cursor: pointer;
		padding: 0;
		display: flex;
		align-items: center;
		justify-content: center;
		flex-shrink: 0;
		transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
	}
	.fe-mobile-close:hover,
	.fe-mobile-close:focus {
		background: var(--fe-color-primary);
		color: #fff;
		border-color: var(--fe-color-primary);
		outline: none;
	}

	/* Le formulaire prend tout le tiroir, sans bordure. */
	.fe-filter-form {
		border: none !important;
		box-shadow: none !important;
		border-radius: 0 !important;
		padding: 18px 20px 110px !important;
	}

	/* Boutons collés en bas du tiroir. */
	.fe-actions {
		position: sticky;
		bottom: 0;
		background: var(--fe-bg);
		padding: 14px 0;
		margin-top: 16px;
		border-top: 1px solid var(--fe-border);
		z-index: 1;
	}

	body.fe-drawer-open { overflow: hidden; }
}

/* En desktop : tout reste comme avant. */
@media (min-width: 783px) {
	.fe-mobile-launcher,
	.fe-mobile-backdrop,
	.fe-mobile-head { display: none !important; }
}

/* Builder admin form rows alignment */
.fe-builder-table td { vertical-align: top; }
.fe-builder-table input,
.fe-builder-table select { width: 100%; }


/* ---------- Chips des filtres actifs ---------- */
.fe-chips {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0 0 18px;
	padding: 12px 14px;
	background: var(--fe-surface);
	border: 1px solid var(--fe-border);
	border-radius: var(--fe-radius);
}
.fe-chips__label {
	font-size: 13px;
	font-weight: 600;
	color: var(--fe-color-primary);
	text-transform: uppercase;
	letter-spacing: .04em;
	margin-right: 4px;
}
.fe-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 10px;
	background: var(--fe-bg);
	color: var(--fe-text);
	border: 1px solid var(--fe-border);
	border-radius: 999px;
	font-size: 13px;
	text-decoration: none;
	transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}
.fe-chip:hover,
.fe-chip:focus {
	background: var(--fe-color-primary);
	color: #fff;
	border-color: var(--fe-color-primary);
	outline: none;
	text-decoration: none;
}
.fe-chip__close {
	font-size: 16px;
	line-height: 1;
	font-weight: 600;
	margin-left: 2px;
	opacity: .7;
}
.fe-chip:hover .fe-chip__close { opacity: 1; }

.fe-chip--clear {
	background: transparent;
	color: var(--fe-color-primary);
	border-color: var(--fe-color-primary);
	font-weight: 600;
	margin-left: auto;
}
.fe-chip--clear:hover,
.fe-chip--clear:focus {
	background: var(--fe-color-primary);
	color: #fff;
}

/* ---------- Shortcode [fe_products] ---------- */
.fe-products ul.products {
	display: grid;
	gap: 20px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.fe-products--cols-2 ul.products { grid-template-columns: repeat(2, 1fr); }
.fe-products--cols-3 ul.products { grid-template-columns: repeat(3, 1fr); }
.fe-products--cols-4 ul.products { grid-template-columns: repeat(4, 1fr); }
.fe-products--cols-5 ul.products { grid-template-columns: repeat(5, 1fr); }
.fe-products--cols-6 ul.products { grid-template-columns: repeat(6, 1fr); }
.fe-products ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; }
@media (max-width: 1024px) {
	.fe-products ul.products { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 782px) {
	.fe-products ul.products { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 480px) {
	.fe-products ul.products { grid-template-columns: 1fr !important; }
}

/* =====================================================================
 * Refonte 03/10/2026 — maquette Figma « Filtre boutique » (YJZ8EcK5qidGDfBQ68nRnq).
 * Desktop : colonne claire à filets, sections repliables, pastilles de plages,
 * segment Mono/Tri, marques avec recherche et « Voir les N ».
 * Mobile (≤ 782 px) : feuille qui monte du bas, sections en accordéon,
 * pied collant « Tout effacer / Afficher N produits ».
 * ===================================================================== */
body .fe-filter-wrap {
	--fe-bg: #ffffff;
	--fe-border: #e2eae6;
	--fe-color-primary: #025048;
	--fe-text: #26313a;
	--fe-muted: #3d4852;
	--fe-input-size: 18px;
	--fe-input-radius: 5px;
}
body .fe-filter-wrap .fe-filter-form {
	gap: 0;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

/* En-tête « Filtrer · Tout effacer » */
.fe-filter-wrap .fe-head { display: flex; align-items: center; justify-content: space-between; margin: 0 0 14px; }
.fe-filter-wrap .fe-head__title { font-family: "Playfair Display", Georgia, serif; font-size: 20px; font-weight: 700; color: #01332e; }
.fe-filter-wrap .fe-reset--link { background: none; border: 0; padding: 4px 0; color: #025048; font-weight: 700; font-size: 14px; cursor: pointer; }
.fe-filter-wrap .fe-reset--link:hover { text-decoration: underline; }

/* Recherche */
body .fe-filter-wrap .fe-block-search { padding: 0 0 12px; border: 0; }
body .fe-filter-wrap .fe-block-search input[type="search"] { border-radius: 10px; padding-top: 10px; padding-bottom: 10px; font-size: 14px; background-color: #fff; }

/* Sections */
body .fe-filter-wrap .fe-block { border: 0; margin: 0; padding: 14px 0; min-width: 0; gap: 0; }
body .fe-filter-wrap .fe-block + .fe-block,
body .fe-filter-wrap .fe-block-search + .fe-block { border-top: 1px solid var(--fe-border); padding-top: 14px; }
body .fe-filter-wrap .fe-block__title { float: left; width: 100%; padding: 0; margin: 0; letter-spacing: 0; text-transform: none; }
body .fe-filter-wrap .fe-block__body { clear: both; padding-top: 10px; }
body .fe-filter-wrap .fe-collapsible.is-collapsed .fe-block__body { display: none; }
.fe-filter-wrap .fe-toggle {
	display: flex; align-items: center; gap: 8px; width: 100%;
	background: none; border: 0; padding: 4px 0; margin: 0; cursor: pointer; text-align: left;
	font: 700 15px/1.3 inherit; color: #01332e;
}
.fe-filter-wrap .fe-toggle:hover, .fe-filter-wrap .fe-toggle:focus { background: none; color: #01332e; }
.fe-filter-wrap .fe-toggle:focus-visible { outline: 2px solid #d4af37; outline-offset: 2px; border-radius: 4px; }
.fe-filter-wrap .fe-toggle__label { flex: 1 1 auto; min-width: 0; }
.fe-filter-wrap .fe-toggle__resume { flex: 0 1 auto; font-size: 13px; font-weight: 600; color: #137c6b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 55%; }
.fe-filter-wrap .fe-toggle::after {
	content: ""; width: 8px; height: 8px; flex: 0 0 8px; margin: 0 4px 0 6px;
	border: solid #3d4852; border-width: 0 2px 2px 0; transform: rotate(-135deg) translate(-2px, -2px);
	transition: transform .2s ease;
}
.fe-filter-wrap .fe-collapsible.is-collapsed .fe-toggle::after { transform: rotate(45deg) translate(-2px, -2px); }
.fe-filter-wrap .fe-toggle__resume:empty { display: none; }

/* Options à cocher */
body .fe-filter-wrap .fe-block ul.fe-list { gap: 0; }
body .fe-filter-wrap .fe-opt label { display: flex; align-items: center; gap: 2px; padding: 7px 8px; border-radius: 8px; font-size: 15px; color: var(--fe-text); margin: 0; }
body .fe-filter-wrap .fe-opt label:hover { background: #f4f8f6; }
body .fe-filter-wrap .fe-opt.is-on label { background: #f4f8f6; font-weight: 600; color: #01332e; }
body .fe-filter-wrap .fe-count { font-size: 13px; color: var(--fe-muted); font-variant-numeric: tabular-nums; }
body .fe-filter-wrap .fe-list li.fe-hidden { display: none; }
body .fe-filter-wrap .fe-block.is-searching .fe-list li.fe-hidden { display: list-item; }
body .fe-filter-wrap .fe-block.is-searching .fe-show-more { display: none; }
.fe-filter-wrap .fe-term-search { margin: 0 0 6px; padding: 7px 10px 7px 32px !important; font-size: 13px !important; border-radius: 8px !important; background-color: #f4f8f6 !important; border-color: transparent !important;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%233d4852' stroke-width='2' stroke-linecap='round'><circle cx='11' cy='11' r='7'/><line x1='20' y1='20' x2='16.65' y2='16.65'/></svg>") !important;
	background-repeat: no-repeat !important; background-position: 10px center !important; }
.fe-filter-wrap .fe-show-more { background: none; border: 0; padding: 8px; margin-top: 2px; color: #025048; font-weight: 700; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.fe-filter-wrap .fe-show-more::after { content: ""; width: 7px; height: 7px; border: solid #025048; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); }

/* Segment Mono / Tri */
body .fe-filter-wrap .fe-block ul.fe-segment { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: #f4f8f6; border-radius: 10px; padding: 3px; }
body .fe-filter-wrap .fe-segment .fe-opt label { justify-content: center; gap: 4px; padding: 8px 6px; font-size: 13px; font-weight: 600; color: var(--fe-muted); background: none; }
body .fe-filter-wrap .fe-segment .fe-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
body .fe-filter-wrap .fe-segment .fe-opt.is-on label { background: #fff; color: #01332e; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
body .fe-filter-wrap .fe-segment .fe-count { margin-left: 0; font-size: 12px; }
body .fe-filter-wrap .fe-segment .fe-opt label:has(input:focus-visible) { outline: 2px solid #d4af37; outline-offset: 1px; }

/* Pastilles de plages */
.fe-filter-wrap .fe-pills { display: flex; flex-wrap: wrap; gap: 6px; }
body .fe-filter-wrap label.fe-pill {
	position: relative; display: inline-flex; align-items: center; gap: 6px; margin: 0;
	padding: 7px 12px; border: 1px solid var(--fe-border); border-radius: 999px; background: #fff;
	font-size: 13px; font-weight: 600; color: var(--fe-text); cursor: pointer; transition: background .15s ease, border-color .15s ease, color .15s ease;
}
body .fe-filter-wrap label.fe-pill:hover { border-color: #025048; }
body .fe-filter-wrap .fe-pill input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
body .fe-filter-wrap .fe-pill .fe-count { margin-left: 0; font-size: 12px; font-weight: 400; color: inherit; opacity: .65; }
body .fe-filter-wrap label.fe-pill.is-on,
body .fe-filter-wrap label.fe-pill:has(input:checked) { background: #025048; border-color: #025048; color: #fff; }
body .fe-filter-wrap label.fe-pill:has(input:focus-visible) { outline: 2px solid #d4af37; outline-offset: 2px; }

/* Prix TTC */
.fe-filter-wrap .fe-price-inputs { display: flex; align-items: center; gap: 8px; margin-top: 10px; color: var(--fe-muted); }
.fe-filter-wrap .fe-price-field { flex: 1; padding: 0 !important; }
body .fe-filter-wrap .fe-price-field input[type="number"] { border-radius: 8px; padding: 8px 10px; font-size: 14px; -moz-appearance: textfield; }
.fe-filter-wrap .fe-price-field input::-webkit-outer-spin-button,
.fe-filter-wrap .fe-price-field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Ancien curseur et anciens boutons (desktop : application automatique) */
@media (min-width: 783px) {
	body .fe-filter-wrap .fe-actions { display: none; }
}

/* Pastilles actives au-dessus des produits */
.fe-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 16px; }
.fe-chips .fe-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px 6px 12px; border-radius: 999px; background: #bfe3d6; color: #01332e; font-size: 13px; font-weight: 600; text-decoration: none; line-height: 1.2; border: 0; }
.fe-chips .fe-chip:hover { background: #9fe0cb; color: #01332e; }
.fe-chips .fe-chip__close { font-size: 16px; line-height: 1; }
.fe-chips .fe-chip--clear { background: none; padding-left: 4px; color: #025048; font-weight: 700; }
.fe-chips .fe-chip--clear:hover { background: none; text-decoration: underline; }

/* ---------------- Mobile : tiroir qui glisse depuis la gauche (demande propriétaire 07/10/2026 ; avant : feuille du bas) ---------------- */
@media (max-width: 782px) {
	body .fe-filter-wrap {
		top: 0; left: 0; right: auto; bottom: 0;
		width: min(88vw, 380px);
		height: 100vh; height: 100dvh;
		max-height: none !important;
		border-radius: 0 20px 20px 0;
		box-shadow: 10px 0 32px rgba(1, 32, 29, .22);
		transform: translateX(-105%);
		display: flex; flex-direction: column; overflow: hidden;
		padding-top: env(safe-area-inset-top, 0px);
		padding-bottom: 0;
	}
	body.fe-drawer-open .fe-filter-wrap { transform: translateX(0); }
	.fe-filter-wrap .fe-mobile-head__grip { display: none; }
	/* 07/10 (propriétaire) : au moins 10 % libres à droite — l'html + #secondary battent la règle « largeur de colonne »
	   du CSS Customizer (body.ast-woo-shop-archive #secondary .fe-filter-wrap{width:100%!important}) écrite pour l'ordinateur. */
	html body .fe-filter-wrap,
	html body.ast-woo-shop-archive #secondary .fe-filter-wrap { width: min(86vw, 380px) !important; max-width: min(86vw, 380px) !important; }
	/* Ouverture plus vive : 220 ms, départ rapide ; pas de flou derrière (coûteux sur téléphone, saccades). */
	html body .fe-filter-wrap { transition: transform 300ms cubic-bezier(.22, 1, .36, 1) !important; will-change: transform; }
	html body .fe-mobile-backdrop { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; transition: opacity 200ms ease-out !important; }
	/* Tiroir pleine hauteur : boutons « Tout effacer / Afficher » posés en bas, pas au milieu. */
	body .fe-filter-wrap .fe-filter-form { display: flex !important; flex-direction: column; }
	body .fe-filter-wrap .fe-filter-form > .fe-actions { margin-top: auto !important; }
	/* 07/10 : sans min-height:0 le formulaire (élément flex) garde la hauteur de son contenu ;
	   rubriques dépliées = 1 023 px dans un tiroir de 664, coupés par l'overflow:hidden du tiroir, et rien ne défile. */
	/* L'id #secondary bat la règle Customizer « largeur de colonne » (overflow:visible!important, écrite pour l'ordinateur). */
	html body .fe-filter-wrap .fe-filter-form,
	html body.ast-woo-shop-archive #secondary .fe-filter-wrap .fe-filter-form { min-height: 0 !important; overflow-y: auto !important; }
	body .fe-filter-wrap .fe-filter-form {
		padding: 0 20px !important;
		overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
		flex: 1 1 auto; display: block;
	}
	body .fe-filter-wrap .fe-head { display: none; }
	body .fe-filter-wrap .fe-mobile-head {
		position: sticky; top: 0; z-index: 2; background: #fff;
		display: flex !important; align-items: center; justify-content: space-between;
		padding: 18px 0 12px; margin: 0; border: 0;
		text-transform: none; letter-spacing: 0;
	}
	.fe-filter-wrap .fe-mobile-head__grip { position: absolute; top: 9px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: #e2eae6; }
	body .fe-filter-wrap .fe-mobile-head__title { font-family: "Playfair Display", Georgia, serif; font-size: 22px; font-weight: 700; color: #01332e; flex: 1; }
	body .fe-filter-wrap .fe-mobile-close { width: 40px; height: 40px; border: 0; border-radius: 50%; background: #f4f8f6; color: #26313a; }
	body .fe-filter-wrap .fe-block { padding: 16px 0; }
	body .fe-filter-wrap .fe-toggle { font-size: 16px; padding: 6px 0; min-height: 32px; }
	body .fe-filter-wrap .fe-opt label { padding: 10px 8px; }
	body .fe-filter-wrap label.fe-pill { padding: 9px 14px; font-size: 14px; }
	body .fe-filter-wrap .fe-actions {
		position: sticky; bottom: 0; z-index: 2;
		display: flex; align-items: center; gap: 12px;
		margin: 8px -20px 0; padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px));
		background: #fff; border-top: 1px solid #e2eae6;
	}
	body .fe-filter-wrap .fe-reset--ghost { background: none; border: 0; padding: 12px 4px; color: #025048; font-weight: 700; font-size: 15px; box-shadow: none; }
	body .fe-filter-wrap .fe-apply { flex: 1; background: #025048; color: #fff; border: 0; border-radius: 12px; padding: 15px 12px; font-weight: 700; font-size: 16px; box-shadow: none; background-image: none; }

	/* Bouton d'ouverture */
	body .fe-mobile-launcher {
		display: inline-flex; align-items: center; justify-content: center; gap: 8px;
		min-height: 46px; padding: 0 20px; border-radius: 12px; border: 0;
		background: #025048; color: #fff; font-weight: 700; font-size: 15px; letter-spacing: 0; text-transform: none;
	}
	body .fe-mobile-launcher__badge { background: #d4af37; color: #01201d; border-radius: 999px; min-width: 22px; height: 22px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
	.fe-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 12px; padding: 0 16px; }
	.fe-chips::-webkit-scrollbar { display: none; }
	.fe-chips .fe-chip { flex: 0 0 auto; }
}

/* Neutraliser le style des boutons du thème (majuscules, bordure, fond) dans le filtre. */
body .fe-filter-wrap .fe-toggle,
body .fe-filter-wrap .fe-show-more,
body .fe-filter-wrap .fe-reset--link,
body .fe-filter-wrap .fe-reset--ghost {
	text-transform: none !important; letter-spacing: 0 !important; border: 0 !important; box-shadow: none !important;
	background: none !important; border-radius: 0; line-height: 1.3; min-height: 0;
}
body .fe-filter-wrap .fe-toggle { color: #01332e !important; font-size: 15px !important; font-weight: 700 !important; }
body .fe-filter-wrap .fe-show-more, body .fe-filter-wrap .fe-reset--link, body .fe-filter-wrap .fe-reset--ghost { color: #025048 !important; font-weight: 700 !important; font-size: 14px !important; }
body .fe-filter-wrap .fe-apply { text-transform: none !important; letter-spacing: 0 !important; }
@media (max-width: 782px) { body .fe-filter-wrap .fe-toggle { font-size: 16px !important; } body .fe-filter-wrap .fe-reset--ghost { font-size: 15px !important; } }

/* Correctifs 03/10 (vérif visiteur) */
body .fe-filter-wrap .fe-collapsible .fe-toggle::after,
body .fe-filter-wrap .fe-collapsible.is-collapsed .fe-toggle::after { content: ""; font-size: 0; line-height: 0; }
.fe-filter-wrap .fe-head .fe-reset--link { margin-left: auto; }
body .fe-filter-wrap .fe-apply { display: block; text-align: center; }
.fe-chips { flex: 0 0 100%; width: 100%; }
@media (max-width: 782px) {
	body.fe-drawer-open .qlwapp__container,
	body.fe-drawer-open #ast-scroll-top,
	body.fe-drawer-open .cmplz-manage-consent { display: none !important; }
}
body .fe-filter-wrap .fe-actions .fe-reset--ghost { flex: 0 0 auto !important; width: auto !important; }
body .fe-filter-wrap .fe-actions .fe-apply { flex: 1 1 auto !important; width: auto !important; max-width: none !important; min-width: 0; white-space: normal; line-height: 1.2; overflow: visible; }
@media (max-width: 782px) { body .fe-filter-wrap .fe-actions .fe-apply { font-size: 15px !important; padding: 14px 8px !important; } }
body .fe-chips { border: 0 !important; background: none !important; padding: 0 !important; box-shadow: none !important; justify-content: flex-start; }
body .fe-chips .fe-chip--clear { margin-left: 0 !important; }

/* 07/10 (propriétaire) : pastille « Filtres » collante plus petite, ronde, icône centrée.
   Le gap de 8 px restait appliqué au libellé masqué et décalait le ☰ vers la gauche. */
@media (max-width: 782px) {
	html body .fe-mobile-launcher.is-stuck { width: 40px; height: 40px; min-height: 40px; padding: 0 !important; gap: 0; justify-content: center; align-items: center; border-radius: 50%; }
	html body .fe-mobile-launcher.is-stuck .fe-mobile-launcher__label { display: none; }
	html body .fe-mobile-launcher.is-stuck .fe-mobile-launcher__icon { display: block; margin: 0; font-size: 18px; line-height: 1; }
	html body .fe-mobile-launcher.is-stuck .fe-mobile-launcher__badge { position: absolute; top: -4px; right: -4px; }
}

/* =====================================================================
 * Refonte 02/11/2026 — un seul système de contrôles, accessible (WCAG 2.2 AA).
 * Maquette : deploy/filtre-boutique-20261102/maquette.html. Couche ajoutée en fin de fichier.
 * Le préfixe `:not(#fx)` (toujours vrai) donne le poids d'un id : il bat le panneau Design du plugin
 * (#claude-filtre-design : fond beige #f3f1ea, bord #d8d4c4 à 1,5:1, cases à rayon 8 px qui paraissaient rondes)
 * et les règles !important des mu-plugins fx-mobile-optim-boutique / fx-desktop-optim, sans les modifier.
 *  - choix multiples (type, raccordement, marque) = case carrée, bord #4F5F58 (6,8:1) ;
 *  - plage à choix unique (puissance, prix) = pastille ; choisie = #0A3F35 + coche, compteur or (5,6:1) ;
 *  - même anneau de focus partout (menthe + halo vert foncé, comme le reste du site) ;
 *  - cibles 36 px à la souris, 44 px au doigt ; compteurs 14 px ;
 *  - « Effacer » par section (ajouté par le JS) ; tiroir : « Tout effacer | Voir N produits » côte à côte.
 * ===================================================================== */
html body .fe-filter-wrap:not(#fx),
html body .fe-filter-wrap:not(#fx) .fe-filter-form {
	--fe-bg: #fff; --fe-surface: #F4F7F5; --fe-hover: #F4F7F5; --fe-border: #E3EAE6;
	--fe-text: #26313A; --fe-muted: #4F5F58; --fe-color-primary: #025048; --fe-selected: #0A3F35;
	--fe-input-size: 20px; --fe-input-radius: 4px;
	--fx-ctl: #4F5F58;     /* bord des contrôles : 6,8:1 sur blanc (1.4.11 demande 3:1) */
	--fx-on: #0A3F35;      /* état choisi */
	--fx-sel-bg: #EAF3EF;  /* fond d'une ligne cochée */
	--fx-cible: 36px;      /* hauteur des cibles à la souris */
}
@media (pointer: coarse) {
	html body .fe-filter-wrap:not(#fx),
	html body .fe-filter-wrap:not(#fx) .fe-filter-form { --fx-cible: 44px; }
	html body .fe-filter-wrap:not(#fx) :is(input.fe-term-search, button.fe-show-more) { min-height: 44px !important; }
}

/* En-tête « Filtrer · Tout effacer » : le lien était étiré à 265 px par le thème et paraissait centré. */
html body .fe-filter-wrap:not(#fx) .fe-head { min-height: 44px; margin: 0 0 6px; }
html body .fe-filter-wrap:not(#fx) .fe-head .fe-reset--link {
	flex: 0 0 auto !important; width: auto !important; min-height: var(--fx-cible) !important; padding: 0 4px !important;
	font-size: 14px !important; text-decoration: underline; text-underline-offset: 3px;
}

/* Sections */
html body .fe-filter-wrap:not(#fx) .fe-block { position: relative; padding: 12px 0; }
html body .fe-filter-wrap:not(#fx) .fe-block__body { padding-top: 6px; }
html body .fe-filter-wrap:not(#fx) button.fe-toggle { min-height: var(--fx-cible) !important; padding: 0 !important; }
html body .fe-filter-wrap:not(#fx) .fe-toggle__resume { font-size: 14px; font-weight: 600; color: #025048; max-width: 50%; }
/* Section ouverte : les choix sont visibles juste dessous, le résumé ferait doublon (et coupait « Raccordemen-t » sur téléphone). */
html body .fe-filter-wrap:not(#fx) .fe-collapsible:not(.is-collapsed) .fe-toggle__resume { display: none; }
html body .fe-filter-wrap:not(#fx) .fe-toggle__label { overflow-wrap: normal; word-break: normal; hyphens: manual; }
/* « Effacer » d'une section : hors de la légende (sinon il entre dans le nom du groupe lu par les lecteurs d'écran). */
html body .fe-filter-wrap:not(#fx) .fe-collapsible:has(> .fe-sec-reset) button.fe-toggle { padding-right: 72px !important; }
html body .fe-filter-wrap:not(#fx) .fe-sec-reset {
	position: absolute; top: 12px; right: 0; height: var(--fx-cible); min-width: 44px; margin: 0; padding: 0 4px !important;
	background: none !important; border: 0 !important; border-radius: 0; box-shadow: none !important;
	color: #025048 !important; font-family: inherit; font-size: 14px !important; font-weight: 600; line-height: 1; text-transform: none !important; letter-spacing: 0 !important;
	text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}

/* Lignes à cocher (raccordement compris : le segment Mono/Tri se lisait comme du texte, c'est une liste comme les autres) */
html body .fe-filter-wrap:not(#fx) .fe-block ul.fe-segment { display: flex; flex-direction: column; gap: 0; padding: 0; background: none; border-radius: 0; }
html body .fe-filter-wrap:not(#fx) .fe-opt label {
	display: flex; align-items: center; gap: 12px; min-height: var(--fx-cible) !important; margin: 0; padding: 6px 10px !important;
	border-radius: 4px; background: none; box-shadow: none; color: var(--fe-text); font-size: 15px !important; font-weight: 400; line-height: 1.3; justify-content: flex-start;
}
html body .fe-filter-wrap:not(#fx) .fe-opt label:has(input:checked) { background: var(--fx-sel-bg); color: #01332E; font-weight: 600; }
html body .fe-filter-wrap:not(#fx) .fe-opt.is-on label:not(:has(input:checked)) { background: none; color: var(--fe-text); font-weight: 400; }
html body .fe-filter-wrap:not(#fx) .fe-filter-form input[type="checkbox"] {
	-webkit-appearance: none; appearance: none; position: relative; flex: 0 0 20px; display: block;
	width: 20px !important; height: 20px !important; margin: 0 !important; padding: 0; opacity: 1; pointer-events: auto;
	border: 2px solid var(--fx-ctl) !important; border-radius: 4px !important; background: #fff !important; box-shadow: none; cursor: pointer;
}
html body .fe-filter-wrap:not(#fx) .fe-filter-form input[type="checkbox"]:checked { background: var(--fx-on) !important; border-color: var(--fx-on) !important; }
html body .fe-filter-wrap:not(#fx) .fe-filter-form input[type="checkbox"]:checked::after {
	content: ""; display: block; position: absolute; left: 5px; top: 1px; width: 6px; height: 11px; margin: 0;
	border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}
html body .fe-filter-wrap:not(#fx) .fe-count {
	margin-left: auto; font-size: 14px !important; font-weight: 500; color: #4F5F58 !important; opacity: 1; font-variant-numeric: tabular-nums;
}
@media (hover: hover) {
	html body .fe-filter-wrap:not(#fx) .fe-opt label:hover { background: var(--fe-hover); }
	html body .fe-filter-wrap:not(#fx) .fe-opt label:has(input:checked):hover { background: #DFEDE7; }
	html body .fe-filter-wrap:not(#fx) .fe-opt label:hover input[type="checkbox"]:not(:checked) { border-color: #025048 !important; }
}

/* Pastilles de plages (un seul choix ; un 2e clic retire) */
html body .fe-filter-wrap:not(#fx) .fe-pills { gap: 8px; }
html body .fe-filter-wrap:not(#fx) label.fe-pill {
	min-height: var(--fx-cible) !important; padding: 0 14px !important; gap: 6px;
	border: 1px solid var(--fx-ctl) !important; border-radius: 999px !important; background: #fff !important;
	color: #01332E !important; font-size: 14px !important; font-weight: 600;
}
html body .fe-filter-wrap:not(#fx) .fe-pill .fe-count { margin-left: 0; font-size: 13px !important; }
html body .fe-filter-wrap:not(#fx) label.fe-pill:is(.is-on, :has(input:checked)) { background: var(--fx-on) !important; border-color: var(--fx-on) !important; color: #fff !important; }
html body .fe-filter-wrap:not(#fx) label.fe-pill:is(.is-on, :has(input:checked)) > span:not(.fe-count)::before {
	content: ""; display: inline-block; width: 5px; height: 10px; margin: 0 9px 3px 1px; vertical-align: middle;
	border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
html body .fe-filter-wrap:not(#fx) label.fe-pill:is(.is-on, :has(input:checked)) .fe-count { color: #D4AF37 !important; } /* or sur #0A3F35 seulement : 5,6:1 */
@media (hover: hover) {
	html body .fe-filter-wrap:not(#fx) label.fe-pill:not(.is-on):hover { background: var(--fe-hover) !important; border-color: #025048 !important; }
}

/* Champs (recherche, marques, prix) : bord visible (#6B7B74, 4,5:1) au lieu de #d8d4c4 */
html body .fe-filter-wrap:not(#fx) .fe-filter-form input:is([type="search"], [type="number"]) { border: 1px solid #6B7B74 !important; background-color: #fff !important; color: var(--fe-text); }

/* Désactivé (option sans produit, si un jour affichée) */
html body .fe-filter-wrap:not(#fx) .fe-filter-form label:has(> input:disabled) { opacity: .5; cursor: not-allowed; }

/* Focus clavier : un seul anneau, celui du site (menthe 3 px décalé de 3 px + halo #0A3F35), posé sur la ligne entière. */
html body .fe-filter-wrap:not(#fx) .fe-filter-form label:has(> input:focus-visible),
html body .fe-filter-wrap:not(#fx) button:focus-visible,
html body .fe-chips:not(#fx) .fe-chip:focus-visible,
html body .fe-mobile-launcher:not(#fx):focus-visible {
	outline: 3px solid #9FE8CF !important; outline-offset: 3px !important; box-shadow: 0 0 0 6px #0A3F35 !important; z-index: 1;
}
html body .fe-filter-wrap:not(#fx) .fe-filter-form label > input:focus-visible { outline: none !important; box-shadow: none !important; }

/* Filtres actifs au-dessus des produits */
html body .fe-chips:not(#fx) { gap: 8px; margin: 0 0 16px; }
html body .fe-chips:not(#fx) .fe-chip {
	min-height: 36px; padding: 0 8px 0 14px; gap: 8px; border: 1px solid #0A3F35; border-radius: 999px;
	background: #fff; color: #0A3F35; font-size: 14px; font-weight: 600; line-height: 1.2; text-decoration: none;
}
html body .fe-chips:not(#fx) .fe-chip__close {
	width: 20px; height: 20px; border-radius: 50%; background: #0A3F35; color: #fff; opacity: 1;
	font-size: 15px; line-height: 19px; text-align: center; margin: 0;
}
html body .fe-chips:not(#fx) .fe-chip--clear { border: 0; padding: 0 6px; background: none; color: #025048; text-decoration: underline; text-underline-offset: 3px; }
@media (hover: hover) {
	html body .fe-chips:not(#fx) .fe-chip:hover { background: #EAF3EF; color: #0A3F35; }
	html body .fe-chips:not(#fx) .fe-chip--clear:hover { background: none; }
}
@media (pointer: coarse) { html body .fe-chips:not(#fx) .fe-chip { min-height: 44px; } }
/* Téléphone : la rangée défile de côté ; « Tout effacer » passe en tête pour rester visible sans défiler. */
@media (max-width: 782px) { html body .fe-chips:not(#fx) .fe-chip--clear { order: -1; } }

/* Pastille du nombre de filtres (bouton « Filtres » et titre du tiroir) */
html body .fe-mobile-launcher:not(#fx) .fe-mobile-launcher__badge,
html body .fe-filter-wrap:not(#fx) .fe-mobile-head__badge {
	display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; padding: 0 7px;
	border-radius: 999px; background: #D4AF37; color: #01201D; font: 700 13px/1 "Plus Jakarta Sans", system-ui, sans-serif; letter-spacing: 0;
}
html body .fe-filter-wrap:not(#fx) .fe-mobile-head__badge { margin-left: 10px; vertical-align: 4px; }

/* Tiroir mobile */
@media (max-width: 782px) {
	html body .fe-filter-wrap:not(#fx) .fe-opt label { font-size: 16px !important; }
	html body .fe-filter-wrap:not(#fx) label.fe-pill { font-size: 15px !important; }
	/* Pied collant : « Tout effacer » et « Voir N produits » côte à côte (empilés, ils prenaient 110 px de hauteur). */
	html body .fe-filter-wrap:not(#fx) .fe-actions { flex-wrap: nowrap !important; gap: 12px !important; box-shadow: 0 -10px 16px -12px rgba(1, 32, 29, .35); }
	html body .fe-filter-wrap:not(#fx) .fe-actions .fe-reset { flex: 0 0 auto !important; width: auto !important; padding: 0 16px !important; min-height: 48px !important; }
	html body .fe-filter-wrap:not(#fx) .fe-actions .fe-apply {
		flex: 1 1 auto !important; min-height: 48px !important; padding: 0 12px !important;
		background: #D4AF37 !important; border-color: #D4AF37 !important; color: #01201D !important; font-weight: 700 !important;
	}
	html body .fe-filter-wrap:not(#fx) .fe-actions .fe-apply:is(:hover, :active) { background: #BE9A28 !important; border-color: #BE9A28 !important; } /* #01201D sur #BE9A28 : 6,4:1 */
}
@media (prefers-reduced-motion: reduce) {
	html body .fe-filter-wrap:not(#fx), html body .fe-filter-wrap:not(#fx) * { transition: none !important; }
}
