
/* ============================================================
   EXTRAS STAGÉS — coquilles UI (« bientôt »)
   ============================================================ */

/* Pastille « bientôt » — jamais un contrôle mort sans explication. */
.badge-soon {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1a1408;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  border-radius: 999px;
  padding: 0.15em 0.6em;
  margin-left: 0.4em;
  vertical-align: middle;
  white-space: nowrap;
}
.icon-btn .badge-soon {
  position: absolute;
  top: 2px; right: 2px;
  margin: 0;
  font-size: 0.55rem;
  padding: 0.1em 0.45em;
}
.icon-btn { position: relative; }

.stub-note {
  color: var(--ink-dim);
  font-size: 0.92rem;
  background: rgba(143, 127, 224, 0.07);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
}

/* ---- Section archivées (sidebar) ---- */
.archived-section {
  border-top: 1px solid var(--border);
  padding: 0.5rem 1rem;
}
.archived-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  color: var(--ink-dim);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.7rem 0.4rem;
  min-height: 48px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  text-align: left;
}
.archived-toggle:hover { background: var(--bg2); color: var(--ink); }

.side-foot-actions { display: flex; flex-direction: column; gap: 0.5rem; }

/* ---- Aperçu pièce jointe ---- */
.attach-preview {
  max-width: 820px;
  margin: 0 auto 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.6rem;
}
.attach-preview img {
  width: 56px; height: 56px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.attach-preview .attach-meta { flex: 1; min-width: 0; font-size: 0.9rem; }
.attach-preview .attach-meta small { color: var(--ink-faint); display: block; }

.composer.dragover {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(211, 171, 99, 0.25);
}

/* ---- Panneau documents (Canvas/Artifacts) ---- */
.artifacts-panel {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(480px, 94vw);
  background: var(--bg1);
  border-left: 1px solid var(--border);
  box-shadow: -24px 0 60px rgba(0, 0, 0, 0.5);
  z-index: 50;
  display: flex;
  flex-direction: column;
  transform: translateX(0);
  transition: transform 0.25s ease;
}
.artifacts-panel[hidden] { display: none !important; }
.artifacts-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border);
}
.artifacts-head h3 { margin: 0; font-size: 1.05rem; }
.artifacts-tabs {
  display: flex; gap: 0.4rem;
  padding: 0.7rem 1rem 0;
}
.art-tab {
  font: inherit; font-size: 0.9rem; font-weight: 600;
  background: none; border: 1px solid var(--border);
  color: var(--ink-dim);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  min-height: 40px;
  cursor: pointer;
}
.art-tab.active { color: var(--cyan); border-color: var(--blue); }
.artifacts-body { padding: 1rem; overflow-y: auto; display: flex; flex-direction: column; gap: 0.8rem; }

/* ---- Page Paramètres ---- */
.settings-view {
  position: absolute;
  inset: 0;
  background: var(--bg0);
  z-index: 20;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.settings-view[hidden] { display: none !important; }
#main { position: relative; }
.settings-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg1);
}
.settings-head h3 { margin: 0; font-size: 1.15rem; }
.settings-tabs {
  display: flex; gap: 0.4rem; flex-wrap: wrap;
  padding: 0.8rem 1rem 0;
  max-width: 720px;
}
.set-tab {
  font: inherit; font-size: 0.95rem; font-weight: 600;
  background: var(--bg1); border: 1px solid var(--border);
  color: var(--ink-dim);
  border-radius: var(--radius-sm);
  padding: 0.65rem 1.1rem;
  min-height: 46px;
  cursor: pointer;
}
.set-tab.active { color: #1a1408; background: linear-gradient(135deg, var(--blue), var(--cyan)); border-color: transparent; }
.settings-body { padding: 1.2rem 1rem 3rem; max-width: 720px; width: 100%; margin: 0 auto; }
.set-panel h4 { margin: 1.4rem 0 0.6rem; font-size: 1rem; color: var(--cyan); }
.set-panel h4:first-child { margin-top: 0; }
.set-panel p { margin: 0.4rem 0; }
.set-panel textarea {
  width: 100%;
  font: inherit; color: var(--ink);
  background: var(--bg1);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  resize: vertical;
}
.set-panel textarea:disabled { opacity: 0.55; }

.switch-row {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.6rem 0;
  font-size: 0.98rem;
}
.switch {
  width: 58px; height: 34px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg2);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}
.switch span {
  position: absolute; top: 3px; left: 4px;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--ink-faint);
  transition: left 0.15s ease;
}
.switch:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---- Mode conversation vocale (overlay) ---- */
.voice-overlay {
  position: fixed; inset: 0;
  z-index: 90;
  background: rgba(7, 7, 12, 0.92);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
}
.voice-overlay[hidden] { display: none !important; }
.voice-card {
  width: 100%; max-width: 440px;
  background: var(--bg1);
  border: 1px solid var(--violet-deep);
  border-radius: 20px;
  padding: 2rem 1.6rem;
  text-align: center;
  box-shadow: 0 0 60px rgba(143, 127, 224, 0.25);
}
.voice-card h3 { margin: 0 0 0.8rem; }
.voice-modes { display: flex; gap: 0.6rem; justify-content: center; margin: 1.1rem 0; }
.voice-mic {
  width: 96px; height: 96px;
  border-radius: 50%;
  border: 2px solid var(--violet);
  background: radial-gradient(circle at 50% 35%, rgba(143,127,224,0.35), rgba(143,127,224,0.08));
  font-size: 2.4rem;
  cursor: not-allowed;
  opacity: 0.65;
  margin: 0.4rem 0 0.8rem;
}
.voice-transcript { margin: 0 0 1.2rem; }

/* ---- Avatars ---- */
.msg-author-row {
  display: flex; align-items: center; gap: 0.5rem;
}
.avatar-ph {
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.03em;
  color: #1a1408;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  border: 2px solid rgba(211, 171, 99, 0.5);
  cursor: pointer;
  flex-shrink: 0;
}
.avatar-ph.av-violet { background: linear-gradient(135deg, var(--violet-deep), var(--violet)); color: #fff; border-color: rgba(143,127,224,0.5); }
.avatar-ph.av-moon { background: linear-gradient(135deg, #2a2a3f, #12121c); color: var(--cyan); border-color: var(--blue); font-size: 0.95rem; }
.avatar-ph.av-teal { background: linear-gradient(135deg, #2f7f7a, #7fd0c9); color: #082521; border-color: rgba(127,208,201,0.5); }
.avatar-ph.av-rose { background: linear-gradient(135deg, #8f3f5f, #e08fb0); color: #2a0d18; border-color: rgba(224,143,176,0.5); }
.avatar-ph.av-slate { background: linear-gradient(135deg, #3a3f4a, #8a93a5); color: #101318; border-color: rgba(138,147,165,0.5); }
.avatar-inline { cursor: default; width: 26px; height: 26px; font-size: 0.65rem; }

.avatar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  margin-top: 0.6rem;
}
.avatar-pick {
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  background: var(--bg2);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.9rem 0.4rem;
  cursor: pointer;
  font: inherit; font-size: 0.8rem; color: var(--ink-dim);
  min-height: 96px;
}
.avatar-pick .avatar-ph { width: 44px; height: 44px; font-size: 1rem; cursor: pointer; }
.avatar-pick.selected { border-color: var(--cyan); color: var(--ink); }
.avatar-modal { max-width: 480px; }

/* ---- Aide raccourcis ---- */
.keys-list { list-style: none; margin: 0 0 1.2rem; padding: 0; }
.keys-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
kbd {
  font-family: var(--mono); font-size: 0.85rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 0.2em 0.55em;
  white-space: nowrap;
}

/* ============================================================
   APPEL VIDEO AVEC AVATAR 3D - maquette/coquille stagee
   (remplace le mode hologramme, annule par Eric le 2026-10-03)
   Simule un flux camera : cadre distant + cadre local + controles.
   100 % CSS/HTML, aucun media reel. PAS de mode final.
   ============================================================ */
.videocall-overlay {
  position: fixed; inset: 0;
  z-index: 300;
  background: rgba(4, 4, 8, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.videocall-overlay[hidden] { display: none; }
.vc-stage {
  position: relative;
  width: min(960px, 100%);
  aspect-ratio: 16 / 9;
  max-height: 92vh;
  background: #0b0b12;
  border: 1px solid var(--border, #2a2a3a);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vc-remote { text-align: center; padding: 1rem; }
.vc-avatar-ph {
  position: relative;
  width: 180px; height: 180px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #0e2a3a, #05080f 70%);
  border: 2px solid #22d3ee;
  box-shadow: 0 0 48px rgba(34, 211, 238, 0.35);
  display: flex; align-items: center; justify-content: center;
}
.vc-avatar-face {
  font-size: 3rem; font-weight: 700; color: #22d3ee;
}
.vc-live-dot {
  position: absolute; top: 10px; right: 10px;
  width: 14px; height: 14px; border-radius: 50%;
  background: #e5484d;
  box-shadow: 0 0 10px #e5484d;
}
.vc-name { font-weight: 600; letter-spacing: 0.08em; margin: 0 0 0.4rem; }
.vc-subtitles {
  max-width: 34rem; margin: 0 auto;
  color: #f0f4fa; opacity: 0.85; font-size: 0.95rem;
}
.vc-local {
  position: absolute; right: 1rem; bottom: 5.5rem;
  width: 150px; padding: 0.6rem;
  background: #0a101f; border: 1px solid var(--border, #2a2a3a);
  border-radius: 10px; text-align: center; font-size: 1.6rem;
}
.vc-local .stub-note { font-size: 0.72rem; margin: 0.2rem 0 0; }
.vc-controls {
  position: absolute; bottom: 1rem; left: 0; right: 0;
  display: flex; gap: 0.8rem; justify-content: center;
}
.vc-btn {
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--border, #2a2a3a);
  background: #101a30; color: #f0f4fa; font-size: 1.3rem;
  cursor: pointer;
}
.vc-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.vc-btn.vc-hangup { background: #a02c2c; border-color: #a02c2c; }
.vc-note { position: absolute; top: 0.8rem; left: 1rem; right: 1rem; font-size: 0.75rem; text-align: center; }

@media (max-width: 900px) {
  .artifacts-panel { width: 100vw; }
  .settings-tabs { flex-wrap: nowrap; overflow-x: auto; }
}
