
.feed { 
    max-width: 600px;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.post {
    display: flex;
    gap: 12px;
    background: #fff; 
    padding: 12px; 
    margin-bottom: 1px;
    border-bottom: 1px solid #eff3f4;
    transition: background 0.2s ease;
    cursor: pointer;
}

.post:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

.post_1 {
    display: flex;
    gap: 12px;
    background: #fff; 
    padding: 12px; 
    margin-bottom: 1px; /* Style X: les posts se suivent de près */
    border: 1px solid #eff3f4; /* Ligne de séparation fine */
}

.post-content_1 {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0; /* Important pour le troncage de texte en flex */
}

.post-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0; /* Important pour le troncage de texte en flex */
}

.meta {
    font-size: 0.9em; 
    color: #536471; 
    margin-bottom: 5px;
}

h3 {
    margin: 0;
    font-size: 1em;
    font-weight: 700;
    line-height: 1.3;
    color: #0f1419;
}

.post-description {
    margin: 4px 0 8px 0;
    font-size: 0.95em;
    color: #333;
    line-height: 1.4;

    /* 1. La norme standard (Future-proof) */
    line-clamp: 3; 

    /* 2. L'implémentation actuelle (Indispensable) */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;  
    
    /* 3. Sécurité pour les très vieux navigateurs */
    overflow: hidden;
}

.show-more:hover {
    text-decoration: underline;
}

.post-media {
    margin-top: 8px;
    width: 100%;
    border: 1px solid #cfd9de;
    border-radius: 16px;
    overflow: hidden;
    background-color: #f7f7f7;
}

.post-media img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    display: block;
}

a.post-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.9em;
    font-weight: 600;
    color: #1d9bf0;
    text-decoration: none;
}

a.post-link:hover {
    text-decoration: underline;
}
