*,
*::after,
*::before {
    box-sizing: border-box;
}

.filter-panel {
    position: fixed;
    top: 0;
    right: -350px;
    width: 350px;
    height: 100vh;
    background: #d8c3b0;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.25);
    padding: 25px;
    transition: right 0.3s ease;
    z-index: 9999;
    overflow-y: auto;
    border-left: 2px solid #5e4b47;
    font-family: 'Georgia', serif;
}

.filter-panel.open {
    right: 0;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.filter-header h2 {
    font-size: 22px;
    color: #3c2f2f;
    font-weight: 700;
}

.close-filter {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 22px;
    color: #3c2f2f;
    transition: color 0.2s ease;
}

.close-filter img {
object-fit: contain;
width: 20px;
height: 20px;
}

.close-filter:hover {
    color: #000;
}

/* 📦 Sections */
.filter-section {
    margin-bottom: 30px;
}

.filter-section h3 {
    margin-bottom: 12px;
    font-size: 17px;
    font-weight: 600;
    color: #3c2f2f;
}

/* 🧩 Options */
.option {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 6px;
    background: #f0e1d2;
    color: #3c2f2f;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.option:hover {
    background: #e3d1c0;
    border-color: #5e4b47;
}

.option.selected {
    background: #5e4b47;
    color: #fff;
    border-color: #3c2f2f;
}

/* 🪄 Bouton d’application */
#saveFilters,
.apply-filters {
    display: block;
    width: 100%;
    padding: 12px;
    background: #3c2f2f;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

#saveFilters:hover,
.apply-filters:hover {
    background: #000;
}



#resetFilters {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    color: #ffffff; /* bleu lien */
    font: inherit;
    cursor: pointer;
    text-decoration: underline;
}



.apple-segment button {
    all: unset;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 16px;
    padding: 0px 0px;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.platter li {
    position: relative;
}

.platter button {
    position: relative;
    z-index: 2;
    border: none;
    background: transparent;
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    color: #1C1C1C;
    display: flex;
    align-items: center;
    justify-content: center;
}

.platter button.active {
    color: rgb(255, 255, 255);
}

.platter {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #d7a191;
    border-radius: 50px;
    overflow: hidden;
}

.platter ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.slider {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: black;
    border-radius: 50px;
    visibility: hidden;
    z-index: 1;
    opacity: 0;
    transition: transform .25s ease, width .25s ease, opacity .15s ease;
}
