/**
 * Template article de blog — lecture premium.
 */

.page-content.tao-page-blog-article {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: #f7f6f2;
}

.tao-blog-post {
  width: 100%;
}

/* ── Fil d'Ariane ── */
.tao-blog-post__breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  max-width: min(820px, 100%);
  margin: 0 auto;
  padding: clamp(5.5rem, 11vh, 6.5rem) clamp(1.25rem, 4vw, 2rem) 1.25rem;
  font-size: 0.8125rem;
  color: rgba(44, 74, 71, 0.55);
}

.tao-blog-post__breadcrumb a {
  color: rgba(65, 117, 114, 0.85);
  text-decoration: none;
  transition: color 0.15s ease;
}

.tao-blog-post__breadcrumb a:hover {
  color: #2c4a47;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.tao-blog-post__breadcrumb span[aria-current] {
  color: rgba(44, 74, 71, 0.75);
}

/* ── Hero ── */
.tao-blog-post__hero {
  max-width: min(920px, 100%);
  margin: 0 auto clamp(2.5rem, 5vh, 3.5rem);
  padding-inline: clamp(1.25rem, 4vw, 2rem);
}

.tao-blog-post__hero-media {
  position: relative;
  aspect-ratio: 21 / 9;
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: clamp(1.75rem, 3.5vh, 2.25rem);
  box-shadow: 0 20px 60px rgba(26, 31, 30, 0.12);
  background: #dce5e3;
}

.tao-blog-post__hero-media > span {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

.tao-blog-post__hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.tao-blog-post__hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(26, 31, 30, 0) 55%,
    rgba(26, 31, 30, 0.18) 100%
  );
  pointer-events: none;
}

.tao-blog-post__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.8125rem;
  color: rgba(44, 74, 71, 0.65);
}

.tao-blog-post__category {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(65, 117, 114, 0.12);
  color: #417572;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tao-blog-post__reading::before {
  content: "·";
  margin-right: 0.65rem;
  opacity: 0.5;
}

.tao-blog-post__title {
  margin: 0 0 1.15rem;
  font-family: var(--font-heading), "Ovo", serif;
  font-size: clamp(2rem, 4.8vw, 3.15rem);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--tao-teal-dark, #2c4a47);
}

.tao-blog-post__lead {
  margin: 0 0 1.25rem;
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  line-height: 1.65;
  color: rgba(44, 74, 71, 0.82);
  max-width: 42rem;
}

.tao-blog-post__author {
  margin: 0;
  font-size: 0.875rem;
  color: rgba(44, 74, 71, 0.6);
}

.tao-blog-post__author strong {
  color: #2c4a47;
  font-weight: 600;
}

/* ── Corps de l'article ── */
.tao-blog-post__body {
  max-width: min(680px, 100%);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2rem) clamp(3rem, 6vh, 4rem);
  font-family: var(--font-body), sans-serif;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: rgba(26, 31, 30, 0.9);
}

.tao-blog-post__body > header,
.tao-blog-post__body .blog-article__intro {
  margin-bottom: 2.5rem;
  padding: 1.5rem 1.75rem;
  border-left: 3px solid rgba(65, 117, 114, 0.45);
  border-radius: 0 16px 16px 0;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 2px 16px rgba(26, 31, 30, 0.04);
}

.tao-blog-post__body > header p,
.tao-blog-post__body .blog-article__intro p {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.72;
  color: rgba(44, 74, 71, 0.88);
}

.tao-blog-post__body section {
  margin-bottom: 2.25rem;
}

.tao-blog-post__body section + section {
  padding-top: 0.25rem;
}

.tao-blog-post__body h2,
.tao-blog-post__body h5.elementor-heading-title {
  font-family: var(--font-heading), "Ovo", serif;
  font-size: clamp(1.4rem, 2.8vw, 1.75rem);
  font-weight: 400;
  line-height: 1.2;
  margin: 2.75rem 0 1rem;
  padding-top: 0.5rem;
  color: var(--tao-teal-dark, #2c4a47);
  border-top: 1px solid rgba(65, 117, 114, 0.14);
}

.tao-blog-post__body section:first-of-type h2,
.tao-blog-post__body h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.tao-blog-post__body h3 {
  font-family: var(--font-body), sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  margin: 1.75rem 0 0.65rem;
  color: #1a1f1e;
}

.tao-blog-post__body p {
  margin: 0 0 1.2rem;
}

.tao-blog-post__body ul,
.tao-blog-post__body ol {
  margin: 0 0 1.35rem;
  padding-left: 0;
  list-style: none;
}

.tao-blog-post__body li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.55rem;
  line-height: 1.65;
}

.tao-blog-post__body ul > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #417572;
  opacity: 0.65;
}

.tao-blog-post__body strong {
  font-weight: 600;
  color: #1a1f1e;
}

.tao-blog-post__body em {
  font-style: italic;
  color: rgba(44, 74, 71, 0.88);
}

.tao-blog-post__body a {
  color: #417572;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

.tao-blog-post__body a:hover {
  color: #2c4a47;
}

.tao-blog-post__body img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  margin: 2rem 0;
  box-shadow: 0 8px 32px rgba(26, 31, 30, 0.08);
}

.tao-blog-post__body blockquote {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border-radius: 16px;
  background: rgba(65, 117, 114, 0.08);
  font-family: var(--font-heading), "Ovo", serif;
  font-size: 1.2rem;
  line-height: 1.55;
  color: #2c4a47;
}

/* Masquer bruit Elementor résiduel */
.tao-blog-post__body .elementor-widget-heading:has(.elementor-heading-title:empty),
.tao-blog-post__body .elementor-heading-title:empty {
  display: none !important;
}

/* ── CTA ── */
.tao-blog-post__cta {
  max-width: min(820px, 100%);
  margin: 0 auto clamp(3rem, 6vh, 4.5rem);
  padding-inline: clamp(1.25rem, 4vw, 2rem);
}

.tao-blog-post__cta-inner {
  padding: clamp(2rem, 4vw, 2.75rem);
  border-radius: 24px;
  background: linear-gradient(135deg, #2c4a47 0%, #417572 100%);
  color: #fff;
  text-align: center;
  box-shadow: 0 16px 48px rgba(44, 74, 71, 0.22);
}

.tao-blog-post__cta-eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.75;
}

.tao-blog-post__cta-title {
  margin: 0 0 0.85rem;
  font-family: var(--font-heading), "Ovo", serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  line-height: 1.15;
}

.tao-blog-post__cta-text {
  margin: 0 auto 1.5rem;
  max-width: 32rem;
  font-size: 1rem;
  line-height: 1.65;
  opacity: 0.9;
}

.tao-blog-post__cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.5rem;
}

.tao-blog-post__cta-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  background: #fff;
  color: #2c4a47;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.tao-blog-post__cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.tao-blog-post__cta-link {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color 0.15s ease;
}

.tao-blog-post__cta-link:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Articles liés ── */
.tao-blog-related {
  max-width: min(920px, 100%);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2rem) clamp(4rem, 8vh, 5.5rem);
}

.tao-blog-related__heading {
  margin: 0 0 1.5rem;
  font-family: var(--font-heading), "Ovo", serif;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 400;
  color: var(--tao-teal-dark, #2c4a47);
}

.tao-blog-related__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.tao-blog-related__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid rgba(65, 117, 114, 0.1);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 20px rgba(26, 31, 30, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tao-blog-related__link:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(26, 31, 30, 0.1);
}

.tao-blog-related__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e8eceb;
}

.tao-blog-related__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.tao-blog-related__link:hover .tao-blog-related__media img {
  transform: scale(1.04);
}

.tao-blog-related__body {
  padding: 1rem 1.15rem 1.15rem;
}

.tao-blog-related__category {
  margin: 0 0 0.4rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(65, 117, 114, 0.75);
}

.tao-blog-related__title {
  margin: 0;
  font-family: var(--font-heading), "Ovo", serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.35;
  color: #2c4a47;
}

/* ── Articles Markdown (Tina rich-text) ── */
.tao-markdown--blog {
  max-width: 42rem;
  margin-inline: auto;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: rgba(44, 74, 71, 0.9);
}

.tao-markdown--blog h2 {
  margin: 2.25rem 0 1rem;
  font-family: var(--font-heading), "Ovo", serif;
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  font-weight: 400;
  line-height: 1.25;
  color: #2c4a47;
}

.tao-markdown--blog h3 {
  margin: 1.75rem 0 0.75rem;
  font-family: var(--font-heading), "Ovo", serif;
  font-size: 1.15rem;
  font-weight: 400;
  color: #2c4a47;
}

.tao-markdown--blog p {
  margin: 0 0 1.1rem;
}

.tao-markdown--blog ul,
.tao-markdown--blog ol {
  margin: 0 0 1.25rem;
  padding-left: 1.35rem;
}

.tao-markdown--blog li {
  margin-bottom: 0.45rem;
}

.tao-markdown--blog a {
  color: var(--color-accent-1, #417572);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.tao-markdown--blog a:hover {
  color: #356663;
}

.tao-markdown--blog blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.15rem;
  border-left: 3px solid var(--color-accent-1, #417572);
  background: rgba(65, 117, 114, 0.06);
  border-radius: 0 12px 12px 0;
}

.tao-markdown--blog strong {
  font-weight: 600;
  color: #2c4a47;
}

.tao-markdown--blog img {
  display: block;
  width: 100%;
  height: auto;
  margin: 1.5rem 0;
  border-radius: 14px;
}

/* ── Footer spacing ── */
#contenu:has(.tao-page-blog-article) {
  padding-bottom: 0 !important;
}

#contenu:has(.tao-page-blog-article) + .elementor-footer .elementor-element-e43e011 {
  margin-top: 0 !important;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .tao-blog-post__hero-media {
    aspect-ratio: 16 / 10;
    border-radius: 18px;
  }

  .tao-blog-post__body > header,
  .tao-blog-post__body .blog-article__intro {
    padding: 1.15rem 1.25rem;
  }

  .tao-blog-related__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) and (min-width: 769px) {
  .tao-blog-related__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
