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

/* Formulaire de Contact */
.contact-form-section {
    background-color: #fff;
    padding: 50px 0;
    text-align: center;
}

.contact-form-section h2 {
    font-size: 36px;
    color: #333;
    margin-bottom: 20px;
}

.contact-form-section p {
    font-size: 18px;
    color: #555;
    margin-bottom: 30px;
}

/* Style du formulaire */
form {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.form-group {
    width: 100%;
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    font-size: 18px;
    color: #333;
    display: block;
    margin-bottom: 10px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #333;
}

/* Bouton de soumission */
.submit-btn {
    background-color: #333;
    color: #fff;
    font-size: 18px;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #555;
}

.submit-btn:active {
    background-color: #222;
}

/* Message de confirmation */
#responseMessage {
    margin-top: 20px;
    font-size: 18px;
    font-weight: bold;
}

#responseMessage.success {
    color: green;
}

#responseMessage.error {
    color: red;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .contact-form-section h2 {
        font-size: 28px;
    }

    .contact-form-section p {
        font-size: 16px;
    }

    form {
        padding: 15px;
        width: 90%;
    }

    .form-group input,
    .form-group textarea {
        font-size: 14px;
    }

    .submit-btn {
        font-size: 16px;
        padding: 10px 20px;
    }
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .contact-form-section h2 {
        font-size: 28px;
    }

    .contact-form-section p {
        font-size: 16px;
    }

    form {
        padding: 15px;
        width: 90%;
    }

    .form-group input,
    .form-group textarea {
        font-size: 14px;
    }

    .submit-btn {
        font-size: 16px;
        padding: 10px 20px;
    }

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