html,
body {
  min-height: 100%;
}

body {
  background-color: #f4f4f4;
  font-family: "Aptos", sans-serif;
  /* Police de caractères Aptos */
  margin: 0;
}

@font-face {
  font-family: "Aptos";
  src: url("Aptos.ttf");
}

/* Autre CSS */

.categories {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  max-width: 75%;
  margin: auto;
}

.container {
  display: flex;
  align-items: center;
  background-color: #ffffff;
  /* Couleur de fond blanc */
  padding: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  max-width: 400px;
  width: 100%;
  border-radius: 8px;
}

.container img {
  margin-right: 15px;
  /* Ajoute un espacement entre l'image et le texte */
}

.container a {
  color: #333;
  font-size: 20px;
  text-decoration: none;
}

.produits {
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  /* Couleur de fond blanc */
  padding: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  max-width: 325px;
  width: 100%;
  border-radius: 8px;
}

.produits div {
  margin-top: 15px;
}

.produits p {
  color: #575757;
  height: 44px;
  font-weight: 600;
  font-size: 20px;
  line-height: 22px;
  overflow: hidden;
  margin-bottom: 10px;
}

.caracteristiques {
  min-height: 110px;
}

.caracteristiques ul {
  padding-top: 10px;
  padding-inline-start: 0;
  border-top: 1px solid #e9e9e9;
}

.caracteristiques ul li {
  list-style: none;
  padding-bottom: 3px;
  /* max-height: 24px; */
}

.caracteristiques ul li::before {
  content: "> ";
}

/* Bouton Ajouter Panier */
a.cart {
  background-color: #333;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s, background-color 0.15s;
}

a.cart:hover {
  background-color: #555;
}

/* Bouton Ajouter Panier */
button.cart {
  background-color: #333;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  transition: color 0.15s, background-color 0.15s;
}

button.cart:hover {
  background-color: #555;
}

/* Bouton Modifier/Supprimer */
a.modifier {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 15px;
  background-color: orange;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

a.modifier:hover {
  background-color: darkorange;
}

a.supprimer {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 15px;
  background-color: red;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

a.supprimer:hover {
  background-color: darkred;
}

a.ajouter {
  display: inline-block;
  margin: 10px;
  padding: 10px 15px;
  background-color: green;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

a.ajouter:hover {
  background-color: darkgreen;
}

/* Responsive adjustments for mobiles (max-width: 480px) */
@media screen and (max-width: 480px) {
  /* Forcer les conteneurs à occuper 100% de la largeur */
  .categories {
    max-width: 100% !important;
    gap: 10px;
    padding: 0 10px;
  }
  
  /* Les produits s'affichent en pleine largeur avec un peu de marge */
  .produits {
    max-width: 100% !important;
    width: 100%;
    margin: 10px auto;
    padding: 10px;
  }
  
  /* Faire en sorte que les images s'ajustent au conteneur */
  .produits img {
    width: 100% !important;
    height: auto !important;
  }
  
  /* Réduire la taille du texte pour améliorer la lisibilité */
  .produits p {
    font-size: 18px;
    height: auto;
    line-height: 1.2;
  }
  
  /* Ajuster le menu et les formulaires si nécessaire */
  header,
  nav ul {
    width: 100%;
  }
  
  /* Si vous utilisez un menu responsive, assurez-vous que les éléments s'empilent correctement */
  nav ul li {
    margin: 10px 0;
  }
}

/* Responsive adjustments for tablettes (max-width: 980px) */
@media screen and (min-width: 481px) and (max-width: 980px) {
  /* Réduire légèrement l'espace entre les produits */
  .categories {
    max-width: 95% !important;
  }
  
  .produits {
    max-width: 45% !important;
  }
  
  .produits p {
    font-size: 18px;
  }
  
  /* Pour que le formulaire (si présent) s'ajuste bien */
  .container {
    max-width: 90% !important;
  }
}