.Conteneur_filtre{
    width: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    
}
.filtre{
    text-align: center;
}
section{
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    width: 100%;
    padding:20px ;
}
h3{
    color: #272727;
    text-align: center;
    padding: 100px;
    padding-bottom: 20px;
    bottom: 0;
    font-weight: 400;
}
.labbel_filtre{
    text-align: center;
    padding:20px
}
.labbel_filtre label{
    padding: 10px;
}
.labbel_filtre label:hover{
    color: gray ;
    transition: 0.5s ease;
}
main{
    position: relative;
}

.rang{
    justify-content: space-around;
    width: 100%;
}
.slide {
    position: relative;
    width: 30%;
    height: 500px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    bottom: -30px;
    left: -30px;
    margin: 15px;
}

.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;
}


/* 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{
    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;
        
      }
}