/* ============================================================
   PISCINE OCCITANIE — Styles Blog
   ============================================================ */

/* ── Hero Blog ── */
.blog-hero {
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 100%);
  color: white; padding: 52px 0 44px;
}
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: .8rem; color: rgba(255,255,255,.6); margin-bottom: 16px;
}
.breadcrumb a { color: rgba(255,255,255,.7); text-decoration: none; }
.breadcrumb a:hover { color: white; }
.blog-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 900; margin-bottom: 10px; }
.blog-hero p  { font-size: 1.02rem; color: rgba(255,255,255,.8); margin-bottom: 28px; max-width: 560px; }

.blog-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-btn {
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.85); padding: 6px 16px; border-radius: 20px;
  font-size: .82rem; font-weight: 600; cursor: pointer; font-family: inherit;
  transition: all .2s;
}
.cat-btn:hover  { background: rgba(255,255,255,.2); color: white; }
.cat-btn.active { background: var(--gold); color: var(--gray-900); border-color: var(--gold); }

/* ── Layout Blog ── */
.blog-main { padding: 60px 0; background: var(--gray-50); }
.blog-layout { display: grid; grid-template-columns: 1fr 300px; gap: 36px; align-items: start; }

/* ── Grille articles ── */
.articles-grid { display: flex; flex-direction: column; gap: 24px; }

.article-card {
  display: flex; background: white; border-radius: var(--r-lg);
  border: 1px solid var(--gray-200); overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.ac-img-link { display: block; flex-shrink: 0; width: 220px; }
.ac-img {
  width: 100%; height: 100%; min-height: 160px;
  display: flex; align-items: center; justify-content: center;
}
.ac-img-icon { font-size: 3.5rem; }

.ac-body { padding: 22px 24px; flex: 1; display: flex; flex-direction: column; }
.ac-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.ac-cat {
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  padding: 3px 10px; border-radius: 20px;
}
.ac-cat.prix        { background: #eff6ff; color: var(--blue-700); }
.ac-cat.construction{ background: #f0fdf4; color: #065f46; }
.ac-cat.renovation  { background: #fffbeb; color: var(--gold-dark); }
.ac-cat.entretien   { background: #f0fdfa; color: #0f766e; }
.ac-cat.juridique   { background: #faf5ff; color: #7c3aed; }

.ac-date, .ac-read { font-size: .76rem; color: var(--gray-400); }
.ac-body h2 { font-size: 1.1rem; font-weight: 800; color: var(--gray-900); margin-bottom: 8px; line-height: 1.35; }
.ac-body h2 a { text-decoration: none; color: inherit; transition: color .2s; }
.ac-body h2 a:hover { color: var(--blue-500); }
.ac-body p { font-size: .87rem; color: var(--gray-500); line-height: 1.65; margin-bottom: 14px; flex: 1; }
.ac-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .85rem; font-weight: 700; color: var(--blue-500);
  text-decoration: none; transition: gap .2s;
}
.ac-link:hover { gap: 8px; }
.ac-coming {
  display: inline-block; font-size: .78rem; font-weight: 600;
  color: var(--gray-400); background: var(--gray-100);
  padding: 4px 12px; border-radius: 20px;
}

/* ── Sidebar Blog ── */
.blog-sidebar { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 20px; }

.sidebar-cta {
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  border-radius: var(--r-lg); padding: 24px; color: white; text-align: center;
}
.sc-icon  { font-size: 2.5rem; margin-bottom: 10px; }
.sidebar-cta h3 { font-size: 1rem; font-weight: 800; margin-bottom: 8px; }
.sidebar-cta p  { font-size: .83rem; opacity: .85; line-height: 1.55; margin-bottom: 16px; }
.btn-sidebar-cta {
  display: block; background: var(--gold); color: var(--gray-900);
  padding: 12px; border-radius: var(--r); font-weight: 800; font-size: .9rem;
  text-decoration: none; transition: background .2s; margin-bottom: 10px;
}
.btn-sidebar-cta:hover { background: #fbbf24; }
.sc-trust { font-size: .75rem; opacity: .7; }

.sidebar-block {
  background: white; border: 1px solid var(--gray-200);
  border-radius: var(--r-lg); padding: 20px;
}
.sidebar-block h4 { font-size: .85rem; font-weight: 800; color: var(--gray-900); margin-bottom: 14px; text-transform: uppercase; letter-spacing: .05em; }

.sb-cats { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.sb-cats a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 10px; border-radius: 8px; text-decoration: none;
  font-size: .86rem; color: var(--gray-600); transition: all .2s;
}
.sb-cats a:hover { background: var(--blue-50); color: var(--blue-600); }
.sb-cats span { background: var(--gray-100); color: var(--gray-500); font-size: .72rem; font-weight: 700; padding: 2px 7px; border-radius: 10px; }

.sb-deps { display: flex; flex-direction: column; gap: 4px; }
.sb-deps a { font-size: .85rem; color: var(--gray-600); text-decoration: none; padding: 5px 0; border-bottom: 1px solid var(--gray-100); transition: color .2s; }
.sb-deps a:hover { color: var(--blue-500); }

/* ── Page Article ── */
.article-hero {
  background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
  color: white; padding: 52px 0 44px;
}
.article-hero .breadcrumb { margin-bottom: 20px; }
.article-hero h1 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 900; line-height: 1.2; margin-bottom: 16px; max-width: 760px; }
.article-meta-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: .82rem; color: rgba(255,255,255,.7); }
.am-cat { background: var(--gold); color: var(--gray-900); padding: 3px 12px; border-radius: 20px; font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.am-sep { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.3); }

.article-main { padding: 60px 0; background: var(--gray-50); }
.article-layout { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: start; }

/* Contenu article */
.article-content {
  background: white; border-radius: var(--r-xl);
  box-shadow: var(--shadow-md); padding: 44px 48px;
}
.article-content h2 { font-size: 1.4rem; font-weight: 800; color: var(--gray-900); margin: 36px 0 14px; padding-top: 8px; border-top: 2px solid var(--gray-100); }
.article-content h2:first-child { margin-top: 0; border-top: none; }
.article-content h3 { font-size: 1.1rem; font-weight: 700; color: var(--gray-800); margin: 24px 0 10px; }
.article-content p { font-size: .95rem; color: var(--gray-700); line-height: 1.85; margin-bottom: 16px; }
.article-content ul, .article-content ol { margin: 0 0 16px 20px; }
.article-content li { font-size: .93rem; color: var(--gray-700); line-height: 1.75; margin-bottom: 4px; }
.article-content strong { color: var(--gray-900); }
.article-content a { color: var(--blue-500); }

/* Tableau de prix */
.price-table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: .88rem; }
.price-table th { background: var(--blue-700); color: white; padding: 10px 14px; text-align: left; font-weight: 700; }
.price-table td { padding: 10px 14px; border-bottom: 1px solid var(--gray-200); color: var(--gray-700); }
.price-table tr:nth-child(even) td { background: var(--gray-50); }
.price-table tr:last-child td { border-bottom: none; }
.price-bold { font-weight: 700; color: var(--blue-700); }

/* CTA interne article */
.article-cta {
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  border-radius: var(--r-lg); padding: 28px; color: white; text-align: center;
  margin: 36px 0;
}
.article-cta h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 8px; }
.article-cta p  { font-size: .88rem; opacity: .85; margin-bottom: 16px; }
.btn-article-cta {
  display: inline-block; background: var(--gold); color: var(--gray-900);
  padding: 13px 28px; border-radius: var(--r); font-weight: 800; font-size: .95rem;
  text-decoration: none; transition: background .2s;
}
.btn-article-cta:hover { background: #fbbf24; }
.article-cta-trust { font-size: .78rem; opacity: .7; margin-top: 10px; }

/* Encadré info */
.info-box {
  background: var(--blue-50); border-left: 4px solid var(--blue-500);
  border-radius: 0 var(--r) var(--r) 0; padding: 16px 20px; margin: 20px 0;
}
.info-box p { margin: 0; font-size: .88rem; color: var(--blue-900); }

/* Encadré warning */
.warn-box {
  background: #fffbeb; border-left: 4px solid var(--gold);
  border-radius: 0 var(--r) var(--r) 0; padding: 16px 20px; margin: 20px 0;
}
.warn-box p { margin: 0; font-size: .88rem; color: var(--gold-dark); }

/* Article sidebar (sticky) */
.article-sidebar { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 20px; }

/* Sommaire */
.toc-block {
  background: white; border: 1px solid var(--gray-200);
  border-radius: var(--r-lg); padding: 20px;
}
.toc-block h4 { font-size: .82rem; font-weight: 800; color: var(--gray-900); margin-bottom: 12px; text-transform: uppercase; letter-spacing: .05em; }
.toc-list { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.toc-list a {
  display: block; padding: 6px 10px; border-radius: 8px;
  font-size: .83rem; color: var(--gray-600); text-decoration: none; transition: all .2s;
}
.toc-list a:hover { background: var(--blue-50); color: var(--blue-600); }

/* Author */
.author-block {
  background: white; border: 1px solid var(--gray-200);
  border-radius: var(--r-lg); padding: 20px;
}
.author-inner { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.author-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--blue-500); color: white; font-weight: 800; font-size: .9rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.author-name { font-weight: 700; font-size: .9rem; color: var(--gray-900); }
.author-role { font-size: .75rem; color: var(--gray-500); }
.author-block p { font-size: .8rem; color: var(--gray-500); line-height: 1.6; margin: 0; }

/* Related articles */
.related-section { padding: 60px 0; background: white; border-top: 1px solid var(--gray-100); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.related-card {
  border: 1px solid var(--gray-200); border-radius: var(--r-lg); overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.related-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.rc-img { height: 120px; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; }
.rc-body { padding: 16px; }
.rc-body h3 { font-size: .9rem; font-weight: 700; color: var(--gray-900); margin-bottom: 6px; line-height: 1.35; }
.rc-body h3 a { text-decoration: none; color: inherit; }
.rc-body h3 a:hover { color: var(--blue-500); }
.rc-body p { font-size: .78rem; color: var(--gray-500); line-height: 1.5; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .blog-layout    { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .blog-sidebar   { position: static; }
  .article-sidebar{ position: static; }
  .related-grid   { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .article-card   { flex-direction: column; }
  .ac-img-link    { width: 100%; }
  .ac-img         { min-height: 120px; }
  .article-content{ padding: 24px 18px; }
  .related-grid   { grid-template-columns: 1fr; }
}
