/* =========================================================
   QUIZ COACHING À DISTANCE — GERAN COACHING
   Palette : noir profond + vert émeraude + crème
   ========================================================= */

:root {
  --bg: #f3f3f3;
  --surface: #FFFFFF;
  --surface-alt: #fafafa;
  --border: #e5e5e5;
  --border-strong: #2A2621;

  --text: #1d1d1f;
  --text-muted: #86868b;
  --text-faint: #c7c7cc;

  --accent: #c99700;          /* doré profond — couleur primaire du site */
  --accent-hover: #a87e00;
  --accent-soft: #fdf5db;

  --gold: #efd280;             /* doré clair lumineux */
  --alert: #dc3545;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(26,24,21,0.05);
  --shadow: 0 8px 28px rgba(26,24,21,0.08);
  --shadow-lg: 0 24px 64px rgba(26,24,21,0.12);

  --font: 'Poppins', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.55;
}

a { color: var(--accent); }

/* ---- Brand bar ---- */
.brand-bar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 17px;
  color: var(--text);
}
.brand span { color: var(--accent); font-weight: 500; }
.brand-tag {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
@media (max-width: 640px) {
  .brand-tag { display: none; }
}

/* ---- App shell ---- */
.app {
  max-width: 1200px;
  margin: 0 auto 40px;
  padding: 0 24px;
}

.screen { display: none; }
.screen.active { display: block; animation: fadeIn .35s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ===========================================================
   ÉCRAN INTRO
   =========================================================== */
.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: stretch;
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 540px;
}
@media (max-width: 920px) {
  .split { grid-template-columns: 1fr; gap: 0; }
}

.split-media {
  position: relative;
  background: linear-gradient(135deg, #1d1d1f 0%, #c99700 130%);
  min-height: 360px;
  overflow: hidden;
}
.hero-img {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 400px at 20% 20%, rgba(239,210,128,0.22), transparent 60%),
    radial-gradient(600px 400px at 80% 80%, rgba(201,151,0,0.45), transparent 60%),
    linear-gradient(135deg, #1d1d1f 0%, #242426 60%, #3a2f1a 100%);
}
.hero-img::before {
  /* motif de lignes subtiles (look premium) */
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: .4;
}
.hero-img::after {
  content: "COACHING SUR MESURE";
  position: absolute;
  bottom: 32px;
  left: 32px;
  right: 32px;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  color: rgba(255,255,255,0.95);
  line-height: 1;
  letter-spacing: -0.02em;
}

.hero-overlay {
  position: absolute;
  top: 24px; left: 24px;
  display: flex; gap: 12px;
  flex-wrap: wrap;
}
.hero-stat {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 10px 14px;
  color: #fff;
}
.hero-stat .big {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: var(--gold);
}
.hero-stat .lbl {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.7);
}

.split-body {
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (max-width: 640px) { .split-body { padding: 36px 24px; } }

.eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 16px;
}

h1 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  font-weight: 700;
}
h1 em {
  font-style: normal;
  color: var(--accent);
  background: linear-gradient(180deg, transparent 60%, rgba(239,210,128,0.55) 60%);
  padding: 0 2px;
}

.lead {
  font-size: 17px;
  color: var(--text-muted);
  margin: 0 0 28px;
  max-width: 460px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 24px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
  text-decoration: none;
  line-height: 1;
}
.btn svg { transition: transform .2s ease; }
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 24px rgba(201,151,0,0.30);
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--surface-alt); }

.btn-block { width: 100%; }

/* Reassurance */
.reassurance {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 24px;
}
@media (max-width: 520px) { .reassurance { grid-template-columns: 1fr; } }
.reassurance li {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 10px;
  align-items: start;
}
.reassurance strong {
  grid-column: 2;
  font-weight: 500;
  font-size: 14px;
  color: var(--text);
}
.reassurance span:not(.r-icon) {
  grid-column: 2;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
}
.r-icon {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 22px; height: 22px;
  display: inline-grid; place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  margin-top: 2px;
}

/* ===========================================================
   QUIZ
   =========================================================== */
.quiz-shell {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px 48px 48px;
  box-shadow: var(--shadow);
  min-height: 540px;
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
@media (max-width: 640px) { .quiz-shell { padding: 24px; border-radius: var(--radius); } }

.quiz-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.btn-back {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  transition: background .15s;
}
.btn-back:hover { background: var(--surface-alt); color: var(--text); }
.btn-back:disabled { opacity: 0; pointer-events: none; }

.step-counter {
  font-size: 13px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.step-counter #step-current { color: var(--text); font-weight: 700; }
.step-counter .sep { margin: 0 4px; color: var(--text-faint); }

/* Progress */
.progress { margin-bottom: 36px; }
.progress-bar {
  height: 4px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 8px;
}
.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
  width: 0%;
  transition: width .45s cubic-bezier(.2,.8,.2,1);
}
.progress-segments {
  display: flex;
  gap: 4px;
  height: 2px;
}
.progress-segments span {
  flex: 1;
  background: transparent;
}
.progress-segments span.done { background: var(--accent); border-radius: 999px; height: 2px; }

/* Question */
.quiz-body { flex: 1; }

.q-eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 12px;
}

.q-title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.q-help {
  font-size: 15px;
  color: var(--text-muted);
  margin: 0 0 28px;
}

/* Options */
.options { display: grid; gap: 10px; }
.options.cols-2 { grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .options.cols-2 { grid-template-columns: 1fr; } }

.option {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  cursor: pointer;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  transition: border .15s, background .15s, transform .15s;
  text-align: left;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  width: 100%;
}
.option:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.option.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.option-emoji {
  font-size: 22px;
  width: 40px; height: 40px;
  display: inline-grid; place-items: center;
  background: var(--surface-alt);
  border-radius: 12px;
}
.option.selected .option-emoji { background: #fff; }

.option-label {
  font-weight: 500;
}
.option-desc {
  display: block;
  font-weight: 400;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 3px;
}

.option-check {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: inline-grid; place-items: center;
  transition: border .15s, background .15s;
}
.option.selected .option-check {
  background: var(--accent);
  border-color: var(--accent);
}
.option.selected .option-check::after {
  content: "";
  width: 10px; height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translateY(-2px);
}

/* Input */
.input-group {
  display: grid;
  gap: 10px;
  max-width: 360px;
}
.input-group label { font-size: 13px; color: var(--text-muted); }
.input-group input {
  padding: 16px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 16px;
  font-family: inherit;
  background: var(--surface);
  color: var(--text);
  transition: border .15s;
  width: 100%;
}
.input-group input:focus {
  outline: none;
  border-color: var(--accent);
}

/* Quiz footer */
.quiz-footer {
  margin-top: 32px;
  display: flex;
  justify-content: flex-end;
}
.quiz-footer .btn { min-width: 160px; }

/* ===========================================================
   EMAIL SCREEN
   =========================================================== */
.email-shell {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  box-shadow: var(--shadow);
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}
@media (max-width: 640px) { .email-shell { padding: 40px 24px; } }

.badge {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.email-shell h2 {
  font-size: clamp(24px, 3.5vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  font-weight: 700;
}

.email-shell .lead { margin-left: auto; margin-right: auto; }

.email-form {
  display: grid;
  gap: 16px;
  text-align: left;
  margin-top: 28px;
}
.email-form label { display: grid; gap: 6px; }
.email-form label span {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}
.email-form input {
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 16px;
  font-family: inherit;
  background: var(--surface);
  color: var(--text);
  transition: border .15s;
}
.email-form input:focus { outline: none; border-color: var(--accent); }
.email-form input.error { border-color: var(--alert); }

.form-note {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin: 8px 0 0;
}

/* ===========================================================
   RESULT SCREEN
   =========================================================== */
.result-shell {
  max-width: 820px;
  margin: 0 auto;
}

.result-hero {
  text-align: center;
  padding: 0 0 24px;
}
.result-hero h2 {
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 8px 0 12px;
  font-weight: 700;
}
.result-hero h2 em {
  font-style: normal;
  color: var(--accent);
}
.result-hero .lead { margin: 0 auto; }

.result-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 40px 48px;
  box-shadow: var(--shadow);
  position: relative;
  margin-bottom: 32px;
  border: 1px solid var(--border);
}
@media (max-width: 640px) { .result-card { padding: 32px 24px; } }

.result-card-tag {
  position: absolute;
  top: -14px; left: 48px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
@media (max-width: 640px) { .result-card-tag { left: 24px; } }

.result-card h3 {
  font-size: 24px;
  line-height: 1.2;
  margin: 0 0 12px;
  font-weight: 700;
}
.program-desc {
  color: var(--text-muted);
  margin: 0 0 24px;
  font-size: 15px;
}

.program-feats {
  list-style: none; padding: 0;
  margin: 0 0 28px;
  display: grid; gap: 12px;
}
.program-feats li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--text);
  line-height: 1.5;
}
.program-feats li::before {
  content: "";
  flex: 0 0 20px;
  width: 20px; height: 20px;
  background-color: var(--accent-soft);
  border-radius: 50%;
  margin-top: 2px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c99700' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12l5 5 9-11'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}

.result-actions {
  display: grid;
  gap: 10px;
}

/* Pillars */
.result-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
@media (max-width: 720px) { .result-pillars { grid-template-columns: 1fr; } }
.pillar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.p-num {
  display: inline-grid; place-items: center;
  width: 32px; height: 32px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  margin-bottom: 12px;
  font-size: 14px;
}
.pillar h4 { margin: 0 0 6px; font-size: 16px; font-weight: 700; }
.pillar p { margin: 0; color: var(--text-muted); font-size: 14px; }

/* FAQ */
.result-faq {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 40px 48px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  margin-bottom: 24px;
}
@media (max-width: 640px) { .result-faq { padding: 32px 24px; } }

.result-faq h3 {
  font-size: 22px;
  margin: 0 0 20px;
  font-weight: 700;
}
.result-faq details {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.result-faq details:last-of-type { border-bottom: none; }
.result-faq summary {
  cursor: pointer;
  font-weight: 500;
  font-size: 15px;
  padding-right: 24px;
  position: relative;
  list-style: none;
}
.result-faq summary::-webkit-details-marker { display: none; }
.result-faq summary::after {
  content: "+";
  position: absolute; right: 0; top: 0;
  color: var(--accent);
  font-size: 20px;
  font-weight: 300;
  transition: transform .2s;
}
.result-faq details[open] summary::after { content: "–"; }
.result-faq details p {
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 14px;
}

.btn-restart {
  display: block;
  margin: 8px auto 0;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  padding: 12px 20px;
  border-radius: 999px;
  transition: color .15s, background .15s;
}
.btn-restart:hover { color: var(--accent); background: var(--accent-soft); }

/* Footer */
.site-footer {
  max-width: 1200px;
  margin: 40px auto 32px;
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}
.site-footer p { margin: 4px 0; }
.site-footer a { color: var(--text-muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
