
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

Body {
    font-family: "Open Sans", sans-serif;
    font-weight: 400;
    font-style: normal;
}

/* =====================
   CARD
===================== */
.card {
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-3px);
    transition: 0.3s;
}

/* IMAGE – compacte */
.card img {
    height: 135px;            /* ⬅️ réduit (PC) */
    object-fit: cover;
    width: 100%;
}

/* BODY – plus dense */
.card-body {
    padding: 8px !important;  /* ⬅️ réduit */
}

/* TITRE – 2 lignes max */
.card-title {
    font-size: 0.95rem;       /* ⬅️ plus compact */
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 4px;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* LIEU */
.card-body .location-badge {
    font-size: 0.7rem;
    padding: 2px 5px;
    border-radius: 5px;
    background: #e9ecef;
    color: #444;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

/* PRIX */
.card-price {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 4px 0;
}

/* DESCRIPTION – courte */
.card-desc {
    font-size: 0.78rem;
    color: #6c757d;
    line-height: 1.15rem;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
}

/* BADGE TYPE */
.type-badge {
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 5px;
    color: white;
}

/* =====================
   FILTER / PAGINATION
===================== */
.filter-bar {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.pagination .page-item.active .page-link {
    background-color: #198754;
    border-color: #198754;
}

/* =====================
   SHARE BUTTON
===================== */
.card .dropdown button.btn-primary,
.card .dropdown button.btn-secondary {
    font-size: 0.7rem;
    padding: 0.10rem 0.4rem;
}

/* =====================
   RESET BUTTON
===================== */
.btn-reset-ghost {
    border: 1px solid #d5d7da;
    background: #3b3a3d;
    color: #e0e5ed;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.25s ease;
    text-decoration: none !important;
}

.btn-reset-ghost:hover {
    background: #e9ecef;
    border-color: #c8cbcd;
    color: #333;
    transform: translateY(-1px);
}

.btn-reset-ghost:active {
    background: #dfe3e6;
    border-color: #babec2;
    transform: scale(0.97);
}

/* =====================
   VIDEO ICON
===================== */
.video-icon,
.video-preview {
    position: absolute;
    bottom: 60%;
    right: 8px;
    width: 32px;              /* ⬅️ légèrement réduit */
    height: 32px;
    border-radius: 50%;
    background: rgba(0,0,0,0.7);
    color: white;
    text-align: center;
    line-height: 32px;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    z-index: 1050;
}

.video-icon:hover {
    transform: scale(1.15);
    background: rgba(230, 57, 70, 0.8);
}

.video-preview {
    opacity: 0;
}

.card:hover .video-preview {
    opacity: 1;
}

/* =====================
   GRID
===================== */
/* 5 cards par ligne sur PC */
@media (min-width: 992px) {
    .col-5-custom {
        width: 16.6667%;
        flex: 0 0 16.6667%;
    }
}


/* 2 cards par ligne sur mobile */
@media (max-width: 768px) {
    .col-5-custom {
        width: 50%;
        flex: 0 0 50%;
    }
}

/* IMAGE MOBILE */
@media (max-width: 576px) {
    .card img {
        height: 110px;
    }
}
