/* ==========================================================
   MAMAN LOUVE — SINGLE POST TEMPLATE
   ========================================================== */

.ml-single {
  background: var(--ml-cream-light, #fffbf7);
  color: var(--ml-text, #2b2521);
}

.ml-single-article {
  overflow: hidden;
}

/* HERO */

.ml-single-hero {
  padding: clamp(56px, 8vw, 110px) 20px clamp(34px, 5vw, 72px);
  background:
    radial-gradient(circle at top left, rgba(201, 120, 99, 0.12), transparent 34%),
    linear-gradient(180deg, var(--ml-cream, #faf6f0), var(--ml-cream-light, #fffbf7));
}

.ml-single-hero__inner {
  width: min(100%, 920px);
  margin-inline: auto;
  text-align: center;
}

.ml-single-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--ml-muted, #766b63);
  font-size: 0.82rem;
  line-height: 1.5;
}

.ml-single-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.ml-single-breadcrumb a:hover {
  color: var(--ml-terracotta, #c97863);
}

.ml-single-category {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 18px;
  padding: 8px 14px;
  color: var(--ml-terracotta-dark, #a85f4e);
  background: var(--ml-terracotta-light, #f4ded7);
  border: 1px solid rgba(201, 120, 99, 0.18);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.ml-single-title {
  margin: 0;
  color: var(--ml-brown, #2b2521);
  font-family: var(--ml-font-title, Georgia, serif);
  font-size: clamp(2.35rem, 6vw, 5rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.ml-single-excerpt {
  max-width: 760px;
  margin: 24px auto 0;
  color: var(--ml-text-soft, #4a4039);
  font-size: clamp(1.04rem, 1.45vw, 1.22rem);
  line-height: 1.75;
}

.ml-single-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
  color: var(--ml-muted, #766b63);
  font-size: 0.88rem;
}

/* IMAGE MISE EN AVANT */

.ml-single-featured {
  width: min(calc(100% - 40px), 1120px);
  margin: 0 auto clamp(44px, 7vw, 82px);
  overflow: hidden;
  border-radius: var(--ml-radius-xl, 48px);
  background: var(--ml-sand, #e9d8c5);
  box-shadow: var(--ml-shadow-soft, 0 20px 60px rgba(47, 40, 36, 0.08));
}

.ml-single-featured__image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* LAYOUT */

.ml-single-layout {
  display: grid;
  grid-template-columns: minmax(190px, 250px) minmax(0, 820px);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
  width: min(calc(100% - 40px), 1120px);
  margin-inline: auto;
}

.ml-single-main {
  min-width: 0;
}

.ml-single-aside {
  position: sticky;
  top: 120px;
}

/* SOMMAIRE */

.ml-single-toc {
  padding: 22px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--ml-line, rgba(43, 37, 33, 0.12));
  border-radius: var(--ml-radius-md, 22px);
}

.ml-single-toc.is-hidden {
  display: none;
}

.ml-single-toc__title {
  margin: 0 0 14px;
  color: var(--ml-brown, #2b2521);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ml-single-toc__list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
  color: var(--ml-muted, #766b63);
  font-size: 0.88rem;
  line-height: 1.45;
}

.ml-single-toc__list a {
  color: inherit;
  text-decoration: none;
}

.ml-single-toc__list a:hover {
  color: var(--ml-terracotta, #c97863);
}

/* CONTENU ARTICLE */

.ml-single-content {
  font-size: clamp(1rem, 1.05vw, 1.06rem);
  line-height: 1.85;
}

.ml-single-content > *:first-child {
  margin-top: 0;
}

.ml-single-content p {
  margin: 0 0 1.35em;
  color: var(--ml-text-soft, #4a4039);
}

.ml-single-content h2 {
  margin: clamp(42px, 6vw, 68px) 0 18px;
  color: var(--ml-brown, #2b2521);
  font-family: var(--ml-font-title, Georgia, serif);
  font-size: clamp(1.85rem, 3.3vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.ml-single-content h3 {
  margin: 32px 0 12px;
  color: var(--ml-brown, #2b2521);
  font-family: var(--ml-font-title, Georgia, serif);
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.16;
}

.ml-single-content h4 {
  margin: 26px 0 10px;
  color: var(--ml-brown, #2b2521);
  font-family: var(--ml-font-body, Arial, sans-serif);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0;
}

.ml-single-content ul,
.ml-single-content ol {
  margin: 0 0 1.6em;
  padding-left: 1.25em;
  color: var(--ml-text-soft, #4a4039);
}

.ml-single-content li {
  margin-bottom: 0.6em;
  padding-left: 0.2em;
}

.ml-single-content a {
  color: var(--ml-terracotta-dark, #a85f4e);
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.ml-single-content strong {
  color: var(--ml-brown, #2b2521);
  font-weight: 800;
}

.ml-single-content blockquote {
  margin: clamp(30px, 5vw, 48px) 0;
  padding: clamp(24px, 4vw, 38px);
  color: var(--ml-brown, #2b2521);
  background: var(--ml-cream, #faf6f0);
  border-left: 3px solid var(--ml-terracotta, #c97863);
  border-radius: 0 var(--ml-radius-md, 22px) var(--ml-radius-md, 22px) 0;
}

.ml-single-content blockquote p {
  margin: 0;
  color: inherit;
  font-family: var(--ml-font-title, Georgia, serif);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.25;
}

.ml-single-content figure {
  margin: clamp(30px, 5vw, 52px) 0;
}

.ml-single-content img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--ml-radius-lg, 34px);
}

.ml-single-content figcaption {
  margin-top: 10px;
  color: var(--ml-muted, #766b63);
  font-size: 0.84rem;
  line-height: 1.5;
  text-align: center;
}

.ml-single-content table {
  width: 100%;
  margin: clamp(30px, 5vw, 52px) 0;
  border-collapse: collapse;
  overflow: hidden;
  background: var(--ml-white, #fff);
  border: 1px solid var(--ml-line, rgba(43, 37, 33, 0.12));
  border-radius: var(--ml-radius-md, 22px);
  box-shadow: var(--ml-shadow-card, 0 18px 46px rgba(47, 40, 36, 0.07));
}

.ml-single-content th,
.ml-single-content td {
  padding: 16px;
  border-bottom: 1px solid var(--ml-line, rgba(43, 37, 33, 0.12));
  color: var(--ml-text-soft, #4a4039);
  text-align: left;
  vertical-align: top;
}

.ml-single-content th {
  color: var(--ml-brown, #2b2521);
  background: var(--ml-cream, #faf6f0);
  font-size: 0.88rem;
  font-weight: 800;
}

.ml-single-content tr:last-child td {
  border-bottom: 0;
}

/* BLOCS OPTIONNELS À COLLER DANS LES ARTICLES */

.ml-article-note,
.ml-article-warning,
.ml-article-checklist {
  margin: clamp(30px, 5vw, 52px) 0;
  padding: clamp(24px, 4vw, 36px);
  border-radius: var(--ml-radius-lg, 34px);
}

.ml-article-note {
  background: var(--ml-cream, #faf6f0);
  border: 1px solid var(--ml-line, rgba(43, 37, 33, 0.12));
}

.ml-article-warning {
  background: var(--ml-terracotta-light, #f4ded7);
  border: 1px solid rgba(201, 120, 99, 0.2);
}

.ml-article-checklist {
  background: var(--ml-sage-soft, #e7ede2);
  border: 1px solid rgba(168, 181, 162, 0.35);
}

.ml-article-note strong,
.ml-article-warning strong,
.ml-article-checklist strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ml-brown, #2b2521);
  font-weight: 900;
}

.ml-article-note p:last-child,
.ml-article-warning p:last-child,
.ml-article-checklist p:last-child {
  margin-bottom: 0;
}

/* CTA FIN ARTICLE */

.ml-single-cta {
  margin: clamp(54px, 8vw, 90px) 0 0;
  padding: clamp(30px, 5vw, 48px);
  color: var(--ml-white, #fff);
  background:
    radial-gradient(circle at top right, rgba(201, 120, 99, 0.22), transparent 34%),
    var(--ml-dark, #241f1c);
  border-radius: var(--ml-radius-xl, 48px);
}

.ml-single-cta__eyebrow {
  margin: 0 0 12px;
  color: var(--ml-rose, #ebcfc7);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ml-single-cta__title {
  max-width: 620px;
  margin: 0;
  color: var(--ml-white, #fff);
  font-family: var(--ml-font-title, Georgia, serif);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.ml-single-cta__text {
  max-width: 640px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.75;
}

.ml-single-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* ARTICLES LIÉS */

.ml-single-related {
  padding: clamp(64px, 8vw, 110px) 20px;
}

.ml-single-related__inner {
  width: min(100%, 1120px);
  margin-inline: auto;
}

.ml-single-related__eyebrow {
  margin: 0 0 12px;
  color: var(--ml-terracotta, #c97863);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
}

.ml-single-related__title {
  max-width: 760px;
  margin: 0 auto 34px;
  color: var(--ml-brown, #2b2521);
  font-family: var(--ml-font-title, Georgia, serif);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.03;
  text-align: center;
}

.ml-single-related__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.ml-single-related-card {
  height: 100%;
  overflow: hidden;
  background: var(--ml-white, #fff);
  border: 1px solid var(--ml-line, rgba(43, 37, 33, 0.12));
  border-radius: var(--ml-radius-lg, 34px);
  box-shadow: var(--ml-shadow-card, 0 18px 46px rgba(47, 40, 36, 0.07));
}

.ml-single-related-card__link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.ml-single-related-card__media {
  margin: 0;
  overflow: hidden;
  background: var(--ml-sand, #e9d8c5);
}

.ml-single-related-card__media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 420ms ease;
}

.ml-single-related-card:hover img {
  transform: scale(1.035);
}

.ml-single-related-card__body {
  padding: 22px;
}

.ml-single-related-card__date {
  margin: 0 0 8px;
  color: var(--ml-terracotta, #c97863);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ml-single-related-card__title {
  margin: 0;
  color: var(--ml-brown, #2b2521);
  font-family: var(--ml-font-title, Georgia, serif);
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.ml-single-related-card__text {
  margin: 12px 0 0;
  color: var(--ml-muted, #766b63);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* RESPONSIVE */

@media (max-width: 1024px) {
  .ml-single-layout {
    grid-template-columns: 1fr;
  }

  .ml-single-aside {
    position: static;
    order: -1;
  }

  .ml-single-toc {
    width: min(100%, 820px);
    margin-inline: auto;
  }

  .ml-single-related__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .ml-single-hero {
    padding-top: 44px;
  }

  .ml-single-hero__inner,
  .ml-single-layout,
  .ml-single-related__inner {
    width: min(100% - 32px, 1120px);
  }

  .ml-single-featured {
    width: min(100% - 32px, 1120px);
    border-radius: var(--ml-radius-lg, 34px);
  }

  .ml-single-featured__image {
    aspect-ratio: 4 / 3;
  }

  .ml-single-breadcrumb {
    justify-content: flex-start;
    text-align: left;
  }

  .ml-single-hero__inner {
    text-align: left;
  }

  .ml-single-meta {
    justify-content: flex-start;
  }

  .ml-single-category {
    justify-content: flex-start;
  }

  .ml-single-content {
    line-height: 1.78;
  }

  .ml-single-content table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .ml-single-cta {
    border-radius: var(--ml-radius-lg, 34px);
  }

  .ml-single-cta__actions .ml-btn {
    width: 100%;
  }

  .ml-single-related__grid {
    grid-template-columns: 1fr;
  }
}