/* SWITCH (interrupteur) */
/* Container for the switch and label */
.switch-container {
    display: flex;
    flex-direction: column;
}

.switch-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Hide the default checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider */
.slider {
    position: relative;
    display: inline-block;
    width: 32px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    transition: .4s ease-in-out;
    cursor: pointer;
}

/* SVG backgrounds for different states */
.slider {
    background-image: url('data:image/svg+xml;charset=UTF-8,%3Csvg xmlns="http://www.w3.org/2000/svg" width="32" height="20" viewBox="0 0 32 20" fill="none"%3E%3Crect x="2" y="2" width="28" height="16" rx="8" fill="%23E0E0E0"/%3E%3Ccircle cx="10" cy="10" r="6" fill="white"/%3E%3C/svg%3E');
    transition: background-image 0.4s ease-in-out;
}

/* Active normal state */
input:checked + .slider {
    background-image: url('data:image/svg+xml;charset=UTF-8,%3Csvg xmlns="http://www.w3.org/2000/svg" width="32" height="20" viewBox="0 0 32 20" fill="none"%3E%3Crect x="2" y="2" width="28" height="16" rx="8" fill="%23FEB603"/%3E%3Ccircle cx="22" cy="10" r="6" fill="white"/%3E%3C/svg%3E');
    transition: background-image 0.4s ease-in-out;
}

/* Focus states */
input:focus:not(:hover) + .slider {
    background-image: url('data:image/svg+xml;charset=UTF-8,%3Csvg xmlns="http://www.w3.org/2000/svg" width="32" height="20" viewBox="0 0 32 20" fill="none"%3E%3Crect x="2.5" y="2.5" width="27" height="15" rx="7.5" fill="%23E0E0E0" stroke="%23FFC841"/%3E%3Ccircle cx="10" cy="10" r="6" fill="white"/%3E%3C/svg%3E');
}

input:checked:focus:not(:hover) + .slider {
    background-image: url('data:image/svg+xml;charset=UTF-8,%3Csvg xmlns="http://www.w3.org/2000/svg" width="32" height="20" viewBox="0 0 32 20" fill="none"%3E%3Crect x="2" y="2" width="28" height="16" rx="8" fill="%23FFC841"/%3E%3Ccircle cx="22" cy="10" r="6" fill="white"/%3E%3C/svg%3E');
}

/* Hover states */
.slider:hover {
    background-image: url('data:image/svg+xml;charset=UTF-8,%3Csvg xmlns="http://www.w3.org/2000/svg" width="32" height="20" viewBox="0 0 32 20" fill="none"%3E%3Crect x="1" y="1" width="30" height="18" rx="9" fill="%23E0E0E0" stroke="%23C08A04" stroke-width="2"/%3E%3Ccircle cx="10" cy="10" r="6" fill="white"/%3E%3C/svg%3E');
}

input:checked:hover + .slider {
    background-image: url('data:image/svg+xml;charset=UTF-8,%3Csvg xmlns="http://www.w3.org/2000/svg" width="32" height="20" viewBox="0 0 32 20" fill="none"%3E%3Crect x="1" y="1" width="30" height="18" rx="9" fill="%23C08A04" stroke="%23FFFAF5" stroke-width="2"/%3E%3Ccircle cx="22" cy="10" r="6" fill="white"/%3E%3C/svg%3E');
}

/* Disabled states */
input:disabled + .slider {
    background-image: url('data:image/svg+xml;charset=UTF-8,%3Csvg xmlns="http://www.w3.org/2000/svg" width="32" height="20" viewBox="0 0 32 20" fill="none"%3E%3Crect x="2" y="2" width="28" height="16" rx="8" fill="%23C2C2C2"/%3E%3Ccircle cx="10" cy="10" r="6" fill="white"/%3E%3C/svg%3E');
    cursor: not-allowed;
}

input:checked:disabled + .slider {
    background-image: url('data:image/svg+xml;charset=UTF-8,%3Csvg xmlns="http://www.w3.org/2000/svg" width="32" height="20" viewBox="0 0 32 20" fill="none"%3E%3Crect x="2" y="2" width="28" height="16" rx="8" fill="%23C2C2C2"/%3E%3Ccircle cx="22" cy="10" r="6" fill="white"/%3E%3C/svg%3E');
    cursor: not-allowed;
}

/* Style for the label */
.switch-container label {
    color: #000;
    font-family: Roboto;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
    display: flex;
    text-align: justify;
}