/* ══════════════════════════════════════════════════
   article.css — Pages articles blog
   ══════════════════════════════════════════════════ */

/* ── Bannière article ── */
.art-banner {
  padding: 48px 0 40px;
  background: #F7F7F5;
  border-bottom: 1px solid #E2E2DF;
}
.art-banner .breadcrumb { margin-bottom: 20px; }
.art-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.art-banner h1 {
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 800;
  color: #0A0A0A;
  letter-spacing: -.03em;
  line-height: 1.18;
  max-width: 780px;
  margin: 0 0 20px;
}
.art-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.art-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #777;
}
.art-meta-item i { color: #5A8C2A; }

/* ── Image hero ── */
.art-hero {
  width: 100%;
  aspect-ratio: 16/7;
  object-fit: cover;
  border-radius: 0;
  display: block;
}

/* ── Layout principal ── */
.art-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 56px;
  align-items: start;
  padding: 56px 0 80px;
}

/* ── Corps de l'article ── */
.art-body h2 {
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 800;
  color: #0A0A0A;
  letter-spacing: -.025em;
  line-height: 1.3;
  margin: 40px 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid #5A8C2A;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.art-body h2 i { color: #5A8C2A; font-size: 20px; }
.art-body h3 {
  font-size: 16px;
  font-weight: 700;
  color: #0A0A0A;
  letter-spacing: -.015em;
  margin: 28px 0 10px;
}
.art-body p {
  font-size: 15.5px;
  line-height: 1.85;
  color: #3a3a3a;
  margin-bottom: 18px;
}
.art-body p:last-child { margin-bottom: 0; }
.art-body strong { color: #0A0A0A; font-weight: 700; }
.art-body a { color: #5A8C2A; text-decoration: none; }
.art-body a:hover { text-decoration: underline; }
.art-body ul, .art-body ol {
  margin: 8px 0 18px 0;
  padding-left: 0;
  list-style: none;
}
.art-body ul li, .art-body ol li {
  font-size: 15.5px;
  line-height: 1.8;
  color: #3a3a3a;
  padding: 4px 0 4px 26px;
  position: relative;
}
.art-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 13px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5A8C2A;
}
.art-body ol { counter-reset: art-ol; }
.art-body ol li { counter-increment: art-ol; }
.art-body ol li::before {
  content: counter(art-ol);
  position: absolute;
  left: 0;
  top: 5px;
  width: 18px;
  height: 18px;
  background: #5A8C2A;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Encadré info ── */
.art-box {
  background: #F7F7F5;
  border: 1px solid #E2E2DF;
  border-left: 4px solid #5A8C2A;
  border-radius: 10px;
  padding: 20px 24px;
  margin: 24px 0;
}
.art-box p { margin: 0; font-size: 14.5px; color: #444; }
.art-box strong { color: #0A0A0A; }

/* ── Tableau comparatif ── */
.art-table-wrap { overflow-x: auto; margin: 20px 0; }
.art-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.art-table th {
  background: #5A8C2A;
  color: #fff;
  font-weight: 700;
  padding: 11px 16px;
  text-align: left;
  font-size: 13px;
}
.art-table td {
  padding: 10px 16px;
  border-bottom: 1px solid #E2E2DF;
  color: #3a3a3a;
  vertical-align: top;
}
.art-table tr:last-child td { border-bottom: none; }
.art-table tr:nth-child(even) td { background: #fafaf9; }

/* ── Image dans article ── */
.art-img-wrap {
  margin: 32px 0;
  border-radius: 12px;
  overflow: hidden;
}
.art-img-wrap img {
  width: 100%;
  display: block;
  object-fit: cover;
}
.art-img-caption {
  font-size: 12px;
  color: #999;
  text-align: center;
  padding: 8px 0 0;
  font-style: italic;
}

/* ── CTA inline ── */
.art-cta-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #5A8C2A;
  border-radius: 12px;
  padding: 28px 32px;
  margin: 36px 0;
}
.art-cta-inline p {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  line-height: 1.4;
}
.art-cta-inline a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #5A8C2A;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s;
  flex-shrink: 0;
}
.art-cta-inline a:hover { background: #f0f0ee; text-decoration: none; }

/* ── FAQ ── */
.art-faq { margin-top: 40px; }
.art-faq-item {
  border-bottom: 1px solid #E2E2DF;
}
.art-faq-item:first-child { border-top: 1px solid #E2E2DF; }
.art-faq-q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 16px 0;
  font-size: 15px;
  font-weight: 700;
  color: #0A0A0A;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.art-faq-q i { color: #5A8C2A; font-size: 16px; flex-shrink: 0; transition: transform .2s; }
.art-faq-q[aria-expanded="true"] i { transform: rotate(45deg); }
.art-faq-a {
  overflow: hidden;
  max-height: 0;
  transition: max-height .3s ease;
}
.art-faq-a.open { max-height: 400px; }
.art-faq-a p {
  font-size: 14.5px;
  color: #555;
  line-height: 1.8;
  padding-bottom: 16px;
  margin: 0;
}

/* ── Sidebar ── */
.art-sidebar { position: sticky; top: 80px; }
.art-sidebar-card {
  background: #F7F7F5;
  border: 1px solid #E2E2DF;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}
.art-sidebar-card h4 {
  font-size: 13px;
  font-weight: 700;
  color: #0A0A0A;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 0 0 16px;
}
.art-toc { list-style: none; padding: 0; margin: 0; }
.art-toc li { border-bottom: 1px solid #E2E2DF; }
.art-toc li:last-child { border-bottom: none; }
.art-toc a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 0;
  font-size: 13px;
  color: #555;
  text-decoration: none;
  transition: color .15s;
}
.art-toc a:hover { color: #5A8C2A; }
.art-toc a i { color: #5A8C2A; font-size: 12px; flex-shrink: 0; }

.art-sidebar-cta {
  background: #5A8C2A;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}
.art-sidebar-cta p {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  line-height: 1.5;
  margin: 0 0 16px;
}
.art-sidebar-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: #fff;
  color: #5A8C2A;
  font-size: 14px;
  font-weight: 700;
  padding: 12px;
  border-radius: 8px;
  text-decoration: none;
  margin-bottom: 10px;
  transition: background .2s;
}
.art-sidebar-cta a:hover { background: #f0f0ee; }
.art-sidebar-cta .art-tel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: #5A8C2A;
  text-decoration: none;
}
.art-sidebar-cta .art-tel:hover { color: #2d6a0a; }

/* ── Articles liés ── */
.art-related { padding: 56px 0 80px; background: #F7F7F5; border-top: 1px solid #E2E2DF; }
.art-related h2 {
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 800;
  color: #0A0A0A;
  letter-spacing: -.025em;
  margin-bottom: 32px;
}
.art-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .art-layout { grid-template-columns: 1fr; gap: 40px; }
  .art-sidebar { position: static; }
  .art-related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .art-banner { padding: 40px 0 32px; }
  .art-layout { padding: 36px 0 56px; }
  .art-cta-inline { flex-direction: column; align-items: flex-start; }
  .art-related-grid { grid-template-columns: 1fr; }
  .art-hero { aspect-ratio: 16/9; }
}
@media (max-width: 480px) {
  .art-body h2 { display: block; }
}
