/* ══════════════════════════════════════════════════════════════════════════
   Simulation pédagogique — Physique-Chimie Lycée
   Auteur  : Mathieu Berdous
   Licence : CC BY-NC 4.0 — https://creativecommons.org/licenses/by-nc/4.0/
══════════════════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════════════════════
   Reset & base
══════════════════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
body {
  background: #e8e4de;
  color: #2c3e50;
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 14px;
  /* dvh : suit la hauteur réellement visible (barres dynamiques du navigateur) ;
     vh reste le repli pour les navigateurs sans support dvh. */
  height: 100vh;
  max-height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ══════════════════════════════════════════════════════════════════════════
   Grille principale
══════════════════════════════════════════════════════════════════════════ */
main {
  flex: 1; min-height: 0;
  display: grid;
  grid-template-columns: 1fr clamp(200px, 22vw, 300px);
  overflow: hidden;
}

/* ══════════════════════════════════════════════════════════════════════════
   Zone centrale
══════════════════════════════════════════════════════════════════════════ */
#sim-area {
  background: #fdf8f0;
  border-right: 1px solid #c8c0b4;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
}

/* ── Équation ── */
#equation-zone {
  flex-shrink: 0;
  padding: 14px 20px 10px;
  border-bottom: 2px solid #e0dbd4;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
#equation-row {
  display: flex; align-items: center; flex-wrap: wrap;
  justify-content: center; gap: 8px;
}
.mol-group { display: flex; align-items: center; gap: 6px; }

/* Widget coefficient */
.coeff-widget {
  display: inline-flex; align-items: stretch;
  border: 2.5px solid #e8a090; border-radius: 7px; overflow: hidden;
}
.coeff-widget input {
  width: 52px; height: 58px; padding: 3px 4px;
  border: none; border-radius: 0;
  font-size: clamp(20px, 2.8vw, 36px); font-weight: 700; color: #c03010;
  background: #fff; text-align: center;
  font-family: 'Segoe UI', Arial, sans-serif;
  -moz-appearance: textfield;
}
.coeff-widget input::-webkit-outer-spin-button,
.coeff-widget input::-webkit-inner-spin-button { -webkit-appearance: none; }
.coeff-widget input:focus { outline: none; }
.coeff-arrows {
  width: 22px; display: flex; flex-direction: column;
  border-left: 1.5px solid #e8a090;
}
.coeff-arrow-btn {
  flex: 1; border: none; border-radius: 0; background: #f0ecf4; color: #5a6a78;
  font-size: 10px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center; line-height: 1;
  transition: background 0.1s; padding: 0;
}
.coeff-arrow-btn:first-child { border-bottom: 1px solid #e8a090; }
.coeff-arrow-btn:hover { background: #dedad2; color: #2c3e50; }
.coeff-arrow-btn:active { background: #ccc8c0; }

.mol-formula { font-size: clamp(28px, 4vw, 52px); font-weight: 700; letter-spacing: 1px; line-height: 1; }
.mol-formula.reactif { color: #2a6aaa; }
.mol-formula.produit { color: #2a8a50; }
.mol-coeff-fixed { font-size: clamp(28px, 4vw, 52px); font-weight: 700; color: #c03010; line-height: 1; }
.eq-plus  { color: #7a8a96; font-size: clamp(24px, 3.5vw, 46px); font-weight: 300; padding: 0 4px; }
.eq-arrow { color: #7a8a96; font-size: clamp(28px, 4vw, 52px); font-weight: 300; padding: 0 14px; }

/* ══════════════════════════════════════════════════════════════════════════
   Conteneur tableau + canvas
══════════════════════════════════════════════════════════════════════════ */
#canvas-and-table {
  flex-shrink: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 10px 0 8px;
  width: 100%;
  overflow: visible;
}

/* Canvas pleine zone — derrière tout */
#mol-canvas {
  position: absolute;
  top: 10px; left: 0;
  width: 100%; height: 100%;
  display: block;
  z-index: 0;
}

/* Tableau HTML — devant le canvas, fond transparent */
#reaction-table {
  position: relative;
  z-index: 1;
  width: clamp(70%, 90%, 98%);
  border-collapse: collapse;
  table-layout: fixed;
  flex-shrink: 1;
  border: 2px solid #b0a898;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(44,40,32,0.18);
  margin: 10px 0 8px;
}

/* ── En-têtes colonnes ── */
#reaction-table thead th {
  padding: 8px 8px;
  font-size: clamp(14px, 2vw, 28px); font-weight: 700;
  text-align: center;
  border-bottom: 1.5px solid #c8c0b4;
  border-right: 1px solid #c8c0b4;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
#reaction-table thead th:last-child { border-right: none; }
#reaction-table thead th.col-reactif  { background: #e8f0fb; color: #2a6aaa; }
#reaction-table thead th.col-produit  { background: #e8f5ee; color: #2a8a50; }
#reaction-table thead th.col-inactive { background: #f0ede8; color: #a0a8b0; }
#reaction-table thead th.col-adv      { background: #f5f0e8; color: #7a8a96; border-right: 1px solid #c8c0b4; }
#reaction-table thead th.sep-rp       { border-right: 2px solid #b0a898; }

/* Labels de ligne */
#reaction-table td.row-label {
  background: #f5f0e8;
  color: #7a8a96;
  font-size: clamp(11px, 1.6vw, 22px); font-weight: 700;
  text-align: center; vertical-align: middle;
  border-right: 1px solid #c8c0b4;
  white-space: normal; word-break: break-word;
}
#reaction-table td.row-canvas-label {
  background: #f5f0e8;
  border-bottom: none;
}

/* Titre dans la cellule tfoot avancement */
.foot-row-label {
  display: block;
  font-size: clamp(10px, 1.3vw, 18px); font-weight: 700; color: #7a8a96;
  margin-bottom: 8px;
}
#foot-avancement {
  display: block;
  font-size: clamp(13px, 1.9vw, 26px); font-weight: 700; color: #2c3e50;
}
#foot-avancement.xmax { color: #c03010; }

/* ── Ligne sélecteurs quantités (mode limitant) ── */
#reaction-table tr.row-qty td {
  padding: clamp(3px, 0.6vw, 8px) clamp(2px, 0.5vw, 6px);
  border-bottom: 1.5px solid #c8c0b4;
  border-right: 1px solid #c8c0b4;
  text-align: center; vertical-align: middle;
}
#reaction-table tr.row-qty td:last-child { border-right: none; }
#reaction-table tr.row-qty td.td-reactif  { background: #e8f0fb; }
#reaction-table tr.row-qty td.td-produit  { background: #e8f5ee; }
#reaction-table tr.row-qty td.td-inactive { background: #f0ede8; }
#reaction-table tr.row-qty td.td-adv {
  background: #f5f0e8;
  border-right: 1px solid #c8c0b4;
  border-bottom: 1.5px solid #c8c0b4;
}
#reaction-table tr.row-qty td.sep-rp { border-right: 2px solid #b0a898; }

/* ── Ligne canvas molécules ── */
#reaction-table tr.row-canvas td {
  padding: 0;
  background: transparent;
  border-right: none;
}
#reaction-table tr.row-canvas td.row-canvas-label {
  background: #f5f0e8;
  border-right: 1px solid #c8c0b4;
}

/* ── Pied : avancement + quantités ── */
#reaction-table tfoot td {
  padding: 8px 8px;
  font-size: clamp(13px, 1.9vw, 26px); font-weight: 700;
  text-align: center;
  border-top: 1.5px solid #c8c0b4;
  border-right: 1px solid #c8c0b4;
  background: #f5f0e8;
}
#reaction-table tfoot td:last-child { border-right: none; }
#reaction-table tfoot td.td-adv      { color: #2c3e50; border-right: 1px solid #c8c0b4; vertical-align: top; padding-top: 8px; }
#reaction-table tfoot td.td-adv.xmax { color: #c03010; }
#reaction-table tfoot td.td-reactif  { color: #2a6aaa; }
#reaction-table tfoot td.td-produit  { color: #2a8a50; }
#reaction-table tfoot td.sep-rp      { border-right: 2px solid #b0a898; }

/* Widgets +/- quantité */
.qty-cell-widget {
  display: flex; flex-direction: row; align-items: center;
  justify-content: center; gap: clamp(2px, 0.4vw, 6px);
  flex-wrap: wrap;
}
.qty-cell-label {
  font-size: clamp(9px, 1.2vw, 26px); font-weight: 700; color: #2a6aaa;
  white-space: nowrap;
  flex-shrink: 1;
}
.qty-cell-row { display: flex; align-items: center; gap: clamp(2px, 0.35vw, 5px); flex-shrink: 0; }
.qty-cell-btn {
  width: clamp(16px, 2vw, 30px); height: clamp(16px, 2vw, 30px);
  border: 1.5px solid #b8cce8; border-radius: 4px;
  background: #d8e8f8; color: #2a6aaa;
  font-size: clamp(10px, 1.3vw, 20px); font-weight: 700;
  cursor: pointer; display: flex; align-items: center; justify-content: center; line-height: 1;
  flex-shrink: 0;
}
.qty-cell-btn:hover { background: #c0d8f0; }
.qty-cell-input {
  font-size: clamp(9px, 1.2vw, 26px); font-weight: 700; color: #2a5080;
  width: clamp(24px, 2.8vw, 48px); text-align: center;
  border: 1.5px solid #b8cce8; border-radius: 4px; background: #f0f6ff;
  font-variant-numeric: tabular-nums; padding: 0 2px;
  flex-shrink: 0;
}
.qty-cell-unit { font-size: clamp(8px, 1vw, 22px); color: #5a6a78; white-space: nowrap; }

/* Ligne prédiction dans tfoot */
#reaction-table tfoot tr.pred-row td {
  border-top: 2px dashed #b0a898;
  vertical-align: middle;
}
#reaction-table tfoot tr.pred-row td.pred-correct   { background: #d4f0da; }
#reaction-table tfoot tr.pred-row td.pred-incorrect { background: #fce4e4; }
.pred-widget {
  display: flex; flex-direction: row; align-items: center; justify-content: center;
  gap: clamp(2px, 0.4vw, 6px);
  flex-wrap: wrap;
}
#pred-adv-cell .pred-widget {
  flex-direction: column; gap: 2px;
}
.pred-widget-label {
  font-size: clamp(9px, 1.2vw, 22px); font-weight: 700; color: #2c3e50;
  white-space: nowrap; flex-shrink: 1;
}
.pred-widget-row { display: flex; align-items: center; gap: clamp(2px, 0.35vw, 5px); flex-shrink: 0; }
.pred-widget-btn {
  width: clamp(18px, 2.2vw, 30px); height: clamp(18px, 2.2vw, 30px);
  border: 1.5px solid #b8cce8; border-radius: 4px;
  background: #d8e8f8; color: #2a6aaa;
  font-size: clamp(11px, 1.4vw, 20px); font-weight: 700;
  cursor: pointer; display: flex; align-items: center; justify-content: center; line-height: 1;
  flex-shrink: 0;
}
.pred-widget-btn:hover { background: #c0d8f0; }
.pred-widget-input {
  font-size: clamp(10px, 1.3vw, 26px); font-weight: 700; color: #2a5080;
  width: clamp(28px, 3.2vw, 48px); text-align: center;
  border: 1.5px solid #b8cce8; border-radius: 4px; background: #f0f6ff;
  font-variant-numeric: tabular-nums; padding: 0 2px;
  flex-shrink: 0;
}
.pred-widget-unit { font-size: clamp(9px, 1.1vw, 22px); color: #5a6a78; }
.pred-correct .pred-widget-label,
.pred-correct .pred-widget-input  { color: #1a6a30; }
.pred-incorrect .pred-widget-label,
.pred-incorrect .pred-widget-input { color: #a01010; }

/* Ligne comparaison quantités initiales */
#reaction-table tfoot tr.cmp-row td {
  border-top: 2px solid #c8c0b4;
  vertical-align: middle;
  padding: 7px 10px;
}
#reaction-table tfoot tr.cmp-row td.cmp-label {
  background: #f5f0e8; font-size: 15px; font-weight: 700;
  color: #5a6a78; text-align: center; border-right: 1px solid #c8c0b4;
  white-space: normal; line-height: 1.4;
}
#reaction-table tfoot tr.cmp-row td.cmp-content {
  background: #fafaf6; font-size: clamp(11px, 1.6vw, 22px); font-weight: 600;
  color: #2c3e50; text-align: center; letter-spacing: 0.3px;
}
.cmp-limitant { color: #c03010; font-weight: 800; }
.cmp-frac {
  display: inline-flex; flex-direction: column; align-items: center;
  vertical-align: middle; margin: 0 2px; line-height: 1.1;
}
.cmp-frac-num {
  border-bottom: 2px solid currentColor;
  padding: 0 3px 1px; font-size: 0.82em; line-height: 1.2;
}
.cmp-frac-den {
  padding: 1px 3px 0; font-size: 0.82em; line-height: 1.2;
}

/* Espaceur dynamique en bas de #sim-area */
#popup-spacer {
  flex-shrink: 0;
  height: 0;
  transition: height 0.15s ease;
  pointer-events: none;
}

/* Message d'état flottant */
#status-msg {
  display: none;
  position: fixed;
  bottom: 28px;
  left: 0;
  right: clamp(200px, 22vw, 300px);
  margin-left: auto;
  margin-right: auto;
  width: fit-content;
  max-width: calc(92% - clamp(200px, 22vw, 300px));
  padding: 9px 22px; border-radius: 8px;
  font-size: clamp(15px, 2.2vw, 30px); font-weight: 700;
  white-space: normal;
  text-align: center;
  box-shadow: 0 4px 24px rgba(44,40,32,0.28);
  z-index: 50;
}
#status-msg.ok  { display: block; background: #d0e8d8; color: #1a4a2a; border: 1.5px solid #90c8a0; }
#status-msg.nok { display: block; background: #f5ddd5; color: #8a3010; border: 1.5px solid #d0a090; }

/* ══════════════════════════════════════════════════════════════════════════
   Panneau droit
══════════════════════════════════════════════════════════════════════════ */
#panel {
  background: #e8e4de;
  display: flex; flex-direction: column;
  overflow: hidden; min-height: 0;
  font-size: clamp(11px, 1.1vw, 14px);
}
#panel-body {
  flex: 1; min-height: 0; overflow-y: auto; padding: 14px;
  display: flex; flex-direction: column; gap: 10px;
  border: 1.5px solid #b0a898; border-top: none; background: #e8e4de;
}
.panel-main-tabs { display: flex; flex-shrink: 0; }
.panel-main-tab {
  flex: 1; padding: 9px 4px; font-size: 14px; font-weight: 700; cursor: pointer;
  border: 1.5px solid transparent; border-bottom: none;
  background: #d4d0c8; color: #8a9aaa; text-align: center;
  transition: background 0.12s, color 0.12s;
}
.panel-main-tab:hover:not(.active) { background: #ccc8c0; color: #5a6a78; }
.panel-main-tab.active {
  background: #e8e4de; color: #2a6aaa;
  border-color: #b0a898; border-bottom: 1.5px solid #e8e4de;
  position: relative; z-index: 1; margin-bottom: -1.5px;
}
.panel-main-section { display: none; flex-direction: column; gap: 10px; }
.panel-main-section.visible { display: flex; }
.section-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #7a8a96; }
.sep { border: none; border-top: 1px solid #c8c0b4; margin: 2px 0; }
.btn {
  width: 100%; padding: 9px 6px; border: 1px solid transparent;
  border-radius: 6px; font-size: 15px; font-weight: 700; cursor: pointer;
  transition: transform 0.1s; text-align: center; display: block;
}
.btn:active { transform: scale(0.97); }
.btn-raz       { background: #dedad2; color: #5a6a78; border-color: #b0a898; }
.btn-raz:hover { background: #d0ccc4; color: #2c3e50; }
.btn-primary   { background: #2a6aaa; color: #fff; border-color: #1a5a9a; font-size: 16px; padding: 11px 6px; }
.btn-primary:hover { background: #1a5a9a; }
.btn-primary:disabled { background: #a0b8c8; border-color: #8098a8; cursor: not-allowed; }
.btn-green     { background: #2a8a50; color: #fff; border-color: #1a6a38; font-size: 16px; padding: 11px 6px; }
.btn-green:hover { background: #1a7040; }
.btn-orange    { background: #c05820; color: #fff; border-color: #a04010; font-size: 16px; padding: 11px 6px; }
.btn-orange:hover { background: #a04010; }
.btn-green:disabled { background: #90b8a0; border-color: #70a080; cursor: not-allowed; }
.btn-toggle-one { background: #ece8e0; color: #5a6a78; border-color: #b0a898; font-size: 15px; padding: 10px 6px; }
.btn-toggle-one:hover { background: #dedad2; color: #2c3e50; }
.btn-toggle-one.active { background: #fde8c8; color: #a04010; border-color: #d08040; font-weight: 700; }
#btn-prediction, #btn-comparaison { font-size: 16px; padding: 9px 8px; }
#btn-comparaison { line-height: 1.3; text-align: center; }
#btn-comparaison #btn-comparaison-label { font-size: 12px; font-style: italic; font-weight: 700; display: block; margin-top: 2px; }
.reaction-select {
  width: 100%; padding: 7px 8px; border: 1px solid #c8c0b4; border-radius: 5px;
  font-size: 14px; background: #fff; color: #2c3e50; font-family: inherit; cursor: pointer;
}
.panel-hint {
  flex-shrink: 0; color: #5a6a78; line-height: 1.5;
  background: #fff; border: 1.5px solid #b0a898;
  overflow: hidden;
}
.panel-hint-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 10px;
}
.panel-hint-title {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: #7a8a96;
  margin-left: auto; margin-right: 6px;
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.panel-hint-menu-btn {
  background: #f0f4f7; border: 1px solid #c8d4dc; border-radius: 6px; cursor: pointer;
  font-size: 11px; font-weight: 600; color: #4a5a68; padding: 4px 9px; line-height: 1.2;
  transition: background 0.15s, color 0.15s; white-space: nowrap;
}
.panel-hint-menu-btn:hover { background: #dde6ec; color: #2a6aaa; }
.panel-hint-toggle {
  background: none; border: none; cursor: pointer;
  font-size: 13px; color: #7a8a96; padding: 0 2px; line-height: 1;
  transition: transform 0.2s;
}
.panel-hint-toggle:hover { color: #2a6aaa; }
.panel-hint-body {
  font-size: clamp(12px, 1.15vw, 15px); padding: 0 10px 8px;
  overflow: hidden;
  transition: max-height 0.25s ease, padding 0.25s ease;
  max-height: 200px;
}
.panel-hint.collapsed .panel-hint-body {
  max-height: 0; padding-top: 0; padding-bottom: 0;
}
.panel-hint:not(.collapsed) .panel-hint-toggle {
  transform: rotate(180deg);
}

/* ── Slider vitesse ── */
.speed-slider-wrap { display: flex; flex-direction: column; gap: 4px; }
.speed-slider {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px; border-radius: 3px;
  background: linear-gradient(to right, #2a6aaa 0%, #2a6aaa 0%, #c8c0b4 0%);
  outline: none; cursor: pointer;
}
.speed-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 20px; height: 20px; border-radius: 50%;
  background: #2a6aaa; border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.25); cursor: pointer;
}
.speed-slider::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%;
  background: #2a6aaa; border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.25); cursor: pointer;
}
.speed-labels {
  display: flex; justify-content: space-between;
  font-size: 12px; font-weight: 700; color: #5a6a78;
}
.speed-labels span.active { color: #2a6aaa; }

/* ══════════════════════════════════════════════════════════════════════════
   MODE TEST — styles
══════════════════════════════════════════════════════════════════════════ */

/* Overlay fond semi-transparent */
#test-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(44,40,32,0.45);
  z-index: 100;
  align-items: center; justify-content: center;
}
#test-overlay.visible { display: flex; }

/* Fenêtre modale générique */
.test-modal {
  background: #fdf8f0;
  border: 2px solid #c8c0b4;
  border-radius: 14px;
  padding: 28px 32px;
  max-width: 480px; width: 90%;
  box-shadow: 0 8px 32px rgba(44,40,32,0.28);
  text-align: center;
  display: flex; flex-direction: column; gap: 18px;
}
.test-modal h2 {
  font-size: 20px; font-weight: 700; color: #2c3e50; margin: 0;
}
.test-modal p {
  font-size: 16px; color: #5a6a78; line-height: 1.55; margin: 0;
}
.test-modal-btns {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}
.btn-test-confirm {
  padding: 10px 28px; border-radius: 8px; border: none; cursor: pointer;
  font-size: 16px; font-weight: 700; font-family: inherit;
  transition: background 0.12s;
}
.btn-test-oui  { background: #2a6aaa; color: #fff; }
.btn-test-oui:hover { background: #1a5a9a; }
.btn-test-non  { background: #dedad2; color: #5a6a78; border: 1px solid #b0a898; }
.btn-test-non:hover { background: #ccc8c0; }
.btn-test-green { background: #2a8a50; color: #fff; }
.btn-test-green:hover { background: #1a7040; }
.btn-test-orange { background: #c05820; color: #fff; }
.btn-test-orange:hover { background: #a04010; }

/* Indicateur de progression mode test */
#test-progress-bar {
  display: none;
  position: absolute;
  left: 14px; top: 50%; transform: translateY(-50%);
  font-size: 21px; font-weight: 700; color: #4a2a8a;
  line-height: 1.3;
  pointer-events: none;
  z-index: 10;
  white-space: nowrap;
}
#test-progress-bar.visible { display: block; }

/* Pop-up flottant résultat */
#test-popup {
  display: none;
  position: fixed;
  bottom: 28px;
  left: 0;
  right: clamp(200px, 22vw, 300px);
  margin-left: auto;
  margin-right: auto;
  width: fit-content;
  max-width: calc(92% - clamp(200px, 22vw, 300px));
  background: #fdf8f0;
  border: 2px solid #c8c0b4;
  border-radius: 12px;
  padding: 14px 24px;
  box-shadow: 0 4px 24px rgba(44,40,32,0.32);
  z-index: 50;
  text-align: center;
  flex-direction: column; gap: 10px;
}
#test-popup.visible { display: flex; }
#test-popup-msg {
  font-size: 22px; font-weight: 700;
}
#test-popup-msg.ok  { color: #1a6a30; }
#test-popup-msg.nok { color: #a01010; }
#test-popup-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* Bouton mode test dans panel */
.btn-test-mode { background: #4a2a8a; color: #fff; border-color: #3a1a7a; font-size: 15px; padding: 10px 6px; }
.btn-test-mode:hover { background: #3a1a7a; }
.btn-quitter-test { background: #c03010; color: #fff; border-color: #a02000; font-size: 15px; padding: 10px 6px; }
.btn-quitter-test:hover { background: #a02000; }

/* Score final dans la modal */
#test-score-display {
  font-size: 42px; font-weight: 700; color: #2a6aaa;
}
