.toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    border-radius: 8px;
    background-color: rgb(0, 0, 0, 0.5);
    outline: 1px solid black;
}

/* Cacher la checkbox native */
.toggle-checkbox {
    display: none;
}

/* Le slider */
.toggle-slider {
    position: relative;
    width: 60px;
    height: 30px;
    margin: 20px;
    background-color: #ccc;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.3s;
}

/* Le bouton rond du slider */
.toggle-slider::before {
    content: "";
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: white;
    top: 3px;
    left: 3px;
    transition: transform 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* État coché */
.toggle-checkbox:checked+.toggle-slider {
    background-color: #1354D1;
}

.toggle-checkbox:checked+.toggle-slider::before {
    transform: translateX(30px);
}

/* Label */
.toggle-label {
    font-size: 16px;
    color: white;
    font-family: 'Roboto Condensed';
    text-transform: uppercase;
    margin: auto auto auto 0;
}

.toggle-container img {
    width: 70px;
    margin: auto 0 auto 0;
    transform-origin: top center;
    animation: buddyAnim 2s ease-in-out infinite;
}

@keyframes buddyAnim {

    0%,
    100% {
        transform: rotate(-3deg) translateY(0);
    }

    50% {
        transform: rotate(3deg) translateY(2px);
    }
}