/* ==========================================================================
   Shared quiz / demo styles , ADA "Employabilite a l'ere de l'IA"
   Used by the hub + Concept A / B / C. Layered on top of ada-tokens.css.
   ========================================================================== */

/* ---------- App shell ---------- */
.app {
  min-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
}
.stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}
.stage-inner { width: 100%; max-width: 720px; }

/* fade/slide between screens */
.screen { animation: screen-in 0.45s var(--ease-out) both; }
@keyframes screen-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Progress ---------- */
.progress {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 720px;
  margin: 0 auto;
  padding: 22px 24px 0;
  width: 100%;
}
.progress-track {
  flex: 1;
  height: 8px;
  background: var(--red-200);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0;
  background: var(--red-500);
  border-radius: var(--radius-pill);
  transition: width 0.4s var(--ease-out);
}
.progress-label {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--grey-700);
  white-space: nowrap;
}

/* ---------- Question ---------- */
.q-kicker {
  font-family: var(--font-title);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 13px;
  color: var(--red-500);
  margin-bottom: 14px;
}
.q-title {
  font-family: var(--font-title);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(24px, 3.4vw, 34px);
  line-height: 1.12;
  margin: 0 0 8px;
}
.q-help { color: var(--grey-700); margin: 0 0 28px; font-size: 15px; }

/* answer cards */
.answers { display: grid; gap: 14px; }
.answers.cols-2 { grid-template-columns: 1fr 1fr; }
.answer {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  width: 100%;
  background: var(--white);
  border: 3px solid var(--white);
  border-radius: 14px;
  padding: 18px 20px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  color: var(--black);
  cursor: pointer;
  transition: border-color 0.18s linear, transform 0.18s var(--ease-out), box-shadow 0.18s linear;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.answer:hover { border-color: var(--red-500); transform: translateY(-2px); }
.answer.selected { border-color: var(--red-500); background: var(--red-100); }
.answer .emoji { font-size: 24px; line-height: 1; flex-shrink: 0; }
.answer .a-text strong { display: block; font-family: var(--font-title); font-weight: 700; text-transform: uppercase; font-size: 15px; color: var(--black); margin-bottom: 2px; }
.answer .a-text span { font-size: 14px; color: var(--grey-700); }

/* nav row */
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 32px;
  gap: 12px;
}
.link-back {
  background: none;
  border: none;
  font-family: var(--font-title);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 14px;
  color: var(--grey-700);
  cursor: pointer;
  letter-spacing: 0.03em;
}
.link-back:hover { color: var(--black); }
.link-back[hidden] { visibility: hidden; }

/* ---------- Intro / hero card ---------- */
.intro {
  text-align: center;
  background: var(--white);
  border: 5px solid var(--red-500);
  border-radius: 18px;
  padding: 48px 44px;
}
.intro .eyebrow { margin-bottom: 18px; }
.intro h1 { margin-bottom: 16px; }
.intro p.lede { font-size: 18px; color: var(--grey-700); max-width: 520px; margin: 0 auto 28px; }
.intro .meta { font-size: 13px; color: var(--grey-700); margin-top: 18px; }
.intro .meta strong { color: var(--red-500); }

@media (max-width: 640px) {
  .intro { padding: 34px 22px; }
  .answers.cols-2 { grid-template-columns: 1fr; }
}

/* ---------- Result ---------- */
.result { animation: screen-in 0.5s var(--ease-out) both; }
.result-card {
  background: var(--white);
  border: 5px solid var(--red-500);
  border-radius: 18px;
  padding: 40px 40px 36px;
}
.result-card h2 { margin-top: 0; }
.score-big {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 72px;
  line-height: 1;
  color: var(--red-500);
}
.score-big small { font-size: 26px; color: var(--grey-700); }

.profile-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 22px; }
.profile-tags .pill { background: var(--red-100); }

.action-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.action-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--red-100);
  border-left: 5px solid var(--red-500);
  padding: 14px 16px;
  border-radius: 0 10px 10px 0;
  font-size: 15px;
}
.action-list li .ico { flex-shrink: 0; font-size: 18px; line-height: 1.3; }
.action-list li strong { color: var(--black); }

.strengths { display: grid; gap: 10px; margin: 0 0 8px; }
.strength {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 15px;
}
.strength .ico { color: var(--green-300); font-weight: 700; flex-shrink: 0; }

.section-label {
  font-family: var(--font-title);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 15px;
  letter-spacing: 0.03em;
  margin: 26px 0 12px;
}

/* formation reco */
.reco {
  margin-top: 26px;
  border: 4px solid var(--blue-300);
  border-radius: 14px;
  background: var(--blue-100);
  padding: 22px 24px;
}
.reco .pill { background: var(--blue-300); color: var(--white); margin-bottom: 10px; }
.reco h3 { margin: 0 0 6px; }
.reco p { font-size: 15px; color: var(--grey-700); margin-bottom: 16px; }

/* email gate (freemium) */
.gate {
  margin-top: 26px;
  border: 4px dashed var(--red-500);
  border-radius: 14px;
  background: var(--red-100);
  padding: 26px 26px;
  text-align: center;
}
.gate h3 { margin: 0 0 6px; }
.gate p { font-size: 14px; color: var(--grey-700); margin-bottom: 18px; }
.gate form { display: flex; gap: 10px; max-width: 460px; margin: 0 auto; }
.gate input[type=email] {
  flex: 1;
  font-family: var(--font-body);
  font-size: 15px;
  padding: 14px 16px;
  border: 2px solid var(--red-500);
  border-radius: 8px;
  background: var(--white);
}
.gate input[type=email]:focus { outline: none; border-color: var(--red-700); }
.gate .gate-done {
  font-family: var(--font-title);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--green-300);
  font-size: 15px;
}
.gate .rgpd { font-size: 11px; color: var(--grey-700); margin: 14px 0 0; opacity: 0.85; }

.result-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 22px; }

/* ---------- Report: free version blocks ---------- */
.brief-echo {
  background: var(--blue-100);
  border-left: 5px solid var(--blue-300);
  padding: 14px 18px;
  border-radius: 0 10px 10px 0;
  font-style: italic;
  color: #1d3b66;
  margin: 0 0 22px;
  font-size: 15px;
}
.brief-echo .brief-label {
  display: block; font-style: normal; font-family: var(--font-title);
  font-weight: 700; text-transform: uppercase; font-size: 12px;
  letter-spacing: 0.03em; color: var(--blue-300); margin-bottom: 6px;
}
.prio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.prio-card { background: var(--red-100); border-radius: 12px; padding: 18px 18px; }
.prio-card h4 { font-family: var(--font-title); text-transform: uppercase; font-size: 16px; margin: 0 0 8px; color: var(--red-500); }
.prio-card p { font-size: 14px; color: var(--grey-700); margin: 0 0 8px; }
.prio-card .prio-action { color: var(--black); }
.report-teaser { margin-top: 22px; }
.teaser-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.teaser-list li { position: relative; padding-left: 26px; font-size: 15px; }
.teaser-list li::before { content: '🔒'; position: absolute; left: 0; top: 0; }
@media (max-width: 640px) { .prio-grid { grid-template-columns: 1fr; } }

/* ---------- Report: full version ---------- */
.full-mount { margin-top: 28px; }
.full-report { animation: screen-in 0.5s var(--ease-out) both; }
.fr-head { border-top: 3px solid var(--red-500); padding-top: 22px; margin-bottom: 8px; }
.fr-head .pill { background: var(--red-500); color: var(--white); margin-bottom: 10px; }
.fr-head h2 { margin: 0 0 6px; }
.fr-sub { color: var(--grey-700); font-size: 16px; }
.fr-section { padding: 22px 0; border-top: 1px solid var(--red-200); }
.fr-section h3 { font-family: var(--font-title); text-transform: uppercase; font-size: 20px; color: var(--black); margin: 0 0 14px; }
.fr-section p { font-size: 15px; }
.fr-note { font-size: 13px; color: var(--grey-700); font-style: italic; background: var(--yellow-300); padding: 10px 14px; border-radius: 8px; }

.axis-block { padding: 16px 0; border-bottom: 1px dashed var(--red-200); }
.axis-block:last-child { border-bottom: none; }
.axis-head { display: flex; justify-content: space-between; align-items: baseline; }
.axis-name { font-family: var(--font-title); font-weight: 700; text-transform: uppercase; font-size: 16px; }
.axis-score { font-family: var(--font-title); font-weight: 700; color: var(--red-500); }
.axis-bar { height: 8px; background: var(--red-200); border-radius: var(--radius-pill); overflow: hidden; margin: 8px 0 12px; }
.axis-bar-fill { height: 100%; background: var(--red-500); border-radius: var(--radius-pill); }
.axis-block p { font-size: 14px; margin: 0 0 8px; }
.axis-res-label { font-family: var(--font-title); font-weight: 600; text-transform: uppercase; font-size: 12px; letter-spacing: 0.03em; color: var(--grey-700); margin: 12px 0 6px; }

.res-list { list-style: none; padding: 0; margin: 0 0 6px; display: grid; gap: 10px; }
.res-list li { font-size: 14px; background: var(--red-100); border-radius: 10px; padding: 12px 14px; }
.res-list a { color: var(--red-500); font-weight: 700; }
.res-list .res-src { font-size: 12px; color: var(--grey-700); text-transform: uppercase; letter-spacing: 0.02em; margin-left: 6px; }
.res-list .res-note { font-size: 13px; color: var(--grey-700); }
.res-group-label { font-family: var(--font-title); font-weight: 700; text-transform: uppercase; font-size: 14px; margin: 18px 0 10px; }

.plan { display: grid; gap: 14px; }
.plan-step { background: var(--red-100); border-left: 5px solid var(--red-500); border-radius: 0 12px 12px 0; padding: 16px 18px; }
.plan-tag { display: inline-block; font-family: var(--font-title); font-weight: 700; text-transform: uppercase; background: var(--red-500); color: var(--white); border-radius: var(--radius-pill); padding: 4px 14px; font-size: 13px; margin-bottom: 10px; }
.plan-step ul { margin: 0; padding-left: 18px; font-size: 14px; }
.plan-step li { margin-bottom: 6px; }
.fr-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }

/* ---------- Open brief field (Piste A) ---------- */
.brief-field { margin: 22px 0 4px; }
.brief-field textarea {
  width: 100%; min-height: 120px; resize: vertical;
  font-family: var(--font-body); font-size: 15px; line-height: 1.5;
  padding: 16px 18px; border: 3px solid var(--white); border-radius: 14px;
  background: var(--white); box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.brief-field textarea:focus { outline: none; border-color: var(--red-500); }
.brief-field .optional { font-size: 13px; color: var(--grey-700); margin-top: 8px; }

@media (max-width: 640px) {
  .result-card { padding: 28px 22px; }
  .gate form { flex-direction: column; }
  .score-big { font-size: 60px; }
}

/* ---------- Concept B: CV dropzone + chat ---------- */
.dropzone {
  border: 4px dashed var(--red-500);
  border-radius: 16px;
  background: var(--red-100);
  padding: 44px 30px;
  text-align: center;
  cursor: pointer;
  transition: background 0.18s linear, border-color 0.18s linear;
}
.dropzone.drag { background: var(--red-200); border-color: var(--red-700); }
.dropzone .dz-ico { font-size: 40px; margin-bottom: 12px; }
.dropzone h3 { margin: 0 0 6px; }
.dropzone p { font-size: 14px; color: var(--grey-700); margin: 0; }
.dropzone .filename { font-family: var(--font-title); font-weight: 600; color: var(--red-500); text-transform: uppercase; }

.scan-loader { text-align: center; padding: 30px 0; }
.scan-loader .spinner {
  width: 56px; height: 56px; margin: 0 auto 18px;
  border: 5px solid var(--red-200);
  border-top-color: var(--red-500);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.scan-step { font-family: var(--font-title); font-weight: 600; text-transform: uppercase; font-size: 14px; color: var(--grey-700); letter-spacing: 0.03em; }

.chat { display: flex; flex-direction: column; gap: 14px; }
.bubble {
  max-width: 88%;
  padding: 14px 18px;
  border-radius: 16px;
  font-size: 15px;
  line-height: 1.5;
  animation: screen-in 0.4s var(--ease-out) both;
}
.bubble.bot { align-self: flex-start; background: var(--white); border: 2px solid var(--red-200); border-bottom-left-radius: 4px; }
.bubble.bot strong { color: var(--red-500); }
.bubble.user { align-self: flex-end; background: var(--red-500); color: var(--white); border-bottom-right-radius: 4px; }

/* ---------- Concept C: radar ---------- */
.scan-result { display: grid; grid-template-columns: 1.05fr 1fr; gap: 30px; align-items: center; }
.radar-wrap { text-align: center; }
.radar-wrap svg { width: 100%; max-width: 320px; margin: 0 auto; }
@media (max-width: 720px) { .scan-result { grid-template-columns: 1fr; } }

/* ---------- Hub ---------- */
.hub-hero { text-align: center; padding: 64px 24px 30px; }
.hub-hero .eyebrow { margin-bottom: 16px; }
.hub-hero h1 { max-width: 760px; margin: 0 auto 16px; }
.hub-hero p { max-width: 560px; margin: 0 auto; color: var(--grey-700); font-size: 18px; }
.hub-note {
  max-width: 720px; margin: 22px auto 0; font-size: 13px; color: var(--grey-700);
  background: var(--yellow-300); border-radius: 10px; padding: 12px 18px;
}
.concept-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
  max-width: 1080px; margin: 40px auto 70px; padding: 0 24px;
}
.concept-card {
  display: flex; flex-direction: column;
  background: var(--white);
  border: 5px solid var(--c, var(--red-500));
  border-radius: 16px;
  padding: 28px 26px;
  text-decoration: none;
  color: var(--black);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s linear;
}
.concept-card:hover { transform: translateY(-6px); box-shadow: 0 14px 30px rgba(0,0,0,0.12); }
.concept-card .badge {
  align-self: flex-start;
  font-family: var(--font-title); font-weight: 700; text-transform: uppercase;
  background: var(--c, var(--red-500)); color: var(--white);
  border-radius: var(--radius-pill); padding: 5px 16px; font-size: 13px; margin-bottom: 16px;
}
.concept-card h3 { margin: 0 0 8px; }
.concept-card .tagline { font-size: 14px; color: var(--grey-700); flex: 1; margin-bottom: 18px; }
.concept-card .go {
  font-family: var(--font-title); font-weight: 700; text-transform: uppercase;
  color: var(--c, var(--red-500)); font-size: 15px; display: inline-flex; gap: 8px; align-items: center;
}
.concept-card:hover .go .arrow { transform: translateX(5px); }
.concept-card .go .arrow { transition: transform 0.2s linear; }
@media (max-width: 860px) { .concept-grid { grid-template-columns: 1fr; } }
