/* ============================================================
 * Audace — Article (single post) global stylesheet
 * Restyle breadcrumb, sommaire, bio auteur. Masque commentaires.
 * S'applique à TOUS les single posts (540+ articles).
 * ============================================================ */

:root {
  --aa-primary: #11708E;
  --aa-primary-dark: #0c5870;
  --aa-accent: #E44993;
  --aa-ink: #181a1f;
  --aa-ink-soft: #4a4f5a;
  --aa-ink-muted: #8a8f99;
  --aa-paper: #ffffff;
  --aa-bg: #f7f5f1;
  --aa-rule: #e6e2da;
}

body.single-post {
  background: var(--aa-bg);
  font-family: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body.single-post .site-main {
  max-width: 880px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

body.single-post .entry-content > * {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
 * FIL D'ARIANE
 * ============================================================ */

.audace-breadcrumb {
  max-width: 760px;
  margin: 0 auto 2rem !important;
  padding: 0.85rem 1.2rem;
  background: var(--aa-paper);
  border: 1px solid var(--aa-rule);
  border-radius: 6px;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--aa-ink-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.audace-breadcrumb::before {
  content: '⌂';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, var(--aa-primary) 0%, var(--aa-accent) 100%);
  border-radius: 50%;
  color: #fff;
  font-size: 0.7rem;
  margin-right: 0.3rem;
  flex-shrink: 0;
}

.audace-breadcrumb a {
  color: var(--aa-ink-soft);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.audace-breadcrumb a:hover {
  color: var(--aa-primary);
}

.audace-breadcrumb .sep {
  color: var(--aa-rule);
  font-weight: 400;
}

.audace-breadcrumb > span:last-child {
  color: var(--aa-ink);
  font-weight: 600;
}

/* ============================================================
 * TITRE PRINCIPAL
 * ============================================================ */

body.single-post .entry-title,
body.single-post h1.entry-title {
  font-family: 'Playfair Display', 'Georgia', serif !important;
  font-size: clamp(2rem, 4vw, 3rem) !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.015em !important;
  color: var(--aa-ink) !important;
  margin: 0 auto 1.5rem !important;
  max-width: 760px !important;
}

body.single-post .entry-header {
  max-width: 760px;
  margin: 0 auto 2.5rem;
}

/* Meta date sous le titre */
body.single-post .entry-meta {
  max-width: 760px;
  margin: 0 auto 2rem;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--aa-ink-muted);
  border-bottom: 1px solid var(--aa-rule);
  padding-bottom: 1rem;
}

/* ============================================================
 * SOMMAIRE
 * ============================================================ */

.toc {
  max-width: 760px;
  margin: 2.5rem auto !important;
  padding: 1.75rem 2rem;
  background: var(--aa-paper);
  border: 1px solid var(--aa-rule);
  border-left: 4px solid var(--aa-accent);
  border-radius: 6px;
}

.toc__title {
  font-family: 'Playfair Display', 'Georgia', serif !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  color: var(--aa-accent) !important;
  margin: 0 0 1rem !important;
}

.toc ol,
.toc ul {
  margin: 0 !important;
  padding-left: 0 !important;
  list-style: none !important;
  counter-reset: toc-counter;
}

.toc li {
  counter-increment: toc-counter;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--aa-rule);
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--aa-ink);
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
}

.toc li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.toc li:first-child {
  padding-top: 0;
}

.toc li::before {
  content: counter(toc-counter, decimal-leading-zero);
  font-family: 'Playfair Display', 'Georgia', serif;
  color: var(--aa-accent);
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
  min-width: 1.8rem;
}

.toc a {
  color: var(--aa-ink);
  text-decoration: none;
  transition: color 0.2s ease;
}

.toc a:hover {
  color: var(--aa-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Ancrage des sections (pour ne pas cacher le titre sous le header) */
body.single-post h2[id],
body.single-post h3[id] {
  scroll-margin-top: 90px;
}

/* ============================================================
 * CONTENU ÉDITORIAL
 * ============================================================ */

body.single-post .entry-content {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--aa-ink-soft);
}

body.single-post .entry-content p {
  margin: 0 0 1.25rem;
}

body.single-post .entry-content h2 {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: clamp(1.5rem, 2.5vw, 1.9rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--aa-ink);
  margin: 3rem 0 1.25rem;
  padding-bottom: 0.7rem;
  border-bottom: 2px solid var(--aa-accent);
}

body.single-post .entry-content h3 {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--aa-ink);
  margin: 2rem 0 0.9rem;
}

body.single-post .entry-content h4 {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--aa-ink);
  margin: 1.5rem 0 0.7rem;
}

body.single-post .entry-content strong {
  color: var(--aa-ink);
  font-weight: 600;
}

body.single-post .entry-content a {
  color: var(--aa-primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

body.single-post .entry-content a:hover {
  color: var(--aa-primary-dark);
}

body.single-post .entry-content ul,
body.single-post .entry-content ol {
  margin: 0 0 1.5rem;
  padding-left: 1.5rem;
}

body.single-post .entry-content li {
  margin: 0.5rem 0;
}

body.single-post .entry-content li::marker {
  color: var(--aa-accent);
}

body.single-post .entry-content blockquote {
  border-left: 4px solid var(--aa-accent);
  background: var(--aa-paper);
  border-radius: 0 6px 6px 0;
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--aa-ink);
  line-height: 1.5;
}

body.single-post .entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
  background: var(--aa-paper);
  border: 1px solid var(--aa-rule);
  border-radius: 6px;
  overflow: hidden;
}

body.single-post .entry-content table th {
  background: var(--aa-primary);
  color: #fff;
  font-weight: 600;
  padding: 0.85rem 1rem;
  text-align: left;
  font-family: 'Inter', sans-serif;
}

body.single-post .entry-content table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--aa-rule);
  vertical-align: top;
}

body.single-post .entry-content table tr:last-child td {
  border-bottom: none;
}

body.single-post .entry-content table tr:nth-child(even) td {
  background: var(--aa-bg);
}

body.single-post .entry-content code {
  font-family: 'Courier New', monospace;
  font-size: 0.92em;
  background: var(--aa-bg);
  border: 1px solid var(--aa-rule);
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  color: var(--aa-ink);
}

/* ============================================================
 * BIO AUTEUR
 * ============================================================ */

.author-bio {
  display: block !important;
  max-width: 760px;
  margin: 4rem auto 1.5rem !important;
  padding: 2.25rem 2rem !important;
  background: var(--aa-paper) !important;
  border: 1px solid var(--aa-rule) !important;
  border-radius: 8px;
  position: relative;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--aa-ink-soft);
  display: grid !important;
  grid-template-columns: 110px 1fr;
  gap: 1.75rem;
  align-items: start;
}

.author-bio::before {
  content: '';
  display: block;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(228,73,147,0.55) 0%, transparent 55%),
    radial-gradient(ellipse at 70% 80%, rgba(17,112,142,0.55) 0%, transparent 55%),
    linear-gradient(135deg, #0a3744 0%, #11708E 50%, #1a2730 100%);
  position: relative;
  flex-shrink: 0;
}

.author-bio::after {
  content: 'AS';
  position: absolute;
  top: 2.25rem;
  left: 2rem;
  width: 110px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: rgba(255,255,255,0.95);
  letter-spacing: -0.04em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
  pointer-events: none;
}

.author-bio br {
  display: none;
}

/* Pseudo-eyebrow inséré via mu-plugin (voir audace-article.php) */
.author-bio .audace-author-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--aa-accent);
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.author-bio .audace-author-name {
  display: block;
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--aa-ink);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.6rem;
}

.author-bio .audace-author-credential {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--aa-bg);
  border: 1px solid var(--aa-rule);
  border-left: 3px solid var(--aa-accent);
  border-radius: 4px;
  padding: 0.45rem 0.85rem;
  margin: 0.85rem 0 0;
  font-size: 0.82rem;
  color: var(--aa-ink);
  text-decoration: none;
  font-weight: 600;
}

.author-bio .audace-author-credential::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  background: var(--aa-accent);
  border-radius: 50%;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
}

.author-bio a {
  color: var(--aa-primary);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.author-bio a:hover {
  color: var(--aa-primary-dark);
}

@media (max-width: 600px) {
  .author-bio {
    grid-template-columns: 1fr !important;
    padding: 2rem 1.5rem !important;
    text-align: center;
  }
  .author-bio::before {
    margin: 0 auto;
  }
  .author-bio::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

/* ============================================================
 * COMMENTAIRES — Masqués partout
 * ============================================================ */

#comments,
#respond,
.comments-area,
.comment-respond,
.comment-form,
.comment-reply-title,
.comment-list,
.comment-navigation,
.no-comments {
  display: none !important;
}

/* ============================================================
 * IMAGES / FIGURES
 * ============================================================ */

body.single-post .entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 1.5rem 0;
}

body.single-post .entry-content figure {
  margin: 2rem auto;
}

body.single-post .entry-content figcaption {
  font-size: 0.85rem;
  color: var(--aa-ink-muted);
  text-align: center;
  margin-top: 0.5rem;
  font-style: italic;
}

/* ============================================================
 * RESPONSIVE
 * ============================================================ */

@media (max-width: 768px) {
  body.single-post .site-main {
    padding: 1.5rem 1rem 3rem;
  }
  .audace-breadcrumb {
    padding: 0.7rem 0.9rem;
    font-size: 0.78rem;
  }
  .toc {
    padding: 1.4rem 1.5rem;
  }
  body.single-post .entry-content {
    font-size: 1rem;
  }
}
