﻿.switch-input {
    position: relative;
    width: 40px;
    height: 20px;
    appearance: none;
    background-color: #4C3D3D;
    outline: none;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    .switch-input:checked {
        background-color: var(--secondary-color, #0d6efd); /* Couleur activée */
    }

    .switch-input::before {
        content: '';
        position: absolute;
        width: 16px;
        height: 16px;
        top: 2px;
        left: 2px;
        background-color: #fff;
        border-radius: 50%;
        transition: transform 0.3s ease;
    }

    .switch-input:checked::before {
        transform: translateX(20px);
    }

    /* Style pour l'état disabled */
    .switch-input:disabled {
        cursor: not-allowed;
        opacity: 0.6;
    }

    /* Style spécifique quand le switch est checked et disabled */
    .switch-input:checked:disabled {
        opacity: 0.7; /* Pleine visibilité */
    }
