@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

#annonces {
    font-family: 'Roboto', sans-serif;
    color: #162C72;
}

/* ================= GRID ================= */
#annonces #item-layout {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

/* ================= CARD ================= */
#annonces .card {
    border: none;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.35s ease;
    position: relative;
}

#annonces .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.18);
}

/* ================= IMAGE ================= */
#annonces .col-img {
    position: relative;
    overflow: hidden;
    height: 240px;
}

#annonces .col-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

#annonces .card:hover .col-img img {
    transform: scale(1.1);
}

/* ================= DARK GRADIENT OVERLAY ================= */
#annonces .col-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.55) 0%,
        rgba(0,0,0,0.15) 40%,
        transparent 70%
    );
    z-index: 1;
}

/* ================= PRICE OVERLAY  ================= */
#annonces .text-success {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 3;

    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(10px);

    padding: 8px 14px;
    border-radius: 14px;

    font-size: 15px;
    font-weight: 700;
    color: #162C72 !important;

    box-shadow: 0 10px 25px rgba(0,0,0,0.18);
}

/* ================= BADGES ================= */
#annonces .corner-ribbon {
    position: absolute;
    z-index: 4;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    border-radius: 10px;
    backdrop-filter: blur(6px);
}

#annonces .top-left { top: 170px; left: 12px; }
#annonces .top-right { top: 12px; right: 12px; }
#annonces .bottom-left { bottom: 12px; left: 12px; }
#annonces .bottom-right { bottom: 12px; right: 12px; }

.bg-favoris { background: rgba(255, 176, 32, 0.9); }
.bg-new { background: rgba(255, 56, 92, 0.9); }
.bg-exclusivite { background: rgba(108, 92, 231, 0.9); }
.bg-compromis { background: rgba(99, 110, 114, 0.9); }
.bg-loue { background: rgba(0, 184, 148, 0.9); }

/* ================= BODY ================= */
#annonces .col-body {
    padding: 16px 18px;
}

/* TITLE */
#annonces .card-title {
    font-size: 17px;
    font-weight: 600;
    color: #162C72;
    margin-bottom: 8px;
}

/* INFOS */
#annonces .card span {
    font-size: 13px;
    color: #162C72;
    opacity: 0.75;
    margin-right: 6px;
}

/* DESCRIPTION */
#annonces .description p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;

    font-size: 13px;
    color: #162C72;
    opacity: 0.75;
    line-height: 1.5;
    margin-top: 10px;
}

#radio-card,
#radio-list {
    display: none !important;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
    #annonces #item-layout {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    #annonces #item-layout {
        grid-template-columns: 1fr;
    }
}

/* LINKS CLEAN */
#annonces a {
    text-decoration: none;
    color: inherit;
}