/* Advanced Search 4 - panneau de filtres mobile / tablette (v6.2.0) */
.as4m-launcher { display: none; margin: 0 0 12px; }
.as4m-launcher.is-active { display: block; }
.as4m-launch-btn {
    --as4m-color: #0b2a4a;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 18px;
    border: 2px solid var(--as4m-color);
    border-radius: 24px;
    background: #fff;
    color: var(--as4m-color);
    font: inherit;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.as4m-launch { width: 100%; }
.as4m-ico svg { display: block; }
.as4m-badge {
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 11px;
    background: var(--as4m-color);
    color: #fff;
    font-size: 12px;
    line-height: 22px;
    text-align: center;
}
.as4m-badge[hidden] { display: none; }
.as4m-float {
    position: fixed;
    left: 50%;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 2147482900;
    background: var(--as4m-color);
    color: #fff;
    border-color: var(--as4m-color);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
    transform: translate(-50%, 150%);
    opacity: 0;
    pointer-events: none;
    transition: transform .25s ease, opacity .25s ease;
}
.as4m-float.is-visible { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.as4m-float .as4m-badge { background: #fff; color: var(--as4m-color); }

html.as4m-lock, html.as4m-lock body { overflow: hidden !important; }

.as4m-root {
    --as4m-color: #0b2a4a;
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: 2147483250;
    visibility: hidden;
    pointer-events: none;
    font-size: 15px;
    line-height: 1.35;
    color: #222;
    -webkit-tap-highlight-color: transparent;
}
.as4m-root.is-open { visibility: visible; pointer-events: auto; }
.as4m-root *, .as4m-root *:before, .as4m-root *:after { box-sizing: border-box; }
.as4m-overlay { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: rgba(0, 0, 0, .45); opacity: 0; transition: opacity .3s ease; }
.as4m-root.is-open .as4m-overlay { opacity: 1; }
.as4m-panel {
    position: absolute;
    display: flex;
    flex-direction: column;
    background: #fff;
    box-shadow: 0 0 30px rgba(0, 0, 0, .25);
    transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}
/* positions */
.as4m-pos-right .as4m-panel, .as4m-pos-auto .as4m-panel { top: 0; right: 0; bottom: 0; width: 92%; max-width: 420px; transform: translateX(102%); }
.as4m-pos-left .as4m-panel { top: 0; left: 0; bottom: 0; width: 92%; max-width: 420px; transform: translateX(-102%); }
.as4m-pos-bottom .as4m-panel { left: 0; right: 0; bottom: 0; max-height: 88vh; height: 88vh; border-radius: 16px 16px 0 0; transform: translateY(102%); }
.as4m-pos-full .as4m-panel { top: 0; right: 0; bottom: 0; left: 0; transform: translateY(24px); opacity: 0; transition: transform .3s ease, opacity .25s ease; }
@media (max-width: 767px) {
    .as4m-pos-auto .as4m-panel { width: 100%; max-width: none; }
}
.as4m-root.is-open .as4m-panel { transform: none; opacity: 1; }

.as4m-head {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    min-height: 56px;
    padding: 0 4px;
    padding-top: env(safe-area-inset-top, 0px);
    border-bottom: 1px solid #ececec;
}
.as4m-back, .as4m-close {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 48px;
    height: 48px;
    padding: 0 10px;
    border: 0;
    background: transparent;
    color: var(--as4m-color);
    font: inherit;
    cursor: pointer;
}
.as4m-close { justify-content: center; color: #222; }
.as4m-back-label { font-size: 14px; font-weight: 600; }
.as4m-title { flex: 1 1 auto; min-width: 0; padding: 0 6px; text-align: center; font-weight: 700; font-size: 17px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.as4m-x { position: relative; display: block; width: 20px; height: 20px; }
.as4m-x:before, .as4m-x:after { content: ""; position: absolute; top: 9px; left: 0; width: 20px; height: 2px; background: currentColor; border-radius: 2px; transform: rotate(45deg); }
.as4m-x:after { transform: rotate(-45deg); }
.as4m-chev { flex: 0 0 auto; display: inline-block; width: 9px; height: 9px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); opacity: .6; }
.as4m-chev-back { transform: rotate(-135deg); opacity: 1; }

.as4m-body { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.as4m-overview, .as4m-overview li { list-style: none; margin: 0; padding: 0; }
.as4m-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 60px;
    padding: 10px 16px;
    border: 0;
    border-bottom: 1px solid #ececec;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.as4m-item:focus-visible { outline: 2px solid var(--as4m-color); outline-offset: -2px; }
.as4m-item-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.as4m-item-name { font-weight: 700; }
.as4m-item-value { font-size: 13px; color: #777; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.as4m-item.has-value .as4m-item-value { color: var(--as4m-color); font-weight: 600; }
.as4m-count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--as4m-color); color: #fff; font-size: 12px; line-height: 22px; text-align: center; }

/* etapes */
.as4m-root[data-step="overview"] .as4m-slot { display: none; }
.as4m-root[data-step="group"] .as4m-overview,
.as4m-root[data-step="all"] .as4m-overview { display: none; }
.as4m-root[data-step="group"] .as4m-slot .PM_ASCriterionsGroup:not(.as4m-current) { display: none !important; }
.as4m-root[data-step="group"] .as4m-slot .PM_ASCriterionsGroup.as4m-current { display: block !important; width: 100% !important; max-width: none !important; flex: none !important; float: none !important; }
.as4m-root[data-step="group"] .as4m-slot .PM_ASCriterionsGroupTitle,
.as4m-root[data-step="group"] .as4m-slot .PM_ASSelectionsBlock,
.as4m-root[data-step="group"] .as4m-slot .PM_ASResetSearch,
.as4m-root .as4m-slot .PM_ASShowCriterionsGroupHidden { display: none !important; }
.as4m-root[data-step="all"] .as4m-slot .PM_ASCriterionsGroup { display: block !important; width: 100% !important; max-width: none !important; float: none !important; }

/* bloc d'origine dans le panneau */
.as4m-slot { padding: 12px 16px; }
.as4m-slot .PM_ASBlockOutput { display: block !important; margin: 0 !important; }
.as4m-slot .PM_ASBlockOutput .card { border: 0 !important; box-shadow: none !important; margin: 0 !important; }
.as4m-slot .PM_ASBlockOutput .card-header { display: none !important; }
.as4m-slot .PM_ASBlockOutput .card-block { display: block !important; padding: 0 !important; }
.as4m-slot .PM_ASCriterionsGroupList { margin: 0 !important; }
.as4m-slot .PM_ASSubmitSearch, .as4m-slot .PM_ASSubmitSearch:not(input) { display: none !important; }
.as4m-slot p.col-xs-12.text-center { display: none; }
.as4m-slot .PM_ASCriterionGroupCheckbox li, .as4m-slot .PM_ASCriterionGroupLink li { padding: 6px 0; }
.as4m-slot input[type="checkbox"], .as4m-slot input[type="radio"] { width: 20px; height: 20px; vertical-align: middle; }
.as4m-slot select { min-height: 44px; font-size: 16px; }

.as4m-foot {
    flex: 0 0 auto;
    display: flex;
    gap: 10px;
    padding: 12px 16px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #ececec;
    background: #fff;
}
.as4m-btn {
    flex: 1 1 0;
    min-height: 48px;
    padding: 0 12px;
    border: 2px solid var(--as4m-color);
    border-radius: 8px;
    background: #fff;
    color: var(--as4m-color);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.as4m-btn-show { flex: 1.6 1 0; background: var(--as4m-color); color: #fff; }
.as4m-btn[disabled] { opacity: .4; cursor: default; }
@media (prefers-reduced-motion: reduce) {
    .as4m-panel, .as4m-overlay, .as4m-float { transition: none !important; }
}
