:root {
  --encre: #2E1660;
  --encre-deep: #1C0D42;
  --indigo: #4A2FE8;
  --violet: #8B2CF5;
  --magenta: #E619F0;
  --grad: linear-gradient(120deg, #4A2FE8 0%, #8B2CF5 55%, #E619F0 100%);
  --bg: #FAF9FE;
  --txt: #1C1235;
  --muted: #6E668A;
  --border: #EAE6F6;
  --pale: #F3F0FD;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--txt);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Aurora background ── */
.aurora {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.28;
}
.b1 { width: 420px; height: 420px; background: #8B2CF5; top: -160px; right: -80px; }
.b2 { width: 360px; height: 360px; background: #4A2FE8; bottom: -180px; left: -120px; }
.b3 { width: 260px; height: 260px; background: #E619F0; top: 30%; right: 22%; opacity: 0.14; }

.aurora.animated .blob { animation: drift 14s ease-in-out infinite alternate; }
.aurora.animated .b2 { animation-delay: -6s; }
.aurora.animated .b3 { animation-delay: -3s; }
@keyframes drift {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(28px,-20px) scale(1.06); }
}
@media (prefers-reduced-motion: reduce) {
  .blob { animation: none !important; }
}

/* ── Header glass ── */
.topbar {
  position: relative;
  z-index: 10;
  margin: 20px 24px 0;
  background: rgba(28,13,66,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 16px;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.topbar svg { height: 28px; width: auto; display: block; }
.topbar .ctx { color: rgba(255,255,255,0.75); font-size: 13px; font-weight: 600; letter-spacing: 0.5px; }
.topbar .ctx b {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
}
.wave-line {
  position: relative;
  z-index: 10;
  height: 3px;
  margin: 0 48px;
  background: var(--grad);
  border-radius: 3px;
  transform: translateY(-1px);
  flex-shrink: 0;
}

/* ── Main content ── */
.page-wrap {
  position: relative;
  z-index: 1;
  flex: 1;
  padding: 48px 24px;
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
}

/* ── Footer ── */
footer {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 20px 24px 24px;
  font-size: 11.5px;
  color: #A49CC0;
  letter-spacing: 0.4px;
  flex-shrink: 0;
}

/* ── Typography helpers ── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: '';
  width: 26px;
  height: 2px;
  background: var(--grad);
  border-radius: 2px;
}
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── CTA button ── */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--encre-deep);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 17px 36px;
  font-size: 15.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}
.cta::after { content: '→'; font-size: 17px; transition: transform .15s; }
.cta:hover { transform: translateY(-1px); box-shadow: 0 8px 26px rgba(74,47,232,0.35); }
.cta:hover::after { transform: translateX(3px); }
.cta:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ── Ghost button ── */
.ghost {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--muted);
  border-radius: 50px;
  padding: 14px 26px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all .15s;
}
.ghost:hover { border-color: #C9BBF7; color: var(--indigo); }

/* ── Cards ── */
.card {
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 32px;
  box-shadow: 0 4px 24px rgba(46,22,96,0.06);
}

/* ── Meta pills ── */
.meta-pill {
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 10px 20px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--encre);
  box-shadow: 0 2px 10px rgba(46,22,96,0.05);
}
.meta-pill span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-right: 6px; font-weight: 800; }

/* ── Progress segments ── */
.progress-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}
.progress-head .count { font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: 0.3px; }
.progress-head .count b { color: var(--encre); font-weight: 800; font-size: 15px; }
.segments { display: flex; gap: 5px; margin-bottom: 36px; }
.seg { flex: 1; height: 6px; border-radius: 6px; background: #E4DFF3; }
.seg.done { background: var(--grad); }

/* ── Situation card ── */
.situation {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 36px;
  margin-bottom: 24px;
}
.situation .tag {
  display: inline-block;
  background: var(--grad);
  color: #fff;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 5px 14px;
  margin-bottom: 16px;
}
.situation p { font-size: 17px; line-height: 1.65; font-weight: 500; }

/* ── Options ── */
.opt {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: rgba(255,255,255,0.75);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 22px 26px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all .18s ease;
}
.opt:hover { border-color: #C9BBF7; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(46,22,96,0.08); }
.opt .chip {
  flex: 0 0 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--pale);
  color: var(--indigo);
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .18s;
}
.opt.selected { border-color: transparent; background: #fff; box-shadow: 0 0 0 2px var(--indigo), 0 10px 30px rgba(74,47,232,0.16); }
.opt.selected .chip { background: var(--grad); color: #fff; }
.opt p { font-size: 15px; line-height: 1.6; margin: 0; }

/* ── Nav row ── */
.nav-row { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; }

/* ── Report styles ── */
.report-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px; margin-bottom: 32px; }
.report-head h2 { font-size: 32px; font-weight: 800; letter-spacing: -0.8px; }
.report-head p { color: var(--muted); font-size: 14px; margin-top: 6px; font-weight: 500; }

.report-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; }
.radar-panel {
  background: var(--encre-deep);
  border-radius: 24px;
  padding: 32px;
  position: relative;
  overflow: hidden;
}
.radar-panel::before {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: #8B2CF5;
  filter: blur(110px);
  opacity: 0.4;
  top: -100px; right: -80px;
}
.radar-panel canvas { position: relative; z-index: 1; }

.side { display: flex; flex-direction: column; gap: 12px; }
.dim-bar { background: rgba(255,255,255,0.82); backdrop-filter: blur(8px); border: 1px solid var(--border); border-radius: 16px; padding: 14px 20px; }
.dim-bar .row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.dim-bar .name { font-size: 13.5px; font-weight: 700; }
.dim-bar .score { font-size: 13.5px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bar { height: 6px; background: #E9E4F6; border-radius: 6px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--grad); border-radius: 6px; }

.reco-block { margin-top: 32px; }
.reco-block h3 { font-size: 13px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--encre); margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.reco-block h3::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.reco-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.reco {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px 26px;
  position: relative;
  overflow: hidden;
}
.reco::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad); }
.reco .dim-name { font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 10px; }
.reco p { font-size: 14px; color: var(--txt); line-height: 1.6; }
.reco p + p { margin-top: 8px; }

/* ── Alert / message ── */
.alert { padding: 14px 20px; border-radius: 12px; margin-bottom: 16px; font-size: 14px; font-weight: 600; }
.alert-error { background: #FEE2E2; color: #991B1B; border: 1px solid #FECACA; }
.alert-success { background: #D1FAE5; color: #065F46; border: 1px solid #A7F3D0; }

/* ── Forms ── */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; color: var(--encre); }
.form-group input, .form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  color: var(--txt);
  transition: border-color .15s;
  outline: none;
}
.form-group input:focus, .form-group select:focus { border-color: var(--indigo); }

/* ── Hero screen ── */
.hero h1 { font-size: 42px; font-weight: 800; line-height: 1.12; letter-spacing: -1.2px; max-width: 720px; margin-bottom: 16px; }
.hero p.lead { font-size: 17px; color: var(--muted); max-width: 600px; line-height: 1.65; margin-bottom: 32px; }
.meta-row { display: flex; gap: 12px; margin-bottom: 36px; flex-wrap: wrap; }
.privacy { margin-top: 20px; font-size: 12.5px; color: var(--muted); max-width: 540px; }

/* ── Recruteur report disclaimer ── */
.disclaimer {
  background: rgba(74,47,232,0.07);
  border: 1px solid rgba(74,47,232,0.2);
  border-radius: 14px;
  padding: 16px 22px;
  margin-bottom: 28px;
  font-size: 14px;
  font-style: italic;
  color: var(--encre);
  line-height: 1.6;
}

/* ── Thank you screen ── */
.thanks { text-align: center; padding: 60px 24px; }
.thanks h2 { font-size: 32px; font-weight: 800; margin-bottom: 16px; }
.thanks p { font-size: 17px; color: var(--muted); max-width: 500px; margin: 0 auto; line-height: 1.65; }

/* ── Responsive ── */
@media (max-width: 780px) {
  .page-wrap { padding: 28px 16px; }
  .hero h1 { font-size: 28px; }
  .report-grid, .reco-grid { grid-template-columns: 1fr; }
  .topbar { margin: 12px; padding: 14px 20px; }
  .wave-line { margin: 0 32px; }
  .situation { padding: 22px 20px; }
  .opt { padding: 16px 18px; }
}

@media print {
  .radar-panel { overflow: visible !important; }
  .report-grid { page-break-inside: auto !important; break-inside: auto !important; }
  .aurora { display: none !important; }
}
