/**
 * VigiCrécy® Articles — Archive Template
 * Couleurs charte : marine #3B6CB7, turquoise #3BBFB0, bleu clair #6B9FCC,
 *                   bleu nuit #1A2E4A, bleu très clair #EEF4FB, bleu pâle #D6EAF8
 */

/* ─── WRAPPER GLOBAL ────────────────────────────────────────────── */
.vga-arch-wrap {
    max-width: 1280px;
    margin: 24px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    color: #1A2E4A;
}

/* ─── HEADER ÉDITORIAL ──────────────────────────────────────────── */
.vga-arch-header {
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid #D6EAF8;
}
.vga-arch-eyebrow {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #3BBFB0;
    font-weight: 600;
    margin-bottom: 6px;
}
.vga-arch-title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 32px;
    font-weight: 500;
    line-height: 1.2;
    margin: 4px 0 8px;
    color: #1A2E4A;
}
.vga-arch-subtitle {
    font-size: 14px;
    color: #4A5870;
    line-height: 1.5;
}
.vga-arch-back {
    color: #3B6CB7;
    text-decoration: none;
    font-weight: 500;
    margin-left: 6px;
}
.vga-arch-back:hover { text-decoration: underline; }

/* ─── TOOLBAR ────────────────────────────────────────────────────── */
.vga-arch-toolbar {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.vga-arch-search {
    flex: 1;
    min-width: 220px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #D6EAF8;
    border-radius: 6px;
    padding: 8px 14px;
}
.vga-arch-search-icon {
    color: #6B9FCC;
    font-size: 14px;
}
.vga-arch-search input {
    flex: 1;
    background: transparent;
    border: none;
    font-size: 14px;
    color: #1A2E4A;
    outline: none;
    font-family: inherit;
    padding: 0;
}
.vga-arch-cols {
    display: flex;
    gap: 0;
    background: #fff;
    border: 1px solid #D6EAF8;
    border-radius: 6px;
    overflow: hidden;
}
.vga-arch-cols-btn {
    background: transparent;
    border: none;
    padding: 6px 14px;
    color: #6B9FCC;
    cursor: pointer;
    transition: all 0.12s;
    font-family: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
    gap: 2px;
    min-width: 56px;
}
.vga-arch-cols-num {
    font-size: 17px;
    font-weight: 700;
}
.vga-arch-cols-lbl {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.3px;
    opacity: 0.85;
}
.vga-arch-cols-btn:hover {
    background: #EEF4FB;
    color: #3B6CB7;
}
.vga-arch-cols-btn.vga-arch-cols-active {
    background: #3B6CB7;
    color: #fff;
}

/* ─── LAYOUT GRILLE + SIDEBAR ────────────────────────────────────── */
.vga-arch-layout {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 28px;
}
.vga-arch-content {
    min-width: 0;
}
.vga-arch-grid {
    display: grid;
    gap: 18px;
    transition: grid-template-columns 0.3s ease;
}
.vga-arch-grid.vga-arch-cols-2 { grid-template-columns: repeat(2, 1fr); }
.vga-arch-grid.vga-arch-cols-3 { grid-template-columns: repeat(3, 1fr); }
.vga-arch-grid.vga-arch-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ─── CARTE ARTICLE ─────────────────────────────────────────────── */
.vga-arch-card {
    background: #fff;
    border: 1px solid #EEF4FB;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.18s ease;
    display: flex;
    flex-direction: column;
}
.vga-arch-card:hover {
    border-color: #3BBFB0;
    box-shadow: 0 4px 16px rgba(59, 108, 183, 0.08);
    transform: translateY(-2px);
}
.vga-arch-card-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    flex: 1;
}
.vga-arch-card-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, #EEF4FB, #D6EAF8);
}
.vga-arch-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.vga-arch-card:hover .vga-arch-card-img img {
    transform: scale(1.04);
}
.vga-arch-card-img--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}
.vga-arch-card-img-fallback {
    font-size: 36px;
    opacity: 0.4;
}
.vga-arch-card-body {
    padding: 14px 16px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.vga-arch-card-meta {
    font-size: 11px;
    color: #6B9FCC;
    margin-bottom: 8px;
    display: flex;
    gap: 12px;
    align-items: center;
}
.vga-arch-card-title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.3;
    color: #1A2E4A;
    margin: 0 0 8px;
}
.vga-arch-card-link:hover .vga-arch-card-title {
    color: #3B6CB7;
}
.vga-arch-card-excerpt {
    font-size: 13px;
    color: #4A5870;
    line-height: 1.5;
    margin: 0 0 12px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.vga-arch-card-tags {
    padding: 0 16px 14px;
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}
.vga-arch-card-tag {
    background: #EEF4FB;
    color: #3B6CB7;
    padding: 3px 9px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.12s;
}
.vga-arch-card-tag:hover {
    background: #3B6CB7;
    color: #fff;
}

/* En 4 colonnes : adapter les tailles */
.vga-arch-grid.vga-arch-cols-4 .vga-arch-card-title {
    font-size: 15px;
    line-height: 1.25;
}
.vga-arch-grid.vga-arch-cols-4 .vga-arch-card-excerpt {
    font-size: 12px;
    -webkit-line-clamp: 2;
}
.vga-arch-grid.vga-arch-cols-4 .vga-arch-card-body {
    padding: 12px 14px 10px;
}

/* ─── SIDEBAR ────────────────────────────────────────────────────── */
.vga-arch-sidebar {
    background: #EEF4FB;
    border-radius: 8px;
    padding: 16px 14px;
    align-self: start;
    position: sticky;
    top: 20px;
    font-size: 13px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}
.vga-arch-side-section {
    margin-bottom: 22px;
}
.vga-arch-side-section:last-child {
    margin-bottom: 0;
}
.vga-arch-side-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6B9FCC;
    font-weight: 700;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(107, 159, 204, 0.2);
}
.vga-arch-rub-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.vga-arch-rub-item a, .vga-arch-rub-item > span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 10px;
    border-radius: 5px;
    color: #1A2E4A;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.12s;
}
.vga-arch-rub-item a:hover {
    background: #fff;
    color: #3B6CB7;
}
.vga-arch-rub-item.vga-arch-rub-active a {
    background: #3B6CB7;
    color: #fff;
}
.vga-arch-rub-count {
    font-size: 10px;
    color: #6B9FCC;
    background: rgba(255, 255, 255, 0.7);
    padding: 1px 7px;
    border-radius: 8px;
    font-weight: 700;
}
.vga-arch-rub-item.vga-arch-rub-active .vga-arch-rub-count {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}
.vga-arch-rub-more {
    font-size: 11px;
    color: #6B9FCC;
    font-style: italic;
    padding: 4px 10px;
}

.vga-arch-archive-year {
    color: #1A2E4A;
    font-weight: 600;
    margin-top: 8px;
    margin-bottom: 4px;
    font-size: 13px;
}
.vga-arch-archive-year span {
    color: #6B9FCC;
    font-weight: 400;
    font-size: 11px;
}
.vga-arch-archive-months {
    list-style: none;
    margin: 0 0 8px;
    padding: 0 0 0 12px;
}
.vga-arch-archive-months a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 3px 8px;
    color: #4A5870;
    text-decoration: none;
    font-size: 11.5px;
    border-radius: 4px;
}
.vga-arch-archive-months a:hover {
    background: #fff;
    color: #3B6CB7;
}
.vga-arch-archive-count {
    color: #6B9FCC;
    font-size: 10px;
    font-weight: 600;
}

/* ─── PAGINATION ─────────────────────────────────────────────────── */
.vga-arch-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid #D6EAF8;
}
.vga-arch-pagination .page-numbers {
    background: #fff;
    border: 1px solid #D6EAF8;
    padding: 7px 13px;
    border-radius: 5px;
    font-size: 13px;
    color: #4A5870;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.12s;
}
.vga-arch-pagination .page-numbers:hover {
    background: #EEF4FB;
    border-color: #3B6CB7;
    color: #3B6CB7;
}
.vga-arch-pagination .page-numbers.current {
    background: #3B6CB7;
    color: #fff;
    border-color: #3B6CB7;
}
.vga-arch-pagination .dots {
    border: none;
    background: transparent;
    color: #6B9FCC;
}

/* ─── ÉTAT VIDE ──────────────────────────────────────────────────── */
.vga-arch-empty {
    text-align: center;
    padding: 60px 20px;
    color: #6B9FCC;
    background: #EEF4FB;
    border-radius: 8px;
    margin: 20px 0;
}
.vga-arch-empty a {
    color: #3B6CB7;
    text-decoration: none;
    font-weight: 600;
}

/* ─── RESPONSIVE ─────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .vga-arch-grid.vga-arch-cols-3,
    .vga-arch-grid.vga-arch-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .vga-arch-layout {
        grid-template-columns: 1fr;
    }
    .vga-arch-sidebar {
        position: static;
        max-height: none;
        order: 2;
    }
    .vga-arch-grid,
    .vga-arch-grid.vga-arch-cols-2,
    .vga-arch-grid.vga-arch-cols-3,
    .vga-arch-grid.vga-arch-cols-4 {
        grid-template-columns: 1fr;
    }
    .vga-arch-title {
        font-size: 24px;
    }
    .vga-arch-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .vga-arch-cols {
        align-self: flex-start;
    }
}
