.pmw-blog-header {
    position: relative;
    padding: 0;
    text-align: center;
    box-shadow: 0 12px 28px rgba(0,0,0,.12);
    overflow: hidden;
    margin-bottom: 50px;
}

.titre-blog {
    font-size: 3rem;
    line-height: 1.1;
    padding-top: 1.5rem;
}

.pmw-blog-subtitle {
    max-width: 740px;
    margin: 0 auto;
    padding: 0 15px 15px;
}

.pmw-blog-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (min-width: 530px) and (max-width: 899px) {
    .pmw-blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 529px) {
    .pmw-blog-grid {
        grid-template-columns: 1fr;
    }
}

.pmw-post-card {
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 20px 50px rgba(0,0,0,.08);
    transition: transform .2s ease, box-shadow .2s ease;
    position: relative;
}

.pmw-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 70px rgba(0,0,0,.12);
}

.pmw-thumb-wrapper {
    position: relative;
}

.pmw-thumb-img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.pmw-cats {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

.pmw-cats span {
    display: inline-block;
    background: rgba(0,0,0,.72);
    color: #fff;
    font-size: 12px;
    line-height: 1;
    padding: 6px 10px;
    border-radius: 999px;
}

.pmw-body {
    padding: 18px 18px 20px;
    text-align: center;
}

.pmw-title {
    margin: 0 0 10px;
    font-size: 13.5px; /* ≤ 590px */
    line-height: 1.5;
    font-weight: 800;
}

@media (min-width: 591px) and (max-width: 989px) {
    .pmw-title { font-size: 14.5px; }
}

@media (min-width: 990px) and (max-width: 1200px) {
    .pmw-title { font-size: 14px; }
}

@media (min-width: 1201px) {
    .pmw-title { font-size: 14.5px; }
}

.pmw-title a {
    text-decoration: none;
    color: inherit;
}

.pmw-title a:hover {
    text-decoration: underline;
}

.pmw-excerpt {
    margin: 0 0 14px;
    opacity: .85;
    line-height: 1.6;
    /* 12px (mobile) → 13px (desktop ≥ 900px) */
    font-size: clamp(12px, calc(11.5px + 0.2vw), 13px);
    padding-top: 10px;
}

.pmw-pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pmw-pagination a,
.pmw-pagination span {
    padding: 8px 14px;
    border-radius: 8px;
    background: #f1f5f9;
    text-decoration: none;
    font-weight: 600;
    color: inherit;
    transition: background .2s ease;
}

.pmw-pagination a:hover {
    background: rgba(31,186,165,.15);
}

.pmw-pagination .current {
    background: var(--pmw-accent, #1fbaa5);
    color: #fff;
}

.pmw-grid-wrap.is-loading * {
    transition: none !important;
}

@keyframes pmw-shimmer {
    0%   { background-position: -600px 0 }
    100% { background-position:  600px 0 }
}

.pmw-skeleton-card {
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 20px 50px rgba(0,0,0,.06);
}

.pmw-skeleton-thumb {
    aspect-ratio: 16 / 9;
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 1200px 100%;
    animation: pmw-shimmer 1.4s infinite linear;
}

.pmw-skeleton-body {
    padding: 18px 18px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.pmw-skeleton-line {
    width: 85%;
    height: 14px;
    border-radius: 6px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 1200px 100%;
    animation: pmw-shimmer 1.4s infinite linear;
}

.pmw-skeleton-line--mid   { width: 65%; }
.pmw-skeleton-line--short { width: 40%; height: 10px; }
