/* GLOBALS */

*,
*:after,
*:before {
   box-sizing: border-box;
  padding: 0;
  margin: 0;
}

.switch {
 
  position: relative;
}

.switch labelb {
  width: 100%;
  height: 100%;
  position: relative;
  display: block;
}

.switch input {
  top: 0; 
  right: 0; 
  bottom: 0; 
  left: 0;
  opacity: 0;
  z-index: 100;
  position: absolute;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

/* DEMO */

.switch.demo {
  width: 100px;
  height: 25px;
}

.switch.demo labelb {
  display: block;
  width: 100%;
  height: 100%;
  
  border-radius: 40px;
 
}

.switch.demo labelb:after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -8px; right: -8px; bottom: -8px; left: -8px;
  border-radius: inherit;
  background: #ababab;
 
 
}

.switch.demo labelb:before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -18px; right: -18px; bottom: -18px; left: -18px;
  border-radius: inherit;
  background: #eee;
 
 
  filter: blur(1px);
}

.switch.demo labelb i {
  display: block;
  height: 100%;
  width: 60%;
  border-radius: inherit;
 
  position: absolute;
  z-index: 2;
  right: 40%;
  top: 0;
  background: #b2ac9e;
 
  box-shadow:
      inset 0 1px 0 white,
      0 0 8px rgba(0,0,0,0.3),
      0 5px 5px rgba(0,0,0,0.2);
}

.switch.demo labelb i:after {
  content: "";
  position: absolute;
  left: 15%;
  top: 25%;
  width: 70%;
  height: 50%;
 
  
  border-radius: inherit;
}

.switch.demo labelb i:before {
  content: "Non";
  text-transform: uppercase;
  font-style: normal;
  font-weight: bold;
  color: rgba(0,0,0,0.4);
  text-shadow: 0 1px 0 #bcb8ae, 0 -1px 0 #97958e;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 14px;
  position: absolute;
  top: 50%;
  margin-top: -12px;
  right: -60%;
}

.switch.demo input:checked ~ labelb {
  background: #BD5109;
}

.switch.demo input:checked ~ labelb i {
  right: -1%;
}

.switch.demo input:checked ~ labelb i:before {
  content: "Oui";
  right: 115%;
  color: #FFF;
  
}