/* Pépite IA — questionnaire (app.html)
   Thème clair, aligné sur la landing page : mêmes tons de blanc/gris et le
   même dégradé slate (celui du mot "premier SaaS" du hero). Préfixe "pq-"
   partout pour ne rien risquer de casser dans styles.css. */

:root {
  --pq-bg: #ffffff;
  --pq-surface: #f8f9fa;
  --pq-surface-2: #f1f3f5;
  --pq-line: #e9ecef;
  --pq-line-2: #dee2e6;
  --pq-text: #1a1b1e;
  --pq-text-2: #495057;
  --pq-muted: #868e96;
  --pq-accent: #1e293b;
  --pq-accent-2: #475569;
  --pq-accent-3: #0a0a0d;
  --pq-vert: #2f9e44;
  --pq-action: #0a0a0d;
  --pq-action-texte: #ffffff;
  --pq-r: 14px;
  --pq-r-l: 20px;
  --pq-teinte: rgba(30, 41, 59, 0.07);
  --pq-grad: linear-gradient(90deg, var(--pq-accent-2), var(--pq-accent) 55%, var(--pq-action));
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  background: var(--pq-bg);
  color: var(--pq-text);
  font-family: "Instrument Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
}
body {
  display: flex;
  flex-direction: column;
}
em { font-style: normal; color: var(--pq-accent); }

/* ---------- Barre de progression ---------- */
.pq-topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 18px clamp(20px, 5vw, 48px) 0;
  background: var(--pq-bg);
}
.pq-progress-track {
  height: 4px;
  border-radius: 3px;
  background: var(--pq-surface-2);
  overflow: hidden;
}
.pq-progress-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--pq-grad);
  width: 0%;
  transition: width 0.35s cubic-bezier(.22,.8,.24,1);
}
.pq-retour {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--pq-muted);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
  visibility: hidden;
}
.pq-retour.visible { visibility: visible; }
.pq-retour:hover { color: var(--pq-text-2); }

/* ---------- Scène / étape ---------- */
.pq-scene {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 28px clamp(20px, 5vw, 48px) 60px;
}
.pq-stage {
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
  animation: pq-entre 0.4s cubic-bezier(.22,.8,.24,1);
}
.pq-stage { text-align: center; }
@keyframes pq-entre {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.pq-kicker {
  font-family: "Spline Sans Mono", monospace;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pq-muted);
  margin-bottom: 10px;
}
.pq-titre {
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: clamp(26px, 3.6vw, 38px);
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0;
}
.pq-lede {
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--pq-text-2);
  max-width: 58ch;
}
.pq-lede { margin-left: auto; margin-right: auto; }

/* ---------- Options ---------- */
.pq-options {
  margin-top: 30px;
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}
.pq-options-2col { grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .pq-options-2col { grid-template-columns: 1fr; } }
.pq-option {
  position: relative;
  display: block;
  padding: 17px 18px;
  border: 1px solid var(--pq-line);
  border-radius: 13px;
  background: var(--pq-surface);
  cursor: pointer;
  text-align: left;
  color: var(--pq-text);
  font: inherit;
  font-size: 15.5px;
  font-weight: 500;
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}
.pq-option:hover { border-color: var(--pq-line-2); transform: translateY(-1px); }
.pq-option.pq-selected {
  border-color: var(--pq-accent);
  background: var(--pq-teinte);
}
.pq-option-check { padding-left: 54px; }
.pq-option-tick {
  position: absolute;
  left: 17px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1.5px solid var(--pq-line-2);
  background: none;
}
.pq-selected .pq-option-tick { background: var(--pq-accent); border-color: var(--pq-accent); }
.pq-selected .pq-option-tick::after {
  content: "";
  position: absolute;
  left: 6px; top: 2px;
  width: 5px; height: 10px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(40deg);
}
.pq-option-autre {
  border-style: dashed;
  display: flex;
  align-items: center;
  gap: 10px;
}
.pq-option-autre input {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  color: var(--pq-text);
  font: inherit;
  font-size: 14.5px;
  outline: none;
}
.pq-option-autre input::placeholder { color: var(--pq-muted); }
.pq-option-detail {
  display: block;
  margin-top: 3px;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--pq-muted);
}
.pq-reveal-choix {
  margin-top: 18px;
  padding: 14px 17px;
  border: 1px solid var(--pq-line-2);
  border-radius: 13px;
  background: var(--pq-teinte);
  color: var(--pq-text-2);
  font-size: 14.5px;
  max-width: 100%;
  animation: pq-entre 0.3s cubic-bezier(.22,.8,.24,1);
}

/* ---------- Texte libre ---------- */
.pq-champ {
  margin-top: 28px;
  width: 100%;
  padding: 15px 17px;
  border-radius: 13px;
  border: 1px solid var(--pq-line);
  background: var(--pq-surface);
  color: var(--pq-text);
  font: inherit;
  font-size: 15.5px;
  resize: vertical;
}
.pq-champ:focus { outline: none; border-color: var(--pq-accent); }
.pq-champ::placeholder { color: var(--pq-muted); }
.pq-champ-note { margin-top: 8px; font-size: 12.5px; color: var(--pq-muted); }

/* ---------- Smiley (échelle) ---------- */
.pq-smileys {
  margin-top: 30px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.pq-smiley {
  flex: 1;
  min-width: 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 10px;
  border: 1px solid var(--pq-line);
  border-radius: 13px;
  background: var(--pq-surface);
  color: var(--pq-text-2);
  cursor: pointer;
  font-size: 12.5px;
  text-align: center;
}
.pq-smiley svg { width: 26px; height: 26px; }
.pq-smiley:hover { border-color: var(--pq-line-2); }
.pq-smiley.pq-selected { border-color: var(--pq-accent); color: var(--pq-text); background: var(--pq-teinte); }

/* ---------- Curseur (slider) ---------- */
.pq-slider-bloc {
  margin-top: 30px;
  padding: 22px 22px 20px;
  border: 1px solid var(--pq-line);
  border-radius: var(--pq-r-l);
  background: var(--pq-surface);
}
.pq-slider-tete { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pq-slider-val {
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: 30px;
  letter-spacing: -0.02em;
}
.pq-slider-tag {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--pq-line-2);
  font-family: "Spline Sans Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pq-text-2);
}
.pq-range {
  margin-top: 18px;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 3px;
  background: var(--pq-surface-2);
  outline: none;
}
.pq-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--pq-accent);
  cursor: pointer;
}
.pq-range::-moz-range-thumb {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--pq-accent);
  cursor: pointer;
}
.pq-slider-echelle {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--pq-muted);
}
.pq-slider-echelle span:last-child { text-align: right; }
.pq-slider-reassure {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--pq-line);
  font-size: 14px;
  line-height: 1.55;
  color: var(--pq-text-2);
  min-height: 44px;
}
.pq-slider-reassure strong { color: var(--pq-text); }

/* ---------- Interstitiel (chiffre / recap) ---------- */
.pq-chiffre {
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: clamp(44px, 8vw, 68px);
  letter-spacing: -0.03em;
  margin: 18px 0 4px;
}
.pq-chiffre-note {
  font-family: "Spline Sans Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--pq-muted);
  border: 1px dashed var(--pq-line-2);
  border-radius: 999px;
  padding: 2px 10px;
  display: inline-block;
  margin-top: 8px;
}
.pq-recap {
  margin-top: 24px;
  border: 1px solid var(--pq-line);
  border-radius: var(--pq-r-l);
  overflow: hidden;
}
.pq-recap-ligne {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 18px;
  font-size: 14px;
}
.pq-recap-ligne + .pq-recap-ligne { border-top: 1px solid var(--pq-line); }
.pq-recap-ligne span:first-child {
  font-family: "Spline Sans Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pq-muted);
}
.pq-recap-ligne strong { font-weight: 600; }

/* ---------- Points (explication SaaS) ---------- */
.pq-points {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 9px;
  text-align: left;
}
.pq-points li {
  display: flex;
  gap: 14px;
  padding: 15px 17px;
  border: 1px solid var(--pq-line);
  border-radius: 13px;
  background: var(--pq-surface);
}
.pq-point-num {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  border-radius: 8px;
  border: 1px solid var(--pq-vert);
  color: var(--pq-vert);
  font-family: "Spline Sans Mono", monospace;
  font-size: 12px;
}
.pq-points h3 {
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: 15px;
  margin: 0 0 3px;
}
.pq-points p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--pq-text-2); }

/* ---------- Boutons ---------- */
.pq-actions { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
.pq-actions { justify-content: center; }
.pq-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  border: none;
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
}
.pq-btn-primaire { background: var(--pq-action); color: var(--pq-action-texte); }
.pq-btn-primaire:hover { background: #23242b; }
.pq-btn-primaire:disabled { opacity: 0.35; cursor: not-allowed; }
.pq-btn-fantome { background: none; border: 1px solid var(--pq-line-2); color: var(--pq-text-2); }
.pq-btn-fantome:hover { border-color: var(--pq-text-2); color: var(--pq-text); }

/* ---------- Écran "À quoi pourrait ressembler ton SaaS" ---------- */
.pq-projection-tete { margin-bottom: 4px; }
.pq-projection-carte {
  margin-top: 24px;
  border-radius: var(--pq-r-l);
  overflow: hidden;
  background: #0a0a0d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}
.pq-projection-barre {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.pq-projection-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}
.pq-projection-url {
  margin-left: 8px;
  font-family: "Spline Sans Mono", monospace;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.45);
}
.pq-projection-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.pq-projection-stat {
  padding: 20px 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}
.pq-projection-stat:last-child { border-right: none; }
.pq-projection-stat b {
  display: block;
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: clamp(17px, 2.4vw, 22px);
  letter-spacing: -0.02em;
  color: #fff;
}
.pq-projection-maj {
  display: block;
  margin-top: 6px;
  font-family: "Spline Sans Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.pq-projection-stat p {
  margin: 4px 0 0;
  font-size: 11.5px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.4);
}
.pq-projection-chart { padding: 4px 16px 18px; }
.pq-projection-svg { width: 100%; height: 64px; display: block; }
.pq-projection-note {
  margin-top: 18px;
  text-align: left;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--pq-text-2);
}
.pq-projection-note strong { color: var(--pq-text); }

/* ---------- Écran "Ton potentiel de croissance" ---------- */
.pq-potentiel-tete {
  padding: 6px 2px 0;
}
.pq-potentiel-tete .pq-titre { color: var(--pq-text); }
.pq-potentiel-tete .pq-lede { color: var(--pq-text-2); margin-top: 8px; margin-left: auto; margin-right: auto; }
.pq-potentiel-mot {
  background: var(--pq-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--pq-accent);
}
.pq-potentiel-carte {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid var(--pq-line-2);
  border-radius: var(--pq-r-l);
  background: var(--pq-surface);
}
.pq-potentiel-graph { padding: 18px 14px 8px; }
.pq-potentiel-svg { width: 100%; height: auto; display: block; }
.pq-potentiel-axe { font-family: "Spline Sans Mono", monospace; font-size: 9px; fill: var(--pq-muted); }
.pq-potentiel-pastille { font-family: "Instrument Sans", sans-serif; font-size: 10.5px; font-weight: 600; fill: var(--pq-text-2); }
.pq-potentiel-pastille-forte { fill: var(--pq-action-texte); }
.pq-potentiel-gauge { text-align: center; }
.pq-potentiel-jauge-svg { width: 220px; max-width: 100%; height: auto; }
.pq-potentiel-score-label { margin: 4px 0 0; font-size: 13.5px; color: var(--pq-text-2); }
.pq-potentiel-score-val {
  margin: 2px 0 0;
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: 40px;
  letter-spacing: -0.02em;
  background: var(--pq-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--pq-accent);
}
.pq-potentiel-date { margin: 12px 0 0; font-size: 12px; color: var(--pq-muted); }
.pq-potentiel-cta { width: 100%; justify-content: center; }

/* ---------- Écran de chargement (calcul de la projection) ---------- */
.pq-charge-bloc { margin-top: 34px; }
.pq-charge-track {
  height: 6px;
  border-radius: 4px;
  background: var(--pq-surface-2);
  overflow: hidden;
}
.pq-charge-fill {
  height: 100%;
  width: 0%;
  border-radius: 4px;
  background: var(--pq-grad);
}
.pq-charge-pourcent {
  margin: 22px 0 0;
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: clamp(40px, 7vw, 56px);
  letter-spacing: -0.02em;
}
.pq-charge-pourcent span { font-size: 0.5em; color: var(--pq-muted); font-weight: 600; margin-left: 2px; }
.pq-charge-sous { margin-top: 6px; font-size: 13.5px; color: var(--pq-muted); }
.pq-charge-carte {
  margin-top: 34px;
  padding: 20px;
  border: 1px solid var(--pq-line);
  border-radius: var(--pq-r-l);
  background: var(--pq-surface);
  text-align: left;
}
.pq-charge-temoin { margin-top: 12px; display: flex; gap: 14px; align-items: flex-start; }
.pq-charge-avatar {
  flex: none;
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--pq-action);
  color: #fff;
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: 13px;
}
.pq-charge-etoiles { margin: 0 0 6px; font-size: 12px; letter-spacing: 0.1em; color: #f5b400; }
.pq-charge-quote { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--pq-text); }
.pq-charge-auteur { margin: 8px 0 0; font-size: 12.5px; color: var(--pq-muted); }

/* ---------- Étape formulaire final ---------- */
.pq-champ-label { display: block; font-size: 13px; color: var(--pq-text-2); margin-bottom: 6px; }
.pq-form-grille { display: grid; gap: 16px; margin-top: 28px; max-width: 420px; }
.pq-form-grille { margin-left: auto; margin-right: auto; text-align: left; }
.pq-form-champ {
  width: 100%;
  padding: 14px 15px;
  border-radius: 12px;
  border: 1px solid var(--pq-line);
  background: var(--pq-surface);
  color: var(--pq-text);
  font: inherit;
  font-size: 15px;
}
.pq-form-champ:focus { outline: none; border-color: var(--pq-accent); }

/* ---------- Mobile ---------- */
@media (max-width: 480px) {
  .pq-topbar { padding: 14px 16px 0; }
  .pq-scene { padding: 20px 16px 44px; }
  .pq-titre { font-size: clamp(22px, 6.4vw, 28px); }
  .pq-lede { font-size: 14.5px; }
  .pq-options { gap: 8px; }
  .pq-option { padding: 15px 16px; font-size: 14.5px; }
  .pq-option-check { padding-left: 48px; }
  .pq-smiley { min-width: 72px; padding: 13px 8px; font-size: 11.5px; }
  .pq-slider-bloc { padding: 18px 16px 16px; }
  .pq-slider-val { font-size: 26px; }
  .pq-potentiel-carte, .pq-charge-carte { padding: 16px; margin-top: 14px; }
  .pq-potentiel-graph { padding: 14px 6px 4px; }
  .pq-potentiel-jauge-svg { width: 190px; }
  .pq-potentiel-score-val { font-size: 34px; }
  .pq-charge-pourcent { margin-top: 16px; }
  .pq-form-grille { max-width: 100%; }
  .pq-scene { padding-bottom: 96px; }
  .pq-actions {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    margin-top: 0;
    gap: 10px;
    padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(to top, rgba(255, 255, 255, 0.98) 65%, rgba(255, 255, 255, 0));
    z-index: 6;
  }
  .pq-btn { padding: 13px 20px; font-size: 14.5px; width: 100%; justify-content: center; }
  .pq-projection-carte { margin-top: 18px; }
  .pq-projection-stats { grid-template-columns: repeat(2, 1fr); }
  .pq-projection-stat { padding: 15px 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .pq-projection-stat:nth-child(2n) { border-right: none; }
  .pq-projection-stat:nth-last-child(-n+2) { border-bottom: none; }
  .pq-projection-note { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .pq-stage { animation: none; }
}
