*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Generic */
#tuf-book-page {
    width: 100%;
}
.page-content.page-cms #tuf-book-page {
    text-align: left;
}
#tuf-book-page .container {
    width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#tuf-book-page h2 {
    font-family: Playfair Display;
    text-transform: none;
    font-style: italic;
    font-size: 28px;
    margin-bottom: 30px;
}
#tuf-book-page span {
    display: inline-block;
    margin-bottom: 10px;
}
#tuf-book-page a.button {
    padding: 18px 16px;
    display: inline-block;
    font-family: Roboto;
    transition: background-color 0.7s ease;
}
#tuf-book-page a.button.button-plain {
    background-color: #f28123;
    color: #fff;
    border: 2px solid #f28123;
    border-radius: 4px;
}
#tuf-book-page a.button.button-plain:hover {
    background-color: #fff;
    color: #f28123 !important;
}

/* book-cover section */
#tuf-book-page #book-cover {
    background-color: #e75830;
    display: flex;
    align-items: center;
    padding: 80px 60px;
    justify-content: space-between;
}
#tuf-book-page #book-cover img {
    max-width: 100%;
    height: auto;
    display: block;
}
#tuf-book-page #book-cover .container > div {
    width: calc(50% - 60px);
}
#tuf-book-page #book-cover .container > div:first-child {
    max-width: 800px;
}
#tuf-book-page #book-cover .container > div:last-child {
    display: flex;
    justify-content: flex-end;
}
#tuf-book-page #book-cover h2 {
    color: #dbcdae;
    font-size: 48px;
}
#tuf-book-page #book-cover p {
    font-family: Playfair Display;
    font-size: 26px;
    color: #dbcdae;
    line-height: 26px;
    margin-bottom: 40px;
}

/* separator section */
#tuf-book-page #separator {
    background-color: #f2f2f2;
    position: relative;
    background-image: url('https://www.toutunfromage.com/themes/toutunwebsite/assets/img/livre/illustration-fromage.png'), url('https://www.toutunfromage.com/themes/toutunwebsite/assets/img/livre/illustration-fromages.png');
    background-repeat: no-repeat, no-repeat;
    background-position: 50px center, right center;
    background-size: contain, contain;
    background-color: #f2f2f2;
}
#tuf-book-page #separator p {
    max-width: 700px;
    margin: 0 auto;
    font-family: Playfair Display;
    font-style: italic;
    color: #000;
    font-size: 24px;
    line-height: 34px;
    padding: 80px 0 100px;
    text-align: center;
}

/* buy-now section */
#tuf-book-page #buy-book {
    background-color: #dfc291;
    display: flex;
    align-items: center;
    padding: 80px 60px;
    justify-content: space-between;
    flex-wrap: wrap;
}
#tuf-book-page #buy-book img {
    max-width: 100%;
    height: auto; /* Pour conserver les proportions */
    display: block; /* Évite les espaces blancs en dessous des images inline */
}
#tuf-book-page #buy-book .container > div {
    /*width: 50%;*/
    width: calc(50% - 60px);
    box-sizing: border-box;
}
#tuf-book-page #buy-book .container > div:first-child {
    /*text-align: center;*/
}
#tuf-book-page #buy-book .container > div:last-child {
    max-width: 800px;
    padding-left: 40px;
}
#tuf-book-page #buy-book p {
    font-family: Playfair Display;
    font-size: 18px;
    color: #000;
    line-height: 26px;
    margin-bottom: 20px;
}
#tuf-book-page #buy-book ul {
    list-style: none;
    padding-left: 20px;
}
#tuf-book-page #buy-book ul li {
    font-family: Playfair Display;
    text-transform: none;
    font-size: 18px;
    color: #000;
    margin-bottom: 20px;
}
#tuf-book-page #buy-book ul li:before {
    content: "👉";
    content: "☛";
    margin-right: 10px;
    font-size: 28px;
}
#tuf-book-page #buy-book ul li:last-child {
    margin-bottom: 40px;
}

/* author section */
#tuf-book-page #author {
    background-color: #fff;
    display: flex;
    align-items: center;
    padding: 80px 60px;
    justify-content: space-between;
    position: relative;
}
#tuf-book-page #author .superposed-cow {
    position: absolute;
    top: -150px;
    right: 0;
    width: 260px;
}
#tuf-book-page #author img {
    max-width: 100%;
    height: auto;
    display: block;
}
#tuf-book-page #author img:not(.superposed-cow) {
    height: 400px;
}
#tuf-book-page #author .container > div {
    width: 50%;
}
#tuf-book-page #author .container > div:first-child {
    max-width: 800px;
    padding-right: 40px;
}
#tuf-book-page #author .container > div:last-child {
    display: flex;
    justify-content: center;
}
#tuf-book-page #author p {
    font-family: Playfair Display;
    font-size: 18px;
    color: #000;
    line-height: 26px;
    margin-bottom: 40px;
}

/* book-excerpt section */
#tuf-book-page #book-excerpt {
    background-color: #f2f2f2;
    display: flex;
    align-items: center;
    padding: 80px 60px;
    justify-content: space-between;
}
#tuf-book-page #book-excerpt img {
    max-width: 100%;
    height: auto;
    display: block;
}
#tuf-book-page #book-excerpt .container > div {
    width: 50%;
}
#tuf-book-page #book-excerpt .container > div:first-child {
    /*text-align: center;*/
}
#tuf-book-page #book-excerpt .container > div:last-child {
    padding-left: 40px;
    max-width: 800px;
}
#tuf-book-page #book-excerpt p {
    font-family: Playfair Display;
    font-size: 18px;
    color: #000;
    line-height: 26px;
    margin-bottom: 40px;
}

/* media queries */
@media (max-width:1500px) {
    #tuf-book-page #book-cover,
    #tuf-book-page #buy-book,
    #tuf-book-page #author,
    #tuf-book-page #book-excerpt {
        padding: 60px 40px;
    }
}
@media (max-width:1400px) {

}
@media (max-width:1200px) {
    /*
    #tuf-book-page #buy-book .container > div {
        width: 48%;
    }
    */
    #tuf-book-page #separator {
        background-position: 20px center, right center;
        background-size: 100px auto, 110px auto;
    }
    #tuf-book-page #separator p {
        font-size: 20px;
        padding: 60px 0 80px;
    }
}
@media (max-width:992px) {
    #tuf-book-page #separator {
        background-size: 80px auto, 110px auto;
    }
    #tuf-book-page #separator p {
        font-size: 18px;
        max-width: 500px;
    }

    #tuf-book-page #book-cover,
    #tuf-book-page #buy-book,
    #tuf-book-page #author,
    #tuf-book-page #book-excerpt {
        padding: 50px 30px;
    }
    #tuf-book-page #book-cover .container > div,
    #tuf-book-page #buy-book .container > div,
    #tuf-book-page #author .container > div,
    #tuf-book-page #book-excerpt .container > div {
        width: 100%; /* Les blocs occupent toute la largeur (stacked) */
    }
    #tuf-book-page #buy-book .container > div:first-child,
    #tuf-book-page #book-excerpt .container > div:first-child {
        margin-bottom: 30px; /* Espacement entre les deux blocs */
    }
    #tuf-book-page #book-cover .container > div:last-child,
    #tuf-book-page #author .container > div:last-child {
        margin-bottom: 30px;
    }
}
@media (max-width:768px) {
    #tuf-book-page #separator {
        background-size: 70px auto, 90px auto;
    }
    #tuf-book-page #separator p {
        font-size: 14px;
        max-width: 360px;
    }

    #tuf-book-page #buy-book .container,
    #tuf-book-page #book-excerpt .container {
        flex-direction: column;
    }
    #tuf-book-page #book-cover .container,
    #tuf-book-page #author .container {
        flex-direction: column-reverse;
    }
    #tuf-book-page #buy-book .container > div,
    #tuf-book-page #author .container > div,
    #tuf-book-page #book-excerpt .container > div {
        width: 100%; /* Chaque bloc prend toute la largeur */
    }
    #tuf-book-page #buy-book .container > div:first-child,
    #tuf-book-page #book-excerpt .container > div:first-child {
        margin-bottom: 50px;
    }
    #tuf-book-page #book-cover .container > div:last-child,
    #tuf-book-page #author .container > div:last-child {
        margin-bottom: 50px;
        justify-content: center;
    }
    #tuf-book-page #book-cover .container > div:first-child p:last-child {
        display: flex;
        justify-content: center;
    }
}
@media (max-width:576px) {
    #tuf-book-page #separator p {
        max-width: 200px;
    }

    #tuf-book-page #book-cover,
    #tuf-book-page #buy-book,
    #tuf-book-page #author,
    #tuf-book-page #book-excerpt {
        padding: 30px 15px; /* Réduction du padding pour les très petits écrans */
    }
    #tuf-book-page #book-cover p,
    #tuf-book-page #buy-book p,
    #tuf-book-page #author p,
    #tuf-book-page #book-excerpt p {
        font-size: 14px; /* Réduction de la taille du texte */
        line-height: 22px;
    }
    #tuf-book-page #book-cover .container > div,
    #tuf-book-page #buy-book .container > div,
    #tuf-book-page #author .container > div,
    #tuf-book-page #book-excerpt .container > div {
        margin-bottom: 20px; /* Espacement ajusté entre les deux blocs */
    }
}
@media (max-width:575px) {

}
@media (max-width:425px) {
    #tuf-book-page #separator {
        background-image: none;
    }
    #tuf-book-page #separator p {
        max-width: none;
        padding: 40px 28px 50px;
    }
}