
* { box-sizing: border-box; }
body.mp-geo-page {
  margin: 0;
  background: #eef5ff;
  color: #172033;
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}
body.mp-geo-page img { max-width: 100%; height: auto; }
body.mp-geo-page a { color: #174ea6; text-decoration: none; }
body.mp-geo-page a:hover { text-decoration: underline; }
.mp-geo-shell {
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
}
.mp-geo-nav-wrap {
  width: min(1120px, calc(100% - 28px));
  margin: 12px auto 10px;
  padding: 0;
}
.mp-geo-nav-wrap .navbar {
  min-height: 78px;
  margin-bottom: 0;
  border: 1px solid #dbeafe;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(37, 99, 235, .10);
}
.mp-geo-nav-wrap .navbar-header { min-height: 78px; }
.mp-geo-nav-wrap .navbar-brand {
  min-height: 78px;
  display: flex;
  align-items: center;
  padding: 8px 12px;
}
.mp-geo-nav-wrap .navbar-brand img { max-height: 58px; width: auto; }
.mp-geo-nav-wrap .navbar-nav > li > a {
  color: #fff !important;
  border-radius: 999px;
  margin: 18px 4px 0;
  padding: 12px 14px;
  font-weight: 700;
  line-height: 1;
}
.mp-geo-nav-wrap .navbar-toggle { margin-top: 21px; }
.mp-geo-breadcrumb {
  color: #667085;
  font-size: 14px;
  margin: 4px auto 10px;
}
.mp-geo-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  margin: 12px 0 18px;
  padding: 22px 24px;
  border-radius: 22px;
  background: linear-gradient(135deg, #ffffff 0%, #e8f2ff 100%);
  border: 1px solid #dbeafe;
  box-shadow: 0 14px 34px rgba(30, 64, 175, .10);
}
.mp-geo-kicker {
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1e40af;
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.mp-geo-hero h1 {
  margin: 12px 0 8px;
  color: #13233f;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
  font-weight: 800;
}
.mp-geo-hero p {
  margin: 0;
  color: #475467;
  font-size: 17px;
  line-height: 1.55;
}
.mp-geo-hero-visual {
  width: 190px;
  text-align: center;
}
.mp-geo-hero-visual img { max-height: 94px; width: auto; }
.mp-activity { margin-bottom: 20px; }
.mp-geo-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 18px;
  align-items: start;
}
.mp-geo-main-card,
.mp-label-panel-inner {
  border: 1px solid #dbeafe;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(30, 58, 138, .08);
}
.mp-geo-main-card { padding: 18px; }
.mp-geo-figure-card {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 240px;
  border-radius: 18px;
  background: #f8fbff;
  border: 1px solid #e5edff;
  padding: 12px;
}
.mp-geo-figure-card img {
  max-height: 480px;
  object-fit: contain;
}
.mp-info-card {
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475467;
  line-height: 1.5;
}
.mp-drop-list {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.mp-drop-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}
.mp-drop-num {
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #1d4ed8;
  color: #fff;
  font-weight: 800;
  font-size: 18px;
}
.mp-drop {
  width: 100%;
  min-height: 44px;
  padding: 7px 9px;
  border: 2px dashed #bfdbfe;
  border-radius: 14px;
  background: #f8fbff;
  color: #475467;
  text-align: center;
  font-weight: 700;
}
.mp-drop:focus,
.mp-label:focus,
.mp-btn:focus { outline: 3px solid rgba(37, 99, 235, .28); outline-offset: 2px; }
.mp-drop.is-filled {
  border-style: solid;
  border-color: #93c5fd;
  background: #eff6ff;
}
.mp-drop.is-correct { border-color: #16a34a; background: #dcfce7; color: #166534; }
.mp-drop.is-wrong { border-color: #dc2626; background: #fee2e2; color: #991b1b; }
.mp-drop .mp-label {
  margin: 0;
  width: 100%;
  cursor: pointer;
}
.mp-label-panel { position: relative; }
.mp-label-panel-placeholder { display: none; }
.mp-label-panel.is-fixed {
  position: fixed;
  top: 16px;
  z-index: 20;
}
.mp-label-panel.is-fixed + .mp-label-panel-placeholder { display: block; }
.mp-label-panel-inner { padding: 16px; }
.mp-label-panel h2 {
  margin: 0 0 8px;
  font-size: 20px;
  color: #13233f;
  font-weight: 800;
}
.mp-label-panel p {
  margin: 0 0 12px;
  color: #64748b;
  line-height: 1.45;
}
.mp-label-bank {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.mp-label {
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #ffffff;
  color: #1e3a8a;
  padding: 9px 12px;
  font-weight: 800;
  line-height: 1.15;
  box-shadow: 0 4px 10px rgba(30, 58, 138, .07);
}
.mp-label.is-active {
  background: #1d4ed8;
  color: #fff;
  border-color: #1d4ed8;
}
.mp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.mp-btn {
  border: 0;
  border-radius: 999px;
  padding: 11px 17px;
  background: #1d4ed8;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
.mp-btn-secondary { background: #0f766e; }
.mp-btn-ghost { background: #e2e8f0; color: #1f2937; }
.mp-feedback {
  margin: 12px 0 0;
  font-weight: 800;
  color: #1e3a8a;
}
.mp-correction-panel {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.mp-correction-panel h2 {
  margin: 0 0 10px;
  font-size: 20px;
  color: #13233f;
}
.mp-correction-panel ul {
  margin: 0;
  padding-left: 20px;
  color: #334155;
  line-height: 1.7;
}
.mp-flag-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.mp-flag-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #e5edff;
  border-radius: 16px;
  background: #f8fbff;
}
.mp-flag-img {
  display: grid;
  place-items: center;
  min-height: 66px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
}
.mp-flag-img img { width: 61px; height: 38px; object-fit: cover; }
.mp-corr-flag {
  width: 42px;
  height: 26px;
  object-fit: cover;
  margin-right: 8px;
  border: 1px solid #d1d5db;
  vertical-align: middle;
}
.mp-geo-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin: 24px auto 30px;
  padding: 16px 18px;
  border-top: 1px solid #dbeafe;
  color: #667085;
  line-height: 1.55;
}
.mp-geo-footer strong { color: #1e3a8a; }
.mp-geo-copy { white-space: nowrap; }
@media (max-width: 900px) {
  .mp-geo-nav-wrap .navbar-nav > li > a { margin-top: 6px; }
  .mp-geo-layout { grid-template-columns: 1fr; }
  .mp-label-panel.is-fixed { position: static !important; width: auto !important; left: auto !important; top: auto !important; }
  .mp-label-panel-placeholder { display: none !important; }
}
@media (max-width: 780px) {
  body.mp-geo-page { padding-bottom: 205px; }
  .mp-geo-shell,
  .mp-geo-nav-wrap { width: calc(100% - 16px); }
  .mp-geo-hero {
    grid-template-columns: 1fr;
    padding: 18px;
  }
  .mp-geo-hero-visual { width: auto; text-align: left; }
  .mp-geo-main-card { padding: 12px; border-radius: 16px; }
  .mp-geo-figure-card { min-height: 0; padding: 8px; }
  .mp-geo-figure-card img { max-height: 58vh; }
  .mp-drop-list,
  .mp-flag-grid { grid-template-columns: 1fr; }
  .mp-label-panel {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    width: auto !important;
    z-index: 50;
    padding: 8px;
    background: rgba(238, 245, 255, .96);
    border-top: 1px solid #bfdbfe;
  }
  .mp-label-panel-inner {
    max-height: 188px;
    overflow-y: auto;
    border-radius: 16px;
    padding: 12px;
  }
  .mp-label-panel h2 { font-size: 16px; margin-bottom: 3px; }
  .mp-label-panel p { font-size: 13px; margin-bottom: 8px; }
  .mp-label { padding: 8px 10px; font-size: 14px; }
  .mp-geo-footer { flex-direction: column; align-items: flex-start; }
  .mp-geo-copy { white-space: normal; }
}
@media (max-width: 480px) {
  .mp-geo-hero h1 { font-size: 28px; }
  .mp-drop-row { grid-template-columns: 40px minmax(0, 1fr); }
  .mp-drop-num { height: 40px; }
  .mp-flag-row { grid-template-columns: 78px minmax(0, 1fr); padding: 9px; gap: 8px; }
  .mp-actions { flex-direction: column; }
  .mp-btn { width: 100%; }
}


/* Extensions pour la suite CM2 géographie */
.mp-map-wrap {
  position: relative;
  display: inline-block;
  max-width: 100%;
}
.mp-map-wrap > img {
  display: block;
  width: 100%;
  height: auto;
}
.mp-map-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 999px;
  background: #1d4ed8;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 4px 12px rgba(15, 23, 42, .22);
}
.mp-article-card {
  border: 1px solid #dbeafe;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(30, 58, 138, .08);
  padding: 20px;
  margin-bottom: 16px;
}
.mp-article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, .9fr);
  gap: 18px;
  align-items: start;
}
.mp-article-card h2,
.mp-article-card h3 {
  color: #13233f;
  margin-top: 0;
}
.mp-article-card p,
.mp-article-card li {
  color: #334155;
  font-size: 16px;
  line-height: 1.65;
}
.mp-article-card ul {
  padding-left: 20px;
}
.mp-article-image {
  border-radius: 18px;
  background: #f8fbff;
  border: 1px solid #e5edff;
  padding: 12px;
  text-align: center;
}
.mp-article-image img {
  max-height: 260px;
  object-fit: contain;
}
.mp-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  padding: 12px 18px;
  border-radius: 999px;
  background: #1d4ed8;
  color: #fff !important;
  font-weight: 800;
  text-decoration: none !important;
}
.mp-quiz-list {
  display: grid;
  gap: 12px;
}
.mp-quiz-item {
  border: 1px solid #e5edff;
  border-radius: 16px;
  background: #f8fbff;
  padding: 14px;
}
.mp-quiz-item label,
.mp-quiz-question {
  display: block;
  font-weight: 800;
  color: #13233f;
  margin-bottom: 8px;
}
.mp-quiz-item select {
  width: 100%;
  max-width: 420px;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  background: #fff;
  padding: 10px 12px;
  color: #172033;
  font-weight: 700;
}
.mp-quiz-item.is-correct {
  border-color: #16a34a;
  background: #dcfce7;
}
.mp-quiz-item.is-wrong {
  border-color: #dc2626;
  background: #fee2e2;
}
.mp-result-box {
  border: 1px solid #dbeafe;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(30, 58, 138, .08);
  padding: 20px;
}
.mp-result-score {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1e40af;
  font-weight: 900;
  font-size: 24px;
}
.mp-result-row {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #e5edff;
  border-radius: 14px;
  background: #f8fbff;
}
.mp-result-row.is-correct { border-color: #16a34a; background: #dcfce7; }
.mp-result-row.is-wrong { border-color: #dc2626; background: #fee2e2; }
@media (max-width: 780px) {
  .mp-article-grid { grid-template-columns: 1fr; }
  .mp-map-marker {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }
  .mp-article-card { padding: 14px; border-radius: 16px; }
}

/* MaPrimaire - correctif bannière CM2 géographie comme os_de_la_jambe - START */
/* Même esprit que /quizz/CM2/sciences/os_de_la_jambe.php : logo plus présent,
   menu arrondi et lisible, bandeau blanc doux. */
body.mp-geo-page {
  padding-top: 22px;
}

.mp-geo-nav-wrap.container,
.mp-geo-nav-wrap {
  width: min(1120px, calc(100% - 28px)) !important;
  max-width: 1120px !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin: 12px auto 10px !important;
}

.mp-geo-nav-wrap .navbar {
  min-height: 122px !important;
  padding: 16px 18px 14px !important;
  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-geo-nav-wrap .container-fluid {
  display: flex !important;
  align-items: center !important;
  gap: 18px !important;
  min-height: 90px !important;
  padding-left: 8px !important;
  padding-right: 8px !important;
}

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

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

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

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

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

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

.mp-geo-nav-wrap .navbar-nav > li > a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 56px !important;
  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) !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

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

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

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

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

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

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

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

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

@media (max-width: 767px) {
  body.mp-geo-page {
    padding-top: 0 !important;
  }

  .mp-geo-nav-wrap.container,
  .mp-geo-nav-wrap {
    width: 100% !important;
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 auto 10px !important;
  }

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

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

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

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

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

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

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

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

  .mp-geo-nav-wrap .navbar-nav > li > a {
    width: 100% !important;
    min-height: 50px !important;
    margin: 8px 0 !important;
    padding: 13px 14px !important;
    font-size: 15px !important;
    white-space: normal !important;
  }
}
/* MaPrimaire - correctif bannière CM2 géographie comme os_de_la_jambe - END */
