@media (min-width: 768px) and (max-width: 1199px) {
    #categorie-accueil {
        max-width: 95%;
        background-color: white !important;
        text-align: justify;
        box-sizing: border-box;
        padding: 15px;
        border-radius: 5px;
    }
}

@media (min-width: 1200px) {
    #categorie-accueil {
        width: 97%;
        margin-top: 1%;
        margin-bottom: 0% !important;
        margin-top: 0px !important;
        padding: 2%;
        padding-top: 0.3%;
        padding-bottom: 0.3%;
    }
}

@media (max-width: 767px) {
    #categorie-accueil {
        width: 100%;
        margin: 20px auto;
        padding: 15px;
        background-color: white !important;
        border-radius: 5px;
        text-align: justify;
        height: auto;
        box-sizing: border-box;
padding-left:0%;
padding-right:0%;
margin-left:0%;
margin-right:0%;
padding-top:0%;
margin-top:0%;}
}

#categorie-accueil h2 {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 2% !important;
  margin-top: 1%;
  line-height: 1.45em;
  text-align: left;
        width: 94%;
        padding: 15px;
}

#categorie-accueil .text-center.mb-4 h2 {
  margin-bottom: 2% !important;
}


#categorie-accueil .cat-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 1rem;
  border-radius: 12px;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  height: 100%;
}

#categorie-accueil .cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

#categorie-accueil img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.d-block {text-align: center;}

#categorie-accueil strong {
  font-size: 0.875rem;
  color: #001F3F;
  font-weight: 400;
}

@media (max-width: 1199px) {
  #categorie-accueil .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    padding-bottom: 1rem;
  }

  #categorie-accueil .row > div {
    flex: 0 0 calc(100% / 4.5); /* environ 4 par ligne selon espace */
    max-width: 160px;
    text-align: center;
  }

  #categorie-accueil img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
  }

#categorie-accueil h2 {
    margin-bottom: 10% !important;}
}

@media (min-width: 1200px) {
#categorie-accueil .row {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  overflow-x: auto;
  padding-bottom: 1.5rem;
  gap: 1rem;
}

#categorie-accueil .row > div {
  flex: 1 1 auto;
  max-width: calc(100% / 9 - 1rem); /* 9 images avec un espace entre */
  text-align: center;
}}

#categorie-accueil img {
  width: 100%;
  height: auto;
  max-height: 150px;
  object-fit: contain;
  border-radius: 8px;
}

#categorie-accueil .row::-webkit-scrollbar {
  height: 8px;
}
#categorie-accueil .row::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

.mb-2 {
    margin-bottom: 0rem !important;
}

@media (min-width: 536px) and (max-width: 910px) {
  #categorie-accueil .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    padding-bottom: 1rem;
  }

  #categorie-accueil .row > div {
    flex: 0 0 calc(100% / 3 - 2rem);
    max-width: calc(100% / 3 - 2rem);
    text-align: center;
  }

  #categorie-accueil img {
    width: 100%;
    height: auto;
    max-height: 130px;
    object-fit: contain;
    border-radius: 8px;
  }
}


