:root {
    --header-color: #afb7f8;
}

/* Header */
.callout.primary {
    background-color: var(--header-color);
}

/* Bento cards (extends Foundation .card) */
.thumbnail {
    max-width: 550px;
    max-height: 350px;
    object-fit: cover;
}

.card.bento-card {
    position: relative;
    border-radius: 12px;
    border: none;
    overflow: hidden;
    background: #111;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    min-height: 250px; /* Hauteur uniforme pour toutes les cartes */
    transition: transform .2s ease, box-shadow .2s ease;
    text-decoration: none;
    margin-bottom: 0;
}

.card.bento-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
    color: #fff;
}

.card.bento-card .card-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .7;
    transition: opacity .3s ease;
    margin-bottom: 0;
}

.card.bento-card:hover .card-image {
    opacity: 0.9;
}

.card.bento-card .card-section {
    position: relative;
    padding: 1.5rem 1rem .75rem;
    font-weight: 600;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    width: 100%;
    z-index: 1;
    flex: 0 1 auto; /* Pour ne pas prendre toute la hauteur */
}
