.pcg-grid-container {
    display: grid;
    margin-bottom: 2em;
    width: 100%;
}

@media (max-width: 768px) {
    .pcg-grid-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
    }
}

.pcg-vignette {
    display: block;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    width: 100%;
    background-color: #f0f0f0;
    box-sizing: border-box; 
    z-index: 1; 
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pcg-vignette:hover,
.pcg-vignette:focus {
    text-decoration: none;
}

.pcg-vignette:hover .pcg-image {
    transform: scale(1.03);
}

.pcg-image {
    display: block;
    width: 100%;
    object-fit: cover;
    z-index: 2;
    transition: transform 0.3s ease;
}

.pcg-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    /* Le padding est maintenant géré dynamiquement par le PHP */
    text-align: left;
    backdrop-filter: blur(2px);
    z-index: 10;
}

.pcg-category-title {
    font-weight: 600;
    font-size: 16px;
    margin: 0 0 5px 0 !important;
}

.pcg-post-title {
    font-size: 14px;
    margin: 0 !important;
    line-height: 1.4;
}