/**
 * ElectronLibre — Page article (alignée home / catégories)
 */

.el-single-page .inside-page.content-area {
  background: var(--el-surface-alt, #f6f7f9);
}

.el-single-page .inside-page.content-area > .container {
  max-width: none;
  width: 100%;
  padding: 0;
}

.el-single-shell {
  padding-bottom: 48px;
}

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

.el-single-main {
  min-width: 0;
}

/* --- Carte article --- */
.el-single-article-card {
  padding: 28px 32px;
  border-radius: var(--el-radius-lg);
  background: var(--el-surface);
  border: 1px solid var(--el-border);
  box-shadow: var(--el-shadow);
}

.el-single-page .el-single-article-card .page-title,
.el-single-page .el-single-article-card .entry-title {
  margin: 0 0 12px;
  font-family: var(--el-font-editorial);
  font-size: clamp(1.85rem, 3.4vw, 2.85rem);
  font-weight: 400;
  line-height: 1.12;
  color: #111827;
}

.el-single-page .author-info,
.el-single-page .single-post .post-meta,
.el-single-page .single-post .ihead {
  margin: 0 0 20px;
  font-family: var(--el-font-ui);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

.el-single-page .single-post .category a,
.el-single-page .el-single-article-card .category a {
  display: inline-flex;
  align-items: center;
  margin: 0 6px 6px 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--el-accent-soft);
  color: var(--el-accent) !important;
  font-family: var(--el-font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

.el-single-page .inner-article-content,
.el-single-page .single-post .entry-content {
  font-family: var(--el-font-editorial);
  font-size: 1.08rem;
  line-height: 1.72;
  color: #1f2937;
}

.el-single-page .inner-article-content p,
.el-single-page .single-post .entry-content p {
  margin: 0 0 1.15em;
}

.el-single-page .inner-article-content h2,
.el-single-page .inner-article-content h3,
.el-single-page .single-post .entry-content h2,
.el-single-page .single-post .entry-content h3 {
  font-family: var(--el-font-ui);
  font-weight: 600;
  line-height: 1.25;
  color: #111827;
}

.el-single-page .inner-article-content a,
.el-single-page .single-post .entry-content a {
  color: var(--el-accent);
}

.el-single-page #language-selector {
  margin-bottom: 18px;
}

.el-single-page #language-selector select {
  font-family: var(--el-font-ui);
  font-size: 0.88rem;
  border-color: var(--el-border);
  border-radius: 999px;
  padding: 6px 12px;
}

/* --- Paywall --- */
.el-single-page .abonnement-cta {
  max-width: none !important;
  margin: 28px 0 !important;
  padding: 24px;
  border-radius: var(--el-radius-md);
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
  border: 1px solid var(--el-border);
  box-shadow: var(--el-shadow);
}

.el-single-page .abonnement-cta .btn-subscribe {
  background: var(--el-accent);
  border-radius: 999px;
  font-family: var(--el-font-ui);
  font-weight: 600;
}

.el-single-page .abonnement-cta .btn-subscribe:hover {
  background: #1d4ed8;
}

.el-single-page .already-subscribed,
.el-single-page .twitter-link {
  font-family: var(--el-font-ui);
  font-size: 0.92rem;
  color: #64748b;
}

.el-single-page .seo-h2-ai {
  font-family: var(--el-font-ui);
  font-size: 1.25rem;
  color: #111827;
}

.el-single-page .seo-teaser-ai {
  font-family: var(--el-font-editorial);
  font-size: 1.02rem;
  line-height: 1.65;
  color: #475569;
}

/* --- Bloc IA --- */
.el-single-page .chat-ia-single-wrapper {
  margin-top: 24px;
  padding: 22px 24px;
  border-radius: var(--el-radius-lg);
  background: var(--el-surface);
  border: 1px solid var(--el-border);
  box-shadow: var(--el-shadow);
}

.el-single-page .chat-ia-single-wrapper .gpt4o-btn--action {
  background: var(--el-accent);
  border-radius: 999px;
  font-family: var(--el-font-ui);
  font-weight: 600;
}

.el-single-page .chat-ia-single-wrapper .gpt4o-btn--action:hover {
  background: #1d4ed8;
}

.el-single-page .suggested-questions {
  gap: 12px;
}

.el-single-page .question-card {
  border-radius: var(--el-radius-md);
  border-color: rgba(47, 109, 251, 0.18);
  background: var(--el-accent-soft);
  box-shadow: none;
}

.el-single-page .question-card:hover,
.el-single-page .question-card.selected {
  background: #dbeafe;
  border-color: rgba(47, 109, 251, 0.35);
  transform: none;
}

.el-single-page .chat-ia-single-wrapper .chat-answer-single {
  border-radius: var(--el-radius-md);
  border-color: var(--el-border);
  background: var(--el-surface-alt);
  font-family: var(--el-font-ui);
  font-size: 0.98rem;
  line-height: 1.6;
}

/* --- Navigation prev/next --- */
.el-single-page .post-navigation {
  margin-top: 20px;
  font-family: var(--el-font-ui);
  font-size: 0.92rem;
}

.el-single-page .post-navigation a {
  color: var(--el-accent);
}

/* --- À lire aussi --- */
.el-single-page .related-posts {
  margin-top: 36px;
}

.el-single-page .related-posts > .main-title {
  margin: 0 0 14px;
  margin-left: calc(-1 * var(--el-section-hang));
  font-family: var(--el-font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.35;
  text-transform: uppercase;
  color: #64748b;
}

.el-single-page .related-posts .post-holder {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
}

.el-single-page .related-posts .post-holder > .news-snippet {
  grid-column: span 4;
  height: 100%;
  padding: 22px;
  border-radius: var(--el-radius-lg);
  background: var(--el-surface);
  border: 1px solid var(--el-border);
  box-shadow: var(--el-shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.el-single-page .related-posts .post-holder > .news-snippet:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.1);
}

.el-single-page .related-posts .news-title,
.el-single-page .related-posts .news-title a {
  font-family: var(--el-font-editorial);
  font-size: clamp(1.1rem, 1.6vw, 1.35rem) !important;
  line-height: 1.22 !important;
  color: #111827;
}

.el-single-page .related-posts .info,
.el-single-page .related-posts .list-inline {
  font-family: var(--el-font-ui);
  font-size: 0.78rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* --- Sidebar mots-clés IA --- */
.el-single-sidebar {
  position: sticky;
  top: 24px;
}

.el-single-page .el-single-sidebar,
.el-single-page .el-single-sidebar .widget-area,
.el-single-page .el-single-sidebar #secondary {
  padding: 22px;
  border-radius: var(--el-radius-lg);
  background: var(--el-surface);
  border: 1px solid var(--el-border);
  box-shadow: var(--el-shadow);
}

.el-single-page #ai-keywords-container::before {
  content: 'Mots-clés';
  display: block;
  margin-bottom: 14px;
  font-family: var(--el-font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #64748b;
}

.el-single-page .ai-keywords-list li {
  border-radius: 999px;
  background: var(--el-accent-soft);
  color: var(--el-accent);
  font-family: var(--el-font-ui);
  font-size: 0.78rem;
  font-weight: 600;
}

.el-single-page .ai-keywords-list li:hover {
  background: #dbeafe;
  color: #1d4ed8;
  transform: none;
}

.el-single-page .ai-definition {
  margin-top: 14px;
  font-family: var(--el-font-ui);
  font-size: 0.92rem;
  line-height: 1.55;
  color: #475569;
}

@media (max-width: 1100px) {
  .el-single-page .related-posts .post-holder > .news-snippet {
    grid-column: span 6;
  }
}

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

  .el-single-sidebar {
    position: static;
  }
}

@media (max-width: 780px) {
  .el-single-article-card {
    padding: 22px 20px;
  }

  .el-single-page .related-posts .post-holder {
    grid-template-columns: 1fr;
  }

  .el-single-page .related-posts .post-holder > .news-snippet {
    grid-column: span 1;
  }

  .el-single-page .related-posts > .main-title {
    margin-left: 0;
  }
}
