/* Hub + run layout — module exercices dissertation */
.exo-shell--wide {
  max-width: 1100px;
}

.exo-loading {
  text-align: center;
  color: var(--ink-3);
  padding: 48px 16px;
}

.exo-load-error {
  max-width: 560px;
  margin: 32px auto;
  padding: 24px;
  border: 1px solid #fecaca;
  border-radius: 12px;
  background: #fff5f5;
}

.exo-load-error h1 {
  font-size: 1.25rem;
  margin: 0 0 8px;
}

.exo-load-error-detail {
  font-size: 13px;
  word-break: break-word;
}

.exo-parcours-teaser {
  margin-bottom: 16px;
}

.exo-parcours-teaser-link {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding: 14px 16px;
  border: 1px solid var(--paper-3);
  border-radius: 12px;
  background: linear-gradient(135deg, #f0fdfa 0%, #ecfeff 100%);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.exo-parcours-teaser-link:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(42, 163, 184, 0.15);
}

.exo-parcours-teaser-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.exo-parcours-teaser-cta {
  margin-left: auto;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

/* Hub */
.exo-hub-band {
  background: var(--accent-soft);
  border: 1px solid var(--accent-soft-2);
  border-radius: var(--r);
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 15px;
}

.exo-heatmap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.exo-heatmap-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  color: var(--ink);
  background: var(--paper-2);
  border: 2px solid var(--paper-3);
  transition: all 0.15s ease-out;
  cursor: pointer;
}

.exo-heatmap-cell:hover:not(.hm-prep) {
  transform: scale(1.1);
  box-shadow: 0 2px 6px rgba(28, 27, 46, 0.2);
}

.exo-heatmap-cell:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.exo-heatmap-cell.hm-good {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent-2);
}

.exo-heatmap-cell.hm-good:hover {
  background: var(--accent-2);
}

.exo-heatmap-cell.hm-partial {
  background: #fef3c7;
  color: #92400e;
  border-color: #f59e0b;
}

.exo-heatmap-cell.hm-partial:hover {
  background: #fef08a;
  border-color: #fcd34d;
}

.exo-heatmap-cell.hm-low {
  background: var(--paper);
  color: var(--ink-3);
}

.exo-heatmap-cell.hm-low:hover {
  background: var(--paper-2);
  border-color: var(--accent-soft-2);
}

.exo-heatmap-cell.hm-prep {
  background: #e8e6e1;
  color: #8a8680;
  border-color: #d4d0c8;
  cursor: not-allowed;
  opacity: 0.6;
}

.exo-heatmap-cell.is-active {
  outline: 3px solid var(--accent-2);
  outline-offset: 2px;
  box-shadow: 0 4px 10px rgba(45, 106, 79, 0.25);
}

.exo-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.exo-filters label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.exo-filters select {
  font: inherit;
  padding: 8px 10px;
  border-radius: var(--r);
  border: 1px solid var(--paper-3);
  min-width: 160px;
}

.exo-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.exo-card {
  background: var(--white);
  border: 1px solid var(--paper-3);
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--sh);
  transition: all 0.2s ease-out;
  cursor: pointer;
}

.exo-card:hover {
  border-color: var(--accent-soft-2);
  box-shadow: 0 4px 12px rgba(45, 106, 79, 0.12);
  transform: translateY(-2px);
}

.exo-card:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.exo-card-head {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 8px;
}

.exo-card-badge {
  font-size: 18px;
  line-height: 1;
}

.exo-card h3 {
  font-family: var(--font-d);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}

.exo-card-meta {
  font-size: 13px;
  color: var(--ink-3);
  margin-bottom: 12px;
}

.exo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: none;
  border-radius: var(--r);
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.12s, box-shadow 0.2s;
  box-shadow: 0 2px 4px rgba(45, 106, 79, 0.15);
}

.exo-btn:hover {
  background: var(--accent-2);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(45, 106, 79, 0.25);
}

.exo-btn:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

.exo-btn:active {
  transform: translateY(0);
}

.exo-btn--ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent-soft-2);
  box-shadow: none;
}

.exo-btn--ghost:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  box-shadow: none;
}

.exo-btn--sm {
  padding: 8px 14px;
  font-size: 13px;
}

.exo-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.exo-btn[aria-busy='true'] {
  pointer-events: none;
}

/* Run layout */
.exo-run-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 16px;
  align-items: start;
}

.exo-breadcrumb {
  font-size: 13px;
  color: var(--ink-3);
  flex: 1;
  text-align: center;
}

.exo-breadcrumb a {
  color: var(--accent);
}

.exo-run-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--paper-3);
}

.exo-feedback-panel {
  position: sticky;
  top: 16px;
  min-height: 200px;
}

.exo-feedback-panel[aria-busy='true'] {
  opacity: 1;
}

.exo-feedback-empty {
  color: var(--ink-3);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

.exo-deck-progress {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--ink-2);
}

.exo-feedback-analyzing {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 24px 16px;
  background: var(--paper);
  border-radius: var(--r);
  border: 1px solid var(--paper-3);
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.exo-feedback-analyzing > p:first-of-type {
  margin: 0;
  font-weight: 700;
  color: var(--ink);
  font-size: 15px;
}

.exo-feedback-analyzing .exo-feedback-empty {
  max-width: 28ch;
}

.exo-spinner {
  display: inline-block;
  width: 28px;
  height: 28px;
  border: 3px solid var(--paper-3);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: exo-spin 0.75s linear infinite;
  flex-shrink: 0;
}

@keyframes exo-spin {
  to {
    transform: rotate(360deg);
  }
}

.exo-feedback-verdict {
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: var(--r);
  animation: slideDown 0.4s ease-out;
  display: flex;
  align-items: center;
  gap: 8px;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.exo-feedback-verdict::before {
  content: '';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  flex-shrink: 0;
  font-weight: 800;
  font-size: 11px;
}

.exo-feedback-verdict.is-pass {
  background: var(--accent-soft);
  color: var(--accent);
}

.exo-feedback-verdict.is-pass::before {
  background: var(--accent);
  color: #fff;
  content: '✓';
}

.exo-feedback-verdict.is-fail {
  background: #fef2f2;
  color: #b91c1c;
}

.exo-feedback-verdict.is-fail::before {
  background: #dc2626;
  color: #fff;
  content: '✕';
}

.exo-feedback-text {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.55;
}

.exo-feedback-charge {
  margin-top: 12px;
  padding-left: 18px;
  font-size: 13px;
  color: var(--ink-2);
}

.exo-pool-actions {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--paper-3);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.exo-auto-pool {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--ink-2);
  cursor: pointer;
  user-select: none;
}

.exo-auto-pool input {
  margin: 0;
}

.exo-advance-banner {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--r);
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 1px solid #6ee7b7;
}

.exo-advance-banner--complete {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-color: #93c5fd;
}

.exo-advance-banner-text {
  margin: 0 0 6px;
  font-weight: 700;
  font-size: 14px;
  color: #047857;
}

.exo-advance-banner--complete .exo-advance-banner-text {
  color: #1d4ed8;
}

.exo-advance-banner-next {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.45;
}

.exo-advance-banner-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.exo-advance-banner-timer {
  font-size: 12px;
  color: var(--ink-3);
}

.exo-btn--sm {
  padding: 6px 12px;
  font-size: 13px;
}

.exo-local-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  opacity: 0.7;
}

/* Interactive widgets */
.exo-field-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
  margin: 14px 0 6px;
}

.exo-textarea,
.exo-input,
.exo-select {
  width: 100%;
  font: inherit;
  padding: 10px 12px;
  border: 2px solid var(--paper-3);
  border-radius: var(--r);
  background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.exo-textarea:hover,
.exo-input:hover,
.exo-select:hover {
  border-color: var(--accent-soft-2);
}

.exo-textarea:focus-visible,
.exo-input:focus-visible,
.exo-select:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.exo-textarea {
  resize: vertical;
  min-height: 80px;
}

.exo-textarea:disabled,
.exo-input:disabled,
.exo-select:disabled {
  background: var(--paper-2);
  color: var(--ink-3);
  cursor: not-allowed;
}

.exo-prompt {
  padding: 12px 14px;
  background: var(--paper);
  border-radius: var(--r);
  font-size: 15px;
  margin-bottom: 8px;
}

.exo-hint-box {
  font-size: 14px;
  color: var(--ink-2);
  background: #f8faf9;
  padding: 12px 16px;
  border-radius: var(--r);
  margin: 0 0 16px;
  line-height: 1.55;
  max-width: 62ch;
}

.exo-sujet-box,
.exo-example-box {
  font-size: 15px;
  color: var(--ink);
  background: var(--paper);
  padding: 12px 16px;
  border-radius: var(--r);
  margin: 0 0 16px;
  line-height: 1.55;
  max-width: 62ch;
  border-left: 3px solid var(--accent);
}

.exo-example-box {
  border-left-color: var(--accent-soft-2);
  background: #f8faf9;
}

.exo-citation-box {
  margin: 0 0 16px;
  padding: 14px 18px;
  max-width: 62ch;
  background: var(--paper);
  border-left: 3px solid var(--ink-3, #8a8578);
  border-radius: var(--r);
}

.exo-citation-label {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.exo-citation-text {
  margin: 0 0 8px;
  font-size: 15px;
  font-style: italic;
  line-height: 1.6;
  color: var(--ink);
}

.exo-citation-source {
  display: block;
  font-size: 12px;
  font-style: normal;
  color: var(--ink-2);
}

/* ── Rédaction guidée : panneau des éléments donnés ─────────── */
.exo-guided-given {
  background: #f8faf9;
  border: 2px solid var(--paper-3);
  border-radius: var(--r);
  padding: 14px 16px;
  margin: 0 0 16px;
  max-width: 62ch;
}

.exo-guided-given-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.exo-guided-block {
  margin: 0 0 12px;
}

.exo-guided-block:last-child {
  margin-bottom: 0;
}

.exo-guided-block-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 4px;
}

.exo-guided-block p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
}

.exo-guided-list {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
}

.exo-guided-list li {
  margin: 0 0 4px;
}

/* ── Design system options (checkbox / radio) ───────────────
   Never rely on native list bullets next to controls. */
.exo-options,
.exo-checkbox-grid,
.exo-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px; /* espace entre cartes option (≥ 10–12px) */
}

.exo-options > li,
.exo-checkbox-grid > li,
.exo-checklist > li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.exo-option,
.exo-checkbox-item {
  display: grid;
  /* col 1 = pastille, col 2 = titre + aide */
  grid-template-columns: 1.25rem 1fr;
  column-gap: 12px;
  /* Option A : aligner la pastille sur la 1ʳᵉ ligne du titre
     (PAS center sur toute la carte — ça décalait dès qu'il y a une aide) */
  align-items: start;
  padding: 12px 16px;
  border: 2px solid var(--paper-3);
  border-radius: var(--r);
  cursor: pointer;
  background: var(--white);
  margin: 0;
  line-height: 1.45;
  transition: all 0.15s ease-out;
}

.exo-option-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  box-sizing: content-box;
  /* Optical: (line-height titre − taille checkbox) / 2
     titre = 15px × 1.4 = 21px ; checkbox = 1.125rem */
  padding-top: calc((1.4 * 15px - 1.125rem) / 2);
}

.exo-option-check input[type='checkbox'],
.exo-option-check input[type='radio'],
.exo-option > input[type='checkbox'],
.exo-option > input[type='radio'],
.exo-checkbox-item > input[type='checkbox'],
.exo-checkbox-item > input[type='radio'] {
  width: 1.125rem;
  height: 1.125rem;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--accent);
  cursor: pointer;
  transition: box-shadow 0.15s;
}

.exo-option-check input[type='checkbox']:focus-visible,
.exo-option-check input[type='radio']:focus-visible,
.exo-option > input[type='checkbox']:focus-visible,
.exo-option > input[type='radio']:focus-visible,
.exo-checkbox-item > input[type='checkbox']:focus-visible,
.exo-checkbox-item > input[type='radio']:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.exo-option-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.exo-option-title {
  display: block;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.4;
}

.exo-option-help {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-3);
  line-height: 1.5;
  margin-top: 2px;
}

.exo-option:hover,
.exo-checkbox-item:hover {
  border-color: var(--accent-2);
  background: #fafaf8;
  box-shadow: 0 2px 6px rgba(45, 106, 79, 0.08);
}

.exo-option:has(input:checked),
.exo-checkbox-item:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 2px 8px rgba(45, 106, 79, 0.12);
}

.exo-option:has(input:focus-visible),
.exo-checkbox-item:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.exo-notions-reperes-panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px 24px;
}

.exo-notions-reperes-panel {
  min-width: 0;
}

.exo-notions-reperes-title {
  font-family: var(--font-d);
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--ink);
}

.exo-checklist {
  margin-top: 8px;
}

.exo-checklist .exo-option,
.exo-checklist label.exo-option {
  font-size: 14px;
}

.exo-vrac {
  list-style: disc;
  padding-left: 22px;
  font-size: 14px;
  color: var(--ink-2);
  margin-bottom: 12px;
}

.exo-sort-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.exo-sort-item {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  background: var(--paper);
  border: 1px solid var(--paper-3);
  border-radius: var(--r);
  cursor: grab;
}

.exo-sort-item.dragging {
  opacity: 0.5;
}

.exo-drag {
  color: var(--ink-3);
  font-weight: 800;
  user-select: none;
}

.exo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.exo-chip {
  font-size: 12px;
  padding: 4px 10px;
  background: var(--paper-2);
  border-radius: 999px;
  border: 1px solid var(--paper-3);
}

.exo-secret {
  margin: 10px 0;
  padding: 10px 12px;
  background: #fffbeb;
  border-radius: var(--r);
  font-size: 14px;
}

.exo-modal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.exo-modal-table th,
.exo-modal-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--paper-3);
  vertical-align: top;
}

.exo-modal-phrase {
  min-width: 0;
}

.modalite-phrase-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.modalite-level-badge {
  flex-shrink: 0;
}

.modalite-phrase-text {
  margin: 0;
  line-height: 1.45;
  max-width: 42ch;
}

.exo-modal-recap {
  margin-bottom: 18px;
  background: var(--paper-2);
  border: 1px solid var(--paper-3);
  border-radius: var(--r);
}

.exo-modal-recap-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.exo-modal-recap-summary::-webkit-details-marker {
  display: none;
}

.exo-modal-recap-toggle::after {
  content: '▾';
  font-size: 12px;
  color: var(--ink-3);
}

.exo-modal-recap:not([open]) .exo-modal-recap-toggle::after {
  content: '▸';
}

.exo-modal-recap-body {
  padding: 0 16px 14px;
  border-top: 1px solid var(--paper-3);
}

.exo-modal-recap-title {
  font-family: var(--font-d);
  font-size: 16px;
  margin: 0;
  font-weight: 600;
}

.exo-btn--xs {
  padding: 4px 10px;
  font-size: 12px;
}

.exo-modal-def-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.exo-modal-def-table th {
  text-align: left;
  padding: 6px 10px 6px 0;
  white-space: nowrap;
  vertical-align: top;
  color: var(--accent);
  font-weight: 600;
}

.exo-modal-def-table td {
  padding: 6px 0;
  color: var(--ink-2);
}

.exo-modal-def-body p {
  margin: 0 0 6px;
  line-height: 1.45;
}

.exo-modal-def-body p:last-child {
  margin-bottom: 0;
}

.exo-modal-def-int,
.exo-modal-def-ext,
.exo-modal-def-expr {
  font-size: 13px;
}

.exo-modal-recap-hint {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--ink-3);
}

.exo-modal-level {
  display: inline-block;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}

.exo-modal-row[data-level="4"] .exo-modal-level,
.exo-modal-row[data-level="5"] .exo-modal-level {
  background: #fff3cd;
  color: #856404;
}

.exo-modal-checks {
  min-width: 220px;
  vertical-align: top;
}

.exo-modal-table th:first-child {
  min-width: 28ch;
}

.exo-modal-check {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 2px 8px 2px 0;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}

.exo-modal-check input {
  margin: 0;
}

.exo-modal-source {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-style: italic;
  color: var(--ink-3);
}

@media (max-width: 720px) {
  .exo-modal-table thead {
    display: none;
  }

  .exo-modal-table tr {
    display: block;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--paper-3);
  }

  .exo-modal-table td {
    display: block;
    border: none;
    padding: 4px 0;
  }

  .exo-modal-checks {
    min-width: 0;
    margin-top: 6px;
  }

  .modalite-phrase-text {
    max-width: none;
  }
}

/* Porphyre */
.porphyre-demo {
  margin-top: 8px;
}

.porphyre-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 12px;
}

.porphyre-col h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-3);
  margin-bottom: 8px;
}

.porphyre-intension {
  font-family: var(--font-d);
  font-size: 15px;
  margin-bottom: 12px;
  color: var(--accent);
}

.porphyre-steps {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.exo-tree-step {
  text-align: left;
  padding: 8px 12px;
  border: 1px dashed var(--accent-soft-2);
  border-radius: var(--r);
  background: var(--white);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.exo-tree-step.is-on {
  background: var(--accent-soft);
  border-style: solid;
  border-color: var(--accent);
  cursor: default;
}

.porphyre-extension {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 80px;
  padding: 10px;
  background: var(--paper);
  border-radius: var(--r);
  border: 1px solid var(--paper-3);
}

.exo-ext-item {
  font-size: 13px;
  padding: 4px 8px;
  background: var(--white);
  border: 1px solid var(--paper-3);
  border-radius: 4px;
}

.porphyre-svg {
  width: 100%;
  max-width: 280px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.exo-stub {
  text-align: center;
  padding: 32px 16px;
  color: var(--ink-3);
}

.exo-stub-badge {
  display: inline-block;
  background: #fef3c7;
  color: #92400e;
  font-weight: 800;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.exo-fill-blanks {
  line-height: 2.2;
  font-size: 1.05rem;
  margin: 16px 0;
}

.exo-blank-input {
  display: inline-block;
  min-width: 120px;
  max-width: 200px;
  border: none;
  border-bottom: 2px solid var(--accent, #2563eb);
  background: #f8fafc;
  padding: 2px 8px;
  font: inherit;
  margin: 0 4px;
}

.exo-blank-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

.exo-blank-list li {
  margin-bottom: 12px;
}

.exo-vocab-progress {
  font-size: 13px;
  color: var(--ink-3);
  margin-bottom: 8px;
}

.exo-vocab-card {
  background: #f8fafc;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
}

.exo-vocab-term {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 12px;
}

.exo-vocab-def summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--accent, #2563eb);
}

.exo-vocab-repere {
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--ink-3);
}

.exo-vocab-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.exo-vocab-done {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}

.exo-vocab-done-title {
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 0 8px;
}

.exo-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--ink-3);
  padding: 24px;
}

@media (max-width: 900px) {
  .exo-run-grid {
    grid-template-columns: 1fr;
  }

  .exo-feedback-panel {
    position: static;
    min-height: auto;
    margin-top: 20px;
    padding: 16px;
    background: var(--paper);
    border-radius: var(--r);
    border: 1px solid var(--paper-3);
  }

  .porphyre-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .exo-breadcrumb.exo-crumb {
    display: flex;
    font-size: 12px;
  }

  .exo-card-grid {
    grid-template-columns: 1fr;
  }

  .exo-filters {
    flex-direction: column;
    align-items: stretch;
  }

  .exo-filters select {
    min-width: 100%;
  }

  .exo-heatmap {
    gap: 4px;
  }

  .exo-heatmap-cell {
    width: 32px;
    height: 32px;
    font-size: 11px;
  }

  .exo-btn {
    padding: 12px 16px;
    font-size: 15px;
    width: 100%;
  }

  .exo-btn--sm {
    padding: 10px 14px;
    width: auto;
  }

  .exo-option,
  .exo-checkbox-item {
    padding: 14px 12px;
    gap: 10px;
  }

  .exo-textarea,
  .exo-input,
  .exo-select {
    padding: 12px 10px;
    font-size: 16px; /* Prévient zoom on iOS */
  }

  .exo-textarea {
    min-height: 100px;
  }

  .exo-field-label {
    font-size: 14px;
    margin: 16px 0 8px;
  }

  .exo-prompt {
    padding: 14px;
    font-size: 16px;
  }

  .exo-run-actions {
    flex-direction: column;
  }

  .exo-run-actions > * {
    width: 100%;
  }
}

/* Parcours logique */
.exo-logic-diagram {
  width: 100%;
  max-width: 360px;
  height: auto;
  display: block;
  margin: 8px auto 0;
  background: var(--paper);
  border: 1px solid var(--paper-3);
  border-radius: var(--r);
}

.exo-logic-figure {
  margin: 12px 0;
  text-align: center;
}

.exo-logic-caption {
  font-size: 13px;
  color: var(--ink-muted, #6b7280);
  font-style: italic;
  margin-bottom: 6px;
}

.exo-conn-ref {
  margin-bottom: 16px;
  font-size: 13px;
  opacity: 0.92;
}

.exo-venn-svg {
  width: 100%;
  max-width: 400px;
  height: auto;
  display: block;
  margin: 12px auto;
  border: 1px solid var(--paper-3);
  border-radius: var(--r);
}

.exo-formula {
  font-family: 'Consolas', 'Source Code Pro', monospace;
  font-size: 14px;
  background: var(--paper-2);
  padding: 2px 6px;
  border-radius: 4px;
}

.exo-tv-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-top: 10px;
}

.exo-tv-table th,
.exo-tv-table td {
  padding: 10px 12px;
  border: 1px solid var(--paper-3);
  text-align: center;
}

.exo-tv-t {
  color: #166534;
  font-weight: 800;
}

.exo-tv-f {
  color: #b91c1c;
  font-weight: 800;
}

.exo-tv-cell {
  min-width: 44px;
  padding: 8px 14px;
  border: 2px dashed var(--paper-3);
  border-radius: var(--r);
  background: var(--white);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.exo-tv-cell.is-t {
  background: #dcfce7;
  border-color: #166534;
  color: #166534;
}

.exo-tv-cell.is-f {
  background: #fef2f2;
  border-color: #b91c1c;
  color: #b91c1c;
}

.exo-match-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.exo-match-table th,
.exo-match-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--paper-3);
  vertical-align: middle;
}

.exo-imp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.exo-imp-table th,
.exo-imp-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--paper-3);
}

.exo-imp-pick {
  display: flex;
  gap: 12px;
}

.exo-imp-pick label {
  cursor: pointer;
  font-weight: 600;
}

.exo-entity-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.exo-entity-btn {
  padding: 10px 16px;
  border: 2px dashed var(--accent-soft-2);
  border-radius: var(--r);
  background: var(--white);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.exo-entity-btn.is-on {
  background: var(--accent-soft);
  border-style: solid;
  border-color: var(--accent);
  font-weight: 700;
}

.exo-quant-item,
.exo-var-item,
.exo-lpo-item {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--paper-3);
}

.exo-quant-phrase {
  font-size: 15px;
  margin-bottom: 8px;
}

/* Déduction à partir d'une théorie */
.theorie-box {
  background: var(--paper);
  border: 2px solid var(--accent-soft-2);
  border-radius: var(--r);
  padding: 16px 18px;
  margin: 16px 0 20px;
}

.theorie-box-title {
  font-family: var(--font-serif, 'Source Serif 4', serif);
  font-size: 18px;
  margin: 0 0 12px;
  color: var(--ink);
}

.theorie-section h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  margin: 0 0 6px;
}

.theorie-list {
  margin: 0 0 12px;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.5;
}

.theorie-faits li {
  font-weight: 600;
  color: var(--ink);
}

.deduction-combo {
  max-width: 360px;
  margin-top: 6px;
  margin-bottom: 16px;
}

.exo-deduction-question {
  font-size: 16px;
  font-weight: 700;
  margin-top: 8px;
}

.exo-deduction-fieldset {
  border: none;
  padding: 0;
  margin: 0 0 12px;
}

.exo-deduction-fieldset legend {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
  margin-bottom: 8px;
}

.exo-deduction-recap {
  background: var(--accent-soft);
  border: 1px solid var(--accent-soft-2);
  border-radius: var(--r);
  margin-bottom: 16px;
}

.exo-deduction-recap-summary {
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  list-style: none;
}

.exo-deduction-recap-summary::-webkit-details-marker {
  display: none;
}

.exo-deduction-recap-body {
  padding: 0 14px 14px;
  font-size: 14px;
}

.exo-deduction-defs dt {
  font-weight: 700;
  margin-top: 8px;
  color: var(--accent-2);
}

.exo-deduction-defs dd {
  margin: 2px 0 0;
  color: var(--ink-2);
  line-height: 1.45;
}


/* Définition — critères (juste, claire, distincte, contextualisée) */
.exo-def-crit-glossary {
  margin-bottom: 16px;
}

.exo-def-crit-glossary-lead {
  font-size: 13px;
  color: var(--ink-2);
  margin: 10px 0 8px;
}

.exo-def-crit-glossary-list {
  margin: 0 0 8px;
  padding-left: 18px;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.5;
}

.exo-def-crit-glossary-list li {
  margin-bottom: 6px;
}

.exo-def-crit-header {
  margin-bottom: 14px;
}

.exo-def-crit-concept {
  font-size: 17px;
  margin: 0 0 8px;
}

.exo-def-crit-concept-label {
  color: var(--ink-2);
  font-weight: 600;
}

.exo-def-crit-domain {
  margin-bottom: 10px;
}

.exo-def-crit-instruction {
  font-size: 14px;
  color: var(--ink-2);
  margin-bottom: 12px;
}

.exo-def-crit-table-wrap {
  overflow-x: auto;
  margin-bottom: 8px;
}

.exo-def-crit-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.exo-def-crit-table th,
.exo-def-crit-table td {
  border: 1px solid var(--paper-3);
  padding: 10px 8px;
  vertical-align: top;
}

.exo-def-crit-table th {
  background: var(--paper-2);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.exo-def-crit-table th:first-child,
.exo-def-crit-text {
  text-align: left;
}

.exo-def-crit-text {
  min-width: 200px;
  line-height: 1.45;
}

.exo-def-crit-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-2);
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
}

.exo-def-crit-cell {
  text-align: center;
  min-width: 88px;
}

.exo-def-crit-col-label {
  display: none;
}

.exo-def-crit-yn {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
}

.exo-def-crit-yn-opt {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: var(--r);
  border: 1px solid var(--paper-3);
  background: var(--white);
  margin: 0;
}

.exo-def-crit-yn-opt input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--accent);
}

.exo-def-crit-yn-opt:has(input:checked) {
  background: var(--accent-soft);
  border-color: var(--accent);
  font-weight: 700;
}

.exo-def-crit-mark {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #b91c1c;
  line-height: 1.3;
}

.exo-def-crit-cell.is-ok {
  background: rgba(22, 163, 74, 0.08);
}

.exo-def-crit-cell.is-ko {
  background: rgba(185, 28, 28, 0.1);
  outline: 1px solid rgba(185, 28, 28, 0.35);
}

.exo-feedback-corrections {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.exo-feedback-correction {
  padding: 10px 12px;
  background: #f8faf9;
  border: 1px solid var(--paper-3);
  border-radius: var(--r);
  font-size: 13px;
  color: var(--ink-2);
}

.exo-feedback-correction-label {
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
  line-height: 1.4;
}

.exo-feedback-correction-items {
  margin: 0;
  padding-left: 18px;
  line-height: 1.5;
}

.exo-feedback-correction-items li {
  margin-bottom: 6px;
}

.exo-feedback-correction-note {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--ink-3);
  font-style: italic;
  line-height: 1.45;
}

@media (max-width: 720px) {
  .exo-def-crit-table thead {
    display: none;
  }

  .exo-def-crit-row {
    display: block;
    margin-bottom: 14px;
    border: 1px solid var(--paper-3);
    border-radius: var(--r);
    padding: 10px;
  }

  .exo-def-crit-table,
  .exo-def-crit-table tbody {
    display: block;
  }

  .exo-def-crit-row td {
    display: block;
    border: none;
    padding: 6px 0;
  }

  .exo-def-crit-col-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--ink-2);
    margin-bottom: 4px;
    text-align: left;
  }

  .exo-def-crit-yn {
    flex-direction: row;
    gap: 12px;
  }
}

/* ── Hub v3 — accueil groupes, types, variantes ─────────── */

.exo-bar--hub {
  flex-wrap: wrap;
  gap: 8px 12px;
}

.exo-hub-main {
  padding-top: 4px;
}

.exo-hub-main--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 28px;
  align-items: start;
}

.exo-hub-content {
  min-width: 0;
}

.exo-global-bar {
  height: 4px;
  border-radius: 999px;
  background: var(--paper-2);
  margin: 0 0 14px;
  overflow: hidden;
}

.exo-global-bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
  transition: width 0.35s ease;
}

.exo-step-banner--home {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 8%, white);
  border: 1px solid var(--accent-soft-2);
  font-size: 14px;
}

.exo-step-banner--home p {
  margin: 0;
  flex: 1 1 200px;
}

.exo-step-banner-link {
  font-weight: 700;
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}

.exo-step-banner-link:hover {
  text-decoration: underline;
}

/* Sidebar progression — carrés de groupes */
.exo-progress-side {
  position: sticky;
  top: 16px;
}

.exo-progress-panel {
  background: var(--white);
  border: 1px solid var(--paper-3);
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(28, 27, 46, 0.06);
  overflow: hidden;
}

.exo-progress-summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  user-select: none;
}

.exo-progress-summary::-webkit-details-marker {
  display: none;
}

.exo-progress-summary::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 18px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--ink-3);
  border-bottom: 2px solid var(--ink-3);
  transform: rotate(45deg);
  transition: transform 0.15s;
}

.exo-progress-panel {
  position: relative;
}

.exo-progress-panel[open] > .exo-progress-summary::after {
  transform: rotate(-135deg);
  top: 22px;
}

.exo-progress-summary-title {
  font-family: var(--font-d);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  padding-right: 18px;
}

.exo-progress-summary-meta {
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.35;
  padding-right: 12px;
}

.exo-progress-body {
  padding: 0 14px 14px;
  border-top: 1px solid var(--paper-2);
  padding-top: 12px;
}

.exo-progress-counts {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.exo-pc {
  font-size: 12px;
  color: var(--ink-2);
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.exo-pc strong {
  font-size: 15px;
  font-weight: 800;
}

.exo-pc--acquired strong { color: #16a34a; }
.exo-pc--progress strong { color: #d97706; }
.exo-pc--none strong { color: #64748b; }

.exo-psq-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.exo-psq {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  text-decoration: none;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border: 2px solid transparent;
  transition: transform 0.12s, box-shadow 0.12s, border-color 0.12s;
  box-sizing: border-box;
}

.exo-psq:hover {
  transform: scale(1.06);
  box-shadow: 0 2px 8px rgba(28, 27, 46, 0.15);
}

.exo-psq--none {
  background: #cbd5e1;
  color: #475569;
}

.exo-psq--progress {
  background: #f59e0b;
  color: #fff;
}

.exo-psq--acquired {
  background: #16a34a;
  color: #fff;
}

.exo-psq.is-step {
  border-color: #38bdf8;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.35);
}

.exo-psq-ico {
  line-height: 1;
  pointer-events: none;
}

.exo-psq-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
  color: var(--ink-3);
}

.exo-psq-legend li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.exo-psq-legend .exo-psq {
  width: 14px;
  height: 14px;
  aspect-ratio: auto;
  flex-shrink: 0;
  border-radius: 3px;
  pointer-events: none;
  font-size: 0;
}

.exo-gcard--acquired .exo-ring-pct,
.exo-gcard--progress .exo-ring-pct {
  color: var(--g-status, var(--ink-2));
}

@media (min-width: 901px) {
  /* Desktop : panneau toujours ouvert (summary non repliable visuellement) */
  .exo-progress-panel > .exo-progress-summary {
    cursor: default;
    pointer-events: none;
  }

  .exo-progress-panel > .exo-progress-summary::after {
    display: none;
  }

  .exo-progress-panel:not([open]) > .exo-progress-body {
    display: block;
  }
}

@media (max-width: 900px) {
  .exo-hub-main--split {
    grid-template-columns: 1fr;
  }

  .exo-progress-side {
    position: static;
    order: -1;
  }

  .exo-progress-panel:not([open]) .exo-progress-body {
    display: none;
  }

  .exo-psq-grid {
    grid-template-columns: repeat(8, 1fr);
    max-width: 420px;
  }

  .exo-progress-counts {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 14px;
  }
}

.exo-crumb {
  flex: 1 1 200px;
  font-size: 13px;
  color: var(--ink-3);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.exo-crumb a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.exo-crumb a:hover {
  text-decoration: underline;
}

.exo-crumb-sep {
  color: var(--ink-3);
  opacity: 0.6;
  user-select: none;
}

.exo-crumb-current {
  color: var(--ink-2);
  font-weight: 600;
}

.exo-hub-menu {
  position: relative;
}

.exo-hub-menu-btn {
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border: 1px solid var(--paper-3);
  border-radius: var(--r);
  background: var(--paper);
  color: var(--ink-2);
  cursor: pointer;
}

.exo-hub-menu-btn:hover {
  background: var(--paper-2);
}

.exo-hub-menu-panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 50;
  min-width: 180px;
  background: var(--white);
  border: 1px solid var(--paper-3);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(28, 27, 46, 0.12);
  padding: 6px;
}

.exo-hub-menu-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.exo-hub-menu-panel a:hover {
  background: var(--accent-soft);
  color: var(--accent-2);
}

.exo-home-intro {
  margin-bottom: 24px;
}

.exo-home-title {
  font-family: var(--font-d);
  font-size: 1.65rem;
  font-weight: 600;
  margin: 0 0 8px;
  line-height: 1.25;
}

.exo-home-lead {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.55;
  margin: 0;
  max-width: 56ch;
}

.exo-gcard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.exo-gcard {
  background: var(--white);
  border: 1px solid var(--paper-3);
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(28, 27, 46, 0.06);
  overflow: hidden;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}

.exo-gcard:hover {
  border-color: var(--g-accent, var(--accent));
  box-shadow: 0 6px 20px rgba(28, 27, 46, 0.1);
  transform: translateY(-2px);
}

.exo-gcard.is-highlighted {
  border-color: var(--g-accent, var(--accent));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--g-accent, var(--accent)) 25%, transparent),
    0 6px 20px rgba(28, 27, 46, 0.1);
}

.exo-gcard-link {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.exo-gcard-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.exo-gcard-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--g-accent, var(--accent)) 12%, white);
  color: var(--g-accent, var(--accent));
  font-size: 24px;
  font-weight: 700;
}

.exo-ring {
  position: relative;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}

.exo-ring svg {
  transform: rotate(-90deg);
}

.exo-ring-bg {
  fill: none;
  stroke: var(--paper-2);
  stroke-width: 4;
}

.exo-ring-fill {
  fill: none;
  stroke: var(--ring-color, var(--accent));
  stroke-width: 4;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.35s ease;
}

.exo-ring-pct {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--ink-2);
}

.exo-gcard-title {
  font-family: var(--font-d);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
}

.exo-gcard-desc {
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.45;
  margin: 0;
  flex: 1;
}

.exo-gcard-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 13px;
  color: var(--ink-3);
  padding-top: 8px;
  border-top: 1px solid var(--paper-3);
}

.exo-gcard-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #1d4ed8;
  background: #dbeafe;
  padding: 2px 8px;
  border-radius: 999px;
}

.exo-group-hero,
.exo-type-hero {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--paper-3);
}

.exo-group-hero {
  flex-direction: row;
  align-items: flex-start;
  gap: 18px;
}

.exo-group-hero .exo-group-icon {
  background: color-mix(in srgb, var(--g-accent, var(--accent)) 12%, white);
  color: var(--g-accent, var(--accent));
}

.exo-group-hero-text {
  flex: 1;
  min-width: 0;
}

.exo-group-hero h1,
.exo-type-hero h1 {
  font-family: var(--font-d);
  font-size: 1.65rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.25;
}

.exo-type-meta {
  font-size: 14px;
  color: var(--ink-3);
  margin: 0;
}

.exo-type-cta {
  align-self: flex-start;
  margin-top: 8px;
}

.exo-wf-section {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--paper-3);
}

.exo-wf-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.exo-wf-section.is-highlighted {
  border-left: 3px solid var(--accent);
  padding-left: 16px;
  margin-left: -19px;
  background: rgba(42, 163, 184, 0.04);
  border-radius: 0 10px 10px 0;
}

.exo-wf-head {
  margin-bottom: 14px;
}

.exo-wf-title-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin-bottom: 6px;
}

.exo-wf-title {
  font-family: var(--font-d);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0;
}

.exo-wf-meta {
  font-size: 13px;
  color: var(--ink-3);
  margin: 0 0 8px;
}

.exo-workflow--types {
  background: linear-gradient(180deg, var(--paper) 0%, var(--white) 100%);
}

.exo-wizard-chevrons--types {
  padding: 8px 4px 12px;
}

.exo-type-chev {
  flex: 0 0 auto;
  min-width: 140px;
  max-width: 220px;
  position: relative;
  z-index: 1;
  padding: 12px 16px 12px 28px;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
  background: var(--c, var(--accent));
  opacity: 0.78;
  font-weight: 700;
  font-size: 12px;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%, 14px 50%);
  margin-left: -14px;
  transition: opacity 0.15s, transform 0.15s, z-index 0s;
  box-shadow: 0 1px 4px rgba(28, 27, 46, 0.14);
}

.exo-type-chev:first-child {
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%);
  margin-left: 0;
  border-radius: 8px 0 0 8px;
}

.exo-type-chev:last-child {
  border-radius: 0 8px 8px 0;
  padding-right: 18px;
}

.exo-type-chev:hover {
  opacity: 0.95;
  z-index: 30;
  transform: translateY(-1px);
  color: #fff;
}

.exo-type-chev.done {
  opacity: 0.92;
}

.exo-type-chev--locked {
  opacity: 0.35;
  cursor: not-allowed;
  filter: grayscale(0.5);
  pointer-events: none;
}

.exo-type-chev-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
}

.exo-type-chev-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.exo-type-chev-lbl {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 11em;
  line-height: 1.25;
}

.exo-type-chev-badge {
  font-size: 10px;
  font-weight: 600;
  opacity: 0.88;
}

.exo-variant-section {
  margin-top: 8px;
}

.exo-variant-heading {
  font-family: var(--font-d);
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--ink-2);
}

.exo-workflow--variants {
  background: var(--paper);
}

.exo-wizard-chevrons--variants {
  padding: 6px 4px 10px;
}

.exo-var-chev {
  flex: 0 0 auto;
  min-width: 120px;
  max-width: 200px;
  position: relative;
  z-index: 1;
  padding: 10px 14px 10px 24px;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--c, var(--accent));
  opacity: 0.8;
  font-weight: 700;
  font-size: 11px;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%, 10px 50%);
  margin-left: -10px;
  transition: opacity 0.15s, transform 0.15s;
}

.exo-var-chev:first-child {
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%);
  margin-left: 0;
  border-radius: 6px 0 0 6px;
}

.exo-var-chev:last-child {
  border-radius: 0 6px 6px 0;
}

.exo-var-chev:hover {
  opacity: 0.95;
  z-index: 20;
  transform: translateY(-1px);
  color: #fff;
}

.exo-var-chev.done {
  opacity: 0.95;
}

.exo-var-chev--locked {
  opacity: 0.35;
  pointer-events: none;
  filter: grayscale(0.5);
}

.exo-var-chev-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  font-size: 10px;
  font-weight: 800;
  flex-shrink: 0;
}

.exo-var-chev-lbl {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 10em;
}

.exo-var-done input {
  width: 13px;
  height: 13px;
  accent-color: #fff;
  cursor: pointer;
}

.exo-type-next-hint {
  font-size: 13px;
  color: var(--ink-3);
  margin: 12px 0 0;
  font-style: italic;
}

@media (max-width: 720px) {
  .exo-bar--hub {
    flex-direction: column;
    align-items: stretch;
  }

  .exo-crumb {
    order: 3;
    width: 100%;
  }

  .exo-group-hero {
    flex-direction: column;
  }

  .exo-type-chev {
    min-width: 120px;
  }

  .exo-gcard-grid {
    grid-template-columns: 1fr;
  }
}

/* Parcours thématiques (hub) — legacy tabs demoted */
.exo-hub-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--paper-3);
  padding-bottom: 12px;
}

.exo-hub-tab {
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  border: 1px solid var(--paper-3);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-2);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.exo-hub-tab:hover {
  background: var(--paper-2);
}

.exo-hub-tab.is-active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-2);
}

.exo-parcours-intro {
  margin-bottom: 20px;
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.5;
}

.exo-parcours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.exo-parcours-card {
  background: var(--white);
  border: 1px solid var(--paper-3);
  border-radius: 12px;
  padding: 18px;
  box-shadow: var(--sh);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.exo-parcours-card h2 {
  font-family: var(--font-d);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}

.exo-parcours-card-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.exo-parcours-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.exo-parcours-theme {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
}

.exo-method-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--paper-3);
  background: var(--paper-2);
  color: var(--ink-2);
}

.exo-method-icon {
  font-size: 13px;
  line-height: 1;
}

.exo-method--logique {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.exo-method--modalites {
  background: #f5f3ff;
  border-color: #ddd6fe;
  color: #6d28d9;
}

.exo-method--analyser {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #047857;
}

.exo-method--definir {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #c2410c;
}

.exo-method--reformuler {
  background: #f0fdfa;
  border-color: #99f6e4;
  color: #0f766e;
}

.exo-method--problematiser {
  background: #fdf2f8;
  border-color: #fbcfe8;
  color: #be185d;
}

.exo-method--classer {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #475569;
}

.exo-parcours-detail-intro .exo-method-badge {
  margin-bottom: 8px;
}

.exo-parcours-desc {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.45;
  flex: 1;
}

.exo-parcours-meta {
  font-size: 13px;
  color: var(--ink-3);
}

.exo-parcours-steps {
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.4;
}

.exo-parcours-done-count {
  color: #047857;
}

.exo-parcours-detail-head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.exo-parcours-back {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-2);
  text-decoration: none;
}

.exo-parcours-back:hover {
  text-decoration: underline;
}

.exo-parcours-detail-intro {
  margin-bottom: 24px;
}

.exo-parcours-detail-intro h1 {
  font-family: var(--font-d);
  font-size: 24px;
  font-weight: 600;
  margin: 6px 0 10px;
  line-height: 1.25;
}

.exo-parcours-step {
  margin-bottom: 28px;
}

.exo-parcours-step-title {
  font-family: var(--font-d);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent-soft-2);
}

.exo-parcours-step-count {
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-3);
}

.exo-parcours-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.exo-parcours-row {
  background: var(--white);
  border: 1px solid var(--paper-3);
  border-radius: 10px;
  padding: 12px 14px;
}

.exo-parcours-row--missing {
  opacity: 0.6;
  font-size: 13px;
}

.exo-parcours-done {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ink-3);
  margin-bottom: 8px;
  cursor: pointer;
  user-select: none;
}

.exo-parcours-done input {
  accent-color: var(--accent);
}

.exo-parcours-row-main {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.exo-parcours-row-text {
  flex: 1;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.exo-parcours-row-text strong {
  font-size: 15px;
  line-height: 1.3;
}

.exo-parcours-row-meta {
  font-size: 12px;
  color: var(--ink-3);
}

/* ── Groupes méthodologiques ─────────────────────────────── */
.exo-group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.exo-group-card.is-highlighted {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(42, 163, 184, 0.25), 0 4px 14px rgba(42, 163, 184, 0.12);
}

.exo-group-parcours.is-step-highlight {
  border-left: 3px solid var(--accent);
  padding-left: 16px;
  margin-left: -19px;
  background: rgba(42, 163, 184, 0.04);
  border-radius: 0 8px 8px 0;
}

.exo-step-banner {
  margin: 12px 0 0;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--ink-2);
  background: var(--accent-soft);
  border-radius: 8px;
  border-left: 3px solid var(--accent);
}

.exo-config-banner-wrap {
  padding: 12px 16px 0;
}

.config-banner {
  margin-bottom: 4px;
  padding: 12px 14px;
  background: #fdf6ee;
  border: 1px solid #e8d4bc;
  border-radius: 8px;
  font-size: 0.88rem;
  color: #9a6700;
}

.config-banner-steps {
  margin: 8px 0 0;
  padding-left: 1.25rem;
  color: #5c5346;
}

.config-banner-steps li {
  margin: 4px 0;
}

.config-banner a {
  color: var(--accent, #2aa3b8);
  font-weight: 600;
}

.exo-step-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent-2);
  background: var(--accent-soft);
  padding: 2px 8px;
  border-radius: 999px;
  vertical-align: middle;
  margin-left: 6px;
}

.exo-group-card {
  background: var(--white);
  border: 1px solid var(--paper-3);
  border-radius: 12px;
  box-shadow: var(--sh);
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.exo-group-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(42, 163, 184, 0.12);
}

.exo-group-card-link {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  text-decoration: none;
  color: inherit;
}

.exo-group-card-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.exo-group-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-2);
  font-size: 22px;
  font-weight: 700;
  flex-shrink: 0;
}

.exo-group-icon--lg {
  width: 56px;
  height: 56px;
  font-size: 28px;
}

.exo-group-card-titles {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.exo-group-card-titles h2 {
  font-family: var(--font-d);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
}

.exo-group-meta {
  font-size: 13px;
  color: var(--ink-3);
}

.exo-group-breakdown {
  font-size: 12px;
  color: var(--ink-3);
  margin: 4px 0 0;
  opacity: 0.9;
}

.exo-group-meta-note {
  font-size: 12px;
  color: var(--ink-3);
  margin: 6px 0 0;
  padding: 8px 10px;
  background: var(--paper-2);
  border-radius: 6px;
  border-left: 3px solid var(--accent, #2aa3b8);
}

.exo-group-meta-note-total {
  opacity: 0.85;
}

.exo-group-detail-intro {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 28px;
}

.exo-group-detail-text {
  flex: 1;
  min-width: 0;
}

.exo-group-detail-text h1 {
  font-family: var(--font-d);
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 8px;
  line-height: 1.25;
}

.exo-group-parcours {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--paper-3);
}

.exo-group-parcours:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.exo-group-parcours-head {
  margin-bottom: 16px;
}

.exo-group-parcours-title {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 6px;
}

.exo-group-parcours-title h3 {
  font-family: var(--font-d);
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.exo-group-parcours-open {
  margin-top: 10px;
}

/* ── Barre de progression (suivi) ────────────────────────── */
.exo-progress {
  display: flex;
  align-items: center;
  gap: 10px;
}

.exo-progress-track {
  flex: 1;
  height: 8px;
  background: var(--paper-2);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--paper-3);
}

.exo-progress-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-3, #5ec4d4));
  border-radius: 3px;
  transition: width 0.25s ease;
}

.exo-progress-pct {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-3);
  min-width: 2.5em;
  text-align: right;
}

/* ── Chevrons Adaptia (workflow exercices) ───────────────── */
/* Source: philo/philo.css .wizard-chevrons / .wiz-chev */
.exo-workflow {
  margin: 0 0 8px;
  padding: 8px 4px 4px;
  background: var(--paper);
  border: 1px solid var(--paper-3);
  border-radius: var(--r, 10px);
  overflow: hidden;
}

.exo-wizard-chevrons {
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--paper-3) transparent;
  padding: 4px 2px 10px;
  filter: drop-shadow(0 2px 5px rgba(28, 27, 46, 0.1));
}

.exo-wizard-chevrons::-webkit-scrollbar {
  height: 5px;
}

.exo-wizard-chevrons::-webkit-scrollbar-thumb {
  background: var(--paper-3);
  border-radius: 3px;
}

.exo-wiz-chev {
  flex: 0 0 auto;
  min-width: 0;
  position: relative;
  z-index: 1;
  padding: 10px 14px 10px 26px;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 7px;
  user-select: none;
  background: var(--c, var(--accent));
  opacity: 0.72;
  font-weight: 700;
  font-size: 12px;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%, 12px 50%);
  margin-left: -12px;
  transition: opacity 0.15s, filter 0.15s, transform 0.15s;
  box-shadow: 0 1px 3px rgba(28, 27, 46, 0.12);
}

.exo-wiz-chev:first-child {
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%);
  margin-left: 0;
  border-radius: 8px 0 0 8px;
}

.exo-wiz-chev:last-child {
  border-radius: 0 8px 8px 0;
  padding-right: 16px;
}

.exo-wiz-chev:nth-child(1) { z-index: 1; }
.exo-wiz-chev:nth-child(2) { z-index: 2; }
.exo-wiz-chev:nth-child(3) { z-index: 3; }
.exo-wiz-chev:nth-child(4) { z-index: 4; }
.exo-wiz-chev:nth-child(5) { z-index: 5; }
.exo-wiz-chev:nth-child(6) { z-index: 6; }
.exo-wiz-chev:nth-child(7) { z-index: 7; }
.exo-wiz-chev:nth-child(8) { z-index: 8; }
.exo-wiz-chev:nth-child(9) { z-index: 9; }
.exo-wiz-chev:nth-child(10) { z-index: 10; }
.exo-wiz-chev:nth-child(n+11) { z-index: 11; }

.exo-wiz-chev:hover {
  opacity: 0.92;
  z-index: 30;
  transform: translateY(-1px);
  color: #fff;
  text-decoration: none;
}

.exo-wiz-chev--locked {
  opacity: 0.38;
  cursor: not-allowed;
  filter: grayscale(0.55);
  pointer-events: none;
}

.exo-wiz-chev--locked:hover {
  opacity: 0.38;
  transform: none;
  z-index: 1;
}

.exo-wiz-chev--locked .exo-wiz-n {
  background: rgba(255, 255, 255, 0.18);
  font-size: 10px;
}

.exo-parcours-badge--progressive {
  background: #dbeafe;
  color: #1d4ed8;
  border: 1px solid #93c5fd;
}

.exo-parcours-phase {
  margin-bottom: 28px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--paper-3);
}

.exo-parcours-phase:last-child {
  border-bottom: none;
}

.exo-parcours-phase-head {
  margin-bottom: 12px;
}

.exo-parcours-phase-title {
  margin: 0 0 4px;
  font-size: 1.15rem;
  color: var(--ink);
}

.exo-parcours-phase-sub {
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.45;
}

.exo-parcours-phase-meta {
  margin: 0;
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 600;
}

.exo-wiz-chev.done {
  opacity: 0.95;
}

.exo-wiz-chev--missing {
  opacity: 0.45;
  cursor: default;
}

.exo-wiz-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
}

.exo-wiz-chev.done .exo-wiz-n {
  background: rgba(255, 255, 255, 0.4);
}

.exo-wiz-body {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.exo-wiz-lbl {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 9em;
  line-height: 1.2;
}

.exo-wiz-type {
  font-size: 10px;
  font-weight: 600;
  opacity: 0.85;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 9em;
}

.exo-wiz-done {
  display: inline-flex;
  align-items: center;
  margin-left: 2px;
  cursor: pointer;
  flex-shrink: 0;
}

.exo-wiz-done input {
  width: 14px;
  height: 14px;
  accent-color: #fff;
  cursor: pointer;
}

.exo-parcours-step h4.exo-parcours-step-title {
  font-size: 15px;
}

@media (max-width: 640px) {
  .exo-hub-tabs {
    flex-direction: column;
  }

  .exo-hub-tab {
    width: 100%;
    text-align: center;
  }

  .exo-parcours-row-main {
    flex-direction: column;
    align-items: flex-start;
  }

  .exo-parcours-row-main .exo-btn {
    width: 100%;
    text-align: center;
  }
}

/* -- Hierarchie + chevrons play ----------------------------- */
.exo-hierarchy-tag {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.exo-variant-lead {
  margin: 0 0 12px;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.45;
}

.exo-type-chev {
  padding: 0;
  gap: 0;
}

.exo-type-chev-main {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 8px 12px 28px;
  color: inherit;
  text-decoration: none;
  min-width: 0;
  flex: 1;
}

.exo-type-chev:first-child .exo-type-chev-main {
  padding-left: 14px;
}

.exo-type-chev-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-right: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  flex-shrink: 0;
  transition: background 0.15s, transform 0.15s;
}

.exo-type-chev-play:hover {
  background: rgba(255, 255, 255, 0.45);
  transform: scale(1.06);
  color: #fff;
}

.exo-type-chev--locked .exo-type-chev-play {
  display: none;
}

.exo-run-kicker-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
}

/* Pastilles header run : même boîte (type + variante + feedback) */
.exo-run-kicker-row > .exo-kicker,
.exo-run-kicker-row > .exo-variant-pill,
.exo-run-kicker-row > .exo-fb-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  margin: 0;
  padding: 4px 10px;
  min-height: 26px;
  line-height: 1.2;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 999px;
  vertical-align: middle;
}

.exo-run-kicker-row > .exo-kicker {
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
}

.exo-variant-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  background: var(--accent-soft);
  color: var(--accent-2);
}

.exo-run-kicker-row > .exo-fb-badge {
  margin-left: 0;
  text-transform: uppercase;
}

.exo-run-main > h1 {
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  line-height: 1.3;
  margin: 0 0 12px;
  clear: both;
}

.exo-run-main .exo-lead {
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0 0 18px;
  padding: 12px 14px;
  background: var(--paper);
  border-radius: var(--r);
  border-left: 3px solid var(--accent-soft-2);
}

.exo-interactive {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.exo-interactive.is-validating {
  pointer-events: none;
  opacity: 0.72;
}

.exo-imp-pick {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.exo-imp-pick .exo-option,
.exo-imp-pick label {
  display: grid;
  grid-template-columns: 1.25rem 1fr;
  align-items: start;
  column-gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--paper-3);
  border-radius: var(--r);
  background: var(--white);
  cursor: pointer;
  margin: 0;
}

.exo-imp-pick .exo-option-check {
  padding-top: calc((1.4 * 15px - 1.125rem) / 2);
}

.exo-imp-pick .exo-option:has(input:checked),
.exo-imp-pick label:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
  font-weight: 700;
}

.exo-imp-pick input {
  margin: 0;
  width: 1.125rem;
  height: 1.125rem;
  accent-color: var(--accent);
}

.exo-modal-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.exo-modal-check {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--paper-3);
  border-radius: var(--r);
  background: var(--white);
  cursor: pointer;
  margin: 0;
  font-size: 13px;
}

.exo-modal-check:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.exo-modal-check input {
  margin: 0;
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

/* -- Feedback Rodolphe ------------------------------------- */
.exo-fb-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-family: var(--font-b);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  vertical-align: middle;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #f59e0b;
}

.exo-fb-root {
  position: relative;
  z-index: 80;
}

.exo-fb-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border: none;
  border-radius: 999px;
  background: #1c1b2e;
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(28, 27, 46, 0.28);
}

.exo-fb-fab:hover,
.exo-fb-fab.is-open {
  background: #3a3856;
}

.exo-fb-fab-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 0 2px #1c1b2e;
}

.exo-fb-drawer {
  position: fixed;
  right: 18px;
  bottom: 72px;
  z-index: 91;
  width: min(380px, calc(100vw - 24px));
  max-height: min(78vh, 720px);
  overflow: auto;
  background: var(--white);
  border: 1px solid var(--paper-3);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(28, 27, 46, 0.22);
  padding: 16px;
}

.exo-fb-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.exo-fb-drawer-head h2 {
  margin: 0;
  font-family: var(--font-d);
  font-size: 1.15rem;
}

.exo-fb-close {
  border: none;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: var(--ink-3);
}

.exo-fb-hint {
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.45;
  margin: 0 0 12px;
}

.exo-fb-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.exo-fb-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-2);
}

.exo-fb-field input,
.exo-fb-field select,
.exo-fb-field textarea {
  font: inherit;
  font-weight: 400;
  padding: 8px 10px;
  border: 1px solid var(--paper-3);
  border-radius: var(--r);
  background: var(--white);
}

.exo-fb-actions,
.exo-fb-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.exo-fb-status {
  min-height: 1.2em;
  font-size: 12.5px;
  color: var(--accent-2);
  margin: 0;
}

.exo-fb-status.is-error {
  color: #b91c1c;
}

.exo-fb-list-wrap {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--paper-3);
}

.exo-fb-list-wrap h3 {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--ink-2);
}

.exo-fb-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.exo-fb-item-btn {
  width: 100%;
  text-align: left;
  border: 1px solid var(--paper-3);
  background: var(--paper);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font: inherit;
}

.exo-fb-item-btn:hover {
  border-color: var(--accent);
}

.exo-fb-item-kind {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}

.exo-fb-item-note {
  font-size: 12.5px;
  color: var(--ink-2);
}

.exo-fb-item-date {
  font-size: 11px;
  color: var(--ink-3);
}

.exo-fb-empty {
  font-size: 13px;
  color: var(--ink-3);
}

.exo-fb-import-lbl {
  cursor: pointer;
}

@media (max-width: 900px) {
  .exo-run-grid {
    grid-template-columns: 1fr;
  }

  .exo-feedback-panel {
    position: static;
  }

  .exo-run-main {
    padding: 20px 18px 24px;
  }
}

@media (max-width: 640px) {
  .exo-fb-fab-lbl {
    display: none;
  }

  .exo-fb-fab {
    padding: 14px;
  }

  .exo-type-chev {
    min-width: 160px;
    max-width: 240px;
  }

  .exo-shell--wide {
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   Accueil des exercices — rangé par ce que l'on travaille
   ═══════════════════════════════════════════════════════════════ */

.exo-home-lead { max-width: 62ch; }

/* ── La bande du Défi ────────────────────────────────────────── */

.exo-defi-bande {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin: 22px 0 8px;
  padding: 18px 22px;
  border-radius: 16px;
  background: linear-gradient(135deg, #2b2b52, #3f3f77);
  color: #f2f3fa;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(30, 30, 70, 0.16);
  transition: transform 0.15s, box-shadow 0.15s;
}

.exo-defi-bande:hover { transform: translateY(-1px); box-shadow: 0 7px 26px rgba(30, 30, 70, 0.22); }

.exo-defi-de { font-size: 30px; flex: 0 0 auto; }

.exo-defi-corps { flex: 1 1 320px; min-width: 0; }
.exo-defi-corps strong { display: block; font: 700 17px/1.3 system-ui, sans-serif; margin-bottom: 3px; }
.exo-defi-corps span { display: block; font: 400 13.5px/1.6 system-ui, sans-serif; color: #cfd2e8; }

.exo-defi-cta {
  flex: 0 0 auto;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.26);
  font: 600 13px system-ui, sans-serif;
}

/* ── L'entrée par la gêne ────────────────────────────────────── */

.exo-genes { margin: 26px 0 8px; }
.exo-genes h2 { margin: 0 0 4px; font-size: 17px; }
.exo-genes > p { margin: 0 0 12px; font: 400 13.5px/1.6 system-ui, sans-serif; color: #7a7a96; }

.exo-genes-liste { display: flex; flex-wrap: wrap; gap: 8px; }

.exo-gene {
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid rgba(20, 20, 60, 0.14);
  background: #fff;
  color: #3c3c5c;
  font: 400 13.5px/1.4 Georgia, serif;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.exo-gene::before { content: '« '; color: #a0a0bc; }
.exo-gene::after { content: ' »'; color: #a0a0bc; }
.exo-gene:hover { border-color: #6a6ab0; background: #f4f4fd; color: #26263a; }

/* ── Les univers ─────────────────────────────────────────────── */

.exo-univers { margin-top: 34px; }

.exo-univers-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(20, 20, 60, 0.1);
  padding-bottom: 7px;
}

.exo-univers-head h2 { margin: 0; font-size: 19px; }

.exo-univers-compte {
  margin-left: auto;
  font: 400 12px system-ui, sans-serif;
  color: #8a8aa4;
  white-space: nowrap;
}

.exo-univers-promesse {
  margin: 8px 0 16px;
  font: 400 14px/1.6 system-ui, -apple-system, sans-serif;
  color: #6a6a88;
  max-width: 66ch;
}



@media (max-width: 620px) {
  .exo-univers-compte { margin-left: 0; }
  .exo-defi-cta { width: 100%; text-align: center; }
}

/* ── « Conseillé pour vous » (coach) sur l'accueil ───────────── */
.coach-bloc--home {
  margin: 0 0 22px; padding: 16px 20px; border-radius: 14px;
  background: #f6faff; border: 1px solid rgba(40, 80, 140, .2);
}
.coach-bloc--home h4 { margin: 0 0 4px; font-size: 17px; }
.coach-bloc--home .coach-intro { margin: 0 0 10px; font-size: 13px; color: #55627a; }
.coach-bloc--home .coach-item { margin: 0 0 10px; }
.coach-bloc--home .coach-raison { margin: 0 0 6px; font-size: 13.5px; }
.coach-bloc--home .coach-exos { display: flex; flex-wrap: wrap; gap: 7px; }
.coach-bloc--home .coach-exo {
  display: inline-block; padding: 6px 13px; border-radius: 999px;
  background: #2d5e8f; color: #fff; text-decoration: none;
  font-size: 12.5px; font-weight: 600;
}
.coach-bloc--home .coach-exo:hover { background: #1f4a75; }

/* ── Laboratoire Prolog ──────────────────────────────────────── */
.plab-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 14px 0; }
@media (max-width: 760px) { .plab-grid { grid-template-columns: 1fr; } }
.plab-h { margin: 0 0 6px; font-size: 14px; }
.plab-lect { font-weight: 400; font-size: 11.5px; color: #8a8aa0; }
.plab-base {
  margin: 0 0 14px; padding: 12px 14px; border-radius: 10px;
  background: #1e1e2e; color: #cdd6f4; font: 500 13px/1.7 ui-monospace, 'Cascadia Code', Consolas, monospace;
  overflow-x: auto;
}
.plab-aide { margin: 0 0 6px; font-size: 12.5px; color: #6b6b84; }
.plab-aide code { background: #eef0f7; padding: 1px 5px; border-radius: 4px; }
.plab-regles { font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-size: 13.5px; }
.plab-req-ligne { display: flex; gap: 8px; margin-bottom: 8px; }
.plab-requete { flex: 1 1 auto; font-family: ui-monospace, Consolas, monospace; font-size: 13.5px; }
.plab-resultats {
  min-height: 70px; margin: 0 0 14px; padding: 10px 14px; border-radius: 10px;
  background: #f5f7ee; border: 1px solid rgba(80, 100, 40, .25);
}
.plab-sols { margin: 0; padding-left: 18px; font: 600 13.5px/1.8 ui-monospace, Consolas, monospace; }
.plab-vide, .plab-non { margin: 0; font-size: 13px; color: #6b6b84; }
.plab-erreur { margin: 0; font-size: 13px; color: #a33; }
.plab-erreur code { background: #fbeaea; padding: 1px 5px; border-radius: 4px; }
.plab-taches { list-style: none; margin: 0; padding: 0; }
.plab-taches li { margin: 0 0 8px; font-size: 13.5px; line-height: 1.55; }
.plab-etat { display: inline-block; width: 20px; font-weight: 700; color: #a0a0b8; }
.plab-etat.plab-ok { color: #2d6a4f; }

/* ── Machine de Turing (turing-lab) ──────────────────────────── */
.tlab-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 14px 0; }
@media (max-width: 820px) { .tlab-grid { grid-template-columns: 1fr; } }
.tlab-h { margin: 0 0 6px; font-size: 14px; }
.tlab-note { font-weight: 400; font-size: 11.5px; color: #8a8aa0; }
.tlab-table { border-collapse: collapse; font: 500 12.5px ui-monospace, Consolas, monospace; margin-bottom: 6px; }
.tlab-table th, .tlab-table td { border: 1px solid rgba(28,27,46,.15); padding: 4px 10px; text-align: center; }
.tlab-table th { background: #eef0f7; font-family: system-ui, sans-serif; font-size: 11.5px; }
.tlab-ctrl { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; align-items: center; }
.tlab-entree { max-width: 180px; font-family: ui-monospace, Consolas, monospace; }
.tlab-ruban { display: flex; gap: 3px; padding: 12px 4px; overflow-x: auto; min-height: 56px; }
.tlab-case {
  flex: 0 0 34px; height: 40px; display: grid; place-items: center;
  border: 1.5px solid rgba(28,27,46,.25); border-radius: 6px;
  font: 700 17px ui-monospace, Consolas, monospace; background: #fff;
}
.tlab-tete { border-color: #b5182b; background: #fdeef0; box-shadow: 0 2px 0 #b5182b; }
.tlab-statut { margin: 0 0 12px; font: 600 12.5px system-ui, sans-serif; color: #3a3856; }
.tlab-taches { margin: 0 0 8px; }
.tlab-tache { display: block; margin: 0 0 10px; font-size: 13.5px; }
.tlab-tache .exo-input { margin-top: 5px; max-width: 340px; font-family: ui-monospace, Consolas, monospace; }

/* ── Réducteur λ (lambda-lab) ────────────────────────────────── */
.llab-defs { margin: 12px 0; }
.llab-def {
  display: block; width: 100%; text-align: left; margin: 0 0 5px; padding: 7px 12px;
  border: 1px solid rgba(28,27,46,.15); border-radius: 8px; background: #fff; cursor: pointer;
  font: 500 13px ui-monospace, Consolas, monospace;
}
.llab-def:hover { border-color: #6a6ab0; background: #f6f6fd; }
.llab-terme { font-family: ui-monospace, Consolas, monospace; }
.llab-aff {
  min-height: 54px; margin: 4px 0 6px; padding: 12px 16px; border-radius: 10px;
  background: #1e1e2e; color: #cdd6f4; font: 500 15px/1.6 ui-monospace, Consolas, monospace;
  overflow-x: auto;
}
.llab-num { color: #a6e3a1; font-size: 17px; }

/* ── Cible et niveau sur les cartes de série ─────────────────── */
.exo-gcard-cible { margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.exo-cible-tag {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  background: #eef0f7; border: 1px solid rgba(28,27,46,.12);
  font: 600 11px system-ui, sans-serif; color: #4a4a68;
}
.exo-cible-niveau { background: #f2f9f5; border-color: rgba(45,106,79,.25); color: #2d6a4f; }

/* ── La page qui noircit (definiens-lab) ─────────────────────── */
.dlab-grid { display: grid; grid-template-columns: minmax(230px, 320px) 1fr; gap: 20px; margin: 14px 0; }
@media (max-width: 700px) { .dlab-grid { grid-template-columns: 1fr; } }
.dlab-page { max-width: 320px; }
.dlab-svg { width: 100%; height: auto; display: block; border-radius: 4px; box-shadow: 0 3px 14px rgba(28,27,46,.18); }
.dlab-ctrl { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 8px; }
.dlab-compteur { margin: 0 0 10px; font: 600 12.5px system-ui, sans-serif; color: #3a3856; }
.dlab-legende { margin: 0 0 12px; padding-left: 20px; font-size: 13px; }
.dlab-legende li { margin: 0 0 6px; }
.dlab-b { color: #7a1f1a; font: 700 11.5px system-ui, sans-serif; }
.dlab-def {
  margin: 4px 0 6px; padding: 10px 14px; border-radius: 10px;
  background: #1e1e2e; color: #cdd6f4; font: 500 12.5px/1.7 ui-monospace, Consolas, monospace;
  overflow-x: auto; white-space: nowrap; max-width: 100%;
}
.dlab-question { margin-top: 16px; padding-top: 6px; border-top: 1px dashed rgba(28,27,46,.2); }
.dlab-q { font-weight: 700; }
.dlab-choix { margin-bottom: 8px; }

/* Message de réponse incomplète (remplace l'ancienne pop-up navigateur) */
.exo-feedback-incomplet {
  padding: 12px 14px; border-radius: 10px; font-size: 13.5px; line-height: 1.5;
  background: #fdf6ec; border: 1px solid rgba(180,83,9,.35); color: #7a5a1e;
}

/* Retour à lire : la page ne s'enfuit plus sous les yeux de l'élève */
.exo-advance-banner--lire { border-left: 3px solid #b58a2b; background: rgba(181,138,43,.08); }
.exo-advance-banner--lire .exo-advance-banner-text { font-weight: 600; }
.exo-advance-banner--lire .exo-advance-banner-timer { opacity: .75; font-style: italic; }

/* ============================================================
   Refonte « parcours » — accueil et détail de groupe sobres
   (2026-09-15) — s'ajoute au CSS existant, classes dédiées.
   ============================================================ */
.exo-hub{
  --exo-ink:#23232b; --exo-muted:#6f6f7d; --exo-faint:#9a9aa8;
  --exo-line:rgba(30,30,55,.11); --exo-surface:#ffffff; --exo-surface-2:#f6f4ee;
  --exo-accent:#a86b1e; --exo-accent-2:#8a5615;
  --exo-done:#1f9d55; --exo-prog:#dd8a12; --exo-todo:#aab0bd;
}
@media (prefers-color-scheme:dark){
  .exo-hub:not([data-theme="light"]){
    --exo-ink:#ece9e2; --exo-muted:#a6a6b4; --exo-faint:#7d7d8c;
    --exo-line:rgba(255,255,255,.13); --exo-surface:#1d1e24; --exo-surface-2:#24252d;
    --exo-accent:#d7a24e; --exo-accent-2:#e3b96a;
  }
}
/* colonne de lecture confortable */
.exo-home2-hero,.exo-spine-head,.exo-spine,.exo-browse,
.exo-gd-hero,.exo-steplist{ max-width:820px; margin-left:auto; margin-right:auto; }

/* ---- Accueil : héros ---- */
.exo-home2-hero{ text-align:center; padding:26px 20px 30px; }
.exo-home2-hero h1{ font-family:"Source Serif 4",Georgia,serif; font-size:2rem; line-height:1.15; margin:0 0 10px; color:var(--exo-ink); }
.exo-home2-lead{ color:var(--exo-muted); font-size:1.02rem; line-height:1.5; max-width:56ch; margin:0 auto 20px; }
.exo-resume{ margin:0 0 18px; }
.exo-resume-btn{
  display:inline-flex; align-items:center; gap:.5em;
  background:var(--exo-accent); color:#fff; text-decoration:none;
  font-weight:700; font-size:1.02rem; padding:13px 26px; border-radius:999px;
  box-shadow:0 2px 10px rgba(168,107,30,.28); transition:transform .12s ease, background .12s ease;
}
.exo-resume-btn:hover{ background:var(--exo-accent-2); transform:translateY(-1px); }
.exo-resume-where{ color:var(--exo-muted); font-size:.95rem; margin:12px 0 0; }
.exo-resume-where strong{ color:var(--exo-ink); }
.exo-home2-count{ color:var(--exo-faint); font-size:.85rem; margin:8px 0 0; letter-spacing:.02em; }

/* ---- Titre de section parcours ---- */
.exo-spine-head{ text-align:center; padding:6px 20px 4px; }
.exo-spine-head h2{ font-family:"Source Serif 4",Georgia,serif; font-size:1.28rem; color:var(--exo-ink); margin:0 0 4px; }
.exo-spine-head p{ color:var(--exo-muted); font-size:.92rem; margin:0; }

/* ---- Le rail vertical des gestes ---- */
.exo-spine{ list-style:none; margin:16px auto 8px; padding:0 20px; position:relative; }
.exo-spine::before{ content:""; position:absolute; left:calc(20px + 21px); top:12px; bottom:12px; width:2px; background:var(--exo-line); }
.exo-station{ position:relative; margin:0 0 12px; }
.exo-station-link{
  display:flex; align-items:center; gap:16px; text-decoration:none;
  background:var(--exo-surface); border:1px solid var(--exo-line); border-radius:14px;
  padding:14px 16px; transition:border-color .12s ease, box-shadow .12s ease, transform .12s ease;
}
.exo-station-link:hover{ border-color:var(--exo-accent); box-shadow:0 4px 16px rgba(30,30,55,.08); transform:translateY(-1px); }
.exo-station-num{
  flex:0 0 auto; width:44px; height:44px; border-radius:50%;
  display:grid; place-items:center; font-family:"Source Serif 4",Georgia,serif; font-size:1.15rem; font-weight:600;
  background:var(--exo-surface-2); color:var(--exo-muted); border:2px solid var(--exo-line); position:relative; z-index:1;
}
.exo-station--progress .exo-station-num{ border-color:var(--exo-prog); color:var(--exo-prog); }
.exo-station--acquired .exo-station-num{ border-color:var(--exo-done); color:#fff; background:var(--exo-done); }
.exo-station-body{ flex:1 1 auto; min-width:0; display:flex; flex-direction:column; gap:5px; }
.exo-station-title{ font-weight:700; color:var(--exo-ink); font-size:1.04rem; }
.exo-station-sub{ color:var(--exo-muted); font-size:.9rem; line-height:1.35; }
.exo-station-meta{ display:flex; align-items:center; gap:10px; font-size:.82rem; margin-top:1px; }
.exo-station-status{ font-weight:600; }
.exo-station-status--acquired{ color:var(--exo-done); }
.exo-station-status--progress{ color:var(--exo-prog); }
.exo-station-status--none{ color:var(--exo-faint); }
.exo-station-count{ color:var(--exo-faint); }
.exo-station-go{ flex:0 0 auto; color:var(--exo-faint); font-size:1.4rem; line-height:1; }
.exo-mini-bar{ display:block; height:5px; border-radius:3px; background:var(--exo-line); overflow:hidden; }
.exo-mini-bar-fill{ display:block; height:100%; background:var(--exo-accent); border-radius:3px; }
.exo-station--acquired .exo-mini-bar-fill{ background:var(--exo-done); }
.exo-station--progress .exo-mini-bar-fill{ background:var(--exo-prog); }

/* ---- Tout parcourir ---- */
.exo-browse{ padding:26px 20px 40px; border-top:1px solid var(--exo-line); margin-top:26px; }
.exo-browse-h{ font-family:"Source Serif 4",Georgia,serif; font-size:1.2rem; color:var(--exo-ink); margin:0 0 4px; text-align:center; }
.exo-browse-lead{ color:var(--exo-muted); font-size:.9rem; text-align:center; margin:0 auto 18px; max-width:52ch; }
.exo-browse-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(230px,1fr)); gap:12px; }
.exo-browse-card{
  display:flex; flex-direction:column; gap:7px; text-decoration:none;
  background:var(--exo-surface); border:1px solid var(--exo-line); border-radius:12px; padding:13px 15px;
  transition:border-color .12s ease, transform .12s ease;
}
.exo-browse-card:hover{ border-color:var(--exo-accent); transform:translateY(-1px); }
.exo-browse-title{ font-weight:700; color:var(--exo-ink); font-size:.98rem; }
.exo-browse-desc{ color:var(--exo-muted); font-size:.85rem; line-height:1.35; flex:1 1 auto; }
.exo-browse-foot{ display:flex; align-items:center; gap:10px; }
.exo-browse-foot .exo-mini-bar{ flex:1 1 auto; }
.exo-browse-count{ color:var(--exo-faint); font-size:.8rem; flex:0 0 auto; }

/* ---- Détail d'un geste : liste ordonnée d'exercices ---- */
.exo-gd-hero{ padding:22px 20px 20px; border-bottom:1px solid var(--exo-line); }
.exo-gd-back{ display:inline-block; color:var(--exo-muted); text-decoration:none; font-size:.9rem; margin-bottom:10px; }
.exo-gd-back:hover{ color:var(--exo-accent); }
.exo-gd-hero h1{ font-family:"Source Serif 4",Georgia,serif; font-size:1.6rem; color:var(--exo-ink); margin:0 0 6px; }
.exo-gd-desc{ color:var(--exo-muted); font-size:.98rem; line-height:1.45; margin:0 0 8px; max-width:60ch; }
.exo-gd-meta{ color:var(--exo-faint); font-size:.85rem; margin:0 0 12px; }
.exo-gd-resume{ margin-top:14px; }

.exo-steplist{ list-style:none; margin:18px auto 44px; padding:0 20px; }
.exo-steplist-sub{ font-family:"Source Sans 3",sans-serif; font-size:.78rem; text-transform:uppercase; letter-spacing:.08em; color:var(--exo-faint); margin:18px 0 8px; padding-left:2px; }
.exo-steprow{ margin:0 0 8px; }
.exo-steprow-link{
  display:flex; align-items:center; gap:14px; text-decoration:none;
  background:var(--exo-surface); border:1px solid var(--exo-line); border-radius:12px; padding:12px 15px;
  transition:border-color .12s ease, box-shadow .12s ease, transform .12s ease;
}
a.exo-steprow-link:hover{ border-color:var(--exo-accent); box-shadow:0 3px 12px rgba(30,30,55,.07); transform:translateY(-1px); }
.exo-step-num{
  flex:0 0 auto; width:34px; height:34px; border-radius:50%; display:grid; place-items:center;
  font-size:.95rem; font-weight:700; background:var(--exo-surface-2); color:var(--exo-muted); border:1.5px solid var(--exo-line);
}
.exo-steprow--done .exo-step-num{ background:var(--exo-done); color:#fff; border-color:var(--exo-done); }
.exo-steprow--current .exo-step-num{ background:var(--exo-accent); color:#fff; border-color:var(--exo-accent); }
.exo-step-main{ flex:1 1 auto; min-width:0; display:flex; flex-direction:column; gap:4px; }
.exo-step-title{ color:var(--exo-ink); font-weight:600; font-size:.98rem; }
.exo-step-tags{ display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.exo-step-type{ font-size:.76rem; color:var(--exo-muted); background:var(--exo-surface-2); border:1px solid var(--exo-line); border-radius:6px; padding:1px 8px; }
.exo-step-dur{ font-size:.78rem; color:var(--exo-faint); }
.exo-step-cta{ flex:0 0 auto; color:#fff; background:var(--exo-accent); font-weight:700; font-size:.86rem; padding:7px 14px; border-radius:999px; white-space:nowrap; }
.exo-step-badge{ flex:0 0 auto; color:var(--exo-done); font-weight:600; font-size:.82rem; white-space:nowrap; }
.exo-step-lockw{ flex:0 0 auto; color:var(--exo-faint); font-size:.82rem; white-space:nowrap; }
.exo-step-go{ flex:0 0 auto; color:var(--exo-faint); font-size:1.3rem; line-height:1; }
.exo-steprow--current .exo-steprow-link{ border-color:var(--exo-accent); box-shadow:0 0 0 1px var(--exo-accent) inset; }
.exo-steprow--locked .exo-steprow-link--locked{ opacity:.58; cursor:not-allowed; background:var(--exo-surface-2); }
.exo-steprow--locked .exo-step-title{ color:var(--exo-muted); }

@media (max-width:560px){
  .exo-home2-hero h1{ font-size:1.65rem; }
  .exo-station-link{ gap:12px; padding:12px 13px; }
  .exo-station-num{ width:38px; height:38px; font-size:1rem; }
  .exo-spine::before{ left:calc(20px + 18px); }
  .exo-browse-grid{ grid-template-columns:1fr; }
  .exo-step-cta{ padding:6px 11px; }
}

/* ============================================================
   Calque « chaleur » — couleur par geste (2026-09-15b)
   ============================================================ */
.exo-hub{ --exo-surface:#fffdf9; --exo-surface-2:#f5efe3; }
@media (prefers-color-scheme:dark){
  .exo-hub:not([data-theme="light"]){ --exo-surface:#1f2027; --exo-surface-2:#282a33; }
}
.exo-home2-hero{
  background:radial-gradient(125% 135% at 50% -25%, rgba(168,107,30,.11), rgba(168,107,30,0) 62%);
  border-radius:0 0 22px 22px;
}
.exo-resume-where strong{ color:var(--exo-accent); }

/* Stations : chaque geste porte sa teinte */
.exo-station-link{ border-left:4px solid var(--st,var(--exo-accent)); }
.exo-station-link:hover{ border-color:var(--st,var(--exo-accent)); }
.exo-station-num{ color:var(--st); border-color:var(--st); background:var(--exo-surface-2); background:color-mix(in srgb, var(--st) 13%, var(--exo-surface)); }
.exo-station--progress .exo-station-num{ color:var(--st); border-color:var(--st); }
.exo-station--acquired .exo-station-num{ background:var(--exo-done); color:#fff; border-color:var(--exo-done); }
.exo-station-status--none{ color:var(--st); }
.exo-mini-bar-fill{ background:var(--st,var(--exo-accent)); }
.exo-station--acquired .exo-mini-bar-fill{ background:var(--exo-done); }

/* Tout parcourir : liseré coloré par série */
.exo-browse-card{ border-top:3px solid var(--st,var(--exo-accent)); }
.exo-browse-card:hover{ border-color:var(--exo-line); border-top-color:var(--st); }
.exo-browse-card .exo-mini-bar-fill{ background:var(--st,var(--exo-accent)); }

/* Détail : le geste colore l'en-tête, l'exercice courant et les pastilles de type */
.exo-gd-hero{
  border-left:5px solid var(--g-accent,var(--exo-accent)); padding-left:22px;
  background:linear-gradient(100deg, rgba(0,0,0,0), rgba(0,0,0,0));
  background:linear-gradient(100deg, color-mix(in srgb, var(--g-accent) 9%, transparent), transparent 45%);
}
.exo-gd-hero h1{ color:var(--g-accent,var(--exo-ink)); }
.exo-steprow--current .exo-step-num{ background:var(--g-accent,var(--exo-accent)); border-color:var(--g-accent,var(--exo-accent)); }
.exo-steprow--current .exo-steprow-link{ border-color:var(--g-accent,var(--exo-accent)); box-shadow:0 0 0 1px var(--g-accent,var(--exo-accent)) inset; }
.exo-steprow--current .exo-step-cta{ background:var(--g-accent,var(--exo-accent)); }
.exo-step-type{
  color:var(--g-accent,var(--exo-muted));
  border-color:var(--exo-line);
  border-color:color-mix(in srgb, var(--g-accent) 32%, var(--exo-line));
  background:var(--exo-surface-2);
  background:color-mix(in srgb, var(--g-accent) 8%, var(--exo-surface));
}

/* ============================================================
   Chasse au texte — jeu de recherche documentaire (2026-09-15c)
   ============================================================ */
.chasse{
  --ch-ink:#23232b; --ch-muted:#6f6f7d; --ch-faint:#9a9aa8; --ch-line:rgba(30,30,55,.12);
  --ch-surface:#fffdf9; --ch-surface-2:#f5efe3; --ch-accent:#a86b1e; --ch-accent-2:#8a5615;
  --ch-manuel:#0e7490; --ch-histoire:#9f1239; --ch-phono:#6d28d9;
  display:flex; flex-direction:column; gap:18px;
}
@media (prefers-color-scheme:dark){
  .chasse{ --ch-ink:#ece9e2; --ch-muted:#a6a6b4; --ch-faint:#7d7d8c; --ch-line:rgba(255,255,255,.14);
    --ch-surface:#1f2027; --ch-surface-2:#282a33; --ch-accent:#d7a24e; --ch-accent-2:#e3b96a;
    --ch-manuel:#38b6d6; --ch-histoire:#f0728f; --ch-phono:#b79bff; }
}
.chasse-k{ font-size:.74rem; text-transform:uppercase; letter-spacing:.1em; color:var(--ch-faint); margin:0 0 6px; font-weight:700; }
.chasse-commande{ background:var(--ch-surface-2); border:1px solid var(--ch-line); border-left:5px solid var(--ch-accent); border-radius:12px; padding:16px 18px; }
.chasse-commande-txt{ font-size:1.06rem; line-height:1.5; color:var(--ch-ink); margin:0; font-family:"Source Serif 4",Georgia,serif; }
.chasse-but{ margin:10px 0 0; color:var(--ch-muted); font-size:.94rem; }
.chasse-but strong{ color:var(--ch-ink); }
.chasse-meta{ display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.chasse-meta-tag{ font-size:.78rem; color:var(--ch-accent-2); background:var(--ch-surface); border:1px solid var(--ch-line); border-radius:999px; padding:3px 11px; }

.chasse-indices{ border:1px solid var(--ch-line); border-radius:12px; padding:14px 16px; background:var(--ch-surface); }
.chasse-indice-list{ list-style:none; margin:0 0 8px; padding:0; display:flex; flex-direction:column; gap:8px; }
.chasse-indice{ display:flex; gap:10px; align-items:flex-start; color:var(--ch-ink); font-size:.96rem; line-height:1.4; }
.chasse-indice-n{ flex:0 0 auto; width:22px; height:22px; border-radius:50%; background:var(--ch-accent); color:#fff; font-size:.78rem; font-weight:700; display:grid; place-items:center; margin-top:1px; }
.chasse-indice-btn{ background:none; border:1px dashed var(--ch-accent); color:var(--ch-accent-2); border-radius:999px; padding:6px 14px; font-size:.85rem; font-weight:600; cursor:pointer; }
.chasse-indice-btn:hover{ background:var(--ch-surface-2); }
.chasse-indice-done{ margin:0; color:var(--ch-faint); font-size:.85rem; font-style:italic; }

.chasse-input{ width:100%; box-sizing:border-box; padding:11px 14px; border:1.5px solid var(--ch-line); border-radius:10px; font-size:1rem; background:var(--ch-surface); color:var(--ch-ink); }
.chasse-input:focus{ outline:none; border-color:var(--ch-accent); box-shadow:0 0 0 3px rgba(168,107,30,.15); }
.chasse-search-hint{ margin:6px 2px 0; color:var(--ch-faint); font-size:.8rem; }
.chasse-results{ margin-top:12px; display:flex; flex-direction:column; gap:10px; }
.chasse-results-empty{ color:var(--ch-faint); font-size:.9rem; margin:6px 2px; }
.chasse-res{ display:flex; gap:12px; align-items:flex-start; justify-content:space-between; border:1px solid var(--ch-line); border-radius:11px; padding:12px 14px; background:var(--ch-surface); }
.chasse-res:hover{ border-color:var(--ch-accent); }
.chasse-res-main{ display:flex; flex-direction:column; gap:4px; min-width:0; }
.chasse-res-kind{ align-self:flex-start; font-size:.72rem; font-weight:700; text-transform:uppercase; letter-spacing:.06em; padding:1px 8px; border-radius:6px; color:#fff; }
.chasse-res-kind--manuel{ background:var(--ch-manuel); }
.chasse-res-kind--histoire{ background:var(--ch-histoire); }
.chasse-res-kind--phono{ background:var(--ch-phono); }
.chasse-res-title{ font-weight:700; color:var(--ch-ink); font-size:.98rem; }
.chasse-res-auth{ color:var(--ch-muted); font-size:.85rem; }
.chasse-res-snip{ color:var(--ch-faint); font-size:.84rem; line-height:1.4; }
.chasse-res-act{ flex:0 0 auto; display:flex; flex-direction:column; gap:6px; align-items:stretch; }
.chasse-res-pick{ background:var(--ch-accent); color:#fff; border:none; border-radius:999px; padding:7px 14px; font-size:.84rem; font-weight:700; cursor:pointer; white-space:nowrap; }
.chasse-res-pick:hover{ background:var(--ch-accent-2); }
.chasse-res-open{ text-align:center; color:var(--ch-muted); font-size:.8rem; text-decoration:none; border:1px solid var(--ch-line); border-radius:999px; padding:5px 12px; }
.chasse-res-open:hover{ color:var(--ch-accent); border-color:var(--ch-accent); }

.chasse-pick-empty{ color:var(--ch-faint); font-size:.9rem; margin:0; padding:12px 14px; border:1px dashed var(--ch-line); border-radius:11px; }
.chasse-pick-card{ display:flex; flex-direction:column; gap:3px; border:1px solid var(--ch-accent); background:var(--ch-surface-2); border-radius:11px; padding:12px 14px; position:relative; }
.chasse-pick-k{ font-size:.72rem; text-transform:uppercase; letter-spacing:.08em; color:var(--ch-accent-2); font-weight:700; }
.chasse-pick-title{ font-weight:700; color:var(--ch-ink); }
.chasse-pick-sub{ color:var(--ch-muted); font-size:.85rem; }
.chasse-pick-clear{ position:absolute; top:10px; right:12px; background:none; border:none; color:var(--ch-accent-2); font-size:.82rem; text-decoration:underline; cursor:pointer; }

/* ===== Fil rouge : trois extraits ===== */
.fil-extraits{ display:flex; flex-direction:column; gap:12px; margin:14px 0 20px; }
.fil-extrait{ margin:0; border:1px solid rgba(30,30,55,.12); border-left:4px solid #a86b1e; border-radius:12px; background:#fffdf9; padding:12px 15px; }
.fil-extrait-cap{ display:flex; align-items:center; gap:10px; margin-bottom:8px; }
.fil-extrait-n{ flex:0 0 auto; width:24px; height:24px; border-radius:50%; background:#a86b1e; color:#fff; font-weight:700; font-size:.8rem; display:grid; place-items:center; }
.fil-extrait-src{ font-size:.85rem; font-weight:600; color:#6f6f7d; flex:1 1 auto; }
.fil-extrait-open{ font-size:.78rem; color:#8a5615; text-decoration:none; border:1px solid rgba(30,30,55,.12); border-radius:999px; padding:2px 10px; }
.fil-extrait-txt{ margin:0; font-family:"Source Serif 4",Georgia,serif; font-size:1rem; line-height:1.5; color:#23232b; }
@media (prefers-color-scheme:dark){
  .fil-extrait{ background:#1f2027; border-color:rgba(255,255,255,.13); }
  .fil-extrait-src{ color:#a6a6b4; } .fil-extrait-txt{ color:#ece9e2; }
  .fil-extrait-open{ color:#d7a24e; border-color:rgba(255,255,255,.16); }
}

/* ===== Reconstituer le plan : rang ===== */
.exo-sort-item .exo-sort-rank{ flex:0 0 auto; width:22px; height:22px; border-radius:50%; background:#a86b1e; color:#fff; font-size:.78rem; font-weight:700; display:inline-grid; place-items:center; margin-right:8px; }
/* ===== Trouver le sujet ===== */
.tsu-bloc{ margin:12px 0 16px; }
.tsu-k{ display:block; font-size:.74rem; text-transform:uppercase; letter-spacing:.09em; color:#9a9aa8; font-weight:700; margin-bottom:6px; }
.tsu-amorce{ margin:0; border-left:4px solid #a86b1e; background:#fffdf9; border-radius:0 10px 10px 0; padding:12px 16px; font-family:"Source Serif 4",Georgia,serif; font-size:1.02rem; line-height:1.55; color:#23232b; }
.tsu-args{ margin:0; padding-left:1.3em; display:flex; flex-direction:column; gap:6px; }
.tsu-args li{ font-family:"Source Serif 4",Georgia,serif; line-height:1.5; color:#23232b; }
@media (prefers-color-scheme:dark){
  .tsu-amorce{ background:#1f2027; color:#ece9e2; } .tsu-args li{ color:#ece9e2; } .tsu-k{ color:#7d7d8c; }
}

/* ===== Qui a dit ? ===== */
.qad-cite{ margin:12px 0 16px; border-left:4px solid #6d28d9; background:#faf8ff; border-radius:0 10px 10px 0; padding:14px 18px; font-family:"Source Serif 4",Georgia,serif; font-size:1.12rem; line-height:1.55; color:#23232b; font-style:italic; }
@media (prefers-color-scheme:dark){ .qad-cite{ background:#221f2b; color:#ece9e2; border-left-color:#b79bff; } }

/* ===== Qui a dit ? — deux temps ===== */
.qad-step{ margin-top:18px; font-weight:700; color:#a86b1e; }
.qad-relance{ margin:2px 0 8px; color:#6f6f7d; font-size:.92rem; line-height:1.4; }
@media (prefers-color-scheme:dark){ .qad-step{ color:#d7a24e; } .qad-relance{ color:#a6a6b4; } }

/* ===== Accueil exercices — engageant (2026-09-15 home2) ===== */
.exo-actions{ display:flex; flex-wrap:wrap; gap:12px; justify-content:center; margin:8px 0 18px; }
.exo-big{ flex:1 1 220px; max-width:280px; display:flex; flex-direction:column; gap:4px; text-decoration:none; border-radius:16px; padding:16px 18px; color:#fff; box-shadow:0 4px 16px rgba(30,30,55,.12); transition:transform .12s ease, box-shadow .12s ease; }
.exo-big:hover{ transform:translateY(-2px); box-shadow:0 8px 24px rgba(30,30,55,.18); }
.exo-big-k{ font-family:"Source Serif 4",Georgia,serif; font-size:1.15rem; font-weight:700; }
.exo-big-go{ font-size:.85rem; opacity:.92; }
.exo-big--defi{ background:linear-gradient(135deg,#a86b1e,#c98a2e); }
.exo-big--surprise{ background:linear-gradient(135deg,#6d28d9,#8b5cf6); }
.exo-big--reprendre{ background:linear-gradient(135deg,#0e7490,#12a3c0); }

.exo-moods-head{ text-align:center; margin:22px 0 2px; }
.exo-moods-head h2{ font-family:"Source Serif 4",Georgia,serif; font-size:1.28rem; color:var(--exo-ink,#23232b); margin:0; }
.exo-moods{ max-width:820px; margin:12px auto 6px; padding:0 20px; display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:12px; }
.exo-mood{ display:flex; flex-direction:column; gap:4px; text-decoration:none; background:var(--exo-surface,#fff); border:1px solid var(--exo-line,rgba(30,30,55,.11)); border-top:3px solid var(--m,#a86b1e); border-radius:14px; padding:14px 15px; transition:transform .12s ease, border-color .12s ease; }
.exo-mood:hover{ transform:translateY(-2px); border-color:var(--m,#a86b1e); }
.exo-mood-ic{ font-size:1.5rem; line-height:1; }
.exo-mood-lab{ font-weight:700; color:var(--exo-ink,#23232b); }
.exo-mood-sub{ font-size:.82rem; color:var(--exo-muted,#6f6f7d); flex:1 1 auto; }
.exo-mood .exo-mini-bar-fill{ background:var(--m,#a86b1e); }

.exo-coach{ max-width:820px; margin:22px auto 6px; padding:16px 18px; background:linear-gradient(180deg, color-mix(in srgb, #a86b1e 8%, var(--exo-surface,#fff)), var(--exo-surface,#fff)); border:1px solid var(--exo-line,rgba(30,30,55,.11)); border-radius:16px; }
.exo-coach-h{ font-family:"Source Serif 4",Georgia,serif; font-size:1.18rem; margin:0 0 2px; color:var(--exo-ink,#23232b); }
.exo-coach-lead{ font-size:.9rem; color:var(--exo-muted,#6f6f7d); margin:0 0 12px; }
.exo-coach-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:12px; }
.exo-coach-card{ display:flex; flex-direction:column; gap:5px; text-decoration:none; background:var(--exo-surface,#fff); border:1px solid var(--exo-line,rgba(30,30,55,.11)); border-left:4px solid #a86b1e; border-radius:12px; padding:12px 14px; transition:transform .12s ease, box-shadow .12s ease; }
.exo-coach-card:hover{ transform:translateY(-1px); box-shadow:0 4px 14px rgba(30,30,55,.1); }
.exo-coach-comp{ font-size:.72rem; text-transform:uppercase; letter-spacing:.06em; font-weight:700; color:#a86b1e; }
.exo-coach-titre{ font-weight:700; color:var(--exo-ink,#23232b); }
.exo-coach-motif{ font-size:.83rem; color:var(--exo-muted,#6f6f7d); line-height:1.4; }
.exo-coach-go{ font-size:.8rem; color:#8a5615; font-weight:600; }
@media(max-width:560px){ .exo-big{ max-width:none; } }

/* ===== Trois concepts ===== */
.tc-tirage{ background:#faf8ff; border:1px solid rgba(109,40,217,.2); border-radius:14px; padding:16px 18px; margin:12px 0 16px; }
.tc-concepts{ display:flex; flex-wrap:wrap; align-items:center; gap:8px; justify-content:center; margin-bottom:12px; }
.tc-concept{ font-family:"Source Serif 4",Georgia,serif; font-size:1.2rem; font-weight:700; color:#4c1d95; background:#fff; border:1.5px solid rgba(109,40,217,.35); border-radius:10px; padding:6px 14px; }
.tc-plus{ color:#8b5cf6; font-weight:700; font-size:1.1rem; }
.tc-contrainte{ background:#fff; border-left:4px solid #6d28d9; border-radius:0 10px 10px 0; padding:10px 14px; font-size:.95rem; line-height:1.45; color:#23232b; }
.tc-contrainte-k{ display:block; font-size:.72rem; text-transform:uppercase; letter-spacing:.08em; font-weight:700; color:#6d28d9; margin-bottom:4px; }
.tc-redraw{ display:inline-block; margin-top:12px; background:none; border:1px dashed #6d28d9; color:#6d28d9; border-radius:999px; padding:7px 16px; font-size:.88rem; font-weight:600; cursor:pointer; }
.tc-redraw:hover{ background:#f0e9ff; }
@media(prefers-color-scheme:dark){ .tc-tirage{ background:#221f2b; border-color:rgba(183,155,255,.3); } .tc-concept{ background:#2a2635; color:#c9b6ff; } .tc-contrainte{ background:#2a2635; color:#ece9e2; } }

/* ===== Home2b — icônes SVG + actions fines ===== */
.exo-act-ic svg, .exo-mood-ic svg{ width:22px; height:22px; stroke-width:1.7; display:block; }
.exo-actions{ display:flex; flex-wrap:wrap; gap:10px; justify-content:center; margin:6px 0 18px; }
.exo-act{ display:flex; align-items:center; gap:12px; text-decoration:none; background:var(--exo-surface,#fff); border:1px solid var(--exo-line,rgba(30,30,55,.12)); border-radius:14px; padding:12px 16px; min-width:206px; transition:border-color .12s ease, transform .12s ease, box-shadow .12s ease; }
.exo-act:hover{ transform:translateY(-1px); border-color:var(--exo-accent,#a86b1e); box-shadow:0 4px 16px rgba(30,30,55,.08); }
.exo-act-ic{ flex:0 0 auto; width:40px; height:40px; border-radius:11px; display:grid; place-items:center; background:var(--exo-surface-2,#f5efe3); color:var(--exo-muted,#6f6f7d); }
.exo-act-body{ display:flex; flex-direction:column; line-height:1.25; }
.exo-act-body b{ color:var(--exo-ink,#23232b); font-size:1rem; }
.exo-act-body i{ font-style:normal; font-size:.82rem; color:var(--exo-muted,#6f6f7d); }
.exo-act--primary{ border-color:var(--exo-accent,#a86b1e); background:linear-gradient(180deg, color-mix(in srgb, #a86b1e 8%, var(--exo-surface,#fff)), var(--exo-surface,#fff)); }
.exo-act--primary .exo-act-ic{ background:var(--exo-accent,#a86b1e); color:#fff; }
.exo-mood-ic{ width:38px; height:38px; border-radius:11px; display:grid; place-items:center; background:color-mix(in srgb, var(--m,#a86b1e) 14%, #fff); color:var(--m,#a86b1e); margin-bottom:2px; }
@media (prefers-color-scheme:dark){ .exo-mood-ic{ background:color-mix(in srgb, var(--m,#a86b1e) 26%, #1f2027); } .exo-act-ic{ background:#282a33; } }

/* ── Invitation à la carte des actes ── */
.exo-carte-invite{display:flex;align-items:center;gap:16px;margin:0 0 20px;padding:16px 20px;text-decoration:none;color:var(--ink,#1a2330);
  background:linear-gradient(110deg,#14232a 0%,#1c3b37 62%,#16302e 100%);border-radius:16px;box-shadow:0 14px 34px -18px rgba(20,35,42,.6);position:relative;overflow:hidden}
.exo-carte-invite::after{content:"";position:absolute;right:-40px;top:-40px;width:180px;height:180px;border-radius:50%;background:radial-gradient(circle,rgba(233,193,108,.22),transparent 70%)}
.exo-carte-ic{flex:0 0 auto;width:46px;height:46px;display:grid;place-items:center;border-radius:12px;background:rgba(233,193,108,.14);color:#e9c16c}
.exo-carte-ic svg{width:26px;height:26px}
.exo-carte-body{flex:1 1 auto;display:flex;flex-direction:column;gap:3px;z-index:1}
.exo-carte-body b{font:700 17px 'Source Serif 4',Georgia,serif;color:#fffaf0}
.exo-carte-body i{font-style:normal;font-size:13px;line-height:1.4;color:rgba(255,250,240,.78)}
.exo-carte-go{flex:0 0 auto;align-self:center;font-weight:600;font-size:14px;color:#14232a;background:#e9c16c;padding:8px 14px;border-radius:999px;white-space:nowrap;z-index:1}
@media(max-width:560px){.exo-carte-invite{flex-wrap:wrap}.exo-carte-go{margin-left:auto}}

/* Bandeau hub épuré */
.exo-bar--hub{min-height:0;padding:6px 0 10px}
.exo-back{color:var(--or,#b4872b);text-decoration:none;font-weight:600;font-size:14px}
.exo-back:hover{text-decoration:underline}
