/* ============================================================
   Feuille de style partagée du BLOG Rappli
   (utilisée par /blog et tous les articles — charte cohérente
    avec la page d'accueil)
   ============================================================ */
:root {
  --bleu: #1E3B8B;
  --bleu-vif: #4A6FD4;
  --bleu-fonce: #101F4A;
  --vert: #05976A;
  --vert-fonce: #04694A;
  --bleu-clair: #F1F5FC;
  --bleu-pale: #E5EBF8;
  --texte: #3A4560;
  --gris: #515E7E;
  --blanc: #FFFFFF;
  --bordure: #E5E9F3;
  --r: 16px;
  --r-lg: 24px;
  --r-pill: 999px;
  --ombre-s: 0 2px 8px rgba(16, 31, 74, .06);
  --ombre: 0 14px 40px rgba(16, 31, 74, .10);
  --ombre-bleu: 0 16px 36px rgba(30, 59, 139, .28);
  --max: 1140px;
  --pad: clamp(20px, 5vw, 28px);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito', system-ui, sans-serif;
  color: var(--texte); background: var(--blanc);
  line-height: 1.65; font-size: 17px; font-weight: 500;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { color: var(--bleu-fonce); font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }
a { color: var(--bleu); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.wrap-article { max-width: 760px; }

/* ----- Boutons ----- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-family: inherit; font-weight: 800; font-size: 16px; padding: 14px 26px; border-radius: var(--r-pill); border: 2px solid transparent; cursor: pointer; transition: transform .18s, box-shadow .18s, background .18s; }
.btn-primary { background: linear-gradient(180deg, #2C4FAE, #1E3B8B); color: #fff; box-shadow: var(--ombre-bleu), inset 0 1px 0 rgba(255, 255, 255, .18); }
.btn-primary:hover { transform: translateY(-2px); text-decoration: none; box-shadow: 0 20px 44px rgba(30, 59, 139, .34), inset 0 1px 0 rgba(255, 255, 255, .22); }
.btn:focus-visible { outline: 3px solid rgba(30, 59, 139, .55); outline-offset: 3px; }
.btn-primary:focus-visible { outline-color: rgba(255, 255, 255, .9); }
a:focus-visible { outline: 3px solid #1E3B8B; outline-offset: 2px; border-radius: 6px; }

/* ----- En-tête (cohérent avec l'accueil) ----- */
header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.9); backdrop-filter: blur(14px); border-bottom: 1px solid var(--bordure); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 80px; gap: 18px; }
.logo img { height: 50px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-weight: 700; color: var(--bleu-fonce); }
.nav-links a:hover { color: var(--bleu); text-decoration: none; }
.nav-links a.actif { color: var(--bleu); }
/* Le bouton CTA du header reste blanc sur bleu (sinon .nav-links a, plus spécifique, le noircit) */
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: #fff; }
@media (max-width: 720px) { .nav-links { display: none; } }

/* ----- Fil d'Ariane ----- */
.breadcrumb { font-size: 14px; color: var(--gris); font-weight: 600; padding: 22px 0 0; }
.breadcrumb a { color: var(--gris); }
.breadcrumb a:hover { color: var(--bleu); }

/* ----- En-tête de la liste blog ----- */
.blog-head { padding: clamp(36px, 6vw, 64px) 0 clamp(28px, 4vw, 44px); text-align: center; background: linear-gradient(180deg, #fff, var(--bleu-clair)); }
.blog-head .kicker { display: inline-block; font-weight: 900; color: var(--bleu); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
.blog-head h1 { font-size: clamp(30px, 5vw, 46px); font-weight: 900; }
.blog-head p { color: var(--gris); font-size: clamp(17px, 2vw, 20px); margin: 14px auto 0; max-width: 600px; }

/* ----- Grille d'articles ----- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 3vw, 26px); padding: clamp(36px, 5vw, 56px) 0 clamp(50px, 8vw, 80px); }
.post { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--bordure); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--ombre-s); transition: transform .2s, box-shadow .2s; }
.post:hover { transform: translateY(-5px); box-shadow: var(--ombre); text-decoration: none; }
.post .vignette { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--bleu), var(--bleu-fonce)); display: grid; place-items: center; color: #fff; font-size: 40px; }
.post .corps { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.post .cat { font-size: 12px; font-weight: 800; color: var(--bleu); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.post h2 { font-size: 19px; font-weight: 800; color: var(--bleu-fonce); margin-bottom: 8px; line-height: 1.3; }
.post p { color: var(--gris); font-size: 15px; flex: 1; }
.post .meta { margin-top: 16px; font-size: 13px; color: var(--gris); font-weight: 700; display: flex; align-items: center; gap: 8px; }
.post .lire { color: var(--bleu); font-weight: 800; }
@media (max-width: 900px) { .posts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .posts { grid-template-columns: 1fr; } }

/* ----- Corps d'article ----- */
.article { padding: clamp(28px, 4vw, 44px) 0 clamp(40px, 6vw, 70px); }
.article .cat { font-weight: 800; color: var(--bleu); text-transform: uppercase; letter-spacing: .05em; font-size: 13px; }
.article h1 { font-size: clamp(28px, 4.4vw, 40px); font-weight: 900; margin: 12px 0 16px; line-height: 1.18; }
.article .meta { display: flex; align-items: center; gap: 12px; color: var(--gris); font-weight: 700; font-size: 14px; padding-bottom: 24px; margin-bottom: 28px; border-bottom: 1px solid var(--bordure); }
.article .chapo { font-size: clamp(18px, 2.3vw, 21px); color: var(--bleu-fonce); font-weight: 700; line-height: 1.55; margin-bottom: 26px; }
.article h2 { font-size: clamp(22px, 3vw, 28px); font-weight: 900; margin: 38px 0 14px; }
.article h3 { font-size: clamp(18px, 2.2vw, 21px); font-weight: 800; margin: 26px 0 10px; }
.article p { margin-bottom: 18px; }
.article ul, .article ol { margin: 0 0 18px 22px; }
.article li { margin-bottom: 10px; }
.article strong { color: var(--bleu-fonce); }
.article blockquote { border-left: 4px solid var(--vert); background: var(--bleu-clair); padding: 16px 22px; border-radius: 0 12px 12px 0; margin: 24px 0; font-weight: 700; color: var(--bleu-fonce); }
.article .src { font-size: 13.5px; color: var(--gris); }

/* ----- Encart CTA dans l'article ----- */
.cta-band { background: linear-gradient(135deg, var(--bleu), #1b46b8); color: #fff; border-radius: var(--r-lg); padding: clamp(28px, 4vw, 40px); text-align: center; margin: 36px 0; box-shadow: var(--ombre-bleu); }
.cta-band h3 { color: #fff; font-size: clamp(20px, 3vw, 26px); margin-bottom: 10px; }
.cta-band p { color: rgba(255,255,255,.9); margin-bottom: 20px; }
.cta-band .note { display: block; margin-top: 12px; font-size: 13px; font-weight: 700; color: #c9f3df; }

/* ----- Réponse directe / à retenir (optimisation featured snippet) ----- */
.article .tldr { background: var(--bleu-clair); border: 1px solid var(--bordure); border-radius: 14px; padding: 18px 22px; margin: 0 0 28px; font-size: 16.5px; line-height: 1.6; }
.article .tldr strong { color: var(--bleu-fonce); }

/* ----- Sommaire ----- */
.article .toc { background: #fff; border: 1px solid var(--bordure); border-radius: 14px; padding: 18px 22px; margin: 0 0 30px; }
.article .toc-t { font-weight: 900; color: var(--bleu-fonce); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.article .toc ul { margin: 0 0 0 18px; }
.article .toc li { margin-bottom: 6px; }

/* ----- Tableau comparatif (lisible + featured snippets) ----- */
.article .tbl-wrap { overflow-x: auto; margin: 24px 0; border: 1px solid var(--bordure); border-radius: 14px; -webkit-overflow-scrolling: touch; }
.article table { width: 100%; border-collapse: collapse; font-size: 15.5px; background: #fff; }
.article th, .article td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--bordure); vertical-align: top; }
.article thead th { background: var(--bleu-clair); color: var(--bleu-fonce); font-weight: 800; white-space: nowrap; }
.article tbody tr:last-child td { border-bottom: 0; }
.article td strong { color: var(--bleu-fonce); }
.article .ok { color: var(--vert-fonce); font-weight: 800; }
.article .no { color: #B42318; font-weight: 800; }

/* ----- FAQ (questions fréquentes — rich results) ----- */
.article .faq h3 { margin: 22px 0 8px; }
.article .faq h3:first-of-type { margin-top: 8px; }

/* ----- Articles liés ----- */
.relateds { background: var(--bleu-clair); padding: clamp(40px, 6vw, 64px) 0; }
.relateds h2 { text-align: center; font-size: clamp(22px, 3vw, 30px); font-weight: 900; margin-bottom: 30px; }

/* ----- Pied de page (cohérent avec l'accueil) ----- */
footer { background: var(--bleu-fonce); color: #aeb9d0; padding: clamp(44px, 6vw, 60px) 0 28px; }
.foot-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 28px; }
.foot-logo { display: inline-block; background: #fff; padding: 14px 18px; border-radius: 14px; }
.foot-logo img { height: 44px; width: auto; }
.foot-brand p { color: #8693ad; margin-top: 16px; max-width: 320px; font-size: 15px; }
.foot-links { display: flex; gap: 40px; flex-wrap: wrap; }
.foot-col h4 { color: #fff; font-size: 14px; margin-bottom: 14px; text-transform: uppercase; letter-spacing: .05em; }
.foot-col a { display: block; color: #aeb9d0; padding: 5px 0; font-weight: 600; font-size: 15px; }
.foot-col a:hover { color: #fff; }
.foot-bottom { border-top: 1px solid #233356; margin-top: 36px; padding-top: 22px; font-size: 14px; color: #8693ad; font-weight: 600; }
