/* VECOS - page des fonctionnalites (public/features). Toutes les regles sont limitees a .vf pour ne pas toucher le reste du site. */
.vf * { box-sizing: border-box; }
.vf svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.vf a { color: var(--accent); }
@keyframes drift { from { transform: scale(1.02) translate3d(-1%, 0, 0); } to { transform: scale(1.08) translate3d(1%, -1.5%, 0); } }
.vf .devices { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.vf .devices li {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
  background: rgba(27, 36, 47, .72); border: 1px solid var(--border); backdrop-filter: blur(8px); font-weight: 600; }
.vf .devices svg { color: var(--accent); }
.vf .stats { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 32px; }
.vf .stat { min-width: 132px; padding: 14px 18px; border-radius: var(--radius); background: rgba(27, 36, 47, .72); border: 1px solid var(--border); backdrop-filter: blur(8px); }
.vf .stat b { display: block; font-size: 32px; line-height: 1; color: var(--accent); font-weight: 800; }
.vf .stat span { font-size: 13px; color: var(--text-2); }
.vf .bar { position: sticky; top: 0; z-index: 20; background: rgba(27, 36, 47, .92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.vf .bar-inner { max-width: 1320px; margin: 0 auto; padding: 10px 24px; display: flex; flex-direction: column; gap: 10px; }
.vf .areas { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.vf .areas::-webkit-scrollbar { display: none; }
.vf .areas a {
  white-space: nowrap; text-decoration: none; color: var(--text-2); font-size: 14px; font-weight: 600;
  padding: 7px 12px; border-radius: 10px; transition: background .2s, color .2s; }
.vf .areas a:hover { background: var(--surface); color: var(--text); }
.vf .areas a.on { background: var(--accent-soft); color: var(--accent); }
.vf .tools { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.vf .search { flex: 1 1 260px; display: flex; align-items: center; gap: 8px; padding: 0 14px; border-radius: 12px; background: var(--sunken); border: 1px solid var(--border); }
.vf .search svg { color: var(--muted); }
.vf .search input { flex: 1; min-width: 0; background: none; border: 0; color: var(--text); font: inherit; padding: 10px 0; outline: none; }
.vf .search:focus-within { border-color: var(--accent); }
.vf .filter { display: flex; background: var(--sunken); border: 1px solid var(--border); border-radius: 12px; padding: 3px; }
.vf .filter button { background: none; border: 0; color: var(--text-2); font: inherit; font-size: 14px; font-weight: 600; padding: 7px 12px; border-radius: 9px; cursor: pointer; }
.vf .filter button.on { background: var(--accent); color: var(--on-accent); }
.vf .vf-main { max-width: 1320px; margin: 0 auto; padding: 24px 24px 40px; }
.vf .area { padding: 48px 0 8px; }
.vf .area-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.vf .area-num { font-size: 13px; font-weight: 700; letter-spacing: .16em; color: var(--accent); text-transform: uppercase; }
.vf .area h2 { font-size: clamp(26px, 3.2vw, 38px); margin: 4px 0 6px; letter-spacing: -.01em; }
.vf .area-intro { color: var(--text-2); margin: 0; max-width: 760px; }
.vf .area-count { color: var(--muted); font-size: 14px; white-space: nowrap; }
.vf .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 560px), 1fr)); gap: 22px; }
.vf .card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease, border-color .2s; }
.vf .card.in { opacity: 1; transform: none; }
.vf .card:hover { border-color: var(--border-strong); }
.vf .card-text { padding: 20px 22px 14px; }
.vf .card-id { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .08em; }
.vf .card h3 { margin: 4px 0 6px; font-size: 21px; line-height: 1.25; }
.vf .card p.phrase { margin: 0; color: var(--text-2); }
.vf .tabs { display: flex; gap: 6px; padding: 0 22px 12px; flex-wrap: wrap; }
.vf .tab {
  display: inline-flex; align-items: center; gap: 7px; font: inherit; font-size: 13px; font-weight: 600;
  color: var(--text-2); background: var(--sunken); border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.vf .tab svg { width: 16px; height: 16px; }
.vf .tab.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.vf .tab.off { opacity: .55; }
.vf .stage { position: relative; margin: 0 22px; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--sunken); }
.vf .stage video,
.vf .stage img.media { width: 100%; height: 100%; object-fit: cover; display: block; }
.vf .stage.phone { background: radial-gradient(ellipse at center, #2d3b4b, var(--sunken)); display: grid; place-items: center; }
.vf .phone-frame {
  width: 86%; aspect-ratio: 19.5 / 9; border-radius: 12px; padding: 10px; background: #0b1016;
  box-shadow: 0 0 0 2px #3a4a5c, 0 20px 40px -12px rgba(0, 0, 0, .7); position: relative; }
.vf .phone-frame::before { content: ""; position: absolute; left: 4px; top: 50%; width: 5px; height: 38px; margin-top: -19px; border-radius: 3px; background: #1d2733; }
.vf .phone-screen { position: relative; width: 100%; height: 100%; border-radius: 12px; overflow: hidden; background: #000; }
.vf .phone-screen img.media,
.vf .phone-screen video.media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.vf .badge-dev {
  position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: rgba(15, 23, 42, .78); color: var(--text); backdrop-filter: blur(6px); }
.vf .badge-dev svg { width: 15px; height: 15px; color: var(--accent); }
.vf .thumb {
  position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; margin: 0; background: none;
  font: inherit; color: inherit; cursor: zoom-in; display: grid; place-items: center; }
.vf .stage:not(.phone) .thumb > .media { position: absolute; inset: 0; }
.vf .thumb:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; border-radius: 12px; }
.vf .thumb .media { transition: transform .5s ease, filter .3s ease; }
.vf .stage:not(.phone) .thumb:hover .media { transform: scale(1.025); }
.vf .thumb:hover .media { filter: brightness(1.06); }
.vf .play {
  position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(15, 23, 42, .62); color: #fff; backdrop-filter: blur(8px);
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .28), 0 12px 30px -8px rgba(0, 0, 0, .6); transition: transform .2s ease, background .2s ease, color .2s ease; }
.vf .play svg { width: 28px; height: 28px; fill: currentColor; stroke: none; margin-left: 4px; }
.vf .thumb:hover .play,
.vf .thumb:focus-visible .play { background: var(--accent); color: var(--on-accent); transform: scale(1.08); }
.vf .dur,
.vf .grow {
  position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; border-radius: 999px;
  background: rgba(15, 23, 42, .78); color: var(--text); backdrop-filter: blur(6px); font-size: 12px; font-weight: 700; }
.vf .dur { padding: 5px 10px; font-variant-numeric: tabular-nums; }
.vf .grow { width: 36px; height: 36px; justify-content: center; opacity: 0; transition: opacity .2s ease, background .2s ease; }
.vf .grow svg { width: 17px; height: 17px; }
.vf .thumb:hover .grow,
.vf .thumb:focus-visible .grow { opacity: 1; }
.vf .thumb:hover .grow { background: var(--accent); color: var(--on-accent); }
@media (hover: none) {
.vf .grow { opacity: 1; }
}
.vf .viewer {
  position: fixed; inset: 0; z-index: 100; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 14px;
  padding: 16px 24px 22px; background: rgba(13, 18, 25, .95); backdrop-filter: blur(14px);
  opacity: 0; transition: opacity .22s ease; }
.vf .viewer[hidden] { display: none; }
.vf .viewer.open { opacity: 1; }
.vf .vv-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; }
.vf .vv-where { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 14px; font-weight: 600; }
.vf .vv-area { color: var(--accent); background: var(--accent-soft); padding: 5px 12px; border-radius: 999px; white-space: nowrap; }
.vf .vv-id { color: var(--muted); letter-spacing: .08em; font-size: 12px; font-weight: 700; }
.vf .vv-hint { color: var(--muted); font-size: 13px; text-align: center; }
.vf .vv-right { display: flex; align-items: center; gap: 14px; }
.vf .vv-count { color: var(--text-2); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vf .vv-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text);
  display: grid; place-items: center; cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease; flex: none; }
.vf .vv-btn:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.vf .vv-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.vf .vv-main { display: grid; grid-template-columns: 56px minmax(0, 1fr) 56px; align-items: center; gap: 16px; min-height: 0; }
.vf .vv-arrow { width: 56px; height: 56px; }
.vf .vv-arrow svg { width: 26px; height: 26px; }
.vf .vv-prev:hover { transform: translateX(-2px); }
.vf .vv-next:hover { transform: translateX(2px); }
.vf .vv-cell { height: 100%; min-height: 0; display: grid; place-items: center; }
.vf .vv-frame {
  position: relative; border-radius: 12px; overflow: hidden; background: #000;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .06); }
.vf .vv-frame.loading { background: var(--sunken); }
.vf .vv-frame.empty { background: var(--sunken); }
.vf .vv-frame .media { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }
.vf .vv-frame video.media:focus { outline: none; }
.vf .vv-frame.phone { background: #0b1016; padding: 12px; border-radius: 12px; box-shadow: 0 0 0 2px #3a4a5c, 0 30px 80px -20px rgba(0, 0, 0, .8); }
.vf .vv-frame.phone .phone-screen { border-radius: 12px; }
.vf .vv-info {
  width: min(100%, 1180px); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 28px; align-items: start; }
.vf .vv-info h2 { margin: 0 0 4px; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.25; }
.vf .vv-phrase { margin: 0; color: var(--text-2); }
.vf .vv-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.vf .vv-tabs { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.vf .vv-note { margin: 0; max-width: 420px; font-size: 13px; color: var(--text-2); display: flex; gap: 8px; text-align: left; }
.vf .vv-note svg { width: 16px; height: 16px; color: var(--accent); margin-top: 2px; }
.vf .vv-note:empty { display: none; }
.vf .slot {
  position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 8px; padding: 16px;
  border: 2px dashed var(--border-strong); border-radius: 12px; color: var(--muted); font-size: 14px;
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .015) 0 12px, transparent 12px 24px); }
.vf .slot svg { width: 34px; height: 34px; margin: 0 auto; color: var(--border-strong); }
.vf .slot code { font-size: 12px; color: var(--text-2); background: var(--surface); padding: 3px 8px; border-radius: 6px; word-break: break-all; }
.vf .na { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; padding: 24px; gap: 10px; color: var(--text-2); }
.vf .na b { color: var(--text); font-size: 17px; }
.vf .na svg { width: 36px; height: 36px; margin: 0 auto; color: var(--muted); }
.vf .note { margin: 12px 22px 20px; font-size: 14px; color: var(--text-2); display: flex; gap: 8px; align-items: flex-start; min-height: 22px; }
.vf .note svg { width: 17px; height: 17px; color: var(--accent); margin-top: 2px; }
.vf .note:empty { display: none; }
.vf .hidden { display: none !important; }
.vf .empty-search { text-align: center; color: var(--muted); padding: 60px 0; }
@media (max-width: 720px) {
.vf .bar-inner,
.vf .vf-main { padding-left: 16px; padding-right: 16px; }
.vf .card-text { padding: 16px 16px 12px; }
.vf .tabs { padding: 0 16px 10px; }
.vf .stage { margin: 0 16px; }
.vf .note { margin: 10px 16px 16px; }
.vf .filter button { padding: 7px 9px; font-size: 13px; }
.vf .play { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
.vf .viewer { padding: 12px 12px 16px; gap: 10px; }
.vf .vv-hint { display: none; }
.vf .vv-main { grid-template-columns: minmax(0, 1fr); position: relative; }
.vf .vv-arrow { position: absolute; top: 50%; z-index: 2; width: 42px; height: 42px; margin-top: -21px; background: rgba(27, 36, 47, .82); backdrop-filter: blur(6px); }
.vf .vv-prev { left: 6px; }
.vf .vv-next { right: 6px; }
.vf .vv-info { grid-template-columns: minmax(0, 1fr); }
.vf .vv-side { align-items: flex-start; }
.vf .vv-tabs { justify-content: flex-start; }
.vf .vv-frame.phone { padding: 7px; border-radius: 12px; }
.vf .vv-frame.phone .phone-screen { border-radius: 12px; }
}
@media (prefers-reduced-motion: reduce) {
.vf .card { transition: none; opacity: 1; transform: none; }
}

/* ---- Integration au site ---- */
html.vf-lock { overflow: hidden; }
.vf .vf-accent { display: block; color: var(--accent); }
.vf .vf-hero .devices { justify-content: flex-start; margin: 22px 0 22px; }
.vf .vf-hero .stats { justify-content: flex-start; margin-bottom: 28px; }
.vf .vf-hero .v-lead { max-width: 720px; }
.vf .vf-one { max-width: 900px; margin: 40px auto 0; padding: 48px 24px 64px; text-align: center; }
.vf .vf-one h2 { font-size: clamp(28px, 3.6vw, 42px); margin: 0 0 12px; }
.vf .vf-one p { color: var(--text-2); font-size: 18px; margin: 0; }
.vf .bar { top: 0; }
@media (max-width: 720px) {
  .vf .vf-hero .stat { min-width: 0; flex: 1 1 calc(50% - 14px); }
}

/* Média absent : icône et message, sans chemin de fichier */
.vf .slot { gap: 10px; font-size: 15px; font-weight: 600; }
.vf .slot svg { width: 44px; height: 44px; color: var(--accent); opacity: .55; }
