* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: #f4f7fb;
  color: #1d2733;
  font-size: 19px;
  line-height: 1.55;
}
header {
  background: #0d2653;
  color: #fff;
  padding: 20px 16px 14px;
  text-align: center;
}
.titre-site { font-size: 26px; font-weight: 800; }
.sous-titre { color: #19cfeb; font-size: 16px; margin-top: 4px; }
main { max-width: 640px; margin: 0 auto; padding: 16px 12px 30px; }
h2 { font-size: 23px; margin: 18px 0 10px; }
.carte {
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  margin: 12px 0;
  box-shadow: 0 1px 4px rgba(13, 38, 83, .10);
}
.carte p { margin: 8px 0; }
.gros { font-size: 21px; font-weight: 700; }
.tres-gros { font-size: 52px; margin: 4px 0; }
.petit { font-size: 15px; color: #5a6a7a; }
.centre { text-align: center; }
.intro { font-size: 19px; }
.btn-principal {
  display: block;
  width: 100%;
  background: #19cfeb;
  color: #06283d;
  border: none;
  border-radius: 12px;
  padding: 16px;
  font-size: 20px;
  font-weight: 800;
  margin-top: 14px;
  cursor: pointer;
}
.btn-principal:active { transform: scale(.98); }
.btn-retour {
  background: none;
  border: none;
  color: #0d2653;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 0;
}
input[type="text"] {
  width: 100%;
  font-size: 19px;
  padding: 13px;
  border: 2px solid #c9d6e4;
  border-radius: 10px;
  margin-top: 8px;
}
.lecon-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  background: #fff;
  border: none;
  border-radius: 14px;
  padding: 15px 16px;
  margin: 9px 0;
  box-shadow: 0 1px 4px rgba(13, 38, 83, .10);
  cursor: pointer;
  font-size: 18px;
}
.lecon-item .badge {
  font-size: 13px;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 20px;
  color: #fff;
  white-space: nowrap;
}
.badge-maths { background: #7b5cd6; }
.badge-physique { background: #e07b2a; }
.lecon-item .fait { color: #1d9e57; font-weight: 800; }
.lecon-item.bientot { opacity: .55; cursor: default; }
.section-titre { font-size: 21px; font-weight: 800; margin-bottom: 6px; }
.exemple {
  background: #eef7ff;
  border-left: 5px solid #19cfeb;
  border-radius: 8px;
  padding: 10px 12px;
  margin: 10px 0;
}
.exemple .etiquette { font-weight: 800; color: #0d2653; }
.resolu { background: #f2fbf4; border-left: 5px solid #1d9e57; border-radius: 8px; padding: 10px 12px; margin: 10px 0; }
.resolu .reponse { font-weight: 800; color: #1d9e57; }
.barre-examen {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  font-size: 18px;
  margin: 6px 2px 10px;
}
#examen-chrono { color: #b3261e; }
.question { font-size: 21px; font-weight: 700; }
.choix-btn {
  display: block;
  width: 100%;
  text-align: left;
  background: #f4f7fb;
  border: 2px solid #c9d6e4;
  border-radius: 12px;
  padding: 14px;
  font-size: 19px;
  margin: 9px 0;
  cursor: pointer;
}
.choix-btn.bon { background: #d9f5e3; border-color: #1d9e57; }
.choix-btn.mauvais { background: #fde3e1; border-color: #b3261e; }
.choix-btn:disabled { cursor: default; opacity: .92; }
.explication {
  background: #fff8e1;
  border-left: 5px solid #f2b705;
  border-radius: 8px;
  padding: 10px 12px;
  margin-top: 12px;
}
footer { text-align: center; color: #5a6a7a; font-size: 15px; padding: 10px 16px 26px; }
.formule {
  display: block;
  background: #0d2653;
  color: #fff;
  border-radius: 10px;
  padding: 12px;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  margin: 10px 0;
}
