/* ==========================
   ARCHIVE
========================== */

.lpr-archive {
    padding: 3rem 0;
}

.lpr-archive-header {
    margin-bottom: 3rem;
}

.lpr-archive-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--lpr-blue);
}

.lpr-archive-description {
    max-width: 700px;
    color: #666;
}

/* ==========================
   ARTICLE VEDETTE
========================== */

.lpr-featured-post {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2.5rem;
    align-items: start;

    margin-bottom: 4rem;
    padding-bottom: 3rem;

    border-bottom: 2px solid #e5e5e5;
}

.lpr-featured-thumb {
    display: block;
}

.lpr-featured-thumb img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.lpr-featured-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.lpr-featured-title {
    font-size: 2.2rem;
    line-height: 1.2;
    margin: .5rem 0 1rem;
}

.lpr-featured-title a {
    text-decoration: none;
    color: var(--lpr-blue);
}

.lpr-featured-title a:hover {
    text-decoration: underline;
}

.lpr-featured-excerpt {
    font-size: 1.1rem;
    line-height: 1.8;
}

.lpr-read-more {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 600;
    color: var(--lpr-blue);
    text-decoration: none;
}

.lpr-read-more:hover {
    text-decoration: underline;
}

/* ==========================
   ARTICLES SECONDAIRES
========================== */

.lpr-archive-post {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;

    border-bottom: 1px solid #ececec;
}

.lpr-post-thumb {
    display: block;
}

.lpr-post-thumb img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.lpr-post-title {
    margin: .5rem 0;
    font-size: 1.35rem;
    line-height: 1.3;
}

.lpr-post-title a {
    color: #222;
    text-decoration: none;
}

.lpr-post-title a:hover {
    color: var(--lpr-blue);
}

.lpr-post-excerpt {
    font-size: .95rem;
    line-height: 1.7;
}

/* ==========================
   META
========================== */

.lpr-archive .lpr-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;

    font-size: .875rem;
    color: #777;

    margin-bottom: 1rem;
}

/* ==========================
   PAGINATION
========================== */

.lpr-pagination {
    margin-top: 3rem;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.lpr-featured-post:last-child,
.lpr-archive-post:last-child {
    border-bottom: none;
}

/* Couleur des liens de pagination */
a.prev.page-numbers,
a.next.page-numbers ,
a.page-numbers{
    font-weight: 600;
    color: var(--lpr-dark);
}

span.page-numbers.current {
    font-weight: 600;
    color: var(--lpr-blue);
}

/* ==========================
   MOBILE
========================== */

@media (max-width: 768px) {

    .lpr-featured-post,
    .lpr-archive-post {
        display: block;
    }

    .lpr-featured-thumb img,
    .lpr-post-thumb img {
        width: 100%;
        height: auto;
        margin-bottom: 1rem;
    }

    .lpr-featured-title {
        font-size: 1.8rem;
    }

    .lpr-featured-excerpt {
        font-size: 1rem;
    }

}

/* Nombre d'articles */

.lpr-archive-heading {
    display: flex;
    align-items: baseline;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.lpr-archive-count {
    position: relative;
    top: -2px;
    font-size: 1.25rem;
    font-weight: 400;
    color: #666;
    padding-left: 1.5rem;
    border-left: 1px solid #ccc;
}
