.rc-archive-actualites-item.musique {
    --theme-clr: #CBB4E8;
}

.rc-archive-actualites-item.art-culture {
    --theme-clr: #F8DAEA;
}

.rc-archive-actualites-item.jeunesse {
    --theme-clr: #FEEF88;
}

.rc-archive-actualites-item.societe {
    --theme-clr: #C1DCF5;
}

.rc-archive-actualites-item.environnement {
    --theme-clr: #BCD3C5;
}

.rc-archive-actualites-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;

    & a {
        text-decoration: none !important;
        outline: none !important;
    }

    & .rc-archive-actualites-item {
        border: 1px solid #2f2f2f;
        background: #fff;
        display: grid;
        grid-template-rows: auto 1fr;
        transition: 500ms;

        &:hover {
            box-shadow: 0 0 10px 5px var(--theme-clr);
        }

        & .featured-container {
            aspect-ratio: 1;
            width: 100%;
            position: relative;

            & img {
                width: 100%;
                height: 100%;
                object-fit: cover;
            }

            & a.link-wrapper {
                position: absolute;
                inset: 0;
            }

            & a.category {
                z-index: 9;
                position: absolute;
                bottom: 0;
                left: 20px;
                width: fit-content;
                color: #2f2f2f;
                border: 1px solid #2f2f2f;
                background: linear-gradient(to right, #2f2f2f), linear-gradient(to right, var(--theme-clr, #fff));
                background-repeat: no-repeat;
                background-position: bottom right, bottom left;
                background-size: 0% 100%, 100% 100%;
                transition: background-size 300ms, color 500ms;

                font-family: 'Poppins';
                font-size: 13px;
                font-weight: 500;
                line-height: 1.5;
                letter-spacing: 0.1em;
                padding: 2px 10px;

                &:hover {
                    color: var(--theme-clr);
                    background-position: bottom left, bottom left;
                    background-size: 100% 100%, 100% 100%;
                }
            }
        }

        & .post-infos {
            border-top: 1px solid #2f2f2f;
            padding: 15px;
            display: flex;
            flex-flow: column wrap;
            justify-content: space-between;

            & .title a {
                display: -webkit-box;
                overflow: hidden;
                -webkit-box-orient: vertical;
                -webkit-line-clamp: 3;

                color: #000;
                font-family: 'Poppins';
                font-size: 19px;
                font-weight: 600;
                line-height: 1.3;
            }

            & .tags-container {
                margin-top: 30px;
                display: flex;
                flex-wrap: wrap;
                gap: 10px;

                & a {
                    color: #2F2F2F;
                    font-family: 'Poppins';
                    font-size: 12px;
                    font-weight: 400;
                    text-transform: uppercase;
                    padding: 2px 10px;
                    height: fit-content;
                    border: 1px solid #2F2F2F;

                    background: linear-gradient(to right, #2f2f2f);
                    background-repeat: no-repeat;
                    background-position: bottom right;
                    background-size: 0% 100%;
                    transition: background-size 300ms, color 500ms;

                    &:hover {
                        color: #fff;
                        background-position: bottom left;
                        background-size: 100% 100%;
                    }
                }
            }
        }
    }
}

.rc-archive-actualites-pagination {
    display: flex;
    justify-content: end;
    gap: 2px;
    align-items: center;
    margin-top: 25px;

    & a {
        outline: none !important;
        text-decoration: none !important;
        color: #000;
        font-family: 'Poppins';
        font-size: 16px;
        font-weight: 500;
        line-height: 1;
        padding: 0 4px 2px;
        background: linear-gradient(to right, #2f2f2f);
        background-repeat: no-repeat;
        background-position: bottom right;
        background-size: 0% 1px;
        transition: background-size 500ms;

        &.active {
            font-weight: 600;
            background-size: 100% 1px;
        }

        &:hover {
            background-position: bottom left;
            background-size: 100% 1px;
        }
    }
}

@media screen and (width <= 767px) {
	.rc-archive-actualites-container {
		overflow: scroll;
		
		& .rc-archive-actualites-grid {
			grid-auto-flow: column;
            grid-auto-columns: 70%;
            grid-template-columns: 70%;
		}
	}
}