.clg-article-resources { margin-top:36px; }
.clg-article-images { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:18px; margin:0 0 28px; }
.clg-article-images.is-single { grid-template-columns:minmax(0,760px); justify-content:center; }
.clg-article-image { margin:0; }
.clg-article-image a { display:block; overflow:hidden; border-radius:18px; background:rgba(255,255,255,.55); }
.clg-article-image img { display:block; width:100%; height:auto; }
.clg-article-image figcaption, .clg-video-card figcaption { padding:8px 4px 0; opacity:.8; font-size:.92em; text-align:center; }

.clg-article-videos { display:grid; gap:22px; margin:0 0 28px; }
.clg-video-card { margin:0; }
.clg-video-card iframe, .clg-video-card video { display:block; width:100%!important; max-width:100%!important; aspect-ratio:16/9; height:auto!important; min-height:320px; border:0; border-radius:18px; background:#000; }
.clg-video-fallback { display:flex; min-height:120px; align-items:center; gap:18px; padding:20px; border-radius:18px; background:rgba(255,255,255,.82); color:inherit; text-decoration:none!important; box-shadow:0 8px 22px rgba(24,58,83,.07); }
.clg-video-play { display:flex; width:58px; height:58px; flex:0 0 58px; align-items:center; justify-content:center; border-radius:50%; background:#1e73be; color:#fff; font-size:20px; }

.clg-article-files { display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:14px; }
.clg-file-card { display:flex; min-height:104px; align-items:center; gap:14px; padding:12px; border:1px solid rgba(30,115,190,.18); border-radius:16px; background:rgba(255,255,255,.82); color:inherit; text-decoration:none!important; box-shadow:0 8px 22px rgba(24,58,83,.07); transition:transform .18s ease,box-shadow .18s ease; }
.clg-file-card:hover { transform:translateY(-2px); box-shadow:0 12px 28px rgba(24,58,83,.13); }
.clg-file-preview { display:flex; width:80px; height:80px; flex:0 0 80px; align-items:center; justify-content:center; overflow:hidden; border-radius:12px; background:#eaf4fd; }
.clg-file-preview img { width:100%; height:100%; object-fit:cover; }
.clg-file-ext { padding:7px 9px; border-radius:9px; background:#1e73be; color:#fff; font-size:11px; font-weight:800; }
.clg-file-info { min-width:0; }
.clg-file-info strong, .clg-file-info span { display:block; }
.clg-file-info strong { font-size:1em; }
.clg-file-info span { margin-top:5px; opacity:.72; font-size:.9em; }

@media (max-width: 700px) {
    .clg-video-card iframe, .clg-video-card video { min-height:0; }
}

/* Les PDF affichent la vignette de leur première page sans la recadrer. */
.clg-file-card.is-pdf .clg-file-preview { background:#fff; }
.clg-file-preview img.clg-pdf-thumb { object-fit:contain; box-sizing:border-box; padding:4px; background:#fff; }


