/* ============================================================
   Articles – Cœur de Miel  |  article.css
   ============================================================ */

/* ── Article header ── */
.cdm-wrapper .article-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 48px 0;
}

.cdm-wrapper .article-tag {
  display: inline-block !important;
  font-size: 0.65rem !important;
  font-weight: 600 !important;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #E6A817 !important;
  background: #fff8ee !important;
  border: 1px solid #fde9c4 !important;
  padding: 4px 12px !important;
  border-radius: 999px !important;
  margin-bottom: 18px;
  text-decoration: none !important;
}

.cdm-wrapper .article-header h1 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
  color: #1a1a1a;
  max-width: 780px;
}

/* ── Meta bar ── */
.cdm-wrapper .meta-bar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 48px;
  display: flex !important;
  align-items: center;
  gap: 18px;
  font-size: 0.78rem;
  color: #aaa;
}

.cdm-wrapper .meta-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #aaa !important;
  display: inline-block !important;
  flex-shrink: 0;
}

/* ── Page layout ── */
.cdm-wrapper .page-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px 80px;
  display: grid !important;
  grid-template-columns: 1fr 300px !important;
  gap: 64px !important;
  align-items: start;
}

/* ── Featured image ── */
.cdm-wrapper .featured-image {
  margin-bottom: 40px;
}

.cdm-wrapper .featured-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

/* ── Article body ── */
.cdm-wrapper .article-body p {
  font-size: 1rem;
  line-height: 1.85;
  color: #444;
  margin-bottom: 24px;
}

.cdm-wrapper .article-body h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 48px 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #ebebeb;
}

.cdm-wrapper .article-body h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 28px 0 10px;
}

.cdm-wrapper .article-body strong { color: #222; font-weight: 600; }
.cdm-wrapper .article-body em     { font-style: italic; color: #6b6b6b; }

.cdm-wrapper .article-body a,
.cdm-wrapper .article-body a:visited {
  color: #E6A817 !important;
  text-decoration: underline !important;
}

.cdm-wrapper .article-body ul,
.cdm-wrapper .article-body ol {
  padding-left: 20px;
  margin-bottom: 24px;
}

.cdm-wrapper .article-body li {
  font-size: 1rem;
  line-height: 1.85;
  color: #444;
  margin-bottom: 6px;
}

/* ── Table ── */
.cdm-wrapper .article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  font-size: 0.9rem;
}

.cdm-wrapper .article-body th {
  background: #fff8ee;
  color: #E6A817;
  font-weight: 600;
  padding: 10px 14px;
  text-align: left;
  border: 1px solid #fde9c4;
}

.cdm-wrapper .article-body td {
  padding: 10px 14px;
  border: 1px solid #ebebeb;
  color: #444;
  vertical-align: top;
}

.cdm-wrapper .article-body tr:nth-child(even) td {
  background: #fafafa;
}

/* ── Pull quote ── */
.cdm-wrapper .pull-quote {
  font-style: italic;
  font-size: 1.1rem;
  color: #E6A817;
  border-left: 3px solid #E6A817;
  padding: 8px 0 8px 24px;
  margin: 40px 0;
}

/* ── Callout ── */
.cdm-wrapper .callout {
  background: #fff8ee;
  border-radius: 10px;
  padding: 20px 24px;
  margin: 36px 0;
  font-size: 0.92rem;
  line-height: 1.7;
  color: #7c3d08;
  display: flex;
  gap: 12px;
}

.cdm-wrapper .callout a {
  color: #E6A817 !important;
  font-weight: 600;
  text-decoration: underline;
}

/* ── Sidebar ── */
.cdm-wrapper .sidebar {
  position: sticky;
  top: 80px;
  display: flex !important;
  flex-direction: column !important;
  gap: 20px !important;
}

.cdm-wrapper .sidebar-card {
  border: 1px solid #ebebeb;
  border-radius: 12px;
  padding: 24px;
  background: #fafafa;
}

.cdm-wrapper .sidebar-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #aaa;
  margin-bottom: 16px;
  text-align: left;
}

/* Sommaire */
.cdm-wrapper .toc {
  list-style: none;
  display: flex;
  flex-direction: column;
  padding: 0 !important;
  margin: 0 !important;
}

.cdm-wrapper .toc li { border-bottom: 1px solid #ebebeb; }
.cdm-wrapper .toc li:last-child { border-bottom: none; }

.cdm-wrapper .toc a,
.cdm-wrapper .toc a:visited {
  display: block !important;
  font-size: 0.82rem;
  color: #6b6b6b !important;
  text-decoration: none !important;
  padding: 8px 0;
  line-height: 1.4;
}

.cdm-wrapper .toc a:hover { color: #E6A817 !important; }

/* Produits sidebar */
.cdm-wrapper .sidebar-product-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  margin: 0 0 14px;
}

.cdm-wrapper .sidebar-product {
  display: flex !important;
  flex-direction: column;
  gap: 8px;
}

.cdm-wrapper .sidebar-product p {
  font-size: 0.85rem;
  line-height: 1.55;
  color: #6b6b6b;
  margin-bottom: 8px;
}

.cdm-wrapper .sidebar-product p strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 4px;
}

/* ── Boutons ── */
.cdm-wrapper .btn {
  display: block !important;
  text-align: center;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 11px 16px;
  border-radius: 8px;
  text-decoration: none !important;
  margin-bottom: 8px;
}

.cdm-wrapper .btn-amber,
.cdm-wrapper .btn-amber:visited {
  background: #E6A817 !important;
  color: #fff !important;
}

.cdm-wrapper .btn-amber:hover { opacity: 0.88; color: #fff !important; }

.cdm-wrapper .btn-outline,
.cdm-wrapper .btn-outline:visited {
  border: 1px solid #E6A817 !important;
  color: #E6A817 !important;
  background: transparent !important;
  text-decoration: none !important;
}

.cdm-wrapper .btn-outline:hover {
  background: #E6A817 !important;
  color: #fff !important;
}

/* ── Articles liés ── */
.cdm-wrapper .related {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 48px 80px;
  border-top: 1px solid #ebebeb;
}

.cdm-wrapper .related-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #aaa;
  margin-bottom: 20px;
}

.cdm-wrapper .related-link + .related-link { margin-top: 5px; }

.cdm-wrapper .related-link,
.cdm-wrapper .related-link:visited {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border: 1px solid #ebebeb !important;
  border-radius: 10px;
  text-decoration: none !important;
  color: #1a1a1a !important;
  font-size: 0.92rem;
  font-weight: 500;
}

.cdm-wrapper .related-link:hover {
  border-color: #E6A817 !important;
  color: #E6A817 !important;
}

.cdm-wrapper .related-link svg {
  width: 15px !important;
  height: 15px !important;
  min-width: 15px;
  max-width: 15px !important;
  flex-shrink: 0;
  color: #aaa;
}

/* ── Smooth scroll desktop ── */
@media (min-width: 901px) {
  html { scroll-behavior: smooth; }
}

/* ── Mobile ── */
@media (max-width: 900px) {
  .cdm-wrapper .featured-image     { margin-bottom: 24px; }
  .cdm-wrapper .featured-image img { height: 220px; }

  .cdm-wrapper .sidebar {
    position: static;
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .cdm-wrapper .sidebar-card:has(.toc) { display: none; }
  .cdm-wrapper .sidebar-card            { padding: 14px; }

  .cdm-wrapper .sidebar-product-img { margin-bottom: 10px; }

  .cdm-wrapper .btn { font-size: 0.8rem; padding: 9px 12px; }
}
