/* Console v3 — socle : pages, conversation d'essai et briques communes aux pages.
   Chaque page a sa feuille : console-v3-avatars.css, console-v3-looks.css, console-v3-catalog.css. */

.v3-page { display: block; min-height: 240px; }
.v3-lead { max-width: 660px; margin: 12px 0 0; color: var(--muted); font-size: 16px; line-height: 1.55; }
.v3-loading { padding: 32px 0; color: var(--muted); }
.v3-error { padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.v3-note { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
/* Silhouette : look encore en fabrication. */
.v3-silhouette { display: grid; place-items: center; background: var(--surface-muted, #F8F7F4); color: var(--line); }
.v3-silhouette svg { width: 58%; height: auto; fill: currentColor; }

/* Barre du haut : forfait à côté de « Espace », support à droite. L'avis de forfait et
   « Signaler un bug » sortent : le formulaire de support couvre les problèmes techniques. */
body[data-console-v3="1"] #planNotice, body[data-console-v3="1"] [data-bug-report-open] { display: none; }
.v3-plan { display: inline-flex; align-items: center; min-height: 28px; padding: 2px 11px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--ink); background: var(--surface, #fff); font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.v3-plan:hover { border-color: var(--muted); }
.v3-plan[hidden], .console-shell[data-area="platform"] .v3-plan { display: none; }
.v3-upgrade { min-height: 28px; gap: 6px; margin-left: -6px; padding: 0 11px; border-radius: 999px; font-size: 13px; white-space: nowrap; text-decoration: none; }
.v3-upgrade svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.v3-upgrade[hidden], .console-shell[data-area="platform"] .v3-upgrade { display: none; }
.v3-support { display: inline-flex; align-items: center; gap: 8px; }
@media (min-width: 821px) { body[data-console-v3="1"] .sidebar-bottom [data-support-link] { display: none; } }
@media (max-width: 820px) { body[data-console-v3="1"] .mobile-scope[data-v3-plan]::after { content: " · " attr(data-v3-plan); color: var(--ink); font-weight: 600; } }

/* Conversation d'essai : même lecteur que le site du client, dans une fenêtre. */
.v3-try { width: min(94vw, 980px); max-height: 94dvh; padding: 18px; border: 1px solid var(--line); border-radius: 16px;
  color: var(--ink); background: var(--surface); box-shadow: 0 24px 80px rgba(20, 20, 30, .28); }
.v3-try::backdrop { background: rgba(20, 20, 30, .45); }
.v3-try-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.v3-try-head h2 { margin: 0; font-size: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v3-try-stage { --v3-try-h: calc(100dvh - 290px); width: min(100%, var(--v3-try-h)); aspect-ratio: 1; margin: 0 auto; overflow: hidden;
  border-radius: 12px; background: var(--surface-muted, #F8F7F4); transition: width .2s ease; }
/* Formats de l'aperçu : Auto prend le format classé de la fenêtre (--v3-try-ratio : 16/9, 1 ou 9/16, posé par console-v3.js). */
.v3-try-stage[data-format="auto"] { width: min(100%, calc(var(--v3-try-h) * var(--v3-try-ratio, 1))); aspect-ratio: var(--v3-try-ratio, 1); }
.v3-try-stage[data-format="landscape"] { width: min(100%, calc(var(--v3-try-h) * 16 / 9)); aspect-ratio: 16 / 9; }
.v3-try-stage[data-format="portrait"] { width: min(100%, calc(var(--v3-try-h) * 9 / 16)); aspect-ratio: 9 / 16; }
.v3-try-formats { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0 0 6px; }
.v3-try-format { min-height: 36px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
.v3-try-format:hover { border-color: var(--ink); }
.v3-try-format[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--surface); font-weight: 600; }
.v3-try-format:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.v3-try-hint { margin: 0 0 10px; color: var(--muted); font-size: 12px; text-align: center; }
@media (prefers-reduced-motion: reduce) { .v3-try-stage { transition: none; } }
.v3-try-stage iframe { width: 100%; height: 100%; border: 0; }
.v3-try-status { margin: 12px 0 0; color: var(--muted); font-size: 14px; text-align: center; }
.v3-try-status[role="alert"] { color: var(--danger, #B42318); }

/* Barre de conversation de l'essai : celle de la démo de meshlite.io (Johann, 25/11/2026), mêmes mesures,
   couleurs et états que assets/demo-carousel.css du site (pastille sombre translucide en bas au centre). */
.v3-try-stage { position: relative; }
.v3-call { position: absolute; z-index: 4; left: 12px; right: 12px; bottom: 24px; width: min(312px, calc(100% - 24px)); margin: 0 auto;
  display: flex; align-items: center; gap: 4px; padding: 4px 4px 4px 16px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px;
  background: rgba(20, 19, 16, .66); color: #faf8f3; }
.v3-call-state { min-width: 0; flex: 1; display: flex; align-items: flex-start; gap: 8px; padding: 0 2px 0 0; color: #faf8f3; }
.v3-call-dot { flex: none; width: 6px; height: 6px; margin-top: 5px; border-radius: 50%; background: #b9b5ab; }
.v3-call[data-tone="listening"] .v3-call-dot { background: #6fd3a0; }
.v3-call[data-tone="thinking"] .v3-call-dot { background: #e6b862; }
.v3-call[data-tone="speaking"] .v3-call-dot { background: #9db4f2; }
.v3-call[data-tone="calling"] .v3-call-dot { background: #6fd3a0; animation: v3-call-dot 1.6s ease-in-out infinite; }
@keyframes v3-call-dot { 50% { opacity: .35; } }
.v3-call-status { font: 500 14px/1.2 Archivo, sans-serif; white-space: normal; text-wrap: balance; }
.v3-call-button { flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; transition: background .15s ease, opacity .15s ease; }
.v3-call-button svg { width: 20px; height: 20px; pointer-events: none; }
.v3-call-button:hover { background: rgba(255, 255, 255, .24); }
.v3-call-button:focus-visible { outline: 2px solid #9db4f2; outline-offset: 2px; }
.v3-call-button:disabled { opacity: .45; cursor: default; }
.v3-call-button[data-call-mic][aria-pressed="true"] { background: #faf8f3; color: #9b3434; }
.v3-call-button[data-call-end] { background: #b63b36; color: #fff; }
.v3-call-button[data-call-end]:hover { background: #9f302b; }
.v3-call-button[data-call-interrupt] { background: transparent; color: #e8e4da; }
.v3-call-button[data-call-interrupt]:hover { background: rgba(255, 255, 255, .14); }
.v3-call-button[hidden], .v3-call-button [data-icon] { display: none; }
.v3-call-button[data-icon="mic"] [data-icon="mic"],
.v3-call-button[data-icon="muted"] [data-icon="muted"],
.v3-call-button[data-icon="resume"] [data-icon="resume"] { display: block; }
/* Pendant la préparation, le micro attend caché ; il entre quand la voix est prête. */
.v3-call-button[data-call-mic] { transition: opacity .3s ease .15s, transform .4s cubic-bezier(.22, 1, .36, 1) .15s, background-color .15s ease; }
.v3-call[data-phase="ringing"] .v3-call-button[data-call-mic] { visibility: hidden; opacity: 0; transform: scale(.5); transition: none; }
@media (max-width: 700px) {
  .v3-call { padding-left: 14px; }
  .v3-call-dot { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .v3-call-button, .v3-call-button[data-call-mic] { transition: none; }
  .v3-call[data-tone] .v3-call-dot { animation: none; }
}
