/* Visuels du hero (landing) et du panneau de connexion.
   Captures réelles de l'app (données de démo fictives), police Epilogue 400. */

@font-face {
  font-family: "Epilogue";
  src: url("../fonts/epilogue-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

.vt-font { font-family: "Epilogue", system-ui, sans-serif; font-weight: 400; font-style: normal; }

/* ───────── Hero : ordinateur + téléphone + pastilles ───────── */
.vt-hero {
  position: relative;
  width: 100%;
  max-width: 600px;
  aspect-ratio: 6 / 5;
}
.vt-browser {
  position: absolute; left: 0; top: 6%;
  width: 88%;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 30px 60px rgba(17, 24, 39, .16), 0 0 0 1px rgba(17, 24, 39, .07);
}
.vt-browser-bar {
  display: flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 12px;
  background: #f3f4f6; border-bottom: 1px solid #e5e7eb;
}
.vt-browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #d1d5db; }
.vt-browser-url {
  margin-left: 10px; padding: 3px 12px; border-radius: 999px;
  background: #fff; color: #6b7280; font-size: 11px; line-height: 1.2;
}
.vt-browser img, .vt-phone img { display: block; width: 100%; height: auto; }

.vt-phone {
  position: absolute; right: 0; bottom: 0;
  width: 34%;
  border-radius: 26px;
  border: 7px solid #1f2937;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 30px 60px rgba(17, 24, 39, .28), 0 0 0 1px rgba(255, 255, 255, .15);
}

.vt-pill {
  position: absolute;
  white-space: nowrap;
  padding: .55em 1.05em;
  border-radius: 999px;
  color: #fff;
  font-size: 13px; line-height: 1.2;
  box-shadow: 0 12px 28px rgba(17, 24, 39, .22);
}
.vt-pill--green  { background: #16a34a; }
.vt-pill--orange { background: #ea580c; }
.vt-pill-1 { top: 0;    left: 44%; }
.vt-pill-2 { top: 47%;  left: -3%; }
.vt-pill-3 { bottom: 5%; left: 22%; }

/* Apparition une fois, puis léger flottement */
@keyframes vt-in    { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes vt-float { from { transform: translateY(0); } to { transform: translateY(-6px); } }
.vt-anim { opacity: 0; animation: vt-in .7s cubic-bezier(.2, .8, .2, 1) var(--d, 0s) forwards; }
.vt-pill.vt-anim { animation: vt-in .6s cubic-bezier(.2, .8, .2, 1) var(--d, 0s) forwards, vt-float 5s ease-in-out calc(var(--d, 0s) + .6s) infinite alternate; }

/* Mobile : le téléphone seul, avec une pastille */
@media (max-width: 767px) {
  .vt-hero { aspect-ratio: auto; max-width: 260px; padding-bottom: 28px; }
  .vt-browser, .vt-pill-1, .vt-pill-2 { display: none; }
  .vt-phone { position: relative; width: 100%; }
  .vt-pill-3 { left: 50%; bottom: 0; margin-left: -9.5em; }
}

/* ───────── Connexion : panneau de marque ───────── */
.vt-login-panel {
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 48px 32px 300px;   /* bas réservé au téléphone */
  color: #fff;
  background-color: #2563eb;
  background-image:
    radial-gradient(70% 50% at 50% 30%, rgba(255, 255, 255, .16), transparent 70%),
    linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: auto, 48px 24px, 48px 24px;
}
.vt-login-mark { width: 84px; height: 84px; filter: drop-shadow(0 10px 24px rgba(17, 24, 39, .25)); }
.vt-login-tagline { margin-top: 22px; font-size: 14px; letter-spacing: .2em; text-transform: uppercase; text-align: center; }
.vt-login-sub { margin-top: 10px; font-size: 15px; color: rgba(255, 255, 255, .8); text-align: center; }
.vt-login-phone {
  position: absolute; left: 50%; bottom: 0;
  width: min(280px, 72%);
  transform: translate(-50%, 46%);
  border-radius: 30px 30px 0 0;
  border: 8px solid #1f2937; border-bottom: 0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 -10px 50px rgba(17, 24, 39, .3);
}
.vt-login-phone img { display: block; width: 100%; height: auto; }

/* Mobile : bandeau compact au-dessus du formulaire, sans capture */
@media (max-width: 767px) {
  .vt-login-panel { flex-direction: row; justify-content: center; gap: 14px; padding: 22px 20px; }
  .vt-login-mark { width: 44px; height: 44px; }
  .vt-login-tagline { margin-top: 0; font-size: 12px; letter-spacing: .16em; }
  .vt-login-sub, .vt-login-phone { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .vt-anim, .vt-pill.vt-anim { animation: none; opacity: 1; }
}
