/* ============================================
   Actualités en Cartes — style.css
   ============================================ */

/* ── Section ── */
.wac-section {
    margin: 2rem 0;
    font-family: inherit;
}

/* ── En-tête ── */
.wac-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.wac-titre {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
    color: inherit;
}

.wac-voir-tout {
    font-size: 0.875rem;
    color: #2563eb;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s;
}
.wac-voir-tout:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* ── Grille de cartes ── */
.wac-grille {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

/* ── Carte ── */
.wac-carte {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.wac-carte:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.10);
    transform: translateY(-3px);
}

/* ── Image ── */
.wac-carte-image-lien {
    display: block;
    overflow: hidden;
}
.wac-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}
.wac-carte:hover .wac-image {
    transform: scale(1.04);
}
.wac-image-placeholder {
    width: 100%;
    height: 180px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
}

/* ── Corps ── */
.wac-corps {
    padding: 1rem 1.125rem 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* ── Badge catégorie ── */
.wac-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 4px;
    margin-bottom: 0.6rem;
    background: #e0e7ff;
    color: #3730a3;
}
/* Variantes couleurs automatiques selon le slug de catégorie */
.wac-badge--actualite,
.wac-badge--news        { background: #dbeafe; color: #1e40af; }
.wac-badge--evenement,
.wac-badge--event       { background: #dcfce7; color: #166534; }
.wac-badge--produit,
.wac-badge--product     { background: #fae8ff; color: #6b21a8; }
.wac-badge--conseil,
.wac-badge--blog        { background: #ffedd5; color: #9a3412; }
.wac-badge--presse,
.wac-badge--press       { background: #fef9c3; color: #854d0e; }

/* ── Titre de l'article ── */
.wac-article-titre {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.45;
    margin: 0 0 0.4rem;
    color: inherit;
}
.wac-article-titre a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}
.wac-article-titre a:hover {
    color: #2563eb;
}

/* ── Date ── */
.wac-date {
    font-size: 0.78rem;
    color: #6b7280;
    margin: 0 0 0.6rem;
    display: flex;
    align-items: center;
    gap: 5px;
}
.wac-date svg {
    flex-shrink: 0;
    opacity: 0.7;
}

/* ── Extrait ── */
.wac-extrait {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 0.875rem;
    flex: 1;
}

/* ── Lien "Lire la suite" ── */
.wac-lire-suite {
    font-size: 0.82rem;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
    margin-top: auto;
    transition: color 0.2s;
}
.wac-lire-suite:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* ── Vide ── */
.wac-vide {
    color: #9ca3af;
    font-style: italic;
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .wac-grille {
        grid-template-columns: 1fr;
    }
    .wac-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
