/* Resources Page Redesign — 3-column layout: sidebars + responsive card grid */

.lplf-wrap {
    display: flex;
    max-width: 1700px;
    margin: 0 auto;
    padding: 40px 24px 60px;
    gap: 32px;
    align-items: flex-start;
    box-sizing: border-box;
}

.lplf-sidebar {
    flex: 0 0 230px;
    max-width: 230px;
}

.lplf-main {
    flex: 1;
    min-width: 0;
}

.lplf-page-title {
    font-size: 30px;
    font-weight: 700;
    margin: 0 0 28px;
    color: #1d2327;
}

/* La grille : 3 colonnes par défaut (PC standard) */
.lplf-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.lplf-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    display: flex;
    flex-direction: column;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.lplf-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.lplf-card-image-link {
    display: block;
}

.lplf-card-image {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
}

.lplf-card-image-placeholder {
    background: linear-gradient(135deg, #e9edf1, #dfe4ea);
}

.lplf-card-body {
    padding: 12px 14px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.lplf-card-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 10px;
}

.lplf-card-title a {
    color: #1d2327;
    text-decoration: none;
}

.lplf-card-title a:hover {
    color: #3c96c6;
}

.lplf-card-meta {
    font-size: 12px;
    color: #8c8f94;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    margin-bottom: 12px;
}

.lplf-card-excerpt {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin: 0 0 16px;
    flex: 1;
}

.lplf-card-readmore {
    font-size: 14px;
    font-weight: 600;
    color: #3c96c6;
    text-decoration: none;
}

.lplf-card-readmore:hover {
    text-decoration: underline;
}

.lplf-pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.lplf-pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 6px;
    background: #f6f7f7;
    color: #1d2327;
    text-decoration: none;
    font-size: 14px;
}

.lplf-pagination .page-numbers.current {
    background: #3c96c6;
    color: #fff;
}

/* Colonnes latérales */
.lplf-widget {
    margin-bottom: 26px;
}

.lplf-widget-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 12px;
    color: #1d2327;
}

.lplf-placeholder {
    background: #f6f7f7;
    border: 1px dashed #ccc;
    padding: 16px;
    border-radius: 6px;
    font-size: 13px;
    color: #777;
    line-height: 1.5;
}

/* Grand écran : 4 cartes par rangée */
@media (min-width: 1900px) {
    .lplf-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Tablette : 2 cartes par rangée, colonnes latérales empilées au-dessus du contenu */
@media (max-width: 1024px) {
    .lplf-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .lplf-wrap {
        flex-direction: column;
    }
    .lplf-sidebar {
        flex: none;
        max-width: 100%;
        width: 100%;
    }
}

/* Mobile : 1 carte par rangée */
@media (max-width: 600px) {
    .lplf-grid {
        grid-template-columns: 1fr;
    }
    .lplf-page-title {
        font-size: 24px;
    }
}
