@charset "UTF-8";

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

.home section.writer {
    background-color: rgba(var(--code--gris), 0.8);
    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;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.home section.writer div:first-of-type,
section.writer section.presentation section:first-of-type {
    height: 100%;
    overflow: hidden;
}

.home section.writer div:first-of-type img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
}

.home section.writer>div:last-of-type {
    width: 100%;
    padding: 2rem;
}

.home section.writer>div:last-of-type h2 {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    position: relative;
    overflow: hidden;
    color: var(--blanc);
}

.home section.writer>div:last-of-type h2:before {
    content: "";
    position: absolute;
    width: 20%;
    left: 40%;
    bottom: 0;
    background: var(--blanc);
    height: 2px;
}

.home section.writer>div:last-of-type div p {
    color: var(--blanc);
    text-align: justify;
    font-weight: 100;
}

section.writer section.mega-title {
    position: relative;
    text-align: center;
    padding: 4rem 0;
    margin: 2rem 0;
}

section.writer section.mega-title::before {
    content: "";
    position: absolute;
    left: -1em;
    top: 0;
    width: 100vw;
    height: 100%;
    background-color: rgba(var(--code--gris), 0.8);
    z-index: -1;
}

section.writer section.mega-title h2 {
    color: var(--blanc);
    font-size: var(--police-taille-xxl);
}

section.writer section.mega-title p {
    color: var(--blanc);
}

section.writer section.presentation {
    background-color: var(--gris);
    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;
}

section.writer section.presentation div:first-of-type img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    -o-object-position: right;
    object-position: right;
}

section.writer section.presentation div:last-of-type {
    padding: 1rem;
    text-align: justify;
}

section.writer section.presentation div:last-of-type p {
    color: var(--blanc);
    font-size: var(--police-taille-xs);
}


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

@media only screen and (min-width: 992px) {
    .home section.writer {
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
        -ms-flex-flow: row nowrap;
        flex-flow: row nowrap;
        height: 70vh;
        max-height: 720px;
    }
    .home section.writer div:first-of-type {
        -webkit-box-flex: 0.5;
        -ms-flex: 0.5 5 70vh;
        flex: 0.5 5 70vh;
    }
    .home section.writer>div:last-of-type {
        -webkit-box-flex: 5;
        -ms-flex: 5 0.5 50%;
        flex: 5 0.5 50%;
        padding: 5rem;
    }
    .home section.writer>div:last-of-type h2 {
        text-align: left;
    }
    .home section.writer>div:last-of-type h2:before {
        width: 10%;
        left: 0;
    }
    section.writer section.mega-title::before {
        left: calc(-1 * (60px + 1em));
    }
    section.writer section.mega-title h2 {
        font-size: var(--police-taille-xxxl);
    }
    section.writer section.mega-title p {
        font-size: var(--police-taille-lg);
    }
    section.writer section.presentation {
        display: -ms-grid;
        display: grid;
        -ms-grid-columns: 1fr 2fr;
        grid-template-columns: 1fr 2fr;
    }
    section.writer section.presentation div:last-of-type {
        padding: 3rem;
    }
    section.writer section.presentation div:last-of-type p {
        font-size: var(--police-taille-md);
    }
}