/* Site Logo Component Styles */
.c-site-logo a {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.c-site-logo__item {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.c-site-logo__item--first svg {
  width: 100%;
}

/* Responsive: side by side on larger screens */
@media (min-width: 1156px) {
  .c-site-logo a {
    flex-direction: row;  /* Items display side-by-side */
  }

  .c-site-logo__item--second {
    flex: 1;  /* Allow second item to grow and take available space */
    min-width: 200px;  /* Ensure minimum width for the SVG background */
  }


}
@media (max-width: 968px) {
  .c-hdr__cta {
    display: none;
  }
}

/* Hide text while keeping it accessible to screen readers */
.site-name,
.site-slogan {
  overflow: hidden;
  text-indent: -9999px;
  white-space: nowrap;
}

/* Ensure the site-name has proper dimensions for SVG background */
.c-site-logo__item--second .site-name {
  width: 100%;
  height: 100%;
  min-height: 64px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

@media (prefers-color-scheme: light) {
  .c-site-logo__item--second .site-name {
    background-image: url('images/jrb-courtier-noir-min.svg');
  }
}

@media (prefers-color-scheme: dark) {
  .c-site-logo__item--second .site-name {
    background-image: url('images/jrb-courtier-blanc-min.svg');
  }
}
