


.s-wrap {
    width: 100%;
    padding-bottom: 30%;
    position: relative;
  
    box-shadow: 0 0 10px #235dff;
    overflow: hidden;
    
    
  }
  .s-wrap > input {
    display: none;
  }
  .s-wrap .s-content {
    margin: 0;
    padding: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 500%;
    height: 100%;
    font-size: 0;
    list-style: none;
    transition: transform 1s;
  }
  .s-wrap .s-item {
    display: inline-block;
    width: 20%;
    height: 100%;
    background-repeat: no-repeat;
    background-size: cover;
  }
  .s-wrap .s-item-1 {
    background-image: url("../img/magasin2.jpg");
  }
  .s-wrap .s-item-2 {
    background-image: url("../img/pharmacie.jpg");
  }
  .s-wrap .s-item-3 {
    background-image: url("https://images.unsplash.com/photo-1428189923803-e9801d464d76?crop=entropy&fit=crop&fm=jpg&h=600&ixjsv=2.1.0&ixlib=rb-0.3.5&q=80&w=800");
  }
  .s-wrap .s-item-4 {
    background-image: url("https://images.unsplash.com/photo-1422393462206-207b0fbd8d6b?crop=entropy&fit=crop&fm=jpg&h=600&ixjsv=2.1.0&ixlib=rb-0.3.5&q=80&w=800");
  }
  .s-wrap .s-item-5 {
    background-image: url("https://images.unsplash.com/photo-1439736637365-748f240b24fb?crop=entropy&fit=crop&fm=jpg&ixjsv=2.1.0&ixlib=rb-0.3.5&q=80&w=800");
  }
  
  .s-type-1 .s-control {
    position: absolute;
    bottom: 18px;
    left: 50%;
    text-align: center;
    transform: translateX(-50%);
    transition-timing-function: ease-out;
  }
  
  .s-type-1 .s-control > label[class^=s-c-] {
    display: inline-block;
    width: 12px;
    height: 12px;
    background-color: #efefe8;
    cursor: pointer;
  }
  .s-type-1 .s-nav label, .s-type-2 .s-nav label {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
  }
  .s-type-1 .s-nav label::before, .s-type-1 .s-nav label::after {
    content: "";
    display: block;
    width: 8px;
    height: 24px;
    background-color: #235dff;
  }
  
  .s-type-1 .s-nav label::before, .s-type-1 .s-nav label::after {
      content: "";
      display: block;
      width: 8px;
      height: 24px;
      background-color: #235dff;
    }
  
  .s-type-1 .s-nav label::before {
    margin-bottom: -12px;
  }
  .s-type-1 .s-nav label.left {
    left: 20px;
  }
  .s-type-1 .s-nav label.left::before {
    transform: rotate(45deg);
  }
  .s-type-1 .s-nav label.left::after {
    transform: rotate(-45deg);
  }
  .s-type-1 .s-nav label.right {
    right: 20px;
  }
  .s-type-1 .s-nav label.right::before {
    transform: rotate(-45deg);
  }
  .s-type-1 .s-nav label.right::after {
    transform: rotate(45deg);
  }
  
  .s-type-1 #s-1:checked ~ .s-content {
    transform: translateX(0%);
  }
  .s-type-1 #s-1:checked ~ .s-control .s-c-1 {
    background-color: #235dff;
  }
  .s-type-1 #s-1:checked ~ .s-nav .s-nav-1 {
    display: block;
  }
  .s-type-1 #s-2:checked ~ .s-content {
    transform: translateX(-20%);
  }
  .s-type-1 #s-2:checked ~ .s-control .s-c-2 {
    background-color: #235dff;
  }
  .s-type-1 #s-2:checked ~ .s-nav .s-nav-2 {
    display: block;
  }
  .s-type-1 #s-3:checked ~ .s-content {
    transform: translateX(-40%);
  }
  .s-type-1 #s-3:checked ~ .s-control .s-c-3 {
    background-color: #235dff;
  }
  .s-type-1 #s-3:checked ~ .s-nav .s-nav-3 {
    display: block;
  }
  .s-type-1 #s-4:checked ~ .s-content {
    transform: translateX(-60%);
  }
  .s-type-1 #s-4:checked ~ .s-control .s-c-4 {
    background-color: #235dff;
  }
  .s-type-1 #s-4:checked ~ .s-nav .s-nav-4 {
    display: block;
  }
  .s-type-1 #s-5:checked ~ .s-content {
    transform: translateX(-80%);
  }
  .s-type-1 #s-5:checked ~ .s-control .s-c-5 {
    background-color: #235dff;
  }
  .s-type-1 #s-5:checked ~ .s-nav .s-nav-5 {
    display: block;
  }
  
  
  .s-type-1 #s-6:checked ~ .s-content {
      transform: translateX(-80%);
    }
    .s-type-1 #s-6:checked ~ .s-control .s-c-6 {
      background-color: #235dff;
    }
    .s-type-1 #s-6:checked ~ .s-nav .s-nav-6 {
      display: block;
    }
  
  
  
  /* s-label */
  
  .s-type-1 .s-label label {
      display: none;
      position: absolute;
      top: 50%;
    
      transform: translateY(-50%);
      cursor: pointer;
    }
    .s-type-1 .s-label label::before, .s-type-1 .s-label label::after {
      content: "";
      display: block;
      width: 8px;
      height: 24px;
    }
    
    .s-type-1 .s-label label::before, .s-type-1 .s-label label::after {
        content: "";
        display: block;
        width: 8px;
        height: 24px;
      }
    
    .s-type-1 .s-label label::before {
      margin-bottom: -12px;
    }
    .s-type-1 .s-label label.left, .s-type-2 .s-label label.left {
      left: 20px;
    }
    .s-type-1 .s-label label.left::before, .s-type-2 .s-label label.left::before {
      transform: rotate(45deg);
    }
    .s-type-1 .s-label label.left::after, .s-type-2 .s-label label.left::after {
      transform: rotate(-45deg);
    }
    .s-type-1 .s-label label.right,  .s-type-2 .s-label label.right {
      right: 20px;
    }
    
    .s-type-1 #s-1:checked ~ .s-label .s-nav-1 {
      display: block;
    }
    .s-type-1 #s-2:checked ~ .s-label .s-nav-2 {
      display: block;
    }
    .s-type-1 #s-3:checked ~ .s-label .s-nav-3 {
      display: block;
    }
    .s-type-1 #s-4:checked ~ .s-label .s-nav-4 {
      display: block;
    }
    .s-type-1 #s-5:checked ~ .s-label .s-nav-5 {
      display: block;
    }
      .s-type-1 #s-6:checked ~ .s-label .s-nav-6 {
        display: block;
      }
  
    
      
.s-type-2 {
    animation: slider-animation 10s ease-in-out infinite;
  }
  .s-type-2 ~ .s-content:hover {
    animation-play-state: paused;
  }
  
  @keyframes slider-animation {
    0%, 7% {
      transform: translateX(0%);
    }
    12.5%, 19.5% {
      transform: translateX(-20%);
    }
    25%, 32% {
      transform: translateX(-40%);
    }
    37.5%, 44.5% {
      transform: translateX(-60%);
    }
    50%, 57% {
      transform: translateX(-80%);
    }
    62.5%, 69.5% {
      transform: translateX(-60%);
    }
    75%, 82% {
      transform: translateX(-40%);
    }
    87.5%, 94.5% {
      transform: translateX(-20%);
    }
  }
  
  
  