/* ══════════════════════════════════════════════════════════
   video-showcase.css — vitrine « 🎬 إعلان فيديو »
   · .vx-card : carte de l'accueil de l'application (app/vidshow.js) ;
   · .vsec    : section du site public (public/site/index.html, #video) ;
   · .vx-how  : les 3 étapes illustrées, communes aux deux (fond sombre « cinéma »).
   Boucles muettes 9:16 dans un cadre de téléphone : taille fixée par aspect-ratio (aucun saut de mise en page),
   affiche (jpg) d'abord ; prefers-reduced-motion → aucune animation (le JS ne lance pas les vidéos).
   ══════════════════════════════════════════════════════════ */
.vx-dark, .vx-card, .vsec { --vs-ink: var(--night-ink); --vs-mute: var(--night-mute); --vs-hi: var(--night-hi); --vs-glass: rgba(255, 255, 255, .09); --vs-glass-2: rgba(255, 255, 255, .16); }

/* ── Cadre de téléphone + boucle ───────────────── */
.vx-phone { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: 22px; padding: 5px; background: #05070d; flex: none;
  box-shadow: 0 22px 44px -18px rgba(0, 0, 0, .65), inset 0 0 0 1.5px rgba(255, 255, 255, .12); }
.vx-phone::before { content: ""; position: absolute; top: 9px; left: 50%; width: 30%; height: 7px; margin-left: -15%; border-radius: 6px; background: #05070d; z-index: 2; }
.vx-loop { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 17px; background: #1a1d26; }

/* ── 3 étapes illustrées ─────────────────────────── */
.vx-how { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.vx-step { display: flex; align-items: center; gap: 10px; min-width: 0; }
.vx-st { display: flex; align-items: flex-start; gap: 7px; min-width: 0; font-size: var(--fs-sm); line-height: 1.45; color: var(--vs-ink); }
.vx-st b { font-weight: 600; }
.vx-n { width: 20px; height: 20px; border-radius: 50%; flex: none; display: inline-grid; place-items: center; font-size: .72rem; font-weight: 700; background: var(--vs-glass-2); color: var(--vs-ink); margin-top: 1px; }
.vx-art { position: relative; width: 44px; height: 44px; border-radius: 14px; flex: none; display: grid; place-items: center; background: var(--vs-glass); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
  animation: vx-on 6s infinite; }
.vx-step:nth-child(2) .vx-art { animation-delay: 2s; }
.vx-step:nth-child(3) .vx-art { animation-delay: 4s; }
@keyframes vx-on { 0%, 30% { background: rgba(255, 255, 255, .2); box-shadow: inset 0 0 0 1.5px var(--vs-hi), 0 0 0 4px rgba(255, 198, 222, .12); } 40%, 100% { background: var(--vs-glass); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); } }
/* ① un mini-catalogue de 3 modèles, le choisi s'allume */
.vx-art-tpl { display: flex; gap: 3px; align-items: center; justify-content: center; }
.vx-art-tpl i { width: 9px; height: 16px; border-radius: 3px; background: rgba(255, 255, 255, .35); animation: vx-pick 3s infinite; }
.vx-art-tpl i:nth-child(1) { background: linear-gradient(#ffb36b, #e2557a); }
.vx-art-tpl i:nth-child(2) { background: linear-gradient(#7fd0ff, #5b3cc4); animation-delay: 1s; }
.vx-art-tpl i:nth-child(3) { background: linear-gradient(#9ff0b4, #0d7a63); animation-delay: 2s; }
@keyframes vx-pick { 0%, 33% { transform: translateY(-3px) scale(1.12); box-shadow: 0 0 0 1.5px #fff; } 34%, 100% { transform: none; box-shadow: none; } }
/* ② photo + vidéo + logo qui « montent » */
.vx-art-up .ico { position: absolute; width: 15px; height: 15px; color: #fff; stroke-width: 2.2; }
.vx-art-up .ico:nth-child(1) { top: 7px; inset-inline-start: 7px; animation: vx-up 2.4s infinite; }
.vx-art-up .ico:nth-child(2) { top: 7px; inset-inline-end: 7px; fill: #fff; animation: vx-up 2.4s .8s infinite; }
.vx-logo { position: absolute; bottom: 7px; left: 50%; transform: translateX(-50%); font: 800 .5rem/1 var(--font); letter-spacing: .06em; color: var(--night); background: var(--vs-hi); padding: 2px 4px; border-radius: 4px; animation: vx-up2 2.4s 1.6s infinite; }
@keyframes vx-up { 0%, 100% { transform: translateY(2px); opacity: .75; } 50% { transform: translateY(-2px); opacity: 1; } }
@keyframes vx-up2 { 0%, 100% { transform: translate(-50%, 2px); } 50% { transform: translate(-50%, -2px); } }
/* ③ un mini-téléphone qui joue */
.vx-art-out::before { content: ""; position: absolute; width: 20px; height: 32px; border-radius: 5px; border: 2px solid rgba(255, 255, 255, .85); }
.vx-art-out .ico { position: relative; width: 11px; height: 11px; color: var(--vs-hi); fill: var(--vs-hi); animation: vx-beat 1.2s infinite; }
@keyframes vx-beat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.25); } }

/* ── Carte de l'accueil (application) ────────────── */
.vx-card { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-5); border-radius: var(--r-lg); color: var(--vs-ink);
  background: radial-gradient(70% 60% at 100% 0%, rgba(193, 53, 132, .45), transparent 70%), radial-gradient(60% 70% at 0% 100%, rgba(8, 102, 255, .4), transparent 70%), linear-gradient(160deg, var(--night), var(--night-2));
  box-shadow: var(--shadow-lg); }
.vx-card-b { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "copy phone" "how phone"; gap: var(--space-4) var(--space-4); align-items: start; }
.vx-card-copy { grid-area: copy; min-width: 0; }
.vx-card .vx-phone { grid-area: phone; width: 132px; align-self: center; }
.vx-card .vx-how { grid-area: how; }
.vx-kick { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--fs-sm); font-weight: 600; color: var(--vs-mute); }
.vx-new { font-size: var(--fs-xs); font-weight: 700; padding: 2px 9px; border-radius: var(--r-pill); background: var(--vs-hi); color: var(--night); }
.vx-card-t { margin: var(--space-1) 0 2px; font-size: var(--fs-2xl); color: #fff; line-height: 1.25; }
.vx-pitch { color: var(--vs-ink); opacity: .92; font-size: var(--fs-md); line-height: 1.55; }
.vx-card .vx-go, .vsec .vx-go { background: #fff; color: var(--night); min-height: 56px; border-radius: var(--r-md); font-weight: 700; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .5); }
.vx-card .vx-go:hover, .vsec .vx-go:hover { background: #eef3ff; text-decoration: none; }
@media (max-width: 560px) {
  .vx-card { padding: var(--space-4); gap: var(--space-3); }
  .vx-card-b { grid-template-areas: "copy copy" "how phone"; gap: var(--space-3); }
  .vx-card .vx-phone { width: 104px; }
  .vx-card-t { font-size: var(--fs-xl); }
  .vx-card .vx-art { width: 40px; height: 40px; }
}

/* ── Section du site public ─────────────────────── */
.vsec { color: var(--vs-ink); position: relative; overflow: hidden;
  background: radial-gradient(45% 55% at 92% 8%, rgba(193, 53, 132, .38), transparent 70%), radial-gradient(45% 55% at 6% 92%, rgba(8, 102, 255, .36), transparent 70%), linear-gradient(165deg, var(--night), var(--night-2)); }
.vsec .sec-h { max-width: 760px; }
.vsec .sec-h h2 { color: #fff; margin: 0 0 10px; text-wrap: balance; }
.vsec .sec-h p { color: var(--vs-ink); opacity: .9; }
.vsec .kicker { background: rgba(255, 255, 255, .1); color: var(--vs-hi); display: inline-flex; align-items: center; gap: 8px; }
.vsec .kicker .badge { background: var(--warn-soft); color: var(--warn); }
.vsec-ben { list-style: none; padding: 0; margin: 0 auto 36px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 860px; }
.vsec-ben li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: var(--vs-glass); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); font-weight: 600; font-size: .95rem; }
.vsec-ben .ico { width: 1.05em; height: 1.05em; color: var(--night-ok); stroke-width: 2.8; flex: none; }
/* Rangée de téléphones : défile horizontalement DANS la section sur téléphone (jamais la page) */
.vsec-reel { display: flex; justify-content: center; align-items: flex-end; gap: 18px; margin: 0 auto 40px; padding: 8px 4px 14px; }
.vsec-reel .vx-phone { width: 178px; }
.vsec-reel .vx-phone:nth-child(2), .vsec-reel .vx-phone:nth-child(3) { transform: translateY(-18px); }
.vsec-how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: 860px; margin: 0 auto 32px; }
.vsec-how .vx-step { flex-direction: column; text-align: center; gap: 12px; padding: 20px 14px; border-radius: 20px; background: var(--vs-glass); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.vsec-how .vx-art { width: 64px; height: 64px; border-radius: 18px; transform: scale(1); }
.vsec-how .vx-art-tpl i { width: 13px; height: 24px; }
.vsec-how .vx-art-up .ico { width: 21px; height: 21px; top: 10px; }
.vsec-how .vx-art-up .ico:nth-child(1) { inset-inline-start: 10px; } .vsec-how .vx-art-up .ico:nth-child(2) { inset-inline-end: 10px; }
.vsec-how .vx-logo { font-size: .66rem; bottom: 10px; }
.vsec-how .vx-art-out::before { width: 28px; height: 46px; border-radius: 7px; }
.vsec-how .vx-art-out .ico { width: 15px; height: 15px; }
.vsec-how .vx-st { flex-direction: column; align-items: center; font-size: 1rem; }
.vsec-cta { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.vsec-cta .vx-go { min-width: 240px; }
.vsec-note { margin: 0; font-size: .8rem; color: var(--vs-mute); text-align: center; }
@media (max-width: 760px) {
  .vsec-reel { justify-content: flex-start; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; gap: 12px; }
  .vsec-reel::-webkit-scrollbar { display: none; }
  .vsec-reel .vx-phone { width: 148px; scroll-snap-align: center; }
  .vsec-reel .vx-phone:nth-child(2), .vsec-reel .vx-phone:nth-child(3) { transform: none; }
  .vsec-how { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .vsec-how .vx-step { flex-direction: row; text-align: start; padding: 12px 14px; }
  .vsec-how .vx-art { width: 52px; height: 52px; }
  .vsec-how .vx-st { flex-direction: row; align-items: center; font-size: .98rem; }
  .vsec-ben { flex-direction: column; align-items: stretch; margin-bottom: 26px; }
  .vsec-cta .vx-go { width: 100%; }
}
/* Pastille « جديد » dans le hero du site → #video */
.h-vid { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 16px; padding: 6px 16px; border-radius: 999px; font-weight: 600; font-size: .93rem;
  color: var(--ink); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.h-vid:hover { text-decoration: none; border-color: var(--accent); }
.h-vid b { color: var(--accent-text); }
.h-vid .ico { width: 1em; height: 1em; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .vx-art, .vx-art-tpl i, .vx-art-up .ico, .vx-logo, .vx-art-out .ico { animation: none !important; }
}