.search-section { background: #f8fafc; }
.search-title {
    font-size: var(--fucsl-title-size, 26px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--fucsl-title-color, #111827);
    font-family: var(--maurin-font-primary, var(--work-sans, 'Jost', sans-serif));
    margin-bottom: 20px;
}

/* ── COMMAND BAR UNIFIÉE (Option B) ── */
.fucs-command-bar-wrapper {
    max-width: 1320px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 95;
}

.fucs-command-bar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 20px 24px 18px;
    box-shadow: 0 12px 32px -4px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: box-shadow .2s ease, border-color .2s ease;
}

@media (min-width: 992px) {
    .fucs-command-bar {
        position: sticky;
        top: 76px;
        z-index: 95;
    }
}

.fucs-command-bar:hover,
.fucs-command-bar:focus-within {
    border-color: #cbd5e1;
    box-shadow: 0 16px 36px -6px rgba(15, 23, 42, 0.12), 0 4px 14px -2px rgba(15, 23, 42, 0.06);
}

/* Étage 1 : Barre de recherche principale - Imposante, aérée, lisible */
.fucs-search-hero-row {
    width: 100%;
    display: flex;
    position: relative;
}

.fucs-command-search.search-box {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 999px;
    padding: 7px 9px 7px 26px;
    width: 100%;
    min-height: 64px;
    box-sizing: border-box;
    transition: all .2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
}

.fucs-command-search.search-box:focus-within {
    background: #ffffff;
    border-color: var(--primary-green, #2a6d47);
    box-shadow: 0 0 0 4px rgba(42, 109, 71, 0.14), 0 8px 24px -4px rgba(42, 109, 71, 0.12);
}

.fucs-search-icon {
    color: #475569;
    font-size: 24px;
    flex-shrink: 0;
    margin-right: 2px;
}

.fucs-command-search.search-box input {
    border: none;
    outline: none;
    background: transparent;
    padding: 0;
    color: #0f172a;
    font-size: 17.5px;
    font-weight: 500;
    flex: 1;
    min-width: 0;
    font-family: inherit;
    line-height: 1.4;
}

.fucs-command-search.search-box input::placeholder {
    color: #94a3b8;
    font-weight: 400;
    font-size: 16px;
}

.fucs-search-clear {
    background: #e2e8f0;
    border: none;
    color: #64748b;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
    flex-shrink: 0;
    padding: 0;
    transition: background-color .15s ease, color .15s ease, transform .12s ease;
}

.fucs-search-clear:hover {
    background: #cbd5e1;
    color: #0f172a;
    transform: scale(1.08);
}

.fucs-command-search.search-box .search_button {
    background: var(--primary-green, #2a6d47);
    border: none;
    color: #ffffff;
    border-radius: 999px;
    height: 50px;
    padding: 0 30px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: 0 3px 10px rgba(42, 109, 71, 0.28);
    transition: background .18s ease, transform .15s ease, box-shadow .18s ease;
}

.fucs-command-search.search-box .search_button:hover {
    background: #1e5234;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(42, 109, 71, 0.36);
}

.fucs-command-search.search-box .search_button i {
    font-size: 16px;
}

@media (max-width: 576px) {
    .fucs-command-bar {
        padding: 14px 14px 12px;
        border-radius: 18px;
    }
    .fucs-command-search.search-box {
        min-height: 56px;
        padding: 5px 6px 5px 18px;
        gap: 10px;
    }
    .fucs-search-icon {
        font-size: 20px;
    }
    .fucs-command-search.search-box input {
        font-size: 15.5px;
    }
    .fucs-command-search.search-box input::placeholder {
        font-size: 14px;
    }
    .fucs-search-btn-text {
        display: none;
    }
    .fucs-command-search.search-box .search_button {
        width: 46px;
        height: 46px;
        padding: 0;
        border-radius: 50%;
    }
}

/* Dropdown des suggestions d'autocomplétion - Spacieux & Lisible */
.fucs-search-suggestions {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    width: 100%;
    background: #ffffff;
    border-radius: 20px;
    border: 1.5px solid #e2e8f0;
    box-shadow: 0 24px 48px -8px rgba(15, 23, 42, 0.22), 0 8px 20px rgba(15, 23, 42, 0.08);
    z-index: 250;
    max-height: 440px;
    overflow-y: auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    animation: fucsDropdownFadeIn .18s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.fucs-sug-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    border-radius: 14px;
    cursor: pointer;
    transition: background .15s ease, transform .1s ease;
    user-select: none;
}

.fucs-sug-item:hover,
.fucs-sug-item.fucs-sug-active {
    background: #f1f5f9;
}

.fucs-sug-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #f1f5f9;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    flex-shrink: 0;
    transition: background .15s ease, color .15s ease;
}

.fucs-sug-icon.icon-energy {
    background: rgba(234, 88, 12, 0.12);
    color: #ea580c;
}

.fucs-sug-icon.icon-make {
    background: rgba(37, 99, 235, 0.12);
    color: #2563eb;
}

.fucs-sug-icon.icon-category {
    background: rgba(147, 51, 234, 0.12);
    color: #9333ea;
}

.fucs-sug-icon.icon-garage {
    background: rgba(13, 148, 136, 0.12);
    color: #0d9488;
}

.fucs-sug-icon.icon-model {
    background: rgba(42, 109, 71, 0.12);
    color: var(--primary-green, #2a6d47);
}

.fucs-sug-icon.icon-combo {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
}

.fucs-sug-item:hover .fucs-sug-icon,
.fucs-sug-item.fucs-sug-active .fucs-sug-icon {
    background: var(--primary-green, #2a6d47);
    color: #ffffff;
}

.fucs-sug-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.35;
}

.fucs-sug-title {
    font-size: 16.5px;
    font-weight: 600;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fucs-sug-title mark {
    background: rgba(42, 109, 71, 0.14);
    color: var(--primary-green, #2a6d47);
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 4px;
}

.fucs-sug-sub {
    font-size: 13.5px;
    color: #64748b;
    font-weight: 500;
    margin-top: 3px;
}

.fucs-sug-pill {
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.01em;
}

.fucs-sug-item:hover .fucs-sug-pill,
.fucs-sug-item.fucs-sug-active .fucs-sug-pill {
    background: rgba(42, 109, 71, 0.15);
    color: var(--primary-green, #2a6d47);
}

.fucs-sug-footer {
    padding: 14px 20px;
    border-top: 1px solid #f1f5f9;
    margin-top: 4px;
    font-size: 14px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    border-radius: 12px;
    transition: background .15s ease, color .15s ease;
}

.fucs-sug-footer:hover,
.fucs-sug-footer.fucs-sug-active {
    background: #f8fafc;
    color: var(--primary-green, #2a6d47);
}

.fucs-sug-empty {
    padding: 20px 18px;
    font-size: 13.5px;
    color: #64748b;
    text-align: center;
    font-style: italic;
}

/* Étage 2 : Filtres rapides — Largeur identique et uniforme pour tous les boutons */
.fucs-filters-row {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 8px;
    align-items: center;
    width: 100%;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
    box-sizing: border-box;
}

.filter-dropdown {
    position: relative;
    font-family: inherit;
    width: 100%;
    min-width: 0;
}

.dropdown-trigger {
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
    padding: 8px 26px 8px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    line-height: 20px;
    outline: none;
    font-family: inherit;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
    position: relative;
    cursor: pointer;
    display: block;
    width: 100%;
    max-width: 100%;
    height: 38px;
    min-height: 38px;
    box-sizing: border-box;
    transition: border-color .18s ease, background-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.dropdown-trigger:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
    color: #0f172a;
}

.dropdown-trigger:focus-visible {
    outline: 2px solid var(--primary-green, #2a6d47);
    outline-offset: 2px;
}

.dropdown-trigger .dropdown-arrow {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    transition: transform .2s ease, color .2s ease;
    pointer-events: none;
    width: 12px;
    height: 12px;
}

.dropdown-trigger:hover .dropdown-arrow {
    color: #334155;
}

.filter-dropdown.active .dropdown-trigger {
    border-color: var(--primary-green, #2a6d47);
    box-shadow: 0 0 0 3px rgba(42, 109, 71, 0.12);
}

.filter-dropdown.active .dropdown-trigger .dropdown-arrow {
    transform: translateY(-50%) rotate(180deg);
    color: var(--primary-green, #2a6d47);
}

/* État avec valeur sélectionnée */
.dropdown-trigger[data-value]:not([data-value=""]):not([data-value="-"]),
.dropdown-trigger.has-value {
    border-color: var(--primary-green, #2a6d47) !important;
    background: #f0fdf4 !important;
    color: #166534 !important;
    font-weight: 600 !important;
}
.dropdown-trigger[data-value]:not([data-value=""]):not([data-value="-"]) .dropdown-arrow,
.dropdown-trigger.has-value .dropdown-arrow {
    color: #166534 !important;
}
.dropdown-trigger[data-value]:not([data-value=""]):not([data-value="-"]):hover,
.dropdown-trigger.has-value:hover {
    background: #dcfce7 !important;
    border-color: var(--primary-green, #2a6d47) !important;
    color: #14532d !important;
}

.dropdown-panel {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 240px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 14px 34px -4px rgba(0, 0, 0, 0.14), 0 4px 10px -2px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    padding: 0;
    display: none;
    z-index: 200;
    overflow: hidden;
}
.filter-dropdown.active .dropdown-panel {
    display: block;
    animation: fucsDropdownFadeIn .18s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fucsDropdownFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-checkbox-list {
    max-height: 260px;
    overflow-y: auto;
    padding: 8px 4px;
}

.dropdown-checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    margin: 1px 4px;
    font-size: 13px;
    color: #1e293b;
    cursor: pointer;
    transition: background .12s ease;
}

.dropdown-checkbox-item:hover {
    background: #f1f5f9;
}

.dropdown-checkbox-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-green, #2a6d47);
    cursor: pointer;
    flex-shrink: 0;
    border-radius: 4px;
}

.dropdown-checkbox-item .item-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}

.dropdown-checkbox-item .item-count {
    color: #64748b;
    font-size: 12px;
    font-weight: 500;
}

/* Bouton "+ de critères" */
.btn-all-filter {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid transparent;
    background: var(--primary-green, #2a6d47);
    color: #ffffff;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    font-family: inherit;
    min-height: 38px;
    box-sizing: border-box;
    transition: background-color .18s ease, transform .15s ease, box-shadow .18s ease;
    box-shadow: 0 2px 8px rgba(42, 109, 71, 0.25);
}

.btn-all-filter:hover {
    background: #1e5234;
    box-shadow: 0 4px 14px rgba(42, 109, 71, 0.35);
    transform: translateY(-1px);
}

.btn-all-filter:focus-visible {
    outline: 2px solid #111827;
    outline-offset: 2px;
}

.btn-all-filter__icon {
    flex-shrink: 0;
}

.fucs-btn-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: var(--primary-green, #2a6d47);
    font-size: 11px;
    font-weight: 700;
    border-radius: 999px;
    padding: 1px 6px;
    min-width: 18px;
    line-height: 1.3;
}

/* Barre de badges actifs */
.fucs-badges-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    margin-bottom: 8px;
    min-height: 0;
    padding-left: 4px;
}

.fucs-badges-bar:empty {
    margin-top: 0;
    margin-bottom: 0;
    display: none;
}

.fucs-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px 5px 12px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 500;
    color: #166534;
    font-family: inherit;
    line-height: 1.25;
    white-space: nowrap;
    animation: fucsDropdownFadeIn .15s ease;
}

.fucs-badge__label {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fucs-badge__remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #166534;
    font-size: 15px;
    cursor: pointer;
    padding: 0;
    transition: background .15s, color .15s;
    flex-shrink: 0;
    line-height: 1;
}

.fucs-badge__remove:hover {
    background: #dcfce7;
    color: #14532d;
}

.fucs-badge__remove:focus-visible {
    outline: 2px solid #166534;
    outline-offset: 1px;
}

.fucs-badge--clear-all {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    cursor: pointer;
    font-weight: 600;
    font-size: 12px;
    padding: 5px 12px;
    border-radius: 999px;
    transition: all .15s ease;
}

.fucs-badge--clear-all:hover {
    background: #fee2e2;
    border-color: #f87171;
    color: #b91c1c;
}

/* Mobile Floating Action Button (FAB) */
.fucs-mobile-fab {
    display: none;
    position: fixed;
    bottom: 22px;
    right: 20px;
    z-index: 850;
    background: var(--primary-green, #2a6d47);
    color: #ffffff;
    border: none;
    border-radius: 999px;
    padding: 12px 22px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(42, 109, 71, 0.4), 0 2px 6px rgba(0, 0, 0, 0.1);
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-family: inherit;
    transition: background .18s, transform .15s, box-shadow .18s;
}

.fucs-mobile-fab:hover {
    background: #1e5234;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(42, 109, 71, 0.5);
}

.fucs-mobile-fab:active {
    transform: translateY(0);
}

.fucs-mobile-fab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: var(--primary-green, #2a6d47);
    font-size: 11px;
    font-weight: 700;
    border-radius: 999px;
    padding: 1px 7px;
    min-width: 18px;
}

@media (max-width: 991px) {
    .fucs-mobile-fab {
        display: inline-flex;
    }
}

.backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 900; backdrop-filter: blur(2px); }
.backdrop.visible { display: block; }

.filter-modal { display: none; position: fixed; top: 0; right: 0; height: 100%; max-width: 598px; width: 100%; background: #fff; z-index: 1000; flex-direction: column; box-shadow: -4px 0 24px rgba(0,0,0,.15); transform: translateX(100%); transition: transform .3s cubic-bezier(.4,0,.2,1); border-radius: 12px; font-family: var(--work-sans); }
.filter-modal.open { display: flex; transform: translateX(0); animation: slideIn .3s cubic-bezier(.4,0,.2,1) forwards; }
@keyframes slideIn { from { transform: translateX(60px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.fm-header { display: flex; align-items: center; justify-content: space-between; padding: 11px 15px; border-bottom: 1px solid #E5E7EB; flex-shrink: 0; }
.fm-title { font-size: 18px; font-weight: 700; color: #101828; letter-spacing: -0.4px; }
.fm-close { background: none; border: none; font-size: 18px; color: #A7A5A5; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: color .15s; }
.fm-close:hover { color: #111; }
.fm-tabs-slider { display: flex; align-items: stretch; border-bottom: 1px solid #e0e0e0; flex-shrink: 0; position: relative; }
.tab-arrow { flex-shrink: 0; width: 36px; display: flex; align-items: center; justify-content: center; background: #fff; border: none; color: #A7A5A5; cursor: pointer; transition: color .15s; z-index: 1; }
.tab-arrow:hover { color: #101828; }
.fm-tabs { display: flex; gap: 0; overflow-x: auto; flex: 1; scrollbar-width: none; scroll-behavior: smooth; }
.fm-tabs::-webkit-scrollbar { display: none; }
.fm-tab { flex: 0 0 auto; padding: 11px 16px; font-size: 13px; font-weight: 500; color: #A7A5A5; background: none; border: none; border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; transition: color .15s, border-color .15s; }
.fm-tab:hover { color: #101828; }
.fm-tab.active { color: #101828; border-bottom-color: var(--primary-green); }
.fm-body { flex: 1; overflow-y: auto; padding: 22px; scrollbar-width: thin; scrollbar-color: #ccc transparent; }
.fm-section { display: none; }
.fm-section.active { display: block; }
.fm-section-title { font-size: 13px; font-weight: 700; color: #101828; margin-bottom: 12px; }

.category-checkbox-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 640px; }
.category-checkbox-item { cursor: pointer; display: flex; width: 100%; height: 100%; }
.category-checkbox-item input { display: none; }
.category-checkbox-label { display: flex; flex-direction: column; justify-content: center; align-items: center; width: 100%; height: 100%; min-height: 54px; box-sizing: border-box; padding: 6px 8px; text-align: center; border-radius: 10px; border: 2px solid #E5E7EB; background: #fff; transition: 0.2s ease; color: #101828; font-size: 12.5px; font-weight: 600; line-height: 1.25; }
.category-checkbox-label span { display: block; font-size: 11px; color: #4A5565; font-weight: 400; margin-top: 2px; }
.category-checkbox-item:hover .category-checkbox-label { border-color: var(--primary-green); }
.category-checkbox-item input:checked + .category-checkbox-label { border-color: var(--primary-green); background: #F9FAFB; }

.brand-filter__list { display: flex; flex-direction: column; gap: 0; }
.brand-filter__item { display: flex; align-items: center; gap: 9px; padding: 11px 0; font-size: 12px; font-weight: 500; color: #101828; cursor: pointer; user-select: none; }
.brand-filter__item input[type="checkbox"] { width: 15px; height: 15px; accent-color: #101828; cursor: pointer; flex-shrink: 0; }
.brand-count { color: #4A5565; font-size: 13px; }
.brand-extra.hidden { display: none; }
.show-more-btn { margin-top: 14px; padding: 6px 9px; border: 1.5px solid #101828; border-radius: 32px; background: #fff; color: #101828; font-size: 11px; font-weight: 600; cursor: pointer; }
.fm-make-search { width: 100%; box-sizing: border-box; padding: 9px 12px; margin: 2px 0 12px; border: 1.5px solid #e4e7ec; border-radius: 10px; font-size: 12px; color: #101828; outline: none; }
.fm-make-search:focus { border-color: #101828; }
.brand-filter__list.is-collapsed .brand-filter__item.is-overflow { display: none; }
.model-filter__list.is-collapsed .model-filter__item.is-overflow { display: none; }
.dropdown-empty-msg { padding: 12px 14px; font-size: 13px; color: #6b7280; text-align: center; line-height: 1.4; }
.fm-make-search-wrap { position: relative; margin: 2px 0 12px; }
.fm-make-search-wrap .fm-make-search { margin: 0; padding-right: 34px; }
.fm-make-search-clear { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; padding: 0; border: none; background: transparent; color: #98a2b3; font-size: 17px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.fm-make-search-clear:hover { background: #f2f4f7; color: #101828; }
.fm-make-search:placeholder-shown + .fm-make-search-clear { display: none; }

.model-filter__list { display: flex; flex-direction: column; }
.model-filter__item { display: flex; align-items: center; gap: 9px; padding: 11px 0; font-size: 12px; font-weight: 500; color: #101828; cursor: pointer; border-bottom: 1px solid #f0f0f0; }
.model-filter__item input[type="checkbox"] { width: 15px; height: 15px; accent-color: #101828; cursor: pointer; flex-shrink: 0; }
.model-count { color: #4A5565; font-size: 13px; margin-left: auto; }

.info-box { display: flex; gap: 10px; background: #eff6ff; border: 1px solid #BEDBFF; border-radius: 8px; padding: 14px 13px; font-size: 11px; color: #364153; line-height: 1.5; }
.info-box a { color: #1447E6; font-weight: 600; }

.range-row { display: flex; align-items: flex-end; gap: 12px; margin-bottom: 20px; }
.range-group { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.range-group label { font-size: 11px; color: #364153; font-weight: 500; }
.range-input-num { width: 100%; padding: 9px 12px; border: 1px solid #D1D5DC; border-radius: 8px; font-size: 12px; color: #0A0A0A; outline: none; -moz-appearance: textfield; }
.range-input-num::-webkit-inner-spin-button, .range-input-num::-webkit-outer-spin-button { -webkit-appearance: none; }
.range-divider { color: #0A0A0A; padding-bottom: 10px; font-size: 15px; }

.doors-filter { display: flex; gap: 12px; flex-wrap: wrap; }
.doors-option input { display: none; }
.doors-option span { display: block; padding: 14px; border-radius: 12px; border: 2px solid #E5E7EB; background: #fff; cursor: pointer; text-align: center; transition: 0.3s; font-size: 13px; }
.doors-option:hover span { border-color: var(--primary-green); }
.doors-option input:checked + span { border-color: var(--primary-green); background: #F9FAFB; }
.doors-count { display: block; font-size: 11px; color: #6b7280; margin-top: 3px; font-weight: 400; }

.fm-footer { display: flex; align-items: center; flex-direction: column; justify-content: space-between; padding: 16px 20px; border-top: 1px solid #e0e0e0; background: #fff; flex-shrink: 0; gap: 12px; }
.btn-clear { padding: 12px 22px; border: 1.5px solid #101828; border-radius: 32px; background: #fff; font-size: 15px; font-weight: 600; color: #0A0A0A; cursor: pointer; display: flex; align-items: center; gap: 8px; width: 100%; justify-content: center; }
.btn-clear:hover { background: #f7f7f7; }
.btn-results { padding: 12px 40px; border: none; border-radius: 32px; background: var(--primary-green); color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; text-align: center; width: 100%; }
.btn-results:hover { opacity: 0.9; }

@media (max-width: 480px) { .filter-modal { border-radius: 0; } .category-checkbox-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 768px) { .fm-footer { flex-direction: row; } .btn-clear, .btn-results { width: auto; } }
@media (min-width: 992px) { .search-title { font-size: var(--fucsl-title-size, 32px); } .fucs-search-row .search-box { min-width: 480px; } }
@media (min-width: 1440px) { .search-title { font-size: var(--fucsl-title-size, 36px); } .filter-dropdown { min-width: 120px; } }


/* ====== Budget / Kilométrage : dropdown range (calqué sur franck-search-engine-banner) ====== */
.fucs-budget-panel { min-width: 320px; padding: 16px 16px 14px; }
.fucs-budget { font-family: var(--work-sans); }
.fucs-budget-toggle {
    display: inline-flex;
    align-items: center;
    width: 100%;
    min-height: 38px;
    padding: 3px;
    margin-bottom: 14px;
    background: #f1f5f9;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    box-sizing: border-box;
}
.fucs-budget-toggle-btn {
    flex: 1;
    border: none;
    background: transparent;
    min-height: 32px;
    padding: 4px 10px;
    font-size: 12.5px;
    font-weight: 700;
    border-radius: 999px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
}
.fucs-budget-toggle-btn:hover {
    color: #0f172a;
}
.fucs-budget-toggle-btn.is-active {
    background: #ffffff;
    color: var(--primary-green, #007838);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.1);
}
.fucs-budget-fields { display: flex; align-items: flex-end; gap: 8px; margin-bottom: 12px; }
.fucs-budget-field { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.fucs-budget-field-label { font-size: 10px; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.06em; }
.fucs-budget-field-inner { position: relative; display: flex; align-items: center; }
.fucs-budget-input { width: 100%; height: 36px; border: 1.5px solid #e2e8f0; border-radius: 10px; padding: 0 30px 0 10px; font-size: 13px; font-weight: 700; color: #0f172a; background: #f8fafc; outline: none; box-sizing: border-box; transition: border-color .18s ease, background .18s ease, box-shadow .18s ease; -moz-appearance: textfield; font-family: var(--work-sans); }
.fucs-budget-input::-webkit-inner-spin-button, .fucs-budget-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.fucs-budget-input:focus { border-color: var(--primary-green, #007838); background: #fff; box-shadow: 0 0 0 3px rgba(0,120,56,.10); }
.fucs-budget-unit { position: absolute; right: 9px; font-size: 12px; font-weight: 700; color: #94a3b8; pointer-events: none; line-height: 1; }
.fucs-budget-sep { font-size: 14px; color: #cbd5e1; flex-shrink: 0; padding-bottom: 8px; align-self: flex-end; }
.fucs-budget-slider { position: relative; height: 28px; display: flex; align-items: center; padding: 0 2px; }
.fucs-budget-track-bg { position: absolute; left: 0; right: 0; height: 4px; background: #e2e8f0; border-radius: 999px; pointer-events: none; }
.fucs-budget-track-active { position: absolute; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--primary-green, #007838) 0%, #3c9a65 100%); border-radius: 999px; pointer-events: none; }
.fucs-budget-range { position: absolute; left: 0; width: 100%; height: 4px; -webkit-appearance: none; appearance: none; background: transparent; pointer-events: none; outline: none; margin: 0; padding: 0; }
.fucs-budget-range--min { z-index: 2; }
.fucs-budget-range--max { z-index: 3; }
.fucs-budget-range:active { z-index: 10 !important; }
.fucs-budget-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2.5px solid var(--primary-green, #007838); box-shadow: 0 1px 6px rgba(0,120,56,.22), 0 1px 3px rgba(0,0,0,.08); cursor: grab; pointer-events: all; transition: transform .12s ease, box-shadow .12s ease; }
.fucs-budget-range::-webkit-slider-thumb:hover { transform: scale(1.2); }
.fucs-budget-range:active::-webkit-slider-thumb { cursor: grabbing; transform: scale(1.25); }
.fucs-budget-range::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2.5px solid var(--primary-green, #007838); box-shadow: 0 1px 6px rgba(0,120,56,.22), 0 1px 3px rgba(0,0,0,.08); cursor: grab; pointer-events: all; }
.filter-dropdown.fucs-range-dd .dropdown-trigger[data-value]:not([data-value=""]):not([data-value="-"]),
.filter-dropdown.fucs-range-dd .dropdown-trigger.has-value {
    border-color: var(--primary-green, #2a6d47) !important;
    background: #f0fdf4 !important;
    color: #166534 !important;
    font-weight: 600 !important;
}
.filter-dropdown.fucs-range-dd .dropdown-trigger[data-value]:not([data-value=""]):not([data-value="-"]) .dropdown-arrow,
.filter-dropdown.fucs-range-dd .dropdown-trigger.has-value .dropdown-arrow {
    color: #166534 !important;
}
.filter-dropdown.fucs-range-dd .dropdown-trigger[data-value]:not([data-value=""]):not([data-value="-"]):hover,
.filter-dropdown.fucs-range-dd .dropdown-trigger.has-value:hover {
    background: #dcfce7 !important;
    border-color: var(--primary-green, #2a6d47) !important;
    color: #14532d !important;
}


/* ===== fucsl-layout-phase1 : largeur / density / hauteur / margins / paddings ===== */
.search-section {
    background: var(--fucsl-section-bg, #f8fafc);
    margin-top: var(--fucsl-margin-top, 0px);
    margin-bottom: min(var(--fucsl-margin-bottom, 0px), 8px) !important;
    padding-top: var(--fucsl-pad-top, 28px);
    padding-bottom: min(var(--fucsl-pad-bottom, 8px), 8px) !important;
    min-height: var(--fucsl-min-height, auto);
}
.search-section .container-row {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--fucsl-pad-x, 42px);
    padding-right: var(--fucsl-pad-x, 42px);
}
.search-section--full .container-row { max-width: var(--fucsl-density-pct, 86%); }
.search-section--container .container-row { max-width: min(1320px, var(--fucsl-density-pct, 86%)); }


/* ===== fucsl-bg-phase2 : fond section + card zone de recherche ===== */
.search-section .container-row {
    background: var(--fucsl-card-bg, transparent);
    border-radius: var(--fucsl-card-radius, 0px);
    padding-top: var(--fucsl-card-pad-y, 0px);
    padding-bottom: var(--fucsl-card-pad-y, 0px);
}


/* ===== fucsl-media-phase : couche média de fond section + overlay ===== */
.search-section { position: relative; }
.fucsl-section-media {
    position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
}
.fucsl-section-media-el {
    width: 100%; height: 100%; display: block;
    object-fit: var(--fucsl-media-fit, cover);
    transform: translate(var(--fucsl-media-x, 0px), var(--fucsl-media-y, 0px)) scale(calc(var(--fucsl-media-zoom, 100) / 100));
    transform-origin: center center;
}
iframe.fucsl-section-media-el { border: 0; }
.fucsl-section-overlay {
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: var(--fucsl-overlay-bg, transparent);
}
/* le contenu (titre + barre de recherche) passe au-dessus du média/overlay */
.search-section .container-row { position: relative; z-index: 2; }


/* ===== fucsl-polish : opacité fond moteur + contour zone recherche ===== */
.search-section .container-row { background: transparent !important; }
.search-section .container-row::before {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: var(--fucsl-card-bg, transparent);
    opacity: var(--fucsl-card-opacity, 1);
    border-radius: inherit; pointer-events: none;
}
.fucs-search-row .search-box,
.search-bar .search-box {
    border: var(--fucsl-searchbox-border-width, 0px) solid var(--fucsl-searchbox-border-color, transparent);
}


/* fucsl-filterbtn-fix : re-affirme la pill "+ de criteres" dans le builder (bat le reset global) */
.fucs-filters-row #openFilter.btn-all-filter {
  display: inline-flex !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 38px !important;
  min-height: 38px !important;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: none !important;
  background: var(--fucsl-filterbtn-bg, #007838) !important;
  color: #fff !important;
  padding: 0 8px !important;
  border-radius: 999px !important;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
  cursor: pointer;
  transition: background 0.2s;
}
.fucs-filters-row #openFilter.btn-all-filter span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fucs-filters-row #openFilter.btn-all-filter:hover {
  background: var(--fucsl-filterbtn-bg-hover, #005f2d) !important;
}


/* fucsl-sidebar-v2 : panneau filtres en scroll unique + ancres */
.fm-section { display: block; scroll-margin-top: 12px; }
.fm-section.active { display: block; }
.fm-tabs-slider { position: sticky; top: 0; z-index: 6; background: #fff; }
.fm-body { scroll-behavior: smooth; }
.fm-sep { border: 0; border-top: 1px solid #007838; margin: 22px 0; }
/* ronds de couleur */
.fm-color-grid { display: flex; flex-wrap: wrap; gap: 14px; }
.fm-color-item { display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; width: 54px; }
.fm-color-item input { display: none; }
.fm-color-swatch { width: 34px; height: 34px; border-radius: 50%; border: 2px solid #E5E7EB; box-shadow: inset 0 0 0 2px #fff; transition: .15s; display: block; }
.fm-color-item input:checked + .fm-color-swatch { border-color: var(--primary-green, #007838); box-shadow: inset 0 0 0 2px #fff, 0 0 0 2px var(--primary-green, #007838); }
.fm-color-name { font-size: 11px; color: #4A5565; text-align: center; }
/* interrupteur oui/non (1ere main) */
.fm-toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fm-toggle-label { font-size: 13px; font-weight: 600; color: #101828; }
.fm-toggle { position: relative; display: inline-block; width: 46px; height: 26px; flex-shrink: 0; }
.fm-toggle input { display: none; }
.fm-toggle-slider { position: absolute; inset: 0; background: #d1d5db; border-radius: 999px; transition: .2s; cursor: pointer; }
.fm-toggle-slider::before { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.fm-toggle input:checked + .fm-toggle-slider { background: var(--primary-green, #007838); }
.fm-toggle input:checked + .fm-toggle-slider::before { transform: translateX(20px); }


/* fucsl-modal-ztop : la modale filtres passe au-dessus du header sticky du site */
.backdrop { z-index: 100000 !important; }
.filter-modal { z-index: 100001 !important; }

/* fucs-modal-over-menu */
/* Quand le panneau de filtres est ouvert, il passe AU-DESSUS du méga-menu. */
body.fucs-modal-open .franck-mega-menu,
body.fucs-modal-open .franck-mega-menu__inner { z-index: 1 !important; }
body.fucs-modal-open .filter-modal { z-index: 100001 !important; }
body.fucs-modal-open .backdrop { z-index: 100000 !important; }

/* Renault-fix: menu sous modal via :has */
body:has(.filter-modal.open) .franck-mega-menu-wrapper--sticky,
body:has(.filter-modal.open) .franck-menu-renault-wrapper--sticky,
body:has(.filter-modal.open) [class*="mega-menu-wrapper--sticky"] {
    z-index: 1 !important;
}


/* ===== Tiroir (+ de critères) Compact & 2 Colonnes & Z-Index Fix ===== */
.backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 99998 !important;
    backdrop-filter: blur(2px);
}
.backdrop.visible { display: block !important; }

.filter-modal {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    max-width: 520px;
    width: 100%;
    background: #fff;
    z-index: 99999 !important;
    flex-direction: column;
    box-shadow: -4px 0 24px rgba(0,0,0,.15);
    transform: translateX(100%);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    border-radius: 12px 0 0 12px;
    font-family: var(--work-sans);
}
.filter-modal.open {
    display: flex !important;
    transform: translateX(0) !important;
    animation: slideIn .3s cubic-bezier(.4,0,.2,1) forwards;
}

/* En-tête compact du tiroir */
.fm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    border-bottom: 1px solid #E5E7EB;
    flex-shrink: 0;
}
.fm-title {
    font-size: 15px;
    font-weight: 700;
    color: #101828;
    letter-spacing: -0.3px;
}
.fm-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    transition: color .15s;
}
.fm-close:hover { color: #0f172a; }

/* Onglets slider compacts */
.fm-tabs-slider {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid #e0e0e0;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 6;
    background: #fff;
    height: 38px;
}
.tab-arrow {
    width: 28px;
    font-size: 14px;
}
.fm-tab {
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 500;
}

/* Corps du tiroir compact */
.fm-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px 18px;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
    scroll-behavior: smooth;
}
.fm-body::-webkit-scrollbar {
    width: 6px;
}
.fm-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}
.fm-section-title {
    font-size: 12px;
    font-weight: 700;
    color: #007838;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.fm-sep {
    border: 0;
    border-top: 1px solid #e5e7eb;
    margin: 10px 0;
}

/* Recherche compacte dans le tiroir (Marques, Sites, Villes) */
.fm-make-search-wrap {
    position: relative;
    margin: 2px 0 6px;
}
.fm-make-search {
    width: 100%;
    height: 30px;
    box-sizing: border-box;
    padding: 3px 26px 3px 8px;
    margin: 0;
    border: 1.5px solid #e2e8f0;
    border-radius: 6px;
    font-size: 11px;
    color: #101828;
    outline: none;
    background: #fff;
    transition: border-color .15s;
}
.fm-make-search:focus {
    border-color: #007838;
}
.fm-make-search-clear {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    padding: 0;
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.fm-make-search-clear:hover {
    background: #f1f5f9;
    color: #0f172a;
}

/* Grilles 2 Colonnes pour Marques, Sites et Villes */
.brand-filter__list {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 2px 10px !important;
}
.brand-filter__item {
    display: flex;
    align-items: center !important;
    gap: 6px !important;
    padding: 4px 0 !important;
    font-size: 11.5px !important;
    font-weight: 500 !important;
    color: #1e293b !important;
    cursor: pointer !important;
    user-select: none !important;
    min-width: 0 !important;
    transition: color .15s !important;
}
.brand-filter__item:hover {
    color: #007838 !important;
}
.brand-filter__item input[type="checkbox"] {
    width: 14px !important;
    height: 14px !important;
    accent-color: #007838 !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
}
.brand-filter__item .brand-name-text {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    flex: 1 !important;
    min-width: 0 !important;
}
.brand-count {
    color: #64748b !important;
    font-size: 11px !important;
    margin-left: auto !important;
    padding-right: 4px !important;
    flex-shrink: 0 !important;
}
.brand-filter__list.is-collapsed .brand-filter__item.is-overflow {
    display: none !important;
}
.brand-filter__item.is-search-hidden,
.model-filter__item.is-search-hidden {
    display: none !important;
}
.brand-filter__no-match {
    grid-column: 1 / -1 !important;
    font-size: 11.5px !important;
    color: #64748b !important;
    padding: 10px 4px !important;
    font-style: italic !important;
}

.fucs-budget-scale {
    display: flex !important;
    justify-content: space-between !important;
    font-size: 10.5px !important;
    color: #94a3b8 !important;
    font-weight: 500 !important;
    margin-top: 4px !important;
    user-select: none !important;
}

.show-more-btn {
    grid-column: 1 / -1;
    margin-top: 6px !important;
    padding: 3px 12px !important;
    border: 1.5px solid #007838 !important;
    border-radius: 20px !important;
    background: #fff !important;
    color: #007838 !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    width: fit-content !important;
    transition: all .15s !important;
}
.show-more-btn:hover {
    background: #007838 !important;
    color: #fff !important;
}

/* Modèles sur 2 colonnes */
.model-filter__list {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 2px 10px !important;
}
.model-filter__item {
    display: flex;
    align-items: center !important;
    gap: 6px !important;
    padding: 4px 0 !important;
    font-size: 11.5px !important;
    font-weight: 500 !important;
    color: #1e293b !important;
    cursor: pointer !important;
    border-bottom: none !important;
    min-width: 0 !important;
}
.model-filter__item input[type="checkbox"] {
    width: 14px !important;
    height: 14px !important;
    accent-color: #007838 !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
}
.model-filter__item .model-name-text {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    flex: 1 !important;
    min-width: 0 !important;
}
.model-count {
    color: #64748b !important;
    font-size: 11px !important;
    margin-left: auto !important;
    flex-shrink: 0 !important;
}

/* Catégories, Énergies, Boîtes de vitesse - Blocs uniformes et harmonieux */
.category-checkbox-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
}
.category-checkbox-item {
    display: flex !important;
    width: 100% !important;
    height: 100% !important;
}
.category-checkbox-label {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 54px !important;
    box-sizing: border-box !important;
    padding: 6px 8px !important;
    font-size: 12px !important;
    border-radius: 10px !important;
    line-height: 1.25 !important;
}
.category-checkbox-label span {
    font-size: 10.5px !important;
    margin-top: 2px !important;
}

/* Boîte de vitesse spécifiquement : 6 éléments parfaitement symétriques en 3 colonnes x 2 rangées */
#gearboxGrid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
}
#gearboxGrid .category-checkbox-item {
    display: flex !important;
    width: 100% !important;
    height: 100% !important;
}
#gearboxGrid .category-checkbox-label {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 56px !important;
    box-sizing: border-box !important;
    padding: 8px 6px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
    line-height: 1.25 !important;
}
#gearboxGrid .category-checkbox-label span {
    font-size: 11px !important;
    font-weight: 400 !important;
    color: #64748b !important;
    margin-top: 3px !important;
}

@media (max-width: 480px) {
    #gearboxGrid,
    .category-checkbox-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Budget / km sliders compacts */
.fucs-budget-fields {
    margin-bottom: 6px !important;
}
.fucs-budget-input {
    height: 30px !important;
    font-size: 12px !important;
    border-radius: 6px !important;
}
.fucs-budget-slider {
    height: 22px !important;
}

/* Portes */
.doors-filter {
    gap: 6px !important;
}
.doors-option span {
    padding: 6px 10px !important;
    font-size: 11.5px !important;
    border-radius: 8px !important;
}

/* Couleurs */
.fm-color-grid {
    gap: 8px !important;
}
.fm-color-item {
    width: 44px !important;
    gap: 4px !important;
}
.fm-color-swatch {
    width: 26px !important;
    height: 26px !important;
}
.fm-color-name {
    font-size: 10px !important;
}

/* Pied du tiroir compact & fixe */
.fm-footer {
    display: flex !important;
    align-items: center !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    padding: 8px 16px !important;
    border-top: 1px solid #e2e8f0 !important;
    background: #fff !important;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.06) !important;
    flex-shrink: 0 !important;
    gap: 10px !important;
    z-index: 10 !important;
}
.btn-clear {
    padding: 6px 14px !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 999px !important;
    background: #fff !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #475569 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    width: auto !important;
    justify-content: center !important;
    min-height: 34px !important;
    transition: all .15s !important;
}
.btn-clear:hover {
    background: #f8fafc !important;
    border-color: #94a3b8 !important;
}
.btn-results {
    padding: 6px 20px !important;
    border: none !important;
    border-radius: 999px !important;
    background: #007838 !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    text-align: center !important;
    width: auto !important;
    flex: 1 !important;
    min-height: 34px !important;
    transition: opacity .15s, background .15s !important;
}
.btn-results:hover {
    background: #005f2d !important;
}

/* PRIORITÉ ABSOLUE Z-INDEX : LE TIROIR RESTE EN FRONT DU BANDEAU LÉGAL FLNB */
body.fucs-modal-open .flnb-wrapper--sticky,
body:has(.filter-modal.open) .flnb-wrapper--sticky {
    z-index: 10 !important;
}
body.fucs-modal-open .search-section,
body:has(.filter-modal.open) .search-section {
    z-index: 99990 !important;
}
body.fucs-modal-open .search-section .container-row,
body:has(.filter-modal.open) .search-section .container-row {
    z-index: 99990 !important;
}

/* ==========================================================================
   MOBILE SEARCH & FILTERS OPTIMIZATIONS (Smartphones & Tablets < 992px)
   ========================================================================== */

/* 1. Section Container & Title */
@media (max-width: 991px) {
    .search-section .container-row {
        padding-left: 14px !important;
        padding-right: 14px !important;
        max-width: 100% !important;
    }
    
    .search-title {
        font-size: 22px !important;
        line-height: 1.25 !important;
        margin-bottom: 14px !important;
        text-align: left !important;
    }

    .fucs-command-bar {
        padding: 14px 14px 10px !important;
        border-radius: 18px !important;
        box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06) !important;
    }
}

@media (max-width: 576px) {
    .search-section .container-row {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .search-title {
        font-size: 19px !important;
        margin-bottom: 12px !important;
    }

    .fucs-command-bar {
        padding: 12px 10px 8px !important;
        border-radius: 16px !important;
        gap: 10px !important;
    }
}

/* 2. Search Hero Box Mobile */
@media (max-width: 576px) {
    .fucs-command-search.search-box {
        min-height: 48px !important;
        height: 48px !important;
        padding: 4px 6px 4px 14px !important;
        gap: 8px !important;
        border-radius: 999px !important;
    }

    .fucs-search-icon {
        font-size: 18px !important;
    }

    .fucs-command-search.search-box input {
        font-size: 15px !important;
    }

    .fucs-command-search.search-box input::placeholder {
        font-size: 13.5px !important;
    }

    .fucs-search-clear {
        width: 28px !important;
        height: 28px !important;
        font-size: 11px !important;
    }

    .fucs-command-search.search-box .search_button {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        padding: 0 !important;
        border-radius: 50% !important;
    }

    .fucs-command-search.search-box .search_button i {
        font-size: 15px !important;
    }

    .fucs-search-suggestions {
        max-height: 55vh !important;
        border-radius: 16px !important;
    }

    .fucs-sug-item {
        padding: 10px 14px !important;
        gap: 12px !important;
    }

    .fucs-sug-icon {
        width: 36px !important;
        height: 36px !important;
        font-size: 16px !important;
    }

    .fucs-sug-title {
        font-size: 14.5px !important;
    }
}

/* 3. Horizontal Scrollable Filter Chips Bar */
@media (max-width: 991px) {
    .fucs-filters-row {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important; /* Firefox */
        gap: 8px !important;
        padding-top: 10px !important;
        padding-bottom: 6px !important;
        margin: 0 -6px !important;
        padding-left: 6px !important;
        padding-right: 6px !important;
    }

    .fucs-filters-row::-webkit-scrollbar {
        display: none !important; /* Chrome, Safari */
    }

    /* Make each dropdown a uniform-width horizontal chip on mobile */
    .fucs-filters-row .filter-dropdown {
        flex: 0 0 135px !important;
        width: 135px !important;
        min-width: 135px !important;
        max-width: 135px !important;
        white-space: nowrap !important;
    }

    .fucs-filters-row .dropdown-trigger {
        min-height: 34px !important;
        height: 34px !important;
        line-height: 18px !important;
        padding: 0 24px 0 10px !important;
        font-size: 12px !important;
        border-radius: 999px !important;
        background: #ffffff;
        border: 1px solid #e2e8f0;
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        box-sizing: border-box !important;
    }

    .fucs-filters-row .dropdown-trigger[data-value]:not([data-value=""]):not([data-value="-"]),
    .fucs-filters-row .dropdown-trigger.has-value {
        background: #f0fdf4 !important;
        border-color: var(--primary-green, #2a6d47) !important;
        color: #166534 !important;
        font-weight: 600 !important;
    }

    .fucs-filters-row .dropdown-trigger .dropdown-arrow {
        right: 8px !important;
        width: 10px !important;
        height: 10px !important;
    }

    .fucs-filters-row .dropdown-trigger[data-value]:not([data-value=""]):not([data-value="-"]) .dropdown-arrow,
    .fucs-filters-row .dropdown-trigger.has-value .dropdown-arrow {
        color: #166534 !important;
    }

    /* Le bouton "+ de critères" passe EN PREMIER à gauche avec un style attractif */
    .fucs-filters-row #openFilter.btn-all-filter {
        order: -1 !important;
        flex: 0 0 auto !important;
        min-height: 34px !important;
        height: 34px !important;
        padding: 0 16px !important;
        font-size: 12.5px !important;
        font-weight: 700 !important;
        border-radius: 999px !important;
        background: var(--primary-green, #2a6d47) !important;
        color: #ffffff !important;
        box-shadow: 0 2px 8px rgba(42, 109, 71, 0.3) !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
    }

    .fucs-filters-row #openFilter.btn-all-filter:hover {
        background: #1e5234 !important;
    }
}

/* 4. Active Badges Bar on Mobile */
@media (max-width: 991px) {
    .fucs-badges-bar {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        gap: 6px !important;
        padding: 8px 0 4px !important;
        margin-top: 4px !important;
    }
    .fucs-badges-bar::-webkit-scrollbar {
        display: none !important;
    }
    .fucs-badge {
        flex: 0 0 auto !important;
        font-size: 11.5px !important;
        padding: 4px 10px !important;
        border-radius: 999px !important;
    }
}

/* 5. Mobile Filter Modal (Drawer Full Screen) */
@media (max-width: 767px) {
    .filter-modal {
        top: 0 !important;
        right: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        height: 100dvh !important;
        border-radius: 0 !important;
        transform: translateX(100%) !important;
        transition: transform .28s cubic-bezier(0.16, 1, 0.3, 1) !important;
        box-shadow: none !important;
    }

    .filter-modal.open {
        transform: translateX(0) !important;
    }

    /* Modal Header */
    .fm-header {
        height: 50px !important;
        padding: 0 16px !important;
        background: #ffffff !important;
        border-bottom: 1px solid #e2e8f0 !important;
    }

    .fm-title {
        font-size: 16px !important;
        font-weight: 700 !important;
    }

    .fm-close {
        width: 36px !important;
        height: 36px !important;
        border-radius: 50% !important;
        background: #f1f5f9 !important;
        color: #475569 !important;
        font-size: 16px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Tabs Slider : Touch Scroll sans flèches encombrantes */
    .fm-tabs-slider {
        height: 44px !important;
        background: #ffffff !important;
        border-bottom: 1px solid #e2e8f0 !important;
    }

    .tab-arrow {
        display: none !important;
    }

    .fm-tabs {
        padding: 0 12px !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        gap: 4px !important;
    }
    .fm-tabs::-webkit-scrollbar {
        display: none !important;
    }

    .fm-tab {
        padding: 10px 14px !important;
        font-size: 12.5px !important;
        font-weight: 600 !important;
        color: #64748b !important;
        border-bottom: 2px solid transparent !important;
    }

    .fm-tab.active {
        color: var(--primary-green, #2a6d47) !important;
        border-bottom-color: var(--primary-green, #2a6d47) !important;
    }

    /* Body */
    .fm-body {
        padding: 16px 14px !important;
        -webkit-overflow-scrolling: touch !important;
    }

    /* Grilles adaptées mobile */
    .brand-filter__list,
    .model-filter__list {
        grid-template-columns: 1fr !important; /* 1 colonne bien aérée pour toucher facile */
        gap: 0 !important;
    }

    .brand-filter__item,
    .model-filter__item {
        padding: 10px 6px !important;
        min-height: 44px !important;
        font-size: 13.5px !important;
        border-bottom: 1px solid #f1f5f9 !important;
        display: flex !important;
        align-items: center !important;
    }

    .brand-filter__item input[type="checkbox"],
    .model-filter__item input[type="checkbox"] {
        width: 18px !important;
        height: 18px !important;
        margin-right: 10px !important;
    }

    .category-checkbox-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }

    .category-checkbox-label {
        min-height: 52px !important;
        padding: 6px !important;
        font-size: 12px !important;
    }

    /* Modal Footer */
    .fm-footer {
        flex-direction: row !important;
        padding: 10px 14px max(12px, env(safe-area-inset-bottom, 12px)) !important;
        gap: 8px !important;
        background: #ffffff !important;
        border-top: 1px solid #e2e8f0 !important;
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08) !important;
    }

    .btn-clear {
        flex: 0 0 auto !important;
        height: 44px !important;
        padding: 0 16px !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        border-radius: 999px !important;
        border: 1.5px solid #cbd5e1 !important;
        color: #475569 !important;
    }

    .btn-results {
        flex: 1 !important;
        height: 44px !important;
        padding: 0 16px !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        border-radius: 999px !important;
        background: var(--primary-green, #2a6d47) !important;
        color: #ffffff !important;
        box-shadow: 0 2px 10px rgba(42, 109, 71, 0.3) !important;
    }
}

/* 6. Mobile Floating Action Button (FAB) */
@media (max-width: 991px) {
    .fucs-mobile-fab {
        display: inline-flex !important;
        position: fixed !important;
        bottom: calc(20px + env(safe-area-inset-bottom, 0px)) !important;
        right: 16px !important;
        z-index: 9999 !important;
        height: 46px !important;
        padding: 0 20px !important;
        border-radius: 999px !important;
        background: var(--primary-green, #2a6d47) !important;
        color: #ffffff !important;
        font-size: 13.5px !important;
        font-weight: 700 !important;
        box-shadow: 0 8px 24px rgba(42, 109, 71, 0.42), 0 2px 8px rgba(0, 0, 0, 0.12) !important;
        gap: 8px !important;
        align-items: center !important;
        border: none !important;
        cursor: pointer !important;
        transition: transform .18s ease, background .18s ease !important;
    }

    .fucs-mobile-fab:hover,
    .fucs-mobile-fab:active {
        background: #1e5234 !important;
        transform: scale(1.04) !important;
    }

    .fucs-mobile-fab-badge {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: #ffffff !important;
        color: var(--primary-green, #2a6d47) !important;
        font-size: 11px !important;
        font-weight: 800 !important;
        min-width: 20px !important;
        height: 20px !important;
        border-radius: 10px !important;
        padding: 0 6px !important;
    }
}

