/**
 * Article Styles
 *
 * Styles pour les articles individuels (single posts)
 *
 * @package Dioqa_UI_Kit
 */

/* ============================================
   Article Section
   ============================================ */

.article-content-section {
  /* Padding géré dynamiquement via ACF */
}

.article-content,
.article-default {
  max-width: 800px;
  margin: 0 auto;
}

/* ============================================
   Featured Image
   ============================================ */

.article-featured-image {
  margin-bottom: 3rem;
  border-radius: 16px;
  overflow: hidden;
}

.article-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   Article Header
   ============================================ */

.article-header {
  margin-bottom: 3rem;
}

.article-title {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: var(--text-4xl, 48px);
  font-weight: 600;
  line-height: 1.2;
  color: var(--bs-dark, #212529);
  margin-bottom: 1.5rem;
}

.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-family: var(--font-body, 'Work Sans', sans-serif);
  font-size: var(--text-base, 16px);
  color: var(--text-gray, #6b687d);
}

.article-meta svg {
  width: 16px;
  height: 16px;
  margin-right: 0.375rem;
  opacity: 0.7;
}

.article-date,
.article-author {
  display: flex;
  align-items: center;
}

.article-separator {
  opacity: 0.5;
}

.article-categories {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.article-category-link {
  font-weight: 600;
  color: var(--bs-primary, #002baa);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.article-category-link:hover {
  opacity: 0.7;
}

/* ============================================
   Article Body (Content)
   ============================================ */

.article-body {
  font-family: var(--font-body, 'Work Sans', sans-serif);
  font-size: var(--text-lg, 18px);
  line-height: 1.75;
  color: var(--bs-dark, #212529);
}

.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5,
.article-body h6 {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.article-body h2 {
  font-size: var(--text-3xl, 36px);
}

.article-body h3 {
  font-size: var(--text-2xl, 30px);
}

.article-body h4 {
  font-size: var(--text-xl, 24px);
}

.article-body p {
  margin-bottom: 1.5rem;
}

.article-body a {
  color: var(--bs-primary, #002baa);
  text-decoration: underline;
  transition: opacity 0.2s ease;
}

.article-body a:hover {
  opacity: 0.7;
}

.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 2rem 0;
}

.article-body ul,
.article-body ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.article-body li {
  margin-bottom: 0.5rem;
}

.article-body blockquote {
  border-left: 4px solid var(--bs-primary, #002baa);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--text-gray, #6b687d);
}

.article-body code {
  background: var(--bs-gray-100, #f8f9fa);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: 'Courier New', monospace;
}

.article-body pre {
  background: var(--bs-gray-100, #f8f9fa);
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 2rem 0;
}

.article-body pre code {
  background: none;
  padding: 0;
}

/* ============================================
   Article Footer (Tags)
   ============================================ */

.article-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--bs-gray-300, #dee2e6);
}

.article-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tags-label {
  font-family: var(--font-body, 'Work Sans', sans-serif);
  font-size: var(--text-base, 16px);
  font-weight: 600;
  color: var(--bs-dark, #212529);
}

.article-tag {
  font-family: var(--font-body, 'Work Sans', sans-serif);
  font-size: var(--text-sm, 14px);
  font-weight: 500;
  padding: 0.375rem 0.875rem;
  background: var(--bs-gray-100, #f8f9fa);
  color: var(--bs-dark, #212529);
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.article-tag:hover {
  background: var(--bs-primary, #002baa);
  color: white;
}

/* ============================================
   Responsive
   ============================================ */

/* Tablettes */
@media (max-width: 991.98px) {
  .article-title {
    font-size: var(--text-3xl, 36px);
  }

  .article-body {
    font-size: var(--text-base, 16px);
  }

  .article-body h2 {
    font-size: var(--text-2xl, 30px);
  }

  .article-body h3 {
    font-size: var(--text-xl, 24px);
  }
}

/* Mobile */
@media (max-width: 767.98px) {
  .article-featured-image {
    margin-bottom: 2rem;
  }

  .article-header {
    margin-bottom: 2rem;
  }

  .article-title {
    font-size: var(--text-2xl, 30px);
  }

  .article-meta {
    font-size: var(--text-sm, 14px);
  }

  .article-footer {
    margin-top: 2rem;
  }
}

/* Petit mobile */
@media (max-width: 575.98px) {
  .article-title {
    font-size: var(--text-xl, 24px);
  }

  .article-body h2 {
    font-size: var(--text-xl, 24px);
  }

  .article-body h3 {
    font-size: var(--text-lg, 20px);
  }
}
