/* ============================================
   BARRE DE PROGRESSION
   ============================================ */

#art-progress-bar {
  position: fixed;
  top: 70px;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--accent);
  z-index: 999;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
}

/* ============================================
   ARTICLE — HEADER
   ============================================ */

.art-header {
  margin-top: 70px;
  padding: 48px 0 32px;
  background: #f3eeff;
  border-bottom: 1px solid #e8d9ff;
}

.art-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.art-breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.art-breadcrumb a:hover {
  color: var(--accent);
}

.art-breadcrumb span {
  color: var(--text-secondary);
  opacity: 0.5;
}

.art-meta-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.art-category {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: rgba(108, 63, 197, 0.1);
  padding: 3px 10px;
  border-radius: 4px;
}

.art-reading-time {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.art-header h1 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
  max-width: 780px;
  margin-bottom: 1.5rem;
}

.art-meta-bottom {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.art-author-inline {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.art-author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 4px;
}

.art-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ============================================
   IMAGE HERO
   ============================================ */

.art-hero-img {
  background: var(--bg-grey);
}

.art-hero-img img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  display: block;
  border-radius: 0;
}

/* ============================================
   LAYOUT
   ============================================ */

.art-main {
  padding: 56px 0 80px;
  background: var(--bg-white);
}

.art-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 4rem;
  align-items: start;
}

/* ============================================
   CONTENU ARTICLE
   ============================================ */

.art-content {
  min-width: 0;
}

.art-intro {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-weight: 400;
}

.art-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 2.5rem 0 1rem;
  padding-top: 0.5rem;
}

.art-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 1.75rem 0 0.625rem;
}

.art-content p {
  font-size: 0.975rem;
  line-height: 1.8;
  color: #333;
  margin-bottom: 1rem;
}

.art-content ul,
.art-content ol {
  padding-left: 1.25rem;
  margin-bottom: 1.25rem;
}

.art-content li {
  font-size: 0.975rem;
  line-height: 1.75;
  color: #333;
  margin-bottom: 0.375rem;
}

.art-content em {
  color: var(--text-secondary);
  font-style: italic;
}

/* ============================================
   ENCART À RETENIR
   ============================================ */

.art-takeaway {
  background: #f8f5ff;
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 1.25rem 1.5rem;
  margin: 0 0 2rem;
}

.art-takeaway-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent);
  margin-bottom: 0.75rem !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.art-takeaway ul {
  margin: 0;
  padding-left: 1.25rem;
}

.art-takeaway li {
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 0.375rem;
}

/* ============================================
   CTA MID-ARTICLE
   ============================================ */

.art-cta-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: #1a0f2e;
  border-radius: 12px;
  padding: 1.5rem 2rem;
  margin: 2.5rem 0;
}

.art-cta-inline-title {
  font-weight: 700;
  font-size: 1rem;
  color: white !important;
  margin-bottom: 0.25rem !important;
}

.art-cta-inline-content p:last-child {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65) !important;
  margin: 0 !important;
}

.art-cta-inline .btn {
  white-space: nowrap;
  flex-shrink: 0;
}

/* ============================================
   TIMELINE
   ============================================ */

.art-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 1.5rem 0 2rem;
  border-left: 2px solid var(--border);
  padding-left: 1.5rem;
}

.art-timeline-item {
  position: relative;
  padding-bottom: 1.5rem;
}

.art-timeline-item::before {
  content: '';
  position: absolute;
  left: -1.625rem;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid white;
  box-shadow: 0 0 0 1px var(--accent);
}

.art-timeline-marker {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.art-timeline-body {
  font-size: 0.925rem;
  color: #333;
  line-height: 1.65;
}

/* ============================================
   LISTE ERREURS
   ============================================ */

.art-list-errors {
  padding-left: 0;
  list-style: none;
  counter-reset: errors;
  margin-bottom: 2rem;
}

.art-list-errors li {
  counter-increment: errors;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

.art-list-errors li::before {
  content: counter(errors);
  min-width: 28px;
  height: 28px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ============================================
   FAQ
   ============================================ */

.art-faq {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
}

.art-faq h2 {
  margin-top: 0 !important;
}

.art-faq-list {
  display: flex;
  flex-direction: column;
}

.art-faq-item {
  border-bottom: 1px solid var(--border-light);
}

.art-faq-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.125rem 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  gap: 1rem;
  transition: color 0.2s;
}

.art-faq-trigger:hover {
  color: var(--accent);
}

.art-faq-trigger svg {
  flex-shrink: 0;
  transition: transform 0.25s ease;
  color: var(--text-secondary);
}

.art-faq-item.open .art-faq-trigger svg {
  transform: rotate(180deg);
}

.art-faq-item.open .art-faq-trigger {
  color: var(--accent);
}

.art-faq-answer {
  display: none;
  padding: 0 0 1.25rem;
}

.art-faq-item.open .art-faq-answer {
  display: block;
}

.art-faq-answer p {
  font-size: 0.925rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin: 0;
}

/* ============================================
   SIDEBAR
   ============================================ */

.art-sidebar {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.art-sidebar-card {
  background: #1a0f2e;
  border-radius: 12px;
  padding: 1.5rem;
  color: white;
}

.art-sidebar-card-title {
  font-weight: 700;
  font-size: 1rem;
  color: white;
  margin-bottom: 0.5rem;
}

.art-sidebar-card p:not(.art-sidebar-card-title) {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.art-sidebar-toc {
  background: var(--bg-grey);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
}

.art-sidebar-toc-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-secondary);
  margin-bottom: 0.875rem;
}

.art-sidebar-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.art-sidebar-toc a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
  display: block;
  padding: 2px 0;
}

.art-sidebar-toc a:hover,
.art-sidebar-toc a.active {
  color: var(--accent);
  font-weight: 600;
}

.art-sidebar-share {
  background: var(--bg-grey);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
}

.art-share-btns {
  display: flex;
  gap: 0.5rem;
}

.art-share-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  background: white;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 12px;
  transition: all 0.2s;
}

.art-share-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ============================================
   AUTEUR
   ============================================ */

.art-author-section {
  padding: 40px 0;
  background: var(--bg-grey);
  border-top: 1px solid var(--border-light);
}

.art-author-card {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  max-width: 640px;
}

.art-author-photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  padding: 10px;
}

.art-author-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.art-author-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 0.125rem;
}

.art-author-role {
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.art-author-bio {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

/* ============================================
   ARTICLES SIMILAIRES
   ============================================ */

.art-related {
  padding: 56px 0;
  background: var(--bg-white);
}

.art-related h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--text-primary);
}

.art-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.art-related-card {
  border: 1px solid var(--border-light);
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.art-related-card:hover {
  box-shadow: 0 4px 20px rgba(108, 63, 197, 0.1);
}

.art-related-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-grey);
}

.art-related-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.art-related-card:hover .art-related-img img {
  transform: scale(1.03);
}

.art-related-body {
  padding: 1.125rem 1.25rem;
}

.art-related-body h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.45;
  margin: 0.5rem 0 0.875rem;
}

.art-related-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  transition: gap 0.2s;
}

.art-related-link:hover {
  text-decoration: underline;
}

/* ============================================
   CTA FINAL
   ============================================ */

.art-cta-final {
  padding: 64px 0;
  background: #f3eeff;
}

.art-cta-final-inner {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.art-cta-final h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.875rem;
}

.art-cta-final p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.art-cta-final-btns {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ============================================
   RESPONSIVE
   ============================================ */

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

  .art-sidebar {
    position: static;
    order: -1;
  }

  .art-sidebar-toc,
  .art-sidebar-share {
    display: none;
  }

  .art-related-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .art-header {
    padding: 32px 0 24px;
  }

  .art-cta-inline {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .art-related-grid {
    grid-template-columns: 1fr;
  }

  .art-cta-final-btns {
    flex-direction: column;
    align-items: center;
  }

  .art-author-card {
    flex-direction: column;
  }
}
