/* Lecture des leçons uniquement : aucun changement aux vitrines ou à l'admin.
   Largeur alignée sur la .wrap du site, sans modifier les styles globaux. */
.lecon {
  box-sizing: border-box;
  width: 100%;
  max-width: 1180px;
  min-width: 0;
  margin-inline: auto;
  padding: clamp(28px, 4vw, 52px) clamp(20px, 3vw, 40px);
  overflow-wrap: anywhere;
}
.lecon > .fil { font-size: 14px; line-height: 1.6; margin-bottom: 16px; }
.lecon > h1 {
  max-width: none;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.15;
  letter-spacing: -.035em;
  margin-bottom: 26px;
}
.lecon > .texte { min-width: 0; max-width: none; font-size: 20px; line-height: 1.75; }
.lecon .texte h2 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.3; }
.lecon .texte h3 { font-size: 22px; line-height: 1.35; }
.lecon .texte img { max-width: 100%; height: auto; }
.lecon .texte pre { max-width: 100%; overflow-x: auto; }
.lecon .texte :is(.tableau-cours, .table-responsive) {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.lecon .texte table { max-width: 100%; }
.lecon .texte :is(.tableau-cours, .table-responsive) table {
  width: 100%;
  min-width: 760px;
  max-width: none;
  font-size: 17px;
  line-height: 1.6;
}
.lecon .texte :is(.tableau-cours, .table-responsive) th { white-space: nowrap; }
.lecon .texte :is(.tableau-cours, .table-responsive) th,
.lecon .texte :is(.tableau-cours, .table-responsive) td { padding: 12px 16px; }
.lecon .texte ul.recap li { font-size: 17px; line-height: 1.65; }
.lecon .lecon-objectif { font-size: 17px; line-height: 1.65; }
.lecon .encart { padding: 22px 26px; }
/* Les QCM restent compacts : ne pas étirer les réponses sur un grand écran. */
.lecon .examen { width: 100%; max-width: 820px; margin-inline: auto; }
.lecon .nav-lecon { flex-wrap: wrap; align-items: stretch; }
.lecon .nav-lecon > a {
  flex: 0 1 calc(50% - 8px);
  min-width: 0;
  white-space: normal;
  line-height: 1.45;
  padding: 13px 18px;
}
.lecon .nav-lecon > a:last-child { margin-left: auto; }
.lecon .invite-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.lecon .invite-actions .btn { margin: 0; white-space: normal; }
@media (max-width: 700px) {
  .lecon { padding: 26px 20px 36px; }
  .lecon > h1 { font-size: clamp(26px, 6vw, 34px); margin-bottom: 22px; }
  .lecon > .texte { font-size: 18px; line-height: 1.7; }
  .lecon .texte h2 { font-size: 23px; margin-top: 32px; }
  .lecon .texte h3 { font-size: 20px; }
  .lecon .lecon-objectif,
  .lecon .texte ul.recap li { font-size: 16px; }
  .lecon .texte :is(.tableau-cours, .table-responsive) {
    margin-left: 0;
    margin-right: 0;
    border-radius: 12px;
  }
  .lecon .texte :is(.tableau-cours, .table-responsive) table {
    min-width: 760px;
    font-size: 14px;
  }
  .lecon .texte :is(.tableau-cours, .table-responsive) th,
  .lecon .texte :is(.tableau-cours, .table-responsive) td { padding: 10px 12px; }
  .lecon .encart { padding: 18px; }
  .lecon .nav-lecon { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .lecon .nav-lecon > span { display: none; }
  .lecon .nav-lecon > a { width: 100%; margin: 0; box-sizing: border-box; }
  .lecon .invite-actions .btn { flex: 1 1 190px; justify-content: center; }
}
@media print {
  .lecon { max-width: none; padding: 0; }
  .lecon > .texte { font-size: 12pt; }
  .lecon .nav-lecon, .lecon .invite-compte, .lecon .barre-action { display: none; }
}

/* Pack oral : aucune pastille flottante sur mobile, sur tout le site. */
@media (max-width:760px){
html body .ja-float-oral,
html body .ja-float-oral-dismiss,
html body .ja-float-oral-dismiss .ja-float-oral,
html body .ja-float-oral-close{
  display:none!important;
}
}
