/* Style global */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: Arial, sans-serif;
  color: #333;
  background: #fff;
  line-height: 1.6;
  /* Défilement fluide vers les ancres */
  scroll-behavior: smooth;
}

/* En-tête du site */
.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
}
.logo img {
  max-width: 150px;
  height: auto;
}
/* Menu de navigation */
nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}
nav a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  padding: 5px 0;
  transition: color 0.3s;
}
nav a:hover {
  color: #FF5E5E; /* survol en rouge brand */
}

/* Bannière d’accueil */
.banner {
  background: #FF5E5E;  /* fond de couleur de la marque */
  color: #fff;
  text-align: center;
  padding: 60px 20px;
}
.banner h1 {
  font-size: 3em;
  margin-bottom: 0.2em;
}
.banner .subtitle {
  font-size: 1.3em;
}

/* Section À propos */
.about {
  max-width: 800px;
  margin: 60px auto;
  padding: 0 20px;
  text-align: justify;
}
.about h2 {
  font-size: 2em;
  text-align: center;
  margin-bottom: 1em;
}
.about p {
  margin-bottom: 1em;
  /* Animation d'apparition du texte */
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards;
}
.about p:nth-of-type(1) { animation-delay: 0.2s; }
.about p:nth-of-type(2) { animation-delay: 0.4s; }
.about p:nth-of-type(3) { animation-delay: 0.6s; }
.about p:nth-of-type(4) { animation-delay: 0.8s; }

/* Section Produits phares */
.products {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}
.products h2 {
  font-size: 2em;
  text-align: center;
  margin-bottom: 1em;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.product-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 5px;
  padding: 15px;
  text-align: center;
  /* Animation d'apparition en douceur */
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
}
.product-card:nth-of-type(1) { animation-delay: 0.2s; }
.product-card:nth-of-type(2) { animation-delay: 0.4s; }
.product-card:nth-of-type(3) { animation-delay: 0.6s; }
.product-card img {
  max-width: 100%;
  height: auto;
  margin-bottom: 15px;
}
.product-card h3 {
  font-size: 1.2em;
  margin-bottom: 0.5em;
}
.product-card p {
  font-size: 0.95em;
  margin-bottom: 1em;
}
/* Bouton lien vers NouveauxMarchands */
.product-card .btn {
  display: inline-block;
  background: #FF5E5E;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  padding: 10px 15px;
  border-radius: 3px;
  transition: background 0.3s;
}
.product-card .btn:hover {
  background: #E04B4B; /* nuance plus foncée au survol */
}

/* Effets au survol des cartes produit */
.product-card:hover {
  box-shadow: 0 8px 15px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}
/* (L'image grossit légèrement au survol de la carte) */
.product-card:hover img {
  transform: scale(1.05);
  transition: transform 0.3s;
}

/* Pied de page */
footer {
  background: #333;
  color: #fff;
  padding: 30px 20px;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  text-align: left;
}
.footer-info, .footer-legal {
  flex: 1 1 300px;
  margin-bottom: 20px;
}
.footer-info p, .footer-legal p {
  margin-bottom: 5px;
}
.footer-legal p a {
  color: #fff;
  text-decoration: none;
}
.footer-legal p a:hover {
  text-decoration: underline;
}

/* Animation keyframes pour apparitions */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Media Queries pour adaptabilité mobile */
@media (max-width: 600px) {
  .header-container {
    flex-direction: column;
    align-items: center;
  }
  nav ul {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
  }
  .banner {
    padding: 40px 20px;
  }
  .banner h1 {
    font-size: 2.2em;
  }
  .banner .subtitle {
    font-size: 1.1em;
  }
  .about { 
    margin: 40px auto; 
  }
  .products {
    margin: 40px auto;
  }
}
