/* DS guidé (2026-10-18) — complète styles.css (mêmes jetons de couleur). */

/* ── Liste des sujets ─────────────────────────────────────────────────── */
.ds-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin-top: 18px; }
.ds-carte {
  display: flex; flex-direction: column; gap: 8px; padding: 18px; background: var(--card);
  border: 1px solid var(--border); border-top: 4px solid var(--theme); border-radius: var(--radius); box-shadow: var(--shadow);
}
.ds-carte-matiere { font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; color: var(--ink-soft); }
.ds-carte-titre { font-family: "Fraunces", Georgia, serif; font-weight: 700; font-size: 1.12rem; line-height: 1.3; }
.ds-carte-infos { display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.8rem; font-weight: 600; color: var(--ink-soft); }
.ds-carte-infos span { background: var(--ivory-soft); padding: 3px 9px; border-radius: 999px; }
.ds-carte-score { font-size: 0.85rem; color: var(--ink-soft); }
.ds-carte-score strong { color: var(--theme); }
.ds-carte .primary-btn { margin-top: auto; }

/* ── Avertissement stylo + papier ─────────────────────────────────────── */
.ds-avert {
  max-width: 620px; margin: 0 auto; padding: 26px 24px; text-align: center; background: var(--card);
  border: 1px solid var(--border); border-top: 4px solid var(--accent); border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.ds-avert-icone {
  width: 70px; height: 70px; margin: 0 auto 12px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: #fff1e6; color: var(--accent-600);
}
.ds-avert-lead { font-size: 1.15rem; margin: 6px 0 14px; }
.ds-avert-lead strong { color: var(--accent-600); }
.ds-avert-liste { text-align: left; margin: 0 0 18px; padding-left: 20px; line-height: 1.6; }
.ds-avert-liste li { margin-bottom: 6px; }
.ds-plan { text-align: left; background: var(--ivory-soft); border-radius: 12px; padding: 12px 14px; margin-bottom: 18px; }
.ds-plan-titre { font-weight: 800; margin-bottom: 6px; }
.ds-plan-ligne { display: flex; justify-content: space-between; gap: 12px; font-size: 0.92rem; padding: 4px 0; border-top: 1px solid var(--border); }
.ds-plan-ligne span:last-child { font-weight: 700; white-space: nowrap; }
.ds-check {
  display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 16px; font-weight: 700; cursor: pointer;
}
.ds-check input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; }

/* ── Exercice et question en cours ────────────────────────────────────── */
.ds-exo { background: var(--card); border: 1px solid var(--border); border-top: 4px solid var(--theme); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); }
.ds-exo-titre { font-family: "Fraunces", Georgia, serif; font-weight: 700; font-size: 1.15rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.ds-exo-pts, .ds-question-pts { font-family: "Inter", sans-serif; font-size: 0.78rem; font-weight: 800; color: var(--theme); background: var(--theme-soft); padding: 3px 10px; border-radius: 999px; }
.ds-exo-enonce { margin-top: 10px; }
.ds-faite { margin-top: 8px; font-size: 0.9rem; color: var(--green); display: flex; align-items: center; gap: 6px; }
.ds-faite strong { color: var(--ink); }
.ds-question { margin-top: 14px; padding: 14px 16px; border-left: 4px solid var(--accent); background: #fffaf5; border-radius: 0 12px 12px 0; }
.ds-question-tete { font-weight: 800; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.ds-question .rappel-body p:last-child { margin-bottom: 0; }

/* ── Compte à rebours ─────────────────────────────────────────────────── */
.ds-chrono {
  margin-top: 16px; padding: 18px; text-align: center; background: var(--ink); color: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); transition: background .3s;
}
.ds-chrono-label { font-weight: 700; opacity: .9; display: flex; align-items: center; justify-content: center; gap: 8px; }
.ds-chrono-temps { font-size: 3.2rem; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: 1px; margin: 4px 0 8px; }
.ds-chrono-barre { height: 8px; background: rgba(255,255,255,.18); border-radius: 999px; overflow: hidden; }
.ds-chrono-fill { height: 100%; width: 100%; background: var(--accent-light); transition: width 1s linear; }
.ds-chrono-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 16px; }
.ds-chrono--fin .ds-chrono-fill { background: var(--accent); }
.ds-chrono--fin .ds-chrono-temps { color: var(--accent-light); }
.ds-chrono--pause .ds-chrono-temps { opacity: .5; }
.ds-chrono--ecoule { background: #b93a00; }
.ds-chrono--ecoule .ds-chrono-temps { color: #fff; }
.ds-btn-sec {
  background: rgba(255,255,255,.12); color: inherit; border: 1px solid rgba(255,255,255,.4); border-radius: 999px;
  padding: 10px 16px; font: inherit; font-weight: 700; font-size: 0.9rem; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
}
.ds-btn-sec:hover { background: rgba(255,255,255,.22); }
.ds-btn-sec:disabled { opacity: .4; cursor: not-allowed; }

/* ── Corrigé et note ──────────────────────────────────────────────────── */
.ds-corrige { scroll-margin-top: 12px; }
.ds-note { margin-top: 14px; padding: 18px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.ds-note-titre { font-weight: 800; font-size: 0.85rem; text-transform: uppercase; letter-spacing: .3px; color: var(--ink-soft); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.ds-criteres { display: flex; flex-direction: column; gap: 8px; }
.ds-critere {
  display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer;
  transition: background .15s, border-color .15s;
}
.ds-critere input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--green); flex: none; }
.ds-critere-texte { flex: 1; min-width: 0; line-height: 1.5; }
.ds-critere-pts { font-weight: 800; white-space: nowrap; color: var(--theme); }
.ds-critere.is-acquis { background: #ecfdf3; border-color: var(--green); }
.ds-note-ligne { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; font-weight: 700; }
.ds-stepper { display: flex; align-items: center; gap: 8px; }
.ds-stepper .ds-btn-sec { color: var(--ink); border-color: var(--border); background: var(--ivory-soft); padding: 8px 12px; }
.ds-stepper .ds-btn-sec:hover { background: var(--border); }
.ds-note-val { min-width: 90px; text-align: center; font-size: 1.3rem; font-weight: 800; color: var(--theme); font-variant-numeric: tabular-nums; }
.ds-detail { font-size: 0.8rem; color: var(--ink-soft); margin-top: 2px; }

@media (max-width: 520px) {
  .ds-avert { padding: 22px 16px; }
  .ds-exo { padding: 16px; }
  .ds-chrono-temps { font-size: 2.6rem; }
  .ds-chrono-actions .primary-btn { width: 100%; }
}

/* Le bouton « DS » ajoute un troisième onglet : sous 440 px, le libellé
   « LSM1 FST » serait tronqué en « LS… » — le monogramme porte seul la marque. */
@media (max-width: 440px) {
  .brand-text { display: none; }
}
