/* =====================================================
   PAGE AUTEUR — TTU
===================================================== */

.author-page {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 0 80px;
}


/* =====================================================
   EN-TÊTE AUTEUR
===================================================== */

.author-header {
    width: 100%;
    margin-bottom: 55px;
}

.author-identity {
    display: flex;
    align-items: center;
    gap: 35px;
    width: 90%;
    max-width: 950px;
    margin: 0 auto;
}


/* =====================================================
   PHOTO
===================================================== */

.author-photo {
    flex: 0 0 180px;
}

.author-photo .author-avatar {
    display: block;
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
}


/* =====================================================
   IDENTITÉ
===================================================== */

.author-introduction {
    flex: 1;
}

.author-name {
    margin: 0 0 18px;
    font-size: 2.4rem;
    line-height: 1.15;
    font-weight: 800;
}


/* =====================================================
   BIOGRAPHIE
===================================================== */

.author-bio {
    max-width: 700px;
    font-size: 1.05rem;
    line-height: 1.65;
}

.author-bio p {
    margin: 0 0 12px;
}

.author-bio p:last-child {
    margin-bottom: 0;
}


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

.author-articles {
    width: 100%;
}

.author-articles-title {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto 30px;

    font-size: 1.8rem;
    line-height: 1.25;
    font-weight: 800;
}


/* =====================================================
   GRILLE
===================================================== */

.author-articles-grid {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}


/* =====================================================
   CARTE ARTICLE
===================================================== */

.author-article-card {
    display: flex;
    flex-direction: column;

    overflow: hidden;

    border: 2px solid #6d3bb8;
    border-radius: 14px;

    background: #fff;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.author-article-card:hover {
    transform: translateY(-3px);

    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.08);
}


/* =====================================================
   IMAGE
===================================================== */

.author-article-image-link {
    display: block;
    width: 100%;

    text-decoration: none;
}

.author-article-image {
    display: block;

    width: 100%;
    height: 210px;

    object-fit: cover;
}

.author-article-image-placeholder {
    background: #f1f1f1;
}


/* =====================================================
   CONTENU CARTE
===================================================== */

.author-article-content {
    display: flex;
    flex-direction: column;

    flex: 1;

    padding: 20px;
}


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

.author-article-title {
    margin: 0 0 12px;

    font-size: 1.25rem;
    line-height: 1.3;
    font-weight: 800;
}

.author-article-title a {
    color: #f28c28;
    text-decoration: none;
}

.author-article-title a:hover {
    text-decoration: underline;
}


/* =====================================================
   EXCERPT
===================================================== */

.author-article-excerpt {
    margin: 0 0 18px;

    font-size: 0.95rem;
    line-height: 1.55;
}


/* =====================================================
   DATE
===================================================== */

.author-article-date {
    margin-top: auto;

    padding-top: 15px;

    font-size: 0.82rem;

    opacity: 0.7;
}


/* =====================================================
   PAGINATION
===================================================== */

.author-pagination {
    width: 90%;
    max-width: 1000px;

    margin: 45px auto 0;

    text-align: center;
}

.author-pagination ul {
    display: flex;

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

    gap: 8px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.author-pagination li {
    margin: 0;
    padding: 0;
}

.author-pagination a,
.author-pagination span {
    display: flex;

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

    min-width: 38px;
    height: 38px;

    padding: 0 10px;

    border: 1px solid #6d3bb8;
    border-radius: 8px;

    font-size: 0.9rem;

    text-decoration: none;
}

.author-pagination a {
    color: #6d3bb8;
}

.author-pagination a:hover {
    background: #6d3bb8;
    color: #fff;
}

.author-pagination .current {
    background: #f28c28;
    border-color: #f28c28;
    color: #fff;
    font-weight: 700;
}


/* =====================================================
   AUCUN ARTICLE
===================================================== */

.author-no-articles {
    width: 90%;
    max-width: 1000px;

    margin: 0 auto;

    text-align: center;

    font-size: 1.05rem;
}


/* =====================================================
   RESPONSIVE — TABLETTE
===================================================== */

@media (max-width: 900px) {

    .author-page {
        width: 92%;
        padding-top: 40px;
    }

    .author-identity {
        width: 100%;
        gap: 25px;
    }

    .author-name {
        font-size: 2rem;
    }

    .author-articles-grid {
        width: 100%;
        grid-template-columns: repeat(2, 1fr);
    }

    .author-articles-title {
        width: 100%;
    }

    .author-pagination {
        width: 100%;
    }

}


/* =====================================================
   RESPONSIVE — MOBILE
===================================================== */

@media (max-width: 600px) {

    .author-page {
        width: 92%;
        padding: 30px 0 60px;
    }


    /* Identité */

    .author-identity {
        flex-direction: column;

        text-align: center;

        gap: 20px;
    }

    .author-photo {
        flex-basis: auto;
    }

    .author-photo .author-avatar {
        width: 130px;
        height: 130px;
        margin: 0 auto;
    }

    .author-name {
        margin-bottom: 14px;
        font-size: 1.8rem;
    }

    .author-bio {
        font-size: 0.95rem;
        line-height: 1.55;
    }


    /* Titre */

    .author-articles-title {
        width: 100%;
        margin-bottom: 22px;

        font-size: 1.45rem;
    }


    /* Une colonne */

    .author-articles-grid {
        width: 100%;
        grid-template-columns: 1fr;
        gap: 20px;
    }


    /* Image */

    .author-article-image {
        height: auto;
        aspect-ratio: 16 / 9;
    }


    /* Carte */

    .author-article-content {
        padding: 17px;
    }

    .author-article-title {
        font-size: 1.15rem;
    }


    /* Pagination */

    .author-pagination {
        margin-top: 35px;
    }

    .author-pagination ul {
        gap: 5px;
    }

    .author-pagination a,
    .author-pagination span {
        min-width: 34px;
        height: 34px;

        padding: 0 7px;
    }

}