 /* menu déroulant explicatif  */
.description-box {
    background-color: #f1f1f1;
}

.description-box .toggle-link {
    display: block;
    margin-top: 10px;
    color: #0056b3;
    text-decoration: none;
    font-weight: bold;
    text-align: right;
}

.description-box .toggle-link:hover {
    text-decoration: underline;
}

.full-text {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.8s ease, opacity 0.6s ease;
}

/* Quand le texte est visible */
.full-text.active {
  max-height: 1500px; /* doit être suffisant pour contenir tout le texte */
  opacity: 1;
}


/* alignement des images et du bouton ajouter au panier */
.Produits{
    display: flex;
    flex-direction: column;
    justify-content: space-between; /*oblige l'alignement du bouton en bas*/
    height: 100%;  /*les blocs prennent la même hauteur dans le grid.*/
    min-height: 500px;
    padding: 15px;
    text-align: center;
    box-sizing: border-box; /* calcule la marge du contener */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.15); /* effet d'ombre */
}

/* taille des images top des ventes */
.Produits img{
    height: 300px;       /* Fixe la hauteur pour toutes les images */
    width: auto;         /* Laisse la largeur s’adapter pour garder les proportions */
    object-fit: contain; /* Évite la déformation */
    margin: 0 auto 20px; /* Centre l'image horizontalement avec une marge en bas */
    display: block;      /* Nécessaire pour centrer avec margin auto */
} 

/* stylisation du bouton */
.Produits button{
    margin: 10px auto;
    border-radius: 2px;
    border: none;
    padding: 5px 50px;
    /* effet d’animation fluide, durée de la transition (0,5 seconde),easy : type d’accélération/décélération */
    transition: background-color 0.5s ease, color 0.5s ease; 
}

/* agrandisement du bouton au curseur avec changement de couleur*/
.Produits button:hover{
    background-color: #0d6efd;
    transform: scale(1.1); /*agrendisement du bouton */
    color: white;
}

.products-info {
  min-height: 160px; /* augmente la hauteur pour les titres longs */
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  text-align: center;
}

.products-title {
  text-align: center;
  margin-bottom: 5px;
  min-height: 50px; /* ou 2 lignes environ */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%; /* occupe toute la largeur disponible */
  display: block; /* garantit un comportement en bloc */
}

.products-price {
  text-align: center;
  margin-bottom: 5px;
}

