/* ============================================================
   VALEXIS — blog.css
   Hub Journal (liste) + page article. Niveau premium.
   ============================================================ */

.eyebrow {
  font-family: var(--font-display); font-weight: 500; font-size: var(--text-xs);
  text-transform: uppercase; letter-spacing: var(--tracking-wider);
  color: var(--gold-700); margin: 0 0 var(--space-4);
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; letter-spacing: var(--tracking-tight); margin: 0; color: var(--navy-900); }

/* ---------- HUB JOURNAL ---------- */
.journal-hero { padding: var(--space-16) 0 var(--space-12); }
.journal-hero .eyebrow {
  display: inline-flex; padding: 7px 15px; border-radius: 999px; margin-bottom: var(--space-6);
  background: rgba(184,146,75,0.08); border: 1px solid rgba(184,146,75,0.28); color: var(--gold-700);
}
.journal-hero h1 { font-size: clamp(2.1rem, 5vw, var(--text-4xl)); line-height: var(--leading-tight); max-width: 18ch; }
.journal-hero p { color: var(--fg2); font-size: var(--text-md); line-height: var(--leading-loose); max-width: 60ch; margin: var(--space-6) 0 0; }

.journal-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-8); padding-bottom: var(--space-8); }
@media (min-width: 640px) { .journal-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .journal-grid { grid-template-columns: repeat(3, 1fr); } }

.post-card {
  display: flex; flex-direction: column;
  background: var(--paper); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm), var(--shadow-inset-line); overflow: hidden;
  transition: transform var(--dur-base) var(--ease-elegant), box-shadow var(--dur-base) var(--ease-elegant);
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md), inset 0 0 0 1px rgba(184,146,75,.32); }

/* Couverture de marque (sans image) : carte + article */
.post-card-cover, .article-cover {
  position: relative; overflow: hidden;
  background: linear-gradient(150deg, var(--navy-900) 0%, var(--navy-700) 100%);
  display: flex; flex-direction: column; justify-content: space-between;
}
.post-card-cover { aspect-ratio: 16/10; padding: var(--space-5); }
.post-card-cover::before, .article-cover::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(184,146,75,.16) 1px, transparent 1px);
  background-size: 22px 22px; opacity: .7;
}
.post-card-cover::after, .article-cover::after {
  content: ""; position: absolute; top: 0; left: var(--space-6);
  width: 32px; height: 2px; background: var(--gold-500);
}
.cover-cat {
  position: relative; z-index: 1; align-self: flex-start;
  font-family: var(--font-display); font-weight: 500; font-size: var(--text-2xs);
  text-transform: uppercase; letter-spacing: var(--tracking-wide);
  color: var(--gold-300); padding: 5px 12px;
  border: 1px solid rgba(184,146,75,.4); border-radius: 999px;
}
.cover-mark {
  position: relative; z-index: 1; align-self: flex-end;
  font-family: var(--font-display); font-weight: 600;
  letter-spacing: 0.14em; color: rgba(240,240,240,.08);
  font-size: clamp(1.6rem, 6vw, 2.4rem); line-height: 1;
}

.post-card-body { padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); flex-grow: 1; }
.post-card-meta { font-family: var(--font-display); font-size: var(--text-xs); color: var(--gold-700); letter-spacing: var(--tracking-wide); text-transform: uppercase; }
.post-card h2 { font-size: var(--text-md); line-height: var(--leading-snug); }
.post-card h2 a:hover { color: var(--accent); }
.post-card p { color: var(--fg2); font-size: var(--text-sm); line-height: var(--leading-loose); margin: 0; flex-grow: 1; }
.post-card-read {
  color: var(--accent); font-family: var(--font-display); font-weight: 500;
  font-size: var(--text-sm); margin-top: var(--space-2);
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap var(--dur-base) var(--ease-elegant);
}
.post-card:hover .post-card-read { gap: 11px; }

/* ---------- PAGE ARTICLE ---------- */
.article-wrap { max-width: 720px; margin: 0 auto; padding: var(--space-4) 0 var(--space-20); }
.article-head { padding: var(--space-8) 0; }
.article-head .eyebrow { color: var(--gold-700); }
.article-head h1 { font-size: clamp(1.95rem, 4.5vw, var(--text-3xl)); line-height: var(--leading-tight); margin: var(--space-3) 0; }
.article-meta { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; font-size: var(--text-sm); color: var(--fg3); }
.article-meta .sep { color: var(--gold-500); }
.article-cover { aspect-ratio: 16/9; border-radius: var(--radius-2xl); margin: var(--space-6) 0 var(--space-12); padding: var(--space-8); box-shadow: var(--shadow-lg); }
.article-cover .cover-mark { font-size: clamp(2.4rem, 8vw, 4rem); }

.article-body { font-size: var(--text-md); line-height: var(--leading-loose); color: var(--fg1); }
.article-body > * + * { margin-top: var(--space-6); }
.article-body h2 { font-size: var(--text-xl); margin-top: var(--space-12); }
.article-body h3 { font-size: var(--text-lg); margin-top: var(--space-8); }
.article-body p { color: var(--fg1); }
.article-body ul, .article-body ol { padding-left: 1.3em; color: var(--fg1); }
.article-body li + li { margin-top: 8px; }
.article-body strong { font-weight: 600; color: var(--navy-900); }
.article-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.article-lead { font-size: var(--text-lg); line-height: var(--leading-loose); color: var(--fg2); }

.article-note {
  background: var(--bg-alt); border-radius: var(--radius-lg);
  border-left: 3px solid var(--gold-500); padding: var(--space-6);
  font-size: var(--text-sm); line-height: var(--leading-loose); color: var(--fg2);
}

/* Sommaire */
.article-toc {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: var(--space-6); font-size: var(--text-sm);
}
.article-toc strong { font-family: var(--font-display); display: block; margin-bottom: var(--space-3); color: var(--navy-900); }
.article-toc ol { margin: 0; padding-left: 1.2em; }
.article-toc li + li { margin-top: 6px; }
.article-toc a { color: var(--fg2); }
.article-toc a:hover { color: var(--accent); }

/* ---------- FAQ PREMIUM (compteur CSS, sans modifier le HTML) ---------- */
.article-faq { counter-reset: faq; margin-top: var(--space-12); }
.article-faq > h2 { font-size: var(--text-xl); margin-bottom: var(--space-4); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-of-type { border-top: 1px solid var(--line); }
.faq-item summary {
  counter-increment: faq;
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: 44px 1fr 40px; align-items: center; gap: var(--space-4);
  padding: var(--space-6) 0;
  font-family: var(--font-display); font-weight: 500; font-size: var(--text-md);
  color: var(--navy-900);
  transition: color var(--dur-base) var(--ease-elegant);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-item summary::before {
  content: counter(faq, decimal-leading-zero);
  font-family: var(--font-display); font-weight: 400; font-size: var(--text-xs);
  color: var(--fg3); letter-spacing: var(--tracking-wider);
}
.faq-item summary::after {
  content: "+"; justify-self: end;
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong); border-radius: 999px;
  font-family: var(--font-display); font-weight: 400; font-size: 18px;
  color: var(--navy-900);
  transition: all var(--dur-base) var(--ease-elegant);
}
.faq-item summary:hover::after { border-color: var(--navy-900); }
.faq-item[open] summary::after {
  transform: rotate(45deg);
  background: var(--gold-500); border-color: var(--gold-500); color: var(--navy-900);
}
.faq-item .faq-a {
  padding: 0 0 var(--space-8) calc(44px + var(--space-4));
  color: var(--fg2); font-size: var(--text-sm); line-height: var(--leading-loose);
}
@media (max-width: 600px) {
  .faq-item summary { grid-template-columns: 32px 1fr 36px; font-size: var(--text-sm); }
  .faq-item summary::after { width: 34px; height: 34px; }
  .faq-item .faq-a { padding-left: calc(32px + var(--space-4)); }
}

/* Bloc CTA fin d'article */
.article-cta {
  position: relative; overflow: hidden;
  margin-top: var(--space-16); background: var(--navy-900); color: var(--silver);
  border-radius: var(--radius-2xl); padding: var(--space-12) var(--space-8); text-align: center;
}
.article-cta::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(184,146,75,0.10) 1px, transparent 1px);
  background-size: 24px 24px; opacity: .6;
}
.article-cta > * { position: relative; z-index: 1; }
.article-cta h2 { color: var(--silver); font-size: var(--text-xl); }
.article-cta p { color: var(--fg-inv2); font-size: var(--text-sm); line-height: var(--leading-loose); margin: var(--space-3) auto var(--space-6); max-width: 44ch; }

/* Articles liés */
.article-related { margin-top: var(--space-16); }
.article-related h2 { font-size: var(--text-lg); margin-bottom: var(--space-5); }
.article-related ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.article-related a {
  display: block; padding: var(--space-5) var(--space-6);
  background: var(--paper); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-inset-line);
  font-family: var(--font-display); font-weight: 500; color: var(--navy-900);
  transition: all var(--dur-base) var(--ease-elegant);
}
.article-related a:hover { box-shadow: var(--shadow-md), inset 0 0 0 1px rgba(184,146,75,.32); transform: translateY(-2px); color: var(--accent); }
