/* --- GRILLE 4 COLONNES --- */
.ffw-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px; 
    width: 100%;
    margin: 40px 0; 
    font-family: inherit;
}

@media (max-width: 1024px) { .ffw-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .ffw-grid { grid-template-columns: 1fr; } }

/* --- CARTE --- */
.ffw-card {
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.ffw-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

/* --- IMAGE --- */
.ffw-image-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.ffw-image-wrapper.square { padding-top: 100%; }
.ffw-image-wrapper.cover, .ffw-image-wrapper.contain { height: 220px; } 

.ffw-image-inner {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-position: center; 
    background-repeat: no-repeat;
    z-index: 2;
}

.ffw-image-inner.square, .ffw-image-inner.cover { background-size: cover; }
.ffw-image-inner.contain { background-size: contain; }

.ffw-blur-bg {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover; background-position: center;
    filter: blur(20px); opacity: 0.6; transform: scale(1.1); z-index: 1;
}

/* --- CONTENU --- */
.ffw-content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: left;
}

/* --- HEADER --- */
.ffw-header-link {
    text-decoration: none !important;
    color: inherit !important;
    display: block;
    margin-bottom: 12px;
}

.ffw-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.ffw-author-block {
    display: flex;
    align-items: center; 
    gap: 10px;
    max-width: 85%;
}

.ffw-author-logo {
    width: 40px; height: 40px; 
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.ffw-author-meta {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.ffw-author-meta.has-date { align-items: flex-start; }

.ffw-author-name {
    font-weight: 700;
    font-size: 16px;
    color: #000;
    line-height: 1.2;
}

.ffw-date {
    font-size: 12px;
    color: #65676b;
    margin-top: 2px;
}

.ffw-fb-icon {
    color: #1877F2;
    display: flex;
    align-items: center;
}
.ffw-fb-svg { width: 24px; height: 24px; }

/* --- TEXTE & LIEN VOIR PLUS --- */

.ffw-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #050505;
    
    /* Line Clamp natif */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Nouveau style pour le bouton "Voir plus" en dessous */
.ffw-read-more-btn {
    display: block; /* Force le passage à la ligne */
    margin-top: 5px; /* Petit espace au-dessus */
    text-align: left;
    
    font-weight: 700;
    color: #65676b;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
}

.ffw-read-more-btn:hover {
    text-decoration: underline;
}

/* --- REACTIONS FOOTER (Icones empilées) --- */
.ffw-stats {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    margin-top: auto; 
    padding-top: 10px;
    border-top: 1px solid transparent;
}

.ffw-stat-item {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #65676b;
}

.ffw-icons-stack {
    display: flex;
    align-items: center;
    margin-right: 6px;
}

.ffw-icons-stack svg {
    width: 18px; height: 18px;
    display: block;
    border: 2px solid #fff; 
    border-radius: 50%;
    margin-left: -4px; 
}
.ffw-icons-stack svg:first-child { margin-left: 0; }

.ffw-share-item {
    gap: 6px;
}