/* ==========================================================================
   Carte d'annonce — refonte 2026   (prefixe : lc-)
   ========================================================================== */
.lc {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.lc:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: var(--border);
}

/* Annonce sponsorisee : fond chaud, bordure corail, filet en haut et halo : elle se repere au premier regard */
.lc.is-sponsored {
    background: linear-gradient(180deg, #fff3ee 0%, #fffaf8 100%);
    border: 1.5px solid #f4a58f;
    box-shadow: 0 6px 18px rgba(224, 96, 63, 0.16);
}

.lc.is-sponsored::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
    height: 3px;
    background: linear-gradient(90deg, #e0603f, #fe7855 60%, #f9a98f);
}

.lc.is-sponsored:hover {
    border-color: #e0603f;
    box-shadow: 0 10px 26px rgba(224, 96, 63, 0.26);
}

.lc.is-sponsored .lc-price {
    color: #c8431f;
}

.lc-media {
    position: relative;
    display: block;
    aspect-ratio: 6 / 5;
    background: var(--bg-app);
    overflow: hidden;
}

.lc-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s;
}

.lc:hover .lc-media img {
    transform: scale(1.04);
}

.lc-noimg {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-muted);
    background: linear-gradient(160deg, var(--bg-app) 0%, #e9eef5 100%);
}

.lc-noimg small {
    padding: 0 10px;
    font-size: 11.5px;
    font-weight: 600;
    text-align: center;
}

.lc-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 2px 7px;
    font-size: 9.5px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.01em;
    border-radius: var(--radius-full);
}

.lc-badge-gold {
    color: #3a2a00;
    background: #fcd34d;
}

/* Sponsorise : pastille corail avec eclair (le dore reste reserve aux boutiques PRO) */
.lc-badge-sponsor {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    top: 10px;
    padding: 2px 8px 2px 6px;
    color: #fff;
    background: linear-gradient(135deg, #e0603f, #c8431f);
    box-shadow: 0 2px 6px rgba(200, 67, 31, 0.35);
}

.lc-badge-dark {
    color: #fff;
    background: rgba(26, 50, 85, 0.88);
}

/* Temps ecoule depuis la publication : « 4 minutes », « 2 heures », « 3 jours » */
.lc-age {
    position: absolute;
    left: 10px;
    bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px 3px 7px;
    font-size: 11.5px;
    line-height: 1.3;
    color: #fff;
    background: rgba(15, 23, 42, 0.72);
    border-radius: var(--radius-full);
    backdrop-filter: blur(4px);
}

.lc-age strong {
    font-weight: 700;
}

.lc-age svg {
    flex-shrink: 0;
}

.lc-count {
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: rgba(15, 23, 42, 0.5);
    border-radius: var(--radius-full);
}

/* Boutons rapides (favori, comparer) */
.lc-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lc-actions .btn-favorite-float,
.lc-compare {
    position: static;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.88);
    border: none;
    border-radius: 50%;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.14);
    cursor: pointer;
    transition: transform 0.15s, color 0.15s;
}

.lc-actions .btn-favorite-float svg {
    width: 18px;
    height: 18px;
}

.lc-compare:hover {
    color: var(--primary);
    transform: scale(1.1);
}

.lc-compare.active {
    color: #fff;
}

/* Corps */
.lc-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    padding: 12px 14px 14px;
    color: inherit;
}

.lc-body:hover {
    color: inherit;
}

.lc-price {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
}

.lc-price small {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

.lc-title {
    overflow: hidden;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--secondary);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lc-specs {
    font-size: 12.5px;
    color: var(--text-secondary);
}

.lc-loc {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 4px;
    overflow: hidden;
    font-size: 12.5px;
    color: var(--text-muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lc-loc svg {
    flex-shrink: 0;
}

/* Vendeur PRO */
.lc-seller {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    background: var(--bg-app);
    border-top: 1px solid var(--border-light);
}

.lc-seller:hover {
    background: var(--secondary-light);
}

.lc-seller-logo {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: 11px;
    font-weight: 800;
    color: #fff;
    background: var(--primary);
    border-radius: 6px;
}

.lc-seller-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}

.lc-seller-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    font-size: 12px;
    font-weight: 600;
    color: var(--secondary);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lc-seller-pro {
    padding: 1px 7px;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #3a2a00;
    background: var(--gold, #e6a417);
    border-radius: var(--radius-full);
}

@media (max-width: 576px) {
    .lc {
        border-radius: 14px;
    }

    .lc-body {
        padding: 10px 11px 12px;
    }

    .lc-price {
        font-size: 15px;
    }

    .lc-title {
        font-size: 13px;
    }

    .lc-specs,
    .lc-loc {
        font-size: 11.5px;
    }

    .lc-actions .btn-favorite-float,
    .lc-compare {
        width: 30px;
        height: 30px;
    }

    .lc-media {
        aspect-ratio: 5 / 4;
    }

    .lc-seller {
        padding: 8px 11px;
    }
}

/* Recherche par dates : total estime */
.lc-total {
    font-size: 12.5px;
    color: var(--text-secondary);
}

.lc-total strong {
    color: var(--secondary);
}

/* Souris : le bouton « comparer » n'apparait qu'au survol ou au focus (ou une fois le vehicule choisi), pour laisser la photo libre */
@media (hover: hover) and (pointer: fine) {
    .lc-compare:not(.active) {
        opacity: 0;
        transform: scale(0.9);
    }

    .lc:hover .lc-compare,
    .lc:focus-within .lc-compare {
        opacity: 1;
        transform: none;
    }
}
