/* JeSuisAdmis — Contrôleur B, refonte d'affichage R01 (18/10/2026).
   Périmètre : cours B uniquement, autres formations et exercices/QCM inchangés.
   Présentation calquée sur les pages validées d'Inspecteur A. */
.b-module-nav {
  box-sizing:border-box;display:flex;flex-wrap:wrap;gap:10px;
  width:calc(100% - 24px);max-width:1180px;min-width:0;
  margin:24px auto 20px;padding:0;
  font-family:system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
}
.b-module-nav > a {
  box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;
  min-height:48px;max-width:100%;padding:12px 17px;
  border:1px solid #ccd6e3;border-radius:10px;background:#fff;
  color:#233b53;font:650 16px/1.5 system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  text-decoration:none;text-align:center;white-space:normal;overflow-wrap:normal;word-break:normal;
  box-shadow:0 1px 3px rgba(22,32,58,.04);
}
.b-module-nav > a:hover{background:#f2f6fb;border-color:#9db4d1}
.b-module-nav > a[aria-current="page"]{background:#edf4ff;border-color:#8eabd1;color:#193e68}
.b-module-nav > a:focus-visible{outline:3px solid #234f86;outline-offset:3px}

/* Grand cadre blanc : largeur totale du conteneur utile, sans coupe. */
.lecon.b-controleur-page {
  box-sizing:border-box;width:calc(100% - 24px);max-width:1180px;min-width:0;
  margin:0 auto 32px;padding:clamp(28px,4vw,48px);
  background:#fff;border:1px solid #dce1e9;border-radius:14px;
  box-shadow:0 5px 20px rgba(22,32,58,.025);
  color:#26314b;font-family:system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  overflow-wrap:normal;word-break:normal;hyphens:none;
}
.lecon.b-controleur-page > h1 {
  max-width:none;font-family:inherit;font-size:clamp(29px,3vw,42px);
  line-height:1.2;letter-spacing:-.025em;color:#19253e;margin:20px 0 28px;
}
.lecon.b-controleur-page > .fil {
  font-family:inherit;font-size:17px;line-height:1.5;margin:0 0 12px;
}
.lecon.b-controleur-page > .fil a {color:#526176;text-decoration:none}
.lecon.b-controleur-page > .fil a:hover{text-decoration:underline}
.lecon.b-controleur-page > .fil.b-controleur-jour-retour a {
  display:inline-flex;align-items:center;min-height:44px;max-width:100%;
  font-size:18px;font-weight:650;color:#304f77;white-space:normal;overflow-wrap:anywhere;
}
.lecon.b-controleur-page > .fil a:focus-visible{outline:3px solid #234f86;outline-offset:3px}
.lecon.b-controleur-page > .texte {
  box-sizing:border-box;width:100%;max-width:none;min-width:0;margin:0;
  color:#26314b;font:400 19px/1.7 system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
}
.lecon.b-controleur-page > .texte > * {max-width:100%;box-sizing:border-box}
.lecon.b-controleur-page > .texte p {max-width:none}
.lecon.b-controleur-page > .texte :is(img,video,iframe,pre,svg) {max-width:100%}
.lecon.b-controleur-page > .texte :is(.article-table-wrap,.tableau-cours,.table-responsive,.a-table-scroll) {
  max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;
}

/* Les cours B01 ont des styles insérés en base. Ces sélecteurs, plus précis,
   harmonisent leur typographie sans changer le contenu ni les autres cours. */
.lecon.b-controleur-page > .texte .jsa-b-reprise-2026 {
  box-sizing:border-box;width:100%;max-width:none;min-width:0;margin:0;
  font-family:system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;
  font-size:19px!important;line-height:1.7!important;color:#26314b!important;
  overflow-wrap:normal;word-break:normal;hyphens:none;
}
.lecon.b-controleur-page > .texte .jsa-b-reprise-2026 :is(p,li) {
  font-family:inherit!important;font-size:19px!important;line-height:1.7!important;
  letter-spacing:normal!important;overflow-wrap:normal;word-break:normal;hyphens:none;
}
.lecon.b-controleur-page > .texte .jsa-b-reprise-2026 :is(h2,h3,h4) {
  font-family:inherit!important;line-height:1.35!important;color:#26314b!important;
  letter-spacing:-.02em!important;
}
.lecon.b-controleur-page > .texte .jsa-b-reprise-2026 h2 {font-size:29px!important;margin:40px 0 18px!important}
.lecon.b-controleur-page > .texte .jsa-b-reprise-2026 h3 {font-size:22px!important;margin:28px 0 14px!important}
.lecon.b-controleur-page > .texte .jsa-b-reprise-2026 > aside:first-of-type {
  width:100%;box-sizing:border-box;padding:18px 22px!important;
  margin:25px 0 34px!important;border:1px solid #aac7eb!important;
  border-left:4px solid #789ecb!important;border-radius:10px!important;
  background:#eef5ff!important;color:#193e68!important;
}
.lecon.b-controleur-page > .texte .jsa-b-reprise-2026 > aside:first-of-type > div:first-child {
  font-family:inherit!important;font-size:19px!important;font-weight:750!important;
  color:#193e68!important;line-height:1.5!important;
}
.lecon.b-controleur-page > .texte .jsa-b-reprise-2026 > aside:first-of-type > p:last-child {margin-bottom:0!important}
.lecon.b-controleur-page > .texte .jsa-b-reprise-2026 :is(table,th,td) {max-width:none;word-break:normal;hyphens:none}
.lecon.b-controleur-page > .texte .jsa-b-reprise-2026 :is(th,td) {
  font-family:inherit!important;font-size:16px!important;line-height:1.55!important;
  white-space:normal;word-break:normal;overflow-wrap:normal;
}

@media(max-width:700px) {
  .b-module-nav {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:16px;margin-bottom:16px}
  .b-module-nav > a {min-width:0;width:100%;font-size:14.5px;min-height:48px;padding:10px 9px}
  .lecon.b-controleur-page {padding:24px 18px}
  .lecon.b-controleur-page > h1 {font-size:clamp(26px,6vw,34px);margin:14px 0 23px}
  .lecon.b-controleur-page > .texte {font-size:18px;line-height:1.7}
  .lecon.b-controleur-page > .texte .jsa-b-reprise-2026 {font-size:18px!important;line-height:1.7!important}
  .lecon.b-controleur-page > .texte .jsa-b-reprise-2026 :is(p,li) {font-size:18px!important;line-height:1.7!important}
  .lecon.b-controleur-page > .texte .jsa-b-reprise-2026 h2 {font-size:23px!important;margin-top:30px!important}
  .lecon.b-controleur-page > .texte .jsa-b-reprise-2026 h3 {font-size:20px!important}
  .lecon.b-controleur-page > .texte .jsa-b-reprise-2026 > aside:first-of-type {padding:16px!important}
  .lecon.b-controleur-page > .texte .jsa-b-reprise-2026 > aside:first-of-type > div:first-child {font-size:18px!important}
  .lecon.b-controleur-page > .texte .jsa-b-reprise-2026 :is(th,td) {font-size:15px!important}
}
@media(max-width:420px){.b-module-nav > a {font-size:14px;padding:10px 7px}}
@media print {
  .b-module-nav{display:none}
  .lecon.b-controleur-page{width:100%;max-width:none;border:0;box-shadow:none;padding:0}
}
