.toggle-button-cover {
    display: table-cell;
    position: relative;
    height: 30px;
    box-sizing: border-box;
}

.button-cover {
    background-color: #fff;
    box-shadow: 0 10px 20px -8px #c5d6d6;
    border-radius: 4px;
    padding: 0px !important;
}

.button-cover:before {
    counter-increment: button-counter;
    content: counter(button-counter);
    position: absolute;
    right: 0;
    bottom: 0;
    color: #d7e3e3;
    font-size: 11px;
    line-height: 1;
    padding: 5px;
}

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

.button-switch {
    position: relative;
    top: 50%;
    width: 130px;
    height: 36px;
    margin: -20px auto 0 auto;
    overflow: hidden;
}

.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;
}

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

.button-3 .knobs:before {
    content: "Absent(e)";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 60px;
    height: 30px;
    color: #fff;
    font-size: 11px;
    text-align: center;
    line-height: 1;
    padding: 9px 4px;
    background-color: #f44336;
    border-radius: 50px;
    transition: 0.3s ease all, left 0.3s cubic-bezier(0.18, 0.89, 0.35, 1.15);
}

.button-3 .checkbox:active + .knobs:before {
    width: 46px;
    border-radius: 50px;
}

.button-3 .checkbox:checked:active + .knobs:before {
    margin-left: -26px;
}

.button-3 .checkbox:checked + .knobs:before {
    content: "Présent(e)";
    left: 60px;
    background-color: green;
}

.button-3 .checkbox:checked ~ .layer {
    background-color: #fcebeb;
}