.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-family: Arial, sans-serif;
}

.filter {
    position: relative;
    width: 280px;
    max-width: 100%;
}

/* Bouton du menu */
.filter-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    text-align: left;
    background: #fff;
    border: 1px solid #dedede;
    border-radius: 8px;
    color: #222;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: border-color .2s ease,
                box-shadow .2s ease;
				text-transform:inherit;
}

.filter-toggle:hover {
    border-color: #999;
}

.filter-toggle:focus-visible {
    outline: 2px solid #777;
    outline-offset: 2px;
}

.filter-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Flèche fine à droite */
.filter-arrow {
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    margin-left: auto;
    border-right: 1.3px solid currentColor;
    border-bottom: 1.3px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform .22s ease;
}

.filter-toggle[aria-expanded="true"] .filter-arrow {
    transform: rotate(225deg) translate(-2px, -1px);
}

/* Menu déroulant */
.filter-menu {
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    box-sizing: border-box;
    padding: 10px;
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .09);
    z-index: 9999;
    max-height: 350px;
    overflow-y: auto;
}

.filter-menu.is-open {
    display: block;
}

/* Options */
.filter-menu .option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0px 6px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
}

.filter-menu .option:hover {
    background: #f6f6f6;
}

/* Cases à cocher */
.filter-menu input[type="checkbox"] {
    display: inline-block !important;
    appearance: auto !important;
    -webkit-appearance: checkbox !important;
    position: static !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    width: 16px;
    height: 16px;
    margin: 0;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: #333;
}

/* Actions */
.filter-actions {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 2px 4px 10px;
    margin-bottom: 4px;
    border-bottom: 1px solid #eee;
}

.filter-actions button {
    padding: 5px 0;
    background: none;
    border: none;
    color: #555;
    font-size: 12px;
    cursor: pointer;
}

.filter-actions button:hover {
    color: #000;
    text-decoration: underline;
}

/* Adaptation mobile */
@media (max-width: 600px) {
    .filters {
        flex-direction: column;
        gap: 12px;
    }

    .filter {
        width: 100%;
    }
}
