/* ══════════════════════════════════════════════════════
   GPSP Blog — styles partagés
   ══════════════════════════════════════════════════════ */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --primary: #1e4a7c;
  --primary-dark: #14355c;
  --accent: #4a7cad;
  --accent-light: #7ba3ce;
  --dark: #0d2340;
  --dark2: #1a2f52;
  --light: #f4f7fb;
  --text: #2a3a4d;
  --text-muted: #556677;
  --border: #dde5ef;
}
/* Accessibilité — focus visible clavier */
*:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}
/* Skip link pour clavier */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--dark); color: #fff; padding: 12px 20px;
  z-index: 200; font-family: 'Segoe UI', Arial, sans-serif; font-size: 14px;
  text-decoration: none;
}
.skip-link:focus { left: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Georgia', 'Times New Roman', serif;
  color: var(--text); line-height: 1.7;
  background: #fff; -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* ── Header (identique au site principal) ── */
header {
  background: #fff; border-bottom: 3px solid var(--primary);
  padding: 20px 0; position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.header-wrap {
  max-width: 1180px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 16px; }
.brand a { display: flex; align-items: center; gap: 16px; text-decoration: none; }
.brand a:hover { text-decoration: none; }
.brand img { width: 90px; height: auto; }
.brand-txt { font-family: 'Georgia', serif; letter-spacing: 1.5px; line-height: 1.15; }
.brand-txt .l1 { font-size: 15px; font-weight: 700; color: var(--dark); }
.brand-txt .l2 { font-size: 11px; color: var(--text-muted); letter-spacing: 3px; margin-top: 2px; }
nav a {
  color: var(--dark); font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px;
  margin-left: 26px; font-family: 'Segoe UI', Arial, sans-serif; font-weight: 500;
}
nav a:hover { color: var(--primary); text-decoration: none; }
nav a.active { color: var(--primary); border-bottom: 2px solid var(--primary); padding-bottom: 4px; }

/* Hamburger mobile — tap target 48x48 min */
.burger {
  display: none; background: none; border: none; cursor: pointer;
  padding: 12px; margin-left: auto; min-width: 48px; min-height: 48px;
}
.burger span {
  display: block; width: 24px; height: 2px; background: var(--dark);
  margin: 5px 0; transition: transform 0.3s, opacity 0.3s;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Cibles tactiles minimum 44px (WCAG 2.5.5) */
nav a { min-height: 44px; display: inline-flex; align-items: center; }
.blog-card a { min-height: 44px; }

/* Footer mobile */
@media (max-width: 900px) {
  footer { padding: 40px 20px 20px; }
  .foot-cols { grid-template-columns: 1fr 1fr; gap: 30px; padding-bottom: 30px; }
  .foot-col h5 { font-size: 12px; letter-spacing: 1.5px; margin-bottom: 14px; }
  .foot-brand-block { grid-column: 1 / -1; text-align: center; }
  .foot-brand-block img { margin-left: auto; margin-right: auto; }
  .foot-badges { gap: 20px; padding: 20px 0; }
  .foot-badge .lbl { font-size: 9px; }
  .foot-badge .val { font-size: 13px; }
  .foot-bottom { flex-direction: column; text-align: center; padding-top: 20px; }
}

/* ── Breadcrumb ── */
.breadcrumb {
  max-width: 900px; margin: 0 auto; padding: 20px 24px 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 12px; color: var(--text-muted); letter-spacing: 0.5px;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { margin: 0 8px; color: var(--border); }

/* ══════════════════════════════════════════════════════
   BLOG INDEX — liste articles
   ══════════════════════════════════════════════════════ */
.blog-hero {
  padding: 60px 24px 40px; text-align: center;
  background: linear-gradient(180deg, #fff 0%, var(--light) 100%);
}
.blog-hero .kicker {
  font-size: 12px; letter-spacing: 4px; color: var(--primary);
  text-transform: uppercase; font-family: 'Segoe UI', Arial, sans-serif; font-weight: 600;
  margin-bottom: 16px;
}
.blog-hero h1 {
  font-size: 42px; font-weight: 400; color: var(--dark);
  letter-spacing: -0.3px; line-height: 1.2; max-width: 800px; margin: 0 auto 16px;
}
.blog-hero h1 em { color: var(--primary); font-style: italic; }
.blog-hero p { max-width: 640px; margin: 0 auto; color: var(--text-muted); font-size: 16px; }

.blog-list {
  max-width: 1100px; margin: 0 auto; padding: 60px 24px 80px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px;
}
.blog-card {
  background: #fff; border: 1px solid var(--border);
  display: flex; flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.blog-card:hover {
  transform: translateY(-3px); box-shadow: 0 8px 20px rgba(30,74,124,.12);
}
.blog-card a { display: flex; flex-direction: column; text-decoration: none; height: 100%; }
.blog-card a:hover { text-decoration: none; }
.blog-card-img {
  height: 180px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
  color: #fff; font-size: 60px; font-family: 'Georgia', serif; font-weight: 400;
}
.blog-card-body { padding: 24px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.blog-card .meta {
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 11px; color: var(--text-muted); letter-spacing: 1.5px; text-transform: uppercase;
  margin-bottom: 12px;
}
.blog-card h2 {
  font-size: 20px; color: var(--dark); font-weight: 600;
  line-height: 1.3; margin-bottom: 12px;
}
.blog-card p {
  color: var(--text-muted); font-size: 14px; line-height: 1.6;
  flex: 1; margin-bottom: 16px;
}
.blog-card .read-more {
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 12px; color: var(--primary); font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
}

/* ══════════════════════════════════════════════════════
   ARTICLE INDIVIDUEL
   ══════════════════════════════════════════════════════ */
.article {
  max-width: 780px; margin: 0 auto; padding: 30px 24px 60px;
}
.article-header { margin-bottom: 40px; }
.article-kicker {
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 12px; letter-spacing: 3px; color: var(--primary);
  text-transform: uppercase; font-weight: 600; margin-bottom: 16px;
}
.article h1 {
  font-size: 38px; font-weight: 400; color: var(--dark);
  letter-spacing: -0.3px; line-height: 1.2; margin-bottom: 20px;
}
.article-meta {
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 13px; color: var(--text-muted); border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border); padding: 14px 0;
  display: flex; gap: 20px; flex-wrap: wrap;
}
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-lead {
  font-size: 20px; color: var(--dark); font-style: italic;
  line-height: 1.6; margin: 34px 0 30px; padding-left: 20px;
  border-left: 3px solid var(--primary);
}
.article p {
  font-size: 17px; line-height: 1.85; margin-bottom: 22px;
}
.article h2 {
  font-size: 26px; font-weight: 600; color: var(--dark);
  margin: 44px 0 20px; padding-bottom: 12px; border-bottom: 1px solid var(--border);
  letter-spacing: -0.2px;
}
.article h3 {
  font-size: 20px; font-weight: 600; color: var(--primary);
  margin: 32px 0 14px; letter-spacing: -0.1px;
}
.article ul, .article ol {
  margin: 0 0 22px 24px;
}
.article ul li, .article ol li {
  font-size: 17px; line-height: 1.8; margin-bottom: 8px;
}
.article ul li::marker { color: var(--primary); }
.article strong { color: var(--dark); font-weight: 700; }
.article em { color: var(--primary); }
.article blockquote {
  margin: 30px 0; padding: 20px 24px;
  background: var(--light); border-left: 4px solid var(--primary);
  font-style: italic; color: var(--text);
}
.article blockquote p:last-child { margin-bottom: 0; }
.article a { color: var(--primary); font-weight: 600; }
.article a:hover { color: var(--primary-dark); }

/* ── Encadré CTA JAREGsafe (au milieu de l'article) ── */
.cta-jaregsafe {
  margin: 40px 0; padding: 32px 30px;
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
  color: #fff; position: relative;
  border-left: 4px solid #D4A827;
}
.cta-jaregsafe .cta-kicker {
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 11px; letter-spacing: 3px; color: #D4A827;
  text-transform: uppercase; font-weight: 600; margin-bottom: 10px;
}
.cta-jaregsafe .cta-logo {
  font-family: 'Georgia', serif; font-size: 30px; font-weight: 700;
  letter-spacing: 0.5px; line-height: 1; margin-bottom: 8px;
}
.cta-jaregsafe .cta-logo em { color: #D4A827; font-style: italic; }
.cta-jaregsafe .cta-slogan {
  font-family: 'Segoe UI', Arial, sans-serif; font-style: italic;
  font-size: 13px; color: #b8c8dc; margin-bottom: 18px;
}
.cta-jaregsafe p {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #dbe4ee; font-size: 14.5px; line-height: 1.7; margin-bottom: 18px;
}
.cta-jaregsafe .cta-btn {
  display: inline-block; background: #D4A827; color: var(--dark);
  padding: 12px 24px; font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  text-decoration: none;
}
.cta-jaregsafe .cta-btn:hover { background: #f0c045; color: var(--dark); text-decoration: none; }

/* ── Fin d'article : signature agence + articles liés ── */
.article-footer {
  margin-top: 60px; padding-top: 40px; border-top: 2px solid var(--border);
}
.author-box {
  display: flex; gap: 20px; align-items: flex-start;
  background: var(--light); padding: 26px 28px;
}
.author-box img { width: 60px; height: auto; flex-shrink: 0; }
.author-box .txt { flex: 1; font-family: 'Segoe UI', Arial, sans-serif; }
.author-box h4 { color: var(--dark); font-size: 15px; margin-bottom: 6px; letter-spacing: 0.5px; }
.author-box p { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin: 0; }
.author-box a { color: var(--primary); font-weight: 600; }

.related {
  margin-top: 50px;
}
.related h3 {
  font-size: 18px; color: var(--dark); font-weight: 600; letter-spacing: 0.5px;
  text-transform: uppercase; margin-bottom: 20px; font-family: 'Segoe UI', Arial, sans-serif;
}
.related-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px;
}
.related-item {
  background: #fff; border: 1px solid var(--border); padding: 18px 20px;
  transition: border-color 0.2s;
}
.related-item:hover { border-color: var(--primary); }
.related-item a { text-decoration: none; }
.related-item h4 {
  font-family: 'Georgia', serif; font-size: 15px; color: var(--dark);
  font-weight: 600; line-height: 1.4;
}

/* ══════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════ */
footer {
  background: linear-gradient(180deg, var(--dark) 0%, #081b34 100%);
  color: #a8b8cc;
  padding: 60px 24px 20px;
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 13px;
  line-height: 1.7;
}
.foot-cols {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px;
  padding-bottom: 40px;
}
.foot-col h5 {
  color: #fff; font-family: 'Georgia', serif; font-size: 14px;
  letter-spacing: 2px; text-transform: uppercase; font-weight: 400;
  margin-bottom: 20px; padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li { margin-bottom: 10px; }
.foot-col a { color: #a8b8cc; text-decoration: none; transition: color 0.2s; }
.foot-col a:hover { color: #fff; text-decoration: none; }
.foot-brand-block img { width: 70px; height: 63px; margin-bottom: 16px; }
.foot-brand-block .name {
  color: #fff; font-family: 'Georgia', serif; font-size: 15px;
  font-weight: 700; letter-spacing: 1.5px; line-height: 1.3; margin-bottom: 4px;
}
.foot-brand-block .sub {
  color: var(--accent-light); font-size: 11px; letter-spacing: 2px;
  text-transform: uppercase; margin-bottom: 14px;
}
.foot-brand-block .tag {
  color: #a8b8cc; font-size: 13px; line-height: 1.6; margin-top: 12px; font-style: italic;
}
.foot-contact-item { display: flex; gap: 10px; margin-bottom: 12px; }
.foot-contact-item .ico { color: var(--accent-light); flex-shrink: 0; }
.foot-contact-item .txt a { color: #a8b8cc; }
.foot-contact-item .txt a:hover { color: #fff; }
.foot-cta {
  display: inline-block; background: var(--accent);
  color: #fff !important; padding: 10px 20px; margin-top: 6px;
  font-size: 12px; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; text-decoration: none; transition: background 0.2s;
}
.foot-cta:hover { background: #fff; color: var(--dark) !important; text-decoration: none; }

.foot-badges {
  max-width: 1180px; margin: 0 auto;
  display: flex; justify-content: center; gap: 40px; flex-wrap: wrap;
  padding: 24px 0; border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.foot-badge { text-align: center; }
.foot-badge .lbl {
  color: var(--accent-light); font-size: 10px; letter-spacing: 2px;
  text-transform: uppercase; margin-bottom: 4px;
}
.foot-badge .val {
  color: #fff; font-family: 'Georgia', serif; font-size: 15px;
  font-weight: 600; letter-spacing: 0.5px;
}
.foot-bottom {
  max-width: 1180px; margin: 0 auto; padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px; font-size: 11.5px; color: #7a8ba0;
}
.foot-bottom .legal { line-height: 1.7; }
.foot-bottom .legal a { color: #a8b8cc; }
.foot-bottom .legal a:hover { color: #fff; }
.foot-bottom .copy { color: #556677; font-size: 11px; }

/* Responsive */
@media (max-width: 900px) {
  /* Header mobile */
  .brand img { width: 56px; }
  .brand-txt .l1 { font-size: 13px; letter-spacing: 1px; }
  .brand-txt .l2 { font-size: 9px; letter-spacing: 2px; }
  header { padding: 14px 0; }
  .header-wrap { padding: 0 16px; gap: 10px; }
  .burger { display: block; }
  nav {
    display: none; position: fixed; top: 74px; left: 0; right: 0;
    background: #fff; border-top: 1px solid var(--border);
    box-shadow: 0 6px 16px rgba(0,0,0,.08); padding: 12px 0;
    z-index: 90;
  }
  nav.open { display: block; }
  nav a {
    display: block; margin: 0; padding: 14px 24px;
    border-bottom: 1px solid var(--border); font-size: 14px;
  }
  nav a:last-child { border-bottom: none; }
  nav a.active { border-bottom: 1px solid var(--border); padding-bottom: 14px; }

  /* Blog index mobile */
  .blog-hero { padding: 40px 20px 30px; }
  .blog-hero h1 { font-size: 26px; }
  .blog-hero p { font-size: 14px; }
  .blog-list { padding: 40px 18px 60px; gap: 22px; }
  .blog-card-img { height: 130px; font-size: 44px; }
  .blog-card-body { padding: 20px 20px 22px; }
  .blog-card h2 { font-size: 17px; }
  .blog-card p { font-size: 13px; }

  /* Article mobile */
  .article { padding: 20px 18px 40px; }
  .article h1 { font-size: 24px; line-height: 1.25; }
  .article h2 { font-size: 20px; margin-top: 36px; }
  .article h3 { font-size: 17px; }
  .article-lead { font-size: 17px; padding-left: 14px; margin: 24px 0; }
  .article p, .article li { font-size: 15.5px; line-height: 1.7; }
  .article-meta { font-size: 12px; gap: 12px; }

  /* CTA JAREGsafe mobile */
  .cta-jaregsafe { padding: 22px 18px; margin: 30px 0; }
  .cta-jaregsafe .cta-logo { font-size: 22px; }
  .cta-jaregsafe p { font-size: 13.5px; }
  .cta-jaregsafe .cta-btn { display: block; text-align: center; padding: 12px 20px; }

  /* Auteur */
  .author-box { flex-direction: column; text-align: center; padding: 22px 20px; }
  .author-box img { margin: 0 auto; }

  /* Mentions légales : scroll tableaux */
  .legal table { display: block; overflow-x: auto; }
  .legal .info-block { padding: 16px 18px; }
  .legal h1 { font-size: 24px; }
  .legal h2 { font-size: 18px; }
}
@media (max-width: 480px) {
  .article h1 { font-size: 22px; }
  .article-lead { font-size: 15px; }
  .article p, .article li { font-size: 15px; }
  .blog-hero h1 { font-size: 22px; }
}
