
@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;
}

/* ======= Cartes produits ======= */
.card {
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    height: 100%;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

/* IMAGE – hauteur unique et compacte */
.card img {
    height: 130px;
    object-fit: cover;
    width: 100%;
}

/* BODY COMPACT */
.card-body {
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding-bottom: 1px;
}

/* TITRE LIMITÉ */
.card-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 3px;
    line-height: 1;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* DESCRIPTION COURTE */
.card-text {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 4px;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* PRIX */
.card p.fw-bold {
    font-size: 14px;
    margin-top: auto;
}

/* ======= Barre filtre ======= */
.filter-bar {
    background: #fefefe;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* ======= Pagination ======= */
.pagination .page-item.active .page-link {
    background-color: #198754;
    border-color: #198754;
}

.pagination .page-link {
    border-radius: 8px;
    margin: 0 3px;
}

/* ======= Badge localisation ======= */
.localisation-badge span{
    display: inline-flex;
    align-items: center;
    font-size: 0.65rem;
    background: rgb(51 69 101);
    color: #fff;
    padding: 2px 6px;
    border-radius: 5px;
    margin-bottom: 4px;
    white-space: nowrap;
}

/* Bouton reset */
.btn-reset {
    display: inline-block;
    padding: 6px 12px;
    background-color: #5d5d77;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    margin-left: 5px;
    margin-top: 5px;
}

.btn-reset:hover {
    background-color: #bbb;
}

/* Réduire le bouton Share */
.card .dropdown button.btn-primary,
.card .dropdown button.btn-secondary {
    font-size: 0.7rem;
    padding: 0.1rem 0.4rem;
}

/* ======= Vidéo ======= */
.video-icon,
.video-preview {
    position: absolute;
    right: 8px;
    bottom: 60%;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(0,0,0,0.65);
    color: #fff;
    font-size: 14px;
    line-height: 30px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
}

.video-preview {
    opacity: 0;
}

.card:hover .video-preview {
    opacity: 1;
}

/* ======= Responsive grid ======= */
@media (min-width: 1200px) {
    .row.g-4 > [class*="col-"] {
        flex: 0 0 16.6667%;
        max-width: 16.6667%;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .row.g-4 > [class*="col-"] {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

@media (max-width: 991px) {
    .row.g-4 > [class*="col-"] {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* MOBILE */
@media (max-width: 576px) {
    .card img {
        height: 120px;
    }

    .card-text {
        display: none;
    }
}

