.app-container {
  width: 100%;
  min-height: 100vh;
  background: var(--bg);
  background-image: var(--bg-grad);
  display: flex;
  flex-direction: column;
  transition: background 0.35s;
}

.main-scroll-area {
  flex: 1;
  overflow-y: auto;
  padding: clamp(40px, 8vw, 80px) clamp(16px, 5vw, 40px);
}

.article-container {
  max-width: 680px;
  margin: 0 auto;
}

.chapter-number {
  font-family: var(--display-font);
  font-weight: 800;
  font-size: clamp(60px, 12vw, 100px);
  color: var(--chapter-num-color);
  line-height: 0.8;
  margin-bottom: 10px;
}

.chapter-title-fr {
  font-family: var(--chapter-title-font);
  font-weight: 700;
  font-size: clamp(28px, 5vw, 42px);
  color: var(--heading);
  line-height: 1.1;
  font-style: var(--chapter-title-style);
  letter-spacing: var(--chapter-letter-spacing);
  text-transform: var(--chapter-text-transform);
}

.chapter-title-en {
  font-family: var(--body-font);
  font-weight: 400;
  font-size: clamp(15px, 2vw, 18px);
  color: var(--text-muted);
  margin-top: 15px;
}

.content-paragraph {
  margin-bottom: clamp(16px, 2vw, 26px);
  line-height: 1.85;
  font-size: var(--font-size);
  color: var(--text);
  font-family: var(--body-font);
  font-weight: var(--body-weight);
  text-wrap: pretty;
}

.loader-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(60px, 12vw, 140px) 0;
  gap: 16px;
}

.big-spinner {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 3px solid var(--progress-bg);
  border-top-color: var(--accent);
  animation: lingua-spin 0.9s linear infinite;
}

.loading-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.error-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(60px, 12vw, 140px) 0;
  gap: 16px;
}

.error-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  color: var(--accent);
  fontWeight: 600;
  text-align: center;
}

.error-message {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
  max-width: 80%;
}

.retry-btn {
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font-weight: 600;
}
