/* ============================================================
   PAGE ARTICLES — Tous les articles
   ============================================================ */

/* ── Hero ── */
.articles-hero {
    position: relative;
    background: linear-gradient(135deg, #ba1d41 0%, #5a1020 50%, #1a0a10 100%);
    padding: 6rem 16px 4rem;
    text-align: center;
    overflow: hidden;
}

.articles-hero__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 600px 400px at 20% 50%, rgba(255,100,130,.15), transparent),
        radial-gradient(ellipse 500px 350px at 80% 30%, rgba(255,180,200,.1), transparent);
    animation: heroPulse 8s ease-in-out infinite alternate;
}

@keyframes heroPulse {
    0%   { opacity: .6; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.05); }
}

.articles-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 1228px;
    margin: 0 auto;
}

.articles-hero__title {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 700;
    font-size: 3.6rem;
    color: #fff;
    margin: 0 0 10px;
    letter-spacing: -0.02em;
}

.articles-hero__subtitle {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.5rem;
    color: rgba(255,255,255,.7);
    margin: 0;
    font-weight: 400;
}

.articles-hero__count {
    color: #ffb3be;
    font-weight: 700;
    font-size: 1.7rem;
}

@media (min-width: 700px) {
    .articles-hero {
        padding: 8rem 32px 5rem;
    }
    .articles-hero__title {
        font-size: 4.4rem;
    }
}

/* ── Filter bar ── */
.articles-filters {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
    transition: box-shadow .3s;
}

.articles-filters.is-stuck {
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
}

.articles-filters__inner {
    max-width: 1228px;
    margin: 0 auto;
    padding: 14px 16px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-behavior: smooth;
}

.articles-filters__inner::-webkit-scrollbar {
    display: none;
}

@media (min-width: 1200px) {
    .articles-filters__inner {
        padding: 14px 0;
    }
}

.articles-filters__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #e0e0e0;
    background: #fff;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    transition: color .2s, border-color .2s, background .2s, opacity .2s;
}

.articles-filters__nav[hidden] {
    display: none;
}

.articles-filters__nav:hover {
    color: #ba1d41;
    border-color: #ba1d41;
}

.articles-filters__nav svg {
    width: 18px;
    height: 18px;
}

.articles-filters__nav--prev {
    left: 6px;
}

.articles-filters__nav--next {
    right: 6px;
}

.articles-filter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border: 1.5px solid #ddd;
    border-radius: 24px;
    background: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    white-space: nowrap;
    transition: all .2s;
    flex-shrink: 0;
}

.articles-filter:hover {
    border-color: #ba1d41;
    color: #ba1d41;
}

.articles-filter.is-active {
    background: #ba1d41;
    border-color: #ba1d41;
    color: #fff;
}

.articles-filter__count {
    font-size: 1.05rem;
    font-weight: 700;
    opacity: .6;
}

.articles-filter.is-active .articles-filter__count {
    opacity: .85;
}

/* ── Article grid ── */
.articles-grid {
    max-width: 1228px;
    margin: 0 auto;
    padding: 32px 16px 60px;
}

.articles-grid:last-child {
    padding-bottom: 60px;
}

@media (min-width: 880px) {
    .articles-grid {
        padding: 40px 32px 0;
    }
}

@media (min-width: 1200px) {
    .articles-grid {
        padding: 40px 0 0;
    }
}

.articles-grid__inner {
    display: grid;
    gap: 28px 20px;
    transition: opacity .3s;
}

.articles-grid--loading .articles-grid__inner {
    opacity: .4;
    pointer-events: none;
}

@media (min-width: 520px) {
    .articles-grid__inner {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

@media (min-width: 1200px) {
    .articles-grid__inner {
        grid-template-columns: repeat(4, 1fr);
        gap: 32px 24px;
    }
}

/* ── Article card ── */
.acard {
    display: flex;
    flex-direction: column;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .4s ease, transform .4s ease;
}

.acard--visible {
    opacity: 1;
    transform: translateY(0);
}

.acard .bookmark-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
}

.acard__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.acard__feat {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
    aspect-ratio: 3 / 2;
}

.acard__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.acard:hover .acard__img {
    transform: scale(1.05);
}

.acard__img--placeholder {
    background: #dcdee8;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.acard__img--placeholder svg {
    width: 32px;
    height: 32px;
    color: #9ca3af;
}

/* Date badge on image */
.acard__date-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(186, 29, 65, .92);
    backdrop-filter: blur(6px);
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 700;
    text-align: center;
    padding: 6px 10px 5px;
    border-radius: 6px;
    line-height: 1;
    z-index: 2;
}

.acard__date-day {
    display: block;
    font-size: 1.8rem;
    letter-spacing: -0.02em;
}

.acard__date-month {
    display: block;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 1px;
    opacity: .85;
}

/* Categories */
.acard__categories {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.acard__cat {
    display: inline-block;
    background: var(--g-color, #ba1d41);
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 3px;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.03em;
    line-height: 1.4;
    transition: background .2s;
}

.acard__cat:hover {
    background: #8e1531;
}

/* Title */
.acard__title {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 135%;
    color: #202020;
    margin: 0 0 5px;
}

.acard__title a {
    color: inherit;
    text-decoration: none;
}

.acard:hover .acard__title a {
    text-decoration: underline;
    text-underline-position: under;
}

/* Excerpt */
.acard__excerpt {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.3rem;
    line-height: 150%;
    color: #666;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Meta */
.acard__meta {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: auto;
    color: #8b8fa0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.15rem;
    line-height: 1;
    letter-spacing: 0.02em;
}

.acard__meta svg {
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    color: #a0a4b8;
}

.acard__comments {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-left: 8px;
}

.acard__comments svg {
    width: 13px;
    height: 13px;
}

/* ── Load more ── */
.articles-loadmore {
    max-width: 1228px;
    margin: 0 auto;
    padding: 40px 16px 50px;
    text-align: center;
}

.articles-loadmore__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 32px;
    border: 2px solid #ba1d41;
    border-radius: 30px;
    background: transparent;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: #ba1d41;
    cursor: pointer;
    transition: all .25s;
}

.articles-loadmore__btn:hover {
    background: #ba1d41;
    color: #fff;
    box-shadow: 0 4px 16px rgba(186, 29, 65, .25);
    transform: translateY(-1px);
}

.articles-loadmore__btn.is-loading {
    pointer-events: none;
    opacity: .6;
}

.articles-loadmore__spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin .6s linear infinite;
}

.articles-loadmore__btn.is-loading .articles-loadmore__spinner {
    display: block;
}

.articles-loadmore__btn.is-loading .articles-loadmore__text {
    opacity: .5;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.articles-loadmore__status {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.2rem;
    color: #999;
    margin: 14px 0 0;
}

/* ── Footer margin override ── */
body.page-template-page-articles .site-footer {
    margin-top: 0;
}

.articles-page {
    padding-bottom: 60px;
}
