/* ==========================================================
   MES PRÊTS
========================================================== */


/* ----------------------------------------------------------
   CONTENEUR PRINCIPAL
---------------------------------------------------------- */

.b612-account--loans {
    width: 100%;
}


/* ----------------------------------------------------------
   LISTE DES PRÊTS
---------------------------------------------------------- */

.b612-account__loans {
    display: flex;
    flex-direction: column;
    gap: 24px;
}


/* ----------------------------------------------------------
   CARTE D'UN PRÊT
---------------------------------------------------------- */

.b612-account__loan {

    display: grid;

    grid-template-columns:
        150px
        minmax(0, 1fr)
        320px;

    gap: 40px;

    align-items: center;

    width: 100%;

    box-sizing: border-box;

    padding: 28px 32px;

    background: #ffffff;

    border: 1px solid #e2e7ed;

    border-radius: 14px;

    box-shadow:
        0 8px 24px rgba(7, 28, 56, 0.05);
}


/* ----------------------------------------------------------
   COUVERTURE
---------------------------------------------------------- */

.b612-account__loan-cover {

    width: 150px;
    height: 210px;

    overflow: hidden;

    border-radius: 6px;

    background: #f1f3f6;
}


.b612-account__loan-cover img {

    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* ----------------------------------------------------------
   ABSENCE DE COUVERTURE
---------------------------------------------------------- */

.b612-account__loan-cover-empty {

    display: flex;

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

    width: 100%;
    height: 100%;

    padding: 15px;

    box-sizing: border-box;

    text-align: center;

    font-family:
        "Inter",
        sans-serif;

    font-size: 12px;

    line-height: 1.4;

    color: #68758a;

    background: #f1f3f6;
}

/* ----------------------------------------------------------
   INFORMATIONS DU DOCUMENT
---------------------------------------------------------- */

.b612-account__loan-main {

    min-width: 0;
}


.b612-account__loan-type {

    display: block;

    margin-bottom: 8px;

    font-family: "Inter", sans-serif;

    font-size: 11px;

    font-weight: 600;

    letter-spacing: 0.12em;

    text-transform: uppercase;

    color: #68758a;
}


.b612-account__loan-title {

    margin: 0 0 8px;

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

    font-size: 30px;

    line-height: 1.2;

    font-weight: 500;

    color: #071c38;
}


.b612-account__loan-author {

    margin: 0 0 20px;

    font-family: "Inter", sans-serif;

    font-size: 14px;

    color: #68758a;
}


.b612-account__loan-summary {

    margin: 0 0 20px;

    max-width: 620px;

    font-family: "Inter", sans-serif;

    font-size: 14px;

    line-height: 1.6;

    color: #68758a;
}


/* ----------------------------------------------------------
   LIEN VERS LA NOTICE
---------------------------------------------------------- */

.b612-account__loan-link {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    font-family: "Inter", sans-serif;

    font-size: 13px;

    font-weight: 600;

    color: #071c38;

    text-decoration: none;
}


.b612-account__loan-link span {

    font-size: 18px;

    line-height: 1;

    transition:
        transform 0.2s ease;
}


.b612-account__loan-link:hover span {

    transform: translateX(4px);
}


/* ----------------------------------------------------------
   INFORMATIONS DU PRÊT
---------------------------------------------------------- */

.b612-account__loan-dates {

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 22px;

    align-items: start;

    padding-left: 32px;

    border-left:
        1px solid #e2e7ed;
}


.b612-account__loan-date {

    min-width: 0;
}


.b612-account__loan-date
.b612-account__label {

    display: block;

    margin-bottom: 8px;
}


.b612-account__loan-date
.b612-account__value {

    display: block;

    font-family: "Inter", sans-serif;

    font-size: 15px;

    font-weight: 600;

    color: #071c38;
}


/* ----------------------------------------------------------
   STATUT
---------------------------------------------------------- */

.b612-account__loan-status {

    grid-column: 1 / -1;

    display: flex;

    align-items: center;

    gap: 9px;

    min-height: 40px;

    padding: 0 15px;

    box-sizing: border-box;

    border-radius: 20px;

    background: #eaf8ef;

    font-family: "Inter", sans-serif;

    font-size: 13px;

    font-weight: 600;

    color: #238449;
}


.b612-account__loan-status-dot {

    width: 8px;
    height: 8px;

    flex: 0 0 auto;

    border-radius: 50%;

    background: #45be6c;
}


/* ----------------------------------------------------------
   UN SEUL PRÊT
---------------------------------------------------------- */

.b612-account--loans
.b612-account__section > .b612-account__loan {

    margin-top: 0;
}

/* ----------------------------------------------------------
   BOUTON RETOUR
---------------------------------------------------------- */

.b612-account--loans
.b612-account__logout {

    margin-top: 28px;
}



.b612-account__section > .b612-account__section-title {
    margin-bottom: 24px;
}


/* ==========================================================
   TABLETTE
========================================================== */

@media (max-width: 1000px) {

    .b612-account__loan {

        grid-template-columns:
            130px
            minmax(0, 1fr);

        gap: 28px;

        padding: 24px;
    }


    .b612-account__loan-cover {

        width: 130px;
        height: 180px;
    }


    .b612-account__loan-dates {

        grid-column: 1 / -1;

        padding-left: 0;

        padding-top: 24px;

        border-left: 0;

        border-top:
            1px solid #e2e7ed;
    }

}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 600px) {

    .b612-account__loan {

        grid-template-columns: 1fr;

        gap: 22px;

        padding: 20px;
    }


    .b612-account__loan-cover {

        width: 110px;
        height: 150px;
    }


    .b612-account__loan-title {

        font-size: 26px;
    }


    .b612-account__loan-dates {

        grid-template-columns: 1fr;

        gap: 18px;

        padding-top: 20px;
    }


    .b612-account__loan-status {

        grid-column: auto;
    }

}
