/**
 * Different looms presenting how the functionality works.
 *
 * This loom focuses on a more functional approach:
 * https://www.loom.com/share/1f2b21823df84d0c9acea43462e86a53
 *
 * This one explains in details how the display settings works, the different logics behind it and how the CSS classes
 * declared in this file are applied:
 * https://www.loom.com/share/051dc17ba0df447783a9cc70fc81b6dc
 *
 * And this one is about the audio transcription module and Polly's implementation:
 * https://www.loom.com/share/492168ece6ae433996173a587f9bb11b
 *
 */

.btdysmobil {
    width: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    appearance: none;
    background: transparent;
    border: none;
    padding: 0;
}

.right-menu-bar .right1 .dropdown-dys.dropdown-menu-block {
    max-height: 300px;
    overflow: hidden scroll;
}

.dys .block-config-dys {
    margin: 10px 0;
    padding: 0 0 10px;
}

.dys .bt-project {
    font-size: 13px !important;
    padding: 10px 18px !important;
    width: 100%;
    margin: 5px 0;
    min-height: 50px;
}

.dys .block-config-dys .bt-project {
    border-radius: 25px;
    margin: 0;
}

.dys .block-config-dys .dys-ligne {
    display: flex;
    flex-wrap: wrap;
    margin: 10px 0 0;
    padding: 0 15px;
}

.dys .block-config-dys .dys-ligne .col-dys {
    text-align: left;
    display: block;
    padding-bottom: 10px;
    font-weight: bold;
}

.dys .block-config-dys .dys-ligne .dys-radio {
    flex: 1 0 100%;
}

.dys .block-config-dys .dys-ligne .col-dys2 .dys-radio label {
    hyphens: auto;
    color: rgb(255 255 255 / 80%);
    margin: 0 0 0 5px;
}

.dys .block-config-dys .dys-ligne2 {
    margin: 10px 0;
    padding: 0 10px;
    font-size: 13px;
    line-height: 18px;
    text-align: left;
}

.dys .block-config-dys .dys-ligne2 .select2-container {
    max-width: 180px;
}

.dys-font-family-open > *,
.dys-font-family-open {
    font-family: 'Open Sans', sans-serif;
}

.dys-font-family-short > *,
.dys-font-family-short {
    font-family: short-dys, serif;
}

.dys-font-family-comic-sans-ms > *,
.dys-font-family-comic-sans-ms {
    font-family: 'Comic Sans MS', serif;
}

.dys-font-size-force-xs > *,
.dys-font-size-force-xs {
    font-size: 16px !important;
}

.dys-font-size-force-sm > *,
.dys-font-size-force-sm {
    font-size: 17px !important;
}

.dys-font-size-force-md > *,
.dys-font-size-force-md {
    font-size: 18px !important;
}

.dys-font-size-force-lg > *,
.dys-font-size-force-lg {
    font-size: 20px !important;
}

.dys-line-height-force-sm > *,
.dys-line-height-force-sm {
    line-height: 30px !important;
}

.dys-line-height-force-md > *,
.dys-line-height-force-md {
    line-height: 34px !important;
}

.dys-line-height-force-lg > *,
.dys-line-height-force-lg {
    line-height: 40px !important;
}

.dys-letter-spacing-sm > *,
.dys-letter-spacing-sm {
    letter-spacing: normal !important;
}

.dys-letter-spacing-lg > *,
.dys-letter-spacing-lg {
    letter-spacing: 1px !important;
}

.dys-word-spacing-sm > *,
.dys-word-spacing-sm {
    word-spacing: normal !important;
}

.dys-word-spacing-lg > *,
.dys-word-spacing-lg {
    word-spacing: 5px !important;
}

.dys-background-color-white,
.dys-background-color-white > * {
    background: unset;
    color: #424242;
}

.dys-background-color-blue,
.dys-background-color-blue > * {
    background: #d7e3ee;
    color: #424242;
    padding: 10px;
}

.dys-background-color-grey,
.dys-background-color-grey > * {
    background: #f3f3f3;
    color: #424242;
    padding: 10px;
}

.dys-background-color-yellow,
.dys-background-color-yellow > * {
    background: #fff597;
    color: #0268a3;
    padding: 10px;
}

#modaldys h5 {
    font: 20px/22px 'Cantata One', serif;
}

#modaldys .modal-body {
    padding: 1.5rem;
    font-size: 14px;
}

#modaldys .modal-header {
    padding: 1.5rem;
}

#modaldys label {
    display: block;
    cursor: pointer;
    line-height: 2;
    font-size: 14px;
    margin: 0;
}

#modaldys [type='radio'] {
    clip-path: rect(0 0 0 0);
    position: absolute;
}

#modaldys [type='radio'] + span {
    display: block;
}

#modaldys [type='radio']:checked + span::before {
    box-shadow: 0 0 0 2px #f3ece4;
    background: #424242;
}

#modaldys [type='radio'] + span::before {
    content: '';
    width: 14px;
    height: 14px;
    border-radius: 14px;
    display: inline-block;
    border: 3px solid #fff;
    transition: 0.5s ease all;
    vertical-align: -2px;
    box-shadow: 0 0 0 2px #f3ece4;
    margin-right: 10px;
}

#modaldys .dys-ligne {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#modaldys .dys-ligne .dys-d {
    flex-basis: 110px;
    min-height: 90px;
}

#modaldys .dys-ligne-box {
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #f1e9e0;
}

#modaldys .dys-ligne-box:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
}

#modaldys .block-config-dys .dys-ligne .dys-d span {
    width: 110px;
    height: 90px;
    background: url(/build/images/bg-dys-en.5293cab6.png) no-repeat center top;
    display: block;
}

#modaldys .block-config-dys.fr .dys-ligne .dys-d span {
    background: url(/build/images/bg-dys-fr.6e67f936.png) no-repeat center top;
}

#modaldys .block-config-dys .dys-font-family .dys-ligne .dys-d span {
    background-position: 0 -757px;
}

#modaldys .block-config-dys .dys-line-height .dys-ligne .dys-d span {
    background-position: 0 -232px;
}

#modaldys .block-config-dys .dys-letter-spacing .dys-ligne .dys-d span {
    background-position: 0 -120px;
}

#modaldys .block-config-dys .dys-word-spacing .dys-ligne .dys-d span {
    background-position: 0 -347px;
}

#modaldys .block-config-dys .dys-background-colo .dys-ligne .dys-d span {
    background-position: 0 -474px;
    height: 182px;
}

.reading-site.oeuvre.modal-open .modal-backdrop.show {
    opacity: 0.2;
}

.reading-site.oeuvre.modal-open #modaldys .modal-dialog {
    float: right;
}

@media (max-width: 991.8px) {
    #modaldys .modal-content {
        height: 50vh;
        overflow-y: scroll;
    }

    .dys .block-config-dys .dys-ligne {
        padding: 0;
    }

    .reading-site.oeuvre.modal-open #modaldys .modal-dialog {
        float: none;
    }
}

.right-menu-bar::after {
    top: 90px;
}

footer.principal {
    border-top: 1px solid #f1e9e0;
}

footer.principal .info-legales {
    padding: 5px;
    background-color: #fff;
}

footer.principal .info-legales a {
    font-size: 13px;
    font-weight: 400;
}

footer.principal .info-legales a::after {
    font-size: 12px;
    content: '-';
    padding-right: 3px;
}

footer.principal .info-legales a:last-child::after {
    content: '';
}

/* Header logo */
.logo-content {
    display: flex;
    justify-content: center;
    align-items: stretch;
    padding: 18px;
    text-align: center;
    position: relative;
}

.logo-content .logo {
    margin: 0;
    max-height: 100px;
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 0;
}

.logo-content .logo img {
    max-height: 65px;
    height: auto;
}

.logo-content .bloc-nom {
    display: block;
    margin: -10px 0 -6px;
    font-size: 16px;
    line-height: 18px;
}

.logo-content .bloc-nom span {
    color: #424242;
    font: 500 11px/12px 'Cantata One', serif;
    text-transform: uppercase;
    letter-spacing: 3px;
    padding: 6px 16px;
    background: #f1e9e0;
    position: relative;
    z-index: 10;
}

.logo-content .external-logo {
    margin-left: 18px;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    border-left: 1px solid #b9d0ed;
    justify-content: center;
    padding: 0 0 0 15px;
    max-width: 150px;
}

.logo-content .external-logo .text-with {
    font-size: 12px;
    padding: 0 0 2px;
    display: block;
}

@media (max-width: 991.8px) {
    .logo-content .logo img {
        max-height: 65px;
    }

    .logo-content .bloc-nom {
        position: absolute;
        bottom: -5px;
        left: 1%;
        right: 1%;
    }

    .logo-content .bloc-nom span {
        font: 500 8px/12px 'Cantata One',
        serif;
        letter-spacing: 2px;
        padding: 5px 13px;
        z-index: 1050;
    }

    .general-mobil {
        background-color: #fff;
        font: 400 15px/20px 'Cantata One',
        serif;
        padding: 10px;
    }

    .general-mobil .menu-project {
        border-top: 1px solid #f1e9e0;
        border-bottom: 1px solid #f1e9e0;
        padding: 10px 15px;
    }
}

@media (max-width: 440px) {
    .logo-content .external-logo .text-with {
        font-size: 10px;
    }
}

/***********  qestionnaire sur oeuvre  ************/

.quizz-content {
    padding: 50px;
    background: url(/build/images/bg-quizz.d42c7c09.gif) repeat-y center top;
    background-size: contain;
    display: flex;
    justify-content: center;
    margin: 30px -50px -40px;
}

.reading-site.projects.project .quizz-alldone {
    margin: 20px 0;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: url(/build/images/bg-quizz-alldone.54dda73a.gif) no-repeat center center;
    max-width: 500px;
    width: 100%;
    min-height: 145px;
    overflow: hidden;
    box-shadow: 0 10px 50px 0 rgb(0 0 0 / 20%);
}

.reading-site.projects.project .quizz-alldone h2 {
    font-size: 26px;
    line-height: 38px;
    background: #fff;
    padding: 5px;
    max-width: 320px;
    margin: 0;
}

.quizz {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 60px 0 rgb(0 0 0 / 30%);
    border: 1px solid #e6d7c8;
    max-width: 720px;
    width: 100%;
    padding: 20px 0 0;
    margin-bottom: 80px;
    margin-top: 30px;
}

.quizz .titre {
    text-align: center;
    margin-top: -28px;
}

.quizz .reading-sheet-question {
    padding: 40px 30px;
    border-bottom: 1px solid #e6d7c8;
}

.quizz .question {
    display: flex;
    justify-content: center;
    align-items: center;
    font: 22px/28px 'Cantata One', serif;
    margin-bottom: 20px;
}

.quizz .question .nb {
    font: 40px/40px 'Cantata One', serif;
    color: #e4d5c5;
    border-right: 1px solid #e6d7c8;
    padding: 5px 10px 5px 0;
    margin-right: 10px;
}

.quizz .question .qu label {
    margin: 0;
}

.quizz .qu-choix,
.quizz .reading-pleasure {
    justify-content: center;
    display: flex;
    flex-wrap: wrap;
}

.quizz .qu-choix .btn-check:checked + .btn,
.quizz .qu-choix .btn.active,
.btn.show,
.quizz .qu-choix .btn:first-child:active,
.quizz .qu-choix :not(.btn-check) + .btn:active {
    color: #f78c26;
    background-color: #fff !important;
    border-color: #f78c26;
    box-shadow: 0 3px 20px 0 rgb(0 0 0 / 15%);
}

.quizz .qu-choix .btn-light {
    --bs-btn-color: #424242;
    --bs-btn-bg: #f1eae2;
    --bs-btn-border-color: transparent;
}

.quizz .qu-choix .btn {
    border-radius: 200px;
    margin: 0 3px 8px;
    font-size: 16px;
    padding: 14px 28px;
    min-width: 100px;
}

/** colored choice **/
.quizz .qu-choix .btn-check:checked + .btn.bad-choice,
.quizz .qu-choix .btn-check:checked + .btn.good-choice,
.quizz .qu-choix .btn-check + .btn.good-choice {
    background-color: #fff;
    position: relative;
    padding-left: 48px;
    box-shadow: none;
}

/** ticked choice **/
.quizz .qu-choix .btn-check:checked + .btn.bad-choice::after,
.quizz .qu-choix .btn-check:checked + .btn.good-choice::after {
    font-family: short-font !important;
    content: '\e955';
    position: absolute;
    left: 23px;
}

/** user's bad answer **/
.quizz .qu-choix .btn-check:checked + .btn.bad-choice {
    border-color: #f00;
    color: #f00;
}

/** user's good answer **/
.quizz .qu-choix .btn-check:checked + .btn.good-choice,
.quizz .qu-choix .btn-check + .btn.good-choice {
    border-color: #5ab266;
    color: #5ab266;
}

.quizz .qu-choix .btn-check:checked + .btn.good-choice::after {
    content: '\e97b';
}

/** question's good answer (no tick) **/
.quizz .qu-choix .btn-check + .btn.good-choice {
    padding-left: 28px;
}

/* free answer */
.quizz .qu-choix textarea {
    border-radius: 10px;
    background: #f1eae2;
    color: #424242;
    border: 1px solid #e6d7c8;
    margin: 0 40px;
    padding: 15px;
}

.quizz .qu-choix textarea:focus,
.quizz .qu-choix textarea.filled {
    color: #f78c26;
    background-color: #fff !important;
    border-color: #f78c26;
    box-shadow: 0 3px 20px 0 rgb(0 0 0 / 15%);
}

.quizz .quizz-fin {
    background: #f1eae2;
    padding: 40px 30px;
    justify-content: center;
    display: flex;
    min-height: 150px;
    align-items: center;
    flex-direction: column;
}

.quizz .quizz-fin h2 {
    font-size: 24px;
}

.quizz .quizz-fin p {
    font: 16px/24px 'Open Sans', sans-serif;
    text-align: left;
}

/** plaisir de lecture **/
.quizz .reading-sheet-question .reading-pleasure {
    padding-top: 20px;
}

.quizz .reading-sheet-question .reading-pleasure label.btn {
    border-radius: 200px;
    width: 85px;
    height: 85px;
    text-indent: -99999em;
    margin: 0 5px 8px;
    padding: 0;
    min-width: 0;
    background: url(/build/images/note.653f9875.png) no-repeat center left;
    transition: all 0.2s;
    position: relative;
    top: 0;
    -webkit-print-color-adjust: exact !important; /* Chrome, Safari 6 – 15.3, Edge */
    color-adjust: exact !important; /* Firefox 48 – 96 */
    print-color-adjust: exact !important;
}

.quizz .reading-pleasure .btn-check:checked + label.btn::after,
.quizz .reading-pleasure label.btn.good-choice::after {
    content: '';
    display: inline-block;
    height: 0;
    width: 0;
    border-right: 12px solid transparent;
    border-bottom: 10px solid #e84256;
    border-left: 12px solid transparent;
    position: absolute;
    left: 30px;
    bottom: -20px;
}

.quizz .reading-pleasure .btn-check:checked + label.btn,
.quizz .reading-pleasure label.btn.good-choice {
    background-color: transparent !important;
    border-color: transparent !important;
    box-shadow: 0 5px 20px 0 rgb(0 0 0 / 20%) !important;
    top: -10px !important;
}

.quizz .reading-sheet-question .reading-pleasure label.btn.reading2 {
    background-position: -102px center;
}

.quizz .reading-sheet-question .reading-pleasure .btn-check + .btn + .btn-check:checked + label.btn::after {
    border-bottom: 10px solid #ec8132;
}

.quizz .reading-sheet-question .reading-pleasure .btn-check + .btn + .btn-check + .btn + .btn-check + .btn {
    background-position: -204px center;
}

.quizz .reading-sheet-question .reading-pleasure .btn-check + .btn + .btn-check + .btn + .btn-check:checked + .btn::after {
    border-bottom: 10px solid #eac23e;
}

.quizz .reading-sheet-question .reading-pleasure .btn-check + .btn + .btn-check + .btn + .btn-check + .btn + .btn-check + .btn {
    background-position: -305px center;
}

.quizz .reading-sheet-question .reading-pleasure .btn-check + .btn + .btn-check + .btn + .btn-check + .btn + .btn-check:checked + .btn::after {
    border-bottom: 10px solid #c3d21b;
}

.quizz .reading-sheet-question .reading-pleasure .btn-check + .btn + .btn-check + .btn + .btn-check + .btn + .btn-check + .btn + .btn-check + .btn {
    background-position: -405px center;
}

.quizz .reading-sheet-question .reading-pleasure .btn-check + .btn + .btn-check + .btn + .btn-check + .btn + .btn-check + .btn + .btn-check:checked + .btn::after {
    border-bottom: 10px solid #13a538;
}

.quizz .reading-sheet-question .reading-pleasure .btn:hover {
    top: -10px;
}

@media (max-width: 991.8px) {
    .quizz {
        padding-top: 0;
        border-radius: 15px;
    }

    .quizz .question {
        font: 20px/26px 'Cantata One',
        serif;
    }
}

@media (max-width: 767.8px) {
    .quizz .qu-choix textarea {
        margin: 0 10px;
    }

    .reading-site.projects .quizz-content {
        margin: 0;
    }
}

