@import url('https://fonts.googleapis.com/css2?family=Kumbh+Sans:wght@100..900&display=swap');

.hero {
  position: relative;
  /* height: 100vh; */
  height: fit-content;

  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/hero.jpg') no-repeat center center;
  
}

.store-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  border-radius: 5px;
  box-shadow: 3px 3px 10px rgba(0, 0, 255, 0.3);
  margin: 0 auto;
  display: block;
  position: relative;
  z-index: 0;
  top: 0;


}

.hero-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
  z-index: 1;
}

/* 
@import url("./reset.css");
@import url("./index.css");
 */



/* body {
    display: flex;
    justify-content: center;
} */

 .container { 
    /* background-color: grey; */
    margin-top: 2vh;
    /* width: 80vw; */
    display: inline-block;
    /* margin: auto; */
    /* justify-self: center; */
   margin: 0 auto;
   width: 100%;
    /* justify-content: center; */
    /* flex-direction: column; */
    /* justify-self: center; */
} 

h1 {
    margin-bottom: 2vh;
    font-size: 36px;
    text-transform: uppercase;
    font-family: 'Kumbh Sans', Helvetica, Arial, sans-serif;
}

.center {
    text-align: center;
}


p {
    /* text-align: center; */
    font-size: 18px;
    font-family: 'Kumbh Sans', Helvetica, Arial, sans-serif;
}

#products-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
}

#products {
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.section-header {
    text-align: center;
    margin-bottom: 2vh;
}

.card {
    /* background-color: grey; */
    margin: 1vh;
    padding: 1vh;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 290px;
    display: inline-block;
    /* margin: auto; */
    justify-self: center;
    /* margin: auto; */
    justify-content: center;
    /* flex-direction: column; */
    /* justify-self: center; */
}


/* .products-section {
    padding: 80px 20px;
    background: #f9f9f9;
    color: #333;
}

.products-section .container {
    max-width: 1200px;
    margin: 0 auto;
}


.products-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px;
}

.product-item {
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.product-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 2px solid #ddd;
}

.product-content {
  padding: 15px;
  text-align: center;
}

.product-content h3 {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 10px;
}

.product-content p {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 15px;
}

.buy-button {
  background-color: #0078d7;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.buy-button:hover {
  background-color: #005bb5;
}

@media (max-width: 768px) {
  .product-img {
    height: 150px;
  }

  .product-content h3 {
    font-size: 1rem;
  }

  .product-content p {
    font-size: 0.8rem;
  }

  .buy-button {
    font-size: 0.8rem;
    padding: 8px 16px;
  }
} */

.products-section {
  padding: 40px 20px;
  background-color: #f4f4f4;
  display: flex; /* Ajoute un conteneur flex */
  justify-content: center; /* Centre horizontalement */
  align-items: center; /* Centre verticalement */
}

.container h2 {
  /* text-align: center; */
  /* font-size: 2rem;
  color: #333;
  margin-bottom: 20px; */
  max-width: 1200px; /* Limite la largeur totale */
  width: 100%;
  margin: 0 auto; /* Centre horizontalement */
}



.products-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Grille responsive */
  gap: 20px; /* Espacement entre les cartes */
  padding: 20px;
  justify-content: center; /* Centre les colonnes dans la grille */
}

.product-item {
  display: flex;
  flex-direction: column; /* Aligne les éléments verticalement */
  justify-content: space-between; /* Espace entre les éléments */
  align-items: center; /* Centre les éléments horizontalement */
  background-color: #ffffff;
  border-radius: 15px; /* Coins arrondis pour un design moderne */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Ombre douce */
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  min-height: 450px; /* Hauteur minimale pour uniformiser les cartes */
  padding: 20px;
}

.product-item:hover {
  transform: translateY(-5px); /* Légère élévation au survol */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Ombre plus marquée au survol */
}

.product-img {
  width: 100%;
  max-width: 200px; /* Limite la largeur maximale */
  height: 150px; /* Hauteur fixe pour uniformiser les images */
  object-fit: cover; /* Maintient le ratio d'aspect */
  border-radius: 10px; /* Coins arrondis pour les images */
  margin-bottom: 15px; /* Espacement avec le contenu */
}

.product-content {
  flex-grow: 1; /* Permet au contenu de s'étendre pour remplir l'espace */
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Assure que le bouton reste en bas */
  align-items: center;
  padding: 10px;
}

.product-content h3 {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 10px;
}

.product-content p {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 15px;
  text-align: center;
}

.product-content .price {
  font-size: 1.1rem;
  color: #0078d7;
  font-weight: bold;
  margin-bottom: 15px;
}

.buy-button {
  background-color: #0078d7;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.buy-button:hover {
  background-color: #005bb5;
  transform: scale(1.05); /* Légère mise en avant au survol */
}

@media (max-width: 768px) {
  .product-item {
    min-height: auto; /* Permet aux cartes de s'adapter sur les petits écrans */
  }

  .product-img {
    height: 120px; /* Réduit la taille des images sur mobile */
  }

  .product-content h3 {
    font-size: 1rem;
  }

  .product-content p {
    font-size: 0.8rem;
  }

  .product-content .price {
    font-size: 1rem;
  }

  .buy-button {
    font-size: 0.8rem;
    padding: 8px 16px;
  }
}
