/* GOULAA CLIENT — vidéos (site public + espace client) */
.vx, .vx-inline, .vx-ghost {
  --vx-ease:cubic-bezier(.2, .75, .15, 1);
}

/* ---------- Miniatures ---------- */
.vx-thumb { position:relative; display:block; aspect-ratio:16 / 9; overflow:hidden; background:var(--vx-navy9); }
.vx-thumb img { width:100%; height:100%; object-fit:cover; display:block; transition:transform .5s var(--vx-ease); }
.vx-fb { position:absolute; inset:0; display:flex; flex-direction:column; justify-content:center; gap:8px; padding:7% 8%;
  background:var(--contrast-surface); }
.vx-fb-logo { height:16%; max-height:26px; width:auto; align-self:flex-start; opacity:.95; }
.vx-fb-chip { align-self:flex-start; background:var(--vx-teal); color:var(--on-brand); font-weight:800; font-size:10.5px; letter-spacing:.06em; text-transform:uppercase; padding:3px 9px; border-radius:99px; }
.vx-fb-title { color:var(--on-contrast); font-weight:800; font-size:clamp(13px, 1.6vw, 20px); line-height:1.2; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; max-width:90%; }
.vx-card .vx-fb { justify-content:flex-end; padding:44px 18px 16px; gap:6px; }
.vx-card .vx-fb-chip { display:none; }
.vx-fb img.vx-fb-logo { width:auto; height:20px; max-height:none; object-fit:contain; }
.vx-card .vx-fb img.vx-fb-logo { display:none; }
.vx-card .vx-fb-title { font-size:clamp(14px, 1.25vw, 17px); -webkit-line-clamp:2; max-width:70%; }
.vx-card .vx-fb::before { content:''; width:36px; height:4px; border-radius:2px; background:var(--vx-teal); order:-1; }
.vx-card.locked .vx-fb { filter:brightness(.8); }
.vx-ghost { position:fixed; z-index:400; transform-origin:0 0; border-radius:16px; box-shadow:0 30px 60px -20px color-mix(in srgb,var(--shadow-color) 55%,transparent); pointer-events:none; }

/* ---------- Lecture sur place (accueil) ---------- */
.vx-inline { position:relative; width:100%; height:100%; aspect-ratio:16 / 9; background:var(--contrast-surface); border-radius:inherit; overflow:hidden; opacity:0; transform:scale(.985); transition:opacity .35s ease, transform .45s var(--vx-ease); }
.vx-inline.on { opacity:1; transform:none; }
.vx-inline video, .vx-inline iframe { width:100%; height:100%; border:0; display:block; background:var(--contrast-surface); }

/* ---------- Salle de projection ---------- */
.vt { margin-bottom:36px; scroll-margin-top:84px; }
.vt-grid { display:grid; grid-template-columns:minmax(0, 1fr) 340px; gap:20px; align-items:stretch; }
.vt-stage { min-width:0; background:var(--surface); border:1px solid var(--vx-line); border-radius:18px; overflow:hidden; box-shadow:0 24px 60px -36px color-mix(in srgb,var(--shadow-color) 55%,transparent); transition:transform .5s var(--vx-ease), opacity .4s ease; }
.vt-media { position:relative; aspect-ratio:16 / 9; background:var(--contrast-surface); transition:opacity .18s ease; }
.vt-media.swap { opacity:0; }
.vt-media video, .vt-media iframe { position:absolute; inset:0; width:100%; height:100%; border:0; display:block; }
.vt-meta { position:relative; padding:18px 22px 22px; }
.vt-tags { display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin-bottom:8px; padding-right:110px; }
.vt-subj { font-size:12.5px; font-weight:600; color:var(--vx-muted); }
.vt-subj + .vt-subj::before { content:'·'; margin-right:8px; }
.vt-title { font-size:clamp(18px, 1.8vw, 22px); line-height:1.3; color:var(--vx-navy); margin:0; }
.vt-desc { margin:8px 0 0; color:var(--vx-ink); font-size:14.5px; line-height:1.6; }
.vt-close { position:absolute; top:16px; right:18px; display:inline-flex; align-items:center; gap:6px; border:1px solid var(--vx-line); background:var(--surface); color:var(--vx-navy); border-radius:9px; padding:6px 12px; font:600 13px inherit; font-family:inherit; cursor:pointer; }
.vt-close svg { width:16px; height:16px; }
.vt-close:hover { border-color:var(--vx-navy); }

.vt-list { position:relative; min-height:360px; background:var(--surface); border:1px solid var(--vx-line); border-radius:18px; overflow:hidden; display:flex; flex-direction:column; transition:transform .55s var(--vx-ease) .08s, opacity .45s ease .08s; }
.vt-list-head { display:flex; justify-content:space-between; align-items:baseline; padding:16px 18px 12px; border-bottom:1px solid var(--vx-line); }
.vt-list-head b { color:var(--vx-navy); font-size:15px; }
.vt-count { font-size:12.5px; color:var(--vx-muted); }
.vt-scroll { position:absolute; top:50px; left:0; right:0; bottom:0; overflow-y:auto; padding:8px; scrollbar-width:thin; }
.vt-item { all:unset; box-sizing:border-box; cursor:pointer; display:grid; grid-template-columns:132px minmax(0, 1fr); gap:12px; align-items:center; width:100%; padding:8px; border-radius:12px; transition:background .15s; }
.vt-scroll.anim .vt-item { animation:vtIn .45s var(--vx-ease) both; animation-delay:calc(min(var(--i), 8) * 45ms + 120ms); }
.vt-item:hover { background:var(--vx-mist); }
.vt-item.on { background:var(--vx-teal0); box-shadow:inset 3px 0 0 var(--vx-teal); }
.vt-item:focus-visible { outline:2px solid var(--vx-teal); }
.vt-item .vx-thumb { border-radius:9px; }
.vt-item .vx-fb { padding:6px 8px; gap:3px; } .vt-item .vx-fb-logo, .vt-item .vx-fb-chip { display:none; } .vt-item .vx-fb-title { font-size:11px; -webkit-line-clamp:3; }
.vt-item.locked .vx-thumb img { filter:grayscale(.4) brightness(.65); }
.vt-item-txt { display:flex; flex-direction:column; gap:2px; min-width:0; }
.vt-item-txt small { font-size:10.5px; font-weight:700; letter-spacing:.05em; text-transform:uppercase; color:var(--vx-teal7); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.vt-item-txt b { font-size:13.5px; line-height:1.3; color:var(--vx-navy); display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.vt-item-txt span { display:inline-flex; align-items:center; gap:5px; font-size:12px; color:var(--vx-muted); }
.vt-item-txt span svg { width:13px; height:13px; color:var(--vx-teal7); }
@keyframes vtIn { from { opacity:0; transform:translateX(18px); } }

.vt.opening .vt-stage { opacity:0; transform:translateY(8px) scale(.98); }
.vt.opening .vt-list { opacity:0; transform:translateX(40px); }
.vt.closing .vt-stage, .vt.closing .vt-list { opacity:0; transform:scale(.98); transition-duration:.25s; transition-delay:0s; }

.vt-locked { position:absolute; inset:0; display:grid; place-items:center; background:var(--vx-navy9); overflow:hidden; }
.vt-locked img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; filter:blur(6px) brightness(.35); transform:scale(1.08); }
.vt-locked-in { position:relative; text-align:center; max-width:440px; padding:20px; color:var(--contrast-muted); }
.vt-locked-ico { width:54px; height:54px; border-radius:16px; background:color-mix(in srgb,var(--accent) 18%,transparent); color:var(--vx-teal); display:grid; place-items:center; margin:0 auto 12px; }
.vt-locked-ico svg { width:26px; height:26px; }
.vt-locked-in b { color:var(--on-contrast); font-size:18px; display:block; }
.vt-locked-in p { margin:8px 0 0; font-size:14px; line-height:1.55; }
.vt-cta { display:flex; gap:10px; justify-content:center; flex-wrap:wrap; margin-top:16px; }
.vx-btn { display:inline-flex; align-items:center; height:40px; padding:0 18px; border-radius:10px; background:var(--vx-teal); color:var(--on-brand); font-weight:700; font-size:14px; text-decoration:none; }
.vx-btn.ghost { background:transparent; color:var(--on-contrast); border:1px solid color-mix(in srgb,var(--on-contrast) 35%,transparent); }
.vx-btn:hover { filter:brightness(1.06); }

/* ---------- Genres + sujets ---------- */
.vx-genres { display:flex; gap:8px; flex-wrap:wrap; }
.vx-genres button { border:1px solid var(--line); background:var(--surface); color:var(--vx-ink); font:600 13px inherit; font-family:inherit; padding:7px 14px; border-radius:99px; cursor:pointer; transition:all .15s; }
.vx-genres button:hover { border-color:var(--vx-navy); }
.vx-genres button.on { background:var(--contrast-surface); border-color:var(--contrast-surface); color:var(--on-contrast); }
.vx-lib { display:grid; grid-template-columns:230px minmax(0, 1fr); gap:28px; align-items:start; }
.vx-subnav { position:sticky; top:90px; background:var(--surface); border:1px solid var(--vx-line); border-radius:16px; padding:14px 10px; }
.vx-subnav > b { display:block; padding:0 10px 8px; font-size:12px; letter-spacing:.08em; text-transform:uppercase; color:var(--vx-muted); }
.vx-subnav-list { display:flex; flex-direction:column; gap:2px; }
.vx-subnav button { all:unset; box-sizing:border-box; cursor:pointer; display:flex; justify-content:space-between; align-items:center; gap:10px; padding:9px 10px; border-radius:10px; font-size:14px; font-weight:600; color:var(--vx-ink); }
.vx-subnav button:hover { background:var(--vx-mist); }
.vx-subnav button.on { background:var(--contrast-surface); color:var(--on-contrast); }
.vx-subnav button:disabled { opacity:.4; cursor:default; }
.vx-subnav button em { font-style:normal; font-size:12px; font-weight:700; min-width:24px; text-align:center; padding:1px 7px; border-radius:99px; background:var(--vx-mist); color:var(--vx-muted); }
.vx-subnav button.on em { background:color-mix(in srgb,var(--surface) 15%,transparent); color:var(--on-contrast); }
.vx-subnav button:focus-visible { outline:2px solid var(--vx-teal); }
.vx-libhead { display:flex; justify-content:space-between; align-items:center; gap:14px; flex-wrap:wrap; margin-bottom:18px; }
.vx-libhead h3 { margin:0; font-size:20px; color:var(--vx-navy); }
.vx-libhead .vx-genres { margin:0; }
.vx-body small { font-size:11px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--vx-teal7); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.vs-head { display:flex; align-items:baseline; gap:12px; margin-bottom:14px; padding-bottom:10px; border-bottom:1px solid var(--vx-line); }
.vs-head h3 { margin:0; font-size:18px; color:var(--vx-navy); }
.vs-head span { font-size:13px; color:var(--vx-muted); }
.vs-grid { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:20px; }
@media (max-width: 1180px) { .vs-grid { grid-template-columns:repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .vx-lib { grid-template-columns:1fr; gap:16px; }
  .vx-subnav { position:static; padding:8px; border-radius:14px; }
  .vx-subnav > b { display:none; }
  .vx-subnav-list { flex-direction:row; overflow-x:auto; scrollbar-width:none; }
  .vx-subnav button { flex:none; }
}
.vx-empty { color:var(--vx-muted); }

.vx-card { all:unset; box-sizing:border-box; position:relative; cursor:pointer; display:flex; flex-direction:column; background:var(--surface); border:1px solid var(--vx-line); border-radius:16px; overflow:hidden; transition:transform .25s var(--vx-ease), box-shadow .25s, border-color .2s; }
.vx-card:hover { transform:translateY(-3px); box-shadow:0 18px 40px -24px color-mix(in srgb,var(--shadow-color) 50%,transparent); }
.vx-card:hover .vx-thumb img { transform:scale(1.04); }
.vx-card:focus-visible { outline:3px solid var(--vx-teal); outline-offset:2px; }
.vx-card.playing { border-color:var(--vx-teal); box-shadow:0 0 0 2px var(--vx-teal); }
.vx-card.locked .vx-thumb img { filter:grayscale(.35) brightness(.62); }
.vx-badges { position:absolute; top:10px; left:10px; right:10px; display:flex; justify-content:space-between; gap:8px; pointer-events:none; }
.vx-genre { background:color-mix(in srgb,var(--surface) 95%,transparent); color:var(--vx-navy); font-size:11px; font-weight:700; letter-spacing:.03em; padding:3px 9px; border-radius:99px; }
.vt-tags .vx-genre { background:var(--vx-teal0); color:var(--vx-teal7); }
.vx-free { background:var(--vx-teal); color:var(--on-brand); font-size:11px; font-weight:700; padding:3px 9px; border-radius:99px; }
.vx-lockb { display:inline-flex; align-items:center; gap:4px; background:color-mix(in srgb,var(--contrast-surface) 85%,transparent); color:var(--on-contrast); font-size:11px; font-weight:700; padding:3px 9px; border-radius:99px; }
.vx-lockb svg { width:12px; height:12px; }
.vx-over { position:absolute; inset:0; display:grid; place-items:center; pointer-events:none; }
.vx-play { width:52px; height:52px; border-radius:50%; background:color-mix(in srgb,var(--surface) 95%,transparent); color:var(--vx-navy); display:grid; place-items:center; box-shadow:0 8px 22px color-mix(in srgb,var(--shadow-color) 28%,transparent); transform:scale(.92); opacity:.92; transition:transform .25s var(--vx-ease), opacity .2s; }
.vx-play svg { width:22px; height:22px; margin-left:3px; }
.vx-card.locked .vx-play svg { margin:0; width:20px; height:20px; }
.vx-card:hover .vx-play { transform:scale(1.04); opacity:1; }
.vx-now { display:inline-flex; align-items:center; gap:6px; background:var(--vx-teal); color:var(--on-brand); font-weight:800; font-size:12.5px; padding:6px 12px; border-radius:99px; }
.vx-now svg { width:16px; height:16px; }
.vx-mw { position:relative; display:block; }
.vx-dur { position:absolute; right:10px; bottom:10px; background:color-mix(in srgb,var(--contrast-surface) 85%,transparent); color:var(--on-contrast); font-size:12px; font-weight:700; padding:2px 7px; border-radius:6px; }
.vx-body { display:flex; flex-direction:column; gap:6px; padding:14px 16px 16px; }
.vx-body b { color:var(--vx-navy); font-size:15px; line-height:1.35; min-height:calc(1.35em * 2); display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.vx-body span { color:var(--vx-muted); font-size:13px; line-height:1.5; min-height:calc(1.5em * 2); display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }

@media (max-width: 1080px) {
  .vt-grid { grid-template-columns:1fr; }
  .vt-list { min-height:0; }
  .vt-scroll { position:static; max-height:none; overflow:visible; display:grid; grid-template-columns:repeat(auto-fill, minmax(280px, 1fr)); gap:4px; }
}
@media (max-width: 640px) {
  .vt-media.is-locked { aspect-ratio:auto; }
  .vt-media.is-locked .vt-locked { position:relative; inset:auto; padding:26px 0; }
}
@media (max-width: 560px) {
  .vt-meta { padding:14px 16px 18px; }
  .vt-tags { padding-right:0; }
  .vt-close { position:static; margin-top:12px; }
  .vs-grid { grid-template-columns:1fr; }
  .vx-card .vx-over { place-items:center; }
}
@media (prefers-reduced-motion: reduce) {
  .vt-item { animation:none; }
  .vt-stage, .vt-list, .vx-inline, .vx-card, .vx-thumb img { transition:none; }
}
