/* ========================================
   Coach IA JCDecaux — Charte UI WP0
   Tokens JCDecaux (sources publiques Brandfetch/jcdecaux.fr)
   ======================================== */

:root {
  --jcd-navy: #00335B;
  --jcd-teal: #22B6BB;
  --jcd-teal-soft: #E6F7F8;
  --jcd-teal-deep: #0E7C80;
  --jcd-sand: #F8D59C;
  --jcd-sand-soft: #FDF3E1;
  --bg: #F7F9FB;
  --card: #FFFFFF;
  --text: #0F172A;
  --text-2: #5B6B7C;
  --border: #E3E8EE;
  --good: #22B6BB;
  --good-bg: #E6F7F8;
  --ok: #D97706;
  --ok-bg: #FEF3E2;
  --bad: #DC2626;
  --bad-bg: #FDECEC;
  --radius-card: 12px;
  --radius-input: 8px;
  --font: "Plus Jakarta Sans", "DM Sans", system-ui, sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,.08);
  --transition: 0.18s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--jcd-teal-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { display: block; }
button { font-family: var(--font); cursor: pointer; }
input, select, textarea { font-family: var(--font); }

/* ── Layout ── */
.container { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 720px; margin: 0 auto; padding: 0 20px; }
.main-content { flex: 1; padding: 32px 0 64px; }

/* ── Header ── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--jcd-navy);
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.header-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}
.brand-wordmark {
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff;
  letter-spacing: -0.02em;
}
.brand-separator {
  color: rgba(255,255,255,0.3);
  font-weight: 300;
  font-size: 1rem;
}
.brand-app {
  font-weight: 500;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
}
/* Legacy classes kept for other templates */
.brand-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--jcd-teal); flex-shrink: 0;
}
.brand-name { font-weight: 700; font-size: 1rem; color: #fff; }
.brand-client { font-size: 0.85rem; font-weight: 500; color: var(--jcd-teal); }
.header-nav { display: flex; align-items: center; gap: 8px; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.8);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-input);
  transition: background var(--transition);
}
.nav-link:hover { background: rgba(255,255,255,.1); color: #fff; text-decoration: none; }
.nav-link svg { width: 16px; height: 16px; }
.back-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.8);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-input);
  transition: background var(--transition);
}
.back-link:hover { background: rgba(255,255,255,.1); color: #fff; text-decoration: none; }
.back-link svg { width: 16px; height: 16px; }

/* ── Footer ── */
.footer {
  background: var(--jcd-navy);
  color: rgba(255,255,255,0.65);
  font-size: 0.8rem;
  padding: 16px 0;
}
.footer-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer strong { color: var(--jcd-teal); }
.footer a { color: rgba(255,255,255,0.65); }
.footer a:hover { color: #fff; }
.footer-minimal { background: transparent; border-top: 1px solid var(--border); }
.footer-minimal .footer-inner { color: var(--text-2); }
.footer-minimal a { color: var(--text-2); }
.footer-minimal strong { color: var(--jcd-teal-deep); }

/* ── Cards ── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-input);
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1.4;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-primary {
  background: #00325B;
  color: #fff;
}
.btn-primary:hover { background: #002244; color: #fff; text-decoration: none; }
.btn-secondary {
  background: #E6F7F8;
  color: #0E7C80;
  border: 1.5px solid #BFE9EB;
}
.btn-secondary:hover { background: #d0f0f2; color: #0E7C80; text-decoration: none; }
.btn-danger {
  background: var(--bad-bg);
  color: var(--bad);
  border: 1.5px solid var(--bad);
}
.btn-danger:hover { background: var(--bad); color: #fff; }
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* ── Forms ── */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-input);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--card);
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--jcd-teal);
  box-shadow: 0 0 0 3px rgba(34,182,187,.12);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-section { margin-bottom: 28px; }
.form-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--jcd-navy);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* ── Alerts ── */
.alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-input);
  margin-bottom: 20px;
  font-size: 0.9rem;
}
.alert svg { width: 18px; height: 18px; flex-shrink: 0; }
.alert-error { background: var(--bad-bg); color: var(--bad); border: 1px solid rgba(220,38,38,.2); }
.alert-success { background: var(--good-bg); color: var(--jcd-teal-deep); border: 1px solid rgba(34,182,187,.2); }
.alert-info { background: var(--jcd-teal-soft); color: var(--jcd-teal-deep); }

/* ── Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}
.badge svg { width: 12px; height: 12px; }
.badge-good { background: var(--good-bg); color: var(--jcd-teal-deep); }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-bad { background: var(--bad-bg); color: var(--bad); }

/* ── Icons inline ── */
.icon-inline { display: inline-block; vertical-align: -3px; width: 18px; height: 18px; }
.text-teal { color: var(--jcd-teal); }
.text-2 { color: var(--text-2); }
.text-muted { color: var(--border); }

/* ── Page headers ── */
.page-header { margin-bottom: 28px; }
.page-header h1 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--jcd-navy);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.page-subtitle { color: var(--text-2); margin-top: 6px; font-size: 0.95rem; }

/* ── Section titles ── */
.section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--jcd-navy);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Access page ── */
.page-access { background: var(--bg); }
.access-container {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
}
.access-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-md);
}
.access-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.access-tagline {
  font-size: 0.9rem;
  color: var(--text-2);
  margin-bottom: 28px;
  line-height: 1.5;
}
.access-form { display: flex; flex-direction: column; gap: 0; }

/* ── Persona grid ── */
.persona-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.persona-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 10px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-card);
  cursor: pointer;
  transition: all var(--transition);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-2);
}
.persona-card svg { width: 22px; height: 22px; }
.persona-card input[type="radio"] { display: none; }
.persona-card:hover { border-color: var(--jcd-teal); color: var(--jcd-teal-deep); }
.persona-card.selected {
  border-color: var(--jcd-teal);
  background: var(--jcd-teal-soft);
  color: var(--jcd-teal-deep);
}

/* ── Hub page ── */
.hub-greeting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 0 20px;
}
.hub-greeting h1 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--jcd-navy);
  letter-spacing: -0.02em;
}
.greeting-sub { color: var(--text-2); margin-top: 4px; }
.situation-badge {
  background: var(--jcd-navy);
  color: #fff;
  border-radius: var(--radius-card);
  padding: 12px 18px;
  text-align: right;
  flex-shrink: 0;
}
.situation-label { display: block; font-size: 0.8rem; opacity: 0.7; }
.situation-date { font-weight: 700; }

/* ── Timeline ── */
.timeline-section { overflow: hidden; }
.timeline-track {
  display: flex;
  align-items: flex-start;
  position: relative;
  margin-bottom: 12px;
}
.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  position: relative;
}
.timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--border);
  border: 2px solid var(--border);
  transition: all var(--transition);
  z-index: 1;
}
.timeline-step.done .timeline-dot { background: var(--jcd-teal); border-color: var(--jcd-teal); }
.timeline-step.active .timeline-dot {
  background: var(--jcd-navy);
  border-color: var(--jcd-navy);
  box-shadow: 0 0 0 4px rgba(0,51,91,.12);
}
.dot-star { border-radius: 3px !important; }
.timeline-label {
  font-size: 0.75rem;
  color: var(--text-2);
  text-align: center;
  line-height: 1.3;
}
.timeline-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin-top: 7px;
  align-self: flex-start;
  transition: background var(--transition);
}
.timeline-line.done { background: var(--jcd-teal); }
.timeline-progress {
  background: var(--bg);
  border-radius: 99px;
  height: 4px;
  margin-top: 8px;
  overflow: hidden;
}
.timeline-bar {
  height: 100%;
  background: var(--jcd-teal);
  border-radius: 99px;
  transition: width 0.4s ease;
}

/* ── Actions grid ── */
.actions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.action-card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-card);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all var(--transition);
}
.action-card.done { border-color: var(--jcd-teal); background: var(--jcd-teal-soft); }
.action-card.locked { opacity: 0.65; }
.action-card-header { display: flex; align-items: flex-start; gap: 12px; }
.action-card-header > div:nth-child(2) { flex: 1; }
.action-card-header h3 { font-size: 1rem; font-weight: 700; color: var(--jcd-navy); margin-bottom: 2px; }
.action-status { font-size: 0.8rem; color: var(--text-2); }
.action-desc { font-size: 0.85rem; color: var(--text-2); line-height: 1.5; flex: 1; }
.action-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.action-icon svg { width: 20px; height: 20px; }
.action-icon-teal { background: var(--jcd-teal-soft); color: var(--jcd-teal-deep); }
.action-icon-navy { background: rgba(0,51,91,.08); color: var(--jcd-navy); }
.action-icon-sand { background: var(--jcd-sand-soft); color: #92680A; }

/* ── Priority section ── */
.priority-section {}
.priority-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.priority-header h2 { font-size: 1rem; font-weight: 700; color: var(--jcd-navy); }
.priority-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 99px;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 10px;
}
.priority-badge svg { width: 16px; height: 16px; }
.priority-good { background: var(--good-bg); color: var(--jcd-teal-deep); }
.priority-ok { background: var(--ok-bg); color: var(--ok); }
.priority-bad { background: var(--bad-bg); color: var(--bad); }
.priority-desc { color: var(--text-2); font-size: 0.9rem; margin-bottom: 12px; }
.score-evolution { display: flex; align-items: center; gap: 10px; font-size: 0.875rem; }
.score-label { color: var(--text-2); }
.score-value { font-weight: 700; color: var(--text); }
.score-delta { font-weight: 700; }
.score-delta.positive { color: var(--good); }

/* ── Fiche section ── */
.fiche-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.fiche-header h2 { font-size: 1rem; font-weight: 700; color: var(--jcd-navy); }

/* ── Situation form ── */
.situation-form {}
.situation-desc-box {
  background: var(--jcd-teal-soft);
  border: 1px solid rgba(34,182,187,.25);
  border-radius: var(--radius-input);
  padding: 12px 16px;
  margin-top: -12px;
  margin-bottom: 20px;
  font-size: 0.875rem;
  color: var(--jcd-teal-deep);
}

/* ── Admin ── */
.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.admin-meta { display: flex; align-items: center; gap: 16px; color: var(--text-2); font-size: 0.8rem; margin-top: 4px; }
.admin-meta code { background: var(--bg); padding: 2px 6px; border-radius: 4px; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.stat-item { text-align: center; }
.stat-value { display: block; font-size: 1.75rem; font-weight: 800; color: var(--jcd-navy); }
.stat-label { font-size: 0.75rem; color: var(--text-2); }
.action-list { display: flex; flex-direction: column; gap: 10px; }
.table-wrapper { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.data-table th {
  text-align: left;
  padding: 8px 12px;
  color: var(--text-2);
  font-size: 0.75rem;
  font-weight: 600;
  border-bottom: 2px solid var(--border);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.data-table td { padding: 10px 12px; border-bottom: 1px solid var(--bg); vertical-align: middle; }
.data-table tr:hover td { background: var(--bg); }

/* ── Profile page ── */
.profile-card { display: flex; align-items: center; gap: 20px; }
.profile-avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--jcd-teal-soft); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.profile-avatar svg { width: 32px; height: 32px; color: var(--jcd-teal-deep); }
.profile-info h2 { font-size: 1.25rem; font-weight: 700; color: var(--jcd-navy); }
.persona-tag {
  display: inline-block;
  background: var(--jcd-sand-soft);
  color: #92680A;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 99px;
  margin-top: 4px;
}

/* ── Consents ── */
.consent-list { display: flex; flex-direction: column; gap: 12px; }
.consent-item { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; }
.consent-item > span:nth-child(2) { flex: 1; }
.consent-status { font-size: 0.8rem; font-weight: 600; padding: 3px 10px; border-radius: 99px; }
.consent-status.granted { background: var(--good-bg); color: var(--jcd-teal-deep); }
.consent-status.revoked { background: var(--bg); color: var(--text-2); }

/* ── Legal page ── */
.legal-content { line-height: 1.7; }
.legal-section { margin-bottom: 28px; }
.legal-section:last-child { margin-bottom: 0; }
.legal-section h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--jcd-navy);
  margin-bottom: 10px;
}
.legal-section h3 { font-size: 0.9rem; font-weight: 700; color: var(--text); margin: 16px 0 8px; }
.legal-section p, .legal-section li { font-size: 0.9rem; color: var(--text-2); margin-bottom: 8px; }
.legal-section ul { padding-left: 20px; }
.legal-section li { margin-bottom: 4px; }
.legal-highlight {
  display: flex;
  gap: 12px;
  background: var(--jcd-teal-soft);
  border: 1px solid rgba(34,182,187,.25);
  border-radius: var(--radius-input);
  padding: 14px 16px;
}
.legal-highlight svg { flex-shrink: 0; margin-top: 2px; }
.legal-delete-section {
  background: var(--bad-bg);
  border: 1px solid rgba(220,38,38,.15);
  border-radius: var(--radius-input);
  padding: 16px;
  margin-top: 16px;
}

/* ── Progress bar generic ── */
.progress-bar {
  width: 100%;
  height: 6px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--jcd-teal);
  border-radius: 99px;
  transition: width 0.4s ease;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .actions-grid { grid-template-columns: 1fr; }
  .admin-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hub-greeting { flex-direction: column; align-items: flex-start; }
  .situation-badge { align-self: stretch; text-align: left; }
  .access-card { padding: 28px 20px; }
  .persona-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
  .page-header h1 { font-size: 1.4rem; }
  .hub-greeting h1 { font-size: 1.4rem; }
  .card { padding: 16px; }
  .timeline-label { font-size: 0.65rem; }
}

/* ── WP0 Hub Corrections ── */

/* Access page */
.wordmark-jcd {
  color: var(--jcd-navy);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.02em;
}
.access-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin: 16px 0 8px;
  line-height: 1.3;
}
.access-tagline {
  font-size: 0.9rem;
  color: var(--text-2);
  margin-bottom: 24px;
  line-height: 1.5;
}
.access-cta {
  background: var(--jcd-navy) !important;
  color: #fff !important;
  gap: 0 !important;
}
.access-cta:hover { background: #001d35 !important; }
.access-cta svg { display: none !important; }

/* Hub blocs */
.hub-bloc { margin-bottom: 24px; }

/* Frise parcours */
.frise {
  display: flex;
  align-items: flex-start;
  gap: 0;
  padding: 20px 0;
  overflow-x: auto;
}
.frise-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 80px;
}
.frise-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--border);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  font-size: 14px;
}
.frise-step.done .frise-dot {
  background: var(--jcd-teal);
  border-color: var(--jcd-teal);
  color: #fff;
}
.frise-step.active .frise-dot,
.frise-dot.active {
  background: var(--jcd-navy);
  border-color: var(--jcd-navy);
  color: #fff;
}
.frise-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-2);
  text-align: center;
  line-height: 1.3;
}
.frise-label span { font-weight: 400; font-size: 0.7rem; }
.frise-label .current { color: var(--jcd-navy); font-weight: 600; }
.frise-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin-top: 17px;
  min-width: 32px;
}
.frise-line.done { background: var(--jcd-teal); }
.frise-line.active { background: var(--jcd-navy); }

/* Briques grid */
.briques-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
@media (max-width: 768px) {
  .briques-grid { grid-template-columns: 1fr; }
}
.brique-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 0 !important;
  flex: 1;
}
.brique-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.brique-icon { width: 24px; height: 24px; color: var(--jcd-teal-deep); flex-shrink: 0; }
.brique-subtitle { font-size: 0.85rem; color: var(--text-2); }
.brique-status { font-size: 0.85rem; }
.brique-hint { font-size: 0.8rem; color: var(--text-2); }
.brique-actions { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.brique-link { font-size: 0.85rem; color: var(--text-2); text-decoration: underline; }
.status-good { color: var(--good); font-weight: 600; }
.status-neutral { color: var(--text-2); }

.step-question-label { font-size: 1rem; color: var(--text-2); margin-top: 6px; }

/* Pills */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}
.pill-teal { background: var(--jcd-teal); color: #fff; }
.pill-teal-soft { background: var(--jcd-teal-soft); color: var(--jcd-teal-deep); }

/* Situation card */
.situation-card { margin-top: 16px; }
.situation-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.situation-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.situation-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-2);
}
.situation-empty { margin-top: 16px; }
.persona-label { font-size: 0.875rem; color: var(--text-2); margin-bottom: 16px; }

/* Btn ghost */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-2);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: var(--radius-input);
  text-decoration: none;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: color var(--transition);
}
.btn-ghost:hover { color: var(--jcd-navy); text-decoration: none; }
.btn-sm { padding: 6px 12px; font-size: 0.8rem; }

/* Icon inline */
.icon-inline { width: 16px; height: 16px; display: inline-block; vertical-align: middle; margin-right: 4px; }

/* Axe prioritaire */
.bloc-axe {
  background: var(--jcd-sand-soft);
  border-radius: var(--radius-card);
  padding: 20px 24px;
  border: 1px solid var(--jcd-sand);
}
.axe-content {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.axe-label { font-size: 0.75rem; font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.05em; }
.axe-text { font-size: 0.95rem; font-weight: 600; color: var(--text); margin-top: 2px; }
.axe-content > div { flex: 1; min-width: 200px; }

/* Sparkline */
.sparkline { height: 32px; width: 100%; }

/* Fiche header */
.fiche-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

/* ── WP1 Préparateur ── */
.prep-rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.prep-rule-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
}

.prep-rule-icon {
  color: var(--color-teal, #0ea5e9);
  flex-shrink: 0;
  margin-top: 2px;
}

.prep-rule-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 4px;
}

.prep-rule-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted, #6b7280);
  margin: 0;
}

.prep-cta-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 32px;
  gap: 8px;
}

.prep-progress {
  height: 6px;
  background: var(--color-border, #e5e7eb);
  border-radius: 3px;
  margin-bottom: 8px;
  overflow: hidden;
}

.prep-progress-bar {
  height: 100%;
  background: var(--color-navy, #1e3a5f);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.prep-progress-label {
  font-size: 0.8rem;
  color: var(--color-text-muted, #6b7280);
  margin-bottom: 20px;
}

.step-hint {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: var(--color-bg-subtle, #f8fafc);
  margin-bottom: 20px;
}

.step-hint-icon {
  color: var(--color-amber, #f59e0b);
  flex-shrink: 0;
}

.step-feedback {
  border-left: 4px solid var(--color-teal, #0ea5e9);
  margin-bottom: 24px;
}

.step-feedback-header {
  margin-bottom: 12px;
}

.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.rating-good {
  background: #dcfce7;
  color: #15803d;
}

.rating-ok {
  background: #fef3c7;
  color: #92400e;
}

.rating-bad {
  background: #fee2e2;
  color: #b91c1c;
}

.step-feedback-text {
  font-size: 0.95rem;
  margin-bottom: 12px;
  line-height: 1.6;
}

.step-reformulation {
  background: var(--color-bg-subtle, #f8fafc);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.step-coaching-tip {
  font-size: 0.85rem;
  color: var(--color-text-muted, #6b7280);
  margin-bottom: 12px;
}

.step-feedback-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.step-question {
  font-size: 1.1rem;
  margin-bottom: 16px;
  line-height: 1.5;
}

.form-textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
  min-height: 120px;
  box-sizing: border-box;
}

.form-textarea:focus {
  outline: none;
  border-color: var(--color-navy, #1e3a5f);
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

.form-actions {
  margin-top: 12px;
}

.step-nav {
  margin-top: 16px;
  display: flex;
  gap: 8px;
}

.trame-sections {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.trame-section {
  padding: 20px;
}

.trame-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.trame-section-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

.trame-duration {
  font-size: 0.8rem;
}

.trame-section-content {
  background: var(--color-bg-subtle, #f8fafc);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.9rem;
  line-height: 1.6;
}

.trame-section-content p {
  margin: 0;
}

.trame-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: 32px;
}

.btn-large {
  padding: 14px 28px;
  font-size: 1rem;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--color-border, #e5e7eb);
  color: var(--color-text-muted, #6b7280);
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-ghost:hover {
  background: var(--color-bg-subtle, #f8fafc);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.8rem;
}

.section-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.prep-rules-section {
  margin-bottom: 32px;
}
