/* ─────────────────────────────────────────────────────────────────────────
   Solides Express (geometrie/solides/solidejeux1-2-3) — couche commune
   chargée APRÈS le <style> de chaque page. Panneau vitré sombre (texte blanc,
   comme le voulaient déjà les pages et leurs correctifs de thème), tuiles de
   réponse blanches en relief, pensées pour le doigt.
   ───────────────────────────────────────────────────────────────────────── */

:root:not(.fv-dys) body {
  font-family: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.wrap {
  box-sizing: border-box;
  width: min(920px, calc(100% - 24px));
  margin: 18px auto 24px;
  padding: 0 0 18px;
  border-radius: 26px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.58));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

/* Bandeau titre */
.wrap > header:not(.fv-header) {
  font-size: clamp(1.5em, 3.6vw, 2em);
  font-weight: 800;
  padding: 18px 16px 10px;
  background: transparent;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Score / score max / chrono : pastilles */
.wrap .score-chrono {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 4px 12px 0;
  background: transparent;
  box-shadow: none;
}
.wrap .score-chrono > div {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.95em;
  font-weight: 700;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.92);
  font-variant-numeric: tabular-nums;
}
.wrap #chrono { background: #fde68a; }

.wrap .question {
  margin-top: 18px;
  font-size: clamp(1.35em, 3vw, 1.75em);
  font-weight: 800;
  color: #fff;
}
.wrap #feedback {
  color: #fff;
  font-weight: 800;
  min-height: 1.6em;
  height: auto;
}

/* Tuiles de réponse */
.wrap .choices { margin: 26px 16px 10px; gap: 18px; }
.wrap .choice {
  border: 3px solid rgba(255, 255, 255, 0.85);
  border-radius: 20px;
  background-color: #fff;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.35), 0 12px 22px rgba(0, 0, 0, 0.3);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.08s, box-shadow 0.08s, border-color 0.2s;
}
.wrap .choice:active { transform: translateY(5px); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35); }
@media (hover: none) { .wrap .choice:hover { transform: none; } }
.wrap .choice.correct { border-color: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.5), 0 6px 0 rgba(0, 0, 0, 0.35); }
.wrap .choice.incorrect { border-color: #ef4444; box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.5), 0 6px 0 rgba(0, 0, 0, 0.35); }

/* Image du solide (Jeu 3) */
.wrap .solid-image img {
  border: 3px solid rgba(255, 255, 255, 0.85);
  border-radius: 20px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}

/* Réponses chiffrées (Jeu 3 : « Combien de sommets ? ») : vraies touches */
.wrap button.choice {
  min-width: 72px;
  min-height: 60px;
  padding: 10px 22px;
  font-family: inherit;
  font-size: 1.6em;
  font-weight: 800;
}

/* Bouton « ℹ️ Aide » (Jeu 2) : pastille dans le coin du panneau.
   (Sa page lui donnait au survol le style du pied de page — sélecteur mal coupé, corrigé.) */
.wrap { position: relative; }
.wrap .top-left { position: absolute; top: 14px; left: 14px; z-index: 3; }
.wrap .top-left button {
  position: static;
  padding: 8px 16px;
  font-family: inherit;
  font-size: 0.95em;
  font-weight: 800;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  cursor: pointer;
  touch-action: manipulation;
  transition: background 0.15s;
}
.wrap .top-left button:hover { background: rgba(255, 255, 255, 0.3); }
@media (max-width: 600px) { .wrap > header:not(.fv-header) { padding-top: 56px; } }

/* Titre de l'en-tête : la page imposait h1 { color: black } (illisible sur la barre marine) */
.fv-header h1 { color: #fff; }
