
@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');

.lead, h1 {
    font-family: "Open Sans", sans-serif;
}

/* Cards */
.card {
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.card img {
    height: 130px; /* Réduction de la hauteur pour compact */
    object-fit: cover;
}

/* Card body padding ajusté pour réduire espace bas */
.card-body {
    padding: 6px 8px 4px 8px !important; /* top right bottom left */
}

.card-title {
    font-size: 0.9rem; /* titre plus petit */
    font-weight: 600;
    margin-bottom: 0.15rem; /* réduit l'espace sous le titre */
}

.card-text.truncate-2-lines {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.72rem; /* texte plus petit */
    line-height: 1.1rem;
    max-height: calc(1.1rem * 2);
    margin-top: 0.2rem; /* réduit l'espace bas */
    margin-bottom: 0.3rem; /* réduit l'espace bas */
}

.card .prix {
    font-size: 0.85rem;
    margin-bottom: 0; /* supprime espace bas */
}

/* Réduire le bouton Share et badges */
.card .badge {
    font-size: 0.65rem;
    padding: 0.2em 0.35em;
    margin-bottom: 0.15rem;
}

.card .dropdown button.btn-primary,
.card .dropdown button.btn-secondary {
    font-size: 0.7rem;
    padding: 0.10rem 0.4rem;
}

/* Hover léger */
.card:hover {
    transform: translateY(-2px);
    transition: 0.3s;
}

/* ======= Veo Link ======= */
/* Icône vidéo en bas à droite */
.video-icon {
    position: absolute;
    bottom: 50%;
    right: 8px;
    background: rgba(0,0,0,0.7);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    text-align: center;
    line-height: 35px;
    cursor: pointer;
    font-size: 18px;
    transition: transform 0.2s, background 0.2s;
    z-index: 1050;
}

.video-icon:hover {
    transform: scale(1.2);
    background: rgba(230, 57, 70, 0.8);
}

/* Mini preview overlay (sur hover image) */
.video-preview {
    position: absolute;
    bottom: 50%;
    right: 8px;
    width: 35px;
    height: 35px;
    background: rgba(0,0,0,0.6);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
    cursor: pointer;
    z-index: 1050;
}

.card:hover .video-preview {
    opacity: 1;
}

.card .video-preview:hover {
    opacity: 0;
}

.video-preview i {
    font-size: 18px;
    color: white;
}

/* ===================== RESPONSIVE ===================== */

/* Sur PC XL et plus (≥1200px) → 6 cards par ligne */
@media (min-width: 1200px) {
    .col-lg-2 {
        flex: 0 0 16.666667%;
        max-width: 16.666667%;
    }
}

/* Sur tablettes (992px–1199px) → 3 cards par ligne */
@media (min-width: 992px) and (max-width: 1199px) {
    .col-md-4 {
        flex: 0 0 33.3333%;
        max-width: 33.3333%;
    }
}

/* Sur petits écrans (768px–991px) → 2 cards par ligne */
@media (min-width: 768px) and (max-width: 991px) {
    .col-md-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Sur mobiles (<768px) → 2 cards par ligne */
@media (max-width: 767px) {
    .col-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Icône vidéo pour toutes les tailles ≥200px */
@media (min-width: 200px) {
    .video-icon {
        bottom: 60%;
    }
    
    .video-preview {
        bottom: 60%;
    }
}

