.ui-switcher {
  background-color: #bdc1c2;
  display: inline-block;
  height: 40px;
  width: 96px;
  border-radius: 20px;
  box-sizing: border-box;
  vertical-align: middle;
  position: relative;
  cursor: pointer;
  transition: border-color 0.25s;
  margin: -2px 4px 0 0;
  box-shadow: inset 1px 1px 1px rgba(0, 0, 0, 0.15);
  

}
.ui-switcher:before {
  font-family: sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #ffffff;
  line-height: 1;
  display: inline-block;
  position: absolute;
  top: 13px;
  height: 12px;
  width: 20px;
  text-align: center;
}
.ui-switcher[aria-checked=false]:before {
  content: 'NON';
  right: 30px;
  color:#333;
}
.ui-switcher[aria-checked=true]:before {
  content: 'OUI';
  left: 18px;
}
.ui-switcher[aria-checked=true] {
  background-color: #009ee0;
}
.ui-switcher:after {
  background-color: #ffffff;
  content: '\0020';
  display: inline-block;
  position: absolute;
  top: 4px;
  height: 32px;
  width: 32px;
  border-radius: 50%;
  transition: left 0.25s;
  box-shadow: 0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 0px 0 hsla(0, 0%, 0%, .04), 0 4px 9px hsla(0, 0%, 0%, .13), 0 3px 3px hsla(0, 0%, 0%, .05);
  
  -moz-transition: .35s cubic-bezier(.54, 1.60, .5, 1);
  -o-transition: .35s cubic-bezier(.54, 1.60, .5, 1);
  -webkit-transition: .35s cubic-bezier(.54, 1.60, .5, 1);
  transition: .35s cubic-bezier(.54, 1.60, .5, 1);
  
}
.ui-switcher[aria-checked=false]:after {
  left: 2px;
}
.ui-switcher[aria-checked=true]:after {
  left: 60px;
}

/* cas particulier en terme de texte */
.majeur .ui-switcher:before {
  font-family: sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #ffffff;
  line-height: 1;
  display: inline-block;
  position: absolute;
  top: 13px;
  height: 10px;
  width: 54px !important;
  text-align: center;
}


.majeur .ui-switcher[aria-checked=false]:before {
  content: '-18 ans' !important;
  right: 4px;
  font-size:14px;
  color:#333;
}
.majeur .ui-switcher[aria-checked=true]:before {
  content: '+18 ans' !important;
  font-size:14px;
  left: 5px;
}







