* {

    margin: 0;

    padding: 0;

    list-style: none;

    text-decoration: none;

    color: black;

    box-sizing: border-box;

}



html, body {

    overflow-x: hidden; 

    width: 100%;

    position: relative;

}



header {

    height: 20vh;

    width: 100%;

}



.navbar {

    position: absolute;

    top: 50px;

    padding: 0 50px;

    display: flex;

    justify-content: space-between;

    width: 100%;

    align-items: center;

    left: 0;

}



.navbar .logo {

    font-size: 2em;

    font-weight: bold;

}



.navbar .nav-links ul {

    display: flex;

}



.navbar .nav-links ul li {

    margin: 0 25px;

}



.navbar .menu-burger {

    display: none;

    position: absolute;

    top: 50px;

    right: 50px;

    width: 35px;

}



.navbar .shopping-bag {

    display: none;

    position: absolute;

    top: 52px;

    right: 95px;

    width: 30px;

}



/* CONTAINER */



.product_container {

    display: flex;

    align-items: flex-start; /* Aligne en haut */

    justify-content: center;

    gap: 40px;

    margin-top: 130px;

    padding: 0 20px; 

    width: 100%;

}



/* BLOC IMAGE / SLIDER */

.product {

    max-width: 500px;

    flex: 1;

}



.slider-container {

    position: relative;

    width: 100%;

    overflow: hidden;

    border-radius: 10px;

    background: #fff;

}



.slider {

    display: flex;

    flex-direction: row;

    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    width: 100%;

}



.slide-item {

    min-width: 100%;

    width: 100%;

}



.slide-img {

    width: 100%;

    height: auto;

    display: block;

    object-fit: contain;

}



/* FLÈCHES */

.slider-btn {

    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    z-index: 5;

    background: rgba(0,0,0,0.4);

    color: white;

    border: none;

    padding: 15px 10px;

    cursor: pointer;

    font-size: 20px;

    transition: background 0.3s;

}



.slider-btn:hover { background: rgba(0,0,0,0.8); }

.prev { left: 0; border-radius: 0 5px 5px 0; }

.next { right: 0; border-radius: 5px 0 0 5px; }



/* DOTS */

.dots-container {

    position: absolute;

    bottom: 15px;

    width: 100%;

    display: flex;

    justify-content: center;

    gap: 8px;

    z-index: 5;

}



.dot {

    width: 10px;

    height: 10px;

    background: rgba(0,0,0,0.3);

    border-radius: 50%;

    cursor: pointer;

    border: 1px solid rgba(255,255,255,0.5);

}



.dot.active {

    background: black;

    transform: scale(1.2);

}



/* BLOC ACHAT */

.buy {

    flex: 1;

    max-width: 500px;

    border: 1px solid #f0f0f0;

    border-radius: 7px;

    box-shadow: 0 4px 15px rgba(0,0,0,0.05);

    padding: 30px;

}



.price {

    font-weight: bold;

    color: green;

    font-size: 1.5em;

    margin-bottom: 10px;

}



.addtobag {

    border: none;

    color: white;

    background-color: orange;

    border-radius: 30px;

    width: 120px;

    height: 35px;

    cursor: pointer;

    display: inline-flex;

    align-items: center;

    justify-content: center;

}



.size {

    display: block;

    margin-bottom: 10px;

}



.quantity {

    margin-top: 15px;

}



.fav-btn {

    height: 35px;

    width: 35px;

    border: 1px solid grey;

    border-radius: 50%;

    margin-right: 15px;

    cursor: pointer;

    object-fit: contain;

    padding: 7px;

}



.like-bag {

    display: flex;

    margin-top: 20px;

    align-items: center;

}



.description {

    margin-top: 20px;

    line-height: 1.5;

}

/* --- GESTION DES OPTIONS (COULEURS & TAILLES) --- */

.options-container {
    margin-bottom: 20px;
}

.option-group {
    margin-bottom: 15px;
}

.option-label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 0.9em;
}

/* Style pour le menu déroulant (Taille) */
.option-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    background-color: white;
}

/* Style pour les pastilles de couleur */
.color-swatches {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* On cache le bouton radio réel */
.color-input {
    display: none;
}

/* La pastille visuelle */
.color-label {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 1px solid #ddd;
    cursor: pointer;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.color-label:hover {
    transform: scale(1.1);
}

/* Quand une couleur est sélectionnée (via le radio caché) */
.color-input:checked + .color-label {
    border: 2px solid black;
    transform: scale(1.1);
    box-shadow: 0 0 0 2px white inset, 0 0 0 3px black; /* Double bordure */
}

/* Style spécifique pour le blanc pour qu'on le voie sur fond blanc */
.color-label[style*="background-color: White"], 
.color-label[style*="background-color: white"] {
    border: 1px solid #bbb;
}

/* Message d'indisponibilité */
.unavailable-msg {
    color: red;
    font-size: 0.9em;
    margin-top: 5px;
    display: none;
}



footer {

    background-color: rgb(153, 146, 146);

    margin-bottom: 0;

    padding: 10px;

    margin-top: 35px;

}





.chiant {

    display: flex;

    flex-direction: column;

    align-items: center;

}

.imgfooter {

    display: flex;

    justify-content: center;

}



.imgfooter img {

    height: 50px;

    width: 50px;

    object-fit: contain;

    display: block;

}



/* RESPONSIVE */

@media screen and (max-width: 800px) {

    .navbar {

        padding: 0; 

        top: 10px;

    }



    .navbar .logo { 

        position: absolute; top: 50px; left: 50px; 

    }



    .nav-links .logo a {

         color: black; 

    }



    .navbar .menu-burger {

         display: block; 

    }



    .navbar .shopping-bag {

         display: block; 

    }

    

    .nav-links {

        top: 0; left: 0; 

        position: absolute;

        background-color: rgba(254, 254, 254, 0.95); 

        width: 100%; 

        height: 100vh;

        display: flex; 

        justify-content: center; 

        align-items: center;

        margin-left: -100%; 

        transition: all 0.5s ease;

        z-index: 10; 

    }



    .mobile-menu {

         margin-left: 0; 

    }



    .nav-links ul {

         display: flex; 

         flex-direction: column; 

    }



    .navbar .nav-links ul li {

         margin: 25px 0; 

         font-size: 1.2em; 

    }



    .product_container {

        flex-direction: column;

        margin-top: 120px;

        padding: 0 15px; 

    }



    .product, .buy {

        width: 100%;

        max-width: 100%;

        margin: 0;

        flex: none; 

    }



    .buy {

        padding: 20px; 

    }

}