/* ─────────────────────────────────────────────────────────────────────────
   Calcul mental « une question, une réponse » : Double, Moitié (fun/)
   Couche chargée APRÈS le <style> de la page. Grande question, grande case,
   pavé tactile (js/pave-reponse.js) ; le bouton « Vérifier » de la page est
   remplacé par la touche ✔ du pavé (Entrée marche toujours au clavier).
   ───────────────────────────────────────────────────────────────────────── */
:root:not(.fv-dys) body { font-family: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
body:not([class*="theme-"]) {
  background: radial-gradient(90% 70% at 50% 0%, #ede9fe 0%, #f5f3ff 45%, #eef2ff 100%) fixed;
}
body { max-width: none; margin: 0; padding: 70px 16px 32px; }

/* Titre : étiquette au-dessus du décor (thèmes compris) */
body > h1 {
  position: relative; z-index: 10; display: table; margin: 18px auto 14px; padding: 8px 26px;
  font-size: clamp(1.6em, 4vw, 2.2em); font-weight: 900; color: #4c1d95 !important; text-shadow: none;
  background: rgba(255, 255, 255, .95); border-radius: 999px; box-shadow: 0 10px 26px rgba(76, 29, 149, .18);
}

.wrap {
  box-sizing: border-box; width: min(560px, 100%); margin: 0 auto; padding: 20px 20px 18px;
  background: rgba(255, 255, 255, .97); border: 1px solid #e9e5ff; border-radius: 26px;
  box-shadow: 0 22px 50px rgba(76, 29, 149, .16), inset 0 1px 0 #fff; color: #1e1b4b;
}
.wrap .score-chrono { justify-content: center; gap: 8px; margin-bottom: 10px; }
.wrap #score, .wrap #score-max, .wrap #progress {
  font-size: .95rem; padding: 6px 14px; border-radius: 999px; background: #f5f3ff; border: 1px solid #e4dcff; color: #3b0764;
  font-variant-numeric: tabular-nums;
}
.wrap .consigne { font-size: 1rem; font-weight: 600; color: #475569; }
.wrap .question {
  font-size: clamp(1.7rem, 6vw, 2.4rem); font-weight: 900; margin: 10px 0 14px; color: #1e1b4b;
  padding: 16px 10px; border-radius: 20px; background: linear-gradient(180deg, #faf5ff, #f3e8ff); border: 2px solid #e9d5ff;
  font-variant-numeric: tabular-nums;
}
.wrap .zone-reponse input[type="text"] {
  width: min(240px, 70vw); font: inherit; font-size: 2rem; font-weight: 900; padding: 10px 12px;
  border: 3px solid #c4b5fd; border-radius: 16px; color: #1e1b4b; background: #fff;
}
.wrap .zone-reponse input[type="text"]:focus { border-color: #7c3aed; box-shadow: 0 0 0 4px rgba(124, 58, 237, .18); }
.wrap .zone-reponse input::placeholder { font-size: .55em; font-weight: 700; color: #a8a3c7; }
.wrap .actions { display: none; } /* « Vérifier » : la touche ✔ du pavé le remplace */
.wrap #feedback { text-align: center; min-height: 1.5em; font-weight: 800; font-size: 1.1rem; margin-top: 8px; }
.wrap #feedback.correct { color: #15803d; }
.wrap #feedback.wrong { color: #b91c1c; }
