.wp-block-post {
    background-color: #f9f8f6;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    padding: 1rem;
    width: 320px;
    margin: 1rem;
    display: inline-block;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid #eaeaea;
}

/* articles */
.wp-block-post.post {
    border-top: 3px solid #4b6584;
}

/*  produits */
.wp-block-post.produit {
    border-top: 3px solid #E68799;
}

/* recettes */
.wp-block-post.recette {
    border-top: 3px solid #20bf6b;
}

/*  liens */
.wp-block-post a {
    color: #333;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    text-decoration: none;
    display: block;
    padding: 0.5rem 0;
    transition: color 0.2s ease;
}

.wp-block-post a:hover {
    color: #E68799;
}

.wp-block-post a::first-letter {
    text-transform: uppercase;
}
            
/*  images */
.produit-image {
    text-align: center;
    margin-bottom: 1rem;
    overflow: hidden;
    border-radius: 5px;
}

.produit-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 180px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* cards */
.wp-block-post:hover {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-5px);
    cursor: pointer;
}

.wp-block-post:hover .produit-image img {
    transform: scale(1.05);
}

/* Titre */
.type-title {
    position: relative;
    text-align: center;
    margin: 3rem auto;
    width: 50%;
}

.type-title h2 {
    display: inline-block;
    padding: 0.75rem 2rem;
    width: 100vh;
    font-weight: 700;
    letter-spacing: 0.5px;
    font-size: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Container */
.type-section {
    margin-bottom: 3rem;
}

/* listes de résultats */
.wp-block-post-template {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    padding: 0;
    list-style-type: none;
}

/*  responsive */
@media (max-width: 768px) {
    .wp-block-post {
        width: calc(50% - 2rem);
    }
    
    .type-title {
        width: 80%;
    }
}

@media (max-width: 576px) {
    .wp-block-post {
        width: 100%;
    }
}