@import url(../css/variables.css);

/* ============================================================
   ARTICLES
============================================================ */

.posts-grid {
    display: flex;
    flex-direction: column;
    gap: 60px;
    
}



.post-title {
    margin-bottom: 12px;

    font-family: var(--font-heading);
    font-size: var(--font-size-content-sub-title);
    font-weight: 400;
    line-height: 1.2;
}

.post-title a {
    color: var(--color-titre);
    text-decoration: none;
}

.post-title a:hover {
    opacity: .85;
}

/* ============================================================
   META (DATE + HEURE)
============================================================ */

.post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;

    margin-bottom: 20px;

    font-family: var(--font-texte);
    font-size: 15px;
    color: var(--color-paragraphe);
}

.post-date,
.post-time {
    display: flex;
    align-items: center;
    gap: 8px;
}

.meta-icon {
    width: 16px;
    height: 16px;

    display: block;
    flex-shrink: 0;
    object-fit: contain;
}

/* ============================================================
   IMAGE
============================================================ */

.post-thumbnail {
    display: block;
    margin-bottom: 20px;
}

.post-thumbnail img {
    display: block;

    width: 100%;
    height: 340px;

    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.178);
}

/* ============================================================
   EXCERPT
============================================================ */

.post-excerpt {
    margin-bottom: 24px;

    font-family: var(--font-texte);
    font-size: var(--font-size-paragraphe);
    line-height: 1.8;
    text-align: justify;
    color: var(--color-paragraphe);
}

/* ============================================================
   LIEN
============================================================ */

.read-more {
    color: var(--color-link);

    font-family: var(--font-texte);
    font-size: var(--font-size-readmore);
    font-weight: 500;

    text-decoration: none;
}

.read-more:hover {
    opacity: .8;
}

/* ============================================================
   PAGINATION
============================================================ */

.pagination {
    margin-top: 64px;

    display: flex;
    justify-content: center;
}

.pagination ul {
    display: flex;
    align-items: center;
    gap: 8px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.pagination li {
    margin: 0;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    border-radius: 50%;
    border: 1px solid  var(--color-divider-border);

    background: #fff;

    text-decoration: none;

    font-size: 13px;
    color: #8a8179;

    transition: .2s;
}

.pagination a:hover {
    background: #e9e3dc;
}

.pagination .current {
    background: var(--color-link);
    color: #fff;
}

/* Boutons précédent / suivant */

.pagination .next,
.pagination .prev {
    width: auto;
    padding: 0 16px;

    border-radius: 999px;
    background: #fff;
}

/* Cache précédent page 1 */

.pagination .prev.disabled,
.pagination .prev.page-numbers.dots {
    display: none;
}

/* ============================================================
   INTRO
============================================================ */

.home-intro {
    
    border-bottom: 1px solid var(--color-divider-border);
    margin-bottom: 80px;

}

.home-intro h2,
.site-content .home-intro h2 {
    margin: 0 0 24px !important;
    padding: 0 !important;

    font-family: var(--font-heading) !important;
    font-size: var(--font-size-content-titre);
    font-weight: 400 !important;
    line-height: 1.1 !important;

    color: var(--color-titre) !important;
}

.home-intro p,
.site-content .home-intro p {
    font-family: var(--font-texte);
    font-size: var(--font-size-paragraphe);
    line-height: 1.8;
    text-align: justify;
    color: var(--color-paragraphe);
}
/**************Category*********/
.post-category {
    margin-bottom: 10px;

    font-family: var(--font-texte);
    font-size: var(--font-size-paragraphe);
    color: var(--color-paragraphe);
}

.post-category a {
    color: var(--color-category);
    text-decoration: none;
    font-weight: 400;
    transition: opacity .2s ease;
}

.post-category a:hover {
    opacity: .8;
    text-decoration: none;
}

/* ============================================================
   TABLETTE
============================================================ */

@media (max-width: 1023px) {

    .post-title {
        font-size: 1.8rem;
    }

    .post-thumbnail img {
        height: 300px;
    }

    .home-intro h2,
    .site-content .home-intro h2 {
        font-size: 42px !important;
    }
}

/* ============================================================
   MOBILE
============================================================ */

@media (max-width: 767px) {

    .posts-grid {
        gap: 30px;
    }

    .post-card {
        padding-bottom: 48px;
    }

    .post-title {
        font-size: var(--font-size-content-sub-title);
    }

    .post-meta {
        gap: 14px;
        font-size: 14px;
    }

    .meta-icon {
        width: 14px;
        height: 14px;
    }

    .post-thumbnail img {
        height: 240px;
    }

    .post-excerpt {
        font-size: var(--font-size-paragraphe);
    }


    .home-intro h2,
    .site-content .home-intro h2 {
        font-size: 34px !important;
    }

    .pagination ul {
        gap: 6px;
        flex-wrap: wrap;
    }

    .pagination .next,
    .pagination .prev {
        padding: 0 12px;
    }
}

