/**
 * WS Booster - Widget Dynamic Toggle
 */

.ws-toggle-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
}

.ws-toggle {
    position: relative;
    display: inline-flex;
    background: #f3f4f6;
    border-radius: 999px;
    padding: 4px;
    gap: 0;
}

.ws-toggle__pill {
    position: absolute;
    top: 4px;
    left: 4px;
    height: calc(100% - 8px);
    background: #fff;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1), width 0.35s cubic-bezier(0.65, 0, 0.35, 1);
    z-index: 1;
    pointer-events: none;
}

.ws-toggle__btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: transparent;
    border: none;
    border-radius: 999px;
    color: #6b7280;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
    z-index: 2;
    white-space: nowrap;
}

.ws-toggle__btn.is-active {
    color: #1a1a2e;
    font-weight: 600;
}

.ws-toggle__badge {
    display: inline-block;
    padding: 2px 8px;
    background: #ef3340;
    color: #fff;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
}

/* Classes cibles : par defaut cachees, visible si active */
.ws-toggle-target {
    display: none;
}

.ws-toggle-target.is-active {
    display: block;
}

@media (prefers-reduced-motion: reduce) {
    .ws-toggle__pill,
    .ws-toggle__btn {
        transition: none;
    }
}
