/* Chat avec Proof (Figma 2:361 « Agent d'acquisition · Proof » et 2:1324 « Lanceur Proof ») */
.pc {
  --pc-fond: #0a0a0a;
  --pc-surface: #141414;
  --pc-surface-2: #1c1c1c;
  --pc-ligne: #262626;
  --pc-ligne-forte: #363636;
  --pc-texte: #ffffff;
  --pc-texte-3: #7a7a7a;
  --pc-accent: #c6ff3d;
  --pc-accent-doux: #1e2a08;
  --pc-sur-accent: #0a0a0a;
  --pc-violet: #9b7bff;
  display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  border: 1px solid var(--pc-ligne-forte); border-radius: 22px;
  background: var(--pc-surface); color: var(--pc-texte);
  box-shadow: 0 24px 80px rgba(198, 255, 61, 0.12);
  font-family: 'Geist', system-ui, sans-serif; font-size: 14px; line-height: 1.5; text-align: left;
}
.pc-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--pc-ligne); }
.pc-avatar { flex: none; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 999px; background: var(--pc-accent-doux); }
.pc-who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pc-who strong { font-weight: 600; font-size: 16px; line-height: 1.4; }
.pc-status { display: flex; align-items: center; gap: 6px; font-size: 13px; line-height: 1.45; color: var(--pc-texte-3); }
.pc-pill { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 999px; background: var(--pc-surface-2); color: var(--pc-violet); font-family: 'Geist Mono', monospace; font-weight: 500; font-size: 11px; line-height: 1.4; letter-spacing: 0.08em; text-transform: uppercase; }
.pc-new { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid var(--pc-ligne-forte); border-radius: 999px; background: var(--pc-surface-2); color: var(--pc-texte); font: inherit; font-weight: 500; font-size: 12px; cursor: pointer; }
.pc-new:hover { border-color: var(--pc-accent); color: var(--pc-accent); }
.pc-new:disabled { opacity: .4; cursor: default; }
.pc-new[hidden] { display: none; }
.pc-new:focus-visible, .pc-close:focus-visible { outline: 2px solid var(--pc-accent); outline-offset: 2px; }
.pc-close { flex: none; display: none; width: 36px; height: 36px; border: 1px solid var(--pc-ligne-forte); border-radius: 999px; background: var(--pc-surface-2); color: var(--pc-texte); font-size: 18px; line-height: 1; cursor: pointer; }
.pc-dock .pc-close { display: inline-flex; align-items: center; justify-content: center; }

.pc-log { flex: 1; display: flex; flex-direction: column; gap: 12px; min-height: 240px; max-height: 460px; padding: 20px; overflow-y: auto; overscroll-behavior: contain; }
.pc-msg { max-width: min(392px, 86%); padding: 12px 16px; border-radius: 22px; white-space: pre-wrap; overflow-wrap: anywhere; }
.pc-msg a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.pc-msg-proof, .pc-msg-equipe { align-self: flex-start; background: var(--pc-surface-2); }
.pc-msg-client { align-self: flex-end; background: var(--pc-accent); color: var(--pc-sur-accent); }
.pc-from { display: block; margin-bottom: 4px; color: var(--pc-violet); font-family: 'Geist Mono', monospace; font-weight: 500; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.pc-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: -6px; }
.pc-chip { padding: 8px 12px; border: 1px solid var(--pc-accent); border-radius: 999px; background: none; color: var(--pc-accent); font: inherit; font-weight: 500; font-size: 13px; line-height: 1.4; cursor: pointer; }
.pc-chip:hover { background: var(--pc-accent-doux); }
.pc-typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 10px 14px; border-radius: 999px; background: var(--pc-surface-2); }
.pc-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--pc-texte-3); animation: pc-blink 1.2s infinite ease-in-out; }
.pc-typing i:nth-child(2) { animation-delay: .2s; }
.pc-typing i:nth-child(3) { animation-delay: .4s; }
@keyframes pc-blink { 0%, 80%, 100% { opacity: .35; } 40% { opacity: 1; } }
.pc-note { align-self: center; max-width: 92%; color: var(--pc-texte-3); font-size: 13px; text-align: center; }
.pc-restart { align-self: center; padding: 10px 18px; border: 1px solid var(--pc-ligne-forte); border-radius: 999px; background: var(--pc-surface-2); color: var(--pc-texte); font: inherit; font-weight: 500; font-size: 13px; cursor: pointer; }

.pc-form { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--pc-ligne); }
.pc-form input { flex: 1; min-width: 0; padding: 12px 16px; border: 1px solid var(--pc-ligne-forte); border-radius: 999px; background: var(--pc-surface-2); color: var(--pc-texte); font: inherit; font-size: 14px; line-height: 1.5; }
.pc-form input::placeholder { color: var(--pc-texte-3); }
.pc-form input:focus-visible { outline: 2px solid var(--pc-accent); outline-offset: 1px; }
.pc-send { flex: none; display: flex; padding: 12px; border: 0; border-radius: 999px; background: var(--pc-accent); cursor: pointer; }
.pc-send:disabled { opacity: .4; cursor: default; }
.pc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Modèles de réponse (Figma 186:158 « Proof · Modèles de réponse ») */
.pc { --pc-erreur-fond: #2a1212; --pc-erreur: #ff9b9b; }
.pc-ans { display: flex; flex-direction: column; gap: 8px; width: min(392px, 100%); margin-top: -2px; }
.pc-ans-recapitulatif, .pc-ans-classement, .pc-ans-echelle { width: 100%; }
.pc-ans button { font: inherit; cursor: pointer; }
.pc-ans button:focus-visible, .pc-chip:focus-visible, .pc-restart:focus-visible, .pc-send:focus-visible,
.pc-ans input:focus-visible, .pc-opt:has(.pc-check:focus-visible) { outline: 2px solid var(--pc-accent); outline-offset: 2px; }
.pc-ans button:disabled { opacity: .4; cursor: default; }
.pc-ans .pc-quick { margin-top: 0; }
.pc-hint { margin: 0; color: var(--pc-texte-3); font-size: 12px; line-height: 1.45; }
.pc-hint:empty { display: none; }
.pc-err { margin: 0; padding: 8px 12px; border-radius: 10px; background: var(--pc-erreur-fond); color: var(--pc-erreur); font-size: 12px; }
.pc-err[hidden] { display: none; }
.pc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pc-primary, .pc-secondary { padding: 10px 18px; border-radius: 999px; font-weight: 500; font-size: 13px; line-height: 1.4; }
.pc-primary { border: 0; background: var(--pc-accent); color: var(--pc-sur-accent); }
.pc-secondary { border: 1px solid var(--pc-ligne-forte); background: var(--pc-surface-2); color: var(--pc-texte); }
.pc-secondary:hover { border-color: var(--pc-texte-3); }

/* Choix multiple (Option 186:182) */
.pc-opts { display: flex; flex-direction: column; gap: 8px; }
.pc-opt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--pc-ligne-forte); border-radius: 14px; background: var(--pc-fond); cursor: pointer; }
.pc-opt:hover { border-color: var(--pc-texte-3); }
.pc-opt.pc-on { border-color: var(--pc-accent); background: var(--pc-accent-doux); }
.pc-check { flex: none; appearance: none; -webkit-appearance: none; width: 20px; height: 20px; margin: 0; border: 1.5px solid var(--pc-ligne-forte); border-radius: 6px; background: transparent; cursor: pointer; }
.pc-check:checked { border-color: var(--pc-accent); background: var(--pc-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%230a0a0a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
.pc-opt-text { display: flex; flex-direction: column; min-width: 0; }
.pc-opt-text strong { font-weight: 500; font-size: 14px; line-height: 1.45; }
.pc-opt-text small { color: var(--pc-texte-3); font-size: 12px; line-height: 1.45; }

/* Propositions illustrées (Carte de proposition 186:195) */
.pc-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pc-card { display: flex; flex-direction: column; align-items: stretch; gap: 6px; padding: 14px; border: 1px solid var(--pc-ligne-forte); border-radius: 16px; background: var(--pc-fond); color: var(--pc-texte); text-align: left; }
.pc-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
.pc-card:hover { border-color: var(--pc-accent); background: var(--pc-accent-doux); }
.pc-card-art { display: flex; align-items: center; justify-content: center; height: 56px; margin-bottom: 6px; border-radius: 10px; background: var(--pc-surface-2); font-size: 26px; line-height: 1; }
.pc-card:hover .pc-card-art { background: rgba(10, 10, 10, .45); }
.pc-card-title { font-weight: 600; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.pc-card-detail { color: var(--pc-texte-3); font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.pc-card-cta { margin-top: auto; padding-top: 4px; color: var(--pc-accent); font-weight: 500; font-size: 12px; }

/* Échelle */
.pc-scale { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--pc-ligne-forte); border-radius: 14px; background: var(--pc-fond); }
.pc-step { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border: 0; border-radius: 10px; background: none; color: var(--pc-texte); font-weight: 500; font-size: 13px; line-height: 1.3; text-align: center; hyphens: auto; overflow-wrap: break-word; }
.pc-step:hover { background: var(--pc-accent); color: var(--pc-sur-accent); }
.pc-step-n { color: var(--pc-texte-3); font-family: 'Geist Mono', monospace; font-size: 11px; }
.pc-step:hover .pc-step-n { color: inherit; }

/* Classement */
.pc-rank { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pc-rank-row { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 12px; border: 1px solid var(--pc-ligne-forte); border-radius: 14px; background: var(--pc-surface-2); user-select: none; cursor: grab; }
.pc-rank-row.pc-first { border-color: var(--pc-accent); background: var(--pc-accent-doux); }
.pc-rank-row.pc-drag { cursor: grabbing; box-shadow: 0 8px 24px rgba(0, 0, 0, .5); opacity: .92; }
.pc-grip { flex: none; width: 10px; height: 16px; background: radial-gradient(circle, var(--pc-texte-3) 1.2px, transparent 1.6px) 0 0 / 5px 5.3px; touch-action: none; cursor: grab; }
.pc-rank-n { flex: none; padding: 2px 8px; border-radius: 999px; background: var(--pc-fond); color: var(--pc-texte-3); font-family: 'Geist Mono', monospace; font-size: 11px; }
.pc-first .pc-rank-n { background: var(--pc-accent); color: var(--pc-sur-accent); }
.pc-rank-label { flex: 1; min-width: 0; font-weight: 500; overflow-wrap: anywhere; }
.pc-move { flex: none; width: 32px; height: 32px; border: 1px solid var(--pc-ligne-forte); border-radius: 999px; background: var(--pc-fond); color: var(--pc-texte); font-size: 14px; line-height: 1; }
.pc-move[aria-disabled="true"] { opacity: .3; cursor: default; }

/* Curseur */
.pc-slider { display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px solid var(--pc-ligne); border-radius: 16px; background: var(--pc-fond); }
.pc-slider-value { display: flex; align-items: baseline; gap: 8px; margin: 0; color: var(--pc-texte-3); font-size: 13px; }
.pc-slider-value strong { color: var(--pc-accent); font-weight: 600; font-size: 24px; line-height: 1.2; }
.pc-range { --pc-fill: 50%; width: 100%; height: 20px; margin: 0; appearance: none; -webkit-appearance: none; background: transparent; cursor: pointer; }
.pc-range::-webkit-slider-runnable-track { height: 4px; border-radius: 999px; background: linear-gradient(to right, var(--pc-accent) var(--pc-fill), var(--pc-ligne-forte) var(--pc-fill)); }
.pc-range::-moz-range-track { height: 4px; border-radius: 999px; background: linear-gradient(to right, var(--pc-accent) var(--pc-fill), var(--pc-ligne-forte) var(--pc-fill)); }
.pc-range::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -7px; border: 3px solid var(--pc-fond); border-radius: 50%; background: var(--pc-accent); }
.pc-range::-moz-range-thumb { width: 14px; height: 14px; border: 3px solid var(--pc-fond); border-radius: 50%; background: var(--pc-accent); }
.pc-bounds { display: flex; justify-content: space-between; color: var(--pc-texte-3); font-family: 'Geist Mono', monospace; font-size: 11px; }

/* Date */
.pc-date { display: flex; flex-direction: column; gap: 6px; padding: 12px; border: 1px solid var(--pc-ligne); border-radius: 16px; background: var(--pc-fond); }
.pc-date-label { color: var(--pc-texte-3); font-size: 12px; }
.pc-date-row { display: flex; gap: 8px; }
.pc-date-input { flex: 1; min-width: 0; padding: 9px 12px; border: 1px solid var(--pc-ligne-forte); border-radius: 12px; background: var(--pc-surface-2); color: var(--pc-texte); font: inherit; font-size: 14px; color-scheme: dark; }

/* Champ court */
.pc-field { display: flex; align-items: center; gap: 6px; padding: 4px 4px 4px 14px; border: 1.5px solid var(--pc-accent); border-radius: 999px; background: var(--pc-fond); }
.pc-field:focus-within { box-shadow: 0 0 0 3px var(--pc-accent-doux); }
.pc-field input { flex: 1; min-width: 0; padding: 8px 0; border: 0; background: none; color: var(--pc-texte); font: inherit; font-size: 14px; }
.pc-field input:focus-visible { outline: none; }
.pc-field input::placeholder { color: var(--pc-texte-3); }
.pc-field-send { flex: none; padding: 9px 16px; border: 0; border-radius: 999px; background: var(--pc-accent); color: var(--pc-sur-accent); font-weight: 500; font-size: 13px; }

/* Récapitulatif */
.pc-recap { display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px solid var(--pc-ligne-forte); border-radius: 16px; background: var(--pc-fond); }
.pc-recap-title { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--pc-violet); font-family: 'Geist Mono', monospace; font-weight: 500; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.pc-recap-rows { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.pc-recap-rows div { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; font-size: 13px; line-height: 1.45; }
.pc-recap-rows dt { color: var(--pc-texte-3); }
.pc-recap-rows dd { margin: 0; overflow-wrap: anywhere; }

/* Fichier */
.pc-drop { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 20px 16px; border: 1.5px dashed var(--pc-ligne-forte); border-radius: 16px; background: var(--pc-fond); color: var(--pc-texte); text-align: center; }
.pc-drop:hover, .pc-drop.pc-over { border-color: var(--pc-accent); background: var(--pc-accent-doux); }
.pc-drop strong { font-weight: 500; font-size: 14px; }
.pc-drop span { color: var(--pc-texte-3); font-size: 12px; }
.pc-drop .pc-drop-icon { color: var(--pc-accent); font-size: 18px; }
@media (max-width: 420px) {
  .pc-recap-rows div { grid-template-columns: 72px minmax(0, 1fr); gap: 10px; }
  .pc-step { padding: 8px 2px; font-size: 12px; }
}
@media (max-width: 340px) {
  .pc-recap-rows div { grid-template-columns: 1fr; gap: 0; }
}

/* Lanceur flottant et fenêtre ouverte depuis le lanceur */
.pc-launcher { position: fixed; right: 24px; bottom: 24px; z-index: 40; display: flex; align-items: center; gap: 12px; font-family: 'Geist', system-ui, sans-serif; }
.pc-launcher[hidden], .pc-dock[hidden] { display: none; }
.pc-teaser { display: flex; flex-direction: column; gap: 4px; padding: 12px 16px; border: 1px solid #363636; border-radius: 14px; background: #141414; color: #ffffff; font: inherit; font-size: 13px; text-align: left; white-space: nowrap; cursor: pointer; }
.pc-teaser strong { font-weight: 500; line-height: 1.4; }
.pc-teaser span { color: #7a7a7a; line-height: 1.45; }
.pc-bubble { position: relative; flex: none; display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; border: 0; border-radius: 999px; background: #c6ff3d; box-shadow: 0 8px 32px rgba(198, 255, 61, 0.35); cursor: pointer; }
.pc-badge { position: absolute; left: 44px; top: -2px; display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 999px; background: #ff5a4e; color: #ffffff; font-family: 'Geist Mono', monospace; font-weight: 500; font-size: 11px; line-height: 1; }
.pc-dock { position: fixed; right: 24px; bottom: 24px; z-index: 41; display: flex; width: min(420px, calc(100vw - 32px)); max-height: min(680px, calc(100dvh - 48px)); }
.pc-dock .pc { flex: 1; }
.pc-dock .pc-log { max-height: none; }
@media (max-width: 600px) {
  .pc-new { width: 32px; padding: 0; justify-content: center; }
  .pc-new span { display: none; }
  .pc-launcher { right: 16px; bottom: 16px; }
  .pc-teaser { display: none; }
  .pc-dock { right: 16px; left: 16px; bottom: 16px; width: auto; max-height: calc(100dvh - 32px); }
  .pc-head { padding: 12px 16px; }
  .pc-log { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) { .pc-typing i { animation: none; } }
