/* ============================================
   Category Accordion Widget
   Style "boutons arrondis" — Figma Atelier Mirabel
   ============================================ */

.cataccordion-wrapper {
    width: 100%;
}

/* --- Title bar --- */
.cataccordion-title {
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: 25px;
    margin-bottom: 10px;
}

/* --- List of items --- */
.cataccordion-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* --- Parent button — pill/rounded button style --- */
.cataccordion-parent-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #d0d0d0;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cataccordion-item.is-expanded .cataccordion-parent-btn {
    border-color: #2FB5D2;
}

.cataccordion-parent-link {
    flex: 1;
    text-decoration: none;
    color: inherit;
    font-size: 14px;
    font-weight: 500;
    display: block;
    padding: 10px 0 10px 20px;
}

.cataccordion-parent-link:hover {
    color: inherit;
    text-decoration: none;
}

/* --- Toggle button (chevron) --- */
.cataccordion-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
}

.cataccordion-toggle:hover {
    opacity: 0.7;
}

.cataccordion-chevron {
    transition: transform 0.25s ease;
}

.cataccordion-item.is-expanded .cataccordion-chevron {
    transform: rotate(180deg);
}

/* --- Children list — indented pill buttons --- */
.cataccordion-children {
    list-style: none;
    margin: 4px 0 0 0;
    padding: 0 0 0 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cataccordion-children li {
    /* no border, each child is its own button */
}

.cataccordion-children a {
    display: block;
    text-decoration: none;
    font-size: 13px;
    padding: 8px 18px;
    border: 1px solid #e0e0e0;
    border-radius: 25px;
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.cataccordion-children a:hover {
    text-decoration: none;
    border-color: #2FB5D2;
}

.cataccordion-children li.is-active a {
    font-weight: 600;
    border-color: #2FB5D2;
}

/* --- Count badge --- */
.cataccordion-count {
    font-size: 11px;
    color: #999;
    font-weight: 400;
}

/* --- Active parent --- */
.cataccordion-parent-btn.is-active {
    border-color: #2FB5D2;
}

.cataccordion-parent-btn.is-active .cataccordion-parent-link {
    font-weight: 700;
}
