main .btn-custom {
    font-size: clamp(0.9rem, 1.2vw, 1rem);
    border-radius: 0;
    color: white;
    border: none;
    padding: 0.5rem 2.5rem;
    /* padding identique pour uniformité */
    min-width: 180px;
    /* même largeur minimum */
    transition: background-color 0.3s ease, color 0.3s ease, border 0.3s ease;
    /* juste hover smooth */
}

/* Couleurs spécifiques */
main .btn-jaune {
    background-color: #ceb209;
}

main .btn-vert {
    background-color: #4FA862;
}

/* Hover commun pour tous */
main .btn-custom:hover {
    background-color: white;
    color: black;
    border-color: black;
}

a.btn.btn-custom:hover {
    background-color: white !important;
    color: black !important;
    border-color: black !important;
}

main .categorie {
    flex: 1;
    text-align: center;
    font-weight: 600;
    cursor: pointer;
    background-color: #9ecfa9;
    padding: 0.5rem 0;
    transition: 0.3s;
}

main .categorie:hover {
    background-color: #f6f6f6;
    color: #ceb209;
}

main .categorie.active {
    background-color: #f6f6f6;
    color: #ceb209;
}

main .hover-zoom:hover {
    transform: scale(0.98);
    /* zoom léger à 105% */
    transition: transform 0.3s;
}

.slide-in-right {
    position: relative;
    transform: translateX(10px);
    /* commence à droite */
    opacity: 0;
    transition: transform 0.8s ease, opacity 0.8s ease;
}

/* Position finale : visible */
.slide-in-right.active {
    transform: translateX(0);
    opacity: 1;
}

/* -------------- */
/* div 1 en mobile  */
@media (max-width: 768px) {
  /* Conteneur principal */
  .container-fluid.d-flex.justify-content-center.align-items-center.text-center {
    min-height: 450px !important;
    padding: 1.5rem !important;
    background-position: center center !important;
    background-size: cover !important;
  }

  /* Bloc intérieur */
  .container-fluid .d-flex.flex-column.align-items-center {
    max-width: 100% !important;
    padding: 2rem 1rem !important;
  }

  /* Titre */
  .container-fluid h2 {
    font-size: 2rem !important;
    line-height: 1.2 !important;
  }

  /* Paragraphe */
  .container-fluid p {
    font-size: 0.95rem !important;
    line-height: 1.4 !important;
    margin-top: 0.8rem !important;
  }

  /* Boutons */
  .container-fluid .btn-custom {
    width: 100% !important;
    max-width: 260px;
    font-size: 0.95rem !important;
    padding: 0.7rem 1.2rem !important;
  }

  /* Conteneur des boutons */
  .container-fluid .d-flex.justify-content-center.mt-3.gap-3.flex-wrap {
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.8rem !important;
    margin-top: 1.5rem !important;
  }
}

/* -------------- */
/* div 4 en mobile  */
@media (max-width: 768px) {
  /* Conteneur principal */
  .container-fluid.py-2 .d-flex {
    flex-direction: column !important;
    align-items: center !important;
    gap: 1.5rem !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Colonne gauche (texte descriptif) */
  .container-fluid.py-2 .d-flex > div:first-child {
    flex: 1 1 100% !important;
    text-align: center !important;
    margin: 0 !important;
    padding: 1rem 1.5rem !important;
  }

  .container-fluid.py-2 .d-flex > div:first-child h2 {
    font-size: 1.8rem !important;
    line-height: 1.3 !important;
    color: #4FA862 !important;
    font-weight: 600 !important;
    margin-bottom: 1rem !important;
  }

  .container-fluid.py-2 .d-flex > div:first-child p {
    font-size: 1rem !important;
    line-height: 1.55 !important;
    color: #333 !important;
    margin-bottom: 1rem !important;
  }

  .container-fluid.py-2 .d-flex > div:first-child .btn-custom {
    width: 100% !important;
    max-width: 260px !important;
    font-size: 1rem !important;
    padding: 0.8rem 1.2rem !important;
    text-align: center !important;
    margin-top: 1rem !important;
  }

  /* Colonne droite (sélection de produit) */
  #produit-selec {
    flex: 1 1 100% !important;
    padding: 1rem !important;
    background-color: #f9f9f9 !important;
    border-radius: 8px !important;
  }

  /* Catégories : transformées en grille lisible */
  #categories {
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 0.6rem !important;
  }

  #categories .categorie {
    flex: 1 1 45% !important;
    text-align: center !important;
    background-color: #ffffff !important;
    border: 1px solid #ddd !important;
    padding: 0.5rem 0.8rem !important;
    font-size: 0.9rem !important;
    transition: all 0.3s ease-in-out;
  }

  #categories .categorie.active {
    background-color: #4FA862 !important;
    color: white !important;
    border-color: #4FA862 !important;
  }

  /* Image + description */
  #produit-selec > div:last-child {
    flex-direction: column !important;
    align-items: center !important;
    gap: 1rem !important;
    margin-top: 1rem !important;
  }

  #image-container {
    width: 100% !important;
    justify-content: center !important;
  }

  #image-container img {
    width: 100% !important;
    height: auto !important;
    max-height: 260px !important;
    object-fit: contain !important;
  }

  #desc-container {
    padding: 0.5rem 1rem !important;
    text-align: center !important;
  }

  #produit-desc {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    color: #333 !important;
  }
}
