html:has(.grntn-blog-home) {
    scroll-behavior: smooth;
}

.grntn-blog-home {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    padding-bottom: 5rem;
}

/* HOME - ANCHORS LINKS */
.grntn-blog-home--anchors_links {
    display: flex;
    justify-content: center;
    padding: 1rem 0;
}

.grntn-blog-home--anchors_links div {
    width: max-content;
    display: flex;
    gap: 2rem;
}

.grntn-blog-home--anchors_links div span {
    font-weight: bold;
}


/* HOME - MAIN OVERVIEW */
.grntn-blog-home--main_articles h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.grntn-blog-home--main_articles>div {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 2fr 1fr;
}


/* HOME - SECTION ARCHIVE */
.grntn-blog-home--container_section_archive {
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

.grntn-blog-home--section_archive .heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.grntn-blog-home--section_archive .heading>div {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.grntn-blog-home--section_archive .heading>div img {
    height: 60px;
    width: auto;
}
.grntn-blog-home--section_archive .heading>div a {
    text-decoration: underline;
}

.grntn-blog-home--section_archive .content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* CARD ARTICLE */
.card-article {
    border: solid 1px #EAEAEA;
    position: relative;
}

.card-article--heading {
    position: relative;
}

.card-article--heading img {
    height: 300px;
    width: 100%;
    object-fit: cover;
}

.card-article--heading .tags {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 1rem;
    z-index: 5;
}

.card-article--heading .tags span {
    background-color: white;
    color: black;
    border: solid black 1px;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    text-align: center;
}

.card-article--content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
}

.card-article--content h3 {
    font-size: 20px;
    text-align: left;
}
.card-article--content > span {
    font-style: italic;
}
.card-article--content a {
    text-align: right;
}
.card-article__overlay-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* ARCHIVE */
.grntn-blog-archive {
    max-width: 1440px;
    margin: auto;
    padding: 3rem 2rem 5rem;
}
.grntn-blog-archive--hero {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}
.grntn-blog-archive--hero span {
    color: #ee7d27;
    font-weight: bold;
}
.grntn-blog-archive--hero::after {
    content: "";
    width: 50%;
    height: 1px;
    background-color: #ee7d27;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}
.grntn-blog-archive--section_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.grntn-blog-archive--section_categories {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;

}
.grntn-blog-archive--section_categories a {
    padding: 1rem;
    border: solid #ee7d27 1px;
    border-radius: 6px;
    color: #ee7d27;
    background-color: white;
}
.grntn-blog-archive--section_categories a.is-active {
    color: white;
    background-color: #ee7d27;
}

.grntn-blog-single--hero .infos{
    display: flex;
    justify-content: center;
    gap: 2rem;
}
.grntn-blog-single--hero h1{
    margin-bottom: 0.5rem;
}
.grntn-blog-single--hero .infos div span {
    font-weight: 600;
    color: black;
}

.grntn-blog-single article {
    margin-bottom: 3rem;
}
.grntn-blog-single article h2,
.grntn-blog-single article h3 {
    font-weight: bold;
    color: black;
    margin-bottom: 0.5rem;
}
.grntn-blog-single article h2 {
    font-size: 2rem;
}
.grntn-blog-single article h3 {
    font-size: 1.5rem;
}
.grntn-blog-single article p {
    text-align: justify;
}
.grntn-blog-single article .intro {
    margin-bottom: 40px;
}
.grntn-blog-single article .image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    margin-bottom: 40px;
}
.grntn-blog-single--cta {
    border: dashed 1px #ee7d27;
    width: 100%;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    margin-bottom: 5rem;
}
.grntn-blog-single--cta a {
    display: block !important;
    width: 100% !important;
    max-width: 360px !important;
    margin: auto;
}

.grntn-blog-single--section_archive .heading {
    margin-bottom: 1.5rem;
}
.grntn-blog-single--section_archive .heading>div h2 {
    font-size: 24px;
}
.grntn-blog-single--section_archive .content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}


.grntn-blog-single--scroll-progress-container {
    width: 100%;
    height: 4px;
    background: #e0e0e0; /* gris */
    position: relative;
    overflow: hidden;
}
.grntn-blog-single--scroll-progress-bar {
    height: 100%;
    width: 0%;
    background: #ee7d27; /* rouge */
    transition: width 0.05s ease-out;
}


/* RESPONSIVE */
@media screen and (max-width: 1024px) {
    .grntn-blog-home--anchors_links div {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .grntn-blog-home--main_articles>div,
    .grntn-blog-home--section_archive .content,
    .grntn-blog-single--section_archive .content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .grntn-blog-single--section_archive .heading,
    .grntn-blog-home--section_archive .heading {
        flex-direction: column;
        justify-content: center;
        gap: 1rem;
        margin-bottom: 1rem;
    }
    .grntn-blog-home--section_archive .heading>div {
        gap: 0.5rem;
    }
    .card-article--heading .tags span {
        padding: 0.2rem 0.5rem;
        font-size: 14px;
    }
    .grntn-blog-home--section_archive .heading>div img {
        height: 32px;
    }
    .grntn-blog-archive--section_grid {
        grid-template-columns: repeat(1, 1fr);
    }    
    .grntn-blog-archive--section_categories {
        overflow-x: scroll;
        justify-content: initial;
    }
    .grntn-blog-archive--section_categories a {
        min-width: max-content;
        text-align: center;
    }

    .grntn-blog-single--hero .infos {
        flex-direction: column;
        gap: 0.5rem;
    }
    .grntn-blog-single article h2 {
        font-size: 1.5rem;
    }
    .grntn-blog-single article h3 {
        font-size: 1.2rem;
    }
}