
/* =========================
   GRID
========================= */

.contest-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 22px;
}

/* =========================
   CARD
========================= */

.contest-item {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;

    border: 1px solid rgba(0,0,0,0.06);

    box-shadow: 0 10px 25px rgba(0,0,0,0.06);

    transition: 0.25s ease;

    position: relative;
}

.contest-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

/* =========================
   IMAGE HERO
========================= */

.contest-cover {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.contest-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* effet spotlight concours */
.contest-overlay {
    position: absolute;
    inset: 0;

    background: linear-gradient(to top, rgba(0,0,0,0.35), transparent);

    display: flex;
    align-items: flex-end;
    justify-content: flex-end;

    padding: 10px;
}

/* icône concours */
.contest-icon {
    font-size: 1.2rem;
    background: rgba(255,255,255,0.2);
    padding: 6px 10px;
    border-radius: 10px;
    backdrop-filter: blur(6px);
}

/* =========================
   BODY
========================= */

.contest-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* =========================
   TITLE (CONCOURS STYLE)
========================= */

.contest-title {
    font-size: 1.1rem;
    font-weight: 900;
    color: #111827;
    line-height: 1.3;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* =========================
   ORGANISATEUR
========================= */

.contest-organizer {
    font-size: 0.85rem;
    color: #6b7280;
}

/* =========================
   TYPE VOTE (SOUS TITRE)
========================= */

.contest-type {
    font-size: 0.8rem;
    font-weight: 700;

    padding: 6px 10px;
    border-radius: 999px;

    display: inline-flex;
    width: fit-content;
}

/* GRATUIT */
.contest-type.gratuit {
    background: rgba(34,197,94,0.12);
    color: #16a34a;
    border: 1px solid rgba(34,197,94,0.25);
}

/* PAYANT */
.contest-type.payant {
    background: rgba(237, 58, 58, 0.12);
    color: #940000;
    border: 1px solid rgba(237, 58, 58, 0.25);
}

/* =========================
   CTA (CONCOURS ACTION)
========================= */

.contest-action {
    margin-top: 8px;

    text-align: center;
    padding: 11px;

    border-radius: 12px;

    font-weight: 800;
    font-size: 0.85rem;

    color: white;
    text-decoration: none;

    background: linear-gradient(135deg, #7c3aed, #a855f7);

    transition: 0.2s ease;
}

.contest-action:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {
    .contest-list {
        grid-template-columns: 1fr;
    }
}