/* Sticky preheader on desktop only, with layout compensation for shifted content */
@media (min-width: 1025px) {
  #preheader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
  }

  /* Push the preheader below the WP admin bar so it doesn't overlap it */
  body.admin-bar #preheader {
    top: var(--wp-admin--admin-bar--height, 32px);
  }

  body.has-og-sticky-preheader {
    padding-top: var(--og-preheader-height, 0px);
  }

  /* Keep the second flexbox above the rest of the content, below the sticky preheader */
  #headerr {
    position: relative;
    z-index: 99;
  }
}

/* Highlight the search term Relevanssi jumps to when arriving from a search result */
.relevanssi-query-term {
  background: rgba(192, 0, 54, 0.15);
  color: #C00036;
  border-radius: 3px;
  padding: 0 2px;
}

/* Accessibility: links inside text must not rely on color alone to be distinguishable */
.elementor-widget-breadcrumbs a {
  text-decoration: underline !important;
}

/* Accessibility: post date meta text was below the WCAG AA contrast ratio (3.89 vs 4.5 required) */
.elementor-post-info__item--type-date time {
  color: #595959;
}

/* Avoid the accordion title hiding under the sticky preheader when jumping to it from the "sommaire" */
.e-n-accordion-item {
  scroll-margin-top: var(--og-preheader-height, 0px);
}

/* Highlight the "sommaire" entry matching the currently opened accordion item */
.og-sommaire-active,
.og-sommaire-active .elementor-icon-list-text {
  color: #C00036 !important;
  font-weight: 700 !important;
}
