/* Guide — inventaire des relevés bancaires */
.guide-inventory-overlay {
    right: auto;
    left: 18px;
    width: min(280px, calc(100% - 30px));
    padding: 17px 18px;
}

.guide-inventory-overlay > span {
    font-size: .6rem;
    font-weight: 800;
    text-transform: uppercase;
}

.guide-inventory-overlay ul {
    display: grid;
    margin: 15px 0 0;
    padding: 0;
    list-style: none;
    gap: 10px;
}

.guide-inventory-overlay li {
    display: flex;
    color: #294965;
    align-items: center;
    gap: 9px;
    font-size: .68rem;
    font-weight: 720;
}

.guide-inventory-overlay li svg {
    width: 17px;
    height: 17px;
    color: var(--blue);
    flex: 0 0 auto;
}

.guide-account-map {
    display: grid;
    margin-top: 22px;
    overflow: hidden;
    border: 1px solid var(--guide-line);
    border-radius: 13px;
    background: #fff;
    grid-template-columns: 1fr .78fr 1.35fr;
}

.guide-account-group {
    min-width: 0;
    padding: 18px;
}

.guide-account-group + .guide-account-group {
    border-left: 1px solid var(--guide-line);
}

.guide-account-group > header {
    display: flex;
    min-height: 48px;
    margin-bottom: 13px;
    align-items: center;
    gap: 10px;
}

.guide-account-group > header > span,
.guide-ownership article > span,
.guide-filing-flow article > span {
    display: grid;
    width: 36px;
    height: 36px;
    color: var(--guide-teal-dark);
    border-radius: 50%;
    background: var(--guide-teal-pale);
    flex: 0 0 auto;
    place-items: center;
}

.guide-account-group > header svg,
.guide-ownership article > span svg,
.guide-filing-flow article > span svg {
    width: 18px;
    height: 18px;
}

.guide-account-group h3,
.guide-account-group p {
    margin: 0;
}

.guide-account-group h3 {
    color: var(--guide-teal-dark);
    font-size: .69rem;
}

.guide-account-group p {
    margin-top: 2px;
    color: #7b8d9d;
    font-size: .56rem;
}

.guide-account-cards {
    display: grid;
    gap: 8px;
}

.guide-account-cards article {
    display: grid;
    min-height: 96px;
    padding: 12px;
    border: 1px solid #dce9ef;
    border-radius: 9px;
    background: #fbfdfe;
    align-content: start;
}

.guide-account-cards strong {
    color: #274760;
    font-size: .63rem;
}

.guide-account-cards small {
    margin-top: 5px;
    color: #71869a;
    font-size: .53rem;
    line-height: 1.45;
}

.guide-account-cards em {
    display: flex;
    margin-top: 8px;
    color: #198277;
    align-items: center;
    gap: 5px;
    font-size: .52rem;
    font-style: normal;
    font-weight: 780;
}

.guide-account-cards em::before {
    width: 6px;
    height: 6px;
    content: "";
    border-radius: 50%;
    background: #2eb39f;
}

.guide-account-cards em.is-closed {
    color: #bf5548;
}

.guide-account-cards em.is-closed::before {
    background: var(--guide-coral);
}

.guide-ownership {
    display: grid;
    margin-top: 21px;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.guide-ownership article {
    min-height: 194px;
    padding: 20px 18px;
    border: 1px solid #dce9ef;
    border-radius: 12px;
    background: #fbfefd;
}

.guide-ownership article.is-blue {
    border-color: #d9e6fb;
    background: #f7faff;
}

.guide-ownership article.is-coral {
    border-color: #f1d8d2;
    background: #fff9f7;
}

.guide-ownership article.is-blue > span {
    color: #3478ca;
    background: #eaf3ff;
}

.guide-ownership article.is-coral > span {
    color: #d86455;
    background: #fff0ec;
}

.guide-ownership h3 {
    margin: 14px 0 8px;
    color: #284862;
    font-size: .72rem;
}

.guide-ownership p {
    margin: 0;
    color: #687f92;
    font-size: .61rem;
    line-height: 1.55;
}

.guide-account-timeline {
    position: relative;
    margin-top: 22px;
    padding: 24px 20px 20px;
    overflow: hidden;
    border: 1px solid var(--guide-line);
    border-radius: 13px;
    background: #fcfeff;
}

.guide-account-timeline-years {
    display: grid;
    margin-left: 176px;
    padding-bottom: 8px;
    color: #789;
    border-bottom: 1px solid #dbe7ec;
    grid-template-columns: repeat(4, 1fr);
    font-size: .54rem;
    font-weight: 760;
    text-align: center;
}

.guide-account-events {
    position: relative;
    height: 53px;
    margin-left: 176px;
}

.guide-account-events > span {
    position: absolute;
    top: 9px;
    left: var(--event-position);
    display: grid;
    width: 88px;
    color: #267b7c;
    transform: translateX(-50%);
    font-size: .49rem;
    line-height: 1.25;
    text-align: center;
}

.guide-account-events > span::after {
    position: absolute;
    top: 34px;
    left: 50%;
    width: 1px;
    height: 188px;
    content: "";
    background: #cde3e5;
}

.guide-account-events > span:nth-child(n + 2) {
    color: #c65d4e;
}

.guide-account-events > span:nth-child(n + 2)::after {
    background: #f2cbc4;
}

.guide-account-events small {
    margin-top: 2px;
}

.guide-account-timeline-rows {
    position: relative;
    display: grid;
    gap: 11px;
}

.guide-account-timeline-row {
    display: grid;
    grid-template-columns: 165px 1fr;
    align-items: center;
    gap: 11px;
}

.guide-account-timeline-row > strong {
    display: flex;
    min-width: 0;
    color: #36536a;
    align-items: center;
    gap: 7px;
    font-size: .58rem;
}

.guide-account-timeline-row > strong svg {
    width: 15px;
    height: 15px;
    color: var(--guide-teal);
    flex: 0 0 auto;
}

.guide-account-track {
    position: relative;
    height: 19px;
    border: 1px solid #dde8ec;
    border-radius: 5px;
    background: #f4f8fa;
}

.guide-account-track > span {
    position: absolute;
    top: 3px;
    bottom: 3px;
    left: var(--bar-start);
    width: var(--bar-width);
    border-radius: 3px;
    background: #85d0ca;
}

.guide-account-track > span.is-blue {
    background: #8ab8ea;
}

.guide-account-track > span.is-orange {
    background: #edbd6d;
}

.guide-account-track > span.is-green {
    background: #9bcaa8;
}

.guide-account-track > span.is-violet {
    background: #b8a6da;
}

.guide-account-missing {
    position: absolute;
    z-index: 2;
    top: 3px;
    bottom: 3px;
    left: var(--missing-position);
    width: 7px;
    border: 2px solid #fff;
    border-radius: 2px;
    background: var(--guide-coral);
    transform: translateX(-50%);
}

.guide-account-timeline-note {
    display: flex;
    width: max-content;
    max-width: 100%;
    margin: 17px 0 0 auto !important;
    padding: 9px 12px;
    color: #b95246 !important;
    border-radius: 8px;
    background: var(--guide-coral-pale);
    align-items: center;
    gap: 7px;
    font-size: .58rem !important;
    font-weight: 720;
}

.guide-account-timeline-note svg {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
}

.guide-proof-format {
    display: grid;
    margin-top: 22px;
    grid-template-columns: minmax(0, 1.35fr) minmax(220px, .65fr);
    align-items: center;
    gap: 22px;
}

.guide-bank-statement {
    padding: 18px;
    border: 1px solid #cfdde4;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(31, 72, 101, .09);
}

.guide-bank-statement header {
    display: flex;
    padding-bottom: 10px;
    border-bottom: 2px solid #dbe9f3;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.guide-bank-statement header span {
    display: flex;
    color: #1e6897;
    align-items: center;
    gap: 7px;
    font-size: .62rem;
    font-weight: 780;
    text-transform: uppercase;
}

.guide-bank-statement header svg {
    width: 17px;
    height: 17px;
}

.guide-bank-statement header strong {
    color: #274760;
    font-size: .65rem;
}

.guide-bank-statement dl {
    display: grid;
    margin: 14px 0;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 18px;
}

.guide-bank-statement dl div {
    display: grid;
    grid-template-columns: 70px 1fr;
}

.guide-bank-statement dt,
.guide-bank-statement dd {
    margin: 0;
    font-size: .49rem;
}

.guide-bank-statement dt {
    color: #8293a1;
}

.guide-bank-statement dd {
    color: #2f4f67;
    font-weight: 720;
}

.guide-bank-statement table {
    width: 100%;
    border-collapse: collapse;
}

.guide-bank-statement th,
.guide-bank-statement td {
    padding: 6px 7px;
    color: #5d7487;
    border-bottom: 1px solid #e3ecf0;
    font-size: .46rem;
    text-align: right;
}

.guide-bank-statement th {
    color: #31536c;
    background: #f1f7fb;
}

.guide-bank-statement th:first-child,
.guide-bank-statement th:nth-child(2),
.guide-bank-statement td:first-child,
.guide-bank-statement td:nth-child(2) {
    text-align: left;
}

.guide-proof-checks {
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
    gap: 14px;
}

.guide-proof-checks li {
    display: flex;
    color: #506a7e;
    align-items: flex-start;
    gap: 9px;
    font-size: .63rem;
    line-height: 1.45;
}

.guide-proof-checks svg {
    width: 16px;
    height: 16px;
    margin-top: 1px;
    color: var(--guide-teal);
    flex: 0 0 auto;
}

.guide-filing-flow {
    display: grid;
    margin-top: 22px;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.guide-filing-flow article {
    position: relative;
    min-width: 0;
    padding: 17px 12px;
    text-align: center;
}

.guide-filing-flow article:not(:last-child)::after {
    position: absolute;
    top: 34px;
    right: -9px;
    content: "→";
    color: #9cb6c6;
    font-size: 1rem;
}

.guide-filing-flow article > span {
    margin: 0 auto;
}

.guide-filing-flow h3 {
    margin: 10px 0 4px;
    color: #2d4c64;
    font-size: .63rem;
}

.guide-filing-flow p {
    margin: 0;
    color: #71869a;
    font-size: .53rem;
    line-height: 1.45;
}

.guide-file-tree {
    display: grid;
    margin-top: 15px;
    padding: 18px 20px;
    border: 1px solid var(--guide-line);
    border-radius: 11px;
    background: #fbfdff;
    grid-template-columns: 1fr 230px;
    gap: 22px;
}

.guide-file-tree-folders {
    display: grid;
    gap: 8px;
}

.guide-file-tree-folders strong,
.guide-file-tree-folders span {
    display: flex;
    margin-left: calc(var(--tree-depth, 3) * 20px);
    color: #415f75;
    align-items: center;
    gap: 8px;
    font-size: .58rem;
}

.guide-file-tree-folders svg {
    width: 15px;
    height: 15px;
    color: #e9ad45;
}

.guide-file-tree-folders span {
    margin-left: 60px;
    color: #587188;
}

.guide-file-tree-folders span svg {
    color: #da6658;
}

.guide-file-tree aside {
    display: grid;
    padding: 14px;
    border: 1px solid #d8e5fb;
    border-radius: 9px;
    background: #f3f7ff;
    align-content: start;
}

.guide-file-tree aside span,
.guide-file-tree aside small {
    color: #70859a;
    font-size: .51rem;
}

.guide-file-tree aside strong {
    margin: 7px 0 13px;
    color: #2466af;
    font-size: .64rem;
}

.guide-inventory-summary {
    display: flex;
    width: max-content;
    max-width: 100%;
    margin: 18px 0 9px auto;
    overflow: hidden;
    border: 1px solid #d8e7ed;
    border-radius: 8px;
}

.guide-inventory-summary strong,
.guide-inventory-summary span {
    padding: 8px 12px;
    font-size: .57rem;
}

.guide-inventory-summary strong {
    color: #245075;
    background: #f3f8ff;
}

.guide-inventory-summary span {
    color: #b95a4d;
    background: var(--guide-coral-pale);
    font-weight: 780;
}

.guide-inventory-table {
    margin-top: 0;
}

.guide-inventory-table table {
    min-width: 680px;
}

.guide-inventory-table td span {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: .51rem;
    font-weight: 780;
    white-space: nowrap;
}

.guide-inventory-table .is-complete {
    color: #14766b;
    background: #e9f7f2;
}

.guide-inventory-table .is-missing {
    color: #b94f43;
    background: #fff0ed;
}

.guide-download-missing {
    display: flex;
    width: max-content;
    margin: 14px auto 0;
    padding: 9px 14px;
    color: #2568ad;
    border: 1px solid #bcd3ef;
    border-radius: 7px;
    align-items: center;
    gap: 8px;
    font-size: .58rem;
    font-weight: 780;
}

.guide-download-missing:hover {
    background: #f3f8ff;
}

.guide-download-missing svg {
    width: 14px;
    height: 14px;
}

@media (min-width: 861px) {
    .guide-statements-page .guide-main {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
        column-gap: 18px;
    }

    .guide-statements-page .guide-main > .guide-hero,
    .guide-statements-page .guide-main > .guide-answer,
    .guide-statements-page .guide-main > .guide-disclaimer,
    .guide-statements-page .guide-main > #inventaire,
    .guide-statements-page .guide-main > #retenir {
        grid-column: 1 / -1;
    }

    .guide-statements-page .guide-main > #titulaires,
    .guide-statements-page .guide-main > #chronologie,
    .guide-statements-page .guide-main > #format,
    .guide-statements-page .guide-main > #classement,
    .guide-statements-page .guide-main > #controle,
    .guide-statements-page .guide-main > #quiz {
        min-width: 0;
        padding-top: 30px;
    }

    .guide-statements-page .guide-main > #chronologie,
    .guide-statements-page .guide-main > #classement,
    .guide-statements-page .guide-main > #quiz {
        border-left: 1px solid var(--guide-line-soft);
        padding-left: 18px;
    }

    .guide-statements-page .guide-main > #titulaires,
    .guide-statements-page .guide-main > #format,
    .guide-statements-page .guide-main > #controle {
        padding-right: 18px;
    }

    .guide-statements-page .guide-ownership {
        gap: 7px;
    }

    .guide-statements-page .guide-ownership article {
        min-height: 220px;
        padding: 15px 11px;
    }

    .guide-statements-page .guide-ownership h3 {
        font-size: .64rem;
    }

    .guide-statements-page .guide-ownership p {
        font-size: .54rem;
    }

    .guide-statements-page .guide-account-timeline {
        padding: 17px 12px 13px;
    }

    .guide-statements-page .guide-account-timeline-years,
    .guide-statements-page .guide-account-events {
        margin-left: 111px;
    }

    .guide-statements-page .guide-account-timeline-row {
        grid-template-columns: 101px 1fr;
        gap: 7px;
    }

    .guide-statements-page .guide-account-timeline-row > strong {
        font-size: .48rem;
    }

    .guide-statements-page .guide-account-events > span {
        width: 64px;
        font-size: .42rem;
    }

    .guide-statements-page .guide-account-timeline-note {
        font-size: .49rem !important;
    }

    .guide-statements-page .guide-proof-format {
        grid-template-columns: minmax(0, 1.3fr) minmax(115px, .7fr);
        gap: 10px;
    }

    .guide-statements-page .guide-bank-statement {
        padding: 12px;
    }

    .guide-statements-page .guide-bank-statement dl {
        gap: 6px;
    }

    .guide-statements-page .guide-bank-statement dl div {
        grid-template-columns: 1fr;
    }

    .guide-statements-page .guide-proof-checks {
        gap: 8px;
    }

    .guide-statements-page .guide-proof-checks li {
        font-size: .52rem;
    }

    .guide-statements-page .guide-filing-flow {
        gap: 2px;
    }

    .guide-statements-page .guide-filing-flow article {
        padding: 14px 4px;
    }

    .guide-statements-page .guide-filing-flow article:not(:last-child)::after {
        right: -3px;
    }

    .guide-statements-page .guide-filing-flow p {
        font-size: .46rem;
    }

    .guide-statements-page .guide-file-tree {
        padding: 13px;
        grid-template-columns: minmax(0, 1fr) 155px;
        gap: 10px;
    }

    .guide-statements-page .guide-file-tree-folders strong,
    .guide-statements-page .guide-file-tree-folders span {
        font-size: .5rem;
    }

    .guide-statements-page .guide-file-tree aside {
        padding: 10px;
    }

    .guide-statements-page .guide-file-tree aside strong {
        overflow-wrap: anywhere;
        font-size: .54rem;
    }

    .guide-statements-page .guide-inventory-table table {
        min-width: 0;
        table-layout: fixed;
    }

    .guide-statements-page .guide-inventory-table th,
    .guide-statements-page .guide-inventory-table td {
        padding: 7px 5px;
        overflow-wrap: anywhere;
        font-size: .46rem;
    }

    .guide-statements-page .guide-inventory-table th:first-child {
        width: 23%;
    }

    .guide-statements-page .guide-inventory-table th:nth-child(3) {
        width: 20%;
    }

    .guide-statements-page .guide-inventory-table td span {
        padding: 3px 5px;
        font-size: .43rem;
        white-space: normal;
    }

    .guide-statements-page .guide-quiz-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }

    .guide-statements-page .guide-quiz {
        padding: 17px;
    }

    .guide-statements-page .guide-quiz form {
        grid-template-columns: 1fr;
    }

    .guide-statements-page .guide-quiz fieldset {
        grid-row: auto;
    }
}

@media (max-width: 860px) {
    .guide-statements-page .guide-main {
        display: block;
    }

    .guide-account-map {
        grid-template-columns: 1fr 1fr;
    }

    .guide-account-group:last-child {
        border-top: 1px solid var(--guide-line);
        border-left: 0;
        grid-column: 1 / -1;
    }

    .guide-account-group:last-child .guide-account-cards {
        grid-template-columns: repeat(3, 1fr);
    }

    .guide-account-timeline-years,
    .guide-account-events {
        margin-left: 151px;
    }

    .guide-account-timeline-row {
        grid-template-columns: 140px 1fr;
    }
}

@media (max-width: 620px) {
    .guide-inventory-overlay {
        right: auto;
        left: 10px;
        width: min(240px, calc(100% - 20px));
    }

    .guide-account-map,
    .guide-ownership,
    .guide-proof-format,
    .guide-file-tree {
        grid-template-columns: 1fr;
    }

    .guide-account-group + .guide-account-group,
    .guide-account-group:last-child {
        border-top: 1px solid var(--guide-line);
        border-left: 0;
    }

    .guide-account-group:last-child {
        grid-column: auto;
    }

    .guide-account-group:last-child .guide-account-cards {
        grid-template-columns: 1fr;
    }

    .guide-account-timeline {
        padding: 18px 14px;
        overflow-x: auto;
    }

    .guide-account-timeline-years,
    .guide-account-events,
    .guide-account-timeline-rows {
        min-width: 650px;
    }

    .guide-account-timeline-years,
    .guide-account-events {
        margin-left: 145px;
    }

    .guide-account-timeline-row {
        grid-template-columns: 134px 1fr;
    }

    .guide-proof-format {
        align-items: stretch;
    }

    .guide-bank-statement {
        overflow-x: auto;
    }

    .guide-bank-statement table {
        min-width: 430px;
    }

    .guide-filing-flow {
        grid-template-columns: 1fr 1fr;
    }

    .guide-filing-flow article:nth-child(2)::after {
        content: "";
    }

    .guide-file-tree aside {
        grid-row: 1;
    }
}

