/* 17-toggle-switch.css — lignes 1022-1070 de l'ancien style.css unique, contenu inchangé */

/* ===========================
   TOGGLE SWITCH
=========================== */
.switch{
    position:relative;
    display:inline-block;
    width:52px;
    height:30px;
}

.switch input{
    opacity:0;
    width:0;
    height:0;
}

.switch .slider{
    position:absolute;
    inset:0;
    cursor:pointer;
    background:#d1d5db;
    border-radius:var(--radius-full);
    transition:var(--transition);
}

.switch .slider::before{
    content:"";
    position:absolute;
    height:22px;
    width:22px;
    left:4px;
    bottom:4px;
    background:white;
    border-radius:var(--radius-circle);
    transition:var(--transition);
    box-shadow:0 2px 6px rgba(0,0,0,.15);
}

.switch input:checked + .slider{
    background:var(--primary);
}

.switch input:checked + .slider::before{
    transform:translateX(22px);
}

body.dark .switch .slider{
    background:#475569;
}
