/* Display the supplied logo faithfully, framing its original white margins. */
.brand-logo {
  position: relative;
  display: block;
  flex-shrink: 0;
  width: 180px;
  aspect-ratio: 1104 / 482;
  overflow: hidden;
  margin: 0;
  padding: 0;
  background: var(--navy);
  font-size: 0;
  line-height: 0;
  letter-spacing: 0;
  isolation: isolate;
}

.brand-logo > img {
  position: absolute;
  left: -21.014493%;
  top: -62.655602%;
  width: 139.130435%;
  max-width: none;
  height: auto;
  filter: invert(1);
  mix-blend-mode: screen;
  pointer-events: none;
}

.wordmark { gap: 0; }
.wordmark > .brand-logo { margin: 0; }
.footer-brand > .brand-logo { width: 136px; margin: 0; }
.footer-brand > .footer-brand-caption { margin-top: 12px; }

/* Room for the Photo / Vidéo destination in the shared navigation. */
@media (min-width: 561px) and (max-width: 1250px) {
  .site-header .header-caption { display: none; }
}
@media (min-width: 561px) and (max-width: 950px) {
  .site-header { flex-wrap: wrap; height: auto; min-height: 103px; padding-block: 20px; gap: 18px; }
  .site-header .navigation { flex-wrap: wrap; gap: 14px 23px; }
}

@media (max-width: 560px) {
  .wordmark > .brand-logo { width: 142px; }
  .footer-brand > .brand-logo { width: 120px; }
}

/* The supplied Dajigo symbol replaces the home closing panel's asterisk.
   Its SVG embeds the original image and preserves the exact silhouette. */
.home-page .next-chapter {
  background: #BE164C;
  isolation: isolate;
}
.home-page .next-chapter:hover { background: #BE164C; }
.home-page .next-chapter::after {
  content: '';
  position: absolute;
  width: clamp(230px, 24vw, 340px);
  height: auto;
  aspect-ratio: 245 / 328;
  top: 50%;
  right: 25%;
  transform: translateY(-50%) rotate(9deg);
  background: #f6eddb;
  opacity: .085;
  -webkit-mask: url('/assets/dajigo-symbol.svg') center / contain no-repeat;
  mask: url('/assets/dajigo-symbol.svg') center / contain no-repeat;
  font-size: 0;
  line-height: normal;
  z-index: -1;
  pointer-events: none;
}
@media (max-width: 560px) {
  .home-page .next-chapter::after { width: 230px; right: -34px; }
}

/* Keep room for the private team destination in the public navigation. */
@media (min-width: 951px) { .site-header .navigation { gap: clamp(16px, 2vw, 28px); } }
@media (min-width: 561px) and (max-width: 1400px) { .site-header .header-caption { display: none; } }
