/* ── Questionnaire — mode séquentiel ──────────────────────────────────────── */

#app {
  min-height: 100vh;
}

/* ── Header ──────────────────────────────────────────────────────────────── */

.q-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.q-logo {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.logo-title {
  font-family: var(--display);
  font-size: 1.6rem;
  color: var(--green);
  letter-spacing: 0.04em;
  line-height: 1;
}

.logo-sub {
  font-size: 0.8rem;
  color: var(--text2);
  font-weight: 400;
}

.q-step-indicator {
  font-size: 0.75rem;
  font-family: var(--mono);
  color: var(--text2);
  opacity: 0.5;
  letter-spacing: 0.08em;
}

/* ── Étape ───────────────────────────────────────────────────────────────── */

#step-screen {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.q-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px 56px;
}

.step-body {
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.step-label {
  font-size: 0.75rem;
  font-family: var(--mono);
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.75;
}

.step-question {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}

.step-hint {
  font-size: 0.85rem;
  color: var(--text2);
  opacity: 0.6;
  font-style: italic;
  margin-top: -8px;
}

/* ── Input ───────────────────────────────────────────────────────────────── */

.step-input-wrap {
  position: relative;
}

.step-input {
  width: 100%;
  font-size: 1.15rem;
  padding: 16px 18px;
  background: var(--bg2);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text);
  transition: border-color 0.15s ease;
  box-sizing: border-box;
}

.step-input:focus {
  outline: none;
  border-color: var(--green);
}

.step-word-count {
  position: absolute;
  right: 14px;
  bottom: 14px;
  font-size: 0.72rem;
  font-family: var(--mono);
  color: var(--text2);
  opacity: 0.5;
  pointer-events: none;
  transition: color 0.15s;
}

.step-word-count.over {
  color: var(--danger);
  opacity: 1;
  font-weight: 600;
}

/* ── Bouton ──────────────────────────────────────────────────────────────── */

.step-btn {
  padding: 16px 28px;
  font-size: 1rem;
  letter-spacing: 0.04em;
  border-radius: var(--radius-lg);
  align-self: flex-start;
  min-width: 160px;
}

/* ── Écran succès ─────────────────────────────────────────────────────────── */

#success-screen,
#closed-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.success-content {
  text-align: center;
  animation: successIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes successIn {
  from { opacity: 0; transform: scale(0.85) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.success-icon {
  font-size: 5rem;
  margin-bottom: 24px;
  line-height: 1;
}

.success-title {
  font-size: 3.2rem;
  color: var(--green);
  margin-bottom: 16px;
}

.success-sub {
  font-size: 1.15rem;
  color: var(--text2);
  line-height: 1.6;
}

/* ── Mobile ──────────────────────────────────────────────────────────────── */

@media (max-width: 480px) {
  .step-question {
    font-size: 1.3rem;
  }
  .step-input {
    font-size: 1rem;
    padding: 14px 16px;
  }
  .step-btn {
    width: 100%;
    text-align: center;
  }
}
