/* ——— Charger Inter partout ——— */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

/* ——— Forcer la même police sur tout le site (EN/FR, home, posts, catégories) ——— */
html, body,
.site,
.site-main,
.entry-content,
.page-content,
.post-content {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans" !important;
}

/* Titres : héritent d'Inter */
:where(h1,h2,h3,h4,h5,h6) {
  font-family: inherit !important;
}

/* === Échelle typographique unique (site-wide) === */
:root {
  --nooww-text-size: 19px;
  --nooww-text-lineheight: 1.5;
  --nooww-text-color: #202124;
  --nooww-title-size: 22px;
}
@media (max-width: 768px) {
  :root {
    --nooww-text-size: 17px;
    --nooww-title-size: 19px;
  }
}
@media (max-width: 480px) {
  :root {
    --nooww-text-size: 16px;
    --nooww-title-size: 18px;
  }
}

/* Texte global */
body :is(.entry-content, .post-content, .page-content, .wp-block-post-content,
         .wp-block-post-excerpt, .wp-block-paragraph, article p, .wp-block-group p, .wp-block-columns p) {
  font-size: var(--nooww-text-size) !important;
  line-height: var(--nooww-text-lineheight) !important;
  color: var(--nooww-text-color) !important;
}

/* Titres */
body :is(h1,h2,h3,h4,h5,h6).wp-block-post-title,
body :is(h1,h2,h3,h4,h5,h6).wp-block-post-title a,
body :is(h1,h2,h3,h4,h5,h6).wp-block-heading,
body :is(h1,h2,h3,h4,h5,h6).wp-block-heading a,
body h1.title.dt-mt-0.dt-mb-3,
body h1.title.dt-mt-0.dt-mb-3 a {
  font-size: var(--nooww-title-size) !important;
}
:where(h1,h2,h3,h4,h5,h6) {
  line-height: 1.3 !important;
}

/* Italique = même couleur que le texte autour */
body :is(.entry-content, .post-content, .page-content, .wp-block-post-content,
         .wp-block-post-excerpt, .wp-block-paragraph, article) em {
  color: inherit !important;
  font-style: italic !important;
  font-weight: normal !important;
}
html body .entry-content .has-text-color em,
html body .entry-content .has-inline-color em,
html body .entry-content mark.has-inline-color em,
html body .entry-content mark.has-text-color em,
html body .entry-content p.has-text-align-center.has-large-font-size em {
  color: inherit !important;
}

html body .entry-content mark {
  background-color: transparent !important;
}

/* Soulignement au survol */
:root {
  --nooww-ul-thickness: 2px;
  --nooww-ul-offset: 0.12em;
}
body :is(.entry-content, .post-content, .page-content, .wp-block-query,
         .wp-block-post-template, .wp-block-post, article) a[href^="/"],
body :is(.entry-content, .post-content, .page-content, .wp-block-query,
         .wp-block-post-template, .wp-block-post, article) a[href*="//nooww.com"] {
  text-decoration: none;
  text-decoration-color: currentColor;
  text-underline-offset: var(--nooww-ul-offset);
  text-decoration-thickness: var(--nooww-ul-thickness);
  transition: color .15s ease, text-decoration-color .15s ease;
}
body :is(.entry-content, .post-content, .page-content, .wp-block-query,
         .wp-block-post-template, .wp-block-post, article) a[href^="/"]:hover,
body :is(.entry-content, .post-content, .page-content, .wp-block-query,
         .wp-block-post-template, .wp-block-post, article) a[href*="//nooww.com"]:hover,
body :is(.entry-content, .post-content, .page-content, .wp-block-query,
         .wp-block-post-template, .wp-block-post, article) a[href^="/"]:focus-visible,
body :is(.entry-content, .post-content, .page-content, .wp-block-query,
         .wp-block-post-template, .wp-block-post, article) a[href*="//nooww.com"]:focus-visible {
  text-decoration-line: underline !important;
  text-decoration-color: currentColor !important;
}

/* Exclusions navigation */
.site-header nav a,
.main-navigation a,
.wp-block-navigation a,
.wp-block-button__link,
a.wp-element-button {
  text-decoration: none !important;
}

/* Featured images */
.wp-block-post-featured-image {
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: auto !important;
  padding: 0 !important;
  margin: 0.4rem 0 0.8rem !important;
}
.wp-block-post-featured-image > a {
  display: block;
  height: auto !important;
}
.wp-block-post-featured-image img {
  display: block;
  width: 100%;
  height: auto !important;
  object-fit: contain;
  max-width: 100%;
}
.wp-block-post-featured-image[class*="aspect-ratio"],
.wp-block-post-featured-image.has-aspect-ratio {
  aspect-ratio: auto !important;
  padding: 0 !important;
}
h3.wp-block-post-title,
h3.wp-block-heading {
  margin-bottom: 0.45rem !important;
}

/* Override Global Styles */
:root {
  --wp--preset--font-size--small: 16px !important;
  --wp--preset--font-size--medium: 18px !important;
  --wp--preset--font-size--large: 21px !important;
  --wp--preset--font-size--x-large: 26px !important;
}

/* Embeds */
:root {
  --nooww-embed-video-max: 800px;
}
body :is(.entry-content, .post-content, .page-content, .wp-block-post-content,
         .wp-block-post-excerpt, .wp-block-group, .wp-block-columns, .wp-block-query,
         .wp-block-post-template, .wp-block-post, article) figure.wp-block-embed,
body :is(.entry-content, .post-content, .page-content, .wp-block-post-content,
         .wp-block-post-excerpt, .wp-block-group, .wp-block-columns, .wp-block-query,
         .wp-block-post-template, .wp-block-post, article) .wp-block-embed {
  display: flex;
  justify-content: center;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}
body :is(.entry-content, .post-content, .page-content, .wp-block-post-content,
         .wp-block-post-excerpt, .wp-block-group, .wp-block-columns, .wp-block-query,
         .wp-block-post-template, .wp-block-post, article) .wp-block-embed__wrapper {
  display: flex;
  justify-content: center;
  max-width: 100%;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}
body :is(.entry-content, .post-content, .page-content, .wp-block-post-content,
         .wp-block-post-excerpt, .wp-block-group, .wp-block-columns, .wp-block-query,
         .wp-block-post-template, .wp-block-post, article) iframe,
body :is(.entry-content, .post-content, .page-content, .wp-block-post-content,
         .wp-block-post-excerpt, .wp-block-group, .wp-block-columns, .wp-block-query,
         .wp-block-post-template, .wp-block-post, article) .wp-embedded-content,
body :is(.entry-content, .post-content, .page-content, .wp-block-post-content,
         .wp-block-post-excerpt, .wp-block-group, .wp-block-columns, .wp-block-query,
         .wp-block-post-template, .wp-block-post, article) .twitter-tweet,
body :is(.entry-content, .post-content, .page-content, .wp-block-post-content,
         .wp-block-post-excerpt, .wp-block-group, .wp-block-columns, .wp-block-query,
         .wp-block-post-template, .wp-block-post, article) .tiktok-embed,
body :is(.entry-content, .post-content, .page-content, .wp-block-post-content,
         .wp-block-post-excerpt, .wp-block-group, .wp-block-columns, .wp-block-query,
         .wp-block-post-template, .wp-block-post, article) .instagram-media {
  margin: 0 !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box;
}
body :is(.entry-content, .post-content, .page-content, .wp-block-post-content,
         .wp-block-post-excerpt, .wp-block-group, .wp-block-columns, .wp-block-query,
         .wp-block-post-template, .wp-block-post, article) figure.wp-block-embed.is-type-video .wp-block-embed__wrapper {
  width: min(100%, var(--nooww-embed-video-max));
  aspect-ratio: 16 / 9;
}
body :is(.entry-content, .post-content, .page-content) {
  overflow-x: clip;
}
body .aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Ajustements spécifiques */
.entry-content p.has-text-align-center.has-large-font-size,
.entry-content p.has-text-align-center.has-large-font-size mark {
  line-height: 1.5 !important;
}
.single-post .featured-image {
  display: none;
}

.single-post .dt-col-lg-12.content-right .post.post-list .details > h5.post-title + p {
  display: none !important;
}

/* Pattern "visually-hidden" (accessible) */
.single-post h1.title.dt-mt-0.dt-mb-3 {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}