html, body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #101010;
    padding: 1em;
    position: fixed;
    width: 100%;
    top: 0;
    right: 0;
    z-index: 1000;
    height: 80px; /* Ajustez selon besoin */
}

.navbar a {
    color: white;
    position: relative;
    text-decoration: none;
    padding: 0.5em 1em;
    font-weight: bold;
    z-index: 1002;
}

.navbar  .left-links a::after, .right-icons a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: white;
    transition: width 0.3s ease;
}

.navbar a:hover::after {
    width: 100%;
}

.left-links, .right-icons {
    display: flex;
    align-items: center;
}

.left-links {
    margin-left: 50px;
}

.left-links a {
    margin-right: 1em;
}

.right-icons .icon  {
    margin-right: 1em;
    font-size: 1.5em; /* Ajuste la taille des icônes selon tes besoins */
    position: relative; /* Nécessaire pour positionner le compteur du panier */
}

.right-icons .icon2 {
    font-size: 1.5em;
}

/* Styles pour le logo MOB */


.logoMOB {
    position: absolute;
    text-decoration: none;
    left: 50%;
    transform: translateX(-50%);
    height: 120px; /* Plus grand que la navbar */
    z-index: 1001;
}

.logoMOB img {
    height: 100px;
    width: auto;
}

/* Bouton de menu */
.menu-btn {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: black; /* Assurer que la croix est visible */
}

.menu-btn i {
    display: none; /* Cacher les icônes par défaut */
}

.menu-btn .bx-menu {
    display: inline; /* Afficher l'icône du menu par défaut */
}

.menu-btn.open .bx-x {
    display: inline; /* Afficher l'icône de croix quand le menu est ouvert */
}

.menu-btn.open .bx-menu {
    display: none; /* Cacher l'icône du menu quand le menu est ouvert */
}

/* Désactiver le défilement quand le menu est ouvert */
.no-scroll {
    overflow: hidden;
}

/* Autres styles existants */
#menu-icon {
    font-size: 28px;
    margin-left: 10px;
    z-index: 6;
}


.product-detail {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: row;
    margin: 150px auto;
    margin-bottom: 100px;
    max-width: 1200px;
}

.icons {
    margin-right: 100px;
}

.product-images-container {
    overflow: hidden;
    width: 400px;
    height: auto;
}

.product-images {
    display: flex;
    transition: transform 0.5s ease;
}

.product-image {
    width: 400px;
    height: auto;
}

.image-controls {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.prev-btn, .next-btn {
    color: black;
    border: none;
    padding: 10px;
    border-radius: 500px;
    cursor: pointer;
    font-size: 1.5rem;
}

.product-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-left: 20px;
    width: 400px;
}

.product-info h1 {
    font-size: 2em;
    margin-bottom: 10px;
}

.product-info p {
    margin: 5px 0;
    font-size: 1.2em;
}

.prix {
    display: flex;
    flex-direction: row;
    width: 200px;
}

.price {
    padding-left: 10px;
}

.color-options {
    display: flex;
    flex-direction: row;
}

.color-options button {
    display: inline-block; /* Pour que le bouton se comporte comme un élément en ligne */
    width: 25px; /* Largeur du bouton */
    height: 25px; /* Hauteur du bouton */
    border-radius: 50%; /* Pour rendre le bouton rond */
    background-color: white; /* Couleur de fond */
    color: white; /* Couleur du texte */
    text-align: center; /* Centrer le texte à l'intérieur du bouton */
    line-height: 50px; /* Centrer verticalement le texte */
    font-size: 10px; /* Taille de la police */
    border: 1px solid black;
    cursor: pointer; /* Curseur de type pointer au survol */
}


.cta-button {
    color: black;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.2em;
    margin-top: 20px;
    cursor: pointer;
}

.hidden {
    display: none;
}

#features {
    margin-top: 10px;
}

.toggle-button {
    display: flex;
    align-items: center;
}

.toggle-button .cta-button {
    display: flex;
    align-items: center;
}

.toggle-button .cta-button span {
    margin-left: 5px;
}

.toggle-button .cta-button span.plus::before {
    content: '+';
}

.toggle-button .cta-button span.minus::before {
    content: '−';
}

.cta-button-pannier {
    background-color: black;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.2em;
    margin-top: 20px;
    cursor: pointer;
}

.cta-button-pannier:hover {
    background-color: #333;
}

.modele-options {
    display: flex;
}

.modele-btn {
    background-color: #f1f1f1;
    color: black;
    padding: 10px 15px;
    margin-right: 10px;
    margin-top: 10PX;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s;
}

.modele-btn.selected {
    border: 1px solid black;
}


.modele-btn:hover {
    background-color: #e0e0e0;
}


.size-options {
    display: flex;
}

.size-btn {
    background-color: #f1f1f1;
    color: black;
    padding: 10px 15px;
    margin-right: 10px;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s;
}

.size-btn.selected {
    border: 1px solid black;
}


.size-btn:hover {
    background-color: #e0e0e0;
}

.footer {
    width: 100%;
    background-color: #f1f1f1;
    padding: 20px 0;
    text-align: center;
    position: relative;
}

.footer-links, .footer-icons {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.footer-links a, .footer-icons a {
    margin: 0 15px;
    color: black;
    text-decoration: none;
}

.footer-icons a {
    font-size: 1.5em;
}

.footer-links a:hover, .footer-icons a:hover {
    color: #575757;
}

.footer p {
    margin-top: 10px;
    color: #777;
    font-size: 0.875em;
}

/* Responsive Design */
@media (max-width: 1850px) {
    header {
        padding: 15px 8%;
        transition: .2s;
    }
}

@media (max-width: 1370px) {
    header {
        padding: 15px 4%;
        transition: .2s;
    }

    .color-options {
        width: 70%;
        display: flex;
        flex-wrap: wrap; 
        gap: 5px;
    }

    
}

@media (max-width: 870px) {
    .navbar a, i {
        font-size: 15px;
    }


}

/* Pour les petits écrans */
@media (max-width: 800px) {
    .navbar {
        display: flex;
        align-items: center;
        background-color: black;
        padding: 1em;
        position: fixed;
        width: 100%;
        top: 0;
        right: -130%; /* Masquer la barre de navigation par défaut */
        height: 100%; /* Prendre toute la hauteur de l'écran pour le menu */
        transition: right 0.3s ease-in-out;
        z-index: 1000;
        flex-direction: column; /* Empiler les éléments verticalement */
        justify-content: center; /* Centrer les éléments */
    }

    .navbar.open {
        right: 0; /* Afficher la barre de navigation quand ouverte */
    }

    .left-links {
        display: flex;
        flex-direction: column; /* Afficher en colonne */
        justify-content: center;
        align-items: center; /* Centrer horizontalement */
        margin-bottom: 1em; /* Espacement entre les éléments */
    }

    .left-links a {
        color: white;
        text-decoration: none;
        padding: 0.5em 1em;
        position: relative;
        font-weight: bold;
        font-size: 1.5rem; /* Augmenter la taille du texte */
        margin-bottom: 2rem; /* Espacement entre les liens */
        text-align: center; /* Centrer le texte */
    }

    .right-icons {
        position: fixed; /* Fixer la position */
        top: 0; /* Ajuster la position verticale */
        right: 0; /* Ajuster la position horizontale */
        display: flex;
        align-items: center; /* Centrer verticalement */
        justify-content: right;
        background-color: black;
        width: 100%;
    }

    .right-icons .icon, .icons2 {
        font-size: 1.5em;
        color: black; /* Couleur des icônes */
        cursor: pointer;
    }

    .right-icons .icon2 {
        margin-left: -30px; /* Ajuster la position de l'icône du panier */
    }


    .logoMOB {
        position: fixed;
        left: 50%;
        top: 0;
        transform: translateX(-50%);
        height: 100px;
        z-index: 1001;
        pointer-events: none; /* Permet de cliquer à travers */
    }

    .logoMOB img {
        height: 60px; /* Taille réduite pour mobile */
        width: auto;
        pointer-events: auto; /* Le logo reste cliquable */
    }

    .menu-btn {
        display: block;
        position: fixed; /* Fixer la position pour rester au-dessus du menu */
        top: 0;
        left: 20px; /* Aligner à gauche */
        z-index: 1001; /* Assurer que la croix est au-dessus du menu */
        font-size: 2rem;
        cursor: pointer;
        color: black; /* Assurer que la croix est visible */
    }

    .menu-btn i {
        display: none; /* Cacher les icônes par défaut */
    }

    .menu-btn .bx-menu {
        display: inline; /* Afficher l'icône du menu par défaut */
    }

    .menu-btn.open .bx-x {
        display: inline; /* Afficher l'icône de croix quand le menu est ouvert */
    }

    .menu-btn.open .bx-menu {
        display: none; /* Cacher l'icône du menu quand le menu est ouvert */
    }

    .no-scroll {
        overflow: hidden;
    }

    .product-detail {
        display: flex;
        flex-direction: column;
        align-items: center; /* Centre horizontalement les enfants */
    }

    .description {
        width: 70%;
    }

}

@media (max-width: 600px) {
    .icons {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .product-info h1 {
        font-size: 25px;
    }

    .detail {
        width: 65%;
    }
}

@media (max-width: 450px) {
    .product-images-container {
        width: 300px;
        margin-top: -100px;
    }

    .product-image {
        width: 300px;
    }

    .icons {
        margin-left: 60px;
    }
}

@media (max-width: 375px) {
    .icons {
        margin-left: 40px;
    }
}


@media (max-width: 320px) {

    .left-links a {
        font-size: 1.2rem;
    }

    .product-images-container {
        width: 250px;
        margin-top: -100px;
    }

    .product-image {
        width: 250px;
    }

    .product-info h1 {
        font-size: 20px;
    }

    .icons {
        margin-left: 2px;
    }

    .footer {
        font-size: 10px;
    }

}
