/* Fil d’annonces — cartes contrastées, images contenues, liens courts */
body.tcf-posts-page {
    background: #e6e8ee;
    min-height: 100vh;
}

.tcp-feed-page {
    max-width: 680px;
    margin: 0 auto;
    padding: 1.5rem 1rem 3rem;
}

.tcp-feed-hero {
    margin-bottom: 1.15rem;
}

.tcp-feed-hero h1 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.02em;
}

.tcp-feed {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tcp-feed__loading,
.tcp-feed__empty,
.tcp-feed__error {
    text-align: center;
    padding: 2rem 1rem;
    color: #6b7280;
    background: #fff;
    border-radius: 14px;
    border: 1px solid #d7dbe3;
    font-size: 0.95rem;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.tcp-card {
    background: #ffffff;
    border: 1px solid #d0d5dd;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.07);
}

.tcp-card__body {
    padding: 0.95rem 1.05rem 0.55rem;
    font-size: 0.95rem;
    color: #1f2937;
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
}

.tcp-card__see-more {
    display: inline;
    border: 0;
    padding: 0;
    margin: 0;
    background: transparent;
    color: #65676b;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.tcp-card__see-more:hover,
.tcp-card__see-more:focus-visible {
    text-decoration: underline;
    color: #1f2937;
}

.tcp-card__premium-pill {
    display: inline-block;
    margin: 0 0 0.45rem;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: rgba(211, 13, 13, 0.1);
    color: var(--main-color, #d30d0d);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.tcp-card__media-wrap + .tcp-card__body {
    padding-top: 0.85rem;
}

.tcp-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0.15rem 1.05rem 0.55rem;
    max-width: calc(100% - 2.1rem);
    padding: 0;
    border: 0;
    background: transparent;
    color: #d30d0d;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.35;
    min-width: 0;
}

.tcp-card__link:hover,
.tcp-card__link:focus-visible {
    color: #b40b0b;
    text-decoration: underline;
}

.tcp-card__link i {
    flex-shrink: 0;
    font-size: 1rem;
}

.tcp-card__link-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Média type Facebook : contenu dans la carte, hauteur modérée, pas plein écran */
.tcp-card__media-wrap {
    width: auto;
    margin: 0 0.85rem 0.35rem;
    padding: 0;
    background: #0f1115;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.tcp-card__media {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: min(58vh, 520px);
    object-fit: contain;
    background: #0f1115;
}

.tcp-card__actions {
    display: flex;
    align-items: center;
    padding: 0.3rem 0.85rem 0.7rem;
    border-top: 1px solid #eef0f4;
}

.tcp-like-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 0;
    background: transparent;
    color: #4b5563;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 0.4rem 0.55rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.tcp-like-btn:hover {
    background: #fef2f2;
    color: #d30d0d;
}

.tcp-like-btn.is-liked {
    color: #d30d0d;
}

.tcp-like-btn.is-liked:hover {
    background: #fef2f2;
    color: #d30d0d;
}

.tcp-like-btn i {
    font-size: 1.2rem;
}

@media (max-width: 991px) {
    .tcp-feed-page {
        padding: 1.1rem 0.85rem 2.5rem;
    }

    .tcp-card__media-wrap {
        margin: 0 0.75rem 0.3rem;
        border-radius: 10px;
    }

    .tcp-card__media {
        max-height: min(52vh, 460px);
    }
}

@media (max-width: 600px) {
    .tcp-feed-page {
        padding: 0.85rem 0.7rem 2.4rem;
        max-width: none;
    }

    .tcp-feed-hero {
        padding: 0;
    }

    .tcp-feed-hero h1 {
        font-size: 1.2rem;
    }

    .tcp-feed {
        gap: 0.75rem;
    }

    .tcp-card {
        border-radius: 12px;
        border: 1px solid #d0d5dd;
    }

    .tcp-card__body {
        padding: 0.8rem 0.85rem 0.45rem;
        font-size: 0.9rem;
    }

    .tcp-card__link {
        margin: 0.1rem 0.85rem 0.45rem;
        max-width: calc(100% - 1.7rem);
        font-size: 0.84rem;
    }

    .tcp-card__media-wrap {
        margin: 0 0.65rem 0.25rem;
        border-radius: 8px;
    }

    .tcp-card__media {
        max-height: min(48vh, 400px);
        width: 100%;
    }

    .tcp-card__actions {
        padding: 0.25rem 0.65rem 0.55rem;
    }
}
