/* 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;
}

/* ✅ Conteneur principal du produit */
.product-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    max-width: 1000px;
    margin: 20px auto;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
}

/* ✅ Image du produit – à gauche */
.product-image {
    flex: 1;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-image img {
    width: 400px;
    height: auto;
    object-fit: contain;
}

/* ✅ Détails du produit – à droite */
.product-details {
    flex: 1;
}

.product-details h1 {
    font-size: 26px;
    margin-bottom: 10px;
}

.price {
    font-size: 22px;
    font-weight: bold;
    color: #333;
}

.description {
    margin: 10px 0;
    color: #555;
}

/* ✅ Sélection de taille et quantité */
.selection-row {
  display: flex;
  justify-content: center;    /* Centre l'ensemble */
  align-items: flex-start;    /* Aligne en haut ou flex-start/center selon vos goûts */
  gap: 20px;                  /* Espace horizontal entre les deux blocs */
  margin: 20px 0;            /* Espace vertical au-dessus et en dessous */
}

/* Chaque bloc de sélection */
.selection-group {
  display: flex;
  flex-direction: column;     /* Label au-dessus du champ */
  align-items: center;        /* Centre le label et le champ */
  width: 100%;
  max-width: 150px;           /* Même largeur pour les deux */
}

/* Label */
.selection-group label {
  margin-bottom: 5px;
  width: 100%;
  text-align: center;
  font-weight: bold;
}

/* Style identique pour le <select> et l’<input type="number"> */
.selection-group select,
.selection-group input[type="number"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  
  width: 100%;               /* Remplit toute la largeur du .selection-group */
  padding: 8px 12px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;     /* Pour un dimensionnement cohérent */
}

/* ✅ Couleurs */
.color-options {
    display: flex;
    align-items: center;
    margin: 10px 0;
}

.color-options span {
    margin-right: 10px;
    font-weight: bold;
}

.color {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 5px;
    cursor: pointer;
    border: 2px solid #ddd;
}

.color.blue { background-color: #3777a4; }
.color.black { background-color: #000; }
.color.brown { background-color: #582900; }
.color.pink { background-color: #ffc0cb; }
.color.green { background-color: #008000; }
.color.white { background-color: #FFFFFF; }
.color.grey { background-color: #808080; }
.color.beige { background-color: #f5f5dc; }
.color.darkgreen { background-color: #006400; }
.color.violet { background-color: #a020f0; }
.color.red { background-color: #FF0000; }
.color.bleuciel { background-color: #add8e6; }
.color.wood { background-color: #deb887; }
.color.coble { background-color: #c5c3c2; }

/* ✅ Bouton ajouter au panier */
.add-to-cart {
    width: 100%;
    padding: 10px;
    background: black;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 15px;
    font-size: 16px;
}

.add-to-cart:hover {
    background: #333;
}

/* ✅ Avis Clients */
.customer-reviews {
    margin-top: 15px;
    font-size: 14px;
}

/* ✅ Caractéristiques */
.features,
.delivery-info,
.reviews {
    max-width: 1000px;
    margin: 20px auto;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.features h2,
.delivery-info h2,
.reviews h2 {
    margin-bottom: 10px;
}

.features ul {
    list-style: none;
    padding: 0;
}

.features ul li {
    margin-bottom: 5px;
}

/* ✅ Section Produits similaires */
.related-products {
    max-width: 1000px;
    margin: 20px auto;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.related-products h2 {
    margin-bottom: 15px;
}

.product-suggestions {
    display: flex;
    justify-content: space-between;
    padding-right: 50px;
    padding-left: 50px;
}

.product-card {
    text-align: center;
    text-decoration: none;
    color: black;
}

.product-card img {
    width: 100%;
    max-width: 250px;
    border-radius: 10px;
}

/* ✅ 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:last-child {
      border-bottom: none;
    }
  
    /* Fiche Produit : passage en colonne avec marge symétrique */
    .product-container {
      flex-direction: column;
      gap: 20px;
      padding: 15px;
      
      margin: 20px 15px;  /* Ajout d'une marge sur les cÃ´tÃ©s */
    }
    .product-image {
      width: 100%;
      padding: 10px;
      justify-content: center;
      align-items: center;
    }
    .product-image img {
      width: 100%;
      max-width: 300px;
      height: auto;
    }
    .product-details {
      width: 100%;
      padding: 10px;
      text-align: center;
    }
    .product-details h1 {
      font-size: 24px;
      margin-bottom: 10px;
    }
    .price {
      font-size: 20px;
    }
    .description {
      font-size: 16px;
      margin-bottom: 10px;
    }
  
    /* Sélection Taille et Quantité : label au-dessus et mêmes dimensions */
    .selection-row {
      flex-direction: column;
      align-items: center;
    }
    .selection-group {
      display: flex;
      flex-direction: column;
      align-items: center;
      width: 100%;
      max-width: 300px;
      margin: 10px auto;
    }
    .selection-group label {
      margin-bottom: 5px;
      width: 100%;
      text-align: center;
      font-weight: bold;
    }
    .selection-group select,
    .selection-group input[type="number"] {
      appearance: none;
      -webkit-appearance: none;
      -moz-appearance: none;
      background-color: #fff;
      border: 1px solid #ccc;
      border-radius: 5px;
      font-size: 16px;
      padding: 8px 12px;
      width: 100%;
      max-width: 300px;
      margin: 5px auto;
      background-position: right 1rem center;
      background-repeat: no-repeat;
    }
  
    /* Options de couleur élargies et centrées */
    .color-options {
      width: 80%;
      max-width: 300px;
      margin: 0 auto;
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      justify-content: center;
    }
    .color-options span {
      width: 100%;
      text-align: center;
      margin-bottom: 5px;
    }
    .color {
      width: 30px;
      height: 30px;
    }
  
    /* Bouton Ajouter au Panier */
    .add-to-cart {
      width: 80%;
      max-width: 300px;
      margin: 15px auto;
      font-size: 16px;
      padding: 10px;
    }
  
    /* Produits similaires : réduction de taille */
    .product-card {
      max-width: 150px;
      margin: 0 auto;
    }
    .product-card img {
      max-width: 120px;
    }
    .product-suggestions {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      gap: 20px;
    }
  
    /* Sections (Caractéristiques, Livraison, Avis, Produits similaires) */
    .features,
    .delivery-info,
    .reviews,
    .related-products {
      margin: 20px 15px;
      padding: 15px;
    }

    /* ------ Footer ------ */
    footer {
      padding: 20px 15px;
      text-align: center;
      font-size: 14px;
      color: #ffffff;
      margin: 0;
    }
    footer a.cgv {
      color: #ffffff;
      text-decoration: none;
    }
  }

  /* 📌 Cacher le menu burger sur PC */
@media (min-width: 769px) {
  .menu-icon {
      display: none;
  }
}