/* =====================================================================
   Braillard — Widget Bibliothèque Vidéo (braillard-videos)
   Présentation « comme les actualités » : structure/liste/filtre depuis
   activites.css (.br-dialogues / .br-teaser). Ici : overlay play + badge
   durée sur le média, infos (durée / lieu / conférenciers) sous le titre du
   teaser, et la MODALE (player à gauche, infos à droite ; flèches prev/next).
   Charte v2 (accent vert #678562).
   ===================================================================== */

.br-videos { --vid-green: #678562; }
/* NB : l'offset sticky de la colonne de filtres (--filters-top) est géré de
   façon commune dans activites.css (.br-dialogues) pour Dialogues/Actu/Vidéos. */

/* ---- Média du teaser : play au centre + durée en bas à droite ---- */
.br-videos__media { cursor: pointer; }
.br-videos__play {
  position: absolute; top: 50%; left: 50%; z-index: 2;
  width: 56px; height: 56px; transform: translate(-50%, -50%);
  color: var(--br-white); transition: transform .25s ease, color .25s ease;
}
.br-videos__media:hover .br-videos__play,
.br-videos__media:focus-visible .br-videos__play { transform: translate(-50%, -50%) scale(1.08); color: var(--vid-green); }
.br-videos__play svg { width: 100%; height: 100%; display: block; }
.br-videos__media:focus-visible { outline: 2px solid var(--vid-green); outline-offset: 2px; }

.br-videos__duree {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  background: rgba(0,0,0,.72); color: var(--br-white);
  font-family: var(--br-font-body); font-size: 13px; line-height: 1;
  padding: 6px 9px; letter-spacing: .02em;
}

/* le titre du teaser est un <a role=button> sans href : curseur main */
.br-videos__teaser .br-teaser__title { cursor: pointer; }

/* ---- Infos sous le titre (dans la liste) ---- */
.br-videos__teaser-meta { display: flex; flex-direction: column; gap: 8px; }
.br-videos__teaser-conf {
  margin: 0; font-family: var(--br-font-body);
  font-size: clamp(14px, 1.05vw, 16px); line-height: 1.4; color: var(--br-black);
}
.br-videos__teaser-facts {
  margin: 0; display: flex; flex-wrap: wrap; gap: 4px 20px;
  font-family: var(--br-font-body); font-size: clamp(13px, 1vw, 15px); color: #5f5a54;
}
.br-videos__teaser-facts b { font-weight: 500; color: var(--vid-green); }

/* ---- Modale ---- */
.br-videos-lock { overflow: hidden; }
.br-videos__modal { position: fixed; inset: 0; z-index: 100000; display: flex; }
.br-videos__modal[hidden] { display: none; }
.br-videos__modal-bg { position: absolute; inset: 0; background: rgba(10,12,10,.86); cursor: pointer; }

.br-videos__modal-inner {
  position: relative; margin: auto; width: min(1120px, 84vw); max-height: 92vh;
  background: var(--br-white); overflow: auto;
  display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(280px, 1fr);
}
.br-videos__modal-body { display: contents; }

.br-videos__stage { background: #000; display: flex; align-items: center; }
.br-videos__embed { position: relative; width: 100%; aspect-ratio: 16 / 9; }
.br-videos__embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.br-videos__noembed { color: var(--br-white); text-align: center; padding: 24px; }

.br-videos__info {
  padding: clamp(24px, 2.4vw, 40px); display: flex; flex-direction: column; gap: 22px;
}
.br-videos__info-title {
  font-family: var(--br-font-body); font-weight: 500; font-size: clamp(19px, 1.6vw, 25px);
  line-height: 1.2; margin: 0; padding-right: 40px;
}
.br-videos__facts { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.br-videos__facts > div { display: flex; flex-direction: column; gap: 3px; }
.br-videos__facts dt {
  font-family: var(--br-font-body); font-size: 12px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--vid-green);
}
.br-videos__facts dd { margin: 0; font-family: var(--br-font-body); font-size: 16px; }

.br-videos__conf-h {
  font-family: var(--br-font-body); font-size: 12px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--vid-green); margin: 0 0 8px;
}
.br-videos__conf { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.br-videos__conf li { font-family: var(--br-font-body); font-size: 16px; line-height: 1.35; }
.br-videos__conf a { color: var(--br-black); text-decoration: underline; text-underline-offset: 3px; }
.br-videos__conf a:hover { color: var(--vid-green); }
.br-videos__aff { color: #6a6a6a; }

.br-videos__close {
  position: absolute; top: 12px; right: 12px; z-index: 5;
  width: 40px; height: 40px; border: 0; border-radius: 50%; padding: 0;
  background: rgba(0,0,0,.55); color: var(--br-white); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 24px; line-height: 1;
}
.br-videos__close:hover { background: var(--vid-green); }
.br-videos__close:focus { outline: none; }
.br-videos__close:focus-visible { outline: 2px solid var(--vid-green); outline-offset: 2px; }

/* ---- Flèches prev / next (bords de la modale) ---- */
.br-videos__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 6;
  width: 52px; height: 52px; border: 0; border-radius: 50%; padding: 0; cursor: pointer;
  background: var(--br-white) !important; box-shadow: 0 2px 16px rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease;
}
.br-videos__nav:hover { background: var(--vid-green) !important; }
.br-videos__nav[disabled] { opacity: .35; cursor: default; background: var(--br-white) !important; box-shadow: none; }
.br-videos__nav svg { width: 22px; height: 22px; display: block; pointer-events: none; }
/* fond ET flèche changent ENSEMBLE au survol (jamais indépendamment) :
   défaut = cercle blanc + flèche noire ; survol = cercle vert + flèche blanche. */
.br-videos__nav svg path { stroke: #16181a !important; fill: none !important; }
.br-videos__nav:hover svg path { stroke: #fff !important; }
.br-videos__nav--prev { left: clamp(12px, 3vw, 40px); }
.br-videos__nav--next { right: clamp(12px, 3vw, 40px); }

@media (max-width: 900px) {
  .br-videos__modal-inner { grid-template-columns: 1fr; width: min(680px, 92vw); }
  .br-videos__nav { width: 44px; height: 44px; }
  .br-videos__nav--prev { left: 6px; }
  .br-videos__nav--next { right: 6px; }
}
