.lesson-page,
.lesson-page * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.lesson-page {
  margin: 0;
  padding: 0;
  background: #faf6f0;
  color: #1e3a5f;
  font-family: "Poppins", sans-serif;
  line-height: 1.7;
}

.lesson-page .container {
  max-width: 780px;
  margin: 0 auto;
  padding: 30px 20px 60px;
}

.lesson-image {
  margin-bottom: 20px;
  text-align: center;
}

.lesson-image img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.lesson-meta {
  margin-bottom: 10px;
  text-align: center;
}

.lesson-meta .numero {
  color: #6a7a8a;
  font-size: 35px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.lesson-meta h1 {
  margin: 8px 0 4px;
  color: #1e3a5f;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.3;
}

.texte-original {
  margin: 30px 0;
  padding: 20px 24px;
  border-left: 4px solid #f7e6b2;
  border-radius: 0 8px 8px 0;
  background: #f8f5f0;
  color: #2a3a3a;
  font-size: 15px;
  line-height: 1.8;
  text-align: justify;
}

.texte-original p,
.resume-content p {
  margin-bottom: 1.2em;
}

.texte-original p:last-child,
.resume-content p:last-child {
  margin-bottom: 0;
}

.carte-resume {
  margin: 30px 0;
  padding: 28px;
  border: 1px solid #e8e0d5;
  border-radius: 12px;
  background: linear-gradient(135deg, #f0efe9, #f7f4ee);
}

.carte-resume h2 {
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f7e6b2;
  color: #1e3a5f;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.resume-content {
  color: #2a3a3a;
  font-size: 15px;
  line-height: 1.8;
  text-align: justify;
}

.btn {
  display: block;
  padding: 14px 20px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-subscribe {
  padding: 16px 24px;
  background: linear-gradient(135deg, #1e3a5f, #2d5075);
  color: #f7e6b2;
  font-size: 16px;
}

.btn-subscribe:hover {
  background: linear-gradient(135deg, #162d4a, #1e3a5f);
}

.cta-section {
  margin: 35px 0 25px;
  padding: 28px;
  border-radius: 16px;
  background: linear-gradient(135deg, #1e3a5f, #2d5075);
  text-align: center;
}

.cta-text {
  margin-bottom: 16px;
  color: #c8d6c8;
  font-size: 14px;
  line-height: 1.5;
}

.cta-section .btn-subscribe {
  display: inline-block;
  padding: 14px 32px;
  background: #f7e6b2;
  color: #1e3a5f;
  font-size: 15px;
  font-weight: 600;
}

.cta-section .btn-subscribe:hover {
  background: #f0d88a;
  transform: scale(1.02);
}

.lesson-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 24px;
}

.lesson-nav.bottom {
  margin: 30px 0 0;
}

.nav-btn {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid #e0d8cc;
  border-radius: 25px;
  background: #f0ebe4;
  color: #1e3a5f;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}

.nav-btn:hover {
  border-color: #f7e6b2;
  background: #f7e6b2;
  transform: scale(1.02);
}

.nav-btn.disabled {
  opacity: 0.35;
  pointer-events: none;
}

.nav-jump {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.nav-jump input {
  width: 70px;
  padding: 8px 10px;
  border: 1px solid #e0d8cc;
  border-radius: 20px;
  outline: none;
  background: #fff;
  color: #1e3a5f;
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  text-align: center;
}

.nav-jump input:focus {
  border-color: #f7e6b2;
}

.nav-jump button {
  padding: 8px 14px;
  border: none;
  border-radius: 20px;
  background: #1e3a5f;
  color: #fff;
  cursor: pointer;
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.2s;
}

.nav-jump button:hover {
  background: #2d5075;
}

.font-size-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 16px;
}

.font-btn {
  padding: 4px 12px;
  border: 1px solid #e0d8cc;
  border-radius: 20px;
  background: #f0ebe4;
  color: #1e3a5f;
  cursor: pointer;
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.15s;
}

.font-btn:hover {
  border-color: #f7e6b2;
  background: #f7e6b2;
}

.font-label {
  margin: 0 2px;
  color: #8a9a9a;
  font-family: "Poppins", sans-serif;
  font-size: 11px;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin-bottom: 16px;
  margin-left: 12px;
  overflow: hidden;
  border: 1px solid #e0d8cc;
  border-radius: 20px;
  background: #f0ebe4;
  font-family: "Poppins", sans-serif;
  text-align: center;
}

.lang-toggle a {
  display: inline-block;
  padding: 4px 10px;
  color: #8a9a9a;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s;
}

.lang-toggle a.active {
  background: #1e3a5f;
  color: #f7e6b2;
}

.lang-toggle a:not(.active):hover {
  background: #f7e6b2;
  color: #1e3a5f;
}

.chatbot-promo-section {
  margin-top: 1.5rem;
  text-align: center;
}

.chatbot-promo-image {
  width: 100%;
  max-width: 700px;
  height: auto;
}

.chatbot-promo-text {
  margin-top: 0.5rem;
}

.lesson-page.is-embedded {
  background: #fff;
}

.lesson-page.is-embedded .container {
  padding: 15px 20px 30px;
}

/* Embedded in the « leçon du jour » page of the site: like the historical app, keep the
   navigation (previous / next / « Aller à »), the language switch and the calls to action;
   only the subscriber footer is hidden (22/10/2026, report from students). */
.lesson-page.is-embedded footer {
  display: none;
}

.lesson-page.is-embedded .lesson-image img {
  max-width: 300px;
}

.lesson-page.is-embedded .lesson-meta .numero {
  font-size: 22px;
}

.lesson-page.is-embedded .lesson-meta h1 {
  font-size: 20px;
}

@media (max-width: 600px) {
  .lesson-page .container {
    padding: 20px 15px 40px;
  }

  .lesson-page.is-embedded .container {
    padding: 20px 15px 40px;
  }

  .lesson-meta .numero {
    font-size: 28px;
  }

  .lesson-page.is-embedded .lesson-meta .numero {
    font-size: 28px;
  }

  .lesson-meta h1 {
    font-size: 22px;
  }

  .lesson-page.is-embedded .lesson-meta h1 {
    font-size: 22px;
  }

  .texte-original {
    padding: 15px 18px;
    font-size: 14px;
  }

  .carte-resume {
    padding: 20px;
  }

  .lesson-nav {
    gap: 6px;
  }

  .nav-btn {
    padding: 8px 12px;
    font-size: 12px;
  }

  .nav-jump input {
    width: 55px;
    padding: 6px 8px;
    font-size: 12px;
  }

  .nav-jump button {
    padding: 6px 10px;
    font-size: 12px;
  }

  .lang-toggle {
    margin-left: 6px;
  }

  .lang-toggle a {
    padding: 3px 7px;
    font-size: 11px;
  }
}
