/* ══════════════════════════════
   v0.5.3 + v0.5.5 — Newsletter / Articles
══════════════════════════════ */

.newsletter-main {
    padding-top: 70px;
}

/* ── Hero ── */

#newsletter-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 80px 6% 64px;
    border-bottom: 1px solid var(--bord);
}

.newsletter-hero-texte {
    flex: 1;
}

.news-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--doux);
    margin-bottom: 16px;
}

.news-titre {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--texte);
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 16px;
    animation: apparition 0.9s ease-out both;
}

.news-intro {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--doux);
    animation: apparition 0.9s ease-out 0.15s both;
}

.news-compteur {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 32px 24px;
    border: 1px solid var(--bord);
    border-radius: 16px;
    text-align: center;
    animation: apparition 0.9s ease-out 0.08s both;
}

.news-nb {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--texte);
}

.news-nb-label {
    font-size: 0.8rem;
    color: var(--doux);
    font-weight: 500;
}

/* ── Filtres ── */

.filtres-barre {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px 6%;
    border-bottom: 1px solid var(--bord);
    flex-wrap: wrap;
}

.filtre-recherche {
    flex: 1;
    min-width: 240px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border: 1px solid var(--bord);
    border-radius: 8px;
    background: var(--blanc);
    color: var(--doux);
}

.filtre-recherche input {
    flex: 1;
    border: none;
    outline: none;
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--texte);
    background: transparent;
}

.filtre-recherche input::placeholder {
    color: var(--doux);
}

.filtre-select {
    padding: 8px 12px;
    border: 1px solid var(--bord);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--texte);
    cursor: pointer;
    background: var(--blanc);
    min-width: 200px;
}

.filtre-reset {
    padding: 8px 16px;
    border: 1px solid var(--bord);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--doux);
    background: var(--blanc);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.filtre-reset:hover {
    background: var(--survol);
    color: var(--texte);
}


/* ══════════════════════════════
   v0.5.5 — Mise en page blog
══════════════════════════════ */

@keyframes entree-carte {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50%       { background-position: 100% 50%; }
}

/* Grille 2 colonnes — vedette sur toute la largeur */
.articles-grille {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 48px 6%;
    align-items: start;
}

/* ── Base commune ── */

.article-carte {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--bord);
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    animation: entree-carte 0.4s ease-out both;
    transition: box-shadow 0.2s, transform 0.2s;
}

.article-carte:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

.article-image {
    background: var(--survol);
    flex-shrink: 0;
}

.article-image-vide {
    background: linear-gradient(120deg, #f0f0f0 0%, #e6e6e6 50%, #f0f0f0 100%);
    background-size: 200% 100%;
    animation: shimmer 2.4s ease-in-out infinite;
}

.article-corps {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.article-categorie {
    display: inline-block;
    align-self: flex-start;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--doux);
    background: var(--survol);
    padding: 3px 10px;
    border-radius: 12px;
}

.article-titre {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--texte);
    letter-spacing: -0.01em;
    line-height: 1.35;
}

.article-extrait {
    font-size: 0.85rem;
    color: var(--doux);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.76rem;
    color: var(--doux);
    margin-top: 4px;
}

.article-meta .article-sep { opacity: 0.4; }

/* ── Article vedette (premier de la liste) ── */

.article-carte-vedette {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: stretch;
    border-radius: 20px;
}

.article-carte-vedette .article-image {
    width: 380px;
    min-height: 260px;
    flex-shrink: 0;
    border-right: 1px solid var(--bord);
}

.article-carte-vedette .article-corps {
    padding: 36px 40px;
    justify-content: center;
    gap: 12px;
}

.article-carte-vedette .article-titre {
    font-size: 1.5rem;
    line-height: 1.3;
}

.article-carte-vedette .article-extrait {
    -webkit-line-clamp: 3;
    line-clamp: 3;
    font-size: 0.9rem;
}

/* ── Cartes régulières ── */

.article-carte:not(.article-carte-vedette) .article-image {
    width: 100%;
    height: 180px;
    border-bottom: 1px solid var(--bord);
}

.article-carte:not(.article-carte-vedette) .article-corps {
    padding: 20px 22px 24px;
}


/* ── État vide / chargement ── */

.news-hidden { display: none; }

.news-vide {
    text-align: center;
    padding: 80px 6%;
}

.news-vide p {
    font-size: 0.95rem;
    color: var(--doux);
}

.news-chargement {
    text-align: center;
    padding: 40px;
    color: var(--doux);
    font-size: 0.9rem;
    grid-column: 1 / -1;
}


/* ══════════════════════════════
   Responsive
══════════════════════════════ */

@media (max-width: 900px) {
    .article-carte-vedette {
        flex-direction: column;
    }

    .article-carte-vedette .article-image {
        width: 100%;
        min-height: 220px;
        border-right: none;
        border-bottom: 1px solid var(--bord);
    }

    .article-carte-vedette .article-corps {
        padding: 24px;
    }

    .article-carte-vedette .article-titre {
        font-size: 1.25rem;
    }
}

@media (max-width: 768px) {
    #newsletter-hero {
        flex-direction: column;
        align-items: flex-start;
        padding: 56px 5% 40px;
        gap: 24px;
    }

    .news-compteur {
        align-self: flex-start;
        padding: 24px 16px;
    }

    .filtres-barre {
        padding: 16px 5%;
        gap: 8px;
    }

    .filtre-recherche {
        min-width: 100%;
        order: 1;
    }

    .filtre-select {
        flex: 1;
        min-width: 0;
    }

    .filtre-reset {
        width: 100%;
    }

    .articles-grille {
        grid-template-columns: 1fr;
        padding: 32px 5%;
        gap: 12px;
    }

    .article-carte-vedette .article-image {
        min-height: 180px;
    }

    .article-carte:not(.article-carte-vedette) .article-image {
        height: 160px;
    }
}
