/* ============================================================
   DynaPM Conseil — Article stylesheet
   Shared by all article pages
============================================================ */
:root {
  --primary: #1B5E7A;
  --primary-dark: #0F3D52;
  --primary-light: #2C7A99;
  --accent: #C9A961;
  --accent-dark: #B8924C;
  --bg: #F8F9FA;
  --bg-soft: #F0F4F7;
  --bg-tint: #E8EEF2;
  --card: #FFFFFF;
  --text: #1A2332;
  --text-muted: #5A6573;
  --slate-light: #94a3b8;
  --border: #E5E9EE;
  --shadow: 0 10px 30px rgba(15, 61, 82, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 61, 82, 0.15);
  --radius: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--card);
  -webkit-font-smoothing: antialiased;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* ============== NAVBAR ============== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: all .3s ease;
}
.nav.scrolled { border-bottom-color: var(--border); box-shadow: 0 2px 12px rgba(15,61,82,.05); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo svg { height: 38px; width: auto; display: block; }
.logo-sub { font-size: 9px; letter-spacing: 3.5px; text-transform: uppercase; color: var(--text-muted); font-weight: 600; margin-top: 2px; }
.logo-stack { display: flex; flex-direction: column; line-height: 1; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  text-decoration: none; color: var(--text-muted); font-weight: 500; font-size: 15px;
  transition: color .2s; position: relative;
}
.nav-links a:hover { color: var(--primary-dark); }
.nav-cta {
  background: var(--primary-dark); color: white !important; padding: 10px 20px;
  border-radius: 8px; font-weight: 500; transition: all .2s;
}
.nav-cta:hover { background: var(--primary); }
.lang-toggle {
  display: flex; align-items: center; gap: 4px; background: var(--bg-soft);
  border: 1px solid var(--border); border-radius: 8px; padding: 4px; margin-left: 8px;
}
.lang-toggle button {
  border: none; background: transparent; padding: 6px 10px; border-radius: 6px;
  font-weight: 600; font-size: 12px; color: var(--text-muted); cursor: pointer;
  transition: all .2s; font-family: inherit;
}
.lang-toggle button.active { background: var(--primary-dark); color: white; }

/* ============== ARTICLE HERO ============== */
.article-hero {
  padding: 140px 0 60px;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(27,94,122,0.08) 0%, transparent 55%),
    radial-gradient(ellipse at 10% 80%, rgba(201,169,97,0.06) 0%, transparent 55%),
    linear-gradient(180deg, #ffffff 0%, var(--bg-soft) 100%);
}
.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text-muted); text-decoration: none; font-size: 14px;
  font-weight: 500; margin-bottom: 28px; transition: gap .2s, color .2s;
}
.back-link:hover { color: var(--primary-dark); gap: 12px; }
.back-link svg { width: 14px; height: 14px; transform: rotate(180deg); }
.article-meta {
  display: flex; align-items: center; gap: 16px; margin-bottom: 22px;
  font-size: 13px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 1.5px; font-weight: 600;
  flex-wrap: wrap;
}
.article-meta .cat { color: var(--accent-dark); }
.article-meta .dot { color: var(--border); }
.article-hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(34px, 4.5vw, 54px);
  line-height: 1.15; font-weight: 600;
  color: var(--primary-dark); letter-spacing: -1px;
  margin-bottom: 22px;
}
.article-subtitle {
  font-size: clamp(17px, 1.4vw, 21px); color: var(--text-muted);
  line-height: 1.55; max-width: 720px; margin-bottom: 34px;
}
.article-author {
  display: flex; align-items: center; gap: 14px;
  padding-top: 26px; border-top: 1px solid var(--border);
}
.article-author-img {
  width: 48px; height: 48px; border-radius: 50%; overflow: hidden;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  display: grid; place-items: center; color: white; font-weight: 600; font-size: 16px;
  flex-shrink: 0;
}
.article-author-img img { width: 100%; height: 100%; object-fit: cover; }
.article-author-info { font-size: 14px; }
.article-author-info strong { display: block; color: var(--text); font-weight: 700; }
.article-author-info span { color: var(--text-muted); font-size: 13px; }

/* ============== ARTICLE BODY ============== */
.article-body {
  padding: 60px 0 80px;
}
.article-body p,
.article-body ul,
.article-body ol {
  font-size: 17px; line-height: 1.75; color: var(--text);
  margin-bottom: 22px;
}
.article-body p strong { color: var(--primary-dark); font-weight: 600; }
.article-body em { color: var(--primary-dark); font-style: italic; }
.article-body h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(24px, 2.5vw, 32px); font-weight: 600;
  color: var(--primary-dark); letter-spacing: -0.5px;
  margin: 56px 0 20px; line-height: 1.25;
}
.article-body h2::before {
  content: ''; display: block; width: 40px; height: 3px;
  background: var(--accent); margin-bottom: 16px;
}
.article-body h3 {
  font-size: 19px; font-weight: 700; color: var(--primary-dark);
  margin: 36px 0 12px; line-height: 1.35;
}
.article-body ul, .article-body ol { padding-left: 24px; }
.article-body li { margin-bottom: 8px; }
.article-body blockquote {
  margin: 32px 0; padding: 20px 28px;
  border-left: 4px solid var(--accent);
  background: var(--bg-soft); border-radius: 0 12px 12px 0;
  font-style: italic; color: var(--text);
  font-size: 18px; line-height: 1.6;
}
.article-body .callout {
  margin: 32px 0; padding: 24px 28px;
  background: linear-gradient(135deg, var(--bg-tint), var(--bg-soft));
  border: 1px solid var(--border); border-left: 4px solid var(--primary);
  border-radius: 0 12px 12px 0;
}
.article-body .callout strong { color: var(--primary-dark); }

/* ============== ARTICLE CTA ============== */
.article-cta {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: white; padding: 60px 50px; border-radius: 20px;
  margin: 60px 0; position: relative; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.article-cta::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(201,169,97,0.25) 0%, transparent 50%);
}
.article-cta-inner { position: relative; z-index: 1; }
.article-cta h3 {
  font-family: 'Playfair Display', serif; font-size: 28px;
  font-weight: 600; margin-bottom: 12px; line-height: 1.3;
}
.article-cta p { color: rgba(255,255,255,0.85); font-size: 16px; margin-bottom: 24px; max-width: 520px; }
.article-cta .btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: 10px; font-weight: 600;
  text-decoration: none; font-size: 15px; background: var(--accent);
  color: var(--primary-dark); transition: all .2s;
}
.article-cta .btn:hover { background: white; transform: translateY(-2px); }
.article-cta .btn svg { width: 16px; height: 16px; }

/* ============== AUTHOR BIO ============== */
.author-bio {
  display: flex; gap: 24px; align-items: flex-start;
  padding: 32px; background: var(--bg-soft); border-radius: 16px;
  border: 1px solid var(--border); margin: 50px 0;
}
.author-bio-img {
  width: 84px; height: 84px; border-radius: 50%; overflow: hidden;
  flex-shrink: 0; background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  display: grid; place-items: center; color: white; font-weight: 600; font-size: 28px;
  border: 3px solid white; box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}
.author-bio-img img { width: 100%; height: 100%; object-fit: cover; }
.author-bio h4 { color: var(--primary-dark); font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.author-bio .role { color: var(--text-muted); font-size: 13px; margin-bottom: 12px; font-weight: 500; }
.author-bio p { color: var(--text-muted); font-size: 14px; line-height: 1.6; margin-bottom: 12px; }
.author-bio .author-links { display: flex; gap: 16px; }
.author-bio .author-links a {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--primary); text-decoration: none; font-weight: 600;
  transition: color .2s;
}
.author-bio .author-links a:hover { color: var(--accent-dark); }
.author-bio .author-links svg { width: 14px; height: 14px; }

/* ============== RELATED ============== */
.related {
  background: var(--bg-soft); padding: 80px 0; border-top: 1px solid var(--border);
}
.related-head { margin-bottom: 32px; }
.related-head .tag { color: var(--accent-dark); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 2.5px; }
.related-head h2 {
  font-family: 'Playfair Display', serif; font-size: 30px;
  color: var(--primary-dark); font-weight: 600; margin-top: 8px; letter-spacing: -0.5px;
}
.related-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.related-card {
  background: white; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: all .3s; text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
}
.related-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.related-img {
  aspect-ratio: 16/10; position: relative;
}
.related-img.alt-1 { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); }
.related-img.alt-2 { background: linear-gradient(135deg, #1A2332, var(--primary-dark)); }
.related-img.alt-3 { background: linear-gradient(135deg, var(--primary-dark), var(--accent-dark)); }
.related-img::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(255,255,255,0.15) 0%, transparent 50%);
}
.related-img-label {
  position: absolute; bottom: 14px; left: 18px; color: white;
  font-family: 'Playfair Display', serif; font-size: 22px;
  font-weight: 600; line-height: 1.1;
}
.related-body { padding: 22px 22px 24px; }
.related-cat {
  font-size: 11px; color: var(--accent-dark); text-transform: uppercase;
  letter-spacing: 1.5px; font-weight: 700; margin-bottom: 10px;
}
.related-body h3 {
  font-size: 17px; font-weight: 700; color: var(--primary-dark);
  line-height: 1.35; letter-spacing: -0.2px;
}

/* ============== FOOTER ============== */
footer {
  background: var(--primary-dark); color: white; padding: 60px 0 30px;
  position: relative; overflow: hidden;
}
footer::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 0%, rgba(201,169,97,0.10) 0%, transparent 50%);
}
.footer-inner {
  position: relative; display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 24px;
}
footer .logo svg { height: 34px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 14px; transition: color .2s; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  position: relative; margin-top: 32px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between; flex-wrap: wrap;
  color: rgba(255,255,255,0.5); font-size: 13px; gap: 12px;
}

/* ============== RESPONSIVE ============== */
@media (max-width: 768px) {
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 13px; }
  .article-hero { padding: 110px 0 40px; }
  .article-cta { padding: 40px 28px; }
  .author-bio { flex-direction: column; padding: 24px; }
  .author-bio-img { width: 64px; height: 64px; }
  .article-body p, .article-body ul, .article-body ol { font-size: 16px; }
}
@media (max-width: 560px) {
  .nav-links .nav-cta, .nav-links a:not(.nav-cta) { display: none; }
  .nav-links .lang-toggle { display: flex; margin: 0; }
  .footer-links { flex-direction: column; gap: 10px; }
}
