article.card {
    width: 300px;
    height: 350px;
    border-radius: 3px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
    overflow: hidden;
    border-radius: 10px;
}

article.card .thumb {
    width: auto;
    height: 260px;
}

article.card .infos {
    width: 100%;
    min-height: 350px;
    position: absolute;
    top: calc(100% - 130px);
    padding: 10px 15px;
    border-radius: 0px 0px 10px 10px;
    transition: 0.4s 0.15s cubic-bezier(0.17, 0.67, 0.5, 1.03);
    backdrop-filter: blur(4px);
    overflow: hidden;
}

.cards:nth-child(odd) .card .infos {
    background: #0d1c53;
    opacity: 0.8;
}
.cards:nth-child(even) .card .infos {
    background: #DF242C;
    opacity: 0.8;
}

.cards:nth-child(odd) .card .infos .btn_voir_plus {
    
    background: #DF242C;
}
.cards:nth-child(even) .card .infos .btn_voir_plus {
    
    background: #0d1c53;
}

article.card .infos .title {
    position: relative;
    margin: 10px 0;
    color: #fff;
    font-size: 14px;
    text-shadow: 0 0 0px #32577f;
    text-align: left;
}

article.card .infos .date {
    font-size: 13px;
    color: white;
    line-height: 1.5;
}

article.card .infos .txt {
    margin-top: 15px;
    line-height: 1.5;
    font-size: 13px;
    color: white;
    opacity: 0;
    transition: 0.5s 0.25s cubic-bezier(0.17, 0.67, 0.5, 1.03);
    max-height: 250px; /* Limite la hauteur visible */
    overflow-y: auto; /* Ajoute le scroll vertical */
    padding-right: 10px; /* Ajoute un espace pour le scroll */
    scrollbar-width: auto; /* Barre de scroll par défaut */
    scrollbar-color: rgba(255, 255, 255, 0.5) transparent; /* Couleur personnalisée */
}

/* Style pour la barre de défilement dans Chrome et Safari */
article.card .infos .txt::-webkit-scrollbar {
    width: 8px;
}

article.card .infos .txt::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.6); /* Couleur du curseur */
    border-radius: 10px;
}

article.card .infos .txt::-webkit-scrollbar-track {
    background-color: transparent;
}

/* Animation subtile au survol pour attirer l'attention */
article.card .infos .txt:hover {
    animation: scroll-subtle 3s ease-in-out;
    animation-fill-mode: forwards; /* Conserve la position finale */
}

/* Animation de léger scroll */
@keyframes scroll-subtle {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px); /* Scroll vers le haut */
    }
    100% {
        transform: translateY(0); /* Revient à la position initiale */
    }
}


article.card p {
    color: white !important;
    font-size: 13px !important;
}

article.card:hover .infos {
    top: 0;
}

article.card:hover .infos .seats,
article.card:hover .infos .txt,
article.card:hover .infos .details {
    opacity: 1;
}

