/* Simulation TCF — agencemage.com (port Page/SimulationTCF.js) */
.tcf-app {
  max-width: 720px;
  margin: 0 auto 56px;
  padding: 0 16px;
}

.tcf-panel[hidden] {
  display: none !important;
}

.tcf-card {
  background: var(--mage-white);
  border: 1px solid var(--mage-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-soft);
}

.tcf-card h1 {
  margin: 0 0 12px;
  font-size: 1.5rem;
  color: var(--mage-green-dark);
}

.tcf-card h2 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  color: var(--mage-green-dark);
}

.tcf-disclaimer {
  margin: 0 0 16px;
  padding: 12px 14px;
  background: var(--mage-mint-light);
  border-left: 4px solid var(--mage-green);
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  color: var(--mage-muted);
  line-height: 1.45;
}

.tcf-intro {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--mage-ink);
  white-space: pre-line;
  margin: 0 0 20px;
}

.tcf-meta {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.tcf-meta li {
  margin-bottom: 6px;
  font-size: 0.92rem;
}

.tcf-part-badge {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--mage-mint-light);
  color: var(--mage-green-dark);
  font-size: 0.8rem;
  font-weight: 700;
}

.tcf-part-duree {
  margin: 0 0 16px;
  font-size: 0.9rem;
  color: var(--mage-muted);
}

.tcf-timer {
  font-variant-numeric: tabular-nums;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--mage-green-dark);
  text-align: right;
  margin-bottom: 12px;
}

.tcf-timer.is-urgent {
  color: #dc2626;
}

.tcf-progress {
  margin: 0 0 6px;
  font-size: 0.88rem;
  color: var(--mage-muted);
}

.tcf-progress-bar {
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--mage-mint-light);
  overflow: hidden;
  margin-bottom: 20px;
}

.tcf-progress-bar__fill {
  height: 100%;
  background: var(--mage-green);
  border-radius: var(--radius-pill);
  transition: width 0.25s ease;
}

.tcf-question {
  margin: 0 0 12px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--mage-ink);
  line-height: 1.45;
}

.tcf-passage {
  margin: 0 0 14px;
  padding: 12px 14px;
  background: var(--mage-mint-light);
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.5;
  white-space: pre-line;
}

.tcf-prompt {
  margin: 0;
  font-weight: 600;
}

.tcf-audio-ref {
  margin: 0 0 8px;
  font-size: 0.85rem;
  color: var(--mage-muted);
}

.tcf-consigne {
  margin: 0 0 16px;
  font-size: 0.9rem;
  color: var(--mage-muted);
  font-style: italic;
}

.tcf-question-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 0 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--mage-border);
}

.tcf-audio-wrap {
  margin: 0 0 16px;
}

.tcf-audio-wrap audio {
  width: 100%;
}

.tcf-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.tcf-option {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--mage-border);
  border-radius: var(--radius-md);
  background: var(--mage-white);
  text-align: left;
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.tcf-option:hover:not(:disabled) {
  border-color: var(--mage-green);
  background: var(--mage-mint-light);
}

.tcf-option:disabled {
  cursor: default;
}

.tcf-option__label {
  flex-shrink: 0;
  font-weight: 700;
  color: var(--mage-green);
}

.tcf-option.is-selected {
  background: #dbeafe;
  border-color: #3b82f6;
}

.tcf-option.is-correct {
  background: #dcfce7;
  border-color: #16a34a;
}

.tcf-option.is-wrong {
  background: #fee2e2;
  border-color: #dc2626;
}

.tcf-feedback {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--mage-mint-light);
  font-size: 0.9rem;
  line-height: 1.45;
  white-space: pre-line;
}

.tcf-feedback[hidden] {
  display: none !important;
}

.tcf-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.tcf-btn {
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
}

.tcf-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.tcf-btn-primary {
  background: var(--mage-green);
  color: #fff;
}

.tcf-btn-primary:hover:not(:disabled) {
  background: var(--mage-green-dark);
}

.tcf-btn-ghost {
  background: transparent;
  border: 2px solid var(--mage-border);
  color: var(--mage-muted);
}

.tcf-btn-ghost:hover:not(:disabled) {
  border-color: var(--mage-green);
  color: var(--mage-green-dark);
}

.tcf-results-score {
  font-size: 2rem;
  font-weight: 700;
  color: var(--mage-green);
  margin: 8px 0;
}

.tcf-results-level {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 20px;
  color: var(--mage-green-dark);
}

.tcf-results-breakdown p {
  margin: 0 0 8px;
  font-size: 0.92rem;
}

.tcf-level-table {
  margin-top: 20px;
  padding: 14px;
  background: var(--mage-mint-light);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  line-height: 1.5;
  white-space: pre-line;
  color: var(--mage-muted);
}

.tcf-loading {
  text-align: center;
  padding: 48px 20px;
  color: var(--mage-muted);
}

.tcf-error {
  padding: 14px;
  border-radius: var(--radius-md);
  background: #fee2e2;
  color: #991b1b;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.tcf-footer-cta {
  margin-top: 24px;
  text-align: center;
}
