
.nef-filters {
    width: 100%;
}

.nef-filter-group {
    padding: 0 0 24px;
    margin: 0 0 24px;
    border-bottom: 1px solid #e2e5e9;
}

.nef-filter-group:last-of-type {
    margin-bottom: 18px;
}

.nef-filter-group h3 {
    margin: 0 0 18px;
}

.nef-filter-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nef-filter-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    line-height: 1.25;
}

.nef-filter-label {
    min-width: 0;
}

.nef-filter-count {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.nef-filter-row--checkbox input,
.nef-filter-native {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.nef-filter-checkbox {
    width: 28px;
    height: 28px;
    border: 1px solid #aeb7c2;
    border-radius: 5px;
    background: #fff;
    position: relative;
    box-sizing: border-box;
}

.nef-filter-row--checkbox input:checked + .nef-filter-checkbox::after {
    content: "";
    position: absolute;
    width: 9px;
    height: 15px;
    left: 8px;
    top: 3px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
}

.nef-filter-row--checkbox input:focus-visible + .nef-filter-checkbox,
.nef-filter-native:focus-visible + .nef-filter-dot {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.nef-filter-dot {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: var(--nef-taxonomy-color);
    box-sizing: border-box;
    transition: transform .15s ease, box-shadow .15s ease;
}

.nef-filter-native:checked + .nef-filter-dot {
    box-shadow: inset 0 0 0 3px rgba(255,255,255,.95);
    transform: scale(.92);
}

.nef-filter-select-wrap {
    position: relative;
}

.nef-filter-select-wrap::after {
    content: "";
    position: absolute;
    right: 20px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid #98a1ad;
    border-bottom: 2px solid #98a1ad;
    transform: translateY(-65%) rotate(45deg);
    pointer-events: none;
}

.nef-filter-select {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    min-height: 50px;
    padding: 10px 48px 10px 16px;
    border: 1px solid #aeb7c2;
    border-radius: 8px;
    background: #fff;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.nef-filter-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.nef-filter-submit {
    border: 0;
    border-radius: 7px;
    padding: 11px 18px;
    cursor: pointer;
    font: inherit;
}

.nef-filter-reset {
    text-decoration: underline;
    text-underline-offset: 3px;
}


/* Décalage lors du retour via #nef-filters.
   Ajustez la valeur si votre header sticky est plus ou moins haut. */
#nef-filters {
    scroll-margin-top: 24px;
}
