:root {
  --primary: #001F3F; --primary-soft: #33506b;
  --secondary: #E1F5FE; --secondary-deep: #cfe9f5;
  --tertiary: #F5F7F9; --neutral: #4A4A4A;
  --ink: #16222e; --muted: #5b6976; --line: #e3e8ee; --white: #ffffff;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
       background: var(--tertiary); color: var(--ink); line-height: 1.7;
       -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Le hero (dégradé) est PLEINE LARGEUR, collé au header, hors de tout main. */
.bpHero { background: linear-gradient(180deg, var(--secondary), var(--tertiary));
          border-bottom: 1px solid var(--line); padding: 40px 0 36px; }
.bpHero-inner { width: 95%; max-width: 1600px; margin: 0 auto; }

/* Corps de l'article : deux colonnes, TOC sticky à gauche, texte à droite. */
.article-wrap { width: 95%; max-width: 1600px; margin: 40px auto 0;
  display: grid; grid-template-columns: 280px 1fr; gap: 52px; align-items: start; }
.bpToc-side { position: sticky; top: 90px; }
.post { min-width: 0; padding-bottom: 60px; }

/* -- hero (bannière claire) ---------------------------------------------- */
.bpHero { background: linear-gradient(180deg, var(--secondary), var(--tertiary));
          border-bottom: 1px solid var(--line); }

.bpCrumbs { font-size: 12px; letter-spacing: .04em; text-transform: uppercase;
            color: var(--primary-soft); margin-bottom: 18px; }
.bpCrumbs a { color: var(--primary-soft); }
.bpHero h1 { font-size: clamp(28px, 5vw, 44px); line-height: 1.15;
             letter-spacing: -.02em; color: var(--primary); }
.bpHeroMeta { color: var(--muted); font-size: 14px; margin-top: 14px; }
.bpHeroMeta time { color: var(--primary-soft); }

/* -- table des matières -------------------------------------------------- */
.bpToc { background: var(--white); border: 1px solid var(--line); border-radius: 8px;
         padding: 18px 20px; margin: 0; font-size: 14px; }
.bpToc__titre { color: var(--primary-soft); font-size: 12px; letter-spacing: .1em;
               text-transform: uppercase; margin: 0 0 10px; }
.bpToc ol { margin: 0 0 0 18px; color: var(--ink); }
.bpToc li { margin: 5px 0; }
.bpToc a { color: var(--ink); }
.bpToc a:hover { color: var(--primary); }

.post h2 { font-size: clamp(22px, 3.4vw, 30px); margin: 44px 0 14px; color: var(--primary); }
.post h3 { font-size: 20px; margin: 30px 0 10px; color: var(--ink); }
.post p { margin-bottom: 20px; color: var(--ink); }
.post ul, .post ol { margin: 0 0 22px 22px; color: var(--ink); }
.post li { margin-bottom: 8px; }
.post strong { color: var(--primary); }
.post blockquote { border-left: 3px solid var(--secondary-deep); padding: 4px 0 4px 20px;
                   margin: 26px 0; color: var(--muted); font-style: italic; }
.post table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 15px; }
.post th { background: var(--secondary); color: var(--primary); text-align: left;
           padding: 10px 12px; border: 1px solid var(--line); }
.post td { padding: 10px 12px; border: 1px solid var(--line); }
.post .nav-cta, .post a.csBtnContour { display: inline-block; background: var(--primary);
  color: #fff; padding: 12px 22px; border-radius: 8px; font-weight: 600; }
.post a.csBtnContour:hover, .post .nav-cta:hover { background: #002b56; text-decoration: none; }

/* -- FAQ ----------------------------------------------------------------- */
.bpFaq { width: 95%; max-width: 1600px; margin: 46px auto 0; padding: 0 0 80px; }
.bpFaq > h2 { color: var(--primary); margin-bottom: 18px; }
.bpFaq__item { background: var(--white); box-shadow: 0 1px 3px rgba(0,31,63,.06);
               border-radius: 8px; margin-bottom: 10px; overflow: hidden; }
.bpFaq__q { cursor: pointer; list-style: none; padding: 16px 20px; font-size: 17px;
            font-weight: 600; color: var(--primary); position: relative; padding-right: 40px; }
.bpFaq__q::-webkit-details-marker { display: none; }
.bpFaq__q::after { content: "+"; position: absolute; right: 18px; top: 14px;
                   color: var(--primary-soft); font-size: 22px; }
details[open] .bpFaq__q::after { content: "3"; }
.bpFaq__r { padding: 0 20px 18px; color: var(--muted); }

@media (max-width: 900px) {
  .article-wrap { grid-template-columns: 1fr; gap: 0; }
  .bpToc-side { position: static; margin-bottom: 24px; }
}


/* -- index du blog : largeur du site + grille d'encarts ------------------- */
.blog-wrap { width: 95%; max-width: 1600px; margin: 0 auto; padding: 56px 0 72px; }
.blog-wrap h1 { font-size: clamp(30px, 5vw, 44px); color: var(--primary);
  letter-spacing: -.02em; margin-bottom: 8px; }
.blog-wrap .meta { color: var(--muted); font-size: 17px; margin-bottom: 36px; }
.blog-filtros { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.filtro { font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  padding: 9px 18px; border-radius: 999px; background: var(--tertiary);
  color: var(--primary-soft); border: none; transition: background .15s ease, color .15s ease; }
.filtro:hover { background: var(--secondary); color: var(--primary); }
.filtro.is-active { background: var(--primary); color: #fff; }
.liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
.carte { display: block; background: var(--white); border-radius: 8px;
  padding: 24px 26px; text-decoration: none; box-shadow: 0 1px 3px rgba(0,31,63,.06);
  transition: transform .15s ease, box-shadow .15s ease; }
.carte:hover { transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,31,63,.12); text-decoration: none; }
.carte .cat { color: var(--primary-soft); font-size: 12px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; }
.carte h2 { font-size: 19px; color: var(--primary); margin: 8px 0 10px; line-height: 1.32; }
.carte p { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* -- Articles liés : carrousel horizontal après la FAQ -------------------- */
.rel-artigos { width: 95%; max-width: 1600px; margin: 8px auto 0; padding: 0 0 80px; }
.rel-artigos > h2 { color: var(--primary); margin-bottom: 20px; font-size: 24px; letter-spacing: -.01em; }
.rel-scroll { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; padding-bottom: 6px; scrollbar-width: none; }
.rel-scroll::-webkit-scrollbar { display: none; }
.rel-carte { scroll-snap-align: start; flex: 0 0 300px; max-width: 300px;
  display: flex; flex-direction: column; gap: 10px; background: var(--white);
  border-radius: 12px; padding: 22px 24px; text-decoration: none;
  box-shadow: 0 1px 3px rgba(0,31,63,.06); transition: transform .15s ease, box-shadow .15s ease; }
.rel-carte:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,31,63,.12); text-decoration: none; }
.rel-cat { color: var(--primary-soft); font-size: 12px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; }
.rel-titre { color: var(--primary); font-size: 17px; font-weight: 600; line-height: 1.34;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 640px) { .rel-carte { flex-basis: 78%; max-width: 78%; } }
