/* silvr — ambiance douce & chaleureuse, pensée pour le confort des 50+.
   Grandes typos, contrastes francs, cibles tactiles généreuses. */
:root {
  --cream:    #f6f1e7;
  --cream-2:  #efe7d8;
  --paper:    #fffdf8;
  --ink:      #2f2a24;   /* texte principal, chaud et très lisible */
  --ink-soft: #6b6256;   /* texte secondaire */
  --sage:     #6f8f74;   /* accent principal */
  --sage-deep:#4f6e55;   /* hover / focus */
  --sage-tint:#e6efe5;
  --line:     #e2d8c6;
  --shadow:   0 18px 40px -22px rgba(79, 110, 85, 0.45);
  --radius:   20px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
}

body {
  background:
    radial-gradient(1200px 600px at 50% -10%, var(--cream-2), transparent 70%),
    var(--cream);
  color: var(--ink);
  font-family: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 21px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.brand {
  position: fixed;
  top: clamp(18px, 4vw, 34px);
  left: clamp(18px, 4vw, 40px);
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 26px;
  letter-spacing: -0.01em;
  color: var(--sage-deep);
  text-decoration: none;
  z-index: 10;
}

.stage {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(28px, 6vw, 64px);
}

.loading { color: var(--ink-soft); }

/* ── Carte / panneau d'une étape ──────────────────────────────────────────── */
.card {
  width: 100%;
  max-width: 620px;
  animation: rise 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.card.leaving { animation: fade 0.22s ease forwards; }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fade {
  to { opacity: 0; transform: translateY(-12px); }
}

.step-num {
  display: inline-block;
  font-size: 17px;
  font-weight: 700;
  color: var(--sage);
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

.title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: clamp(30px, 5.2vw, 44px);
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin: 0 0 14px;
}

.help {
  font-size: 20px;
  color: var(--ink-soft);
  margin: 0 0 30px;
}

/* ── Champs ────────────────────────────────────────────────────────────────── */
.field {
  width: 100%;
  font-family: inherit;
  font-size: 23px;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: 16px;
  padding: 20px 22px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
textarea.field { min-height: 130px; resize: vertical; }
.field::placeholder { color: #b3a892; }
.field:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 4px var(--sage-tint);
}

/* ── Choix multiples ─────────────────────────────────────────────────────────── */
.choices { display: grid; gap: 14px; }
.choice {
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  width: 100%;
  font-family: inherit;
  font-size: 21px;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: 16px;
  padding: 18px 22px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.08s;
}
.choice:hover { border-color: var(--sage); background: #fbfaf4; }
.choice:active { transform: scale(0.99); }
.choice.selected {
  border-color: var(--sage);
  background: var(--sage-tint);
  font-weight: 700;
}
.choice__key {
  flex: none;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 9px;
  border: 2px solid var(--line);
  font-size: 16px; font-weight: 700;
  color: var(--ink-soft);
  background: var(--cream);
}
.choice.selected .choice__key {
  border-color: var(--sage);
  background: var(--sage);
  color: #fff;
}

/* ── Actions ──────────────────────────────────────────────────────────────── */
.actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.btn {
  font-family: inherit;
  font-size: 21px;
  font-weight: 700;
  border: none;
  border-radius: 14px;
  padding: 17px 34px;
  cursor: pointer;
  transition: background 0.15s, transform 0.08s, box-shadow 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--sage);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn--primary:hover { background: var(--sage-deep); }
.btn--ghost {
  background: transparent;
  color: var(--ink-soft);
  padding: 17px 18px;
}
.btn--ghost:hover { color: var(--ink); }
.btn:disabled { opacity: 0.5; cursor: default; }

.hint-enter {
  font-size: 16px;
  color: var(--ink-soft);
}
.hint-enter b { color: var(--ink); }

.error {
  margin-top: 18px;
  color: #a8443a;
  font-size: 18px;
  font-weight: 600;
}

/* ── Écran d'accueil & remerciement ──────────────────────────────────────────── */
.hero { text-align: left; max-width: 640px; }
.hero .title { font-size: clamp(36px, 6vw, 56px); }
.hero .lead {
  font-size: 22px;
  color: var(--ink-soft);
  margin: 0 0 34px;
  max-width: 30em;
}
.reassure {
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  margin: 0 0 30px; padding: 0; list-style: none;
  color: var(--ink-soft); font-size: 18px;
}
.reassure li { display: flex; align-items: center; gap: 9px; }
.reassure li::before { content: '✓'; color: var(--sage); font-weight: 800; }

.done-mark {
  width: 84px; height: 84px;
  border-radius: 50%;
  background: var(--sage-tint);
  display: grid; place-items: center;
  margin-bottom: 26px;
  color: var(--sage-deep);
  font-size: 44px;
  animation: pop 0.5s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }

/* ── Barre de progression ──────────────────────────────────────────────────── */
.progress {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: 8px;
  background: var(--cream-2);
  z-index: 10;
}
.progress__bar {
  height: 100%;
  width: 0;
  background: var(--sage);
  transition: width 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (max-width: 560px) {
  body { font-size: 19px; }
  .btn { width: 100%; justify-content: center; }
  .actions { flex-direction: column-reverse; align-items: stretch; }
  .hint-enter { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ── Page d'accueil (landing) ──────────────────────────────────────────────── */
.lp-wrap {
  min-height: 100dvh;
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(80px, 10vh, 130px) clamp(22px, 5vw, 56px) 40px;
}

.lp-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
  animation: rise 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.lp-kicker {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.02em;
  color: var(--sage);
  margin: 0 0 16px;
}

.lp-title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: clamp(38px, 5.6vw, 60px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
}

.lp-lead {
  font-size: clamp(21px, 2.4vw, 25px);
  line-height: 1.5;
  color: var(--ink);
  margin: 0 0 20px;
  max-width: 30em;
}

.lp-note {
  font-size: 20px;
  color: var(--ink-soft);
  margin: 0 0 28px;
  max-width: 30em;
}

.lp-reassure {
  list-style: none;
  padding: 0;
  margin: 0 0 36px;
  display: grid;
  gap: 13px;
  max-width: 32em;
}
.lp-reassure li {
  position: relative;
  padding-left: 38px;
  font-size: 19px;
  color: var(--ink);
  line-height: 1.45;
}
.lp-reassure li::before {
  content: '✓';
  position: absolute;
  left: 0; top: -1px;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--sage-tint);
  color: var(--sage-deep);
  font-weight: 800;
  font-size: 15px;
}

.lp-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.lp-actions .btn { text-decoration: none; display: inline-block; }
.lp-time { color: var(--ink-soft); font-size: 17px; }

.lp-art {
  display: flex;
  justify-content: center;
}
.lp-art svg {
  width: 100%;
  max-width: 440px;
  height: auto;
  filter: drop-shadow(0 28px 50px rgba(79, 110, 85, 0.22));
}

.lp-foot {
  margin-top: clamp(32px, 6vh, 64px);
  color: var(--ink-soft);
  font-size: 16px;
}
.lp-foot span {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  color: var(--sage-deep);
}

@media (max-width: 860px) {
  .lp-grid { grid-template-columns: 1fr; }
  .lp-art { order: -1; }
  .lp-art svg { max-width: 320px; }
  .lp-foot { text-align: center; }
}
@media (max-width: 560px) {
  .lp-actions { flex-direction: column; align-items: stretch; }
  .lp-actions .btn { width: 100%; text-align: center; }
  .lp-time { text-align: center; }
}
