﻿/* FichesPourApprendre.fr — complément à Bootstrap 3.4.0
   Charger après Bootstrap. Tous les styles sont limités à .fiche-revision. */
.fiche-revision {
    --fr-ink: #292733;
    --fr-muted: #625e70;
    --fr-violet: #593ba0;
    --fr-light: #EDE9FE;
    --fr-border: #dcd5ec;
    --fr-white: #fff;
    color: #292733;
    color: var(--fr-ink);
    background: #fff;
    font-size: 16px;
    line-height: 1.7;
    overflow-wrap: break-word;
    max-width: 1000px;
    margin: 0 auto;
    padding: 24px 15px;
}

    .fiche-revision * {
        box-sizing: border-box;
    }

    .fiche-revision h1, .fiche-revision h2, .fiche-revision h3, .fiche-revision h4 {
        color: #292733;
        font-weight: 700;
        line-height: 1.25;
    }

    .fiche-revision h1 {
        font-size: 34px;
        margin: 12px 0;
    }

    .fiche-revision h2 {
        font-size: 25px;
        margin: 0 0 18px;
        padding-bottom: 10px;
        border-bottom: 2px solid #EDE9FE;
    }

    .fiche-revision h3 {
        font-size: 20px;
        margin: 22px 0 10px;
    }

    .fiche-revision h4 {
        font-size: 17px;
        margin: 12px 0 8px;
    }

    .fiche-revision p {
        margin: 0 0 12px;
    }

    .fiche-revision ul, .fiche-revision ol {
        padding-left: 24px;
        margin-bottom: 15px;
    }

    .fiche-revision li {
        margin-bottom: 5px;
    }

    .fiche-revision a {
        color: #593ba0;
        text-decoration: underline;
    }

        .fiche-revision a:focus, .fiche-revision summary:focus {
            outline: 2px solid #593ba0;
            outline-offset: 3px;
        }

    .fiche-revision .fr-header {
        padding: 26px;
        background: #EDE9FE;
        border-radius: 12px;
        margin-bottom: 24px;
    }

    .fiche-revision .fr-kicker {
        color: #593ba0;
        font-size: 13px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .fiche-revision .fr-intro {
        font-size: 18px;
        color: #514a61;
    }

    .fiche-revision .fr-tag {
        display: inline-block;
        padding: 3px 10px;
        border: 1px solid #c9b9e6;
        border-radius: 20px;
        font-size: 13px;
        margin: 3px 5px 3px 0;
        background: #fff;
    }

    .fiche-revision .fr-section {
        margin: 34px 0;
        scroll-margin-top: 85px;
    }

    .fiche-revision .fr-toc {
        padding: 18px 22px;
        border: 1px solid #dcd5ec;
        border-radius: 10px;
        margin-bottom: 28px;
    }

        .fiche-revision .fr-toc ol {
            margin-bottom: 0;
            columns: 2;
            column-gap: 30px;
        }

        .fiche-revision .fr-toc li {
            break-inside: avoid;
        }

    .fiche-revision .fr-box {
        padding: 18px 20px;
        margin: 16px 0;
        border: 1px solid #dcd5ec;
        border-left: 4px solid #8b70ce;
        border-radius: 8px;
        background: #faf9fd;
    }

        .fiche-revision .fr-box > :last-child, .fiche-revision .fr-card > :last-child {
            margin-bottom: 0;
        }

    .fiche-revision .fr-box-title {
        display: block;
        font-weight: 700;
        color: #593ba0;
        margin-bottom: 8px;
    }

    .fiche-revision .fr-definition, .fiche-revision .fr-essential {
        background: #EDE9FE;
    }

    .fiche-revision .fr-warning {
        background: #fff8eb;
        border-color: #e8c98e;
        border-left-color: #9c610e;
    }

        .fiche-revision .fr-warning .fr-box-title {
            color: #794a08;
        }

    .fiche-revision .fr-success {
        background: #f0f8f2;
        border-color: #c5dfcc;
        border-left-color: #34794a;
    }

        .fiche-revision .fr-success .fr-box-title {
            color: #28603a;
        }

    .fiche-revision .fr-key {
        font-weight: 700;
        color: #593ba0;
        background: #EDE9FE;
        padding: 1px 4px;
        border-radius: 3px;
    }

    .fiche-revision .fr-formula {
        text-align: center;
        padding: 17px 12px;
        font-size: 23px;
        font-weight: 700;
        color: #593ba0;
        background: #EDE9FE;
        border-radius: 8px;
        margin: 15px 0;
        overflow-x: auto;
    }

    .fiche-revision .fr-formula-inline {
        color: #593ba0;
        font-weight: 700;
    }

    .fiche-revision .fr-card {
        padding: 18px;
        border: 1px solid #dcd5ec;
        border-radius: 8px;
        background: #fff;
        margin-bottom: 16px;
    }

        .fiche-revision .fr-card h3 {
            margin-top: 0;
        }

    .fiche-revision .fr-figure {
        margin: 20px 0;
        padding: 18px;
        border: 1px solid #dcd5ec;
        border-radius: 10px;
        text-align: center;
    }

        .fiche-revision .fr-figure img, .fiche-revision .fr-figure svg {
            max-width: 100%;
            height: auto;
            display: block;
            margin: 0 auto;
        }

    .fiche-revision figcaption, .fiche-revision .fr-caption {
        color: #625e70;
        font-size: 14px;
        margin-top: 12px;
    }

    .fiche-revision .fr-table-wrap {
        overflow-x: auto;
        margin: 16px 0;
    }

    .fiche-revision .fr-table {
        margin-bottom: 0;
        width: 100%;
        background: #fff;
    }

        .fiche-revision .fr-table caption {
            color: #625e70;
            font-size: 14px;
            text-align: left;
        }

        .fiche-revision .fr-table > thead > tr > th {
            background: #EDE9FE;
            color: #292733;
            border-bottom: 2px solid #dcd5ec;
        }

        .fiche-revision .fr-table > tbody > tr > td, .fiche-revision .fr-table > tbody > tr > th, .fiche-revision .fr-table > thead > tr > th {
            padding: 12px;
            vertical-align: top;
        }

    .fiche-revision .fr-steps {
        list-style: none;
        counter-reset: fr-step;
        padding: 0;
    }

        .fiche-revision .fr-steps > li {
            position: relative;
            padding: 9px 0 15px 46px;
            counter-increment: fr-step;
        }

            .fiche-revision .fr-steps > li::before {
                content: counter(fr-step);
                position: absolute;
                left: 0;
                top: 8px;
                width: 30px;
                height: 30px;
                line-height: 30px;
                text-align: center;
                background: #EDE9FE;
                color: #593ba0;
                border-radius: 50%;
                font-weight: 700;
            }

    .fiche-revision .fr-timeline {
        list-style: none;
        padding: 0 0 0 22px;
        margin-left: 9px;
        border-left: 2px solid #c9b9e6;
    }

        .fiche-revision .fr-timeline > li {
            position: relative;
            padding: 0 0 18px 7px;
        }

            .fiche-revision .fr-timeline > li::before {
                content: '';
                position: absolute;
                left: -29px;
                top: 8px;
                width: 12px;
                height: 12px;
                border-radius: 50%;
                background: #8b70ce;
                border: 2px solid #fff;
            }

    .fiche-revision .fr-date {
        display: block;
        font-weight: 700;
        color: #593ba0;
    }

    .fiche-revision .fr-glossary dt {
        color: #593ba0;
        margin-top: 12px;
    }

    .fiche-revision .fr-glossary dd {
        margin: 4px 0 12px;
    }

    .fiche-revision .fr-map {
        text-align: center;
    }

    .fiche-revision .fr-map-root {
        display: inline-block;
        padding: 12px 24px;
        background: #EDE9FE;
        border: 1px solid #c9b9e6;
        border-radius: 10px;
        font-weight: 700;
        margin-bottom: 20px;
    }

    .fiche-revision .fr-map .fr-card {
        text-align: left;
    }

    .fiche-revision .fr-exercise {
        border: 1px solid #dcd5ec;
        border-radius: 8px;
        padding: 18px;
        margin: 16px 0;
    }

        .fiche-revision .fr-exercise h3 {
            margin-top: 0;
        }

    .fiche-revision .fr-correction {
        border-top: 1px solid #dcd5ec;
        padding-top: 12px;
        margin-top: 15px;
    }

        .fiche-revision .fr-correction summary {
            cursor: pointer;
            color: #593ba0;
            font-weight: 700;
        }

    .fiche-revision .fr-correction-body {
        padding-top: 12px;
    }

    .fiche-revision .fr-quote {
        border-left: 4px solid #c9b9e6;
        padding: 10px 18px;
        font-size: 17px;
        background: #faf9fd;
    }

    .fiche-revision .fr-checklist {
        list-style: none;
        padding-left: 0;
    }

        .fiche-revision .fr-checklist > li {
            padding-left: 26px;
            position: relative;
        }

            .fiche-revision .fr-checklist > li::before {
                content: '✓';
                position: absolute;
                left: 0;
                color: #593ba0;
                font-weight: 700;
            }

    .fiche-revision .fr-sources, .fiche-revision .fr-footer {
        font-size: 14px;
        color: #625e70;
    }

    .fiche-revision .fr-footer {
        text-align: center;
        padding-top: 18px;
        border-top: 1px solid #dcd5ec;
        margin-top: 30px;
    }

    .fiche-revision .fr-download {
        background: #593ba0;
        color: #fff;
        border: 1px solid #593ba0;
        text-decoration: none;
        white-space: normal;
    }

        .fiche-revision .fr-download:hover, .fiche-revision .fr-download:focus {
            background: #452b82;
            color: #fff;
        }

@media (max-width: 767px) {
    .fiche-revision {
        font-size: 15px;
        padding: 15px 10px;
    }

        .fiche-revision h1 {
            font-size: 28px;
        }

        .fiche-revision h2 {
            font-size: 22px;
        }

        .fiche-revision .fr-header, .fiche-revision .fr-box, .fiche-revision .fr-card {
            padding: 15px;
        }

        .fiche-revision .fr-toc ol {
            columns: 1;
        }

        .fiche-revision .fr-formula {
            font-size: 20px;
        }
}

@media print {
    .fiche-revision {
        max-width: none;
        width: 100%;
        padding: 0;
        font-size: 11pt;
        line-height: 1.45;
        color: #292733;
    }

        .fiche-revision .fr-no-print, .fiche-revision .fr-toc {
            display: none !important;
        }

        .fiche-revision .fr-header, .fiche-revision .fr-box, .fiche-revision .fr-table th {
            -webkit-print-color-adjust: exact;
            print-color-adjust: exact;
        }

        .fiche-revision h1, .fiche-revision h2, .fiche-revision h3 {
            break-after: avoid;
            page-break-after: avoid;
        }

        .fiche-revision .fr-figure, .fiche-revision .fr-box, .fiche-revision .fr-card, .fiche-revision .fr-exercise, .fiche-revision tr {
            break-inside: avoid;
            page-break-inside: avoid;
        }

        .fiche-revision .fr-section {
            margin: 20px 0;
        }

        .fiche-revision .fr-table-wrap {
            overflow: visible;
        }

        .fiche-revision a[href]::after {
            content: none !important;
        }

        .fiche-revision .fr-correction summary {
            display: none;
        }

        .fiche-revision .fr-correction > .fr-correction-body {
            display: block !important;
            content-visibility: visible !important;
        }
}
