/* ============================================================
   AKADEMI IA — PARCOURS.CSS
   Styles des 7 écrans de chaque parcours métier
   Dépend de base.css
   ============================================================ */

/* ── SYSTÈME DE SCREENS ── */
.screen {
  display: none;
  flex-direction: column;
  min-height: 100vh;
  animation: fadeIn 0.28s ease;
}

.screen.active {
  display: flex;
}

/* ── ÉCRAN 1 : LANDING MÉTIER ── */
.landing-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 52px 22px 20px;
}

.landing-logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--black);
}
.landing-logo span { color: var(--green); }

.landing-back {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--grey-500);
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--transition);
  text-decoration: none;
}
.landing-back:hover { color: var(--black); }

.landing-hero { padding: 8px 22px 0; }

.metier-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-light);
  color: var(--green-dark);
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid var(--green-mid);
}

.landing-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.6px;
  margin-bottom: 14px;
  color: var(--black);
}
.landing-title .accent { color: var(--green); }

.landing-sub {
  font-size: 15px;
  color: var(--grey-600);
  line-height: 1.65;
  margin-bottom: 24px;
}

/* Social proof */
.social-proof {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.avatars { display: flex; }

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2.5px solid var(--white);
  background: linear-gradient(135deg, var(--green), var(--blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  margin-left: -8px;
}
.avatar:first-child { margin-left: 0; }

.proof-text { font-size: 13px; color: var(--grey-500); line-height: 1.4; }
.proof-text strong { color: var(--black); }

/* Pain section */
.pain-section { padding: 0 22px 28px; }

.pain-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 18px;
  letter-spacing: -0.3px;
}

.pain-list { display: flex; flex-direction: column; }

.pain-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid var(--grey-200);
}
.pain-row:last-child { border-bottom: none; }

.pain-icon {
  font-size: 22px;
  width: 36px;
  flex-shrink: 0;
  text-align: center;
  padding-top: 1px;
}

.pain-text {
  font-size: 14px;
  color: var(--grey-700);
  line-height: 1.55;
}
.pain-text strong { color: var(--black); }

/* Master section */
.master-section { padding: 0 22px 28px; }

.master-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}

.master-sub {
  font-size: 14px;
  color: var(--grey-500);
  margin-bottom: 20px;
}

.master-list { display: flex; flex-direction: column; }

.master-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--grey-200);
}
.master-row:last-child { border-bottom: none; }

.master-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.master-info { flex: 1; min-width: 0; }
.master-name { font-size: 14px; font-weight: 700; margin-bottom: 1px; }
.master-detail { font-size: 12px; color: var(--grey-400); }
.master-emoji { font-size: 18px; flex-shrink: 0; }

/* CTA Section */
.cta-section { padding: 0 22px 44px; }

.price-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 16px;
}

.price-main {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  color: var(--black);
}
.price-sub { font-size: 13px; color: var(--grey-500); margin-top: 2px; }

.guarantee {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  color: var(--grey-400);
  margin-top: 14px;
}

/* ── ÉCRAN 2 : ONBOARDING ── */
.ob-topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 52px 22px 16px;
}

.ob-step-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--grey-500);
  white-space: nowrap;
}

.ob-body {
  flex: 1;
  padding: 28px 22px 0;
  overflow-y: auto;
}

.ob-emoji {
  font-size: 44px;
  margin-bottom: 16px;
  display: block;
}

.ob-question {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 6px;
  letter-spacing: -0.4px;
}

.ob-hint {
  font-size: 14px;
  color: var(--grey-500);
  margin-bottom: 28px;
  line-height: 1.5;
}

.ob-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ob-option {
  background: var(--white);
  border: 2px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 15px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all var(--transition);
  text-align: left;
  width: 100%;
}
.ob-option:hover { border-color: var(--green); background: var(--green-light); }
.ob-option.selected { border-color: var(--green); background: var(--green-light); }

.ob-opt-icon {
  width: 42px;
  height: 42px;
  background: var(--grey-100);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  transition: background var(--transition);
}
.ob-option.selected .ob-opt-icon { background: var(--green-mid); }

.ob-opt-label { font-size: 15px; font-weight: 600; color: var(--black); }
.ob-opt-sub   { font-size: 12px; color: var(--grey-500); margin-top: 2px; }

.ob-footer { padding: 20px 22px 40px; }

/* Résultat onboarding */
.ob-result {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 22px;
  text-align: center;
}

.ob-result-icon {
  width: 96px;
  height: 96px;
  background: var(--green-light);
  border: 3px solid var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  margin: 0 auto 22px;
}

.ob-result-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 10px;
}

.ob-result-sub {
  font-size: 14px;
  color: var(--grey-500);
  line-height: 1.65;
  margin-bottom: 24px;
}

.ob-result-plan {
  width: 100%;
  background: var(--grey-100);
  border-radius: var(--radius);
  padding: 18px;
  text-align: left;
  margin-bottom: 24px;
}

.plan-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--grey-200);
  font-size: 14px;
  color: var(--grey-700);
}
.plan-row:last-child { border-bottom: none; }
.plan-icon { font-size: 16px; width: 22px; text-align: center; flex-shrink: 0; }

/* ── ÉCRAN 3 : DASHBOARD ── */
#screen-dashboard {
  background: var(--off-white);
  padding-bottom: 90px;
}

.dash-header {
  background: var(--white);
  padding: 52px 22px 20px;
  border-bottom: 1px solid var(--grey-200);
}

.dash-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.dash-greeting { font-size: 13px; color: var(--grey-400); margin-bottom: 3px; }

.dash-name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.dash-notif {
  width: 40px;
  height: 40px;
  background: var(--grey-100);
  border: none;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition);
}
.dash-notif:hover { background: var(--grey-200); }

/* Streak */
.streak-card {
  background: linear-gradient(135deg, #fff8ed, #fff3e0);
  border: 1.5px solid var(--gold-mid);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.streak-info { flex: 1; }

.streak-num {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  color: var(--gold);
}
.streak-label { font-size: 12px; color: var(--gold-dark); }

.streak-days { display: flex; gap: 5px; }

.streak-day {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--white);
  border: 1.5px solid var(--gold-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--gold-dark);
}
.streak-day.done  { background: var(--gold); border-color: var(--gold); color: var(--white); }
.streak-day.today { border-color: var(--gold); color: var(--gold); }

/* Section label */
.dash-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--grey-400);
  padding: 20px 22px 10px;
}

/* Module featured */
.featured-module {
  margin: 0 16px 12px;
  background: var(--white);
  border: 2.5px solid var(--green);
  border-radius: var(--radius-lg);
  padding: 20px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-green);
  transition: transform var(--transition);
}
.featured-module:hover { transform: scale(1.01); }

.featured-module-ribbon {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(to right, var(--green), #00e8a0);
}

.fm-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.fm-icon { font-size: 34px; }

.fm-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 5px;
  letter-spacing: -0.2px;
}
.fm-desc { font-size: 13px; color: var(--grey-500); line-height: 1.5; margin-bottom: 16px; }

.fm-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--grey-500);
  margin-bottom: 6px;
}
.fm-progress-label strong { color: var(--green); }

/* Grille modules */
.modules-grid {
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.module-card {
  background: var(--white);
  border: 1.5px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 15px;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}
.module-card:hover { border-color: var(--grey-300); box-shadow: var(--shadow-sm); }
.module-card.locked { opacity: 0.48; cursor: default; }
.module-card.locked:hover { border-color: var(--grey-200); box-shadow: none; }

.module-card-icon  { font-size: 26px; margin-bottom: 8px; display: block; }
.module-card-title { font-size: 13px; font-weight: 700; margin-bottom: 3px; line-height: 1.3; }
.module-card-meta  { font-size: 11px; color: var(--grey-400); }
.module-card-lock  { position: absolute; top: 10px; right: 10px; font-size: 13px; opacity: 0.3; }

/* Autres métiers */
.other-metiers {
  margin: 0 16px;
  background: var(--white);
  border: 1.5px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: 18px;
}

.other-metiers-title {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 4px;
}
.other-metiers-sub { font-size: 13px; color: var(--grey-500); margin-bottom: 14px; }

.om-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.om-item {
  background: var(--grey-100);
  border-radius: var(--radius-sm);
  padding: 11px 8px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  border: 1.5px solid transparent;
}
.om-item:hover  { background: var(--green-light); border-color: var(--green-mid); }
.om-item.active { background: var(--green-light); border-color: var(--green); }

.om-icon  { font-size: 20px; margin-bottom: 4px; display: block; }
.om-label { font-size: 10px; font-weight: 600; color: var(--grey-700); line-height: 1.3; }
.om-price { font-size: 10px; color: var(--green); font-weight: 700; margin-top: 2px; }

/* Bottom nav */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: var(--white);
  border-top: 1px solid var(--grey-200);
  display: flex;
  padding: 10px 0 24px;
  z-index: 100;
}

.nav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 0;
  opacity: 0.35;
  border: none;
  background: none;
  cursor: pointer;
  transition: opacity var(--transition);
}
.nav-btn.active { opacity: 1; }

.nav-btn-icon  { font-size: 22px; }
.nav-btn-label { font-size: 10px; font-weight: 600; color: var(--black); }
.nav-btn.active .nav-btn-label { color: var(--green); }

.nav-btn-dot {
  width: 4px;
  height: 4px;
  background: var(--green);
  border-radius: 50%;
  display: none;
}
.nav-btn.active .nav-btn-dot { display: block; }

/* ── ÉCRAN 4 : LEÇON ── */
.lesson-topbar {
  background: var(--white);
  padding: 52px 18px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--grey-200);
  position: sticky;
  top: 0;
  z-index: 10;
}

.lesson-topbar-info { flex: 1; min-width: 0; }
.lesson-topbar-label { font-size: 11px; color: var(--grey-400); margin-bottom: 5px; font-weight: 600; }

.lesson-step-badge {
  background: var(--grey-100);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--grey-600);
  white-space: nowrap;
  flex-shrink: 0;
}

.lesson-scroll { flex: 1; overflow-y: auto; }

.lesson-content { padding: 22px 22px 0; }

.lesson-module-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--blue-light);
  color: var(--blue);
  padding: 5px 13px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 14px;
}

.lesson-title {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 10px;
  letter-spacing: -0.4px;
}

.lesson-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}
.lesson-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--grey-400);
}

/* Player audio */
.audio-player {
  background: var(--grey-100);
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  padding: 13px 15px;
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 24px;
  cursor: pointer;
  transition: all var(--transition);
}
.audio-player:hover, .audio-player.playing {
  border-color: var(--green);
  background: var(--green-light);
}

.audio-play-btn {
  width: 44px;
  height: 44px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 16px;
  flex-shrink: 0;
  transition: transform var(--transition);
}
.audio-player:hover .audio-play-btn { transform: scale(1.05); }

.audio-info { flex: 1; }
.audio-title { font-size: 14px; font-weight: 700; margin-bottom: 1px; }
.audio-sub   { font-size: 12px; color: var(--grey-400); }

.audio-waves { display: flex; gap: 3px; align-items: center; height: 22px; }

.wave-bar {
  width: 3px;
  border-radius: 2px;
  background: var(--grey-300);
  transition: background var(--transition);
}
.audio-player.playing .wave-bar {
  background: var(--green);
  animation: waveBounce 0.8s ease-in-out infinite alternate;
}
.wave-bar:nth-child(1) { height: 8px;  animation-delay: 0.00s; }
.wave-bar:nth-child(2) { height: 15px; animation-delay: 0.12s; }
.wave-bar:nth-child(3) { height: 10px; animation-delay: 0.24s; }
.wave-bar:nth-child(4) { height: 19px; animation-delay: 0.08s; }
.wave-bar:nth-child(5) { height: 13px; animation-delay: 0.16s; }
.wave-bar:nth-child(6) { height: 17px; animation-delay: 0.28s; }
.wave-bar:nth-child(7) { height: 9px;  animation-delay: 0.04s; }

/* Texte leçon */
.lesson-lead {
  font-size: 15px;
  line-height: 1.8;
  color: var(--grey-700);
  margin-bottom: 20px;
}

.lesson-h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--black);
}

/* Liste étapes */
.step-list { list-style: none; margin-bottom: 22px; }

.step-item {
  display: flex;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--grey-200);
}
.step-item:last-child { border-bottom: none; }

.step-num {
  width: 28px;
  height: 28px;
  background: var(--green);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.step-title { font-size: 15px; font-weight: 700; margin-bottom: 3px; }
.step-text  { font-size: 13px; color: var(--grey-500); line-height: 1.55; }

/* Comparaison */
.compare-box {
  background: var(--grey-100);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 22px;
}

.compare-header {
  padding: 9px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--grey-200);
}
.compare-header.bad  { background: var(--red-light);   color: var(--red); }
.compare-header.good { background: var(--green-light); color: var(--green-dark); }

.compare-content {
  padding: 13px 15px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--grey-700);
}
.compare-content em { color: var(--green-dark); font-style: normal; font-weight: 600; }

/* Footer leçon */
.lesson-footer {
  padding: 14px 22px 34px;
  border-top: 1px solid var(--grey-200);
  background: var(--white);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-skip {
  background: none;
  border: none;
  color: var(--grey-400);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 10px;
  transition: color var(--transition);
  text-align: center;
}
.btn-skip:hover { color: var(--black); }

/* ── ÉCRAN 5 : PLAYGROUND ── */
.pg-topbar {
  background: var(--white);
  padding: 52px 22px 14px;
  border-bottom: 1px solid var(--grey-200);
}

.pg-header-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.pg-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  flex: 1;
  letter-spacing: -0.2px;
}

.pg-live-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--green-light);
  color: var(--green-dark);
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid var(--green-mid);
}

.live-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
}

.pg-sub { font-size: 13px; color: var(--grey-500); }

/* Onglets outils */
.tool-tabs {
  display: flex;
  gap: 8px;
  padding: 12px 22px;
  border-bottom: 1px solid var(--grey-200);
  overflow-x: auto;
  scrollbar-width: none;
}
.tool-tabs::-webkit-scrollbar { display: none; }

.tool-tab {
  padding: 7px 15px;
  border-radius: 20px;
  border: 1.5px solid var(--grey-200);
  background: var(--white);
  color: var(--grey-500);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
  flex-shrink: 0;
}
.tool-tab.active {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}

/* Prompts suggérés */
.starters-wrap {
  padding: 11px 22px;
  background: var(--grey-50);
  border-bottom: 1px solid var(--grey-200);
}

.starters-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--grey-400);
  margin-bottom: 8px;
}

.starters-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.starters-row::-webkit-scrollbar { display: none; }

.starter-chip {
  padding: 7px 13px;
  background: var(--white);
  border: 1.5px solid var(--grey-200);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--black);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all var(--transition);
}
.starter-chip:hover {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-light);
}

/* Zone de chat */
.chat-area {
  flex: 1;
  overflow-y: auto;
  padding: 14px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.msg {
  display: flex;
  gap: 10px;
  animation: fadeInFast 0.25s ease;
}
.msg.user { flex-direction: row-reverse; }

.msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.msg.ai   .msg-avatar { background: var(--green-light); }
.msg.user .msg-avatar { background: var(--grey-100); }

.msg-bubble {
  max-width: 80%;
  padding: 11px 14px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.65;
}
.msg.ai   .msg-bubble { background: var(--grey-100); border-bottom-left-radius: 4px; color: var(--black); }
.msg.user .msg-bubble { background: var(--black); color: var(--white); border-bottom-right-radius: 4px; font-weight: 500; }

/* Typing indicator */
.typing-indicator {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 2px 0;
}

.typing-dot {
  width: 7px;
  height: 7px;
  background: var(--grey-400);
  border-radius: 50%;
  animation: blink 1.2s ease-in-out infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

/* CTA après chat */
.pg-next-cta {
  background: var(--green-light);
  border: 1.5px solid var(--green-mid);
  border-radius: var(--radius);
  padding: 15px;
  display: none;
  animation: fadeInFast 0.3s ease;
}
.pg-next-cta.show { display: block; }

.pg-next-title { font-weight: 700; font-size: 14px; margin-bottom: 4px; color: var(--black); }
.pg-next-sub   { font-size: 13px; color: var(--grey-500); margin-bottom: 11px; }

/* Input chat */
.chat-input-bar {
  padding: 11px 22px 30px;
  border-top: 1px solid var(--grey-200);
  background: var(--white);
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.chat-textarea {
  flex: 1;
  background: var(--grey-100);
  border: 1.5px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 11px 14px;
  color: var(--black);
  font-family: var(--font-body);
  font-size: 14px;
  resize: none;
  outline: none;
  max-height: 100px;
  line-height: 1.5;
  transition: border-color var(--transition), background var(--transition);
}
.chat-textarea:focus { border-color: var(--green); background: var(--white); }
.chat-textarea::placeholder { color: var(--grey-400); }

.chat-send-btn {
  width: 44px;
  height: 44px;
  background: var(--green);
  border: none;
  border-radius: 13px;
  color: var(--white);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition);
}
.chat-send-btn:hover { background: var(--green-dark); transform: scale(0.97); }

/* ── ÉCRAN 6 : QUIZ ── */
.quiz-topbar {
  padding: 52px 22px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--grey-200);
  background: var(--white);
}

.quiz-body {
  flex: 1;
  padding: 26px 22px 0;
  overflow-y: auto;
}

.quiz-qnum {
  font-size: 11px;
  font-weight: 700;
  color: var(--grey-400);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.quiz-question {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 24px;
  letter-spacing: -0.3px;
}

.quiz-options { display: flex; flex-direction: column; gap: 10px; }

.quiz-option {
  background: var(--white);
  border: 2px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 15px 17px;
  display: flex;
  align-items: center;
  gap: 13px;
  cursor: pointer;
  transition: all var(--transition);
  text-align: left;
  width: 100%;
}
.quiz-option:hover    { border-color: var(--grey-400); background: var(--grey-50); }
.quiz-option.selected { border-color: var(--blue);  background: var(--blue-light); }
.quiz-option.correct  { border-color: var(--green); background: var(--green-light); }
.quiz-option.wrong    { border-color: var(--red);   background: var(--red-light); }

.quiz-option-letter {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--grey-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--grey-600);
  flex-shrink: 0;
  transition: all var(--transition);
}
.quiz-option.selected .quiz-option-letter { background: var(--blue);  color: var(--white); }
.quiz-option.correct  .quiz-option-letter { background: var(--green); color: var(--white); }
.quiz-option.wrong    .quiz-option-letter { background: var(--red);   color: var(--white); }

.quiz-option-text { font-size: 14px; font-weight: 500; line-height: 1.4; color: var(--black); }

.quiz-feedback {
  margin-top: 16px;
  padding: 13px 15px;
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.65;
  display: none;
  animation: fadeInFast 0.3s ease;
}
.quiz-feedback.show    { display: block; }
.quiz-feedback.correct { background: var(--green-light); color: #004d32; border: 1px solid var(--green-mid); }
.quiz-feedback.wrong   { background: var(--red-light);   color: #8b0016; border: 1px solid var(--red-mid); }

.quiz-footer {
  padding: 14px 22px 34px;
  border-top: 1px solid var(--grey-200);
  background: var(--white);
}

/* ── ÉCRAN 7 : COMPLÉTION ── */
#screen-complete {
  background: var(--white);
  align-items: center;
  justify-content: center;
  padding: 40px 22px;
  text-align: center;
}

.complete-confetti {
  font-size: 36px;
  letter-spacing: 8px;
  margin-bottom: 18px;
}

.complete-icon {
  width: 100px;
  height: 100px;
  background: var(--green-light);
  border: 3px solid var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 46px;
  margin: 0 auto 20px;
  animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 40px rgba(0,184,122,0.2);
}

.complete-title { font-size: 26px; font-weight: 800; margin-bottom: 10px; }
.complete-sub { font-size: 14px; color: var(--grey-500); line-height: 1.65; margin-bottom: 28px; max-width: 300px; }

.xp-card {
  width: 100%;
  background: linear-gradient(135deg, #fff8ed, #fff3e0);
  border: 1.5px solid var(--gold-mid);
  border-radius: var(--radius);
  padding: 15px 17px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  text-align: left;
}
.xp-card-icon { font-size: 26px; flex-shrink: 0; }
.xp-card-label { font-size: 12px; color: var(--gold-dark); margin-bottom: 2px; }
.xp-card-value {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  color: var(--gold);
}

.livrables-card {
  width: 100%;
  background: var(--grey-100);
  border-radius: var(--radius);
  padding: 15px 17px;
  text-align: left;
  margin-bottom: 24px;
}

.livrables-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--grey-400);
  margin-bottom: 10px;
}

.livrable-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--black);
  font-weight: 600;
  padding: 7px 0;
  border-bottom: 1px solid var(--grey-200);
}
.livrable-item:last-child { border-bottom: none; }
.livrable-item::before { content: '✓'; color: var(--green); font-weight: 800; flex-shrink: 0; }

/* ── Mission Card (Objectif + Livrable + Outil IA) ── */
.lesson-missions-intro { margin-bottom:20px; }
.mission-card { background:linear-gradient(135deg,#0a1628,#0e2035); border-radius:16px; padding:20px; margin-bottom:20px; }
.mc-header { font-size:10px; font-weight:700; letter-spacing:1.5px; text-transform:uppercase; color:rgba(255,255,255,0.4); margin-bottom:8px; margin-top:16px; }
.mc-header:first-child { margin-top:0; }
.mc-objectif { font-size:14px; color:rgba(255,255,255,0.85); line-height:1.55; }
.mc-livrables { display:flex; flex-direction:column; gap:6px; }
.mc-livrable-item { font-size:13px; color:#7fffb4; font-weight:600; }
.mc-outils { display:flex; flex-direction:column; gap:8px; }
.mc-outil-row { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.mc-outil-badge { padding:4px 10px; border-radius:20px; font-size:12px; font-weight:700; }
.mc-outil-primary { background:rgba(0,184,122,0.15); color:#7fffb4; border:1px solid rgba(0,184,122,0.3); }
.mc-outil-secondary { background:rgba(61,126,255,0.15); color:#a8c4ff; border:1px solid rgba(61,126,255,0.3); }
.mc-outil-note { font-size:12px; color:rgba(255,255,255,0.5); flex:1; }
.mc-outil-link { font-size:12px; color:#7fffb4; font-weight:700; text-decoration:none; padding:3px 8px; border:1px solid rgba(127,255,180,0.3); border-radius:10px; white-space:nowrap; }
.mc-atelier { font-size:13px; color:rgba(255,255,255,0.75); line-height:1.5; }
.mc-atelier strong { color:#7fffb4; }

/* ── Portfolio IA (partagé) ── */
.portfolio-count-bar { display:flex; justify-content:space-between; align-items:center; padding:12px 0 8px; }
.portfolio-count-label { font-size:13px; font-weight:700; color:var(--dark); }
.portfolio-count-val { font-size:13px; font-weight:700; color:var(--green); }
.portfolio-item { background:var(--white); border:1.5px solid var(--grey-100); border-radius:14px; padding:14px 16px; margin-bottom:10px; }
.portfolio-item-header { display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:4px; }
.portfolio-item-title { font-size:14px; font-weight:700; color:var(--dark); }
.portfolio-item-meta { font-size:11px; color:var(--grey-400); }
.portfolio-item-outil { font-size:12px; color:var(--green); font-weight:600; margin-bottom:10px; }
.portfolio-item-actions { display:flex; gap:6px; flex-wrap:wrap; }
.portfolio-btn { padding:6px 12px; border-radius:20px; font-size:11px; font-weight:700; border:1.5px solid; cursor:pointer; }
.portfolio-btn-view { background:var(--off-white); color:var(--dark); border-color:var(--grey-200); }
.portfolio-btn-copy { background:#e6f9f1; color:#008f5e; border-color:#99e8c9; }
.portfolio-btn-export { background:#edf3ff; color:#3d7eff; border-color:#a8c4ff; }
.portfolio-disclaimer { font-size:11px; color:var(--grey-400); padding:8px 0 4px; line-height:1.5; }
.portfolio-empty { background:var(--white); border:1.5px solid var(--grey-100); border-radius:16px; padding:24px 16px; text-align:center; }
.portfolio-empty-title { font-size:15px; font-weight:800; color:var(--dark); margin-bottom:8px; }
.portfolio-empty-sub { font-size:13px; color:var(--grey-600); line-height:1.5; margin-bottom:20px; }
.portfolio-chart-wrap { display:flex; align-items:center; justify-content:center; gap:20px; flex-wrap:wrap; }
.portfolio-chart-stats { display:flex; flex-direction:column; gap:10px; }
.portfolio-stat { display:flex; flex-direction:column; align-items:center; gap:2px; }
.portfolio-stat-val { font-size:22px; font-weight:800; font-family:var(--font-display); }
.portfolio-stat-label { font-size:11px; color:var(--grey-400); font-weight:600; }
@keyframes fadeInOut { 0%{opacity:0;transform:translateX(-50%) translateY(10px)} 15%{opacity:1;transform:translateX(-50%) translateY(0)} 80%{opacity:1} 100%{opacity:0} }

/* ── Mission card accordéon ── */
.mission-accordion {
  background: linear-gradient(135deg, #0a1628, #0e2035);
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
  cursor: pointer;
}
.mission-accordion-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
}
.ma-icon { font-size: 16px; }
.ma-title {
  flex: 1;
  font-size: 13px;
  font-weight: 700;
  color: #7fffb4;
  letter-spacing: 0.3px;
}
.ma-chevron {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  transition: transform 0.25s ease;
}
.mission-accordion-body {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.25s ease;
  padding: 0 16px;
}
.mission-accordion.open .mission-accordion-body {
  padding: 0 16px 16px;
}

/* ── Portfolio scroll zone ── */
.portfolio-scroll-zone {
  max-height: 280px;
  overflow-y: auto;
  border-radius: 12px;
  -webkit-overflow-scrolling: touch;
}

/* ── Portfolio vide hint ── */
.portfolio-empty-hint {
  background: #f8f9fb;
  border: 1.5px dashed #dde0eb;
  border-radius: 12px;
  padding: 16px;
  font-size: 13px;
  color: #8a8ea8;
  line-height: 1.6;
  text-align: center;
}
.portfolio-empty-hint strong { color: #00b87a; }

/* ── Bouton i info parcours ── */
.parcours-info-btn {
  position: fixed;
  bottom: 80px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid rgba(0,184,122,0.3);
  background: rgba(255,255,255,0.95);
  color: #0a1628;
  font-size: 15px;
  font-style: italic;
  font-weight: 700;
  font-family: Georgia, serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
  text-decoration: none;
  transition: all 0.2s;
}
.parcours-info-btn:hover {
  background: #00b87a;
  color: white;
  border-color: #00b87a;
}

/* ── Portfolio bloc contour ── */
.portfolio-block {
  background: var(--white);
  border: 1.5px solid var(--grey-100);
  border-radius: 16px;
  padding: 16px;
}
.portfolio-block-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.portfolio-block-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
}

/* ── Bouton i inline (à droite du titre parcours) ── */
.parcours-info-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid rgba(0,184,122,0.4);
  background: rgba(0,184,122,0.08);
  color: #00b87a;
  font-size: 12px;
  font-style: italic;
  font-weight: 700;
  font-family: Georgia, serif;
  text-decoration: none;
  flex-shrink: 0;
  transition: all 0.2s;
}
.parcours-info-inline:hover {
  background: #00b87a;
  color: white;
  border-color: #00b87a;
}
