/* Couleur et contraste définitifs de l'en-tête — chargés en dernier partout. */
body[class] > .site-header {
  border-bottom: 1px solid rgba(23, 23, 19, .12) !important;
  background: #f2ede2 !important;
  box-shadow: 0 8px 28px rgba(38, 32, 22, .06) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

body[class] .site-header .brand-text,
body[class] .site-header .brand-text:visited,
body[class] .site-header .brand-text:is(:hover, :focus-visible) {
  color: #e0a62f !important;
  text-shadow: none !important;
}

body[class] .site-header .brand-text span {
  color: #171713 !important;
  font-size: 8px !important;
  font-weight: 650 !important;
  letter-spacing: .3em !important;
  -webkit-text-stroke: 0 transparent !important;
  paint-order: normal !important;
  text-shadow: none !important;
}

/* Hors accueil, la signature devient entièrement noire. */
body:not(.home-page) .site-header .brand-text,
body:not(.home-page) .site-header .brand-text:visited,
body:not(.home-page) .site-header .brand-text:is(:hover, :focus-visible),
body:not(.home-page) .site-header .brand-text span {
  color: #111111 !important;
}

body[class] .site-header .site-nav a,
body[class] .site-header .site-nav a:visited,
body[class] .site-header .site-nav a[aria-current="page"] {
  color: #171713 !important;
}

body:not(.home-page) .site-header .site-nav a:is(:hover, :focus-visible) {
  color: #e0a62f !important;
}

.home-page .site-header .site-nav a:is(:hover, :focus-visible) {
  color: #fff9ec !important;
}

body[class] .site-header .instagram-link,
body[class] .site-header .instagram-link:visited {
  color: #171713 !important;
}

body[class] .site-header .instagram-link svg {
  stroke: currentColor !important;
}

/* L'accueil conserve l'en-tête transparent superposé à la vidéo. */
body.home-page > .site-header {
  border: 0 !important;
  background: linear-gradient(180deg, rgba(5, 7, 5, .64), transparent) !important;
  box-shadow: none !important;
}

body.home-page > .site-header.is-scrolled {
  background: rgba(10, 12, 9, .82) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.1) !important;
  backdrop-filter: blur(18px) saturate(1.1) !important;
}

body.home-page .site-header .header-row {
  justify-content: space-between !important;
}

body.home-page .site-header .brand-text,
body.home-page .site-header .brand-text:visited,
body.home-page .site-header .brand-text:is(:hover, :focus-visible) {
  display: inline-flex !important;
  color: #e0a62f !important;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .26) !important;
}

body.home-page .site-header .brand-text span {
  color: #fffaf0 !important;
  font-size: 7px !important;
  font-weight: 600 !important;
  letter-spacing: .38em !important;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .38) !important;
}

body.home-page .site-header .site-nav a,
body.home-page .site-header .site-nav a:visited,
body.home-page .site-header .site-nav a[aria-current="page"] {
  color: rgba(248, 242, 230, .9) !important;
}

@media (max-width: 780px) {
  body:not(.home-page) .site-header .brand-text span {
    font-size: 7px !important;
  }

  body[class] .site-header .menu-toggle {
    border-color: rgba(23, 23, 19, .28) !important;
    color: #171713 !important;
    background: transparent !important;
  }

  body[class] .site-header .site-nav {
    border-color: rgba(23, 23, 19, .12) !important;
    background: #f2ede2 !important;
    box-shadow: 0 20px 50px rgba(38, 32, 22, .14) !important;
  }

  body[class] .site-header .site-nav a,
  body[class] .site-header .site-nav a:visited,
  body[class] .site-header .site-nav a[aria-current="page"] {
    color: #171713 !important;
  }

  body:not(.home-page) .site-header .site-nav a:is(:hover, :focus-visible) {
    color: #e0a62f !important;
  }

  body.home-page .site-header .menu-toggle {
    border-color: rgba(255, 250, 240, .32) !important;
    color: #fffaf0 !important;
  }

  body.home-page .site-header .site-nav {
    border-color: rgba(224, 166, 47, .24) !important;
    background: rgba(5, 16, 12, .98) !important;
    box-shadow: 0 20px 55px rgba(0, 0, 0, .24) !important;
  }

  body.home-page .site-header .site-nav a,
  body.home-page .site-header .site-nav a:visited,
  body.home-page .site-header .site-nav a[aria-current="page"] {
    color: rgba(255, 250, 240, .9) !important;
  }
}
