/* ============================================================
   GESTIONARIS — Style partagé des articles ressources
   ============================================================ */

.article {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) var(--space-6);
}

.article-hero {
  padding-top: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(2rem, 5vw, 4rem);
  border-bottom: 1px solid var(--border);
}

.article-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: var(--space-5) 0;
  max-width: 22ch;
}

.article-hero h1 em {
  font-style: italic;
  color: var(--navy);
  font-weight: 300;
}

.article-hero .lead {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 60ch;
}

.article-meta {
  display: flex;
  gap: var(--space-5);
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-soft);
  font-size: 0.88rem;
  color: var(--text-muted);
  align-items: center;
  flex-wrap: wrap;
}

.article-meta strong {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--ink);
  font-weight: 400;
}

.article-prose {
  padding: clamp(3rem, 6vw, 5rem) 0;
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--text);
}

.article-prose p {
  margin-bottom: var(--space-5);
  max-width: 65ch;
}

.article-prose h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: var(--space-9) 0 var(--space-5);
  max-width: 22ch;
}

.article-prose h2 em {
  font-style: italic;
  color: var(--navy);
  font-weight: 300;
}

.article-prose h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.4rem;
  letter-spacing: -0.015em;
  margin: var(--space-7) 0 var(--space-3);
}

.article-prose blockquote {
  margin: var(--space-7) 0;
  padding: var(--space-5) var(--space-6);
  background: var(--ivory-2);
  border-left: 3px solid var(--copper);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.article-prose ul,
.article-prose ol {
  margin: var(--space-5) 0;
  padding-left: var(--space-6);
  max-width: 60ch;
}

.article-prose li {
  margin-bottom: var(--space-2);
  line-height: 1.7;
}

.article-prose strong {
  color: var(--ink);
  font-weight: 600;
}

.article-prose code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: var(--ivory-2);
  padding: 2px 6px;
  border-radius: 4px;
}

.article-prose .placeholder-mark {
  color: var(--copper-deep);
  font-style: italic;
  font-size: 0.92em;
}

.compare-mini {
  width: 100%;
  margin: var(--space-7) 0;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  font-size: 0.95rem;
}

.compare-mini th,
.compare-mini td {
  padding: 0.85rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-soft);
}

.compare-mini th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-subtle);
  background: var(--ivory-2);
  font-weight: 500;
}

.compare-mini tr:last-child td {
  border-bottom: none;
}

.toc-card {
  margin: var(--space-7) 0;
  padding: var(--space-5) var(--space-6);
  background: var(--ivory-2);
  border-radius: var(--radius-md);
}

.toc-card .toc-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper-deep);
  margin-bottom: var(--space-3);
}

.toc-card ol {
  padding-left: var(--space-5);
  margin: 0;
  counter-reset: toc-counter;
  list-style: none;
}

.toc-card ol li {
  counter-increment: toc-counter;
  margin-bottom: var(--space-2);
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.4;
}

.toc-card ol li::before {
  content: counter(toc-counter, decimal-leading-zero) " · ";
  font-style: italic;
  color: var(--copper);
  font-size: 0.9em;
}

.toc-card ol li a {
  color: var(--ink);
}

.key-insight {
  margin: var(--space-7) 0;
  padding: var(--space-6);
  background: var(--ink);
  color: var(--ivory);
  border-radius: var(--radius-lg);
}

.key-insight .label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper-soft);
  margin-bottom: var(--space-3);
}

.key-insight p {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  line-height: 1.45;
  color: var(--ivory);
  margin: 0;
  max-width: none;
  letter-spacing: -0.015em;
}

.key-insight p em {
  font-style: italic;
  color: var(--copper-soft);
  font-weight: 300;
}

.article-cta {
  background: var(--ivory-2);
  padding: var(--space-9) 0;
}

.article-cta .container-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.article-cta h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
}

.article-cta h2 em {
  font-style: italic;
  color: var(--navy);
  font-weight: 300;
}

.article-cta p {
  color: var(--text-muted);
  max-width: 60ch;
  margin-bottom: var(--space-6);
  line-height: 1.6;
}

.article-cta .ctas {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.author-card {
  margin: var(--space-9) 0 var(--space-6);
  padding: var(--space-5);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: var(--space-4);
  align-items: center;
}

.author-card .avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ivory-3), var(--copper-soft));
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.8rem;
  color: var(--navy);
  font-weight: 300;
}

.author-card .name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 500;
}

.author-card .name em {
  font-style: italic;
  color: var(--navy);
  font-weight: 300;
}

.author-card .role {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--copper-deep);
  font-size: 0.9rem;
}

/* =====================================================
   Mobile — articles ressources
   ===================================================== */
@media (max-width: 768px) {
  .article {
    padding: 1.75rem 1.25rem;
    max-width: 100%;
  }

  .article-hero {
    padding: 1.75rem 0 1.25rem;
  }
  .article-hero h1 {
    font-size: clamp(2rem, 8.5vw, 2.6rem);
    line-height: 1.08;
    margin: 1rem 0;
    max-width: none;
  }
  .article-hero .lead {
    font-size: 1.02rem;
    line-height: 1.55;
    max-width: none;
  }

  .article-meta {
    gap: 0.75rem 1.25rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    font-size: 0.82rem;
  }

  .article-prose {
    padding: 1.75rem 0;
    font-size: 1.02rem;
    line-height: 1.7;
  }
  .article-prose p {
    max-width: 100%;
    margin-bottom: 1.1rem;
  }
  .article-prose h2 {
    font-size: clamp(1.5rem, 6vw, 1.9rem);
    margin: 2.25rem 0 1rem;
    max-width: none;
  }
  .article-prose h3 {
    font-size: 1.2rem;
    margin: 1.5rem 0 0.6rem;
  }
  .article-prose ul,
  .article-prose ol {
    max-width: 100%;
    padding-left: 1.25rem;
    margin: 1rem 0;
  }
  .article-prose blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.2rem;
    font-size: 1.05rem;
    line-height: 1.45;
  }

  .compare-mini {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    font-size: 0.85rem;
    margin: 1.5rem 0;
  }
  .compare-mini thead,
  .compare-mini tbody,
  .compare-mini tr { display: table; width: 100%; }
  .compare-mini th,
  .compare-mini td { padding: 0.6rem 0.8rem; }

  .key-insight {
    margin: 1.5rem 0;
    padding: 1.25rem 1.4rem;
    border-radius: 12px;
  }
  .key-insight p {
    font-size: 1.08rem;
    line-height: 1.45;
  }

  .toc-card {
    margin: 1.5rem 0;
    padding: 1.1rem 1.3rem;
  }
  .toc-card ol { padding-left: 1.1rem; }
  .toc-card ol li { font-size: 0.97rem; }

  .article-cta {
    padding: 2.5rem 0;
  }
  .article-cta .container-narrow {
    padding: 0 1.25rem;
  }
  .article-cta h2 {
    font-size: clamp(1.5rem, 6vw, 2rem);
    margin-bottom: 0.75rem;
  }
  .article-cta p {
    font-size: 0.98rem;
    margin-bottom: 1.5rem;
  }
  .article-cta .ctas {
    flex-direction: column;
    align-items: stretch;
  }
  .article-cta .ctas .btn {
    width: 100%;
    justify-content: center;
  }

  .author-card {
    grid-template-columns: 50px 1fr;
    padding: 1rem;
    gap: 0.75rem;
    margin: 2rem 0 1.5rem;
  }
  .author-card .avatar {
    width: 50px;
    height: 50px;
    font-size: 1.4rem;
  }
  .author-card .name { font-size: 1rem; }
  .author-card .role { font-size: 0.85rem; }
}

@media (max-width: 480px) {
  .article { padding: 1.25rem 1rem; }
  .article-hero h1 { font-size: clamp(1.8rem, 9vw, 2.3rem); }
  .article-prose h2 { font-size: clamp(1.4rem, 7vw, 1.8rem); }
}
