/* =============================================================
   CAHIER DU PSYCHOLOGUE — Blog Styles
   ============================================================= */

/* =============================================================
   BLOG HERO
   ============================================================= */
.blog-hero {
  padding: 80px 32px 70px;
  background:
    radial-gradient(ellipse at top right, rgba(200,155,139,0.1), transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(138,154,133,0.08), transparent 50%),
    var(--warm-white);
  text-align: center;
}
.blog-hero-inner { max-width: 800px; margin: 0 auto; }
.blog-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(38px, 5vw, 60px);
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 22px;
  letter-spacing: -0.02em;
}
.blog-hero h1 em { font-style: italic; color: var(--rose-deep); }
.blog-hero p {
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.75;
  max-width: 600px;
  margin: 0 auto;
}

/* =============================================================
   BREADCRUMB
   ============================================================= */
.breadcrumb {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 32px;
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--ink-soft); text-decoration: none; transition: color 0.3s; }
.breadcrumb a:hover { color: var(--rose-deep); }
.breadcrumb span { opacity: 0.5; }
.breadcrumb-current { color: var(--rose-deep); }

/* =============================================================
   BLOG LISTING
   ============================================================= */
.blog-listing {
  padding: 50px 32px 110px;
  background: var(--cream);
}
.blog-listing-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 60px;
  align-items: start;
}

/* Larger article card for listing page */
.blog-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.article-card-horizontal {
  background: var(--warm-white);
  border: 1px solid var(--sand);
  border-radius: 4px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 280px 1fr;
  transition: all 0.4s;
}
.article-card-horizontal:hover {
  box-shadow: 0 16px 40px var(--shadow-deep);
  border-color: var(--rose-dust);
  transform: translateY(-3px);
}
.article-card-horizontal .article-card-image {
  height: auto;
  min-height: 220px;
}
.article-card-horizontal .article-card-body {
  padding: 28px 32px;
}
.article-card-horizontal .article-card-title {
  font-size: 24px;
  margin-bottom: 14px;
}
.article-card-horizontal .article-card-excerpt {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* =============================================================
   BLOG SIDEBAR
   ============================================================= */
.blog-sidebar { position: static; }
/* Sticky désactivé : sur les articles longs, la sidebar collée crée des
   blocages de scroll sur certains navigateurs (notamment mobile / tablette).
   Le confort de lecture prime sur l'optimisation visuelle. */

.sidebar-widget {
  background: var(--warm-white);
  border: 1px solid var(--sand);
  border-radius: 4px;
  padding: 28px 24px;
  margin-bottom: 28px;
}
.sidebar-widget-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--sand);
  position: relative;
}
.sidebar-widget-title::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 32px;
  height: 1px;
  background: var(--rose-deep);
}

/* Category list in sidebar */
.sidebar-categories { list-style: none; }
.sidebar-categories li { border-bottom: 1px solid var(--sand); }
.sidebar-categories li:last-child { border-bottom: none; }
.sidebar-categories a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}
.sidebar-categories a:hover { color: var(--rose-deep); }
.sidebar-category-count {
  font-size: 11px;
  background: var(--cream-deep);
  padding: 2px 8px;
  border-radius: 100px;
  color: var(--ink-soft);
}

/* Featured guide widget */
.sidebar-guide {
  background: linear-gradient(135deg, var(--cream-deep), var(--sand));
  border: 1px solid var(--rose-dust);
  border-radius: 4px;
  padding: 24px;
  text-align: center;
}
.sidebar-guide-label {
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--rose-deep);
  font-weight: 500;
  margin-bottom: 12px;
}
.sidebar-guide-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 500;
  font-style: italic;
  line-height: 1.2;
  margin-bottom: 10px;
}
.sidebar-guide-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 16px;
}
.btn-sidebar {
  display: block;
  background: var(--rose-deep);
  color: var(--warm-white);
  border: none;
  padding: 12px 20px;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  font-family: inherit;
  font-weight: 500;
  transition: all 0.3s;
  text-decoration: none;
  text-align: center;
}
.btn-sidebar:hover { background: var(--ink); }

/* Recent articles list */
.sidebar-recent { list-style: none; }
.sidebar-recent li { border-bottom: 1px solid var(--sand); padding: 14px 0; }
.sidebar-recent li:last-child { border-bottom: none; }
.sidebar-recent a {
  color: var(--ink);
  text-decoration: none;
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.25;
  display: block;
  margin-bottom: 4px;
  transition: color 0.3s;
}
.sidebar-recent a:hover { color: var(--rose-deep); }
.sidebar-recent-meta { font-size: 11px; color: var(--ink-soft); }

/* =============================================================
   ARTICLE PAGE LAYOUT
   ============================================================= */
.article-layout {
  padding: 50px 32px 110px;
}
.article-layout-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 60px;
  align-items: start;
}

/* ---- Article header ---- */
.article-header {
  padding: 70px 32px 60px;
  background:
    radial-gradient(ellipse at top right, rgba(200,155,139,0.1), transparent 50%),
    var(--warm-white);
}
.article-header-inner { max-width: 900px; margin: 0 auto; }

.article-header .article-category-tag {
  margin-bottom: 16px;
  display: inline-block;
}
.article-header h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(34px, 4.5vw, 54px);
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.article-header h1 em { font-style: italic; color: var(--rose-deep); }
.article-lead {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-style: italic;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 720px;
}
.article-header-meta {
  display: flex;
  gap: 24px;
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 0.05em;
  flex-wrap: wrap;
  align-items: center;
}
.article-header-meta span { display: flex; align-items: center; gap: 6px; }

/* ---- Article content typography ---- */
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
.article-content {
  max-width: 760px;
  font-size: 17px;
}
.article-content h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 500;
  line-height: 1.2;
  margin: 48px 0 20px;
  color: var(--ink);
}
.article-content h2 em { font-style: italic; color: var(--rose-deep); }
.article-content h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 500;
  margin: 36px 0 14px;
  color: var(--ink);
}
.article-content p {
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.85;
  margin-bottom: 24px;
}
.article-content ul,
.article-content ol {
  padding-left: 24px;
  margin-bottom: 22px;
}
.article-content li {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: 8px;
}
.article-content ul li::marker { color: var(--rose-deep); }
.article-content strong { color: var(--ink); font-weight: 500; }

.article-content blockquote {
  margin: 36px 0;
  padding: 24px 32px;
  background: var(--cream);
  border-left: 3px solid var(--rose-deep);
  border-radius: 0 4px 4px 0;
}
.article-content blockquote p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-style: italic;
  color: var(--ink);
  line-height: 1.55;
  margin-bottom: 0;
}

.article-content .tip-box {
  background: linear-gradient(135deg, var(--cream-deep), var(--sand));
  border: 1px solid var(--rose-dust);
  border-radius: 4px;
  padding: 24px 28px;
  margin: 32px 0;
}
.article-content .tip-box p {
  margin-bottom: 0;
  font-size: 15px;
}
.tip-label {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--rose-deep);
  font-weight: 500;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Guide CTA inside article */
.article-guide-cta {
  background: var(--ink);
  color: var(--cream);
  border-radius: 4px;
  padding: 32px 36px;
  margin: 48px 0;
  display: flex;
  gap: 24px;
  align-items: center;
}
.article-guide-cta-cover {
  width: 70px;
  height: 95px;
  border-radius: 2px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}
.article-guide-cta-body { flex: 1; }
.article-guide-cta-label {
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--rose-dust);
  margin-bottom: 8px;
}
.article-guide-cta-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 6px;
  line-height: 1.2;
}
.article-guide-cta-desc { font-size: 13px; color: rgba(247,242,236,0.7); line-height: 1.6; }
/* Correctif : la couleur des paragraphes d'article (.article-content p) écrasait celle de l'encart
   sombre → texte brun sur fond noir, illisible. On rétablit des couleurs claires. */
.article-content .article-guide-cta-label { color: var(--rose-dust); }
.article-content .article-guide-cta-title { color: var(--cream); }
.article-content .article-guide-cta-desc  { color: rgba(247,242,236,0.8); }
/* Boutons d'achat : terracotta foncé (contraste 5,8:1) */
.btn-cta-article, .btn-sidebar { background: #8a5547 !important; border-color: #8a5547 !important; }
/* Nom de l'auteur en <p> (respecte la hiérarchie des titres) */
.author-info .author-name { font-family: 'Cormorant Garamond', serif; font-size: 20px; font-weight: 500; margin-bottom: 4px; color: var(--ink); }
.article-guide-cta-action { flex-shrink: 0; }
.btn-cta-article {
  background: var(--rose-deep);
  color: var(--warm-white);
  border: none;
  padding: 13px 22px;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  font-family: inherit;
  font-weight: 500;
  transition: all 0.3s;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
}
.btn-cta-article:hover { background: var(--warm-white); color: var(--ink); }

/* ---- Author bio ---- */
.article-author {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--sand);
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.author-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose-dust), var(--rose-deep));
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  color: var(--warm-white);
  font-style: italic;
}
.author-info h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 4px;
}
.author-role {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rose-deep);
  margin-bottom: 12px;
}
.author-bio { font-size: 14px; color: var(--ink-soft); line-height: 1.7; }

/* ---- Article tags ---- */
.article-tags {
  margin-top: 40px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.article-tags-label { font-size: 12px; color: var(--ink-soft); }
.tag-pill {
  padding: 6px 14px;
  background: var(--cream);
  border: 1px solid var(--sand);
  border-radius: 100px;
  font-size: 12px;
  color: var(--ink-soft);
  text-decoration: none;
  transition: all 0.3s;
}
.tag-pill:hover { border-color: var(--rose-deep); color: var(--rose-deep); }

/* Articles "à venir" — pas de lien actif */
.muted-link {
  color: var(--ink-soft);
  font-style: italic;
  cursor: not-allowed;
  opacity: 0.7;
}
.muted-link:hover { text-decoration: none; color: var(--ink-soft); }

/* ---- Related articles ---- */
.related-articles {
  padding: 80px 32px;
  background: var(--cream);
}
.related-articles-inner { max-width: 1280px; margin: 0 auto; }
.related-articles h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 34px;
  font-weight: 500;
  margin-bottom: 36px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--sand);
}
.related-articles h2 em { font-style: italic; color: var(--rose-deep); }
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* =============================================================
   BLOG RESPONSIVE
   ============================================================= */
@media (max-width: 968px) {
  .blog-listing-inner { grid-template-columns: 1fr; }
  .article-layout-inner { grid-template-columns: 1fr; }
  .blog-sidebar { position: static; }
  .article-card-horizontal { grid-template-columns: 1fr; }
  .article-card-horizontal .article-card-image { min-height: 200px; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .article-guide-cta { flex-direction: column; gap: 16px; }
  .article-guide-cta-action { width: 100%; }
  .btn-cta-article { width: 100%; text-align: center; }
}

@media (max-width: 640px) {
  .blog-hero { padding: 50px 16px 40px; }
  .article-header { padding: 40px 16px; }
  .blog-listing,
  .article-layout,
  .related-articles { padding: 40px 16px 70px; }
  .related-grid { grid-template-columns: 1fr; }
  .breadcrumb { padding: 14px 16px; }
  .article-author { flex-direction: column; }
}
