/* ========== ARTICLES — Section & Cards ========== */

/* --- Grid 3 colonnes --- */
.pompe-articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

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

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

/* --- Article Card --- */
.pompe-article-card {
    background-color: var(--pompe-fond-card);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pompe-article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.pompe-article-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* --- Image zone --- */
.pompe-article-card-image {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: var(--pompe-fond-medium);
}

.pompe-article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

/* Placeholder sans image */
.pompe-article-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--pompe-fond-medium);
}

.pompe-article-card-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Badge catégorie sur l'image */
.pompe-article-card-cat {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: var(--pompe-gold);
    color: #fff;
    font-family: var(--pompe-font-display);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 10px;
    border-radius: 4px;
    line-height: 1.4;
}

/* --- Card body --- */
.pompe-article-card-body {
    padding: 1.25rem 1.5rem 1.5rem;
}

.pompe-article-card-date {
    display: block;
    font-family: var(--pompe-font-body);
    font-size: 0.8rem;
    color: var(--pompe-cyan-accent);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.pompe-article-card-title {
    font-family: var(--pompe-font-display);
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--pompe-text-primary);
    margin: 0 0 0.6rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pompe-article-card-excerpt {
    font-family: var(--pompe-font-body);
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--pompe-text-secondary, rgba(255, 255, 255, 0.65));
    margin: 0 0 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pompe-article-card-read {
    font-family: var(--pompe-font-display);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--pompe-gold-light);
    transition: color 0.2s ease;
}

.pompe-article-card:hover .pompe-article-card-read {
    color: var(--pompe-gold);
}

/* --- Fond ecrin overrides --- */
.pompe-bg-ecrin .pompe-article-card {
    background-color: var(--pompe-fond-card);
}

.pompe-bg-ecrin .pompe-article-card-title {
    color: var(--pompe-text-primary);
}

.pompe-bg-ecrin .pompe-article-card-excerpt {
    color: var(--pompe-text-secondary, rgba(255, 255, 255, 0.65));
}

/* --- Fond blanc overrides --- */
.pompe-bg-white .pompe-article-card,
.pompe-bg-ecrin-light .pompe-article-card {
    background-color: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.pompe-bg-white .pompe-article-card-title,
.pompe-bg-ecrin-light .pompe-article-card-title {
    color: var(--pompe-text-dark);
}

.pompe-bg-white .pompe-article-card-excerpt,
.pompe-bg-ecrin-light .pompe-article-card-excerpt {
    color: var(--pompe-text-dark-secondary);
}

.pompe-bg-white .pompe-article-card-date,
.pompe-bg-ecrin-light .pompe-article-card-date {
    color: var(--pompe-cyan-on-light, #2e6d78);
}

.pompe-bg-white .pompe-article-card-read,
.pompe-bg-ecrin-light .pompe-article-card-read {
    color: var(--pompe-gold-on-light, #8a6914);
}

/* ========== ARCHIVE — Grille articles page listing ========== */

.pompe-archive-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

@media (min-width: 600px) {
    .pompe-archive-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* ========== SINGLE — Article page styles ========== */

.pompe-single-hero {
    padding-top: 2rem;
    padding-bottom: 2.5rem;
}

.pompe-single-hero .pompe-article-card-cat {
    position: static;
    display: inline-block;
    margin-bottom: 1rem;
}

.pompe-single-hero .pompe-h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    line-height: 1.2;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.pompe-single-featured-image {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2.5rem;
}

.pompe-single-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- Article body — fond clair, editorial --- */
.pompe-single-body {
    background-color: #FFFFFF;
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
}

.pompe-article-content {
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}

/* Typographie corps article — fond clair */
.pompe-single-body .pompe-post-content {
    color: var(--pompe-text-dark, #1a1a2e);
    font-family: var(--pompe-font-body);
    font-size: 1.08rem;
    line-height: 1.8;
}

.pompe-single-body .pompe-post-content p {
    color: #333;
    margin-bottom: 1.5rem;
}

.pompe-single-body .pompe-post-content .pompe-lead {
    font-size: 1.2rem;
    color: #222;
    font-weight: 400;
    line-height: 1.7;
    border-left: 4px solid var(--pompe-gold, #BF953F);
    padding-left: 1.25rem;
    margin-bottom: 2rem;
}

/* Titres H2 — gold, trait décoratif */
.pompe-single-body .pompe-post-content h2 {
    font-family: var(--pompe-font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--pompe-gold-on-light, #8a6914);
    margin-top: 3rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--pompe-gold, #BF953F);
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.pompe-single-body .pompe-post-content h3 {
    font-family: var(--pompe-font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-top: 2.25rem;
    margin-bottom: 1rem;
}

/* Listes */
.pompe-single-body .pompe-post-content ul {
    margin: 1.25rem 0 1.75rem;
    padding-left: 0;
    list-style: none;
}

.pompe-single-body .pompe-post-content ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: #333;
    line-height: 1.7;
}

.pompe-single-body .pompe-post-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 8px;
    height: 8px;
    background-color: var(--pompe-gold, #BF953F);
    border-radius: 50%;
}

.pompe-single-body .pompe-post-content ul li strong {
    color: #1a1a2e;
}

/* Liens */
.pompe-single-body .pompe-post-content a:not(.pompe-btn) {
    color: var(--pompe-cyan-on-light, #2e6d78);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.pompe-single-body .pompe-post-content a:not(.pompe-btn):hover {
    color: var(--pompe-gold-on-light, #8a6914);
}

/* Strong / emphasis */
.pompe-single-body .pompe-post-content strong {
    color: #1a1a2e;
    font-weight: 600;
}

.pompe-single-body .pompe-post-content em {
    color: #444;
    font-style: italic;
}

/* Small / disclaimer */
.pompe-single-body .pompe-post-content small {
    color: #666;
    font-size: 0.88rem;
    line-height: 1.6;
}

/* CTA bouton dans article */
.pompe-single-body .pompe-post-content .pompe-btn-gold {
    margin-top: 1rem;
}

/* Navigation article — fond clair */
.pompe-single-body .pompe-post-nav {
    border-top: 1px solid #ddd;
    padding-top: 2rem;
}

.pompe-single-body .pompe-post-nav a {
    color: var(--pompe-cyan-on-light, #2e6d78);
    text-decoration: none;
    font-family: var(--pompe-font-display);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.pompe-single-body .pompe-post-nav a:hover {
    color: var(--pompe-gold-on-light, #8a6914);
}

/* Related articles en bas de single */
.pompe-related-articles {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 3rem;
    margin-top: 3rem;
}

/* ========== SINGLE — Responsive ========== */

@media (max-width: 599px) {
    .pompe-single-body {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .pompe-single-body .pompe-post-content {
        font-size: 1rem;
    }

    .pompe-single-body .pompe-post-content h2 {
        font-size: 1.3rem;
        margin-top: 2.25rem;
    }

    .pompe-single-body .pompe-post-content .pompe-lead {
        font-size: 1.05rem;
    }
}

/* ========== PAGINATION ========== */

.pompe-pagination {
    margin-top: 3rem;
    text-align: center;
}

.pompe-pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pompe-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    font-family: var(--pompe-font-display);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--pompe-text-primary);
    background-color: var(--pompe-fond-card);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.pompe-pagination .page-numbers:hover {
    background-color: var(--pompe-fond-light);
}

.pompe-pagination .page-numbers.current {
    background-image: var(--pompe-gold-gradient);
    color: #000;
    font-weight: 700;
}

.pompe-pagination .page-numbers.prev,
.pompe-pagination .page-numbers.next {
    font-size: 1.1rem;
}
