/* MaPrimaire - CM2 sciences modernisation */
.mp-science-page {
  background: #f3f6fb;
  color: #263243;
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}
.mp-science-page *, .mp-science-page *::before, .mp-science-page *::after { box-sizing: border-box; }
.mp-nav-wrap { margin-top: 12px; }
.mp-nav-wrap .navbar { border: 0; border-radius: 18px; box-shadow: 0 12px 28px rgba(37, 52, 73, .12); overflow: hidden; }
.mp-nav-wrap .navbar-brand { height: 64px; padding: 10px 15px; }
.mp-nav-wrap .navbar-brand img { max-height: 44px; width: auto; }
.mp-nav-wrap .navbar-nav > li > a { color: #fff !important; font-weight: 700; margin: 10px 4px; border-radius: 999px; padding: 10px 14px; }
.mp-hero {
  display: flex;
  gap: 20px;
  align-items: center;
  background: linear-gradient(135deg, #ffffff 0%, #edf8ff 100%);
  border-radius: 24px;
  padding: 28px;
  margin: 18px 0;
  box-shadow: 0 18px 40px rgba(37, 52, 73, .12);
}
.mp-hero-icon {
  width: 74px;
  height: 74px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e2f7ee;
  color: #188854;
  font-size: 34px;
  flex: 0 0 auto;
}
.mp-eyebrow { display: inline-block; color: #6b7280; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; margin-bottom: 6px; }
.mp-hero h1 { margin: 0 0 8px; font-size: 34px; font-weight: 800; color: #20304a; }
.mp-hero p { margin: 0 0 16px; font-size: 17px; color: #526173; }
.mp-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.mp-btn { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 999px; padding: 11px 18px; font-weight: 800; text-decoration: none !important; cursor: pointer; line-height: 1.2; }
.mp-btn-primary { background: #1d9a68; color: #fff !important; box-shadow: 0 8px 18px rgba(29, 154, 104, .28); }
.mp-btn-secondary { background: #eaf0f7; color: #27364d !important; }
.mp-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
.mp-card { background: #fff; border-radius: 22px; padding: 24px; box-shadow: 0 12px 30px rgba(37, 52, 73, .10); margin-bottom: 22px; overflow: hidden; }
.mp-card h2, .mp-card h3 { color: #20304a; font-weight: 800; margin-top: 0; }
.mp-progress { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 16px 0; }
.mp-stat { background: #f7fbff; border: 1px solid #dfeaf6; border-radius: 16px; padding: 12px; text-align: center; color: #526173; }
.mp-stat strong { display: block; color: #20304a; font-size: 24px; line-height: 1; }
.mp-label-bank { background: #fff9ef; border: 1px solid #ffe0ad; border-radius: 20px; padding: 18px; margin: 18px 0; }
.mp-label-bank h3 { margin-bottom: 4px; }
.mp-label-tip { color: #6b7280; margin-bottom: 12px; }
.mp-labels { display: flex; flex-wrap: wrap; gap: 10px; }
.mp-label {
  border: 2px solid #dfe7f1;
  background: #fff;
  color: #20304a;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 900;
  cursor: pointer;
  transition: .15s ease;
}
.mp-label:hover, .mp-label.is-selected, .mp-label:focus { border-color: #1d9a68; background: #e9fbf4; color: #0b6d45; transform: translateY(-1px); outline: none; }
.mp-science-board { display: grid; grid-template-columns: minmax(260px, 1.25fr) minmax(240px, .75fr); gap: 18px; align-items: start; }
.mp-diagram-wrap { margin: 0; background: #f7fbff; border: 1px solid #dfeaf6; border-radius: 22px; padding: 14px; text-align: center; overflow: hidden; }
.mp-diagram { width: 100%; max-width: 640px; height: auto; display: block; margin: 0 auto; border-radius: 14px; }
.mp-diagram--ampoule { max-width: 500px; }
.mp-diagram--bras { max-width: 470px; }
.mp-match-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.mp-match-card { background: #f8fbff; border: 1px solid #dfeaf6; border-radius: 18px; padding: 14px; display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 10px 12px; align-items: center; }
.mp-match-card p { margin: 0; color: #526173; grid-column: 2; }
.mp-prompt-box { grid-row: span 2; width: 52px; height: 52px; border-radius: 16px; background: #20304a; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 900; }
.mp-drop-zone { width: 100%; min-height: 46px; border: 2px dashed #b7c5d7; background: #fff; border-radius: 14px; color: #6b7280; font-weight: 900; text-align: center; padding: 9px 10px; cursor: pointer; transition: .15s ease; }
.mp-drop-zone:hover, .mp-drop-zone:focus, .mp-drop-zone.is-active { border-color: #1d9a68; background: #e9fbf4; color: #0b6d45; outline: none; }
.mp-drop-zone.is-filled { border-style: solid; color: #20304a; }
.mp-drop-zone.is-correct { border-color: #14914f; background: #edfff4; color: #0b6b3b; }
.mp-drop-zone.is-wrong { border-color: #d33f26; background: #fff3ef; color: #ad2f1b; }
.mp-feedback { min-height: 26px; margin: 14px 0 10px; color: #526173; font-weight: 800; }
.mp-result-box { margin-top: 16px; }
.mp-result-card { display: flex; gap: 16px; align-items: flex-start; border-radius: 18px; padding: 18px; border: 1px solid; }
.mp-result-card.is-success { background: #f0fff6; border-color: #bdeecf; }
.mp-result-card.is-error { background: #fff6f3; border-color: #ffd1c3; }
.mp-result-icon { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 900; background: #fff; flex: 0 0 auto; }
.mp-result-card.is-success .mp-result-icon { color: #13984f; }
.mp-result-card.is-error .mp-result-icon { color: #d33f26; }
.mp-result-card ul { margin-bottom: 0; }
.mp-side-list { padding-left: 18px; line-height: 1.8; }
.mp-level-aside { display: flex; align-items: center; gap: 12px; background: #f7fbff; border: 1px solid #dfeaf6; border-radius: 16px; padding: 12px; margin: 12px 0; }
.mp-level-aside img { width: 92px; height: auto; flex: 0 0 auto; }
.mp-level-aside span { font-weight: 800; color: #20304a; }
.mp-info-text { color: #526173; line-height: 1.65; }
.mp-correction-list { padding-left: 20px; line-height: 1.8; }
.mp-correction-list strong { color: #1d9a68; }
.mp-footer { margin: 26px 0; padding: 18px 20px; border-radius: 18px; background: #20304a; color: #dfe8f5; }
.mp-footer a { color: #fff; }
@media (max-width: 991px) {
  .mp-layout, .mp-science-board { grid-template-columns: 1fr; }
  .mp-hero { align-items: flex-start; }
}
@media (max-width: 767px) {
  .mp-nav-wrap { margin-top: 0; padding-left: 0; padding-right: 0; }
  .mp-nav-wrap .navbar { border-radius: 0 0 18px 18px; }
  .mp-hero { padding: 20px; border-radius: 20px; }
  .mp-hero-icon { width: 56px; height: 56px; border-radius: 18px; font-size: 26px; }
  .mp-hero h1 { font-size: 27px; }
  .mp-card { padding: 18px; border-radius: 18px; }
  .mp-progress { grid-template-columns: 1fr; }
  .mp-science-board { gap: 14px; }
  .mp-diagram-wrap { padding: 10px; border-radius: 18px; }
  .mp-match-card { grid-template-columns: 48px minmax(0, 1fr); padding: 12px; }
  .mp-prompt-box { width: 44px; height: 44px; border-radius: 14px; font-size: 20px; }
  .mp-labels { gap: 8px; }
  .mp-label { width: 100%; justify-content: center; }
  .mp-footer .text-right { text-align: left; margin-top: 12px; }
}

/* MaPrimaire - correctif bandeau CM2 sciences
   Objectif : logo plus présent et menu plus lisible, proche de la présentation des évaluations CE2. */
.mp-science-page {
  padding-top: 22px;
}

.mp-nav-wrap.container {
  width: min(1120px, calc(100% - 28px));
  max-width: 1120px;
  padding-left: 0;
  padding-right: 0;
}

.mp-nav-wrap .navbar {
  min-height: 122px;
  padding: 16px 18px 14px;
  border: 1px solid #dbe5f4 !important;
  border-radius: 30px !important;
  background: linear-gradient(135deg, #ffffff 0%, #f7faff 100%) !important;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.10) !important;
  overflow: visible !important;
}

.mp-nav-wrap .container-fluid {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 90px;
  padding-left: 8px;
  padding-right: 8px;
}

.mp-nav-wrap .navbar-header {
  float: none !important;
  display: flex;
  align-items: center;
  min-height: 88px;
  flex: 0 0 auto;
}

.mp-nav-wrap .navbar-brand,
.mp-nav-wrap .navbar-brand.navbar-link {
  float: none !important;
  display: flex;
  align-items: center;
  height: auto !important;
  min-height: 88px;
  padding: 0 18px 0 4px !important;
}

.mp-nav-wrap .navbar-brand img {
  display: block;
  width: auto !important;
  max-width: 190px !important;
  max-height: 82px !important;
  height: auto !important;
}

.mp-nav-wrap .navbar-collapse {
  flex: 1 1 auto;
  padding: 0 !important;
  border-top: 0 !important;
  box-shadow: none !important;
}

.mp-nav-wrap .navbar-nav {
  float: none !important;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin: 0 !important;
}

.mp-nav-wrap .navbar-nav > li {
  float: none !important;
}

.mp-nav-wrap .navbar-nav > li > a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  margin: 0 !important;
  padding: 15px 20px !important;
  border-radius: 999px !important;
  color: #ffffff !important;
  font-size: 16px !important;
  font-weight: 850 !important;
  line-height: 1.2 !important;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
  text-decoration: none !important;
  white-space: nowrap;
}

.mp-nav-wrap .navbar-nav > li > a i {
  margin-right: 7px;
  font-size: 15px;
}

.mp-nav-wrap .navbar-nav > li > a:hover,
.mp-nav-wrap .navbar-nav > li > a:focus {
  filter: brightness(0.96);
  transform: translateY(-1px);
}

.mp-nav-wrap .navbar-toggle {
  border: 1px solid #dbe5f4 !important;
  background: #ffffff !important;
  border-radius: 14px !important;
  padding: 11px 12px !important;
}

.mp-nav-wrap .navbar-toggle .icon-bar {
  background: #20304a !important;
  width: 24px;
  height: 3px;
}

@media (max-width: 1120px) and (min-width: 768px) {
  .mp-nav-wrap .container-fluid {
    align-items: flex-start;
    flex-direction: column;
  }

  .mp-nav-wrap .navbar,
  .mp-nav-wrap .navbar-header,
  .mp-nav-wrap .navbar-brand,
  .mp-nav-wrap .navbar-brand.navbar-link {
    min-height: auto;
  }

  .mp-nav-wrap .navbar-collapse {
    width: 100%;
  }

  .mp-nav-wrap .navbar-nav {
    justify-content: flex-start;
  }
}

@media (max-width: 767px) {
  .mp-science-page {
    padding-top: 0;
  }

  .mp-nav-wrap.container {
    width: 100%;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
  }

  .mp-nav-wrap .navbar {
    min-height: auto;
    padding: 10px 12px 12px;
    border-radius: 0 0 22px 22px !important;
  }

  .mp-nav-wrap .container-fluid {
    display: block;
    min-height: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .mp-nav-wrap .navbar-header {
    min-height: 66px;
    justify-content: space-between;
  }

  .mp-nav-wrap .navbar-brand,
  .mp-nav-wrap .navbar-brand.navbar-link {
    min-height: 66px;
    padding: 0 8px 0 0 !important;
  }

  .mp-nav-wrap .navbar-brand img {
    max-width: 142px !important;
    max-height: 64px !important;
  }

  .mp-nav-wrap .navbar-toggle {
    margin: 11px 0 11px 8px !important;
  }

  .mp-nav-wrap .navbar-collapse {
    padding-top: 8px !important;
  }

  .mp-nav-wrap .navbar-nav {
    display: block;
    width: 100%;
    margin: 6px 0 0 !important;
  }

  .mp-nav-wrap .navbar-nav > li > a {
    width: 100%;
    min-height: 50px;
    margin: 8px 0 !important;
    padding: 13px 14px !important;
    font-size: 15px !important;
    white-space: normal;
  }
}