/* ============================================================
   VALETIA ONE — iPhone + chat vivant (composant partagé)
   ============================================================ */

.vphone {
  width: min(330px, 84vw);
  aspect-ratio: 390 / 812;
  border-radius: 54px;
  background: linear-gradient(160deg, #2a2f38, #0c0f14 40%, #1a1f27);
  padding: 11px;
  position: relative;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.08) inset,
    0 30px 70px -22px rgba(0,0,0,0.65),
    0 8px 22px -10px rgba(0,0,0,0.5);
}
.vphone-screen {
  position: absolute; inset: 11px;
  border-radius: 44px;
  overflow: hidden;
  background-color: var(--paper);
  display: flex; flex-direction: column;
  color: var(--ink);
}
.vphone-screen::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 15% 10%, rgba(255,255,255,0.45) 0%, transparent 55%),
    radial-gradient(ellipse 70% 60% at 90% 95%, rgba(42,111,232,0.05) 0%, transparent 55%);
}
.vphone-screen > * { position: relative; z-index: 1; }

/* Variante écran sombre */
.vphone--dark .vphone-screen {
  background-color: var(--night);
  color: var(--night-ink);
}
.vphone--dark .vphone-screen::before {
  background:
    radial-gradient(ellipse 60% 50% at 10% 0%, rgba(61,197,232,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 100%, rgba(156,91,232,0.10) 0%, transparent 60%);
}

/* Dynamic island */
.vphone-island {
  width: 36%; height: 26px;
  background: #000;
  border-radius: 99px;
  margin: 10px auto 0;
  flex-shrink: 0;
}

/* Status bar */
.vphone-status {
  display: flex; justify-content: space-between; align-items: center;
  padding: 2px 26px 0;
  font-family: var(--font-sans); font-size: 13px; font-weight: 600;
  flex-shrink: 0;
}
.vphone-status .sig { display: flex; gap: 3px; align-items: flex-end; }
.vphone-status .sig i {
  display: block; width: 3px; border-radius: 1px; background: currentColor;
}
.vphone-status .sig i:nth-child(1) { height: 4px; }
.vphone-status .sig i:nth-child(2) { height: 6px; }
.vphone-status .sig i:nth-child(3) { height: 8px; }
.vphone-status .sig i:nth-child(4) { height: 10px; }

/* Header app */
.vphone-head {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 22px 12px;
  flex-shrink: 0;
}
.vphone-head img { width: 26px; height: 26px; object-fit: contain; }
.vphone-head .k {
  font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.2em;
  text-transform: uppercase; opacity: 0.55;
}
.vphone-head .t {
  font-family: var(--font-serif); font-size: 17px; line-height: 1.1;
  font-variation-settings: "opsz" 30, "SOFT" 50;
}

/* ─── Chat ─── */
.vchat-feed {
  flex: 1;
  overflow: hidden;
  padding: 6px 22px;
  display: flex; flex-direction: column; gap: 16px;
}
.vchat-msg { display: flex; gap: 10px; align-items: flex-start; }
.vchat-who {
  font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.18em;
  opacity: 0.45; padding-top: 5px; min-width: 16px; flex-shrink: 0;
}
.vchat-text {
  font-family: var(--font-serif);
  font-size: 14.5px; line-height: 1.5;
  font-variation-settings: "opsz" 30, "SOFT" 50;
  white-space: pre-wrap;
}
.vchat-user .vchat-text {
  font-style: italic;
  font-variation-settings: "opsz" 30, "SOFT" 80, "WONK" 1;
  border-left: 1.5px solid var(--paper-edge);
  padding-left: 10px;
  opacity: 0.85;
}
.vphone--dark .vchat-user .vchat-text { border-left-color: var(--night-edge); }

/* typing dots */
.vchat-dots { display: inline-flex; gap: 4px; padding: 8px 0 0 2px; }
.vchat-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: currentColor; opacity: 0.4;
  animation: vchat-bounce 1.2s ease-in-out infinite;
}
.vchat-dot:nth-child(2) { animation-delay: 0.15s; }
.vchat-dot:nth-child(3) { animation-delay: 0.3s; }
@keyframes vchat-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.35; }
  30% { transform: translateY(-3px); opacity: 1; }
}

/* caret de streaming */
.vchat-caret {
  display: inline-block; width: 2px; height: 0.95em; margin-left: 2px;
  background: var(--blue);
  vertical-align: text-bottom;
  animation: vchat-blink 0.9s steps(1) infinite;
}
@keyframes vchat-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* Barre de saisie */
.vphone-input {
  margin: 10px 16px 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 8px 12px 16px;
  border: 0.75px solid var(--paper-edge);
  background: var(--paper-hi);
  border-radius: 99px;
  font-family: var(--font-serif); font-style: italic;
  font-size: 13px; color: var(--ink-fade);
  flex-shrink: 0;
}
.vphone--dark .vphone-input {
  border-color: var(--night-edge); background: var(--night-hi);
  color: var(--night-ink-fade);
}
.vphone-send {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--grad); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-sans); font-size: 14px; font-style: normal;
}

/* Home indicator */
.vphone-home {
  width: 110px; height: 4px; border-radius: 99px;
  background: currentColor; opacity: 0.25;
  margin: 10px auto 8px; flex-shrink: 0;
}

/* ─── Mini-écrans statiques (agenda / frigo / dressing) ─── */
.vscreen-pane { flex: 1; overflow: hidden; padding: 4px 18px 0; display: flex; flex-direction: column; gap: 10px; }
.vcard {
  background: var(--paper-hi);
  border: 0.75px solid var(--paper-edge);
  border-radius: 16px;
  padding: 13px 15px;
}
.vphone--dark .vcard { background: var(--night-hi); border-color: var(--night-edge); }
.vcard .ck {
  font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.16em;
  text-transform: uppercase; opacity: 0.5; margin-bottom: 4px;
}
.vcard .ct {
  font-family: var(--font-serif); font-size: 14px; line-height: 1.35;
  font-variation-settings: "opsz" 30, "SOFT" 50;
}
.vcard--alert { background: var(--brique); border-color: var(--brique); color: #F8F4EA; }
.vcard--grad { background: var(--grad); border: 0; color: #fff; }
