/* Dictée anglais CE2 HTML5 - Maprimaire */
:root {
  --mp-blue: #009CEA;
  --mp-green: #7CBB00;
  --mp-orange: #D66B07;
  --mp-purple: #7353BA;
  --mp-dark: #243447;
  --mp-muted: #64748b;
  --mp-border: #e6edf4;
  --mp-card: #ffffff;
}

body {
  background: #f6f8fb;
  color: var(--mp-dark);
}

.mp-dictee-page {
  font-family: Arial, Helvetica, sans-serif;
}

.mp-dictee-nav-wrap {
  max-width: 1120px;
  margin: 18px auto 16px;
  padding-left: 15px;
  padding-right: 15px;
}

.mp-dictee-nav-wrap .navbar {
  margin: 0;
  min-height: 100px;
  background: #ffffff;
  border: 0;
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  overflow: visible;
}

.mp-dictee-nav-wrap .navbar-brand {
  height: auto;
  padding: 12px 15px;
}

.mp-dictee-nav-wrap .navbar-brand img {
  max-height: 78px;
  width: auto;
  max-width: none;
  display: block;
}

.mp-dictee-nav-wrap .navbar-nav {
  margin-top: 24px;
}

.mp-dictee-nav-wrap .navbar-nav > li > a {
  color: #ffffff !important;
  font-weight: 800;
  padding: 13px 18px;
  line-height: 20px;
  border-radius: 999px;
  text-decoration: none !important;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.14);
  margin: 0 5px;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.mp-dictee-nav-wrap .navbar-nav > li > a:hover,
.mp-dictee-nav-wrap .navbar-nav > li > a:focus {
  color: #ffffff !important;
  filter: brightness(0.97);
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.18);
  text-decoration: none !important;
}

.mp-dictee-nav-wrap .navbar-toggle {
  margin-top: 30px;
  margin-right: 15px;
}

.mp-dictee-hero {
  margin: 26px auto 22px;
  padding: 40px 34px;
  border-radius: 30px;
  background:
    radial-gradient(circle at top right, rgba(124,187,0,.20), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #f2fbeb 100%);
  border: 1px solid rgba(124,187,0,.16);
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.10);
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.mp-dictee-hero-icon {
  width: 92px;
  height: 92px;
  border-radius: 24px;
  background: var(--mp-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  color: #fff;
  box-shadow: 0 14px 28px rgba(124,187,0,.22);
}

.mp-dictee-eyebrow {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(124,187,0,.13);
  color: #4f7800;
  font-weight: 900;
  margin-bottom: 14px;
}

.mp-dictee-hero h1 {
  margin: 0 0 12px;
  font-size: 42px;
  line-height: 1.12;
  font-weight: 900;
  color: #1f2937;
}

.mp-dictee-hero p {
  font-size: 18px;
  line-height: 1.55;
  color: var(--mp-muted);
  max-width: 850px;
  margin: 0;
}

.mp-dictee-actions {
  margin-top: 22px;
}

.mp-btn {
  display: inline-block;
  border: 0;
  padding: 13px 20px;
  border-radius: 14px;
  font-weight: 800;
  text-decoration: none !important;
  margin: 0 8px 10px 0;
  transition: transform .15s ease, box-shadow .15s ease;
  cursor: pointer;
}

.mp-btn:hover {
  transform: translateY(-2px);
}

.mp-btn-primary {
  background: var(--mp-green);
  color: #fff !important;
  box-shadow: 0 10px 22px rgba(124,187,0,.22);
}

.mp-btn-secondary {
  background: #fff;
  color: var(--mp-dark) !important;
  border: 1px solid #d8e2eb;
}

.mp-dictee-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
  align-items: start;
}

.mp-card {
  background: #fff;
  border: 1px solid var(--mp-border);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
  margin-bottom: 22px;
}

.mp-card h2,
.mp-card h3 {
  margin-top: 0;
  font-weight: 900;
}

.mp-card p {
  color: var(--mp-muted);
  line-height: 1.65;
  font-size: 16px;
}

.mp-dictee-progress {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.mp-stat {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 12px 15px;
  min-width: 120px;
}

.mp-stat strong {
  display: block;
  font-size: 26px;
  color: var(--mp-green);
  line-height: 1;
}

.mp-question-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.mp-question-card {
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 22px;
  padding: 18px;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}

.mp-question-card.is-correct {
  border-color: var(--mp-green);
  background: #f3fbeb;
}

.mp-question-card.is-wrong {
  border-color: #ef4444;
  background: #fff1f2;
}

.mp-question-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.mp-question-number {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--mp-purple);
  color: #fff;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.mp-question-card h3 {
  margin: 0;
  font-size: 20px;
}

.mp-question-card audio {
  width: 100%;
  display: block;
  margin: 12px 0;
}

.mp-answer-select {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 12px;
  font-size: 16px;
  background: #fff;
  color: var(--mp-dark);
}

.mp-feedback {
  margin-top: 12px;
  min-height: 24px;
  font-weight: 800;
}

.mp-feedback.good {
  color: #3f7d00;
}

.mp-feedback.bad {
  color: #b91c1c;
}

.mp-result-box {
  display: none;
  border-radius: 22px;
  padding: 20px;
  margin-top: 18px;
  background: #eef8ff;
  border: 1px solid #bae6fd;
}

.mp-result-box.is-visible {
  display: block;
}

.mp-result-box strong {
  display: block;
  font-size: 24px;
  color: #075985;
  margin-bottom: 6px;
}

.mp-side-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mp-side-list li {
  padding: 10px 0;
  border-bottom: 1px solid #e2e8f0;
  color: #334155;
  line-height: 1.45;
}

.mp-side-list li:last-child {
  border-bottom: 0;
}

.mp-vocab-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.mp-vocab-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 11px 12px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.mp-vocab-item strong {
  color: var(--mp-dark);
}

.mp-vocab-item span {
  color: var(--mp-muted);
}

.mp-missing-audio {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  border-radius: 14px;
  padding: 12px;
  margin: 12px 0;
  font-weight: 700;
}

.mp-dictee-footer {
  margin: 22px 0 30px;
  padding: 22px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--mp-border);
  color: var(--mp-muted);
}

.mp-dictee-footer a {
  color: var(--mp-blue);
  font-weight: 700;
}

@media (max-width: 1199px) {
  .mp-dictee-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991px) {
  .mp-dictee-hero h1 {
    font-size: 34px;
  }

  .mp-question-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .mp-dictee-nav-wrap {
    margin: 0 auto 14px;
    padding-left: 0;
    padding-right: 0;
  }

  .mp-dictee-nav-wrap .navbar {
    min-height: 82px;
    border-radius: 0 0 18px 18px;
  }

  .mp-dictee-nav-wrap .navbar-brand {
    padding: 10px 15px;
  }

  .mp-dictee-nav-wrap .navbar-brand img {
    max-height: 62px;
  }

  .mp-dictee-nav-wrap .navbar-nav {
    margin-top: 0;
  }

  .mp-dictee-nav-wrap .navbar-nav > li > a {
    display: block;
    margin: 6px 10px;
    border-radius: 16px;
    text-align: left;
  }

  .mp-dictee-nav-wrap .navbar-toggle {
    margin-top: 23px;
  }

  .mp-dictee-hero {
    grid-template-columns: 1fr;
    margin-top: 16px;
    padding: 26px 20px;
    border-radius: 22px;
  }

  .mp-dictee-hero-icon {
    width: 74px;
    height: 74px;
    font-size: 36px;
  }

  .mp-dictee-hero h1 {
    font-size: 30px;
  }

  .mp-dictee-hero p {
    font-size: 16px;
  }

  .mp-card {
    padding: 18px;
  }

  .mp-dictee-footer .text-right {
    text-align: left !important;
    margin-top: 10px;
  }
}
