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

.section-title {
    font-size: 40px; /* Augmentez la valeur selon vos besoins */
    text-align: center;
}

.product-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 colonnes sur mobile */
    gap: 10px;
    justify-content: center;
    padding: 10px;
    margin-top: 100px; /* Ajustement pour éviter le chevauchement du menu */
}

.produit-link {
    text-decoration: none; /* Supprime le soulignement par défaut des liens */
    display: inline-block;
    cursor: pointer;
}

.product-card {
    width: 100%; /* Ajustement automatique */
    height: auto;
    background: none; /* Suppression du fond blanc */
    box-shadow: none; /* Suppression de l'ombre */
    border-radius: 0; /* Suppression des bords arrondis */
    padding: 0; /* Suppression du padding inutile */
    display: flex;
    flex-direction: column; /* Empile image + textes en colonne */
    align-items: center;    /* Centre horizontalement tous les éléments */
    text-align: center;     /* Centre le texte */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.product-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.product-image {
    flex: 1; /* Permet à l'image de prendre plus d'espace */
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%; 
    max-height: 500px; 
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s; 
}

.product-image img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.color-options {
    display: flex;
    justify-content: center;
    margin: 10px 0;
}

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

.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; }

.product-name {
    font-size: 18px;
    font-weight: bold;
    margin: 10px 0;
    color: #000000;
}

.rating {
    color: gold;
}

.price {
    font-size: 20px;
    font-weight: bold;
    color: #000000;
    margin-top: 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); /* ✅ Assure un centrage pixel-perfect */
        max-width: 320px; /* ✅ Ajustement précis */
        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;
    }
}

@media (max-width: 768px) {
    .section-title {
        text-align: center;
        font-size: 40px; /* Ajustez la taille selon vos préférences */
        margin: 0 auto;
    }

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

/* 📌 Produits affichés en 2 colonnes sur mobile sans cadre blanc */
.product-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 colonnes */
    gap: 10px;
    justify-content: center;
    padding: 10px;
    margin-top: 100px; /* Ajustement pour éviter le chevauchement du menu */
}
    
.product-card {
    width: 100%; /* Ajustement automatique */
    height: auto;
    background: none; /* Suppression du fond blanc */
    box-shadow: none; /* Suppression de l'ombre */
    border-radius: 0; /* Suppression des bords arrondis */
    padding: 0; /* Suppression du padding inutile */
}

/* Sur PC, suppression de la limitation de 2 produits par ligne */
@media (min-width: 769px) {
    @media (min-width: 769px) {
    .product-container {
        display: flex; /* Utilisation de flexbox pour un affichage sans limites de colonnes */
        flex-wrap: wrap; /* Permet de passer à la ligne si nécessaire */
        justify-content: space-between; /* Espacement égal entre les produits */
        margin-right: 40px; /* Marge à droite pour avoir un espacement égal */
        margin-left: 20px;
    }
    .product-card {
        margin: 10px; /* Espacement entre les produits */
        margin: 10px; /* Ajout d'une marge à droite pour éviter que les produits soient collés */
    }
    }
    .product-card {
        margin: 10px; /* Espacement entre les produits */
        margin: 10px; /* Ajout d'une marge à droite pour éviter que les produits soient collés */
    }

}

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