/* =====================================================================
   Ankasso — Aimant à leads (quiz "Quel investisseur es-tu ?" + guide)
   Charte : "L'or des marchés" — or sur noir, terminal de banque privée.
   Trilingue FR/EN/ES. Aucune donnée fabriquée.
   ===================================================================== */
:root {
  --black: #0b0b0c;
  --surface: #131316;
  --surface-2: #1a1a1e;
  --line: rgba(212, 175, 55, 0.16);
  --line-soft: rgba(255, 255, 255, 0.07);

  --gold-1: #f9e08a;
  --gold-2: #d4af37;
  --gold-3: #a9791f;
  --gold-grad: linear-gradient(135deg, #f9e08a 0%, #e6c04f 45%, #b8860b 100%);
  --gold-glow: rgba(212, 175, 55, 0.35);

  --text: #f4f0e6;
  --muted: #a9a497;
  --muted-2: #7d796f;

  --radius: 16px;
  --radius-lg: 22px;
  --maxw: 880px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.55);

  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: radial-gradient(1100px 600px at 50% -10%, rgba(212,175,55,0.10), transparent 60%), var(--black);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.gold-text {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.hdr {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 20px; max-width: 1100px; margin: 0 auto;
}
.hdr__logo { height: 46px; width: auto; }
.lang {
  display: inline-flex; gap: 2px;
  border: 1px solid var(--line); border-radius: 999px; padding: 4px; background: var(--surface);
}
.lang button {
  font-family: var(--font-body); font-size: 13px; font-weight: 600; letter-spacing: .04em;
  color: var(--muted); background: transparent; border: 0; cursor: pointer;
  padding: 6px 12px; border-radius: 999px; transition: .2s;
}
.lang button.is-active { color: #1a1300; background: var(--gold-grad); }

/* ---------- Sections (shown/hidden) ---------- */
.screen { display: none; padding: 18px 0 70px; }
.screen.is-active { display: block; animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Intro ---------- */
.eyebrow {
  font-family: var(--font-head); font-size: 12.5px; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase; color: var(--gold-2);
  display: inline-block; margin-bottom: 14px;
}
.intro h1 {
  font-family: var(--font-head); font-weight: 800; line-height: 1.08;
  font-size: clamp(30px, 6vw, 52px); letter-spacing: -0.02em; margin-bottom: 16px;
}
.intro p.lead { font-size: clamp(16px, 2.4vw, 19px); color: var(--muted); max-width: 620px; margin-bottom: 26px; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px;
  font-size: 13.5px; color: var(--text); background: var(--surface);
}
.badge span.dot { color: var(--gold-2); }

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font-head); font-weight: 700; font-size: 16px;
  border: 0; cursor: pointer; border-radius: 999px; padding: 15px 30px;
  background: var(--gold-grad); color: #1a1300;
  box-shadow: 0 10px 30px var(--gold-glow); transition: transform .15s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 40px var(--gold-glow); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn--ghost {
  background: transparent; color: var(--text); border: 1px solid var(--line);
  box-shadow: none; font-weight: 600; font-size: 15px; padding: 13px 24px;
}
.btn--ghost:hover { border-color: var(--gold-2); transform: none; box-shadow: none; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* ---------- Quiz ---------- */
.progress { margin: 6px 0 26px; }
.progress__meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.progress__bar { height: 7px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.progress__fill { height: 100%; width: 0%; background: var(--gold-grad); transition: width .35s ease; }

.dim-tag {
  font-family: var(--font-head); font-size: 11.5px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--gold-3); margin-bottom: 12px;
}
.q-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow);
}
.q-card h2 {
  font-family: var(--font-head); font-weight: 700; font-size: clamp(20px, 3.4vw, 26px);
  line-height: 1.25; margin-bottom: 22px; letter-spacing: -0.01em;
}
.answers { display: flex; flex-direction: column; gap: 11px; }
.answer {
  text-align: left; width: 100%; cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: 14px;
  padding: 15px 18px; color: var(--text); font-size: 15.5px; font-family: var(--font-body);
  display: flex; align-items: center; gap: 13px; transition: .18s;
}
.answer:hover { border-color: var(--gold-2); background: #20201d; }
.answer.is-selected { border-color: var(--gold-2); background: #221d10; }
.answer .tick {
  flex: 0 0 22px; height: 22px; border-radius: 50%; border: 2px solid var(--muted-2);
  display: inline-flex; align-items: center; justify-content: center; transition: .18s;
}
.answer.is-selected .tick { border-color: var(--gold-2); background: var(--gold-grad); }
.answer.is-selected .tick::after { content: "✓"; font-size: 12px; color: #1a1300; font-weight: 800; }
.nav-row { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; }

/* ---------- Capture form ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px; box-shadow: var(--shadow);
}
.card h2 { font-family: var(--font-head); font-weight: 800; font-size: clamp(24px, 4vw, 34px); margin-bottom: 10px; letter-spacing: -0.02em; }
.card p.sub { color: var(--muted); margin-bottom: 24px; font-size: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--muted); margin-bottom: 7px; }
.field input[type="email"], .field input[type="text"] {
  width: 100%; font-family: var(--font-body); font-size: 16px; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px;
  transition: border-color .2s;
}
.field input::placeholder { color: var(--muted-2); }
.field input:focus { outline: none; border-color: var(--gold-2); }
.consent { display: flex; gap: 11px; align-items: flex-start; margin: 18px 0 22px; }
.consent input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--gold-2); flex: 0 0 auto; }
.consent label { font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.form-err { color: #ff8a7a; font-size: 13.5px; margin-bottom: 14px; display: none; }
.form-err.is-on { display: block; }

/* ---------- Result ---------- */
.result-head { display: flex; align-items: center; gap: 18px; margin-bottom: 8px; }
.result-emoji {
  font-size: 46px; line-height: 1; filter: drop-shadow(0 6px 16px rgba(0,0,0,.5));
  width: 78px; height: 78px; border-radius: 20px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-2); border: 1px solid var(--line);
}
.result-head h2 { font-family: var(--font-head); font-weight: 800; font-size: clamp(26px, 5vw, 40px); letter-spacing: -0.02em; }
.score-pill { font-size: 13px; color: var(--muted); font-family: var(--font-head); font-weight: 600; letter-spacing: .05em; }
.result-desc { color: var(--text); font-size: 16.5px; margin: 16px 0 22px; }
.reco-title { font-family: var(--font-head); font-weight: 700; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 14px; }
.reco { list-style: none; display: flex; flex-direction: column; gap: 11px; margin-bottom: 26px; }
.reco li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; }
.reco li::before { content: "◆"; color: var(--gold-2); font-size: 11px; margin-top: 5px; }

.share {
  margin: 24px 0 4px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(212,175,55,0.06), rgba(212,175,55,0.015));
}
.share__title { font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--text); margin-bottom: 14px; }
.share__row { display: flex; flex-wrap: wrap; gap: 10px; }
.share__btn {
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  font-family: var(--font-head); font-weight: 600; font-size: 13.5px; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 16px; transition: border-color .15s ease, color .15s ease, transform .15s ease;
}
.share__btn:hover { border-color: var(--gold-2); color: var(--gold-1); transform: translateY(-1px); }
.share__btn--copy { background: transparent; }

.bonus {
  margin-top: 26px; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(212,175,55,0.08), rgba(212,175,55,0.02)); padding: 22px;
}
.bonus__tag { font-family: var(--font-head); font-size: 11.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-2); }
.bonus h3 { font-family: var(--font-head); font-weight: 700; font-size: 19px; margin: 8px 0 6px; }
.bonus p { color: var(--muted); font-size: 14.5px; margin-bottom: 16px; }

/* ---------- Footer ---------- */
.ftr { border-top: 1px solid var(--line-soft); padding: 30px 0 50px; margin-top: 20px; }
.ftr__logo { height: 34px; opacity: .85; margin-bottom: 14px; }
.ftr p { color: var(--muted-2); font-size: 12.5px; max-width: 760px; }

@media (max-width: 560px) {
  .q-card, .card { padding: 22px; }
  .result-emoji { width: 64px; height: 64px; font-size: 36px; }
  .btn { width: 100%; }
  .nav-row .btn { width: auto; }
}

/* Conteneur du formulaire officiel Constant Contact (écran résultat) */
.cc-wrap {
  margin: 22px 0;
  padding: 18px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 14px;
  background: rgba(212, 175, 55, 0.05);
}
.cc-wrap h3 {
  margin: 0 0 12px;
  font-family: "Sora", sans-serif;
  font-size: 1.05rem;
}
