/* CSS partage pour les pages blog Protectam. Charge par chaque article + l'index blog. */
:root {
  --navy-deep: #0f2547;
  --navy: #14254c;
  --navy-2: #1e4373;
  --navy-mute: #4a6480;
  --gold: #c79a3c;
  --gold-dark: #7a5a1c;
  --gold-light: #f0e1bf;
  --cream: #fdfcf9;
  --sand: #f5f2eb;
  --warm-grey: #e8e3d8;
  --ink: #1a1a1a;
  --ink-soft: #4a5568;
  --ink-faint: #6a6a6a;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(15, 37, 71, 0.06);
  --shadow-md: 0 8px 32px rgba(15, 37, 71, 0.12);
  --shadow-lg: 0 24px 64px rgba(15, 37, 71, 0.18);
}

* { 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(--ink);
  line-height: 1.6;
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, .serif {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.container-medium { max-width: 980px; margin: 0 auto; padding: 0 24px; }

/* Header (reprise homepage) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 252, 249, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--warm-grey);
}
.site-header .nav { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 36px; height: 36px;
  background: var(--navy-deep);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', serif; font-weight: 800; font-size: 22px;
  border-radius: 4px;
}
.brand-text { font-weight: 800; color: var(--navy-deep); font-size: 17px; letter-spacing: 0.5px; line-height: 1.1; }
.brand-text small { display: block; font-size: 10px; font-weight: 500; color: var(--navy-mute); letter-spacing: 2px; margin-top: 2px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-link { color: var(--navy-deep); text-decoration: none; font-weight: 500; font-size: 14px; transition: color 0.2s ease; }
.nav-link:hover { color: var(--gold-dark); }
.nav-cta {
  background: var(--navy-deep);
  color: var(--white);
  padding: 10px 20px;
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
  border-radius: 2px;
  transition: background 0.2s ease;
}
.nav-cta:hover { background: var(--navy); }

/* Breadcrumb */
.breadcrumb {
  padding: 28px 0 0;
  font-size: 13px;
  color: var(--ink-faint);
}
.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold-dark); }
.breadcrumb .sep { margin: 0 8px; color: var(--warm-grey); }

/* Article header */
.article-header { padding: 32px 0 48px; }
.article-eyebrow {
  font-size: 12px;
  color: var(--gold-dark);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.article-title {
  font-size: 44px;
  line-height: 1.1;
  color: var(--navy-deep);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 14px;
  color: var(--ink-faint);
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--warm-grey);
}
.article-meta strong { color: var(--ink-soft); font-weight: 600; }

/* TL;DR box */
.tldr {
  background: var(--sand);
  border-left: 4px solid var(--gold);
  padding: 24px 28px;
  border-radius: 0 4px 4px 0;
  margin: 32px 0 40px;
}
.tldr-label {
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--gold-dark);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.tldr p { color: var(--navy-deep); font-size: 16px; line-height: 1.65; margin: 0; }

/* Article body */
.article-body {
  padding-bottom: 64px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
}
.article-body p { margin-bottom: 22px; }
.article-body h2 {
  font-size: 30px;
  line-height: 1.2;
  color: var(--navy-deep);
  margin-top: 56px;
  margin-bottom: 20px;
}
.article-body h3 {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  line-height: 1.35;
  color: var(--navy-deep);
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 14px;
  letter-spacing: 0;
}
.article-body strong { font-weight: 600; color: var(--navy-deep); }
.article-body a { color: var(--navy-2); text-decoration: underline; text-decoration-color: var(--gold-light); text-underline-offset: 3px; }
.article-body a:hover { color: var(--gold-dark); text-decoration-color: var(--gold); }
.article-body ul, .article-body ol { margin: 0 0 22px 24px; padding: 0; }
.article-body li { margin-bottom: 10px; }
.article-body ol li::marker { color: var(--gold-dark); font-weight: 700; }

/* Tables */
.article-body .table-wrapper { margin: 24px 0 32px; overflow-x: auto; box-shadow: var(--shadow-sm); border-radius: 4px; }
.article-body table { width: 100%; border-collapse: collapse; background: var(--white); font-size: 15px; }
.article-body thead { background: var(--navy-deep); color: var(--white); }
.article-body th { padding: 14px 16px; text-align: left; font-weight: 600; font-size: 13px; letter-spacing: 0.3px; }
.article-body td { padding: 14px 16px; border-top: 1px solid var(--warm-grey); vertical-align: top; line-height: 1.55; }
.article-body tbody tr:nth-child(even) td { background: var(--sand); }
.article-body table strong { color: var(--navy-deep); }

/* Inline quote / callout */
.callout {
  background: var(--white);
  border: 1px solid var(--warm-grey);
  border-left: 4px solid var(--navy-2);
  padding: 20px 24px;
  margin: 24px 0 32px;
  border-radius: 0 4px 4px 0;
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.65;
}
.callout strong { color: var(--navy-deep); }

/* CTA bloc en milieu d'article */
.inline-cta {
  background: var(--sand);
  padding: 32px;
  border-radius: 4px;
  margin: 40px 0;
  text-align: center;
}
.inline-cta-title {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--navy-deep);
  margin-bottom: 12px;
  line-height: 1.3;
}
.inline-cta-text { color: var(--ink-soft); font-size: 15px; margin-bottom: 18px; line-height: 1.55; }
.article-body a.inline-cta-btn,
.inline-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy-deep);
  color: var(--white);
  padding: 14px 24px;
  font-weight: 600;
  text-decoration: none;
  text-decoration-color: transparent;
  font-size: 15px;
  border-radius: 2px;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}
.article-body a.inline-cta-btn:hover,
.inline-cta-btn:hover {
  background: var(--gold);
  color: var(--navy-deep);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
  text-decoration: none;
}

/* FAQ */
.article-faq { margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--warm-grey); }
.article-faq h2 { font-size: 28px; color: var(--navy-deep); margin-bottom: 24px; }
.article-faq details { background: var(--white); border: 1px solid var(--warm-grey); padding: 20px 24px; margin-bottom: 12px; border-radius: 4px; transition: box-shadow 0.2s ease; }
.article-faq details:hover { box-shadow: var(--shadow-sm); }
.article-faq summary { cursor: pointer; font-weight: 600; color: var(--navy-deep); font-size: 16px; list-style: none; position: relative; padding-right: 32px; }
.article-faq summary::-webkit-details-marker { display: none; }
.article-faq summary::after { content: "+"; position: absolute; right: 0; top: -2px; font-size: 22px; font-weight: 400; color: var(--gold); transition: transform 0.2s ease; }
.article-faq details[open] summary::after { transform: rotate(45deg); }
.article-faq details[open] summary { margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--warm-grey); }
.article-faq details p { color: var(--ink-soft); font-size: 15px; line-height: 1.65; margin: 0; }

/* CTA final */
.cta-final { background: var(--navy-deep); color: var(--white); padding: 80px 24px; text-align: center; position: relative; overflow: hidden; margin-top: 64px; }
.cta-final::before { content: ""; position: absolute; top: -100px; left: 50%; transform: translateX(-50%); width: 800px; height: 400px; background: radial-gradient(ellipse, rgba(199, 154, 60, 0.15) 0%, transparent 60%); pointer-events: none; }
.cta-final-content { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
.cta-final h2 { color: var(--white); font-family: 'Fraunces', serif; font-size: 36px; margin-bottom: 16px; line-height: 1.2; }
.cta-final p { font-size: 17px; color: var(--gold-light); margin-bottom: 32px; line-height: 1.6; }
.cta-final .btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: var(--navy-deep);
  padding: 18px 32px;
  font-weight: 600;
  text-decoration: none;
  font-size: 16px;
  border-radius: 2px;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}
.cta-final .btn:hover { background: var(--white); color: var(--navy-deep); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.cta-final .micro-reassure { margin-top: 24px; display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--gold-light); }
.cta-final .micro-reassure span::before { content: "✓ "; color: var(--gold); font-weight: 700; }

/* Blog index */
.blog-hero { padding: 72px 0 32px; }
.blog-hero h1 { font-size: 44px; line-height: 1.1; color: var(--navy-deep); margin-bottom: 16px; letter-spacing: -0.02em; }
.blog-hero p { font-size: 18px; color: var(--ink-soft); line-height: 1.6; max-width: 620px; }
.post-list { padding: 32px 0 80px; display: grid; gap: 16px; }
.post-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--white);
  border: 1px solid var(--warm-grey);
  padding: 32px 36px;
  border-radius: 4px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.post-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--gold-light); }
.post-card .post-meta { font-size: 12px; color: var(--gold-dark); font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 12px; }
.post-card h2 { font-family: 'Fraunces', serif; font-size: 24px; line-height: 1.25; color: var(--navy-deep); font-weight: 700; margin-bottom: 12px; }
.post-card p { color: var(--ink-soft); font-size: 15px; line-height: 1.6; margin-bottom: 16px; }
.post-card .post-read { font-size: 14px; font-weight: 600; color: var(--navy-2); }
.post-card .post-read::after { content: " →"; transition: margin-left 0.2s ease; }
.post-card:hover .post-read::after { margin-left: 4px; }

/* Footer */
footer { padding: 40px 0; font-size: 13px; color: var(--ink-soft); background: var(--cream); border-top: 1px solid var(--warm-grey); }
footer .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
footer a { color: var(--ink-soft); text-decoration: none; margin-left: 20px; }
footer a:hover { color: var(--navy-deep); }

/* Focus */
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Mobile */
@media (max-width: 880px) {
  .article-title { font-size: 32px; }
  .article-body { font-size: 16px; }
  .article-body h2 { font-size: 24px; margin-top: 40px; }
  .cta-final h2 { font-size: 28px; }
  .blog-hero { padding: 48px 0 24px; }
  .blog-hero h1 { font-size: 32px; }
  .nav-links { display: none; }
  footer .container { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
