/* ============================================================
   QUIZ – Styles spécifiques
   ============================================================ */

.quiz-page {
  min-height: 100vh;
  padding-top: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}

/* ── INTRO ───────────────────────────────────────────────── */
.quiz-intro {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 4rem 1.5rem;
}
.quiz-intro__inner {
  max-width: 640px;
  text-align: center;
}
.quiz-intro__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.15;
  margin: 1rem 0;
}
.quiz-highlight {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.quiz-intro__sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.quiz-intro__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}
.quiz-intro__chips span {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.quiz-intro__note {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ── QUIZ WRAP ───────────────────────────────────────────── */
.quiz-wrap {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.quiz-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: 1rem;
}

.quiz-progress { flex: 1; }
.quiz-progress__label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 6px;
}
.quiz-progress__bar {
  height: 6px;
  background: var(--surface);
  border-radius: 3px;
  overflow: hidden;
}
.quiz-progress__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  border-radius: 3px;
  transition: width 0.4s cubic-bezier(0.4,0,0.2,1);
}
.quiz-score-live {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--cyan);
  white-space: nowrap;
}

/* ── QUIZ CARD ───────────────────────────────────────────── */
.quiz-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: var(--shadow);
  animation: slideIn 0.35s ease;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.quiz-card__pole {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: 4px;
  margin-bottom: 1.25rem;
}
.quiz-card__pole.elec { background: rgba(247,127,0,0.15); color: var(--orange); border: 1px solid rgba(247,127,0,0.3); }
.quiz-card__pole.net  { background: rgba(0,180,216,0.15); color: var(--cyan);   border: 1px solid rgba(0,180,216,0.3); }
.quiz-card__pole.cyber{ background: rgba(192,132,252,0.15); color: var(--purple); border: 1px solid rgba(192,132,252,0.3); }
.quiz-card__pole.gen  { background: rgba(45,147,108,0.15); color: var(--green); border: 1px solid rgba(45,147,108,0.3); }

.quiz-card__question {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2rem;
  line-height: 1.5;
}

.quiz-card__options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.option-btn {
  width: 100%;
  text-align: left;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.option-btn:hover:not(:disabled) {
  border-color: var(--cyan);
  background: rgba(0,180,216,0.05);
}
.option-btn:disabled { cursor: default; }
.option-btn.correct {
  border-color: var(--green);
  background: rgba(45,147,108,0.15);
  color: var(--text);
}
.option-btn.wrong {
  border-color: #ef4444;
  background: rgba(239,68,68,0.1);
  color: var(--text-muted);
}
.option-btn.reveal {
  border-color: var(--green);
  background: rgba(45,147,108,0.08);
}
.option-letter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
}
.option-btn.correct .option-letter { background: var(--green); color: #fff; }
.option-btn.wrong .option-letter { background: #ef4444; color: #fff; }

.quiz-next-btn { margin-top: 0.5rem; }

/* ── RESULTS ─────────────────────────────────────────────── */
.quiz-results {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}
.results-inner { text-align: center; }
.results-trophy { font-size: 4rem; margin-bottom: 1rem; animation: bounce 0.6s ease; }
@keyframes bounce {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}
.results-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.results-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* Bars */
.results-bars {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
  text-align: left;
}
.results-bar { }
.results-bar__label {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.results-bar__track {
  height: 10px;
  background: var(--surface);
  border-radius: 5px;
  overflow: hidden;
}
.results-bar__fill {
  height: 100%;
  border-radius: 5px;
  transition: width 1s cubic-bezier(0.4,0,0.2,1);
}

/* Profile card */
.results-profile-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  margin-bottom: 2rem;
  text-align: left;
}
.profile-card__title { font-size: 1.2rem; font-weight: 800; color: var(--text); margin-bottom: 0.75rem; }
.profile-card__text { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 1rem; }
.profile-card__jobs { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.profile-card__jobs span {
  font-family: var(--font-mono); font-size: 0.72rem;
  padding: 4px 12px; border-radius: 4px;
  background: rgba(0,180,216,0.1); color: var(--cyan);
  border: 1px solid rgba(0,180,216,0.2);
}

.results-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.5rem; }
.results-note {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}
