/* ==========================================================================
   single.css — Styles des articles de blog
   Chargé uniquement sur is_singular('post') via functions.php
   Référence visuelle : Tasks/maquette-article-blog.html
   ========================================================================== */

/* ── Hero article ─────────────────────────────────────────────────────────── */

.ze-coach-article-hero {
  padding: 2rem 2rem 0;
  max-width: 800px;
  margin: 0 auto;
}

.ze-coach-article-breadcrumb {
  font-size: 0.78rem;
  color: var(--ze-navy-muted);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.ze-coach-article-breadcrumb a {
  color: var(--ze-lavender);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--ze-transition);
}

.ze-coach-article-breadcrumb a:hover {
  color: var(--ze-navy);
}

.ze-coach-article-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--ze-navy-muted);
}

.ze-coach-article-category {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--ze-lime);
  color: var(--ze-navy);
  padding: 0.25rem 0.7rem;
  border-radius: 100px;
}

.ze-coach-article-meta-sep {
  opacity: 0.4;
}

.ze-coach-article-meta-author {
  font-weight: 600;
  color: var(--ze-navy);
}

.ze-coach-article-hero h1 {
  font-family: var(--ze-font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.ze-coach-article-desc {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--ze-navy-muted);
  margin-bottom: 1.5rem;
}


/* ── Paragraphes d'intro (dans le hero, avant la cover image) ─────────────── */

.ze-coach-article-intro {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  border-top: 2px solid rgba(27, 27, 58, 0.04);
  border-bottom: 2px solid rgba(27, 27, 58, 0.04);
  margin-top: 0.5rem;
}

.ze-coach-article-intro p {
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--ze-navy);
  margin-bottom: 1rem;
}

.ze-coach-article-intro p strong {
  font-weight: 700;
}

.ze-coach-article-intro a {
  color: var(--ze-navy);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--ze-lime);
  padding-bottom: 1px;
  transition: border-color var(--ze-transition);
}

.ze-coach-article-intro a:hover {
  border-color: var(--ze-lavender);
}

/* ── Image de couverture ───────────────────────────────────────────────────── */

.ze-coach-article-cover {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 2rem;
}

.ze-coach-article-cover img,
.ze-coach-article-cover-img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: var(--ze-shadow-offset);
  display: block;
}

/* ── Corps de l'article ────────────────────────────────────────────────────── */

.ze-coach-article-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 2rem 4rem;
}

.ze-coach-article-body h2 {
  font-family: var(--ze-font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.75rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 2.5rem 0 1rem;
  padding-top: 1.5rem;
  border-top: 2px solid rgba(27, 27, 58, 0.04);
  position: relative;
}

.ze-coach-article-body h2::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--ze-lime);
}

.ze-coach-article-body h3 {
  font-family: var(--ze-font-display);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 2rem 0 0.6rem;
  color: var(--ze-navy-light);
}

.ze-coach-article-body h4 {
  font-family: var(--ze-font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ze-navy-muted);
  margin: 1.5rem 0 0.5rem;
}

.ze-coach-article-body p {
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--ze-navy);
  margin-bottom: 1rem;
}

.ze-coach-article-body p strong,
.ze-coach-article-body strong {
  font-weight: 700;
  color: var(--ze-navy);
}

.ze-coach-article-body em {
  font-style: italic;
}

/* Liens dans le corps — lime border-bottom, lavender au hover */
.ze-coach-article-body a {
  color: var(--ze-navy);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--ze-lime);
  padding-bottom: 1px;
  transition: border-color var(--ze-transition);
}

.ze-coach-article-body a:hover {
  border-color: var(--ze-lavender);
}

.ze-coach-article-body ul,
.ze-coach-article-body ol {
  margin: 0 0 1rem 1.5rem;
}

.ze-coach-article-body li {
  margin-bottom: 0.4rem;
  font-size: 1.02rem;
  line-height: 1.8;
}

.ze-coach-article-body blockquote {
  border-left: 4px solid var(--ze-lavender);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--ze-lavender-pale);
  border-radius: 0 16px 16px 0;
  font-style: italic;
}

.ze-coach-article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  margin: 1.5rem 0;
}

.ze-coach-article-body figure {
  margin: 1.5rem 0;
}

.ze-coach-article-body figcaption {
  font-size: 0.82rem;
  color: var(--ze-navy-muted);
  text-align: center;
  margin-top: 0.5rem;
}

/* ── Encadré highlight ─────────────────────────────────────────────────────── */

.ze-coach-article-highlight {
  background: var(--ze-lime-bg);
  border-left: 4px solid var(--ze-lime);
  border-radius: 0 16px 16px 0;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  font-size: 0.95rem;
  line-height: 1.7;
}

.ze-coach-article-highlight strong {
  color: var(--ze-navy);
}

/* ── Sommaire ──────────────────────────────────────────────────────────────── */

.ze-coach-toc {
  background: var(--ze-offwhite);
  border: 2px solid rgba(27, 27, 58, 0.04);
  border-radius: 20px;
  padding: 2rem;
  margin: 2rem 0;
}

.ze-coach-toc-title {
  font-family: var(--ze-font-display);
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ze-coach-toc-icon {
  font-size: 1.2rem;
}

.ze-coach-toc ol {
  list-style: none;
  counter-reset: toc;
  padding: 0;
  margin: 0;
}

.ze-coach-toc li {
  counter-increment: toc;
  margin-bottom: 0.5rem;
}

.ze-coach-toc li::before {
  content: counter(toc) ".";
  font-family: var(--ze-font-display);
  font-weight: 800;
  color: var(--ze-lime);
  margin-right: 0.5rem;
  font-size: 0.85rem;
}

/* Override .ze-coach-article-body a — pas de border-bottom sur les liens du sommaire */
.ze-coach-toc a {
  font-size: 0.88rem;
  color: var(--ze-navy-muted);
  text-decoration: none;
  font-weight: 500;
  border-bottom: none;
  padding-bottom: 0;
  transition: color var(--ze-transition-fast);
}

.ze-coach-toc a:hover {
  color: var(--ze-navy);
  border-bottom: none;
}

/* ── CTA mid-article ───────────────────────────────────────────────────────── */

.ze-coach-article-cta {
  background: var(--ze-navy);
  border-radius: 24px;
  padding: 2.5rem;
  margin: 3rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.ze-coach-article-cta::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  background: var(--ze-lime);
  border-radius: 50%;
  opacity: 0.1;
  pointer-events: none;
}

.ze-coach-article-cta h3 {
  font-family: var(--ze-font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--ze-white);
  margin-bottom: 0.5rem;
}

.ze-coach-article-cta p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* Override .ze-coach-article-body a — bouton CTA ne doit pas avoir border-bottom lime */
.ze-coach-article-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--ze-lime);
  color: var(--ze-navy);
  padding: 0.8rem 2rem;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  border-bottom: none;
  padding-bottom: 0.8rem;
  transition: all var(--ze-transition);
}

.ze-coach-article-cta__btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--ze-shadow-btn-lime);
  border-bottom: none;
  color: var(--ze-navy);
}

/* ── Encart auteur ─────────────────────────────────────────────────────────── */

.ze-coach-author-box {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: var(--ze-offwhite);
  border: 2px solid rgba(27, 27, 58, 0.04);
  border-radius: 24px;
  padding: 2rem;
  max-width: 720px;
  margin: 2rem auto 0;
}

.ze-coach-author-box__photo {
  flex-shrink: 0;
}

.ze-coach-author-box__photo img,
.ze-coach-author-box__avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 4px 4px 0 var(--ze-lime);
  display: block;
}

.ze-coach-author-box__label {
  font-family: var(--ze-font-hand);
  font-size: 1.1rem;
  color: var(--ze-lavender);
  margin-bottom: 0.2rem;
}

.ze-coach-author-box__name {
  font-family: var(--ze-font-display);
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.ze-coach-author-box__bio {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--ze-navy-muted);
  margin-bottom: 1rem;
}

.ze-coach-author-box__links {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.ze-coach-author-box__social {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ze-white);
  border: 2px solid rgba(27, 27, 58, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 0.85rem;
  transition: all var(--ze-transition-fast);
}

.ze-coach-author-box__social:hover {
  background: var(--ze-lime);
  border-color: var(--ze-lime);
}

.ze-coach-author-box__cta {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ze-navy);
  text-decoration: none;
  border-bottom: 2px solid var(--ze-lime);
  padding-bottom: 1px;
  margin-left: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap var(--ze-transition);
}

.ze-coach-author-box__cta:hover {
  gap: 0.6rem;
  color: var(--ze-navy);
}

/* ── Barre de partage ──────────────────────────────────────────────────────── */

.ze-coach-article-share {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 2rem;
  border-top: 2px solid rgba(27, 27, 58, 0.04);
  max-width: 720px;
  margin: 0 auto;
}

.ze-coach-article-share-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ze-navy-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ze-coach-share-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ze-offwhite);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1rem;
  transition: all var(--ze-transition-fast);
  border: 2px solid rgba(27, 27, 58, 0.04);
  cursor: pointer;
  color: var(--ze-navy);
  font-family: var(--ze-font-body);
}

.ze-coach-share-btn:hover {
  background: var(--ze-lime);
  border-color: var(--ze-lime);
}

/* ── Articles liés ─────────────────────────────────────────────────────────── */

.ze-coach-related {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 2rem 4rem;
}

.ze-coach-related-title {
  font-family: var(--ze-font-display);
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ze-coach-related-hand {
  font-family: var(--ze-font-hand);
  color: var(--ze-lavender);
  font-size: 1.1rem;
  font-weight: 400;
}

.ze-coach-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.ze-coach-related-card {
  border-radius: 20px;
  overflow: hidden;
  border: var(--ze-border-subtle);
  transition: all var(--ze-transition);
  background: var(--ze-white);
  text-decoration: none;
  color: var(--ze-navy);
  display: block;
}

.ze-coach-related-card:hover {
  border-color: var(--ze-lime);
  transform: translateY(-4px);
  box-shadow: 6px 6px 0 var(--ze-lime-pale);
}

.ze-coach-related-thumb {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  overflow: hidden;
}

.ze-coach-related-thumb-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.ze-coach-related-thumb--1 { background: var(--ze-lime-bg); }
.ze-coach-related-thumb--2 { background: var(--ze-lavender-pale); }
.ze-coach-related-thumb--3 { background: var(--ze-warm-pale); }

.ze-coach-related-body {
  padding: 1.2rem;
}

.ze-coach-related-body h4 {
  font-family: var(--ze-font-display);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.4rem;
  color: var(--ze-navy);
}

.ze-coach-related-body p {
  font-size: 0.75rem;
  color: var(--ze-navy-muted);
  line-height: 1.5;
  margin-bottom: 0.6rem;
}

.ze-coach-related-link {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ze-navy);
  border-bottom: 2px solid var(--ze-lime);
  padding-bottom: 1px;
}

/* ── Responsive ────────────────────────────────────────────────────────────── */

@media (max-width: 700px) {
  .ze-coach-article-hero  { padding: 6rem 1.5rem 0; }
  .ze-coach-article-body  { padding: 2rem 1.5rem 3rem; }
  .ze-coach-article-cover { padding: 0 1.5rem; }
  .ze-coach-related       { padding: 2rem 1.5rem 3rem; }
  .ze-coach-related-grid  { grid-template-columns: 1fr; }
  .ze-coach-toc           { padding: 1.5rem; }

  .ze-coach-author-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    margin-left: 1.5rem;
    margin-right: 1.5rem;
    max-width: none;
  }
  .ze-coach-author-box__links { justify-content: center; }

  .ze-coach-article-share {
    padding: 1.5rem;
    margin-left: 1.5rem;
    margin-right: 1.5rem;
    max-width: none;
  }
}
