/* Mon Labo Techno — en-tête unique (leçons 01, 02, 04, 05, test 1)
   et navigation commune uniquement sur les leçons. N'altère aucun script pédagogique. */
.mlt-unified-header,
body.mlt-compression .mlt-head-band {
  background:#fff;
  color:#23194d;
  border-bottom:1px solid #e9e5f5;
}
.mlt-unified-header { position:relative; top:auto; z-index:10; }
.mlt-head-row {
  width:min(1736px,calc(100% - 70px));
  min-height:121px;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  text-align:left;
}
.mlt-head-row .mlt-brand { color:inherit; }
.mlt-head-row .mlt-brand span:first-child{font-size:29px;padding:6px 10px 7px;}
.mlt-head-row .mlt-brand span:last-child{font-size:31px;padding:5px 11px 8px;margin-left:16px;}
.mlt-head-nav {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  flex-direction:row;
  flex-wrap:wrap;
  gap:15px;
  margin-left:auto;
  position:static;
  padding:0;
  background:transparent;
  border:0;
  box-shadow:none;
}
.mlt-head-nav a,
.site-header .mlt-head-nav a,
body.mlt-compression .mlt-head-nav a {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex-direction:row;
  gap:12px;
  white-space:nowrap;
  border-radius:999px;
  font-weight:900;
  text-decoration:none;
  transition:transform .16s,box-shadow .16s,background .16s;
  line-height:1.2;
}
.mlt-head-nav .mlt-head-home,
.site-header .mlt-head-nav .mlt-head-home,
body.mlt-compression .mlt-head-nav .mlt-head-home {
  background:linear-gradient(135deg,#7650ff,#6031ed);
  color:#fff!important;
  border:1px solid #6840f4;
  padding:0 32px;
  min-height:70px;
  box-shadow:0 12px 24px rgba(106,67,239,.2);
  font-size:20px;
}
.mlt-head-home svg { width:26px; height:26px; flex-shrink:0; }
.mlt-head-nav .mlt-head-info,
.site-header .mlt-head-nav .mlt-head-info,
body.mlt-compression .mlt-head-nav .mlt-head-info {
  background:#f0eaff;
  color:#5f34d8!important;
  border:1px solid #ded0ff;
  padding:0 24px;
  min-height:60px;
  font-size:18px;
  box-shadow:none;
}
.mlt-head-nav a:hover { transform:translateY(-2px); }
.mlt-head-nav .mlt-head-home:hover {box-shadow:0 16px 28px rgba(106,67,239,.29);}
.mlt-head-nav .mlt-head-info:hover { background:#e7ddff; }
.mlt-head-nav a:focus-visible {outline:3px solid #05bb99;outline-offset:4px;}
/* Les pages 04 et 05 gardent intacte la zone pédagogique et ses onglets. */
body.mlt-compression .mlt-head-band { width:100%; }
body.mlt-compression .activity-header .mlt-head-row { padding:0; }
/* Navigation de fin des leçons : modèle commun MLT. Le test n'a pas cette zone. */
.mlt-lesson-bottom {
  padding:34px 0;
  background:#f9f8ff;
  border-top:1px solid #e9e3fb;
}
.mlt-lesson-bottom .nav-actions {
  width:min(1160px,calc(100% - 40px));
  margin:0 auto;
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  justify-content:center;
  align-items:center;
}
.mlt-lesson-bottom .page-nav-action {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border:1px solid #ded6fa;
  border-radius:999px;
  padding:13px 22px;
  min-height:61px;
  text-align:center;
  background:#fff;
  color:#6435da;
  font-size:17px;
  font-weight:900;
  text-decoration:none;
  box-shadow:0 5px 15px rgba(75,52,142,.05);
  transition:transform .16s,box-shadow .16s;
}
.mlt-lesson-bottom .page-nav-action.next {
  background:linear-gradient(135deg,#7b50ff,#6031ed);
  color:#fff;
  border-color:#7142ef;
}
/* Bouton de retour pour les leçons 02 et 05. */
.mlt-lesson-bottom .page-nav-action.prev {
  background:#f0eaff;
  color:#5c30d5;
  border-color:#c6b6f5;
}
/* Le futur test de la leçon 05 reste visible, mais réellement désactivé. */
.mlt-lesson-bottom .page-nav-action:disabled {
  opacity:.55;
  cursor:not-allowed;
  box-shadow:none;
  transform:none;
}

.mlt-lesson-bottom .page-nav-action:hover:not(:disabled) {transform:translateY(-2px);box-shadow:0 8px 22px rgba(75,52,142,.13);}
.mlt-lesson-bottom .page-nav-action:focus-visible {outline:3px solid #05bb99;outline-offset:4px;}
@media(max-width:720px){
  .mlt-head-row{width:calc(100% - 32px);min-height:95px;gap:12px;}
  .mlt-head-nav{gap:8px;}
  .mlt-head-row .mlt-brand span:first-child{font-size:21px;padding:5px 8px 6px;}
  .mlt-head-row .mlt-brand span:last-child{font-size:23px;padding:4px 9px 6px;margin-left:12px;}
  .mlt-head-nav .mlt-head-home,
  .site-header .mlt-head-nav .mlt-head-home,
  body.mlt-compression .mlt-head-nav .mlt-head-home {font-size:14px;min-height:47px;padding:0 13px;gap:6px;}
  .mlt-head-home svg{width:18px;height:18px;}
  .mlt-head-nav .mlt-head-info,
  .site-header .mlt-head-nav .mlt-head-info,
  body.mlt-compression .mlt-head-nav .mlt-head-info {font-size:13px;min-height:46px;padding:0 10px;gap:6px;}
  .mlt-lesson-bottom{padding:25px 0;}
  .mlt-lesson-bottom .page-nav-action{font-size:14px;min-height:48px;padding:11px 15px;}
}
@media(max-width:455px){
  .mlt-head-row{min-height:94px;width:calc(100% - 22px);gap:6px;}
  .mlt-head-nav{gap:5px;}
  .mlt-head-row .mlt-brand{margin-right:0;}
  .mlt-head-row .mlt-brand span:first-child{font-size:17px;padding:4px 6px 5px;}
  .mlt-head-row .mlt-brand span:last-child{font-size:19px;padding:3px 7px 5px;margin-left:10px;}
  .mlt-head-nav .mlt-head-home,
  .site-header .mlt-head-nav .mlt-head-home,
  body.mlt-compression .mlt-head-nav .mlt-head-home{font-size:12px;padding:0 9px;min-height:42px;}
  .mlt-head-nav .mlt-head-info,
  .site-header .mlt-head-nav .mlt-head-info,
  body.mlt-compression .mlt-head-nav .mlt-head-info{font-size:12px;padding:0 8px;min-height:42px;}
  .mlt-head-home svg{width:15px;height:15px;}
  .mlt-lesson-bottom .nav-actions{display:flex;flex-wrap:wrap;gap:9px;}
  .mlt-lesson-bottom .page-nav-action{flex:1 1 155px;font-size:13px;}
  .mlt-lesson-bottom .page-nav-action.next{flex-basis:100%;}
}
@media(prefers-reduced-motion:reduce){.mlt-head-nav a,.mlt-lesson-bottom .page-nav-action{transition:none}}
