/* LA FEUILLE DES FILTRES (modules/sorter/src/feuille.php). Jetons `--ds-*` : thème, appli.css.
   Aucun flou au tactile : rien ici n'en porte hors de `(hover: hover)`. */
.rh24fe-cadre {
    --fe-m: var(--rh24-brand, #e04b43); --fe-r: #c5352d; --fe-mt: #c5352d;
    --fe-s: var(--ds-surface, #fff); --fe-s2: #f2efed; --fe-creux: var(--ds-creux, #e2dedb);
    --fe-e: var(--ds-encre, #131315); --fe-e2: #55555c; --fe-tr: var(--ds-trait, #1d1d20); --fe-u: 1px;
    --fe-o: var(--ds-o-1, 2px 2px 0 var(--fe-tr)); --fe-o2: var(--ds-o-2, 3px 3px 0 var(--fe-tr));
    --fe-rm: var(--ds-r-m, 14px); --fe-rl: var(--ds-r-l, 22px); --fe-sortie: cubic-bezier(.23, 1, .32, 1);
    position: fixed; inset: 0; z-index: 99990; color: var(--fe-e);
    font-size: calc(15 * var(--fe-u)); line-height: 1.25;
}
html:is(.rh24-dark, [data-theme="dark"]) .rh24fe-cadre { --fe-mt: #ff8078; --fe-s2: #29292f; --fe-creux: #4a4a50; --fe-e2: #b6b6be; }
.rh24fe-cadre[hidden], .rh24fe-cadre [hidden] { display: none !important; }
.rh24fe-cadre *, .rh24fe-cadre *::before { box-sizing: border-box; }
.rh24fe-voile { position: absolute; inset: 0; background: rgba(10, 10, 12, .55); touch-action: none; animation: rh24fe-fondu .2s; }
.rh24fe {
    position: absolute; left: 0; right: 0; bottom: 0; top: 74px; display: flex; flex-direction: column;
    background: var(--fe-s); border-radius: var(--fe-rl) var(--fe-rl) 0 0; outline: 0;
    animation: rh24fe-monte .32s var(--fe-sortie); transition: transform .18s ease-out;
}
.est-sortante { pointer-events: none; }
.est-sortante .rh24fe-voile { opacity: 0; transition: opacity .18s; }
.est-sortante .rh24fe { transform: translateY(100%) !important; }
@keyframes rh24fe-fondu { from { opacity: 0; } }
@keyframes rh24fe-monte { from { transform: translateY(100%); } }
@keyframes rh24fe-glisse { from { transform: translateX(-30px); opacity: 0; } }
.rh24fe-poignee { flex: none; height: 26px; display: grid; place-items: center; touch-action: none; cursor: grab; }
.rh24fe-poignee::before { content: ""; width: 40px; height: 5px; border-radius: 9px; background: var(--fe-creux); }
.rh24fe-tete { flex: none; display: flex; align-items: center; gap: 4px; padding: 0 8px 4px 20px; touch-action: none; }
.rh24fe-cadre .rh24fe-tete h2 { flex: 1; margin: 0; padding: 0; font-size: calc(24 * var(--fe-u)); line-height: 1.1; font-weight: 700; color: inherit; }
.rh24fe-cadre :is(button, a) { font-family: inherit; color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.rh24fe-cadre button { border: 0; margin: 0; background: none; cursor: pointer; }
.rh24fe-cadre .rh24fe-effacer { display: inline-flex; align-items: center; min-height: calc(44 * var(--fe-u)); padding: 0 12px; font-weight: 700; color: var(--fe-mt); }
.rh24fe-cadre .rh24fe-b { flex: none; width: calc(44 * var(--fe-u)); height: calc(44 * var(--fe-u)); padding: 0; display: grid; place-items: center; border-radius: 12px; font-size: calc(18 * var(--fe-u)); font-weight: 700; }
.rh24fe-i { flex: none; }
.rh24fe-corps { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 4px 20px 20px; scrollbar-width: thin; }
.rh24fe-vite { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; padding-bottom: 2px; }
.rh24fe-vite:empty { display: none; }
.rh24fe-cadre .rh24fe-v { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: calc(52 * var(--fe-u)); padding: 0 8px; border-radius: var(--fe-rm); background: var(--fe-s2); box-shadow: var(--fe-o); font-weight: 700; }
.rh24fe-v[data-mode="f_redac"] svg { color: #f5a623; }
.rh24fe-g { margin: 0; padding: 0; scroll-margin-top: 8px; }
.rh24fe-cadre .rh24fe-g h3 { display: flex; align-items: center; gap: 8px; margin: 16px 0 8px; padding: 0; font-size: calc(13 * var(--fe-u)); line-height: 1.2; font-weight: 700; color: var(--fe-e2); }
.rh24fe-n { min-width: calc(20 * var(--fe-u)); height: calc(20 * var(--fe-u)); padding: 0 5px; border-radius: 99px; background: var(--fe-r); color: #fff; font-size: calc(12 * var(--fe-u)); font-weight: 700; line-height: calc(20 * var(--fe-u)); text-align: center; }
.rh24fe-os { display: flex; flex-wrap: wrap; gap: 8px; }
.rh24fe-cadre .rh24fe-o { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; min-height: calc(44 * var(--fe-u)); padding: 0 16px; border-radius: 99px; background: var(--fe-s2); font-weight: 700; }
.rh24fe-cadre .rh24fe-o small { margin: 0; padding: 0; background: none; opacity: 1; font-size: calc(13 * var(--fe-u)); font-weight: 500; color: var(--fe-e2); }
.rh24fe-cadre :is(.rh24fe-o, .rh24fe-v).is-active { background: var(--fe-r); color: #fff; box-shadow: var(--fe-o); }
.rh24fe-cadre :is(.rh24fe-o, .rh24fe-v).is-active :is(small, svg) { color: inherit; }
.rh24fe-cadre .rh24fe-o.is-empty { opacity: .4; }
.rh24fe-cadre .rh24fe-plus { width: 100%; display: flex; align-items: center; justify-content: space-between; min-height: calc(52 * var(--fe-u)); margin-top: 18px; padding: 0 16px; border-radius: var(--fe-rm); background: var(--fe-s2); font-size: inherit; font-weight: 700; }
.rh24fe-plus[aria-expanded="true"] svg { transform: rotate(180deg); }
.rh24fe-pied { flex: none; display: flex; align-items: center; gap: 16px; padding: 12px 20px calc(14px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -1px 0 color-mix(in srgb, var(--fe-tr) 14%, transparent); touch-action: none; }
.rh24fe-cadre .rh24fe-voir { flex: 1; min-height: calc(48 * var(--fe-u)); padding: 0 18px; border-radius: var(--fe-rm); background: var(--fe-r); color: #fff; box-shadow: var(--fe-o2); font-size: calc(16 * var(--fe-u)); font-weight: 700; }
.rh24fe-cadre :is(.rh24fe-voir, .rh24fe-v):active { transform: translate(2px, 2px); box-shadow: none; }
.rh24fe-cadre :is(a, button):focus-visible { outline: 3px solid var(--fe-m); outline-offset: 2px; }
@media (hover: hover) {
    .rh24fe-cadre :is(.rh24fe-b, .rh24fe-effacer):hover { background: var(--fe-s2); border-radius: 12px; }
    .rh24fe-cadre :is(.rh24fe-o, .rh24fe-v, .rh24fe-plus):not(.is-active, .is-empty):hover { background: var(--fe-creux); color: var(--fe-e); }
    .rh24fe-cadre :is(.rh24fe-o, .rh24fe-v).is-active:hover, .rh24fe-cadre .rh24fe-voir:hover { background: #a92b24; color: #fff; }
}
@media (max-width: 359px) { .rh24fe-corps { padding-inline: 12px; } .rh24fe-cadre .rh24fe-o { padding: 0 12px; } }

/* ---- ordinateur : contre la colonne, qui reste à portée ---- */
@media (min-width: 1024px) {
    .rh24fe-cadre { left: var(--rh24e-colonne, 84px); top: var(--wp-admin--admin-bar--height, 0px); }
    .rh24fe { top: 0; right: auto; width: calc(420 * var(--fe-u)); padding-top: 12px; border-radius: 0; animation: rh24fe-glisse .24s var(--fe-sortie); }
    .rh24fe-voile { background: rgba(10, 10, 12, .32); }
    .rh24fe-poignee { display: none; }
    .est-sortante .rh24fe { transform: translateX(-30px) !important; opacity: 0; transition: transform .18s, opacity .18s; }
}

/* ---- AUDACE : détachée ---- */
.rh24-filtres-audace .rh24fe-cadre .rh24fe-tete h2 { font-size: calc(38 * var(--fe-u)); letter-spacing: -.02em; }
@media (max-width: 1023px) {
    .rh24-filtres-audace .rh24fe { left: 8px; right: 8px; top: 66px; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); border-radius: 26px; box-shadow: var(--fe-o2); overflow: hidden; }
    .rh24-filtres-audace .rh24fe-pied { padding-bottom: 14px; }
    .rh24-filtres-audace .est-sortante .rh24fe { transform: translateY(110%) !important; }
}
@media (min-width: 1024px) {
    .rh24-filtres-audace .rh24fe { left: 10px; top: 12px; bottom: 12px; border-radius: 26px; box-shadow: var(--fe-o2); overflow: hidden; }
}

/* ---- CONSOLE : un groupe à la fois, un seul élément cerclé ---- */
.rh24-filtres-console .rh24fe-voile { background: rgba(8, 8, 10, .74); }
.rh24-filtres-console .rh24fe-cadre :is(.rh24fe-o, .rh24fe-v, .rh24fe-voir) { box-shadow: none; }
.rh24-filtres-console .rh24fe-vite { flex: none; padding: 4px 20px 12px; }
.rh24-filtres-console .rh24fe-duo { flex: 1; min-height: 0; display: flex; }
.rh24-filtres-console .rh24fe-g { display: none; }
.rh24-filtres-console .rh24fe-g.est-vue { display: block; }
.rh24-filtres-console .rh24fe-cadre .rh24fe-g h3 { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip-path: inset(50%); }
.rh24-filtres-console .rh24fe-os { display: grid; }
.rh24-filtres-console .rh24fe-cadre .rh24fe-o { justify-content: flex-start; min-height: calc(52 * var(--fe-u)); border-radius: var(--fe-rm); }
.rh24-filtres-console .rh24fe-cadre .rh24fe-o small { margin-left: auto; }
.rh24fe-ton { flex: none; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; margin: 0 16px 8px; border-radius: var(--fe-rm); background: var(--fe-s2); }
.rh24fe-ton b { font-size: 19px; line-height: 48px; text-align: center; }
.rh24fe-cats { display: none; }
.rh24fe-touches { display: flex; gap: 18px; font-size: calc(14 * var(--fe-u)); font-weight: 700; color: var(--fe-e2); }
.rh24fe-touches span { display: flex; align-items: center; gap: 6px; }
.rh24fe-touches kbd { min-width: 24px; padding: 0 6px; border-radius: 7px; background: var(--fe-e); color: var(--fe-s); font-family: inherit; font-size: 13px; line-height: 24px; text-align: center; }
@media (max-width: 1023px) { .rh24fe-touches { display: none; } }
@media (min-width: 1024px) {
    .rh24-filtres-console .rh24fe { left: 0; right: 0; width: auto; max-width: min(calc(1080 * var(--fe-u)), calc(100% - 80px)); max-height: calc(720 * var(--fe-u)); margin: auto; top: 40px; bottom: 40px; border-radius: var(--fe-rl); padding: 14px 12px 0; animation: rh24fe-fondu .2s; }
    .rh24fe-ton { display: none; }
    .rh24-filtres-console .rh24fe-duo { display: grid; grid-template-columns: calc(230 * var(--fe-u)) 1fr; }
    .rh24fe-cats { display: flex; flex-direction: column; overflow: auto; overscroll-behavior: contain; padding: 0 12px; scrollbar-width: thin; }
    .rh24fe-cadre .rh24fe-cats button { flex: none; display: flex; align-items: center; justify-content: space-between; min-height: calc(44 * var(--fe-u)); padding: 0 14px; border-radius: 12px; font-size: calc(15 * var(--fe-u)); font-weight: 700; color: var(--fe-e2); }
    .rh24fe-cadre .rh24fe-cats button.est-vue { background: var(--fe-s2); color: var(--fe-e); }
    .rh24-filtres-console .rh24fe-os { grid-template-columns: repeat(3, 1fr); }
    .rh24-filtres-console .est-sortante .rh24fe { transform: none !important; }
    .rh24-filtres-console .rh24fe-corps { padding-top: 6px; }
}
/* Au tactile, jamais de flou (Android, 30/11/2026). */
@media (hover: hover) and (min-width: 1024px) {
    .rh24-filtres-console .rh24fe-voile { -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
}
@media (prefers-reduced-motion: reduce) { .rh24fe-cadre, .rh24fe-cadre * { animation: none !important; transition: none !important; } }
