/**
 * News Archive Widget - CSS
 */

/* Structure générale */
.news-archive-widget {
    position: relative;
}

.news-content {
    position: relative;
}

/* Overlay de chargement lors de la pagination AJAX : couvre tout l'écran. */
.news-filter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.85);
    z-index: 10;
    display: none;
    justify-content: center;
    align-items: center;
}

.news-filter-overlay.active {
    display: flex;
}

.news-filter-loader {
    position: relative;
    z-index: 11;
}

.news-filter-loader img {
    display: block;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    column-gap: 20px;
    row-gap: 40px;
}

@media (min-width: 576px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Pagination */
.news-pagination {
    border-top: solid 1px #F3F3F0;
    border-bottom: solid 1px #F3F3F0;
    padding: 15px 0px;
    margin-top: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.pagination-numbers {
    display: flex;
    gap: 50px;
}

.page-number,
.prev-page,
.next-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: color 0.3s;
    color: rgba(34, 34, 34, 0.5) !important;
    text-align: center;
    font-family: "Raleway", sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    line-height: 12px;
    text-transform: uppercase;
}

.page-number.active {
    color: #222222 !important;
    font-weight: 900;
}

.page-number:hover,
.prev-page:hover,
.next-page:hover {
    color: #222222 !important;
}

.load-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    background-color: #222222;
    color: #FFFFFF;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 30px;
    font-family: "Raleway", sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.load-more-btn:hover {
    background-color: #000000;
}

/* Cartes */
.news-card {
    position: relative;
    display: block;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    text-align: left;
}

.news-image {
    position: relative;
    width: 100%;
    aspect-ratio: 295 / 230;
    overflow: hidden;
}

.news-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-date {
    display: block;
    margin: 18px 0 0;
    color: rgba(34, 34, 34, 0.8);
    font-family: "Open Sans", sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 12px;
}

.news-title {
    margin: 4px 0 0;
    color: #222222;
    font-family: "Open Sans", sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 26px;
}

.news-more {
    display: inline-block;
    margin-top: 10px;
    color: #222222;
    font-family: "Raleway", sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    text-transform: uppercase;
    border-bottom: 1px solid #222222;
    padding-bottom: 3px;
}

.no-news-found {
    grid-column: 1 / -1;
    color: rgba(34, 34, 34, 0.8);
}

/* Responsive */
@media (max-width: 576px) {
    .news-title {
        font-size: 16px;
        line-height: 24px;
    }
}
