/* 22/11/2021 */
/*
*
{
    user-select: none;
    -webkit-tap-highlight-color:transparent;
}

*:focus
{
    outline: none;
}
*/

.toggle-button-cover
{
    position: relative;
    width: 80px;
    height: 36px;
}

.button-cover
{
    height: 36px;
    /*margin: 20px;*/
    border-radius: 4px;
}



.button-cover, .knobs, .layer
{
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.button
{
    position: relative;
    width: 74px;
    height: 36px;
    margin: auto;
    overflow: hidden;
}

.button.r, .button.r .layer
{
    border-radius: 100px;
}

.button.b2
{
    border-radius: 2px;
}

.checkbox
{
    position: relative;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 3;
}

.knobs
{
    z-index: 2;
}

.layer
{
    width: 100%;
    background-color: #ebf7fc;
    transition: 0.3s ease all;
    z-index: 1;
}

/* Bouton 1 */
#bouton-1 .knobs:before
{
    content: 'OUI';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 30px;
    height: 13px;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    text-align: center;
    line-height: 1;
    padding: 9px 4px;
    background-color: #03A9F4;
    border-radius: 50%;
    transition: 0.3s cubic-bezier(0.18, 0.89, 0.35, 1.15) all;
}

#bouton-1 .checkbox:checked + .knobs:before
{
    content: 'NON';
    left: 30px;
    background-color: #f44336;
}

#bouton-1 .checkbox:checked ~ .layer
{
    background-color: #fcebeb;
}

#bouton-1 .knobs, #bouton-1 .knobs:before, #bouton-1 .layer
{
    transition: 0.3s ease all;
}

/* Bouton 2 */
#bouton-2 .knobs:before
{
    content: 'OUI';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 30px; /* width: 20px;*/
    height: 13px;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    text-align: center;
    line-height: 1;
    padding: 9px 4px;
    background-color: #03A9F4;
    border-radius: 50%;
    transition: 0.3s cubic-bezier(0.18, 0.89, 0.35, 1.15) all;
}

#bouton-2 .checkbox:checked + .knobs:before
{
    content: 'NON';
    left: 30px; /* left: 42px;*/
    background-color: #f44336;
}

#bouton-2 .checkbox:checked ~ .layer
{
    background-color: #fcebeb;
}

#bouton-2 .knobs, #bouton-2 .knobs:before, #bouton-2 .layer
{
    transition: 0.3s ease all;
}

