/* ==========================================================================
   Style de carte : small_card
   ========================================================================== */


/* --- Structure de la carte --- */
.card.small_card {
    width: 255px;
    height: 195px;
    padding: 20px 20px 35px 20px;
    background-color: var(--color-base-white);
    box-shadow: 4px 4px 8px 0 rgba(0, 0, 0, 0.05);
    margin-bottom: 8px;
    border-radius: var(--global--border-radius);
    overflow: hidden;
    transition: background-color 0.25s ease;

    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    align-items: flex-start;
    gap: 16px;
    flex-shrink: 0;
    position: relative;
}
/* :hover maintenu comme fallback si JS désactivé ; .active géré par general.js */
.card.small_card:hover,
.card.small_card.active {
    box-shadow: none;
    background-color: var(--color-base-grey-hover);
}

/* --- Image : 16/9 --- */
.card.small_card .card-image {
    margin: 0;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border-radius: var(--global--border-radius);
    background-attachment: scroll;
    flex-shrink: 0;
    align-self: stretch;
}

/* --- Titre : max 2 lignes, hauteur fixe pour aligner entre cartes --- */
.card.small_card .card-title {
    height: 60px;
    padding: 0;
    margin: 0;
    color: var(--color-base-black);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.25s ease;
}

.card.small_card a {
    color: var(--color-base-black);
	text-transform: none;    
    text-align: left;
}

/* Le lien principal couvre toute la carte */
.card.small_card a::after {
    content: "";
    position: absolute;
    inset: 0;
}



