/* ============================================================
   PRAIMY — Blog styles (premium navy editorial)
   Loaded on top of v4/styles.css for shared tokens.
   ============================================================ */

/* === Blog nav (simplified, links back home) === */
.blog-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 249, 252, 0.92);
  backdrop-filter: saturate(150%) blur(20px);
  -webkit-backdrop-filter: saturate(150%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.blog-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
  height: 78px;
}
.blog-nav-logo img { height: 44px; width: auto; display: block; }
.blog-nav-back {
  font-size: 14px;
  color: var(--ink-soft);
  display: inline-flex; align-items: center; gap: 8px;
  transition: color .15s ease;
}
.blog-nav-back::before { content: "←"; }
.blog-nav-back:hover { color: var(--navy); }
@media (max-width: 640px) {
  .blog-nav-inner { height: 64px; }
  .blog-nav-logo img { height: 34px; }
}

/* === Blog index page === */
.blog-hero {
  position: relative;
  background-size: cover;
  background-position: center 60%;
  border-bottom: 1px solid var(--line);
  text-align: center;
  overflow: hidden;
}
.blog-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,27,59,0.72) 0%, rgba(7,27,59,0.55) 100%);
}
.blog-hero-content {
  position: relative;
  z-index: 1;
  padding: clamp(72px, 9vw, 120px) var(--pad) clamp(56px, 7vw, 96px);
}
.blog-hero .eyebrow {
  margin-bottom: 18px;
  color: var(--blue-light);
}
.blog-hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 5.5vw, 64px);
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: #ffffff;
  margin: 0 auto;
  max-width: 720px;
}
.blog-hero p {
  margin: 22px auto 0;
  max-width: 580px;
  font-size: clamp(15px, 1.3vw, 17px);
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
}


.blog-list-section { padding: clamp(56px, 7vw, 96px) 0; }
.blog-list-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.blog-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
  text-decoration: none;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--blue-light);
}
.blog-card-img {
  width: 100%;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  position: relative;
  overflow: hidden;
}
.blog-card-img::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 30%, rgba(109,184,255,0.25), transparent 65%);
}
.blog-card-img .label {
  position: absolute;
  bottom: 18px; left: 22px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-light);
}
.blog-card-body { padding: 24px 26px 28px; flex-grow: 1; display: flex; flex-direction: column; gap: 12px; }
.blog-card h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 0;
}
.blog-card p {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.55;
  flex-grow: 1;
}
.blog-card-meta {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  font-size: 12px;
  color: var(--ink-mute);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
.blog-card-meta .arrow {
  color: var(--blue-bright);
  transition: transform .25s ease;
  font-size: 14px;
}
.blog-card:hover .blog-card-meta .arrow { transform: translateX(4px); }

@media (max-width: 900px) {
  .blog-list-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .blog-list-grid { grid-template-columns: 1fr; }
}

/* === Article page === */
.article-page {
  background: var(--paper);
}
.article-hero {
  background: linear-gradient(180deg, var(--bg) 0%, var(--paper) 100%);
  padding: clamp(48px, 6vw, 80px) 0 clamp(40px, 5vw, 64px);
  border-bottom: none;
}
.article-cover {
  width: 100%;
  border-bottom: 1px solid var(--line);
}
.article-cover img {
  width: 100%;
  height: auto;
  display: block;
}
.article-hero-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--pad);
  text-align: center;
}
.article-cat {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 18px;
}
.article-hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 5vw, 56px);
  letter-spacing: -0.025em;
  line-height: 1.08;
  color: var(--navy);
  margin: 0;
}
.article-hero .lede {
  margin: 24px auto 0;
  max-width: 620px;
  font-size: clamp(17px, 1.4vw, 19px);
  color: var(--ink-soft);
  line-height: 1.55;
}
.article-meta {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 26px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
  text-transform: uppercase;
}
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-meta .sep { color: var(--ink-faint); }

.article-body-wrap {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 64px;
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(48px, 6vw, 80px) var(--pad);
}
.article-toc {
  position: sticky;
  top: 100px;
  align-self: start;
  font-size: 13.5px;
  line-height: 1.55;
}
.article-toc h4 {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-mute);
  margin: 0 0 14px;
}
.article-toc ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.article-toc a {
  color: var(--ink-soft);
  transition: color .15s ease, border-left-color .15s ease;
  display: block;
  padding: 4px 0 4px 12px;
  border-left: 2px solid var(--line);
  text-decoration: none;
}
.article-toc a:hover { color: var(--navy); border-left-color: var(--blue-light); }

.article-body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  max-width: 720px;
}
.article-body h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 3vw, 32px);
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--navy);
  margin: 48px 0 18px;
}
.article-body h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.015em;
  color: var(--navy);
  margin: 32px 0 12px;
}
.article-body p { margin: 0 0 18px; }
.article-body strong { color: var(--navy); font-weight: 700; }
.article-body em { color: var(--blue-bright); font-style: normal; font-weight: 600; }
.article-body ul, .article-body ol {
  margin: 0 0 22px;
  padding-left: 22px;
}
.article-body li { margin-bottom: 8px; }
.article-body a {
  color: var(--blue-bright);
  text-decoration: underline;
  text-decoration-color: var(--blue-soft);
  text-underline-offset: 3px;
}
.article-body a:hover { color: var(--navy); }

/* Callout box */
.article-callout {
  background: var(--bg-2);
  border-left: 3px solid var(--blue-light);
  border-radius: 0 12px 12px 0;
  padding: 20px 22px;
  margin: 28px 0;
  font-size: 15.5px;
  line-height: 1.6;
}
.article-callout strong { color: var(--navy); }
.article-callout p:last-child { margin-bottom: 0; }

/* Inline CTA banner inside an article */
.article-cta {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: var(--paper);
  border-radius: var(--radius-lg);
  padding: 32px 32px;
  margin: 40px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.article-cta::before {
  content: "";
  position: absolute;
  top: -30%; right: -10%;
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(109,184,255,0.20), transparent 70%);
  pointer-events: none;
}
.article-cta h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.015em;
  color: var(--paper);
  margin: 0 0 8px;
}
.article-cta p {
  color: rgba(255,255,255,0.8);
  font-size: 14.5px;
  margin: 0;
  line-height: 1.55;
}
.article-cta .btn {
  background: var(--blue-light);
  color: var(--navy);
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  text-decoration: none;
  position: relative;
}
.article-cta .btn:hover { background: var(--paper); }
@media (max-width: 700px) {
  .article-cta { grid-template-columns: 1fr; }
}

/* Number table for plafonds */
.article-table-wrap { overflow-x: auto; margin: 18px 0 24px; }
.article-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--paper);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.article-table th, .article-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
}
.article-table thead th {
  background: var(--bg-2);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-mute);
}
.article-table tbody tr:last-child td { border-bottom: 0; }
.article-table td:first-child { font-weight: 600; color: var(--navy); }

/* Article footer / next reads */
.article-end {
  max-width: 720px;
  margin: 64px auto 0;
  padding: 32px 0;
  border-top: 1px solid var(--line);
}
.article-end h3 {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 700;
  margin: 0 0 18px;
}
.article-next-grid {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.article-next-grid::-webkit-scrollbar { display: none; }
.article-next-card {
  flex-shrink: 0;
  width: 220px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 22px;
  text-decoration: none;
  transition: border-color .2s ease, transform .2s ease;
  display: block;
}
.article-next-card:hover {
  border-color: var(--blue-light);
  transform: translateY(-2px);
}
.article-next-card .cat {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-bright);
}
.article-next-card .title {
  display: block;
  margin-top: 6px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--navy);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

@media (max-width: 900px) {
  .article-body-wrap { grid-template-columns: 1fr; gap: 32px; }
  .article-toc { position: static; top: auto; }
  .article-next-grid { padding-bottom: 12px; }
}

/* === Simplified footer === */
.blog-footer {
  background: var(--navy);
  color: var(--paper);
  padding: 40px 0 28px;
}
.blog-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
}
.blog-footer a { color: rgba(255,255,255,0.7); transition: color .15s ease; }
.blog-footer a:hover { color: var(--paper); }
.blog-footer .links { display: flex; gap: 20px; flex-wrap: wrap; }
