/* Galerie vidéo — VODOUN YEHOUE HOUE (fond clair, texte foncé, boutons foncés) */
#galerie-video { background: #fff; scroll-margin-top: 84px; }
#galerie-video .vg-head { max-width: 760px; margin-bottom: 26px; display: grid; gap: 12px; }
#galerie-video .vg-head h2 { color: #0B1F4D; font-size: clamp(1.7rem, 4.6vw, 2.7rem); line-height: 1.15; }
#galerie-video .vg-head p { color: #2B3550; font-size: 1.05rem; max-width: 62ch; }
.vg-filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 26px; padding: 0; list-style: none; }
.vg-filter { font: 700 .95rem/1.2 var(--font-body, system-ui, sans-serif); min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 1.5px solid #0B1F4D; background: #fff; color: #0B1F4D; cursor: pointer; }
.vg-filter:hover { background: #F3F7FD; }
.vg-filter[aria-pressed="true"] { background: #0B1F4D; color: #fff; }
.vg-filter:focus-visible, .vg-play:focus-visible, .vg-x:focus-visible, .vg-card:focus-within { outline: 3px solid #1B4DB3; outline-offset: 2px; }
.vg-grid { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 600px) { .vg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .vg-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.vg-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #DCE4F2; border-radius: 16px; overflow: hidden; box-shadow: 0 6px 20px rgba(11,31,77,.08); }
.vg-thumb { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #0B1F4D, #1B4DB3); border: 0; padding: 0; cursor: pointer; overflow: hidden; }
.vg-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vg-thumb .vg-ico { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; background: rgba(11,31,77,.82); display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0,0,0,.35); }
.vg-thumb .vg-ico svg { width: 26px; height: 26px; fill: #fff; margin-left: 3px; }
.vg-body { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px 20px; flex: 1; }
.vg-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.vg-tag { font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: #F3F7FD; color: #0B1F4D; border: 1px solid #DCE4F2; }
.vg-tag.src { background: #FFF6DD; border-color: #EBD28A; color: #5A4300; }
.vg-body h3 { color: #0B1F4D; font-size: 1.15rem; line-height: 1.3; margin: 0; }
.vg-body p { color: #2B3550; font-size: .97rem; margin: 0; }
.vg-play { margin-top: auto; align-self: flex-start; font: 700 1rem/1 var(--font-body, system-ui, sans-serif); min-height: 46px; padding: 12px 20px; border: 0; border-radius: 999px; background: #0B1F4D; color: #fff; cursor: pointer; }
.vg-play:hover { background: #1B4DB3; }
.vg-empty { padding: 26px 22px; border: 1.5px dashed #9FB3DA; border-radius: 16px; background: #F3F7FD; color: #0B1F4D; text-align: center; font-size: 1.05rem; }
.vg-dialog { width: min(960px, 94vw); max-height: 92vh; padding: 0; border: 0; border-radius: 16px; background: #fff; color: #0B1F4D; overflow: auto; }
.vg-dialog::backdrop { background: rgba(11,31,77,.72); }
.vg-dhead { display: flex; align-items: center; gap: 12px; justify-content: space-between; padding: 14px 16px 12px 20px; border-bottom: 1px solid #DCE4F2; }
.vg-dhead h3 { margin: 0; font-size: 1.1rem; color: #0B1F4D; }
.vg-x { flex: none; min-width: 46px; min-height: 46px; border: 0; border-radius: 999px; background: #0B1F4D; color: #fff; font: 700 1rem/1 var(--font-body, system-ui, sans-serif); padding: 0 16px; cursor: pointer; }
.vg-stage { background: #000; aspect-ratio: 16 / 9; }
.vg-stage iframe, .vg-stage video { display: block; width: 100%; height: 100%; border: 0; background: #000; }
.vg-dfoot { padding: 12px 20px 16px; font-size: .95rem; color: #2B3550; display: grid; gap: 8px; }
.vg-dfoot a { color: #0B1F4D; font-weight: 700; }
.vg-err { padding: 12px 14px; border-radius: 10px; background: #FFF1F0; color: #7A1B12; border: 1px solid #F0B8B2; }
.vg-count { color: #2B3550; font-size: .95rem; margin: 0 0 14px; }

/* Menu : place pour le lien « Galerie vidéo » sans dépassement sur les écrans moyens */
@media (min-width: 1240px) and (max-width: 1399px) { .nav a, .nav-group-btn { padding: 8px 6px; font-size: .83rem; } }
@media (min-width: 1560px) and (max-width: 1739px) { .top-cta { display: none; } }

/* Chaîne, vidéos non lisibles, Shorts (format vertical) */
.vg-body .vg-chan { font-size: .9rem; color: #4A5575; }
.vg-open { display: inline-flex; align-items: center; text-decoration: none; }
.vg-card .vg-err[hidden], .vg-card .vg-play[hidden], .vg-chan[hidden] { display: none; }
.vg-thumb.is-short img { object-fit: contain; background: #0B1F4D; }
.vg-stage.is-short { aspect-ratio: auto; height: min(72vh, 640px); display: flex; justify-content: center; }
.vg-stage.is-short iframe, .vg-stage.is-short video { aspect-ratio: 9 / 16; width: auto; max-width: 100%; height: 100%; }

/* Présentation d'une catégorie (ex. Sakpata) */
.vg-intro { margin: 0 0 22px; padding: 20px 22px 22px; border: 1px solid #DCE4F2; border-left: 5px solid #B8892B; border-radius: 16px; background: #F3F7FD; display: grid; gap: 10px; max-width: 900px; }
.vg-intro[hidden] { display: none; }
.vg-intro h3 { margin: 0; color: #0B1F4D; font-size: clamp(1.2rem, 3vw, 1.5rem); line-height: 1.25; }
.vg-intro p { margin: 0; color: #2B3550; font-size: 1.02rem; max-width: 70ch; }
.vg-intro p:last-child { font-size: .93rem; color: #4A5575; }

/* Compteur dans les filtres, filtres adaptés au téléphone */
.vg-filter .vg-n { display: inline-block; margin-left: 8px; min-width: 1.6em; padding: 2px 7px; border-radius: 999px; background: #E6EDF9; color: #0B1F4D; font-size: .8rem; text-align: center; }
.vg-filter[aria-pressed="true"] .vg-n { background: rgba(255,255,255,.22); color: #fff; }
@media (max-width: 599px) {
  .vg-filters { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; padding-bottom: 8px; margin-right: -16px; padding-right: 16px; }
  .vg-filters li { flex: none; scroll-snap-align: start; }
  .vg-filter { white-space: nowrap; }
  .vg-intro { padding: 16px 16px 18px; }
}
