/* =========================================================
   LESSON — THEORY
   ========================================================= */


/* =========================================================
   STRUCTURE DES DEUX PAGES
   ========================================================= */

.book-lesson-theory
{
    position: relative;

    width: 100%;
    height: 100%;

    display: grid;

    grid-template-columns: 1fr 1fr;

    z-index: 3;
}


.page
{
    position: relative;

    min-width: 0;

    padding: 34px 42px;

    box-sizing: border-box;
}


/* =========================================================
   PAGE GAUCHE
   ========================================================= */

.page-left
{
    padding-right: 55px;
}


/* =========================================================
   PAGE DROITE
   ========================================================= */

.page-right
{
    padding-left: 55px;
}


/* =========================================================
   TITRE
   ========================================================= */

.page-left h2
{
    position: relative;

    display: flex;

    align-items: center;

    margin: 0 0 32px 0;

    padding: 0;

    min-height: 64px;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-weight: normal;

    line-height: 1;
}


/* =========================================================
   LETTRINE
   ========================================================= */

.dropcap
{
    position: relative;

    display: inline-flex;

    width: 58px;
    height: 64px;

    flex-shrink: 0;

    align-items: center;
    justify-content: center;

    margin-right: 9px;

    box-sizing: border-box;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 52px;

    font-weight: bold;

    line-height: 1;

    color: #a86f32;

    background:
        linear-gradient(
            135deg,
            #f5ead0 0%,
            #dfc69a 100%
        );

    border: 2px solid #8a6338;

    box-shadow:
        inset 0 0 0 2px rgba(255,255,255,.45),
        2px 2px 0 rgba(67,43,23,.35);

    text-shadow:
        1px 1px 0 #fff4d8,
        2px 2px 0 rgba(60,35,15,.2);
}


/* petit détail typographique */

.dropcap::after
{
    content: "";

    position: absolute;

    left: 5px;
    right: 5px;
    bottom: 4px;

    height: 1px;

    background: #a86f32;

    opacity: .5;
}


/* =========================================================
   TEXTE DU TITRE
   ========================================================= */

.title-text
{
    display: inline-block;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: clamp(38px, 3.5vw, 54px);

    font-weight: bold;

    color: #263f55;

    white-space: nowrap;

    text-shadow:
        1px 1px 0 #fff8e8,
        2px 2px 0 rgba(0,0,0,.12);
}


/* =========================================================
   TRAIT SOUS LE TITRE
   ========================================================= */

.page-left h2::after
{
    content: "";

    position: absolute;

    left: 0;
    bottom: -14px;

    width: 72%;

    height: 2px;

    background:
        linear-gradient(
            to right,
            #a86f32 0%,
            #6c89a0 45%,
            transparent 100%
        );

    opacity: .65;
}


/* =========================================================
   PETIT ORNEMENT AU CENTRE DU TRAIT
   ========================================================= */

.page-left h2::before
{
    content: "◆";

    position: absolute;

    left: 34%;

    bottom: -20px;

    font-size: 8px;

    color: #6c89a0;

    background: #eee5d0;

    padding: 0 5px;

    z-index: 2;
}


/* =========================================================
   LISTE
   ========================================================= */

.charte-list
{
    margin: 38px 0 0 0;

    padding-left: 26px;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 20px;

    line-height: 1.55;

    color: #252525;
}


/* =========================================================
   ÉLÉMENTS DE LA LISTE
   ========================================================= */

.charte-list li
{
    margin-bottom: 20px;

    padding-left: 8px;
}


.charte-list li::marker
{
    color: #a86f32;

    font-size: .75em;
}


/* =========================================================
   MISE EN VALEUR
   ========================================================= */

.charte-list strong
{
    color: #263f55;
}


.charte-list em
{
    color: #8c5d2e;
}


/* =========================================================
   PAGE DROITE — FIGURE
   ========================================================= */

.lesson-figure
{
    width: 100%;

    margin: 28px 0 0 0;

    padding: 18px;

    box-sizing: border-box;

    background:
        #f5eedc;

    border: 1px solid #a9895c;

    box-shadow:
        0 2px 5px rgba(60,40,20,.18),
        inset 0 0 15px rgba(120,90,45,.08);
}


.lesson-figure img
{
    display: block;

    width: 100%;
    height: auto;

    max-width: 100%;
}


/* =========================================================
   LÉGENDE
   ========================================================= */

.lesson-figure figcaption
{
    margin-top: 10px;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 15px;

    font-style: italic;

    text-align: center;

    color: #536b7b;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1000px)
{
    .page
    {
        padding: 28px;
    }

    .page-left
    {
        padding-right: 42px;
    }

    .page-right
    {
        padding-left: 42px;
    }

    .charte-list
    {
        font-size: 18px;
    }
}


@media (max-width: 700px)
{
    .book-lesson-theory
    {
        grid-template-columns: 1fr;
    }

    .page-left,
    .page-right
    {
        padding: 25px;
    }

    .page-left h2
    {
        margin-bottom: 30px;
    }

    .title-text
    {
        font-size: 38px;
    }
}