/* Habillage commun aux deux activités de compression de Mon Labo Techno.
   Les CSS et JavaScript originaux restent séparés et intacts. */
body.mlt-compression {
  --navy: #201747;
  --ink: #242348;
  --muted: #59617b;
  --bg: #faf9ff;
  --line: #e7e2f4;
  --accent: #7040ed;
  font-family: 'Trebuchet MS', 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
body.mlt-compression--avec { --accent: #bf4775; }
body.mlt-compression .activity-header {
  background: radial-gradient(circle at 90% 45%, #e4f9f2 0, transparent 42%),
              radial-gradient(circle at 8% 10%, #f0eaff 0, transparent 46%), #fff;
  color: var(--ink);
  padding: 0;
  border-bottom: 1px solid #e8e3f4;
}
body.mlt-compression .mlt-nav-wrap {
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid #eae6f5;
}
body.mlt-compression .mlt-nav-inner {
  width: min(1150px, calc(100% - 40px));
  min-height: 85px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
body.mlt-compression .mlt-page-nav {display:flex; align-items:center; flex-wrap:wrap; gap:10px}
body.mlt-compression .mlt-page-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: #f1ebff;
  color: #6532d9;
  border: 1px solid #e4d8ff;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 900;
  font-size: 14px;
  white-space: nowrap;
}
body.mlt-compression .mlt-page-nav a:hover { background:#e9ddff; }
body.mlt-compression .activity-header > .wrap {padding: 34px 16px 0;}
body.mlt-compression .activity-header h1 {
  color: #23194d;
  font-size: clamp(28px, 4vw, 40px);
  line-height:1.18;
  letter-spacing: -.035em;
}
body.mlt-compression .activity-header .sub {
  color:#5d6684;
  font-size: clamp(15px, 1.8vw, 17px);
  line-height: 1.5;
  margin: 8px 0 22px;
}
body.mlt-compression .tabs {gap: 7px; row-gap: 8px;}
body.mlt-compression .tab {
  background:#eee9fb;
  color:#594783;
  border:1px solid #e5ddf8;
  border-bottom:0;
  border-radius:13px 13px 0 0;
  padding: 12px 16px;
  font-family: inherit;
}
body.mlt-compression .tab:hover { background:#e2d6fc; color:#5125bb; }
body.mlt-compression .tab.on {
  background:var(--bg);
  color:#6432da;
  border-color:#e5ddf8;
  box-shadow: inset 0 4px 0 #7140ef;
}
body.mlt-compression main.wrap { padding-top: 25px; padding-bottom: 48px; }
body.mlt-compression .card {
  border-color:var(--line);
  border-radius: 21px;
  box-shadow: 0 12px 32px rgba(40, 25, 100, .055);
}
body.mlt-compression .card h2 { color:#211747; }
body.mlt-compression button, body.mlt-compression select { font-family: inherit; }
body.mlt-compression button.b,
body.mlt-compression a.b { border-radius: 11px; }
body.mlt-compression button.b.main { background:#7140ef; border-color:#7140ef; color:#fff; }
body.mlt-compression .launch {
  background:#7140ef;
  box-shadow: 0 4px 0 #4a26a5;
  border-radius: 14px;
}
body.mlt-compression .launch:active { box-shadow: 0 1px 0 #4a26a5; }
body.mlt-compression .retain, body.mlt-compression .retenir { border-radius:18px; }
body.mlt-compression :is(button,a,input,select):focus-visible {
  outline: 3px solid #03c69e;
  outline-offset:3px;
}
body.mlt-compression .mlt-footer {
  width:100%;
  max-width:none;
  text-align:left;
  padding: 30px 0;
  background:#fff;
  border-top:1px solid #eae6f5;
}
body.mlt-compression .mlt-footer .container {
  width:min(1150px, calc(100% - 40px));
  max-width:none;
}
@media (max-width: 680px) {
  body.mlt-compression .mlt-nav-inner { min-height:74px; }
  body.mlt-compression .mlt-page-nav { justify-content:flex-end; gap:7px; }
  body.mlt-compression .mlt-page-nav a { font-size:12px; padding:8px 11px; }
  body.mlt-compression .activity-header > .wrap {padding-top:26px;}
  body.mlt-compression .tab {font-size:14px; padding:10px 12px; border-radius:10px 10px 0 0;}
  body.mlt-compression main.wrap { padding-bottom:36px; }
}
@media (max-width: 380px) {
  body.mlt-compression .mlt-nav-inner {flex-wrap:wrap; padding:12px 0; gap:14px;}
  body.mlt-compression .mlt-page-nav {width:100%; justify-content:flex-start;}
}
@media (prefers-reduced-motion: reduce) {
  body.mlt-compression .card,body.mlt-compression .tab {transition:none!important;}
}
