/* V0.3.1 — mise en page de lecture des articles WordPress uniquement. */
body.nicks-2027.single-post .nv-content-wrap.entry-content {
  color: var(--nb-ink);
  font-size: clamp(16.5px, 1.25vw, 18px);
  line-height: 1.78;
  overflow-wrap: break-word;
}
/* La colonne de lecture est resserrée, mais les médias peuvent dépasser légèrement. */
body.nicks-2027.single-post .nv-content-wrap.entry-content > :where(p,ul,ol,h2,h3,h4,blockquote,table,pre) {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
body.nicks-2027.single-post .nv-content-wrap.entry-content > :where(p,ul,ol) { margin-bottom: 1.45em; }
body.nicks-2027.single-post .nv-content-wrap.entry-content :where(h2,h3,h4) {
  color: var(--nb-navy);
  line-height: 1.28;
  letter-spacing: -.022em;
  scroll-margin-top: 110px;
}
body.nicks-2027.single-post .nv-content-wrap.entry-content > h2 {margin-top: 2.15em;margin-bottom: .8em;font-size:clamp(1.5rem,2.4vw,2rem)}
body.nicks-2027.single-post .nv-content-wrap.entry-content > h3 {margin-top: 1.8em;margin-bottom: .65em;font-size:clamp(1.2rem,2vw,1.55rem)}
body.nicks-2027.single-post .nv-content-wrap.entry-content > p:first-child {margin-top:0}
body.nicks-2027.single-post .nv-content-wrap.entry-content > blockquote,
body.nicks-2027.single-post .nv-content-wrap.entry-content > .wp-block-quote {
  border-left: 3px solid var(--nb-blue);
  padding: 17px 22px;
  background: var(--nb-ice);
  border-radius: 0 10px 10px 0;
  font-style: normal;
}
body.nicks-2027.single-post .nv-content-wrap.entry-content :where(figure,img,video) {max-width:100%;height:auto}
body.nicks-2027.single-post .nv-content-wrap.entry-content iframe {max-width:100%}
body.nicks-2027.single-post .nv-content-wrap.entry-content figcaption {color:var(--nb-muted);font-size:.83em;line-height:1.45;margin-top:.6em;text-align:center}
body.nicks-2027.single-post .nv-content-wrap.entry-content :where(p,li) a {text-underline-offset: .16em;text-decoration-thickness:1px}
body.nicks-2027.single-post .nv-content-wrap.entry-content a:focus-visible {outline:3px solid var(--nb-blue);outline-offset:3px}
/* Informations de publication et bouton PDF sous la couverture. */
body.nicks-2027.single-post .nb-post-tools {display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 clamp(24px,4vw,43px);padding:13px 0;border-bottom:1px solid var(--nb-line)}
body.nicks-2027.single-post .nb-print-button {appearance:none;border:1px solid var(--nb-line);background:var(--nb-ice);color:var(--nb-navy);border-radius:7px;padding:8px 12px;font:inherit;font-size:.78rem;font-weight:650;cursor:pointer;white-space:nowrap}
body.nicks-2027.single-post .nb-print-button:hover,body.nicks-2027.single-post .nb-print-button:focus-visible {background:#dceaf6;border-color:var(--nb-blue);outline-offset:2px}
@media(max-width:600px){
  body.nicks-2027.single-post .nv-content-wrap.entry-content{line-height:1.72}
  body.nicks-2027.single-post .nb-post-tools{margin-bottom:25px}
  body.nicks-2027.single-post .nb-print-button{font-size:.75rem}
}

/* H2 sous forme de bandeaux bleu glacier : uniquement le contenu éditorial,
   sans toucher aux H2 du menu, des cartes, des sommaires ou des hubs spéciaux. */
body.nicks-2027.single-post .nv-content-wrap.entry-content > h2,
body.nicks-2027.single-post .nv-content-wrap.entry-content > .wp-block-group > h2,
body.nicks-2027.single-post .nv-content-wrap.entry-content > .wp-block-group > .wp-block-group__inner-container > h2,
body.nicks-2027.page:not(.home):not(.nb-editorial-page) .nv-content-wrap.entry-content > h2,
body.nicks-2027.page:not(.home):not(.nb-editorial-page) .nv-content-wrap.entry-content > .wp-block-group > h2,
body.nicks-2027.page:not(.home):not(.nb-editorial-page) .nv-content-wrap.entry-content > .wp-block-group > .wp-block-group__inner-container > h2 {
  background:var(--nb-ice);
  border-left:3px solid #bad3e9;
  border-radius:10px;
  color:var(--nb-navy);
  padding:.45em .7em;
  box-sizing:border-box;
}
@media(max-width:600px){
  body.nicks-2027.single-post .nv-content-wrap.entry-content > h2,
  body.nicks-2027.page:not(.home):not(.nb-editorial-page) .nv-content-wrap.entry-content > h2 {
    padding:.42em .6em;
    border-radius:8px;
  }
}

/* V0.3.3 — échelle de titres compacte et cohérente.
   Limitée aux textes d'articles et de pages classiques ; les hubs éditoriaux,
   cartes, menus et sommaires ne sont pas affectés.
   Les tailles personnalisées définies explicitement dans Gutenberg gardent
   leur priorité grâce à l'absence de !important. */
body.nicks-2027:is(.single-post,.page:not(.home):not(.nb-editorial-page)) .nv-content-wrap.entry-content > h2,
body.nicks-2027:is(.single-post,.page:not(.home):not(.nb-editorial-page)) .nv-content-wrap.entry-content > .wp-block-group h2 {
  font-size: clamp(1.4rem, 1.85vw, 1.75rem);
  line-height: 1.3;
  font-weight: 730;
}
body.nicks-2027:is(.single-post,.page:not(.home):not(.nb-editorial-page)) .nv-content-wrap.entry-content > h3,
body.nicks-2027:is(.single-post,.page:not(.home):not(.nb-editorial-page)) .nv-content-wrap.entry-content > .wp-block-group h3 {
  font-size: clamp(1.18rem, 1.48vw, 1.4rem);
  line-height: 1.35;
  font-weight: 700;
}
body.nicks-2027:is(.single-post,.page:not(.home):not(.nb-editorial-page)) .nv-content-wrap.entry-content > h4,
body.nicks-2027:is(.single-post,.page:not(.home):not(.nb-editorial-page)) .nv-content-wrap.entry-content > .wp-block-group h4 {
  font-size: 1.13rem;
  line-height: 1.4;
  font-weight: 700;
}
body.nicks-2027:is(.single-post,.page:not(.home):not(.nb-editorial-page)) .nv-content-wrap.entry-content > h5,
body.nicks-2027:is(.single-post,.page:not(.home):not(.nb-editorial-page)) .nv-content-wrap.entry-content > .wp-block-group h5 {
  font-size: 1.02rem;
  line-height: 1.45;
  font-weight: 700;
}
body.nicks-2027:is(.single-post,.page:not(.home):not(.nb-editorial-page)) .nv-content-wrap.entry-content > h6,
body.nicks-2027:is(.single-post,.page:not(.home):not(.nb-editorial-page)) .nv-content-wrap.entry-content > .wp-block-group h6 {
  font-size: .96rem;
  line-height: 1.45;
  font-weight: 700;
}
/* Un H2 bleu glacier moins massif : la hiérarchie demeure lisible
   sans éclipser le texte et les H3. */
body.nicks-2027:is(.single-post,.page:not(.home):not(.nb-editorial-page)) .nv-content-wrap.entry-content > h2,
body.nicks-2027:is(.single-post,.page:not(.home):not(.nb-editorial-page)) .nv-content-wrap.entry-content > .wp-block-group h2 {
  padding: .38em .65em;
}
