/* ============================================================
   JURIDOCS — Blog & Articles
   Complète landing.css (variables partagées)
   ============================================================ */

/* ── Variables (reprises de landing.css) ──────────────────── */
:root {
  --navy:     #090F1C;
  --navy-1:   #0D1829;
  --navy-2:   #122035;
  --navy-3:   #1A3050;
  --gold:     #C9A84C;
  --gold-lt:  #DDB95E;
  --gold-dim: #A8893A;
  --gold-pale:rgba(201,168,76,.1);
  --cream:    #F5F0EA;
  --cream-dk: #ECE6DC;
  --white:    #FFFFFF;
  --dim:      #6E7A88;
  --border:   #DDD6CA;
  --serif:    'Playfair Display', Georgia, serif;
  --sans:     'Inter', system-ui, sans-serif;
}

/* ── Reading progress bar ──────────────────────────────────── */
.reading-progress {
  position: fixed; top: 2px; left: 0; z-index: 1002;
  height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-lt));
  transition: width .1s linear;
}

/* ══════════════════════════════════════════════════════════
   BLOG INDEX
══════════════════════════════════════════════════════════ */
.blog-hero {
  background: var(--navy);
  padding: 9rem 2rem 5rem;
  position: relative; overflow: hidden;
}
.blog-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 20% 50%, rgba(30,48,80,.8) 0%, transparent 65%);
}
.blog-hero-inner {
  max-width: 760px; position: relative; z-index: 1;
}
.blog-hero-overline {
  font-size: .67rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1rem; display: block;
}
.blog-hero-title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700; line-height: 1.1; letter-spacing: -.02em;
  color: var(--white); margin-bottom: 1.2rem;
}
.blog-hero-sub {
  font-size: 1rem; font-weight: 300; color: rgba(255,255,255,.55);
  max-width: 580px; line-height: 1.75;
}

/* Article cards grid */
.blog-grid-section { background: var(--cream); padding: 5rem 2rem; }
.blog-grid-inner { max-width: 1160px; margin: 0 auto; }
.blog-grid-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 2.5rem; border-bottom: 1px solid var(--border); padding-bottom: 1.5rem;
}
.blog-grid-title {
  font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--navy);
}
.blog-count { font-size: .8rem; color: var(--dim); }
.blog-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.article-card {
  background: var(--white); border-radius: 10px;
  border: 1px solid #E0D9CF; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .22s, box-shadow .22s;
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,.1);
}
.article-card-top {
  padding: 1.6rem 1.6rem 0;
}
.article-cat {
  display: inline-block;
  font-size: .65rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 3px; margin-bottom: 1rem;
}
.cat--doc    { background: rgba(13,24,41,.07); color: var(--navy-2); }
.cat--compta { background: rgba(39,174,96,.09); color: #1e7a3e; }
.cat--fiscal { background: rgba(201,100,50,.09); color: #a0431e; }
.cat--proc   { background: var(--gold-pale); color: var(--gold-dim); }
.article-card-title {
  font-family: var(--serif);
  font-size: 1.12rem; font-weight: 600; color: var(--navy);
  line-height: 1.3; margin-bottom: .75rem;
}
.article-card-desc {
  font-size: .83rem; color: #5A6272; line-height: 1.7; margin-bottom: 1.2rem;
}
.article-card-meta {
  font-size: .72rem; color: var(--dim);
  padding: 1rem 1.6rem;
  border-top: 1px solid #F0EBE3;
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto;
}
.article-card-link {
  font-size: .78rem; font-weight: 600; color: var(--gold-dim);
  text-decoration: none; letter-spacing: .03em;
  transition: color .18s;
}
.article-card-link:hover { color: var(--gold); }
.article-card a.article-card-full-link {
  display: block; text-decoration: none; color: inherit;
  padding: 1.6rem 1.6rem 1.4rem;
  flex: 1;
}

/* ══════════════════════════════════════════════════════════
   ARTICLE PAGE — Header
══════════════════════════════════════════════════════════ */
.article-header {
  background: var(--navy);
  padding: 7.5rem 2rem 4rem;
  position: relative; overflow: hidden;
}
.article-header::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 70% at 15% 60%, rgba(30,48,80,.85) 0%, transparent 60%);
}
.article-header-inner {
  max-width: 860px; position: relative; z-index: 1;
}
.article-breadcrumbs {
  display: flex; align-items: center; gap: 6px;
  font-size: .72rem; color: rgba(255,255,255,.4);
  margin-bottom: 1.25rem; flex-wrap: wrap;
}
.article-breadcrumbs a {
  color: rgba(255,255,255,.4); text-decoration: none;
  transition: color .18s;
}
.article-breadcrumbs a:hover { color: var(--gold-lt); }
.bc-sep { color: rgba(255,255,255,.2); }
.article-cat-header {
  display: inline-block;
  font-size: .65rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold-lt); border: 1px solid rgba(201,168,76,.3);
  padding: 3px 10px; border-radius: 3px; margin-bottom: 1.25rem;
}
.article-h1 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 700; line-height: 1.12; letter-spacing: -.02em;
  color: var(--white); margin-bottom: 1.25rem;
}
.article-meta-bar {
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
}
.article-meta-item {
  display: flex; align-items: center; gap: 6px;
  font-size: .78rem; color: rgba(255,255,255,.45);
}
.article-meta-item svg { flex-shrink: 0; }
.article-lead {
  font-size: 1.05rem; font-weight: 300; line-height: 1.8;
  color: rgba(255,255,255,.6);
  max-width: 780px; margin-top: 1.75rem;
  border-left: 2px solid rgba(201,168,76,.4);
  padding-left: 1.25rem;
}

/* ══════════════════════════════════════════════════════════
   ARTICLE PAGE — Layout
══════════════════════════════════════════════════════════ */
.article-layout {
  max-width: 1160px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 300px;
  gap: 4rem; padding: 4rem 2rem 6rem;
  align-items: start;
}

/* ── Main article body ─────────────────────────────────── */
.article-body { min-width: 0; }
.article-body h2 {
  font-family: var(--serif);
  font-size: 1.55rem; font-weight: 700; color: var(--navy);
  margin: 3rem 0 1rem; line-height: 1.2;
  padding-top: .5rem;
  border-top: 2px solid var(--cream-dk);
}
.article-body h3 {
  font-family: var(--serif);
  font-size: 1.15rem; font-weight: 600; color: var(--navy-2);
  margin: 2rem 0 .75rem; line-height: 1.3;
}
.article-body p {
  font-size: .97rem; line-height: 1.88; color: #3A4250;
  margin-bottom: 1.2rem;
}
.article-body ul, .article-body ol {
  margin: 0 0 1.2rem 1.25rem;
}
.article-body li {
  font-size: .97rem; line-height: 1.85; color: #3A4250;
  margin-bottom: .4rem;
}
.article-body strong { color: var(--navy); font-weight: 600; }
.article-body em { font-style: italic; }
.article-body a {
  color: var(--gold-dim); text-decoration: underline;
  text-underline-offset: 2px; transition: color .18s;
}
.article-body a:hover { color: var(--gold); }

/* Boîte mise en avant */
.highlight-box {
  background: rgba(201,168,76,.07); border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0; padding: 1.2rem 1.4rem; margin: 1.75rem 0;
}
.highlight-box p { margin: 0; font-size: .92rem; }
.highlight-box strong { color: var(--navy); }

/* Boîte alerte */
.alert-box {
  background: rgba(220,53,69,.05); border-left: 3px solid rgba(220,53,69,.6);
  border-radius: 0 8px 8px 0; padding: 1.2rem 1.4rem; margin: 1.75rem 0;
}
.alert-box p { margin: 0; font-size: .92rem; color: #5A2530; }

/* Référence légale */
.legal-ref {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--gold-dim); background: var(--gold-pale);
  padding: 3px 9px; border-radius: 3px; text-decoration: none;
}

/* Table de comparaison */
.compare-table {
  width: 100%; border-collapse: collapse;
  margin: 1.75rem 0; font-size: .88rem;
  border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden;
}
.compare-table th {
  background: var(--navy); color: var(--white);
  padding: 12px 16px; text-align: left;
  font-size: .75rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
}
.compare-table td {
  padding: 11px 16px; color: #3A4250; border-bottom: 1px solid var(--border);
  vertical-align: top; line-height: 1.6;
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:nth-child(even) td { background: var(--cream); }
.compare-table td:first-child { font-weight: 600; color: var(--navy); }
.td-gold { color: var(--gold-dim) !important; font-weight: 600 !important; }

/* Section FAQ */
.faq-section {
  margin-top: 4rem; padding-top: 2.5rem;
  border-top: 2px solid var(--cream-dk);
}
.faq-title {
  font-family: var(--serif);
  font-size: 1.55rem; font-weight: 700; color: var(--navy);
  margin-bottom: 1.75rem;
}
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 0; text-align: left;
  font-family: var(--sans); font-size: .95rem; font-weight: 600; color: var(--navy);
  gap: 1rem;
}
.faq-icon {
  flex-shrink: 0; width: 20px; height: 20px;
  border: 1px solid var(--border); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-dim); font-size: .9rem; font-weight: 400;
  transition: transform .22s, background .22s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--gold-pale); }
.faq-a {
  font-size: .9rem; line-height: 1.8; color: #5A6272;
  padding: 0 2rem 1.2rem 0;
  display: none;
}
.faq-item.open .faq-a { display: block; }

/* CTA in-article */
.article-cta-box {
  background: var(--navy);
  border-radius: 12px; padding: 2.5rem;
  margin-top: 3.5rem; text-align: center;
}
.article-cta-box h3 {
  font-family: var(--serif);
  font-size: 1.35rem; font-weight: 700; color: var(--white);
  margin-bottom: .7rem; border: none !important; margin-top: 0 !important;
  padding-top: 0 !important;
}
.article-cta-box p {
  font-size: .88rem; color: rgba(255,255,255,.5);
  margin-bottom: 1.5rem; line-height: 1.65;
}

/* Related articles */
.related-section {
  background: var(--cream-dk);
  padding: 4rem 2rem;
}
.related-inner { max-width: 1160px; margin: 0 auto; }
.related-title {
  font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--navy);
  margin-bottom: 2rem;
}
.related-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.related-card {
  background: var(--white); border-radius: 8px; border: 1px solid #E0D9CF;
  padding: 1.4rem; text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.related-card:hover { transform: translateY(-3px); box-shadow: 0 10px 32px rgba(0,0,0,.08); }
.related-card-cat {
  font-size: .62rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold-dim); margin-bottom: .65rem; display: block;
}
.related-card-title {
  font-family: var(--serif); font-size: .95rem; font-weight: 600; color: var(--navy);
  line-height: 1.3; margin-bottom: .5rem;
}
.related-card-read {
  font-size: .72rem; color: var(--dim); display: flex; align-items: center; gap: 4px;
  margin-top: .7rem;
}

/* ── Sidebar ───────────────────────────────────────────── */
.article-sidebar {
  position: sticky; top: 88px;
}
.toc {
  background: var(--white); border: 1px solid #E0D9CF;
  border-radius: 10px; overflow: hidden; margin-bottom: 1.5rem;
}
.toc-header {
  background: var(--cream-dk); padding: .85rem 1.2rem;
  font-size: .68rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--dim);
  border-bottom: 1px solid #E0D9CF;
}
.toc-list { list-style: none; padding: .75rem 0; }
.toc-item { margin: 0; }
.toc-link {
  display: block; padding: .45rem 1.2rem;
  font-size: .8rem; color: #5A6272; text-decoration: none; line-height: 1.4;
  border-left: 2px solid transparent;
  transition: color .18s, border-color .18s, background .18s;
}
.toc-link:hover { color: var(--navy); background: var(--cream); }
.toc-link.active {
  color: var(--gold-dim); border-left-color: var(--gold);
  background: var(--gold-pale); font-weight: 600;
}

/* Sidebar CTA card */
.sidebar-cta {
  background: linear-gradient(160deg, var(--navy-2) 0%, var(--navy) 100%);
  border-radius: 10px; padding: 1.6rem;
  border: 1px solid rgba(201,168,76,.15);
}
.sidebar-cta-title {
  font-family: var(--serif);
  font-size: 1rem; font-weight: 700; color: var(--white);
  margin-bottom: .65rem; line-height: 1.3;
}
.sidebar-cta-desc {
  font-size: .78rem; color: rgba(255,255,255,.48); line-height: 1.65; margin-bottom: 1.2rem;
}
.sidebar-cta-btn {
  display: block; text-align: center;
  padding: 10px 16px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-lt) 100%);
  color: var(--navy); font-size: .75rem; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase;
  text-decoration: none; border-radius: 5px;
  transition: filter .18s, box-shadow .18s;
}
.sidebar-cta-btn:hover { filter: brightness(1.08); box-shadow: 0 4px 18px rgba(201,168,76,.4); }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */
@media (max-width: 960px) {
  .blog-grid { grid-template-columns: repeat(2,1fr); }
  .related-grid { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: 1fr; gap: 2rem; }
  .article-sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
  .toc, .sidebar-cta { margin-bottom: 0; }
}
@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; }
  .article-sidebar { grid-template-columns: 1fr; }
  .article-header { padding: 7rem 1.5rem 3rem; }
  .article-layout { padding: 2.5rem 1.5rem 4rem; }
  .compare-table { font-size: .78rem; }
  .compare-table th, .compare-table td { padding: 8px 10px; }
}
