/* ══════════════════════════════════════════════
   POLYLANGUES — DETAIL_ARTICLE.CSS
   ══════════════════════════════════════════════ */

/* ── READING PROGRESS ── */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--rouge);
  z-index: 9999;
  transition: width .1s linear;
}

/* ── ARTICLE HEADER ── */
.article-header {
  padding: clamp(100px, 12vw, 150px) 0 clamp(32px, 4vw, 48px);
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  color: var(--gris);
  margin-bottom: 24px;
  background: none;
  padding: 0;
}
.breadcrumb a { color: var(--gris); transition: color .2s; }
.breadcrumb a:hover { color: var(--rouge); }
.breadcrumb span:not(:last-child) { color: var(--line); }

.article-title {
  font-family: var(--fd);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.08;
  max-width: 780px;
  margin-bottom: 28px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}
.meta-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}
.meta-info { display: flex; flex-direction: column; gap: 2px; }
.meta-author { font-weight: 700; font-size: .88rem; }
.meta-details { font-size: .78rem; color: var(--gris); }

/* ── COVER ── */
.article-cover { margin-bottom: 0; }
.article-cover figure { margin: 0; }
.article-cover-img {
  width: 100%;
  aspect-ratio: 21/9;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}
.article-cover-caption {
  font-size: .75rem;
  color: var(--gris);
  margin-top: 10px;
  text-align: center;
}

/* ── ARTICLE LAYOUT ── */
.article-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
  align-items: start;
}

/* ── SIDEBAR ── */
.article-sidebar {
  position: sticky;
  top: 100px;
}
.toc-widget { margin-bottom: 36px; }
.toc-title {
  font-family: var(--fd);
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 14px;
  color: var(--ink);
}
.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc;
}
.toc-list li { counter-increment: toc; }
.toc-list li a {
  display: block;
  padding: 8px 0 8px 0;
  font-size: .82rem;
  color: var(--gris);
  border-left: 2px solid var(--line);
  padding-left: 16px;
  transition: all .2s;
  text-decoration: none;
}
.toc-list li a:hover,
.toc-list li a.active {
  color: var(--rouge);
  border-left-color: var(--rouge);
  font-weight: 600;
}

.share-title {
  font-family: var(--fd);
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 12px;
  color: var(--ink);
}
.share-links { display: flex; gap: 8px; }
.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  color: var(--ink);
  transition: all .2s;
  text-decoration: none;
}
.share-btn:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* ── ARTICLE CONTENT ── */
.article-content {
  max-width: 720px;
  font-size: 1.02rem;
  line-height: 1.78;
  color: var(--ink);
}
.article-content p {
  margin-bottom: 1.4em;
}
.article-content p:first-of-type::first-letter {
  font-family: var(--fd);
  font-size: 3.4em;
  float: left;
  line-height: .85;
  margin-right: 10px;
  margin-top: 6px;
  font-weight: 800;
  color: var(--rouge);
}
.article-content h2 {
  font-family: var(--fd);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -.03em;
  margin-top: 2.4em;
  margin-bottom: .7em;
  scroll-margin-top: 100px;
}
.article-content h3 {
  font-family: var(--fd);
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 1.8em;
  margin-bottom: .5em;
}
.article-content blockquote {
  margin: 2em 0;
  padding: 24px 28px;
  border-left: 4px solid var(--rouge);
  background: var(--off);
  border-radius: 0 10px 10px 0;
  font-family: var(--fd);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
  font-style: italic;
}
.article-content ul {
  margin: 1.2em 0;
  padding-left: 0;
  list-style: none;
}
.article-content li {
  position: relative;
  padding-left: 22px;
  margin-bottom: .6em;
}
.article-content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rouge);
}

/* ── INSIGHT BOX ── */
.article-insight {
  margin: 2em 0;
  padding: 24px 28px;
  background: rgba(200,16,46,.04);
  border: 1px solid var(--line-r);
  border-radius: 12px;
}
.ai-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--rouge);
  margin-bottom: 8px;
}
.ai-text {
  font-size: .95rem;
  line-height: 1.65;
  margin: 0;
}

/* ── RELATED ARTICLES ── */
.related-articles { background: var(--off); }
.related-title {
  font-family: var(--fd);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: 32px;
}
.related-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.index-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: opacity .2s;
}
.index-row:hover { opacity: .75; }
.ir-body { flex: 1; }
.ir-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
  font-size: .75rem;
}
.ir-tag {
  font-weight: 700;
  color: var(--rouge);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.ir-title {
  font-family: var(--fd);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
}
.ir-img {
  width: 120px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.ir-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── CTA ARTICLE ── */
.cta-article {
  text-align: center;
  padding: clamp(56px, 7vw, 96px) 0;
}
.cta-article h2 {
  font-family: var(--fd);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: 12px;
}
.cta-article p {
  color: var(--gris);
  font-size: .95rem;
  max-width: 480px;
  margin: 0 auto 28px;
  line-height: 1.7;
}
.btn-solid-dark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  background: var(--ink);
  color: #fff;
  border-radius: 10px;
  font-size: .88rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background .2s;
  text-decoration: none;
}
.btn-solid-dark:hover { background: #000; color: #fff; }

/* ── RESPONSIVE ── */
@media (max-width: 991px) {
  .article-grid {
    grid-template-columns: 1fr;
  }
  .article-sidebar {
    position: static;
    display: flex;
    gap: 32px;
    margin-bottom: 24px;
  }
  .toc-widget { margin-bottom: 0; flex: 1; }
}
@media (max-width: 600px) {
  .article-sidebar { flex-direction: column; }
  .article-cover-img { aspect-ratio: 16/9; border-radius: 10px; }
  .index-row { flex-direction: column; align-items: flex-start; }
  .ir-img { width: 100%; aspect-ratio: 16/9; }
}
