
body { 
    background: #f8f9fa; 
    font-family: "Open Sans", sans-serif; 
}

.card-img-top { 
    height: 200px; 
    object-fit: cover; 
    cursor: pointer; 
}

.badge-new { 
    position: absolute; 
    top: 5px; 
    left: 5px; 
    background: #0d6efd; 
    color: white; 
    padding: 3px 5px; 
    font-weight: bold; 
    border-radius: 5px; 
    font-size: 12px; 
}

.card {
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.card img {
    height: 130px; /* Réduction de la hauteur pour uniformité */
    object-fit: cover;
}

.card-body {
    padding: 10px !important;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

.card-text {
    font-size: 0.9rem;
    font-weight: bold;
    text-align: center;
    background: #e9f7ef; /* léger vert pastel */
    padding: 3px 6px;
    border-radius: 5px;
    display: inline-block;
    margin-top: 5px;
}

.card:hover {
    transform: translateY(-5px);
    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;
}

@media (min-width: 992px) { /* lg */
  .col-lg-2 {
    flex: 0 0 20%;
    max-width: 20%;
  }
}

/* Icône vidéo en bas à droite pour toutes les tailles ≥ 200px */
@media (min-width: 200px) {
    .video-icon {
        bottom: 60%;
    }
    
    .video-preview {
        bottom: 60%;
    }
}
