/* ===== RESET BLOCKSY ===== */
body, .site-content, .site-main, #content, .entry-content { background-color: #f1f5f9 !important; }
.ct-container:not(.ct-header-container):not(.ct-footer-container):not(.ct-topbar-container) { max-width: 100% !important; padding: 0 !important; }
#primary, .site-main, #content, .entry-content, .page-content, .ct-post-content { padding: 0 !important; margin: 0 !important; max-width: 100% !important; width: 100% !important; float: none !important; }

/* ===== BLOG ===== */
#vx-blog { font-family: 'Poppins', sans-serif; color: #1e293b; width: 100%; display: block; overflow-x: hidden; }
#vx-blog *, #vx-blog *::before, #vx-blog *::after { box-sizing: border-box; }
#vx-blog a { text-decoration: none; }
#vx-blog h1, #vx-blog h2, #vx-blog h3, #vx-blog h4 { font-family: 'Jost', sans-serif; }

/* HERO SOMBRE */
.vxb-hero {
    background: linear-gradient(135deg, #0f2231 0%, #1a3a52 60%, #0f2231 100%);
    padding: 72px 24px 108px;
    position: relative; overflow: hidden;
}
.vxb-hero::before {
    content: '';
    position: absolute; top: -120px; right: -120px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(0,119,182,0.18) 0%, transparent 70%);
    pointer-events: none;
}
.vxb-hero::after {
    content: '';
    position: absolute; bottom: -2px; left: 0; right: 0; height: 56px;
    background: #f1f5f9;
    clip-path: ellipse(60% 100% at 50% 100%);
    pointer-events: none;
}
.vxb-hero-inner { max-width: 1200px; margin: 0 auto; position: relative; z-index: 1; }
.vxb-hero-eyebrow {
    display: inline-block; margin-bottom: 22px;
    padding: 7px 18px; border-radius: 50px;
    background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18);
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.18em; color: rgba(255,255,255,0.7);
}
.vxb-hero h1 {
    font-size: clamp(44px, 8vw, 88px); font-weight: 700;
    line-height: 0.95; letter-spacing: -0.04em;
    color: #ffffff; margin: 0 0 22px;
}
.vxb-hero-desc {
    font-size: clamp(15px, 1.6vw, 17px);
    color: rgba(255,255,255,0.65);
    line-height: 1.8; max-width: 580px; margin: 0;
}

/* CORPS */
.vxb-body { max-width: 1200px; margin: 0 auto; padding: 52px 24px 80px; }

/* GRILLE */
.vxb-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

/* CARTE */
.vxb-card {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 8px rgba(0,0,0,0.05);
    display: flex; flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.vxb-card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(0,0,0,0.09); }

/* ZONE IMAGE */
.vxb-card-media {
    position: relative; height: 196px;
    overflow: hidden; flex-shrink: 0;
}
.vxb-card-media img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}
.vxb-card:hover .vxb-card-media img { transform: scale(1.05); }

.vxb-card-media-fallback {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 52px;
}

/* BADGE SUR L'IMAGE */
.vxb-badge {
    position: absolute; bottom: 12px; right: 12px;
    padding: 5px 13px; border-radius: 50px;
    font-size: 10px; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.1em;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* CORPS CARTE */
.vxb-card-body {
    padding: 20px 22px 22px;
    display: flex; flex-direction: column; flex: 1;
}
.vxb-card-title {
    font-family: 'Jost', sans-serif;
    font-size: 15px; font-weight: 700;
    color: #0f172a; line-height: 1.45;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.vxb-card-excerpt {
    font-size: 13px; color: #64748b;
    line-height: 1.7; margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}
.vxb-card-footer {
    display: flex; align-items: center;
    justify-content: space-between;
    margin-top: 16px; padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}
.vxb-card-date { font-size: 12px; color: #64748b; font-weight: 500; } /* V6 §11 : #94a3b8 (2,56:1) echouait WCAG AA, corrige (4,76:1) */
.vxb-card-cta {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 12px; font-weight: 700; color: #0077b6;
    transition: gap 0.15s;
}
.vxb-card:hover .vxb-card-cta { gap: 7px; }
.vxb-card-cta svg { width: 13px; height: 13px; flex-shrink: 0; }

/* CTA BAS DE PAGE */
.vxb-cta {
    margin-top: 64px;
    background: linear-gradient(135deg, #326586 0%, #1a3a52 100%);
    border-radius: 24px; padding: 50px 44px;
    text-align: center;
}
.vxb-cta h2 {
    font-size: clamp(20px, 3vw, 30px);
    color: #ffffff; font-weight: 700; margin-bottom: 14px;
}
.vxb-cta p {
    font-size: 15px; color: rgba(255,255,255,0.72);
    margin: 0 auto 28px; max-width: 480px; line-height: 1.75;
}
.vxb-cta a {
    display: inline-block; background: #ffffff; color: #326586;
    font-size: 14px; font-weight: 700;
    padding: 13px 30px; border-radius: 50px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    transition: background-color 0.2s;
}
.vxb-cta a:hover { background: #f0f9ff; transform: translateY(-2px); }

/* V6 (§3) : barre de filtres par theme — meme pattern que les chips du hub
   Veille (coherence de site), mais couleurs/formes propres a l'identite
   "bibliotheque" de Ressources (contours, jamais de couleur de signal
   rouge/ambre/vert reservee a la Veille). */
.vxb-filter-bar {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin-bottom: 28px;
}
.vxb-chip {
    font-family: 'Poppins', sans-serif;
    /* V6 §11 : #cbd5e1 (1,48:1) echouait le seuil non-textuel WCAG 1.4.11 (3:1), corrige (3,46:1) */
    border: 1.5px solid #7c8ba1; background: #ffffff; color: #475569;
    border-radius: 50px; padding: 7px 16px;
    font-size: 12.5px; font-weight: 600; cursor: pointer;
    transition: background-color 0.15s;
}
.vxb-chip:hover { border-color: #64748b; }
.vxb-chip.is-active {
    background: var(--vx-chip-color, #0077b6);
    border-color: var(--vx-chip-color, #0077b6);
    color: #ffffff;
}
.vxb-chip:focus-visible { outline: 2px solid #0077b6; outline-offset: 2px; }

/* V6 (§3) : badge "dernier ajout" — signal mecanique (date la plus
   recente), jamais un jugement editorial de "meilleur" guide invente. */
.vxb-fresh-badge {
    position: absolute; top: 12px; left: 12px; z-index: 1;
    background: #0f2231; color: #ffffff;
    font-size: 10px; font-weight: 800; text-transform: uppercase;
    letter-spacing: 0.08em; padding: 5px 12px; border-radius: 50px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.vxb-card { position: relative; }

/* RESPONSIVE */
@media (max-width: 960px) {
    .vxb-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .vxb-hero { padding: 52px 20px 88px; }
    .vxb-body { padding: 36px 16px 56px; }
    .vxb-grid { grid-template-columns: 1fr; }
    .vxb-cta { padding: 36px 20px; }
    .vxb-filter-bar { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
    .vxb-chip { flex-shrink: 0; }
}
