.ln-shell {
  width: min(1180px, 94vw);
  margin: 108px auto 80px;
}

.ln-hero {
  max-width: 720px;
  margin: 0 auto 42px;
  text-align: center;
}

.ln-kicker {
  display: inline-flex;
  align-items: center;
  margin: 0 0 14px;
  padding: 0.32rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(224, 122, 86, 0.4);
  background: rgba(224, 122, 86, 0.12);
  color: #ffb794;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ln-hero h1 {
  margin: 0 0 14px;
  color: #f7fbff;
  font-family: var(--font-nav);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
}

.ln-hero-intro {
  margin: 0;
  color: rgba(222, 233, 249, 0.76);
  font-size: 1.02rem;
  line-height: 1.65;
}

.ln-nowrap {
  white-space: nowrap;
}

.ln-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  align-items: start;
  gap: 32px;
}

.ln-toc {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 2px;
  padding: 8px;
  border-radius: 18px;
  border: 1px solid rgba(191, 210, 244, 0.16);
  background: rgba(255, 255, 255, 0.04);
}

.ln-toc a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.62rem 0.7rem;
  border-radius: 12px;
  color: rgba(222, 233, 249, 0.78);
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.16s ease, color 0.16s ease;
}

.ln-toc a span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 26px;
  height: 26px;
  padding: 0 4px;
  border-radius: 8px;
  background: rgba(224, 122, 86, 0.16);
  color: #ffc4a3;
  font-size: 0.72rem;
  font-weight: 800;
}

.ln-toc a:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
}

.ln-paper {
  max-width: 820px;
  padding: clamp(1.8rem, 4vw, 3.2rem);
  border-radius: 28px;
  border: 1px solid rgba(191, 210, 244, 0.24);
  background: linear-gradient(180deg, #ffffff 0%, #f5f8fd 100%);
  box-shadow: 0 30px 70px rgba(6, 12, 26, 0.32);
  /* Filet de securite : texte edite via le stylo (voir includes/legal) qui perdrait
     son wrapper .ln-section garde quand meme une couleur lisible sur ce fond clair. */
  color: #465066;
}

.ln-paper h2,
.ln-paper h3 {
  color: #123f7d;
  font-family: var(--font-nav);
}

.ln-foreword {
  margin: 0 0 32px;
  padding: 1rem 1.2rem;
  border-radius: 14px;
  border-left: 4px solid #c9503f;
  background: linear-gradient(90deg, rgba(201, 80, 63, 0.08), transparent);
  color: #4a4d55;
  font-style: italic;
  line-height: 1.65;
}

.ln-section {
  padding-top: 28px;
  border-top: 1px solid rgba(20, 40, 80, 0.1);
}

.ln-section:first-of-type {
  padding-top: 0;
  border-top: none;
}

.ln-section + .ln-section {
  margin-top: 28px;
}

.ln-section h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  color: #123f7d;
  font-family: var(--font-nav);
  font-size: 1.16rem;
  line-height: 1.3;
}

.ln-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 34px;
  height: 34px;
  padding: 0 6px;
  border-radius: 10px;
  background: linear-gradient(135deg, #e2ac4f, #b8892f);
  color: #1a1509;
  font-family: var(--font-nav);
  font-size: 0.86rem;
  font-weight: 800;
}

.ln-section p {
  margin: 0 0 12px;
  color: #465066;
  font-size: 0.98rem;
  line-height: 1.75;
  word-break: break-word;
}

.ln-section p:last-child {
  margin-bottom: 0;
}

.ln-section ul {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.ln-section ul:last-child {
  margin-bottom: 0;
}

.ln-section ul li {
  position: relative;
  margin: 0 0 10px;
  padding-left: 22px;
  color: #465066;
  font-size: 0.98rem;
  line-height: 1.65;
}

.ln-section ul li:last-child {
  margin-bottom: 0;
}

.ln-section ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e2ac4f, #b8892f);
}

@media (max-width: 900px) {
  .ln-layout {
    grid-template-columns: 1fr;
  }

  .ln-toc {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .ln-toc a {
    flex: 0 0 auto;
  }

  .ln-paper {
    max-width: none;
  }
}

@media (max-width: 560px) {
  .ln-shell {
    margin: 84px auto 56px;
  }

  .ln-paper {
    padding: 1.5rem 1.2rem;
    border-radius: 20px;
  }
}
