/* Original Grimoire homepage banner, shared across the Shopify theme. */
.grimoire-global-shell .cdn-wrap {
  --c-bg: #1A1A1A;
  --c-white: #f0e6d0;
  --c-accent: #c9a84c;
  --c-accent-glow: rgba(201, 168, 76, 0.35);
  --r-full: 9999px;
  --f-sans: "Cinzel", Georgia, serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-normal: 0.4s var(--ease-out);
}

.grimoire-systeme-clone.grimoire-global-shell {
  position: sticky;
  top: 0;
  z-index: 1200;
}

.grimoire-global-shell .header,
.grimoire-global-shell .header-inner {
  background: #1A1A1A !important;
  background-color: #1A1A1A !important;
}

@keyframes grimoireHeaderGradientFlow {
  0% {
    background-position: 0% 50%;
  }

  25% {
    background-position: 50% 100%;
  }

  50% {
    background-position: 100% 50%;
  }

  75% {
    background-position: 50% 0%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes grimoireHeaderShimmer {
  0% {
    transform: translateX(-200%);
  }

  100% {
    transform: translateX(200%);
  }
}

@keyframes grimoireHeaderFlicker {
  0%,
  100% {
    opacity: 1;
  }

  5% {
    opacity: 0.8;
  }

  10% {
    opacity: 1;
  }

  15% {
    opacity: 0.6;
  }

  20%,
  80% {
    opacity: 1;
  }

  85% {
    opacity: 0.7;
  }

  90% {
    opacity: 1;
  }
}

.grimoire-global-shell .cdn-wrap .top-bar {
  position: relative;
  overflow: hidden;
  padding: 10px 16px;
  text-align: center;
  background: linear-gradient(90deg, #6b1515 0%, #8b2020 25%, #c9a84c 50%, #8b2020 75%, #6b1515 100%) !important;
  background-size: 300% 100% !important;
  animation: grimoireHeaderGradientFlow 8s ease infinite;
  border-bottom: 0;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.grimoire-global-shell .cdn-wrap .top-bar::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.3), transparent);
  animation: grimoireHeaderShimmer 3s infinite linear;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.grimoire-global-shell .cdn-wrap .top-bar::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.5), transparent);
}

.grimoire-global-shell .cdn-wrap .top-bar-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.grimoire-global-shell .cdn-wrap .top-bar-text {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  color: var(--c-white);
  font-family: var(--f-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.grimoire-global-shell .cdn-wrap .top-bar-badge {
  color: var(--c-accent);
  background: var(--c-bg);
  border-radius: var(--r-full);
  padding: 4px 12px;
  font-family: var(--f-sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  transition: transform var(--t-normal);
}

.grimoire-global-shell .cdn-wrap .top-bar-badge:hover {
  transform: scale3d(1.05, 1.05, 1);
}

.grimoire-global-shell .cdn-wrap .top-bar-icon {
  display: inline-block;
  animation: grimoireHeaderFlicker 3s ease-in-out infinite;
  filter: drop-shadow(0 0 6px rgba(201, 168, 76, 0.6));
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.grimoire-global-shell .cdn-wrap .top-bar-copy--mobile {
  display: none;
}

@media (max-width: 749px) {
  .grimoire-global-shell .cdn-wrap .top-bar {
    padding: 7px 8px;
  }

  .grimoire-global-shell .cdn-wrap .top-bar-content,
  .grimoire-global-shell .cdn-wrap .top-bar-text {
    flex-wrap: nowrap;
    white-space: nowrap;
  }

  .grimoire-global-shell .cdn-wrap .top-bar-text {
    gap: 4px;
    font-size: clamp(7px, 2.1vw, 9px);
    letter-spacing: 0.04em;
  }

  .grimoire-global-shell .cdn-wrap .top-bar-copy--desktop {
    display: none;
  }

  .grimoire-global-shell .cdn-wrap .top-bar-copy--mobile {
    display: inline;
  }

  .grimoire-global-shell .cdn-wrap .top-bar-badge {
    flex: 0 0 auto;
    padding: 3px 6px;
    font-size: clamp(6.5px, 1.9vw, 7.5px);
    letter-spacing: 0.08em;
  }
}

@media (max-width: 390px) {
  .grimoire-global-shell .cdn-wrap .top-bar-icon {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .grimoire-global-shell .cdn-wrap .top-bar-text {
    font-size: 9px;
  }

  .grimoire-global-shell .cdn-wrap .top-bar-badge {
    padding: 2px 6px;
    font-size: 7px;
  }
}

@media (max-width: 360px) {
  .grimoire-global-shell .cdn-wrap .top-bar {
    padding: 6px 8px;
  }

  .grimoire-global-shell .cdn-wrap .top-bar-text {
    font-size: 8px;
  }

  .grimoire-global-shell .cdn-wrap .top-bar-badge {
    padding: 2px 5px;
    font-size: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .grimoire-global-shell .cdn-wrap .top-bar,
  .grimoire-global-shell .cdn-wrap .top-bar::before,
  .grimoire-global-shell .cdn-wrap .top-bar-icon {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
/* Fix global header wrapper: it must not inherit landing min-height. */
.grimoire-systeme-clone.grimoire-global-shell,
body.grimoire-native-home .grimoire-systeme-clone.grimoire-global-shell {
  min-height: 0 !important;
  height: auto !important;
  position: relative !important;
  z-index: 1200 !important;
  overflow: visible !important;
}
.grimoire-systeme-clone.grimoire-global-shell .cdn-wrap,
body.grimoire-native-home .grimoire-systeme-clone.grimoire-global-shell .cdn-wrap {
  min-height: 0 !important;
  height: auto !important;
}
