@charset "UTF-8";

/*
* Theme Name: Charlotte - Livre
* Author: Charlotte Dujardin
* Description: Thème de livre de Charlotte
* Version: 1.0
* License: GNU General Public License v3 or later
* License URI: http://www.gnu.org/licenses/gpl-3.0.html
*/

section.content-area.book {
    background-color: var(--rouge);
    margin: 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-flow: column nowrap;
    flex-flow: column nowrap;
    color: var(--blanc)
}

section.book section.description {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-flow: column nowrap;
    flex-flow: column nowrap;
    color: inherit;
    margin-top: calc(var(--hauteur-header-lg) + 0.5rem);
    -ms-flex-pack: distribute;
    justify-content: space-around;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

section.book section.description section.cover {
    max-width: 75%;
}

section.book section.description section.cover div {
    position: relative;
    overflow: hidden;
}

section.book section.description section.cover div:hover img.recto {
    visibility: hidden;
}

section.book section.description section.cover div:hover img.verso {
    display: block;
}

section.book section.description section.cover div img {
    width: 100%;
    height: 100%;
    -o-object-fit: contain;
    object-fit: contain;
}

section.book section.description section.cover div img.verso {
    display: none;
    position: absolute;
    left: 0;
    top: 0;
}

section.book section.description section.cover a.button {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    margin: 1em;
    -webkit-transition-duration: 0.3s;
    -o-transition-duration: 0.3s;
    transition-duration: 0.3s;
    -webkit-transition-property: -webkit-transform;
    transition-property: -webkit-transform;
    -o-transition-property: transform;
    transition-property: transform;
    transition-property: transform, -webkit-transform;
}

section.book section.description section.cover a.button:hover {
    -webkit-transform: scale(1.1);
    -ms-transform: scale(1.1);
    transform: scale(1.1);
}

section.book section.description section.cover a.button p {
    background-color: var(--blanc);
    padding: 0.5rem 3rem;
    font-family: var(--police-signature);
    font-size: var(--police-taille-xxl);
    color: var(--rouge);
    -webkit-transition-duration: 0.3s;
    -o-transition-duration: 0.3s;
    transition-duration: 0.3s;
    -webkit-transition-property: background-color;
    -o-transition-property: background-color;
    transition-property: background-color;
}

section.book section.description section.cover a.button:hover p {
    background-color: rgba(var(--code--blanc), 0.9);
}

section.book section.description section.synopsis {
    max-width: 75%;
    color: inherit;
}

section.book section.description section.synopsis div {
    color: inherit;
}

section.book section.description section.synopsis h2,
section.book section.description section.synopsis h4,
section.book section.description section.synopsis p {
    color: inherit;
    text-align: justify;
    font-weight: 100;
}

section.book section.description section.synopsis h2 {
    margin-bottom: 0.5rem;
    position: relative;
    overflow: hidden;
}

section.book section.description section.synopsis h2:before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--blanc);
    height: 2px;
}

section.book section.description section.synopsis h4 {
    font-family: var(--police-decorative);
    font-size: var(--police-taille-md);
}

section.book section.description section.synopsis div {
    width: 100%;
    margin-top: 3rem;
}

section.book section.more-content {
    color: inherit;
}

section.book section.more-content h3 {
    color: inherit;
    font-weight: 400;
    text-align: center;
    position: relative;
    margin: 3rem auto;
    padding-bottom: 1.5rem;
}

section.book section.more-content h3:before {
    content: "";
    position: absolute;
    left: 31%;
    right: 31%;
    bottom: 0;
    background: var(--blanc);
    height: 2px;
}

section.book section.more-content section {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-flow: column nowrap;
    flex-flow: column nowrap;
    -ms-flex-pack: distribute;
    justify-content: space-around;
}

section.book section.more-content section div {
    margin: 0 1rem 1rem 1rem;
    position: relative;
    overflow: hidden;
}

section.book section.more-content section div img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
}

section.book section.more-content section div p {
    position: absolute;
    background-color: rgba(var(--code--blanc), 0.7);
    bottom: 0;
    width: 100%;
    padding: 0.8rem 1.6rem;
    color: var(--gris);
}


/* Écrans larges (ordinateurs portables et fixes, 992px et plus) */

@media only screen and (min-width: 992px) {
    section.content-area.book {
        margin: 0 12.5vw;
    }
    section.book section.description {
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
        -ms-flex-flow: row nowrap;
        flex-flow: row nowrap;
        margin-top: 4em;
    }
    section.book section.description section.cover {
        max-width: 45%;
    }
    section.book section.description section.synopsis {
        max-width: 45%;
    }
    section.book section.more-content section {
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
        -ms-flex-flow: row nowrap;
        flex-flow: row nowrap;
    }
    section.book section.more-content section div {
        max-width: 30%;
        height: 11rem;
        margin: 0;
    }
    section.book section.more-content section div p {
        bottom: -30%;
        -webkit-transition-duration: 0.3s;
        -o-transition-duration: 0.3s;
        transition-duration: 0.3s;
        -webkit-transition-property: bottom;
        -o-transition-property: bottom;
        transition-property: bottom;
        -webkit-transition-timing-function: ease-out;
        -o-transition-timing-function: ease-out;
        transition-timing-function: ease-out;
    }
    section.book section.more-content section div:hover p {
        bottom: 0;
    }
}