:root {
  --bg: #0e1621;
  --panel: #17212b;
  --card: #1f2b37;
  --accent: #3b82f6;
  --text: #e6ebf2;
  --muted: #9aa7b8;
  --ok: #22c55e;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}
.screen { display: none; flex-direction: column; min-height: 100vh; padding: 16px 16px 24px; }
.screen.active { display: flex; }
.app-header {
  display: flex; align-items: center; gap: 12px;
  padding: 6px 0 14px;
}
.avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #1d4ed8);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.header-text { display: flex; flex-direction: column; line-height: 1.2; }
.online { color: var(--ok); font-size: 12px; }
.step { color: var(--muted); font-size: 12px; font-weight: 600; }
.chat-bubble {
  background: var(--panel);
  padding: 12px 14px;
  border-radius: 14px 14px 14px 4px;
  max-width: 88%;
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 18px;
  align-self: flex-start;
}
.menu { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.btn {
  width: 100%; padding: 15px 16px;
  border: none; border-radius: 12px;
  font-size: 15px; font-weight: 600; cursor: pointer;
  text-align: center;
  transition: transform .05s ease, opacity .15s;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:disabled { opacity: .4; cursor: not-allowed; }
.btn-ghost { background: var(--panel); color: var(--text); }
.footer-note {
  margin-top: auto; padding-top: 18px;
  text-align: center; color: var(--muted); font-size: 12px;
}
/* Photo */
.photo-zone {
  width: 100%; aspect-ratio: 1/1;
  background: var(--panel);
  border: 2px dashed var(--card);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; cursor: pointer; margin-bottom: 14px;
}
.photo-placeholder { color: var(--muted); font-size: 16px; text-align: center; }
.photo-zone img { width: 100%; height: 100%; object-fit: cover; }
/* Grid tailles */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.chip {
  background: var(--panel); color: var(--text);
  border: 2px solid transparent; border-radius: 12px;
  padding: 18px 0; font-size: 17px; font-weight: 700; cursor: pointer;
  transition: all .12s;
}
.chip.selected { background: var(--accent); color: #fff; border-color: #93c5fd; }
/* Inputs */
.text-input {
  width: 100%; padding: 15px 14px;
  background: var(--panel); border: 2px solid var(--card); border-radius: 12px;
  color: var(--text); font-size: 16px; margin-bottom: 12px;
}
.text-input:focus { outline: none; border-color: var(--accent); }
/* Options */
.opt-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.opt {
  background: var(--panel); border-radius: 12px; padding: 14px;
  display: flex; align-items: center; gap: 12px; cursor: pointer;
}
.opt-check { width: 20px; height: 20px; accent-color: var(--accent); }
/* Recap */
.recap-card {
  background: var(--card); border-radius: 14px; overflow: hidden; margin-bottom: 14px;
}
.recap-img { width: 100%; aspect-ratio: 1/1; object-fit: cover; background: var(--panel); }
.recap-details { padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.recap-details div { color: var(--muted); font-size: 14px; }
/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px);
  background: var(--card); color: var(--text);
  padding: 12px 18px; border-radius: 10px; font-size: 14px;
  opacity: 0; pointer-events: none; transition: all .2s; z-index: 99;
  max-width: 85%; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
