main
{
    display: flex;
}

/* Partie Image */

main > div:nth-of-type(1)
{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 50%;
}
main > div:nth-of-type(1) > div
{
    background-color: #faf1e7;
    width: 75%;
    border: 10px solid #faf1e7;
    border-radius: 25px;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}
main > div:nth-of-type(1) > div > div:nth-of-type(2) > div > img
{
    border-radius: 25px;
}

/* Partie détail */

main > div:nth-of-type(2)
{
    width: 50%;
    display: flex;
    flex-direction: column;
}
main > div:nth-of-type(2) > h1
{
    font-weight: bolder;
    width: fit-content;
    margin-top: 30px;
    margin-left: auto;
    margin-right: auto;
    background-color: #faf1e7;
    padding-left: 10px;
    padding-right: 10px;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}
main > div:nth-of-type(2) > div:nth-of-type(1),
main > div:nth-of-type(2) > div:nth-of-type(3)
{
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}
main > div:nth-of-type(2) > div > h3
{
    font-weight: bolder;
    background-color: #faf1e7;
    padding-left: 10px;
    padding-right: 10px;
    width: fit-content;
    margin-top: 50px;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}
main > div:nth-of-type(2) > div:nth-of-type(2)
{
    border-radius: 25px;
    margin-top: 30px;
    font-weight: bolder;
    height: 200px;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    background-color: #faf1e7;
    padding-left: 10px;
    padding-right: 10px;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}
main > div:nth-of-type(2) > div > p
{
    margin-top: 10px;
    font-weight: bolder;
}
main > div:nth-of-type(2) > form
{
    width: 80%;
    margin-top: 50px;
    margin-left: auto;
    margin-right: auto;
}
form > div
{
    background-color: #faf1e7;
    border-radius: 25px;
    padding-top: 20px;
    padding-left: 20px;
    padding-bottom: 20px;
    padding-right: 20px;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    width: fit-content;
}
form > div > div
{
    width: fit-content;
    margin-top: 20px;
    margin-left: auto;
    margin-right: auto;
}
form > div > div > input
{
    font-weight: bolder;
    background-color: #FD6C9E;
    border-radius: 25px;
    width: 150px;
    height: 30px;
    border-color: #FD6C9E;
    border: 2px solid #FD6C9E;
    transition: 0.3s;
}
form > div > div > input:hover
{
    background-color: #faf1e7;
    border: 2px solid #FD6C9E;
    transition: 0.3s;
}
form > div > button
{
    border: 3px solid #FD6C9E;
    font-weight: bolder;
    font-size: 25px;
    border-radius: 25px;
    background-color: #FD6C9E;
    width: 50px;
    height: 50px;
    transition: 0.3s;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}
form > div > button:hover
{
    background-color: #faf1e7;
    transition: 0.3s;
}
form > div > input
{
    font-size: 25px;
    border: none;
    text-align: center;
    font-weight: bolder;
    width: 50px;
    background-color: #faf1e7;
    height: 50px;
    margin-right: 20px;
    margin-left: 20px;
}

/* Version mobile pour la page produit */
@media (max-width: 768px) {
    main {
        flex-direction: column;
    }

    main > div:nth-of-type(1),
    main > div:nth-of-type(2) {
        width: 100%;
    }

    main > div:nth-of-type(1) > div {
        width: 95%;
        border-width: 5px;
        border-radius: 15px;
    }

    main > div:nth-of-type(2) > h1,
    main > div:nth-of-type(2) > div > h3 {
        font-size: 1.2em;
        margin-top: 20px;
        padding: 5px 8px;
    }

    main > div:nth-of-type(2) > div:nth-of-type(2) {
        height: auto;
        padding: 10px;
        font-size: 1em;
    }

    main > div:nth-of-type(2) > div,
    main > div:nth-of-type(2) > form {
        width: 95%;
        margin-left: auto;
        margin-right: auto;
    }

    form > div {
        padding: 10px;
        border-radius: 15px;
    }

    form > div > button,
    form > div > input {
        width: 40px;
        height: 40px;
        font-size: 18px;
        margin: 0 5px;
    }

    form > div > div > input[type="submit"] {
        width: 100%;
        font-size: 1em;
        height: 40px;
        margin-top: 10px;
    }

    /* Carousel image adaptation */
    .carousel-inner img {
        max-height: 250px;
        object-fit: contain;
    }
}