/* LST1 : barre unique des listes (mode filtrage), sans fenêtre modale. Alignement, libellés, tri, bascule : règles générées (ListBar::css). */
.bp-lb2 { --lb-line: #E3E0F0; --lb-ink: #1F2433; --lb-muted: #6B7089; --lb-accent: var(--bp-header-bg, var(--bp-primary,#384799)); --lb-soft: #F3F1FB; --lb-h: 44px; box-sizing: border-box; margin: 14px auto 18px; color: var(--lb-ink); font-size: 13px; line-height: 1.2; }
.bp-lb2 *, .bp-lb2 *::before, .bp-lb2 *::after { box-sizing: border-box; }
.bp-lb2__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 0 0 14px; border-bottom: 1px solid var(--lb-line); }
.bp-lb2__count { color: var(--lb-muted); font-weight: 600; letter-spacing: .01em; white-space: nowrap; }
.bp-lb2__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-left: auto; }
/* contrôles : même hauteur, même rayon, même contour */
.bp-lb2__menu-btn, .bp-lb2__sort, .bp-lb2 .bp-view-toggle__seg { display: inline-flex; align-items: center; gap: 8px; height: var(--lb-h); min-height: var(--lb-h); margin: 0; padding: 0 14px; border: 1px solid var(--lb-line); border-radius: 999px; background: var(--bp-surface, #fff); color: var(--lb-ink); font: 600 13px/1 inherit; transition: border-color calc(.15s * var(--bp-motion-speed,1)) var(--bp-ease,ease), background-color calc(.15s * var(--bp-motion-speed,1)) var(--bp-ease,ease), box-shadow calc(.15s * var(--bp-motion-speed,1)) var(--bp-ease,ease); }
.bp-lb2__menu-btn { cursor: pointer; list-style: none; }
.bp-lb2__menu-btn::-webkit-details-marker { display: none; }
.bp-lb2__menu-btn:hover, .bp-lb2__sort:hover, .bp-lb2__menu[open] > .bp-lb2__menu-btn { border-color: var(--lb-accent); background: var(--lb-soft); }
.bp-lb2__menu-btn.is-on { border-color: var(--lb-accent); background: var(--lb-soft); box-shadow: inset 0 0 0 1px var(--lb-accent); }
.bp-lb2__lbl, .bp-lb2__sort-label { color: var(--lb-muted); font-weight: 500; }
.bp-lb2__lbl::after { content: ""; display: inline-block; width: 1px; height: 14px; margin-left: 8px; vertical-align: -3px; background: var(--lb-line); }
.bp-lb2__val { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bp-lb2__ico { flex: none; width: 16px; height: 16px; margin-right: -4px; color: var(--lb-muted); transition: transform calc(.15s * var(--bp-motion-speed,1)) var(--bp-ease,ease); }
.bp-lb2__menu[open] .bp-lb2__ico { transform: rotate(180deg); }
.bp-lb2 a:focus-visible, .bp-lb2 select:focus-visible, .bp-lb2 summary:focus-visible { outline: 3px solid var(--lb-accent); outline-offset: 2px; }
/* tri : étiquette et liste dans la même pastille */
.bp-lb2__sort { position: relative; padding-right: 10px; }
.bp-lb2__sort select { appearance: none; -webkit-appearance: none; height: 100%; margin: 0; padding: 0 22px 0 0; border: 0; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 8l5 5 5-5' fill='none' stroke='%236B7089' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right center / 16px no-repeat; color: var(--lb-ink); font: 600 13px/1 inherit; cursor: pointer; max-width: 190px; }
/* bascule d'affichage : même hauteur que les autres contrôles */
.bp-lb2 .bp-view-toggle { display: inline-flex; width: auto; max-width: none; margin: 0; padding: 0; }
.bp-lb2 .bp-view-toggle__seg { padding: 4px; gap: 2px; }
.bp-lb2 .bp-view-toggle__btn { width: 34px; height: 34px; min-height: 0; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; }
/* listes déroulantes à cases à cocher */
.bp-lb2__menu { position: relative; }
.bp-lb2__menu-list { position: absolute; z-index: 40; top: calc(100% + 8px); left: 0; min-width: 240px; max-width: min(340px, calc(100vw - 32px)); max-height: 340px; overflow-y: auto; margin: 0; padding: 6px; list-style: none; background: var(--bp-surface, #fff); border: 1px solid var(--lb-line); border-radius: var(--bp-radius-md,16px); box-shadow: var(--bp-shadow-lg,0 16px 36px rgba(20, 24, 40, .16)); }
.bp-lb2__tools .bp-lb2__menu:last-of-type .bp-lb2__menu-list { left: auto; right: 0; }
.bp-lb2__opt { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: var(--bp-radius-md,10px); color: var(--lb-ink); font-size: 13px; text-decoration: none; }
.bp-lb2__opt:hover { background: var(--lb-soft); }
.bp-lb2__box { flex: none; width: 18px; height: 18px; border: 2px solid var(--bp-lbx-box, #9AA0B8); border-radius: var(--bp-radius-sm,5px); transition: background-color calc(.12s * var(--bp-motion-speed,1)) var(--bp-ease,ease), border-color calc(.12s * var(--bp-motion-speed,1)) var(--bp-ease,ease); }
.bp-lb2__opt.is-on .bp-lb2__box { background: var(--lb-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.3l2.4 2.4 4.6-5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; border-color: var(--lb-accent); }
.bp-lb2__opt.is-on { font-weight: 700; }
.bp-lb2__n { margin-left: auto; color: var(--lb-muted); font-size: 12px; font-weight: 500; }
.bp-lb2__clear { display: inline-flex; align-items: center; height: var(--lb-h); padding: 0 8px; color: var(--lb-accent); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 749px) {
	.bp-lb2__bar { gap: 10px; }
	.bp-lb2__count { width: 100%; }
	.bp-lb2__tools { width: 100%; margin-left: 0; gap: 8px; }
	.bp-lb2__sort { flex: 1 1 140px; min-width: 0; }
	.bp-lb2__sort select { flex: 1; min-width: 0; max-width: none; }
	.bp-lb2__menu-list { max-width: calc(100vw - 32px); }
}
@media (prefers-reduced-motion: reduce) { .bp-lb2 * { transition: none !important; } }
.bp-lb2 ~ .facets-wrapper, .bp-lb2 ~ .mobile-facets__wrapper { display: none !important; }
.bp-lb2 .bp-lb2__sort, .bp-lb2 .bp-lb2__tools > * { margin: 0 !important; }

/* ---- ordinateur / mobile : un balisage par appareil quand les modes diffèrent ---- */
@media (max-width: 749px) { .bp-lb-dev--d { display: none; } }
@media (min-width: 750px) { .bp-lb-dev--m { display: none; } }

/* ---- mode maxi : parcours de filtrage de maxizoo.fr (rangée Trier + Filtre, panneau, sous-écrans) ---- */
.bp-mx { --lb-line: #E3E0F0; --lb-ink: #1F2433; --lb-muted: #6B7089; --lb-accent: var(--bp-header-bg, var(--bp-primary,#384799)); --lb-soft: #F3F1FB; box-sizing: border-box; margin: 14px auto 18px; color: var(--lb-ink); font-size: 14px; }
.bp-mx *, .bp-mx *::before, .bp-mx *::after { box-sizing: border-box; }
.bp-mx__bar { display: flex; align-items: center; gap: 12px; }
.bp-mx__sort { flex: 1 1 auto; min-width: 0; margin: 0 !important; position: relative; }
.bp-mx__sort select { appearance: none; -webkit-appearance: none; width: 100%; height: 48px; margin: 0; padding: 0 40px 0 16px; border: 1px solid var(--bp-lbx-sort-border, #C9C6D9); border-radius: var(--bp-radius-md,10px); background: var(--bp-lbx-sort-bg, #F6F5FA) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 8l5 5 5-5' fill='none' stroke='%231F2433' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 12px center / 18px no-repeat; color: var(--lb-ink); font: 600 15px/1 inherit; cursor: pointer; }
.bp-mx__btn { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--lb-accent); color: var(--bp-on-color, #fff); font: 700 15px/1 inherit; cursor: pointer; transition: filter calc(.15s * var(--bp-motion-speed,1)) var(--bp-ease,ease), transform calc(.1s * var(--bp-motion-speed,1)) var(--bp-ease,ease); }
.bp-mx__btn:hover { filter: brightness(1.08); }
.bp-mx__btn:active { transform: scale(.98); }
.bp-mx__badge { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--bp-surface, #fff); color: var(--lb-accent); font-size: 12px; }
.bp-mx__count { display: flex; align-items: center; gap: 14px; margin: 16px 0 0; color: var(--lb-muted); font-size: 14px; text-align: center; }
.bp-mx__count::before, .bp-mx__count::after { content: ""; flex: 1; height: 1px; background: var(--lb-line); }
.bp-mx a:focus-visible, .bp-mx button:focus-visible, .bp-mx select:focus-visible, .bp-mx input:focus-visible + .bp-mx__box { outline: 3px solid var(--lb-accent); outline-offset: 2px; }
.bp-mx__vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* panneau : plein écran sur mobile, tiroir à droite sur ordinateur */
.bp-mx__panel { position: fixed; inset: 0; z-index: 100001; display: flex; justify-content: flex-end; background: rgba(0, 0, 0, .45); }
.bp-mx__panel[hidden] { display: none; }
.bp-mx__sheet { display: flex; flex-direction: column; width: 100%; height: 100%; background: var(--bp-surface, #fff); animation: bp-mx-in .2s ease both; }
@media (min-width: 750px) { .bp-mx__sheet { width: 440px; box-shadow: -12px 0 40px rgba(20, 24, 40, .2); } }
@keyframes bp-mx-in { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.bp-mx__head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 56px; padding: 0 16px; border-bottom: 1px solid var(--lb-line); }
.bp-mx__back, .bp-mx__clearall, .bp-mx__clearone { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0; border: 0; background: none; color: var(--lb-accent); font: 600 14px/1 inherit; text-decoration: none; cursor: pointer; }
.bp-mx__back { justify-self: start; }
.bp-mx__clearall, .bp-mx__clearone { justify-self: end; }
.bp-mx__clearall[hidden], .bp-mx__clearone[hidden] { display: none; }
.bp-mx__title { display: inline-flex; align-items: center; gap: 8px; margin: 0; font: 700 16px/1.2 inherit; color: var(--lb-ink); }
.bp-mx__title:focus { outline: none; }
.bp-mx__body { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; }
.bp-mx__rows, .bp-mx__list { margin: 0; padding: 0; list-style: none; }
.bp-mx__rows > li, .bp-mx__list > li { border-bottom: 1px solid var(--lb-line); }
.bp-mx__row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 0 16px; border: 0; background: var(--bp-surface, #fff); color: var(--lb-ink); font: 700 15px/1.2 inherit; text-align: left; cursor: pointer; }
.bp-mx__row:hover { background: var(--lb-soft); }
.bp-mx__sum { margin-left: auto; max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--lb-muted); font-weight: 500; font-size: 13px; }
.bp-mx__chev { flex: none; color: var(--lb-ink); }
.bp-mx__row .bp-mx__sum:empty + .bp-mx__chev { margin-left: auto; }
.bp-mx__sub[hidden], .bp-mx__rows[hidden] { display: none; }
.bp-mx__opt { display: flex; align-items: center; gap: 16px; min-height: 56px; padding: 0 16px; cursor: pointer; font-size: 15px; }
.bp-mx__opt:hover { background: var(--lb-soft); }
.bp-mx__opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bp-mx__box { flex: none; width: 28px; height: 28px; border: 2px solid var(--bp-lbx-box, #9AA0B8); border-radius: var(--bp-radius-sm,6px); transition: background-color calc(.12s * var(--bp-motion-speed,1)) var(--bp-ease,ease), border-color calc(.12s * var(--bp-motion-speed,1)) var(--bp-ease,ease); }
.bp-mx__opt input:checked + .bp-mx__box { background: var(--lb-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.3l2.4 2.4 4.6-5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; border-color: var(--lb-accent); }
.bp-mx__foot { flex: none; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--lb-line); background: var(--bp-surface, #fff); }
.bp-mx__cta { display: flex; align-items: center; justify-content: center; width: 100%; height: 52px; border: 2px solid var(--lb-cta-bg, var(--lb-accent)); border-radius: 999px; background: var(--lb-cta-bg, var(--lb-accent)); color: var(--lb-cta-text, var(--bp-on-color, #fff)); font: 700 16px/1 inherit; cursor: pointer; transition: opacity calc(.15s * var(--bp-motion-speed,1)) var(--bp-ease,ease), background-color calc(.15s * var(--bp-motion-speed,1)) var(--bp-ease,ease); }
.bp-mx__cta.is-loading { opacity: .65; }
.bp-mx__sheet:has(.bp-mx__sub:not([hidden])) .bp-mx__cta:not(.is-save) { background: var(--bp-surface, #fff); color: var(--lb-cta-bg, var(--lb-accent)); }
html.bp-mx-lock, html.bp-mx-lock body { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .bp-mx__sheet { animation: none; } .bp-mx * { transition: none !important; } }
.bp-mx__head { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; }
.bp-mx__clearone, .bp-mx__clearall { white-space: nowrap; font-size: 13px; }
.bp-mx__sheet:has(.bp-mx__sub:not([hidden])) .bp-mx__title svg { display: none; }
.bp-mx__back[hidden] { display: none; }
.bp-mx__back { min-width: 44px; justify-content: flex-start; }
.bp-lb2__sw, .bp-mx__sw { flex: none; width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(31, 36, 51, .22); }
.bp-mx__sw { width: 22px; height: 22px; }

/* mode mixte : la barre filtrage reste visible, le panneau maxi s ouvre par « Tous les filtres » */
.bp-lb2 + .bp-mx .bp-mx__bar, .bp-lb2 + .bp-mx .bp-mx__count { display: none; }
.bp-lb2 + .bp-mx { margin: 0; }
/* Menu de tri premium (#246) : texte « Trier par » devant la valeur (collection_page.texts.lb_sort_by), cadre en pilule, halo à la sélection ; sans ce texte, rien ne change */
.bp-mx__sort--lbl{display:flex;align-items:center;border:1px solid var(--bp-lbx-sort-border,#C9C6D9);border-radius:999px;background:var(--bp-lbx-sort-bg,#F6F5FA);padding-left:20px;transition:border-color .15s ease,box-shadow .15s ease}
.bp-mx__sort--lbl:hover{border-color:var(--lb-accent)}
.bp-mx__sort--lbl:focus-within{border-color:var(--lb-accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--lb-accent) 22%,transparent)}
.bp-mx__sortlbl{flex:none;font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--bp-muted,#6B635B);white-space:nowrap}
.bp-mx__sort--lbl select{border:0 !important;background-color:transparent !important;border-radius:999px;padding-left:12px;font-weight:600;cursor:pointer}
.bp-mx__sort--lbl select:focus-visible{outline:none}
