/* ==========================================================================
   Article de blog – Maison Ostara
   ========================================================================== */
.mo-article, .mo-related {
  --mo-cuivre: #B5785D;
  --mo-cuivre-d: #9a6249;
  --mo-vert: #656861;
  --mo-encre: #3f413c;
  --mo-gris: #8a8c86;
  --mo-sable: #F6F1EC;
  --mo-ligne: #e4ded6;
  --mo-col: 720px;
}
.mo-article {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px 0;
  color: var(--mo-encre);
}

/* --- En-tête ------------------------------------------------------------ */
.mo-article__header { max-width: var(--mo-col); margin: 0 auto; text-align: center; }
.mo-article__crumbs { font-size: 13px; color: var(--mo-gris); margin-bottom: 28px; }
.mo-article__crumbs a { color: var(--mo-gris); text-decoration: none; }
.mo-article__crumbs a:hover { color: var(--mo-cuivre); text-decoration: underline; }
.mo-article__cat {
  display: block;
  margin-top: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mo-cuivre);
  text-decoration: none;
  margin-bottom: 14px;
}
.mo-article__title {
  font-family: "New York", Georgia, serif;
  font-size: 34px;
  line-height: 1.15;
  color: var(--mo-vert);
  margin: 0 0 18px;
  text-wrap: balance;
}
@media (min-width: 768px) { .mo-article__title { font-size: 48px; } }
.mo-article__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  font-size: 14px;
  color: var(--mo-gris);
  margin: 0 0 24px;
}
.mo-article__meta span + span::before { content: "·"; margin-right: 18px; color: var(--mo-ligne); }
.mo-article__lead { font-size: 19px; line-height: 1.6; color: var(--mo-vert); }

.mo-article__hero { max-width: 960px; margin: 12px auto 40px; }
.mo-article__hero img { width: 100%; height: auto; border-radius: 12px; display: block; }

/* --- Mise en page contenu ---------------------------------------------- */
.mo-article__layout { max-width: var(--mo-col); margin: 0 auto; }

.mo-toc {
  background: var(--mo-sable);
  border-radius: 10px;
  padding: 18px 22px;
  margin: 8px 0 36px;
}
.mo-toc summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  color: var(--mo-vert);
  list-style: none;
}
.mo-toc summary::-webkit-details-marker { display: none; }
.mo-toc summary::after { content: "–"; float: right; color: var(--mo-cuivre); }
.mo-toc details:not([open]) summary::after { content: "+"; }
.mo-toc ol { margin: 12px 0 0; padding-left: 20px; }
.mo-toc li { margin: 6px 0; font-size: 15px; line-height: 1.45; }
.mo-toc a { color: var(--mo-encre); text-decoration: none; }
.mo-toc a:hover { color: var(--mo-cuivre); text-decoration: underline; }

.mo-article__content {
  font-size: 18px;
  line-height: 1.75;
  font-weight: 400;
  overflow-wrap: break-word;
}
.mo-article__content > * { margin-top: 0; margin-bottom: 1.15em; }
.mo-article__content h2 {
  font-family: "New York", Georgia, serif;
  font-size: 28px;
  line-height: 1.25;
  color: var(--mo-vert);
  margin: 2.2em 0 .7em;
  scroll-margin-top: 140px;
}
@media (min-width: 768px) { .mo-article__content h2 { font-size: 32px; } }
.mo-article__content h3 {
  font-family: "New York", Georgia, serif;
  font-size: 22px;
  line-height: 1.3;
  color: var(--mo-vert);
  margin: 1.8em 0 .5em;
  scroll-margin-top: 140px;
}
.mo-article__content h4 { font-size: 18px; font-weight: 700; margin: 1.5em 0 .4em; }
.mo-article__content strong { font-weight: 700; color: var(--mo-encre); }
.mo-article__content a {
  color: var(--mo-cuivre-d);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.mo-article__content a:hover { color: var(--mo-vert); }
.mo-article__content ul, .mo-article__content ol { padding-left: 1.3em; }
.mo-article__content li { margin-bottom: .4em; }
.mo-article__content li::marker { color: var(--mo-cuivre); }
.mo-article__content blockquote {
  border-left: 3px solid var(--mo-cuivre);
  margin-left: 0;
  padding: 4px 0 4px 20px;
  font-style: italic;
  color: var(--mo-vert);
}
.mo-article__content figure { margin: 2em 0; }
.mo-article__content img { max-width: 100%; height: auto; border-radius: 10px; }
.mo-article__content figcaption { font-size: 14px; color: var(--mo-gris); text-align: center; margin-top: 8px; }
.mo-article__content .wp-block-image.is-resized img,
.mo-article__content .wp-block-image img { width: 100% !important; height: auto !important; }
.mo-article__content table { width: 100%; border-collapse: collapse; font-size: 16px; }
.mo-article__content th, .mo-article__content td { border-bottom: 1px solid var(--mo-ligne); padding: 10px 8px; text-align: left; }
.mo-article__content hr { border: 0; border-top: 1px solid var(--mo-ligne); margin: 2.5em 0; }

/* --- Boutons ------------------------------------------------------------ */
.mo-btn {
  display: inline-block;
  background: var(--mo-cuivre);
  color: #fff !important;
  font-weight: 600;
  font-size: 15px;
  padding: 11px 22px;
  border-radius: 999px;
  text-decoration: none !important;
  transition: background .2s;
  white-space: nowrap;
}
.mo-btn:hover { background: var(--mo-vert); }
.mo-btn--block { display: block; text-align: center; }
.mo-btn--ghost { background: transparent; color: var(--mo-vert) !important; box-shadow: inset 0 0 0 1px var(--mo-vert); }
.mo-btn--ghost:hover { background: var(--mo-vert); color: #fff !important; }

/* --- Produit vedette (milieu d'article) --------------------------------- */
.mo-cta-inline {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  align-items: center;
  background: var(--mo-sable);
  border-radius: 12px;
  padding: 18px;
  margin: 2.4em 0 !important;
  font-size: 16px;
  line-height: 1.5;
}
@media (min-width: 600px) { .mo-cta-inline { grid-template-columns: 150px 1fr; padding: 22px 26px; gap: 24px; } }
.mo-cta-inline__media img { width: 100% !important; height: auto; border-radius: 8px; display: block; background: #fff; }
.mo-cta-inline__kicker { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--mo-cuivre); font-weight: 600; margin: 0 0 4px; }
.mo-cta-inline__name { font-family: "New York", Georgia, serif; font-size: 20px; line-height: 1.25; margin: 0 0 6px; }
.mo-cta-inline__name a { color: var(--mo-vert) !important; text-decoration: none !important; }
.mo-cta-inline__text { margin: 0 0 12px; color: var(--mo-encre); }
.mo-cta-inline__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.mo-cta-inline__price { font-weight: 700; font-size: 18px; color: var(--mo-encre); }
.mo-cta-inline__price del { font-weight: 400; color: var(--mo-gris); margin-right: 6px; }
.mo-cta-inline__price ins { text-decoration: none; }

/* --- Bloc produits fin d'article --------------------------------------- */
.mo-products {
  max-width: 960px;
  margin: 56px auto 0;
  padding: 36px 20px;
  border-top: 1px solid var(--mo-ligne);
  border-bottom: 1px solid var(--mo-ligne);
  text-align: center;
}
.mo-products__kicker, .mo-related__kicker {
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--mo-cuivre); font-weight: 600; margin: 0 0 6px;
}
.mo-products__title, .mo-related__title {
  font-family: "New York", Georgia, serif;
  font-size: 28px !important;
  line-height: 1.2 !important;
  color: var(--mo-vert);
  margin: 0 0 28px;
}
.mo-products__grid {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (min-width: 768px) { .mo-products__grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; } }
.mo-product { display: flex; flex-direction: column; gap: 8px; text-align: left; }
.mo-product__link { text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.mo-product__link img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: var(--mo-sable); }
.mo-product__name { font-weight: 600; font-size: 15px; line-height: 1.35; color: var(--mo-vert); }
.mo-product__price { font-weight: 700; font-size: 16px; color: var(--mo-encre); }
.mo-product__price del { font-weight: 400; color: var(--mo-gris); }
.mo-product__price ins { text-decoration: none; }
.mo-products__more { margin: 24px 0 0; }
.mo-products__more a { color: var(--mo-cuivre-d); font-weight: 600; text-underline-offset: 3px; }

/* --- Pied d'article ---------------------------------------------------- */
.mo-article__footer { max-width: var(--mo-col); margin: 48px auto 0; }
.mo-share { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 24px; border-bottom: 1px solid var(--mo-ligne); }
.mo-share__label { margin: 0; font-size: 15px; }
.mo-share__list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.mo-share__list a {
  display: inline-block; font-size: 13px; font-weight: 600; padding: 7px 14px;
  border-radius: 999px; box-shadow: inset 0 0 0 1px var(--mo-ligne);
  color: var(--mo-vert); text-decoration: none;
}
.mo-share__list a:hover { box-shadow: inset 0 0 0 1px var(--mo-cuivre); color: var(--mo-cuivre); }
.mo-adjacent { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 24px 0 0; }
@media (min-width: 600px) { .mo-adjacent { grid-template-columns: 1fr 1fr; } }
.mo-adjacent a {
  display: block; padding: 16px 18px; border-radius: 10px; background: var(--mo-sable);
  color: var(--mo-vert); text-decoration: none; font-family: "New York", Georgia, serif; font-size: 17px; line-height: 1.35;
}
.mo-adjacent a span { display: block; font-family: Karla, sans-serif; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--mo-cuivre); margin-bottom: 4px; }
.mo-adjacent__next { text-align: right; grid-column: -2; }
.mo-adjacent a:hover { box-shadow: inset 0 0 0 1px var(--mo-cuivre); }

/* --- Articles liés ------------------------------------------------------ */
.mo-related { max-width: 1100px; margin: 64px auto 72px; padding: 0 16px; text-align: center; }
.mo-related__grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr; gap: 24px; text-align: left; }
@media (min-width: 768px) { .mo-related__grid { grid-template-columns: repeat(3, 1fr); } }
.mo-card { border: 1px solid var(--mo-ligne); border-radius: 12px; overflow: hidden; background: #fff; transition: box-shadow .2s, transform .2s; }
.mo-card:hover { box-shadow: 0 10px 30px rgba(0,0,0,.07); transform: translateY(-2px); }
.mo-card a { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.mo-card__img { width: 100%; height: 190px; object-fit: cover; display: block; }
.mo-card__title { text-transform: none !important; letter-spacing: 0; font-family: "New York", Georgia, serif; font-size: 19px !important; line-height: 1.3 !important; color: var(--mo-vert); margin: 18px 20px 8px; }
.mo-card__excerpt { font-size: 14px; line-height: 1.55; color: var(--mo-gris); margin: 0 20px 14px; flex: 1; }
.mo-card__meta { font-size: 12px; color: var(--mo-cuivre); margin: 0 20px 20px; }
.mo-related__all { margin: 32px 0 0; }

@media (max-width: 600px) {
  .mo-article__meta { flex-direction: column; gap: 2px; }
  .mo-article__meta span + span::before { content: none; }
}
