/* ===========================================
   VocaVerb — CSS global
   Référence : templates/category.php
   Chargé sur toutes les pages via vocaverb-core
   =========================================== */

/* --- Layout commun --- */
.vv-archive,
.vv-learn {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}
.vv-learn > h2 {
    text-align: center;
    margin-bottom: 2rem;
}

/* --- Breadcrumb --- */
.vv-breadcrumb {
    font-size: 13px;
    color: var(--global-palette5);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.vv-breadcrumb a { color: var(--global-palette1); text-decoration: none; }
.vv-breadcrumb a:hover { opacity: .7; }
.vv-breadcrumb .sep { opacity: .4; }

/* --- Header catégorie --- */
.vv-header {
    border-left: 4px solid var(--vv-header-border, var(--global-palette1));
    padding: 1.2rem 1.5rem;
    background: var(--vv-header-bg, var(--global-palette8));
    border-radius: 0 8px 8px 0;
    margin-bottom: 2.5rem;
}
.vv-header h1 {
    margin: 0 0 .4rem;
    font-size: clamp(1.4rem, 3vw, 2rem);
    color: var(--global-palette3);
    line-height: 1.2;
}
.vv-header-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: .6rem;
}
.vv-desc {
    margin: .8rem 0 0;
    color: var(--global-palette5);
    font-size: 15px;
    line-height: 1.6;
    max-width: 700px;
}

/* --- Badges --- */
.vv-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .05em;
    color: #fff;
    background: var(--global-palette1);
}
.vv-badge-lang {
    background: var(--global-palette6);
    color: var(--global-palette9);
}
.vv-badge-cecrl {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    color: #fff;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: 8px;
}
.vv-badge-lg {
    font-size: 10px;
    font-weight: 600;
    padding: 1px 7px;
    border-radius: 10px;
    background: #1565c0;
    color: #fff;
}

/* --- Grille de cards --- */
.vv-subcats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.2rem;
    margin-bottom: 3rem;
}

/* --- Card --- */
.vv-card {
    background: var(--global-palette9);
    border: 1.5px solid transparent;
    border-radius: 10px;
    padding: 1.25rem 1.4rem;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: transform .2s, box-shadow .2s, border-color .2s;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    position: relative;
    overflow: hidden;
}
.vv-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--card-accent, var(--global-palette1));
}
.vv-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    border-color: var(--card-accent, var(--global-palette1));
    text-decoration: none;
}
.vv-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--global-palette3);
    line-height: 1.3;
    margin: 0;
}
.vv-card-desc {
    font-size: 13px;
    color: var(--global-palette5);
    line-height: 1.5;
    margin: 0;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.vv-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
}
.vv-card-count { font-size: 12px; color: var(--global-palette6); }
.vv-card-arrow {
    font-size: 16px;
    color: var(--card-accent, var(--global-palette1));
    transition: transform .2s;
}
.vv-card:hover .vv-card-arrow { transform: translateX(4px); }

/* --- Liste d'articles --- */
.vv-posts-list { margin-bottom: 3rem; }
.vv-post-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--global-palette7);
    text-decoration: none;
    align-items: flex-start;
    transition: opacity .2s;
}
.vv-post-item:hover { opacity: .75; text-decoration: none; }
.vv-post-item:last-child { border-bottom: none; }
.vv-post-title { font-size: 16px; font-weight: 600; color: var(--global-palette3); margin: 0 0 4px; line-height: 1.3; }
.vv-post-excerpt { font-size: 13px; color: var(--global-palette5); margin: 0; line-height: 1.5; }
.vv-post-meta { font-size: 12px; margin-top: 6px; }

/* --- Pagination --- */
.vv-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 2rem;
}
.vv-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border: 1.5px solid var(--global-palette7);
    color: var(--global-palette4);
    transition: all .2s;
    background: var(--global-palette9);
}
.vv-pagination .page-numbers:hover,
.vv-pagination .page-numbers.current {
    background: var(--global-palette1);
    border-color: var(--global-palette1);
    color: #fff;
}

/* --- Responsive --- */
@media (max-width: 600px) {
    .vv-archive, .vv-learn { padding: 1.5rem 1rem 3rem; }
    .vv-subcats-grid { grid-template-columns: 1fr; }
    .vv-header { padding: 1rem; }
}
