* { box-sizing: border-box; }
body { margin: 0; background: #eef4fa; color: #18304a; font: 17px/1.45 system-ui, sans-serif; -webkit-text-size-adjust: 100%; }
a { color: inherit; text-decoration: none; }
main { max-width: 1000px; margin: auto; padding: 20px; }
h1 { margin: 10px 0 4px; font-size: clamp(26px, 5vw, 36px); }

.entete { background: #163e68; color: #fff; padding: 18px max(20px, calc((100% - 960px) / 2)) 26px; }
.page-matiere .entete { background: var(--c); }
.entete p { margin: 0; opacity: .9; }
.entete-haut { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 15px; }
.retour { font-weight: 600; padding: 8px 0; }

button { font: inherit; cursor: pointer; border: 0; border-radius: 10px; }
.discret { background: #ffffff26; color: #fff; padding: 8px 14px; font-size: 15px; }
.discret.sombre { background: #e3ebf3; color: #18304a; margin-top: 14px; }

.profil { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; text-align: center; }
.profil p { font-size: 20px; }
.profil-choix { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; margin-top: 12px; }
.profil-bouton { width: 190px; padding: 28px 16px; background: #fff; color: #18304a; font-size: 22px; font-weight: 600; box-shadow: 0 4px 18px #163e6820; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.profil-icone { font-size: 56px; }

.grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.carte { background: #fff; border-radius: 16px; padding: 20px 18px; border-left: 8px solid var(--c); box-shadow: 0 4px 18px #163e6812; display: flex; flex-direction: column; gap: 4px; min-height: 150px; }
.carte:active, .lecon:active { transform: scale(.98); }
.carte-icone { font-size: 34px; }
.carte-nom { font-weight: 700; font-size: 19px; }
.carte-info { color: #5b7088; font-size: 15px; margin-top: auto; }
progress { width: 100%; height: 8px; accent-color: #16836b; }

.lecons { display: flex; flex-direction: column; gap: 12px; }
.lecon { background: #fff; border-radius: 14px; padding: 16px; display: flex; align-items: center; gap: 14px; box-shadow: 0 4px 18px #163e6812; }
.lecon-num { flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--c); color: #fff; font-weight: 700; display: grid; place-items: center; }
.lecon-texte { flex: 1; display: flex; flex-direction: column; }
.lecon-texte span { color: #5b7088; font-size: 15px; }
.note { flex: none; padding: 6px 12px; border-radius: 99px; background: #e9eff5; font-weight: 600; font-size: 15px; white-space: nowrap; }
.note.bon { background: #d8f3e6; }
.bon { color: #08764e; font-weight: 700; }
.note.faible { background: #fde3e5; }
.faible { color: #b52e37; font-weight: 700; }
.vide { background: #fff; border-radius: 14px; padding: 30px; text-align: center; color: #5b7088; }

.bloc { background: #fff; border-radius: 16px; padding: 22px; margin-top: 24px; box-shadow: 0 4px 18px #163e6812; }
.bloc h2 { margin-top: 0; color: #164e85; }
.aide { color: #5b7088; font-size: 15px; }
.defile { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { border: 1px solid #c6d5e4; padding: 8px 10px; text-align: left; }
th { background: #e9f2fb; }
