
/* ========================================
   LES RECETTES DE GRANNY
   Cartes des recettes
   ======================================== */

.cards-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

/* Colonnes */
.cards-grid > .col {
    float: none !important;
    display: flex;
    margin-left: 0 !important;
    margin-right: 0;
    margin-bottom: 28px;
}

/* Cartes */
.cards-grid .card {
    width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;

    background: #fffdf9;

    border: 1px solid #a9bba0;
    border-radius: 20px;
    overflow: hidden;

    /* Ombre vert sauge */
    box-shadow:
        0 8px 24px rgba(100, 135, 90, 0.30),
        0 3px 10px rgba(100, 135, 90, 0.20);

    transition: transform 0.25s ease,
                box-shadow 0.25s ease;
}

/* Survol */
.cards-grid .card:hover {
    transform: translateY(-3px);

    box-shadow:
        0 12px 30px rgba(100, 135, 90, 0.40),
        0 5px 12px rgba(100, 135, 90, 0.25);
}

/* Contenu supérieur */
.cards-grid .card-content:first-child {
    flex: 1;
}

/* Photos */
.cards-grid .card-image img {
    display: block;
    width: 100%;
    height: 230px;
    object-fit: cover;
}

/* Partie inférieure */
.cards-grid .card-content:last-of-type {
    margin-top: auto;
}

/* Lien Voir la recette */
.cards-grid .card a {
    color: #526f48;
    font-weight: 600;
    text-decoration: none;
}

.cards-grid .card a:hover {
    color: #354d30;
    text-decoration: underline;
}

/* Panneau de détails */
.cards-grid .card-reveal {
    border-radius: 20px;
}

/* Responsive */
@media (max-width: 600px) {
    .cards-grid > .col {
        width: 100%;
    }
}
