.switch {
  height: 0;
  width: 0;
  visibility: hidden;
}

label {
  cursor: pointer;
  text-indent: -9999px;
  width: 2.8em;
  height: 1.4em;
/*	Taille à modifier pour la taille du bouton entier*/
  background: grey;
  display: block;
  border-radius: 100px;
  position: relative;
}

label:after {
  content: '';
  position: absolute;
  top: 0.1em;
  left: 0.2em;
/*	Emplacement du bouton au départ*/
  width: 1.2em;
  height: 1.2em;
  background: #fff;
  border-radius: 90px;
  transition: 0.3s;
}

input:checked + label {
  background:#5f9ea0;
}

input:checked + label:after {
  left: calc(100% - 0.2em);
  transform: translateX(-100%);
}

label:active:after {
/*	taille du bouton pendant l'animation*/
  width: 1.6em;
}

