@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600&display=swap');

*{
    padding: 0;
    margin: 0;
}

:root{
    --primary-color-1: #499b4a;
    --primary-color-2: hsl(20,94%,34%);
    --primary-color-3: hsl(232,16%,34%);
    --primary-color-4: hsl(0, 0%, 25%);
    --text-area-color: whitesmoke;
    --heading-secondary-color: hsl(0, 0%, 55%);
    --secondary-card-color: whitesmoke;
}
html{
    width: 100%;
    height: 100%;
}

input{
    display: none;
}

.container-details{
    margin: 0 auto;
    /* background-color: green; */
    max-width: 60rem;
    min-height: 30rem;
    padding: 3rem;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;

}

.card-container-details{
    display: flex;
    flex-direction: row;
    min-width: 800px;
    /* background-color: wheat; */
    box-sizing: border-box;
    box-shadow: 0px 0px 10px 0px  rgb(145, 145, 145);
    border-radius: 0.8rem;
}

.shoe-area{
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    transition: background-color 0.3s ease-in-out;
    border-radius: 0.8rem 0 0 0.8rem;
}

.logo-div-details{
    position: absolute;
    opacity: 1;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    /* background-color: yellowgreen; */
}

.logo-div-details img{
    width: 70%;
    opacity: 0.5;
}

.floating-div-details{
    /* background-color: yellowgreen; */
    height: 100%;
    width: 100%;
    display: grid;
    place-items: center;
    align-items: center;
    animation: float 6s ease-in-out infinite;
    box-sizing: border-box;
}

.text-area-details ul{
    margin-left: 3rem;
}
.text-area-details ul li{
    margin: 0;
    list-style: none;
    background: url('../img/check.png ') left center no-repeat;
    background-size: 18px;
    padding-left: 1.7rem;
    margin: 0.4rem 0;
    font-weight: 600;
    opacity: 0.9;
}
.text-area-details ul li span{
    font-weight: 400;
}

.stock{
    display: inline-block;
    transform: rotate(45deg);
    position: absolute;
    color: red;
    font-size: 30px;
    font-weight: bold;
    top: 30%;
    left: 15%;
}


@keyframes float{
    0%{
        transform: translateY(0%);
    }

    50%{
        transform: translateY(-6%);
    }

    100%{
        transform: translateY(0%);
    }
}

.shoe-area :is(.shoe-1, .shoe-2, .shoe-3, .shoe-4) {
    /* background-color: yellow; */
    position: absolute;
    width: 100%;
    transform: rotateZ(-30deg) scale(1.3) translateX(-10%);
    transition: transform 0.3s ease-in-out, opacity 0.2s ease-in-out;
}

.shoe-area .shoe-4{
    /* background-color: whitesmoke; */
}



:is(.shoe-1, .shoe-2, .shoe-3, .shoe-4) img{
    margin-top: 10%;
    width: 100%;
    opacity: 0;
    transition: transform 0.3s ease-in-out, opacity 0.2s ease-in-out;
}


/*  =============
            Text styling
                    ========== */

.text-area-details{
    background-color: var(--text-area-color);
    /* background-color: rgb(114, 91, 114); */
    width: 50%;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    border-radius: 0 0.8rem 0.8rem  0
}

.text-area-details .heading-area{
    padding: 1rem;
}

.heading-area h2{
    font-weight: 800;
    font-size: 2.5rem;
    transition: color 0.3s ease-in-out;
}

.heading-area h4{
    margin: 0.25rem 0 0 0;
}

.paragraph-area{
    margin: 1.5rem 1rem 1.5rem 5rem;
    /* background-color: yellow; */
    font-size: 1rem;
    text-align: justify;
}

/*  =============
            Available colors
                    ========== */

.color-selection{
    margin: 1rem 1rem 1.5rem 5rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    column-gap: 0.8rem;
    box-sizing: border-box;
    /* background-color: wheat; */

}

.color-selection h5{
    font-size: 1rem;
}

.color-selection .colors{
    padding: 1rem;
    border-radius: 50%;
    cursor: pointer;
}

.color-pick-div{
    display: flex;
    flex-direction: row;
    align-items: center;
    column-gap: 0.8rem;
}

.color-selection .color-1{
    background-color: var(--primary-color-1);
}

.color-selection .color-2{
    background-color: var(--primary-color-2);
}

.color-selection .color-3{
    background-color: var(--primary-color-3);
}

.color-selection .color-4{
    background-color: var(--primary-color-4);
}


/*  =============
            price-and-buy-btn styling
                             ========== */

.price-and-buy-btn{
    display: flex;
    flex-direction: column;
    text-align: center;
    /*justify-content: space-between;*/
    padding: 1.5rem 1rem;

}

.price-and-buy-btn :is(.price-1, .price-2, .price-3, .price-4){
    display: none;
    font-weight: 800;
    font-size: 2.5rem;
    transition: color 0.3s ease-in-out;
}

#panier-btn{
    margin-top: 2%;
    padding: 1em 1.5em;
    font-size: 1.2rem;
}

/* ========== Themes ======== */

/* Theme 1 */
#color-1:checked ~ .text-area-details .color-selection .color-pick-div .color-1{
    outline: 2px solid var(--primary-color-1);
    outline-offset: 2px;
}

#color-1:checked ~ .shoe-area{
    background-color: lightgrey;
}


#color-1:checked ~ .text-area-details .heading-area h2{
    color: var(--primary-color-1)
}

#color-1:checked ~ .text-area-details .price-and-buy-btn .price-1{
    display: block;
    color: var(--primary-color-1);
}

#color-1:checked ~* .panier-btn{
    background-color: var(--primary-color-1);
}


/* VOUS AIMEREZ AUSSI */
.row{
    justify-content: center;
}
.card img{
    width: 50%;
    margin: 0 auto;
}

/* STYLE AVIS CLIENT */
.title{
    text-align: center;
    margin-top: 2%;
}

.carousel-container {
    margin-top: 2%;
    position: relative;
}

.carousel-inner {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: hidden;
    width: 50%;
    margin: 0 auto;
    height: 200px;
}

.carousel-item {
    flex: 0 0 100%;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.5s;
    position: absolute;
    top: 0;
    left: 0;
}

.carousel-item.active {
    opacity: 1;
}


.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 30px;
    color: #fff;
    cursor: pointer;
}

.arrow.prev {
    left: 20px;
}

.arrow.next {
    right: 20px;
}

.box-top {
    display: flex;
    align-items: center;
}

.profile-img {
    width: 50px;
    height: 50px;
    overflow: hidden;
    border-radius: 50%;
}

.profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.reviews {
    margin-left: auto;
    width: 200px;
}

.reviews i {
    color: gold;
}

.client-comment {
    margin-top: 20px;
    font-size: 16px;
    line-height: 1.5;
}

/* AJOUT AVIS CLIENT */
#input{
    display: block;
    width: 100%;
    padding: 15px 20px;
    margin-top: 8px;
    margin-bottom: 15px;
    border: 1px solid #499b4a;
    border-radius: 8px;
    box-sizing: border-box;
}

.cta-btn {
    background-color: #499b4a;
    color: white;
    padding: 18px 20px;
    margin-top: 3%;
    margin-bottom: 20px;
    width: 100%;
    border-radius: 10px;
    border: none;
}

#center-star-td{
    justify-content: center;
    display: flex;
}
.star-rating {
    font-size: 0;
    white-space: nowrap;
    display: inline-block;
    width: 150px;
}

.star {
    display: inline-block;
    font-size: 35px;
    color: #ccc;
    transition: all 0.2s ease-in-out;
}

.star:hover,
.star:hover ~ .star {
    color: #ffcc00;
}

input[type="radio"] {
    display: none;
}

input[type="radio"]:checked ~ label {
    color: #ffcc00;
}

/* Ajoutez le code suivant pour afficher le sélecteur de gauche à droite */
.star-rating {
    direction: rtl;
}

.star {
    transform: rotateY(180deg);
}

/* ACCORDEON AJOUT COMMENTAIRE */
.col{
    width: 70%;
    margin: 0 auto;
}
.accordion-button{
    font-size: 1.5rem;
    color: #499b4a;
    border: 1px solid black;
}
.accordion-button:focus{
    background: linear-gradient(90deg, rgba(73,155,74,0.6320903361344538) 0%, rgba(73,155,74,0.5144432773109244) 100%, rgba(0,212,255,1) 100%);
    color: white;
}
.accordion-button:not(.collapsed){
    background: linear-gradient(90deg, rgba(73,155,74,0.6320903361344538) 0%, rgba(73,155,74,0.5144432773109244) 100%, rgba(0,212,255,1) 100%);
    color: white;
}
/* Transition when the screen is higher than 1000px */

@media screen and (min-width: 62.5rem) {

    #color-1:checked ~ .shoe-area .floating-div-details .shoe-1 {
        transition-delay: 0.2s;
        animation-delay: 0.3s;
        transform: rotateZ(0);
        z-index: 99;
    }

    #color-1:checked ~ .shoe-area .floating-div-details .shoe-1 img {
        transition-delay: 0.2s;
        opacity: 1;
    }
}

/* FORMULAIRE AVIS CLIENT */
.card-avis {
    font-family: sans-serif;
    margin-left: auto;
    margin-right: auto;
    margin-bottom:3em;
    border-radius: 10px;
    padding: 1.8rem;
}

.card-avis table{
    margin: 0 auto;
    width: 100%;
}

.view-product-button{
    background-color: #499b4a;
    color: white;
}

.view-product-button:hover{
    background: #0f5132;
    color: white;
}


@media screen and (max-width: 62.5rem){
    .stock{
        display: inline-block;
        transform: rotate(45deg);
        position: absolute;
        color: red;
        font-size: 40px;
        font-weight: bold;
        top: 30%;
        left: 20%;
    }
    .container-details{
        padding: 1rem;
    }

    .card-container-details{
        min-width: 0;
        display: flex;
        flex-direction: column;
    }

    .shoe-area {
        width: 100%;
        height: 600px;
        padding: 1rem 0;
        border-radius: 0.8rem 0.8rem 0 0;
    }

    /* CENTRER L'IMAGE PRODUIT */
    .show-1{
        display: flex;
        justify-content: center;
    }
    .shoe-1 img{
        height: 600px;
        width: 60%;
        display: flex;
        margin: 0 auto;
    }

    .shoe-area :is(.shoe-1, .shoe-2, .shoe-3, .shoe-4) {
        position: absolute;
        transition: transform 0.3s ease-in-out, opacity 0.2s ease-in-out;
    }

    /* Transition for any screen lower than 1000px */

    .shoe-area :is(.shoe-1, .shoe-2, .shoe-3, .shoe-4) {
        /* background-color: yellow; */
        transform: rotateZ(0deg)  translateY(-10%);
        margin: 1rem 0;
        opacity: 0;
    }

    :is(.shoe-1, .shoe-2, .shoe-3, .shoe-4) img{
        transform: rotateZ(0) scale(1) ;
        opacity: 1;
    }

    #color-1:checked ~ .shoe-area .floating-div-details .shoe-1 {
        transition-delay: 0.2s;
        opacity: 1;
        transform: rotateZ(0);
    }

    #color-1:checked ~ .shoe-area .floating-div-details .shoe-1 img{
        transition-delay: 0.2s;
        opacity: 1;
    }

    .text-area-details{
        /* background-color: rgb(114, 91, 114); */
        width: 100%;
        display: flex;
        flex-direction: column;
        padding: 1rem;
        box-sizing: border-box;
        border-radius: 0 0  0.8rem 0.8rem
    }

    .paragraph-area, .color-selection{
        margin: 1.5rem 1rem;
    }

    /* NE PAS AFFICHER L'ICON PANIER */
    .panier-btn img{
        display: none;
    }

    /* IMAGE PRODUIT */

}

/* ====== Phone Size ===== */
@media screen and (max-width: 26.9rem){
    .shoe-area {
        height: 400px;
    }
    .shoe-1 img{
        height: 400px;
    }
    .price-and-buy-btn{
        margin: 0 auto;
    }
    .paragraph-area{
        margin: 1rem;
        font-size: 0.8rem;
    }

    .paragraph-area, .color-selection{
        margin: 0.7rem 1rem;

    }

    .color-selection{
        display: flex;
        flex-direction: column;
        align-items: unset;
        row-gap: 0.8rem;;
    }

    .price-and-buy-btn{
        padding: 0.5rem 1rem;
        flex-direction: column;
        row-gap: 0.8rem;
        align-items: flex-start;
    }
}

@media (max-width: 768px){
    .stock{
        display: inline-block;
        transform: rotate(45deg);
        position: absolute;
        color: red;
        font-size: 30px;
        font-weight: bold;
        top: 30%;
        left: 15%;
    }
    .shoe-1 img{
        width: 80%;
    }
    .carousel-inner{
        width: 80%;
    }
    .carousel-control-next-icon, .carousel-control-prev-icon{
        width: 0;
    }
    .card-avis{
        padding: 0;
    }
    .card-avis table{
        width: 100%;
    }
    .title-phone{
        margin-top: 10%;
    }
    .card-avis textarea{
        width: 100%;
    }
    .col{
        width: 100%;
    }
}

@media (max-width: 500px){
    .shoe-1 img{
        width: 80%;
    }


}