.img_fond{
    background-image: url(../Images/fond/lunettes_ski.jpeg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    height: 50em;
    position: relative;
    z-index: -1;
    
}

h3{
    text-align: center;
    padding: 100px;
  }
  .NV {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    margin-bottom: 50px;
}

.slide {
    position: relative;
    width: 35%;
    height: 500px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.slide_IMG {
    display: flex;
    width: 300%; /* 3 images */
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.image {
    flex: 0 0 100%;
    height: 78%;
}

.image img {
    width: 35%;
    height: 100%;
    object-fit: cover;
}

/* Navigation avec les input radio */
input[type="radio"] {
    display: none;
}

#A_s1_1:checked ~ .slide_IMG {
    transform: translateX(0);
}

#A_s1_2:checked ~ .slide_IMG {
    transform: translateX(-100%);
}

#A_s1_3:checked ~ .slide_IMG {
    transform: translateX(-200%);
}

/* Slider 2 navigation */
#B-s1-1:checked ~ .slide_IMG {
    transform: translateX(0);
}

#B-s1-2:checked ~ .slide_IMG {
    transform: translateX(-100%);
}

#B-s1-3:checked ~ .slide_IMG {
    transform: translateX(-200%);
}

/* Boutons de navigation */
.buttons {
    position: absolute;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.buttons label {
    width: 15px;
    height: 15px;
    background-color: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.buttons label:hover {
    background-color: #666;
}

input[type="radio"]:checked + label {
    background-color: #191919;
}
.text_article{
    display: block;
    position: relative;
    bottom:110px ;
    padding: 10px;
}
@media (max-width:800px){
    .slide, .slide2{
        width: 10em;
        height: 15em;
    }
    .image img {
        width: 34%;
    height: 165px;
    }
    .buttons{
        bottom: 33%;
        gap: 7px;
        

    } 
    .buttons label {
        width: 10px;
        height: 10px;
    }
    .text_cart p{
        font-size: 10px;
    }
    h3{
        padding:50px;
    }
    .text_article{
        font-size: 13px;
        bottom:80px ;
    }
}

.text_article{
    flex-direction: row;
    position: relative;
    bottom:110px ;
    padding: 10px;
}
.block_ajout_panier{
    display: flex;
    position: absolute;
    top:50%;
    right: 5px;
    flex-direction: row;
    align-items: end;
    justify-content: end;
}
#nombre{
    width: 35px;
    height: 16px;
    border: none;
}

.envoyer{
    text-align: center;
    position: relative;
    right: 10px;
    bottom: -5px;
    background-color: #666;
    border: none;
    padding: 10px;
    padding-right: 20px;
    padding-left: 20px;
    border-radius: 20px; ;
}
.envoyer:hover{
    background-color: #161616;
    color: #ffffff;
    transition: 0.5s ease;
}
.envoyer_responsive{
    display: none;
}

@media  (max-width:900px){
    .slide{
        width: 10em;
        height: 15em;
    }
    .buttons{
        bottom: 78px;
    }
    .button_panier{
        position: relative;
        right: -30px;

    }
    .button_panier label{
        font-size: 9px;
    }
    .image img {
        width: 34%;
        height: 165px;
    }
    .buttons label{
        height: 8px;
        width: 8px;
        right: 0;
    }
    .text_article{
        font-size: 9px;
        bottom: 80px;

    }
    .envoyer{
        padding: 5px;
        font-size: small;
        
    }
    .block_ajout_panier{
        top: 25px;
        right: -9px;
  }
    
}

@media  (max-width:600px){
    
    .buttons{
        bottom: 80px;
    }
    .text_article{
        font-size: 9px;
        bottom: 78px;
        left: -7px;
 

    }
    .button_panier label {
        position: relative;
        font-size: 9px;
        top: -36px;
      }
      #nombre{
        position: relative;
        right: 30px;
        top: -18px;
      }
      .rang{
        position: relative;
        z-index: 0;
      }
      .envoyer{
        margin-top: -1px;
        top: -10px;
        z-index: 10;
        font-size: 9px;
        right: 12px;

      }
    .block_ajout_panier{
        top: 42px;
        right: -9px;
    }
}
@media  (max-width:500px){
    .block_ajout_panier{
        flex-direction: row;
        top: 5px;
    }
   .slide{
    width: 25%;

   }
    .image img {
        width: 35%;
        height: 140px;
    }
    .titre_rang p{
        font-size: 20px;
    }
    .buttons{
        bottom: 103px;
    }
    .slide_IMG{
        height: 50%;
    }
    section{
        padding-left: 0;
        padding-right: 0;
    }
    .rang{
        display: flex;
    }
    #nombre{
        position: relative;
        bottom: 0;
        font-size: 10px;
        right: -5px;
      }
      .text_article{
        bottom: -10px;
      }
      .button_panier label{
        display: none;

      }
      .envoyer{
        top: 63px;
        font-size: 8px;
        
      }
}