/* ═══════════════════════════════════════════════════════════════
   BLOG LISTING PAGE
   ═══════════════════════════════════════════════════════════════ */

.listing-page {
    max-width: 740px;
    margin: 0 auto;
    padding: 56px 40px 96px;
    overflow-wrap: break-word;
}

/* ─── HEADER ────────────────────────────────────────────────── */

.listing-header {
    margin-bottom: 56px;
    /* Ligne de séparation discrète entre header et liste */
    padding-bottom: 56px;
    border-bottom: 1px solid #1a1a1a;
}

.listing-header .label {
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #484848;
    margin-bottom: 14px;
}

.listing-title {
    /* Même logique que article-title : min 28px mobile, max 40px desktop */
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 300;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: #f5f5f5;
    margin-bottom: 12px;
}

.listing-lead {
    font-size: 1.0625rem;
    font-weight: 300;
    line-height: 1.7;
    color: #666;
}

.listing-empty {
    font-size: 1rem;
    color: #484848;
    font-weight: 300;
    line-height: 1.6;
}

/* ─── ARTICLE LIST ──────────────────────────────────────────── */

.article-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.article-card {
    border-bottom: 1px solid #1a1a1a;
}

.article-card-link {
    display: block;
    padding: 36px 0;
    text-decoration: none;
    color: inherit;
    /* Pas d'opacity globale : préférer des transitions ciblées
       pour éviter que le texte pâlisse trop sur fond sombre */
}

.article-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin-bottom: 12px;
}

.article-card-title {
    /* 20px — assez grand pour être scannable dans une liste */
    font-size: 1.25rem;
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.3;
    color: #f0f0f0;
    margin-bottom: 8px;
    transition: color 0.15s ease;
}

.article-card-link:hover .article-card-title {
    color: #fff;
}

.article-card-excerpt {
    /* 15px — légèrement sous le body de l'article, rôle secondaire */
    font-size: 0.9375rem;
    font-weight: 300;
    line-height: 1.65;
    color: #5a5a5a;
    margin-bottom: 16px;
    /* Limite à 2 lignes */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.15s ease;
}

.article-card-link:hover .article-card-excerpt {
    color: #6a6a6a;
}

.article-card-cta {
    display: inline-block;
    margin-top: 8px;
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: #888;
    border: 1px solid #2a2a2a;
    border-radius: 4px;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.article-card-link:hover .article-card-cta {
    border-color: #555;
    color: #f0f0f0;
    background: #1a1a1a;
}

/* ─── LOAD MORE ──────────────────────────────────────────── */

.load-more-container {
    text-align: center;
    margin-top: 56px;
    padding-top: 56px;
    border-top: 1px solid #1a1a1a;
}

.load-more-btn {
    padding: 12px 32px;
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #888;
    background: transparent;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.load-more-btn:hover:not(:disabled) {
    border-color: #555;
    color: #f0f0f0;
    background: #1a1a1a;
}

.load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ─── MOBILE ────────────────────────────────────────────────── */

@media (max-width: 640px) {
    .listing-page {
        padding: 32px 20px 72px;
    }

    .listing-header {
        margin-bottom: 40px;
        padding-bottom: 40px;
    }

    .article-card-link {
        padding: 28px 0;
    }

    .article-card-title {
        font-size: 1.125rem;
    }

    .article-card-excerpt {
        font-size: 0.9375rem;
    }
}
