/* === IMPORTS DES POLICES === */
@import url("https://fonts.googleapis.com/css2?family=Open+Sans&family=Petit+Formal+Script&display=swap");

/* === STYLES GENERAUX === */
body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
}

.container-full {
    max-width: 1100px;
    width: 100%;
    margin: auto;
}

/* === STYLES DES TITRES === */
h1 {
    margin-top: 30px;
    text-align: center;
    font-family: 'Open Sans', sans-serif;
    font-size: 3rem;
    font-weight: lighter;
    color: rgb(236, 235, 234);
    text-transform: uppercase;
    letter-spacing: 2.5px;
    padding-top: 10%;
}

h2 {
    text-transform: uppercase;
    color: rgba(68, 69, 70, 0.629);
    font-size: 1.5rem;
    font-family: 'Open Sans', sans-serif;
    text-align: start;
}

.picture {
    width: 40%;
}

.pict {
    width: 100%;
}

.how-to-buy {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 13%;
    margin-bottom: 13%;
}

.conditions {
    width: 60%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

}

.imagine {
    width: 80%;
    font-family: 'Open sans', sans-serif;
    text-align: left;
    font-size: 12px;
    padding-left: 5%;
}

/* === STYLES DES CARDS ET DE LA GALLERIE === */
.product-card {
    display: flex;
    flex-direction: column;
    width: 30%;
    margin-bottom: 5%;
    margin-top: 5%;
}

.product-card>img {
    margin-top: 16px;
    width: 300px;
    height: 300px;
    cursor: pointer;
    align-self: center;
}

.describe {
    padding: 0 20px;
    font-size: 1.2rem;
}

.price {
    color: rgb(59, 57, 56);
    font-size: 1.2rem;
    align-self: flex-end;
    padding-left: 20px;
    font-family: 'Open Sans', sans-serif;
}

.products-gallery {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-evenly;
    background-color: rgb(236, 235, 234);
    padding-left: 2%;
    padding-right: 2%;
    margin-bottom: 10%;
}
.addCreation {
    background-color: white;
    padding: 10px;
    border: none;
    border-radius: 3px;
    font-size: 1em;
    color: rgba(68, 69, 70, 0.629);
}

.divAdd {
    /* margin-left: 40px; */
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 300px;
    margin: auto;
}
.addCreation:hover {
    /* ... propriétés ... */
    cursor: pointer;
    background-color: white;
    border: 2px solid #DDD8CF;
}
.pay {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}
.creations-footer {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding-top: 1.5rem;
}
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    /* Blanc complet */
    z-index: 999;
    /* text-align: center; */
    padding: 90px 0;
    /* overflow-y: auto; */
}
.close-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 1.4rem;
    font-weight: 100;
    cursor: pointer;
    color: rgb(59, 57, 56);
}

/* === STYLES DU CAROUSEL ET DE L'OVERLAY === */
.carousel-wrapper {
    display: flex;
    justify-content: space-between;
    height: 90vh;
    background-color: rgb(236, 235, 234);
    box-sizing: border-box;
}

.carousel-container {
    width: 60%;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgb(236, 235, 234);
}
.carouselImage {
    max-width: 70%;
    max-height: 100%;
    justify-content: center;
    align-self: center;
    display: block;
}

.product-thumbnail-info-container {
    display: flex;
    flex-direction: column;
    width: 40%;
}

.thumbnails {
    margin: 0 5%;
    display: flex;
    flex-direction: column;
    align-self: baseline;
    justify-content: flex-start;
}

.thumbnail {
    width: 100px;
    cursor: pointer;
    transition: opacity 0.3s ease;
    opacity: 0.6;
}

.thumbnail:hover {
    opacity: 1;
}

.product-description-overlay {
    margin-top: 20px;
    margin-right: 50px;
}

.carousel-prev {
    background-color: transparent;
    color: rgb(59, 57, 56);
    font-size: 2rem;
    border: none;
    cursor: pointer;
    font-weight: 200;
    margin: 4%;
}

.carousel-next {
    background-color: transparent;
    color: rgb(59, 57, 56);
    font-size: 2rem;
    border: none;
    cursor: pointer;
    font-weight: 200;
    margin: 4%;
}

/* === MEDIA QUERIES === */
@media (max-width: 1100px) {
    .product-card {
        margin: 20px;
        width: 40%;
    }

    .how-to-buy {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        width: 90%;
        margin: auto;
        padding-bottom: 13%;
        padding-top: 10%;
    }

    h1 {
        width: 100%;
        text-align: center;
        margin: auto;
    }
}

@media (max-width: 768px) {

    .how-to-buy {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
        margin: auto;
        padding-bottom: 13%;
        padding-top: 10%;
    }
    .picture {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        padding-top: 5%;
        padding-bottom: 5%;
    }
    .pict {
        width: 80%;
    }

    .conditions {
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .imagine {
        width: 90%;
        font-family: 'Open sans', sans-serif;
        text-align: center;
        font-size: 1rem;
    }

    .thumbnails {
        display: none;
    }

    .products-gallery {
        padding-top: 10%;
        padding-bottom: 20%;
    }

    .product-card {
        margin: 10px;
        width: 80%;
        padding-top: 10%;
    }

    .description {
        text-align: center;
        margin: auto;
        width: 80%;
    }

    .carousel-wrapper {
        flex-direction: column;
    }

    .carousel-container {
        width: 100%;
        margin-top: 50px;
        align-items: center;
    }

    .product-thumbnail-info-container {
        justify-content: center;
        width: 70%;
        margin: auto;
        padding-bottom: 50%;
    }

    .product-description-overlay {
        margin: 0;
    }
}

@media (max-width: 450px) {
    h1 {
        font-size: 2.2rem;
        width: 90%;
    }
    .picture{
        width:100%;
        display:flex;
         justify-content: center;
          align-items: center;
    }

    .pict {
        width: 90%;
    }

    .imagine {
        width: 95%;
        font-family: 'Open sans', sans-serif;
        text-align: center;
        font-size: 1.3rem;
        margin-right: 5%;
    }
    .product-card {
        margin: 10px;
        width: 95%;
    }

    .carousel-container {
        margin: 0;
        justify-content: center;
    }

    .product-thumbnail-info-container {
        padding-bottom: 60%;
       
    } 

    .desc-img {
        padding-top: 0;
    }

    .carousel-prev {
       
        font-size: 1.5rem;
        font-weight: 600;
        margin: 1%;
    }
    
    .carousel-next {
        font-size: 1.5rem;
        font-weight: 600;
        margin: 1%;
    }
}