/* ================================================
   LJ Tendances — v1.0.0
   Layout fidèle au design de référence
   ================================================ */

/* === CONTENEUR PRINCIPAL === */
.ljt-wrap {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
    padding: 28px 28px 22px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    max-width: 520px;
}

/* === EN-TÊTE === */
.ljt-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
}

.ljt-icon {
    display: flex;
    align-items: center;
    color: #e02020;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.ljt-icon svg {
    width: 22px;
    height: 22px;
}

.ljt-titre {
    font-size: 1.35rem;
    font-weight: 700;
    color: #111111;
    margin: 0;
    padding: 0;
    line-height: 1.2;
    border: none;
}

/* === LISTE === */
.ljt-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* === ITEM === */
.ljt-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 10px 8px;
    border-radius: 8px;
    transition: background 0.18s ease;
}

.ljt-item:hover {
    background: #fafafa;
}

/* === BADGE NUMÉROTÉ === */
.ljt-rank {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: #fde8e8;
    color: #e02020;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    user-select: none;
}

/* === MINIATURE (optionnelle) === */
.ljt-thumb-link {
    flex-shrink: 0;
}

.ljt-thumb {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

/* === CONTENU TEXTE === */
.ljt-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.ljt-post-title {
    font-size: 0.975rem;
    font-weight: 500;
    color: #1a1a1a;
    text-decoration: none;
    line-height: 1.45;
    display: block;
    transition: color 0.15s ease;
}

.ljt-post-title:hover,
.ljt-post-title:focus {
    color: #e02020;
    text-decoration: none;
}

.ljt-excerpt {
    font-size: 0.82rem;
    color: #666666;
    margin: 0;
    line-height: 1.5;
}

/* === RESPONSIVE === */
@media (max-width: 480px) {
    .ljt-wrap {
        padding: 20px 16px 16px;
        border-radius: 10px;
    }

    .ljt-rank {
        width: 34px;
        height: 34px;
        font-size: 0.9rem;
        border-radius: 6px;
    }

    .ljt-item {
        gap: 12px;
        padding: 8px 4px;
    }

    .ljt-post-title {
        font-size: 0.92rem;
    }
}
