/**
 * WPSUBS Client - Front-end styles
 *
 * Uses tk_tools CSS variables for theming:
 * --tk-primary-color, --tk-secondary-color, --tk-background-color, etc.
 *
 * @package WPSUBS_Client
 */

/* ============================================================
   SHARED: Single Publication Layout (sidebar 25% + main 75%)
   Mirrors tk_tools actualite-commentee / flash-actus pattern
   ============================================================ */

.wpsubs-publication-single {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px;
}
.synced_publication-template-default .tk-login-panel {
    margin-left: 0px !important;
}
/* Page title with gradient underline */
.wpsubs-publication-single .section-page-title {
    margin-bottom: 30px;
    padding-top: 50px;
}

.wpsubs-publication-single .section-page-title h1 {
    font-family: Ubuntu, sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--tk-primary-color, #1A44C0);
    padding-bottom: 10px;
}

/* Container: sidebar + main */
.wpsubs-publication-container {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* --- Sidebar column --- */
.wpsubs-publication-sidebar-col {
    width: 25%;
    flex-shrink: 0;
}

.wpsubs-publication-meta-box {
    border: 2px solid var(--tk-primary-color, #1A44C0);
    border-radius: 15px;
    padding: 20px;
    background: #fff;
}

.wpsubs-publication-meta-item {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    margin-bottom: 8px;
}

.wpsubs-publication-meta-item strong {
    display: block;
}

.wpsubs-publication-meta-item-margin {
    margin: 15px 0;
}

.wpsubs-publication-meta-ref {
    color: var(--tk-primary-color, #1A44C0);
    font-size: 13px;
}

.wpsubs-publication-illustration {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.wpsubs-publication-illustration img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* --- Main column --- */
.wpsubs-publication-main-col {
    width: 75%;
}

.wpsubs-publication-title-bloc {
    background: #fff;
    padding: 30px 5%;
    border-radius: 15px 15px 0 0;
}

.wpsubs-publication-title {
    font-family: Ubuntu, sans-serif;
    font-size: 25px;
    font-weight: 700;
    color: var(--tk-primary-color, #1A44C0);
    line-height: 1.3;
    margin: 0 0 10px;
}

.wpsubs-publication-title-en {
    font-family: Ubuntu, sans-serif;
    font-size: 20px;
    font-weight: 400;
    font-style: italic;
    color: var(--tk-primary-color, #1A44C0);
    margin: 0;
}

.wpsubs-publication-keywords {
    padding: 10px 5%;
    font-size: 14px;
    color: #555;
    background: #fff;
}

.wpsubs-publication-dapres {
    font-size: 14px;
    font-style: italic;
    color: #444;
}

.wpsubs-publication-reference-revue {
    font-size: 13px;
    color: #666;
}

/* Content bloc with gradient separator */
.wpsubs-publication-bloc {
    background: #fff;
    padding: 10px 5%;
    position: relative;
}

.wpsubs-publication-bloc:last-child::after {
    display: none;
}

.wpsubs-publication-dapres::after,
.wpsubs-publication-reference-revue::after {
    display: none;
}

/* Card group separators */
.wpsubs-bloc-card-last::after {
    display: none;
}

.wpsubs-bloc-card-last {
    border-radius: 0 0 15px 15px;
}

.wpsubs-bloc-card-first {
    border-radius: 15px 15px 0 0;
}

.wpsubs-bloc-card-first.wpsubs-bloc-card-last {
    border-radius: 15px;
}

.wpsubs-bloc-separator-after {
    margin-bottom: 25px;
}

/* Highlight block */
.wpsubs-bloc-highlight {
    background: color-mix(in srgb, var(--tk-secondary-color, #c73e40) 10%, white);
}

.wpsubs-publication-bloc-title {
    font-family: Ubuntu, sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 15px 0 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid currentColor;
}

.wpsubs-publication-bloc-content {
    font-family: Roboto, sans-serif;
    font-size: 15px;
    color: #333;
    line-height: 1.7;
}

.wpsubs-publication-bloc-content p {
    margin-bottom: 12px;
    text-align: justify;
}

/* WPSUBS color classes (used in content blocks, references, résumé, abstract) */
.wpsubs-rouge { color: #c73e40; }
.wpsubs-violet { color: #6f488c; }
.wpsubs-bleu { color: #364a96; }
.wpsubs-bold { font-weight: 700; }
.wpsubs-italic { font-style: italic; }

/* Mots clés / Keywords line */
.wpsubs-publication-mots-cles {
    margin: 0;
    padding: 5px 5%;
    font-size: 14px;
    color: #444;
    background: #fff;
}

.wpsubs-publication-mots-cles-label {
    color: var(--tk-accent-color, #F29101);
}

/* References section */
.wpsubs-publication-references {
    background: #fff;
    padding: 20px 5%;
    border-radius: 0 0 15px 15px;
}

.wpsubs-publication-references ol,
.wpsubs-publication-references ul {
    padding-left: 20px;
    font-size: 13px;
    line-height: 1.6;
}

.wpsubs-publication-blanc {
    background: #fff;
    border-radius: 15px;
    padding: 20px 5%;
    margin-top: 30px;
}

/* Download button */
.wpsubs-publication-download {
    padding: 15px 5%;
    background: #fff;
}

.wpsubs-download-btn {
    display: inline-block;
    background: var(--tk-primary-color, #1A44C0);
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    font-family: Ubuntu, sans-serif;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.wpsubs-download-btn:hover {
    background: color-mix(in srgb, var(--tk-primary-color, #1A44C0) 80%, black);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: #fff;
}

.wpsubs-download-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

/* Download toast messages */
.wpsubs-download-toast {
    margin-top: 12px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.wpsubs-download-toast-error {
    background: color-mix(in srgb, var(--tk-secondary-color, #c73e40) 10%, white);
    color: var(--tk-secondary-color, #c73e40);
    border: 1px solid color-mix(in srgb, var(--tk-secondary-color, #c73e40) 25%, white);
}

.wpsubs-download-toast-link {
    font-weight: 600;
    color: var(--tk-primary-color, #1A44C0);
    text-decoration: underline;
    margin-left: 4px;
}

/* Featured image in main col */
.wpsubs-publication-featured-image {
    padding: 15px 5%;
    background: #fff;
}

.wpsubs-publication-featured-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}


/* ============================================================
   ARCHIVE: Filter bar + Issue listing + Article cards
   ============================================================ */

.wpsubs-archive {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

/* --- Filter bar --- */
.wpsubs-archive-filters {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.wpsubs-filter-panel {
    flex: 1;
    background: var(--tk-background-color, #E0E7FF);
    border-radius: 12px;
    padding: 15px 20px;
}

.wpsubs-filter-panel-header {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    user-select: none;
}

.wpsubs-filter-chevron {
    font-size: 22px;
    font-weight: 700;
    color: var(--tk-primary-color, #1A44C0);
    transition: transform 0.2s ease;
}

.wpsubs-filter-panel.is-open .wpsubs-filter-chevron {
    transform: rotate(90deg);
}

.wpsubs-filter-panel-title {
    font-family: Ubuntu, sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #0D1283;
}

.wpsubs-filter-panel-body {
    margin-top: 12px;
}

.wpsubs-filter-form {
    display: flex;
    gap: 15px;
}

.wpsubs-filter-select {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
}

.wpsubs-search-form {
    display: flex;
    gap: 0;
    width: 100%;
}

.wpsubs-search-input {
    flex: 1;
    padding: 8px 15px;
    border: 1px solid #ccc;
    border-radius: 8px 0 0 8px;
    font-size: 14px;
}

.wpsubs-search-btn {
    background: var(--tk-primary-color, #1A44C0);
    color: #fff;
    border: none;
    border-radius: 0 8px 8px 0;
    padding: 8px 15px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.wpsubs-search-btn:hover {
    background: #0d1283;
}

.wpsubs-search-btn .dashicons {
    font-size: 18px;
    line-height: 1;
}

/* --- Archive header --- */
.wpsubs-archive-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 25px;
}

.wpsubs-archive-title {
    font-family: Ubuntu, sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--tk-primary-color, #1A44C0);
}

.wpsubs-archive-access-badge {
    font-size: 14px;
    font-weight: 400;
    font-style: italic;
    color: #666;
    margin-left: 8px;
}

.wpsubs-archive-latest-label {
    font-family: Ubuntu, sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--tk-primary-color, #1A44C0);
    text-align: right;
}

/* --- Issue layout: cover + articles --- */
.wpsubs-archive-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* Cover column */
.wpsubs-archive-cover-col {
    width: 22%;
    flex-shrink: 0;
    text-align: center;
}

.wpsubs-archive-cover img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.wpsubs-btn-consulter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 15px;
    background: var(--tk-primary-color, #1A44C0);
    color: #fff;
    padding: 10px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.wpsubs-btn-consulter:hover {
    background: #0d1283;
    box-shadow: 0 4px 12px rgba(26, 68, 192, 0.3);
    color: #fff;
}

.wpsubs-btn-arrow {
    font-size: 18px;
}

/* Articles column */
.wpsubs-archive-articles-col {
    flex: 1;
}

/* --- Article card --- */
.wpsubs-article-card {
    background: var(--tk-background-color, #E0E7FF);
    border-radius: 12px;
    padding: 20px 25px;
    margin-bottom: 20px;
}

.wpsubs-article-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 8px;
}

.wpsubs-article-rubrique {
    font-family: Ubuntu, sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

.wpsubs-article-date {
    font-size: 13px;
    color: #666;
}

.wpsubs-article-thematique {
    font-size: 13px;
    color: #555;
    margin-bottom: 6px;
}

.wpsubs-article-title {
    font-family: Ubuntu, sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin: 6px 0 10px;
}

.wpsubs-article-title a {
    color: var(--tk-primary-color, #1A44C0);
    text-decoration: none;
}

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

.wpsubs-article-excerpt {
    font-family: Roboto, sans-serif;
    font-size: 14px;
    color: #444;
    line-height: 1.6;
    margin-bottom: 10px;
}

.wpsubs-article-readmore {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 14px;
    color: var(--tk-primary-color, #1A44C0);
    text-decoration: none;
}

.wpsubs-article-readmore:hover {
    text-decoration: underline;
}

.wpsubs-readmore-icon {
    font-size: 10px;
}

/* No results */
.wpsubs-no-results {
    text-align: center;
    padding: 40px;
    font-size: 16px;
    color: #666;
}

/* --- Back button --- */
.wpsubs-archive-back {
    text-align: center;
    margin-top: 30px;
}

.wpsubs-btn-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--tk-primary-color, #1A44C0);
    color: #fff;
    padding: 10px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.3s ease;
}

.wpsubs-btn-back:hover {
    background: #0d1283;
    color: #fff;
}

.wpsubs-btn-back-icon {
    font-size: 18px;
}


/* ============================================================
   CTA panels (login / subscribe)
   Matches tk_login_panel styling for visual consistency
   ============================================================ */

.wpsubs-cta {
    background: color-mix(in srgb, var(--tk-secondary-color, #c73e40) 10%, white);
    border-top: 3px solid var(--tk-secondary-color, #c73e40);
    padding: 40px 5%;
    text-align: center;
    margin: 0;
}

.wpsubs-cta-heading {
    font-family: Ubuntu, sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--tk-secondary-color, #c73e40);
    margin: 0 0 12px;
}

.wpsubs-cta p {
    font-size: 16px;
    color: var(--tk-secondary-color, #c73e40);
    margin-bottom: 20px;
}

.wpsubs-btn-login,
.wpsubs-btn-subscribe {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    margin: 0 8px;
}

.wpsubs-btn-login {
    background: var(--tk-primary-color, #1A44C0);
    color: #fff;
}

.wpsubs-btn-login:hover {
    background: #0d1283;
    color: #fff;
}

.wpsubs-btn-subscribe {
    background: var(--tk-accent-color, #F29101);
    color: #fff;
}

.wpsubs-btn-subscribe:hover {
    background: #d17e00;
    color: #fff;
}

.wpsubs-cta-back {
    margin-top: 20px;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
    .wpsubs-publication-container {
        gap: 20px;
    }

    .wpsubs-publication-sidebar-col {
        width: 30%;
    }

    .wpsubs-publication-main-col {
        width: 70%;
    }

    .wpsubs-archive-cover-col {
        width: 28%;
    }
}

/* Small tablet / large phone */
@media (max-width: 768px) {
    .wpsubs-publication-container {
        flex-direction: column;
    }

    .wpsubs-publication-sidebar-col,
    .wpsubs-publication-main-col {
        width: 100%;
    }

    .wpsubs-publication-meta-box {
        display: flex;
        gap: 20px;
        align-items: flex-start;
    }

    .wpsubs-publication-meta {
        flex: 1;
    }

    .wpsubs-publication-illustration {
        margin-top: 0;
        max-width: 120px;
    }

    .wpsubs-archive-filters {
        flex-direction: column;
    }

    .wpsubs-archive-header {
        flex-direction: column;
        gap: 5px;
    }

    .wpsubs-archive-layout {
        flex-direction: column;
    }

    .wpsubs-archive-cover-col {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 20px;
    }

    .wpsubs-archive-cover {
        max-width: 150px;
    }

    .wpsubs-publication-title-bloc {
        padding: 20px 4%;
    }

    .wpsubs-publication-bloc {
        padding: 10px 4%;
    }

}

/* Mobile */
@media (max-width: 480px) {
    .wpsubs-publication-single {
        padding: 0 10px 30px;
    }

    .wpsubs-archive {
        padding: 0 10px 30px;
    }

    .wpsubs-publication-meta-box {
        flex-direction: column;
    }

    .wpsubs-publication-illustration {
        max-width: 100%;
    }

    .wpsubs-archive-cover-col {
        flex-direction: column;
        text-align: center;
    }

    .wpsubs-filter-form {
        flex-direction: column;
    }

    .wpsubs-publication-single .section-page-title h1 {
        font-size: 22px;
    }

    .wpsubs-publication-title {
        font-size: 20px;
    }

    .wpsubs-publication-title-en {
        font-size: 16px;
    }

    .wpsubs-article-title {
        font-size: 16px;
    }
}


/* ============================================================
   SHORTCODE: [wpsubs_publications] — Publication listing grid
   Mirrors tk_tools card format & filter styles
   ============================================================ */

.wpsubs-pub-wrapper {
    max-width: 1240px;
    margin: 0 auto;
}

/* --- Filter bar --- */
.wpsubs-pub-filters-bar {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 30px;
}

.wpsubs-pub-filter-panel {
    flex: 1;
    background: #ffffff;
    border: 1px solid var(--tk-primary-color, #1A44C0);
    border-radius: 15px;
    padding: 20px 25px;
}

.wpsubs-pub-filter-panel-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wpsubs-pub-filter-chevron {
    font-size: 22px;
    font-weight: 700;
    color: var(--tk-primary-color, #1A44C0);
}

.wpsubs-pub-filter-panel-title {
    font-family: Ubuntu, sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #0D1283;
}

.wpsubs-pub-filter-panel-body {
    margin-top: 10px;
}

.wpsubs-pub-filter-panel form {
    margin-bottom: 0 !important;
}

.wpsubs-pub-filter-panel input,
.wpsubs-pub-filter-panel select,
.wpsubs-pub-filter-panel button {
    margin-bottom: 0 !important;
}

/* Filter form with dropdowns */
.wpsubs-pub-filter-form {
    display: flex;
    gap: 15px;
}

.wpsubs-pub-filter-select {
    flex: 1;
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    font-family: Ubuntu, sans-serif;
    background: #fff;
    cursor: pointer;
    color: #333;
    appearance: auto;
}

.wpsubs-pub-filter-select:focus {
    outline: none;
    border-color: var(--tk-primary-color, #1A44C0);
}

.wpsubs-pub-filter-select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Search form */
.wpsubs-pub-search-form {
    display: flex;
    align-items: center;
    gap: 0;
    background: #ffffff;
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
}

.wpsubs-pub-search-icon {
    display: flex;
    align-items: center;
    padding: 0 10px;
    color: #999;
    flex-shrink: 0;
}

.wpsubs-pub-search-input {
    flex: 1;
    padding: 6px 12px 6px 0;
    border: none;
    font-size: 14px;
    outline: none;
    background: transparent;
}

.wpsubs-pub-search-btn {
    background: var(--tk-primary-color, #1A44C0);
    color: #ffffff;
    border: none;
    padding: 6px 20px;
    font-family: Ubuntu, sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
    align-self: stretch;
}

.wpsubs-pub-search-btn:hover {
    background: #0d1283;
}

/* Results header */
.wpsubs-pub-results-header {
    margin-bottom: 20px;
}

.wpsubs-pub-results-header .section-page-title {
    font-family: Ubuntu, sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--tk-primary-color, #1A44C0);
    position: relative;
    padding-bottom: 10px;
}

.wpsubs-pub-results-header .section-page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, var(--tk-primary-color, #1A44C0), transparent);
}

.wpsubs-pub-results-badge {
    font-size: 14px;
    font-weight: 400;
    font-style: italic;
    color: #666;
    margin-left: 10px;
}

/* --- Card grid --- */
.wpsubs-pub-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    align-items: start;
}

.wpsubs-pub-grid[data-columns="1"] {
    grid-template-columns: 1fr;
}

.wpsubs-pub-grid[data-columns="3"] {
    grid-template-columns: repeat(3, 1fr);
}

.wpsubs-pub-grid[data-columns="4"] {
    grid-template-columns: repeat(4, 1fr);
}

/* Card link wrapper */
.wpsubs-pub-card-link-wrap {
    text-decoration: none;
    display: block;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wpsubs-pub-card-link-wrap:hover {
    transform: translateY(-5px);
}

.wpsubs-pub-card-link-wrap:hover .wpsubs-pub-card {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Card */
.wpsubs-pub-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 15px;
    height: 100%;
    transition: box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* Card header: type + date */
.wpsubs-pub-card-header {
    font-family: 'Ubuntu', sans-serif;
    font-size: 20px;
    font-weight: 400;
    color: #000000;
    margin: 0 0 10px 0;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #000000;
}

.wpsubs-pub-card-type {
    display: block;
    padding-bottom: 10px;
}

.wpsubs-pub-card-date {
    display: block;
    color: #000000;
    font-size: 16px;
    font-weight: 300;
    margin-top: 5px;
}

.wpsubs-pub-card-subtype {
    font-size: 13px;
    color: #555;
    margin-bottom: 6px;
    font-style: italic;
}

/* Card title */
.wpsubs-pub-card-title {
    font-size: 22px;
    font-weight: 400;
    color: var(--tk-primary-color, #1A44C0) !important;
    margin: 20px 0 15px 0;
    line-height: 1.4;
    font-family: 'Ubuntu', sans-serif;
}

.wpsubs-pub-card-title sup,
.wpsubs-pub-card-title sub {
    font-size: 0.75em;
}

/* Card metadata */
.wpsubs-pub-card-author,
.wpsubs-pub-card-reference {
    font-size: 11px;
    font-style: italic;
    color: #000000;
}

.wpsubs-pub-card-author {
    padding-bottom: 10px;
}

.wpsubs-pub-card-author:has(+ .wpsubs-pub-card-reference) {
    padding-bottom: 0;
}

.wpsubs-pub-card-reference {
    padding-bottom: 10px;
}

/* Card excerpt */
.wpsubs-pub-card-excerpt {
    color: #333333;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Card read more link */
.wpsubs-pub-card-readmore {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: auto;
    color: inherit;
    pointer-events: none;
    font-weight: 700;
    font-size: 14px;
    color: var(--tk-primary-color, #1A44C0);
}

.wpsubs-pub-arrow-icon {
    fill: var(--tk-primary-color, #1A44C0);
    transition: transform 0.3s ease;
}

/* --- Featured card (Dossier thématique) --- */
.wpsubs-pub-grid-featured {
    grid-template-columns: 1fr !important;
    margin-bottom: 30px;
}

.wpsubs-pub-card-featured {
    display: flex;
    flex-direction: row;
    gap: 0;
    padding: 0;
    overflow: hidden;
}

.wpsubs-pub-card-featured-image {
    flex: 0 0 33.333%;
    max-width: 33.333%;
    overflow: hidden;
}

.wpsubs-pub-card-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wpsubs-pub-card-featured-content {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
}

@media (max-width: 767px) {
    .wpsubs-pub-card-featured {
        flex-direction: column;
    }

    .wpsubs-pub-card-featured-image {
        display: none;
    }

    .wpsubs-pub-card-featured-content {
        padding: 20px;
    }
}

@media (max-width: 1023px) {
    .wpsubs-pub-card-featured-image {
        display: none;
    }

    .wpsubs-pub-card-featured-content {
        padding: 25px;
    }

    .wpsubs-pub-card-featured .wpsubs-pub-card-excerpt {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

/* --- Layout with sidebar banner --- */
.wpsubs-pub-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.wpsubs-pub-layout .wpsubs-pub-main {
    flex: 1;
    min-width: 0;
}

.wpsubs-pub-layout:not(.has-banner) {
    display: block;
}

/* --- Sidebar banner --- */
.wpsubs-pub-banner {
    flex: 0 0 260px;
    max-width: 260px;
    position: sticky;
    top: 20px;
}

.wpsubs-pub-banner-inner {
    background: var(--tk-primary-color, #1A44C0);
    border-radius: 15px;
    padding: 30px 25px;
    text-align: center;
    color: #ffffff;
}

.wpsubs-pub-banner-heading {
    font-family: Ubuntu, sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px;
    line-height: 1.3;
}

.wpsubs-pub-banner-subtitle {
    font-family: Ubuntu, sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 20px;
    line-height: 1.4;
}

.wpsubs-pub-banner-image {
    margin: 0 auto 20px;
    max-width: 160px;
}

.wpsubs-pub-banner-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.wpsubs-pub-banner-description {
    font-family: Ubuntu, sans-serif;
    font-size: 15px;
    color: #ffffff;
    margin: 0 0 20px;
    line-height: 1.5;
    font-weight: 600;
}

.wpsubs-pub-banner-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    color: var(--tk-primary-color, #1A44C0);
    font-family: Ubuntu, sans-serif;
    font-size: 16px;
    font-weight: 700;
    padding: 12px 24px;
    border: none;
    border-radius: 30px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 12px;
}

.wpsubs-pub-banner-cta:disabled {
    opacity: 0.7;
    cursor: wait;
}

.wpsubs-pub-banner-cta:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

.wpsubs-pub-banner-cta-arrow {
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

.wpsubs-pub-banner-access {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    margin: 0;
}

@media (max-width: 1023px) {
    .wpsubs-pub-layout {
        flex-direction: column;
    }

    .wpsubs-pub-banner {
        flex: none;
        max-width: 100%;
        width: 100%;
        position: static;
        order: -1;
    }

    .wpsubs-pub-banner-inner {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        gap: 20px;
        padding: 15px 20px;
        text-align: left;
    }

    .wpsubs-pub-banner-image {
        flex: 0 0 100px;
        margin: 0;
        max-width: 100px;
    }

    .wpsubs-pub-banner-subtitle {
        flex: 1;
        margin: 0;
        font-size: 15px;
    }

    .wpsubs-pub-banner-download {
        flex: 0 0 auto;
    }

    .wpsubs-pub-banner-download .wpsubs-pub-banner-cta {
        font-size: 14px;
        padding: 10px 20px;
    }

    .wpsubs-pub-banner-access {
        display: none;
    }

    .wpsubs-pub-banner-heading {
        font-size: 18px;
    }
}

/* No content */
.wpsubs-pub-no-content {
    text-align: center;
    padding: 60px 20px;
    color: #666666;
    font-size: 16px;
}

/* --- Pagination --- */
.wpsubs-pub-pagination {
    margin-top: 40px;
    text-align: center;
}

.wpsubs-pub-pagination ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.wpsubs-pub-pagination li {
    display: inline-block;
}

.wpsubs-pub-pagination a,
.wpsubs-pub-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.wpsubs-pub-pagination a:hover {
    border-color: var(--tk-primary-color, #1A44C0);
    color: var(--tk-primary-color, #1A44C0);
}

.wpsubs-pub-pagination .current,
.wpsubs-pub-pagination span.current {
    background: var(--tk-primary-color, #1A44C0);
    color: #ffffff;
}

.wpsubs-pub-pagination .dots {
    border: none;
}

.wpsubs-pub-pagination svg {
    fill: var(--tk-primary-color, #1A44C0);
    width: 20px;
    height: 20px;
}

.wpsubs-pub-pagination .prev,
.wpsubs-pub-pagination .next {
    border: 2px solid var(--tk-primary-color, #1A44C0);
}

/* --- Responsive --- */
@media (max-width: 1023px) {
    .wpsubs-pub-grid[data-columns="3"],
    .wpsubs-pub-grid[data-columns="4"] {
        grid-template-columns: repeat(2, 1fr);
    }

    .wpsubs-pub-card-header {
        font-size: 16px;
    }

    .wpsubs-pub-card-title {
        font-size: 18px;
    }
}

@media (max-width: 767px) {
    .wpsubs-pub-filters-bar {
        flex-direction: column;
    }

    .wpsubs-pub-grid,
    .wpsubs-pub-grid[data-columns="2"],
    .wpsubs-pub-grid[data-columns="3"],
    .wpsubs-pub-grid[data-columns="4"] {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .wpsubs-pub-card {
        padding: 20px;
    }

    .wpsubs-pub-card-header {
        font-size: 16px;
    }

    .wpsubs-pub-card-title {
        font-size: 18px;
    }

    .wpsubs-pub-card-readmore {
        font-size: 13px;
    }

    .wpsubs-pub-filter-form {
        flex-direction: column;
    }

    .wpsubs-pub-pagination ul {
        flex-wrap: wrap;
        gap: 5px;
    }

    .wpsubs-pub-pagination a,
    .wpsubs-pub-pagination span {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .wpsubs-pub-pagination svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 480px) {
    .wpsubs-pub-filter-panel {
        padding: 15px;
    }

    .wpsubs-pub-filter-panel-title {
        font-size: 16px;
    }

    .wpsubs-pub-card-title {
        font-size: 16px;
    }

    .wpsubs-pub-card-excerpt {
        font-size: 13px;
    }
}
