/* HEADER */
body{
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #FFFFFFDF;
}

.header2 {
    background: #FFFFFFDF;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header2 img.logo {
    width: 51px;
    height: auto;
}

.logo {
    width: 15px;
    height: auto;
    display: block;
    padding: 5px;
}

.nav {
    display: flex;
    list-style: none;
    justify-content: center;
    gap: 20px; 
}

.nav-mobile {
    display: none;
}

.nav li {
    margin: 0 15px;
    font-size: 18px;
}

.nav a {
    text-decoration: none;
    color: black;
    font-weight: regular;
}

.nav a:hover {
    text-decoration: none;
    color: rgb(150, 150, 150);
    font-weight: regular;
}

.nav2 {
    display: flex;
    align-items: center;
    padding: 10px;
}

.logo-panier {
    width: 40px;
    height: auto;
}

/* Nombre d'articles dans le panier */
#cart-count {
  position: absolute;
  top: 4px;
  right: 4px;
  background: red;
  color: white;
  font-size: 12px;
  font-weight: bold;
  height: 20px;            
  min-width: 20px;          
  padding: 0 6px;           
  border-radius: 9999px;    
  display: flex;
  align-items: center;
  justify-content: center;
}

/*  Responsive Design pour toutes les tailles d'écran  */
html, body {
  overflow-x: hidden;
  width: 100%;
}

/*  HEADER  */
.header2 {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  width: 100%;
  height: 80px;
  background-color: white;
  z-index: 1000;
  position: relative;
}

/*  LOGO  */
.logo {
  display: block;
  width: 70px;
  height: auto;
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

/*  MENU BURGER  */
.menu-icon {
  display: none;
  font-size: 30px;
  cursor: pointer;
  position: absolute;
  left: 50%;
  transform: translateX(-50%) translateY(-50%); 
  top: 50%;
  color: black;
  background: none;
  border: none;
  z-index: 1001;
}

/*  PANIER  */
.nav2 {
  position: absolute;
  right: 50px;
  top: 50%;
  transform: translateY(-50%);
}

.logo-panier {
  width: 40px;
  height: auto;
  display: block;
}
  
/* MAIN */
  main {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }
  main h1 {
    text-align: center;
    color: #4f6a9b;
    margin-bottom: 20px;
  }
  .intro {
    margin-bottom: 30px;
    font-size: 1.1rem;
    text-align: justify;
  }
  
  /* Articles */
  .article {
    margin-bottom: 25px;
  }
  .article h2 {
    color: #4f6a9b;
    margin-bottom: 10px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
    font-size: 1.2rem;
  }
  .article p {
    margin-bottom: 10px;
    text-align: justify;
    font-size: 0.95rem;
  }
  
  /* Avis Clients */
  .reviews {
    margin-top: 40px;
  }
  .reviews h2 {
    color: #4f6a9b;
    margin-bottom: 15px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
    font-size: 1.2rem;
  }
  .review {
    background: #f9f9f9;
    padding: 10px 15px;
    border-left: 4px solid #4f6a9b;
    margin-bottom: 10px;
    font-size: 0.95rem;
  }
  
  /* Produits similaires */
  .related-products {
    margin-top: 40px;
  }
  .related-products h2 {
    color: #4f6a9b;
    margin-bottom: 15px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
    font-size: 1.2rem;
  }
  .product-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
  }
  .product-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    width: 220px;
    text-align: center;
    transition: transform 0.3s;
  }
  .product-card img {
    width: 100%;
    border-radius: 5px;
  }
  .product-card:hover {
    transform: scale(1.05);
  }
  .product-card .product-title {
    margin: 10px 0 5px;
    font-size: 1rem;
    font-weight: bold;
    color: #4f6a9b;
  }
  .product-card .product-price {
    color: #333;
    font-size: 0.95rem;
  }
  
/* ✅ FOOTER */
footer {
    text-align: center;
    padding: 20px;
    background: #222;
    color: white;
    margin-top: 40px;
}

footer .cgv {
    color: #fff;
    text-decoration: none;
}

footer .cgv:hover {
    text-decoration: underline;
}
  

/* ✅ Responsive Design pour toutes les tailles d'écran */
/* 📌 Empêcher le décalage horizontal */
html, body {
  overflow-x: hidden;
  width: 100%;
}

/* 📌 HEADER - Alignement uniforme sur PC et téléphone */
.header2 {
  display: flex;
  align-items: center;
  justify-content: center; /* Centrer les catégories sur PC */
  padding: 10px 20px;
  width: 100%;
  height: 80px;
  background-color: white;
  z-index: 1000;
  position: relative;
}

/* 📌 LOGO */
.logo {
  display: block;
  width: 70px;
  height: auto;
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

/* 📌 MENU BURGER */
.menu-icon {
  display: none;
  font-size: 30px;
  cursor: pointer;
  position: absolute;
  left: 50%;
  transform: translateX(-50%) translateY(-50%); /* Aligné avec le logo et le panier */
  top: 50%;
  color: black;
  background: none;
  border: none;
  z-index: 1001;
}

/* 📌 PANIER */
.nav2 {
  position: absolute;
  right: 50px;
  top: 50%;
  transform: translateY(-50%);
}

.logo-panier {
  width: 40px;
  height: auto;
  display: block;
}

/*  MENU MOBILE */
@media (max-width: 768px) {
  .menu-icon {
      display: block;
      position: absolute;
      top: 20px;
      left: 50%;
      transform: translateX(-50%);
      font-size: 30px;
      cursor: pointer;
      background: none;
      border: none;
      z-index: 1100;
      color: black;
  }

  .nav {
      display: none;
  }

  .header2 {
      display: flex;
      justify-content: space-between;
      align-items: center;
      width: 100%;
      padding: 10px;
      background-color: white;
      position: relative;
      z-index: 1000;
  }

  .nav-mobile {
      display: none;
      position: absolute;
      top: 80px;
      left: 50%;
      transform: translateX(-50%);
      width: calc(100% - 40px); 
      max-width: 320px; 
      background-color: white;
      border: 1px solid #ccc;
      border-radius: 10px;
      box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
      z-index: 1001;
      text-align: center;
      padding: 10px;
  }

  .nav-mobile.active {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
  }

  .nav-mobile a {
      text-decoration: none;
      color: black;
      padding: 12px;
      width: 100%;
      font-size: 18px;
      text-align: center;
      border-bottom: 1px solid #ccc;
      display: block;
  }

  .nav-mobile a:hover {
      color: rgb(150, 150, 150);
   }

  .nav-mobile a:last-child {
      border-bottom: none;
  }
}

/*  PANIER EN HAUT Ã€ DROITE  */
.nav2 {
  position: absolute;
  right: 50px;
  top: 50%;
  transform: translateY(-50%);
}