/**
 * vigicrecy-articles — single-vgc_article.css
 * Template single charte VigiCrécy® — palette officielle
 * Layout 75/25, hero, breadcrumb, navigation, cards suggérées, sidebar, lightbox
 */

.vga-single-wrap {
    background: #EEF4FB;
    padding: 20px 0 40px;
}
.vga-single-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ─── Breadcrumb ─────────────────────────────────────────────────────── */
.vga-breadcrumb {
    font-size: 13px;
    color: #5a7a9a;
    margin-bottom: 16px;
    padding: 10px 16px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #D6EAF8;
}
.vga-breadcrumb a { color: #3B6CB7; text-decoration: none; }
.vga-breadcrumb a:hover { text-decoration: underline; }
.vga-breadcrumb .vga-sep { color: #6B9FCC; margin: 0 8px; }

/* ─── Grille 75/25 ───────────────────────────────────────────────────── */
.vga-single-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 28px;
}
@media (max-width: 900px) {
    .vga-single-grid { grid-template-columns: 1fr; }
}

.vga-single-main {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #D6EAF8;
}

/* ─── Hero ───────────────────────────────────────────────────────────── */
.vga-hero {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    min-height: 260px;
    display: flex;
    align-items: flex-end;
    position: relative;
}
.vga-hero-inner { padding: 24px; width: 100%; }
.vga-hero-badges {
    display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap;
}
.vga-badge {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(4px);
    color: #fff !important;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.18s;
}
.vga-badge:hover { background: rgba(255, 255, 255, 0.4); }
.vga-hero-title {
    color: #fff;
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.25;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}
@media (max-width: 600px) {
    .vga-hero-title { font-size: 22px; }
}

.vga-hero-clickable { cursor: zoom-in; transition: filter 0.2s; }
.vga-hero-clickable:hover { filter: brightness(1.05); }
.vga-hero-clickable:focus { outline: 3px solid #3BBFB0; outline-offset: 2px; }
.vga-hero-zoom-hint {
    position: absolute; top: 12px; right: 12px;
    background: rgba(0, 0, 0, 0.6); color: #fff;
    padding: 5px 12px; border-radius: 14px;
    font-size: 11px; font-weight: 600;
    opacity: 0; transition: opacity 0.2s; pointer-events: none;
}
.vga-hero-clickable:hover .vga-hero-zoom-hint,
.vga-hero-clickable:focus .vga-hero-zoom-hint { opacity: 1; }

/* ─── Méta ───────────────────────────────────────────────────────────── */
.vga-meta {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
    padding: 10px 16px;
    background: #EEF4FB;
    border-radius: 8px;
    margin-bottom: 22px;
    font-size: 13px; color: #1A2E4A;
}
.vga-meta-item strong { font-weight: 600; color: #1A2E4A; }
.vga-meta-sep { color: #6B9FCC; }
.vga-meta-spacer { flex: 1; }
.vga-meta-author { color: #3B6CB7; text-decoration: none; font-weight: 600; }
.vga-meta-author:hover { color: #3BBFB0; text-decoration: underline; }
.vga-meta-comments {
    color: #3B6CB7; text-decoration: none; font-weight: 600;
    padding: 2px 8px; border-radius: 12px;
    background: rgba(59, 108, 183, 0.08);
    transition: background .15s, color .15s;
}
.vga-meta-comments:hover { background: #3B6CB7; color: #fff; }

html { scroll-behavior: smooth; }

/* ─── Contenu éditorial — serif magazine ────────────────────────────── */
.vga-content {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 17px; line-height: 1.75; color: #1A2E4A;
}
.vga-content p { margin: 0 0 16px; }
.vga-content p:first-of-type::first-letter {
    font-size: 52px; float: left; line-height: 0.9;
    margin: 6px 10px 0 0; color: #3B6CB7;
    font-weight: 700; font-family: Georgia, serif;
}
.vga-content h2, .vga-content h3 {
    font-family: Georgia, serif; color: #1A2E4A;
    margin: 28px 0 14px; line-height: 1.3;
}
.vga-content h2 { font-size: 22px; }
.vga-content h3 { font-size: 18px; }
.vga-content img {
    max-width: 100%; height: auto;
    border-radius: 8px; margin: 16px 0;
    cursor: zoom-in; transition: opacity 0.15s;
}
.vga-content img:hover { opacity: 0.92; }
.vga-content blockquote {
    border-left: 4px solid #3BBFB0;
    background: #EEF4FB;
    padding: 12px 18px; margin: 18px 0;
    border-radius: 0 8px 8px 0;
    font-style: italic; color: #1A2E4A;
}
.vga-content a { color: #3B6CB7; text-decoration: underline; }

/* ─── CTA vote ──────────────────────────────────────────────────────── */
/* ─── Carte auteur sous l'article ────────────────────────────────────── */
.vga-author-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: linear-gradient(135deg, #EEF4FB 0%, #fff 100%);
    border: 1px solid #D6EAF8;
    border-radius: 12px;
    padding: 16px 20px;
    margin: 24px 0;
}
.vga-author-card-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(59, 108, 183, 0.15);
}
.vga-author-card-body {
    flex: 1;
    min-width: 0;
}
.vga-author-card-by {
    color: #6B9FCC;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 6px;
}
.vga-author-card-name {
    margin-bottom: 6px;
    font-size: 16px;
}
.vga-author-card-name a {
    color: #1A2E4A;
    font-weight: 700;
    text-decoration: none;
}
.vga-author-card-name a:hover {
    color: #3B6CB7;
}
.vga-author-card-desc {
    color: #5a7a9a;
    font-size: 13px;
    line-height: 1.5;
    margin: 0 0 8px;
}
.vga-author-card-link {
    color: #3B6CB7;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}
.vga-author-card-link:hover {
    color: #1A2E4A;
    text-decoration: underline;
}
@media (max-width: 600px) {
    .vga-author-card { flex-direction: column; align-items: center; text-align: center; }
    .vga-author-card-avatar { width: 64px; height: 64px; }
}

.vga-vote-cta {
    background: #EEF4FB;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    margin: 24px 0;
}
.vga-vote-cta-label { font-size: 14px; color: #3B6CB7; margin-bottom: 12px; }

/* ─── Pager préc/suiv ──────────────────────────────────────────────── */
.vga-pager {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 28px 0 0;
    padding-top: 22px;
    border-top: 1px solid #D6EAF8;
}
@media (max-width: 600px) { .vga-pager { grid-template-columns: 1fr; } }
.vga-pager-link {
    display: flex; gap: 12px; padding: 12px;
    background: #EEF4FB; border-radius: 10px;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s;
    border: 1px solid #D6EAF8;
}
.vga-pager-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 108, 183, 0.12);
}
.vga-pager-next { flex-direction: row-reverse; text-align: right; }
.vga-pager-thumb {
    width: 70px; height: 70px;
    border-radius: 8px; flex-shrink: 0;
    background: #D6EAF8;
}
.vga-pager-text { flex: 1; min-width: 0; }
.vga-pager-dir { font-size: 11px; color: #5a7a9a; font-weight: 500; margin-bottom: 3px; }
.vga-pager-title { font-size: 13px; color: #1A2E4A; font-weight: 600; line-height: 1.3; }

/* ─── Cards suggérées ──────────────────────────────────────────────── */
.vga-suggested {
    margin: 28px 0 0;
    padding-top: 22px;
    border-top: 1px solid #D6EAF8;
}
.vga-section-title {
    font-size: 16px; font-weight: 600; color: #1A2E4A;
    margin: 0 0 14px; font-family: inherit;
}
.vga-suggested-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
@media (max-width: 700px) { .vga-suggested-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .vga-suggested-grid { grid-template-columns: 1fr; } }
.vga-suggested-card {
    text-decoration: none; color: inherit;
    background: #EEF4FB;
    border-radius: 8px; overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #D6EAF8;
}
.vga-suggested-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(59, 108, 183, 0.15);
}
.vga-suggested-thumb { width: 100%; height: 100px; background: #D6EAF8; }
.vga-suggested-text { padding: 10px 12px; }
.vga-suggested-titre { font-size: 12px; color: #1A2E4A; font-weight: 600; line-height: 1.3; }
.vga-suggested-date { font-size: 10px; color: #6B9FCC; margin-top: 2px; }

.vga-comments {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid #D6EAF8;
}

/* ─── Sidebar ──────────────────────────────────────────────────────── */
.vga-sidebar { display: flex; flex-direction: column; gap: 16px; }
.vga-widget {
    background: #fff;
    border-radius: 10px;
    padding: 14px;
    border: 1px solid #D6EAF8;
}
.vga-widget-title {
    font-size: 12px; font-weight: 600; color: #3B6CB7;
    text-transform: uppercase; letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.vga-widget-search input[type="search"] {
    width: 100%; padding: 8px 12px;
    border: 1px solid #D6EAF8; border-radius: 6px;
    font-size: 13px; box-sizing: border-box; background: #fff;
}
.vga-widget-search input[type="search"]:focus {
    border-color: #3B6CB7; outline: none;
    box-shadow: 0 0 0 3px rgba(59, 108, 183, 0.1);
}

.vga-recent-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.vga-recent-list a { display: flex; gap: 10px; text-decoration: none; color: inherit; transition: opacity 0.15s; }
.vga-recent-list a:hover { opacity: 0.8; }
.vga-recent-thumb { width: 44px; height: 44px; background: #D6EAF8; border-radius: 6px; flex-shrink: 0; }
.vga-recent-text { flex: 1; min-width: 0; }
.vga-recent-title { font-size: 12px; color: #1A2E4A; font-weight: 500; line-height: 1.3; }
.vga-recent-date { font-size: 10px; color: #6B9FCC; margin-top: 2px; }

.vga-rubrique-links { display: flex; flex-direction: column; gap: 6px; }
.vga-rubrique-links a {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 12px; background: #EEF4FB; border-radius: 6px;
    font-size: 12px; text-decoration: none;
    color: #3B6CB7; font-weight: 500;
    transition: background 0.15s;
}
.vga-rubrique-links a:hover { background: #D6EAF8; }
.vga-rubrique-links a strong { font-weight: 600; font-size: 13px; color: #1A2E4A; }

/* ─── Lightbox ─────────────────────────────────────────────────────── */
.vga-lightbox {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.93);
    z-index: 99;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    padding: 40px; box-sizing: border-box;
}
.vga-lightbox.vga-lightbox-open { opacity: 1; visibility: visible; }
.vga-lightbox-content {
    max-width: 95vw; max-height: 90vh;
    display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.vga-lightbox-img {
    max-width: 100%;
    max-height: calc(90vh - 40px);
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    background: #1A2E4A;
}
.vga-lightbox-caption {
    color: #fff; font-size: 14px; text-align: center; max-width: 700px;
    padding: 6px 14px; background: rgba(0, 0, 0, 0.4); border-radius: 6px;
}
.vga-lightbox-caption:empty { display: none; }
.vga-lightbox-close, .vga-lightbox-prev, .vga-lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.12); color: #fff;
    border: none; cursor: pointer;
    font-size: 26px; font-weight: 300;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.15s, transform 0.15s;
    z-index: 2;
}
.vga-lightbox-close { top: 20px; right: 20px; width: 44px; height: 44px; border-radius: 50%; font-size: 18px; }
.vga-lightbox-prev, .vga-lightbox-next {
    top: 50%; transform: translateY(-50%);
    width: 52px; height: 52px; border-radius: 50%;
    font-size: 32px; line-height: 1;
}
.vga-lightbox-prev { left: 20px; }
.vga-lightbox-next { right: 20px; }
.vga-lightbox-close:hover, .vga-lightbox-prev:hover, .vga-lightbox-next:hover {
    background: rgba(255, 255, 255, 0.22);
}
.vga-lightbox-prev:hover, .vga-lightbox-next:hover { transform: translateY(-50%) scale(1.08); }
@media (max-width: 600px) {
    .vga-lightbox { padding: 10px; }
    .vga-lightbox-close { top: 10px; right: 10px; width: 38px; height: 38px; }
    .vga-lightbox-prev { left: 8px; width: 42px; height: 42px; font-size: 26px; }
    .vga-lightbox-next { right: 8px; width: 42px; height: 42px; font-size: 26px; }
}

/* ─── LIEN FACEBOOK DANS LA MÉTA ─────────────────────────────────── */
.vga-meta-fb {
    color: #1877F2 !important;
    font-weight: 500;
    transition: color 0.15s ease;
}
.vga-meta-fb:hover {
    color: #0D5DBF !important;
    text-decoration: underline;
}

/* ─── COMMENTAIRES REPLIABLES ────────────────────────────────────── */
.vga-comments-collapsible {
    margin-top: 32px;
    border-top: 1px solid #D6EAF8;
    padding-top: 0;
}
.vga-comments-toggle {
    width: 100%;
    background: linear-gradient(135deg, #EEF4FB, #fff);
    border: 1px solid #D6EAF8;
    border-radius: 8px;
    padding: 14px 18px;
    margin-top: 16px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    color: #1A2E4A;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.15s ease;
}
.vga-comments-toggle:hover {
    background: linear-gradient(135deg, #D6EAF8, #EEF4FB);
    border-color: #3B6CB7;
    color: #3B6CB7;
}
.vga-comments-toggle-label {
    text-align: left;
}
.vga-comments-toggle-icon {
    font-size: 18px;
    color: #6B9FCC;
    transition: transform 0.25s ease;
    line-height: 1;
}
.vga-comments-collapsible:not(.vga-comments-collapsed) .vga-comments-toggle-icon {
    transform: rotate(180deg);
}
.vga-comments-body {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.2s ease, padding 0.3s ease;
    padding: 0 4px;
}
.vga-comments-collapsible:not(.vga-comments-collapsed) .vga-comments-body {
    max-height: 5000px;
    opacity: 1;
    padding: 18px 4px 0;
}

/* Compteur de likes Facebook dans la zone méta */
.vga-meta-fb-likes {
    color: #1877F2;
    font-weight: 500;
}

/* Mention de transparence sur l'anonymisation des commentaires Facebook */
.vga-comments-fb-notice {
    background: #FFF8E7;
    border-left: 3px solid #FFAA00;
    padding: 8px 14px;
    margin: 0 0 16px;
    font-size: 12px;
    color: #6B5520;
    border-radius: 0 4px 4px 0;
    line-height: 1.5;
    font-style: italic;
}
