.theme-halloween {
  --theme-halloween-ink: #3b2218;
  --theme-halloween-web: rgba(59, 34, 24, 0.38);
  --theme-halloween-web-light: rgba(251, 244, 234, 0.88);
  --theme-halloween-paper: #f8f1e7;
  --theme-halloween-orange: #e07a32;
  --theme-halloween-orange-dark: #c95f22;
  --theme-halloween-green: #78843d;
  --theme-halloween-side-spider-y: 26vh;
}

.theme-halloween span[class*="theme-halloween"] > svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.theme-halloween .theme-halloween-icon__stem {
  fill: #5b351d;
}

.theme-halloween .theme-halloween-icon__leaf {
  fill: var(--theme-halloween-green);
}

.theme-halloween .theme-halloween-icon__pumpkin {
  fill: var(--theme-halloween-orange);
}

.theme-halloween .theme-halloween-icon__pumpkin-shadow {
  fill: var(--theme-halloween-orange-dark);
}

.theme-halloween .theme-halloween-icon__groove {
  fill: none;
  stroke: var(--theme-halloween-orange-dark);
  stroke-width: 1.5;
  opacity: 0.7;
}

.theme-halloween .theme-halloween-icon__face,
.theme-halloween .theme-halloween-icon__ink {
  fill: currentColor;
}

.theme-halloween .theme-halloween-icon__bone {
  fill: #fefcf9;
}

.theme-halloween path.theme-halloween-icon__bone {
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linejoin: round;
}

.theme-halloween .theme-halloween-icon__teeth {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
}

.theme-halloween .theme-halloween-icon__legs {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
}

.theme-halloween .theme-halloween-icon__eye {
  fill: #fefcf9;
}

.theme-halloween .theme-halloween-icon__pupil {
  fill: #111;
}

.theme-halloween .theme-halloween-layer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
}

.theme-halloween .theme-halloween-intro {
  position: fixed;
  inset: 0;
  z-index: 99998;
  display: grid;
  place-items: center;
  overflow: hidden;
  pointer-events: auto;
  background: rgba(36, 21, 14, 0.48);
  opacity: 0;
  transition: opacity 0.5s ease, background 0.85s ease;
}

.theme-halloween .theme-halloween-intro[hidden] {
  display: none;
}

.theme-halloween .theme-halloween-intro.is-visible {
  opacity: 1;
}

.theme-halloween .theme-halloween-intro.is-leaving {
  background: rgba(42, 18, 15, 0);
}

.theme-halloween .theme-halloween-intro__web {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  color: var(--theme-halloween-web-light);
  filter: drop-shadow(0 1px 0 rgba(36, 21, 14, 0.34));
  transform: scale(1);
  transform-origin: center;
  transition: transform 0.9s cubic-bezier(0.55, 0, 0.3, 1), opacity 0.85s ease;
}

.theme-halloween span.theme-halloween-intro__web > svg {
  width: 100%;
  height: 100%;
}

.theme-halloween .theme-halloween-intro.is-leaving .theme-halloween-intro__web {
  opacity: 0;
  transform: scale(1.18) rotate(7deg);
}

.theme-halloween .theme-halloween-intro__thread {
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: calc(40vh - 18px);
  background: rgba(251, 244, 234, 0.82);
  transform: translateX(-50%);
  transform-origin: top center;
  transition: transform 0.9s cubic-bezier(0.55, 0, 0.3, 1), opacity 0.6s ease;
}

.theme-halloween .theme-halloween-intro__spider {
  position: absolute;
  top: calc(40vh - 28px);
  left: 50%;
  width: 62px;
  color: var(--theme-halloween-ink);
  transform: translateX(-50%);
  animation: theme-halloween-bob 3s ease-in-out infinite;
  transition: transform 0.9s cubic-bezier(0.55, 0, 0.3, 1), opacity 0.6s ease;
}

.theme-halloween .theme-halloween-intro.is-leaving .theme-halloween-intro__thread,
.theme-halloween .theme-halloween-intro.is-leaving .theme-halloween-intro__spider {
  opacity: 0;
  transform: translate(-50%, -110vh);
}

.theme-halloween .theme-halloween-intro__copy {
  position: absolute;
  left: 50%;
  bottom: 10vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  transform: translateX(-50%);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.theme-halloween .theme-halloween-intro__message {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: min(84vw, 340px);
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--theme-halloween-paper);
  color: var(--theme-halloween-ink);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.24);
  cursor: pointer;
}

.theme-halloween .theme-halloween-intro__message strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(20px, 2.1vw, 28px);
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}

.theme-halloween .theme-halloween-intro__caption {
  color: var(--theme-halloween-paper);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.theme-halloween .theme-halloween-intro.is-leaving .theme-halloween-intro__copy {
  opacity: 0;
  transform: translate(-50%, 18px);
}

.theme-halloween .theme-halloween-global-deco {
  position: fixed;
  z-index: 1001;
  display: block;
  width: 132px;
  color: var(--theme-halloween-web);
  pointer-events: none;
}

.theme-halloween .theme-halloween-global-deco--top-left {
  top: var(--site-banner-height, 0);
  left: 0;
}

.theme-halloween .theme-halloween-global-deco--top-right {
  top: var(--site-banner-height, 0);
  right: 0;
  transform: scaleX(-1);
}

.theme-halloween .theme-halloween-global-deco--bottom-left {
  bottom: 0;
  left: 0;
  transform: scaleY(-1);
}

.theme-halloween .theme-halloween-hanging {
  position: fixed;
  z-index: 1002;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--theme-halloween-ink);
  pointer-events: none;
  transform-origin: top center;
  animation: theme-halloween-sway 4.8s ease-in-out infinite;
}

.theme-halloween .theme-halloween-hanging--header {
  top: var(--site-banner-height, 0);
  right: 15vw;
}

.theme-halloween .theme-halloween-hanging--side {
  top: 0;
  left: 4vw;
  height: var(--theme-halloween-side-spider-y);
  animation-duration: 5.6s;
  transition: height 0.16s ease-out;
  will-change: height;
}

.theme-halloween .theme-halloween-hanging__thread {
  display: block;
  width: 1px;
  height: 78px;
  background: rgba(69, 17, 19, 0.32);
}

.theme-halloween .theme-halloween-hanging__spider {
  width: 34px;
  margin-top: -4px;
  animation: theme-halloween-bob 3.2s ease-in-out infinite;
}

.theme-halloween .theme-halloween-hanging--side .theme-halloween-hanging__thread {
  flex: 1 1 auto;
  height: auto;
  min-height: 76px;
  transition: min-height 0.16s ease-out;
}

.theme-halloween .theme-halloween-layer.is-scroll-moving .theme-halloween-hanging--side {
  animation-duration: 1.8s;
}

.theme-halloween .theme-halloween-layer.is-scroll-moving .theme-halloween-hanging--side .theme-halloween-hanging__spider {
  animation: theme-halloween-scroll-dangle 0.78s ease-in-out infinite;
}

.theme-halloween .theme-page-accueil .home-swiper {
  position: relative;
}

.theme-halloween .theme-halloween-home-decos {
  position: absolute;
  inset: 0;
  z-index: 9;
  pointer-events: none;
}

.theme-halloween .theme-halloween-home-deco {
  position: absolute;
  display: block;
}

.theme-halloween .theme-halloween-home-deco--hero-web {
  top: 0;
  right: 0;
  width: clamp(116px, 13vw, 188px);
  color: rgba(69, 17, 19, 0.2);
  transform: scaleX(-1);
}

.theme-halloween .theme-halloween-home-deco--pumpkin {
  right: clamp(16px, 3.5vw, 52px);
  bottom: clamp(16px, 2.2vw, 30px);
  width: clamp(42px, 4vw, 62px);
  color: var(--theme-halloween-ink);
  animation: theme-halloween-flicker 3.4s ease-in-out infinite;
}

.theme-halloween .card-product,
.theme-halloween .card-post,
.theme-halloween .card-recette {
  position: relative;
}

.theme-halloween .theme-halloween-card-deco {
  position: absolute;
  z-index: 4;
  display: block;
  pointer-events: none;
}

.theme-halloween .theme-halloween-card-deco--web {
  top: 0;
  right: 0;
  width: 82px;
  overflow: hidden;
  border-top-right-radius: 10px;
  color: rgba(69, 17, 19, 0.24);
  transform: scaleX(-1);
}

.theme-halloween .theme-halloween-card-deco--web > svg {
  overflow: hidden;
}

.theme-halloween .theme-halloween-card-deco--pumpkin {
  top: -18px;
  right: 14px;
  width: 44px;
  color: var(--theme-halloween-ink);
  animation: theme-halloween-flicker 3.8s ease-in-out infinite;
}

.theme-halloween .theme-halloween-card-deco--skull {
  top: -14px;
  right: 18px;
  display: none;
  width: 34px;
  color: rgba(69, 17, 19, 0.9);
  transform: rotate(10deg);
}

.theme-halloween .swiper-slide:nth-child(3n) .theme-halloween-card-deco--pumpkin,
.theme-halloween .grid > .card-product:nth-child(3n) .theme-halloween-card-deco--pumpkin {
  display: none;
}

.theme-halloween .swiper-slide:nth-child(3n) .theme-halloween-card-deco--skull,
.theme-halloween .grid > .card-product:nth-child(3n) .theme-halloween-card-deco--skull {
  display: block;
}

.theme-halloween .produit {
  position: relative;
}

.theme-halloween .theme-halloween-product-deco {
  position: absolute;
  z-index: 4;
  display: block;
  pointer-events: none;
}

.theme-halloween .theme-halloween-product-deco--web {
  top: -74px;
  right: 0;
  width: 174px;
  color: rgba(69, 17, 19, 0.22);
  transform: scaleX(-1);
}

.theme-halloween .theme-halloween-product-deco--spider {
  top: -82px;
  right: 42%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform-origin: top center;
  animation: theme-halloween-sway 4.5s ease-in-out infinite;
}

.theme-halloween .theme-halloween-product-deco--pumpkin {
  right: 24px;
  bottom: -22px;
  width: 64px;
  color: var(--theme-halloween-ink);
  animation: theme-halloween-flicker 3.5s ease-in-out infinite;
}

.theme-halloween .single-article,
.theme-halloween .article-free {
  position: relative;
}

.theme-halloween .theme-halloween-article-deco {
  position: absolute;
  z-index: 3;
  display: block;
  pointer-events: none;
}

.theme-halloween .theme-halloween-article-deco--web {
  top: 0;
  right: 0;
  width: 128px;
  color: rgba(69, 17, 19, 0.2);
  transform: scaleX(-1);
}

.theme-halloween .theme-halloween-article-deco--pumpkin {
  top: 98px;
  left: -18px;
  width: 50px;
  color: var(--theme-halloween-ink);
  animation: theme-halloween-flicker 3.8s ease-in-out infinite;
}

.theme-halloween .theme-halloween-article-deco--skull {
  top: 86px;
  left: -12px;
  width: 38px;
  color: rgba(69, 17, 19, 0.9);
  transform: rotate(-8deg);
}

.theme-halloween .footer-site {
  position: relative;
  overflow: visible;
}

.theme-halloween .footer-site > .layout-maxed {
  position: relative;
  z-index: 1;
}

.theme-halloween .theme-halloween-footer {
  position: absolute;
  top: -46px;
  right: clamp(18px, 8vw, 110px);
  z-index: 2;
  display: flex;
  align-items: flex-end;
  gap: 14px;
  pointer-events: none;
}

.theme-halloween .theme-halloween-footer__pumpkin,
.theme-halloween .theme-halloween-footer__skull {
  display: block;
  color: var(--theme-halloween-ink);
  animation: theme-halloween-flicker 3.6s ease-in-out infinite;
}

.theme-halloween .theme-halloween-footer__pumpkin--one {
  width: 58px;
}

.theme-halloween .theme-halloween-footer__pumpkin--two {
  width: 36px;
  animation-delay: 0.35s;
}

.theme-halloween .theme-halloween-footer__pumpkin--three {
  width: 44px;
  animation-delay: 0.7s;
}

.theme-halloween .theme-halloween-footer__skull {
  width: 32px;
  color: var(--theme-halloween-ink);
  animation-delay: 0.5s;
}

.theme-halloween.theme-discreet-page .theme-halloween-intro,
.theme-halloween.theme-discreet-page .theme-halloween-hanging,
.theme-halloween.theme-discreet-page .theme-halloween-home-decos,
.theme-halloween.theme-discreet-page .theme-halloween-card-deco,
.theme-halloween.theme-discreet-page .theme-halloween-product-deco,
.theme-halloween.theme-discreet-page .theme-halloween-article-deco {
  display: none;
}

.theme-halloween.theme-discreet-page .theme-halloween-global-decos {
  opacity: 0.28;
}

.theme-halloween.theme-discreet-page .theme-halloween-footer {
  opacity: 0.38;
  transform: scale(0.82);
  transform-origin: right top;
}

@media screen and (max-width: 992px) {
  .theme-halloween .theme-halloween-global-deco {
    width: 96px;
  }

  .theme-halloween .theme-halloween-global-deco--top-left,
  .theme-halloween .theme-halloween-global-deco--bottom-left,
  .theme-halloween .theme-halloween-hanging--side,
  .theme-halloween .theme-halloween-home-deco--hero-web {
    display: none;
  }

  .theme-halloween .theme-halloween-hanging--header {
    right: 10vw;
  }

  .theme-halloween .theme-halloween-hanging__thread {
    height: 54px;
  }

  .theme-halloween .theme-halloween-hanging__spider {
    width: 28px;
  }

  .theme-halloween .theme-halloween-intro__message {
    min-width: min(88vw, 300px);
    padding: 13px 20px;
  }

  .theme-halloween .theme-halloween-intro__message strong {
    font-size: 22px;
    line-height: 1.15;
    white-space: normal;
  }

  .theme-halloween .theme-halloween-intro__caption {
    max-width: 86vw;
    font-size: 11px;
  }

  .theme-halloween .theme-halloween-card-deco--web {
    width: 56px;
  }

  .theme-halloween .theme-halloween-card-deco--pumpkin {
    top: -13px;
    right: 8px;
    width: 32px;
  }

  .theme-halloween .theme-halloween-card-deco--skull {
    top: -10px;
    right: 10px;
    width: 28px;
  }

  .theme-halloween .theme-halloween-product-deco--web {
    top: -10px;
    width: 118px;
  }

  .theme-halloween .theme-halloween-product-deco--spider,
  .theme-halloween .theme-halloween-product-deco--pumpkin,
  .theme-halloween .theme-halloween-article-deco--pumpkin,
  .theme-halloween .theme-halloween-article-deco--skull {
    display: none;
  }

  .theme-halloween .theme-halloween-article-deco--web {
    width: 92px;
  }

  .theme-halloween .theme-halloween-footer {
    top: -32px;
    gap: 8px;
  }

  .theme-halloween .theme-halloween-footer__pumpkin--one {
    width: 42px;
  }

  .theme-halloween .theme-halloween-footer__pumpkin--two,
  .theme-halloween .theme-halloween-footer__pumpkin--three {
    width: 30px;
  }

  .theme-halloween .theme-halloween-footer__skull {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .theme-halloween .theme-halloween-intro,
  .theme-halloween .theme-halloween-intro__web,
  .theme-halloween .theme-halloween-intro__thread,
  .theme-halloween .theme-halloween-intro__spider,
  .theme-halloween .theme-halloween-intro__copy,
  .theme-halloween .theme-halloween-intro__message,
  .theme-halloween .theme-halloween-intro__caption,
  .theme-halloween .theme-halloween-hanging,
  .theme-halloween .theme-halloween-hanging__spider,
  .theme-halloween .theme-halloween-home-deco,
  .theme-halloween .theme-halloween-card-deco,
  .theme-halloween .theme-halloween-product-deco,
  .theme-halloween .theme-halloween-article-deco,
  .theme-halloween .theme-halloween-footer__pumpkin,
  .theme-halloween .theme-halloween-footer__skull {
    animation: none !important;
    transition: none !important;
  }
}

@keyframes theme-halloween-sway {
  0%,
  100% {
    transform: rotate(-4deg);
  }

  50% {
    transform: rotate(5deg);
  }
}

@keyframes theme-halloween-bob {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 8px;
  }
}

@keyframes theme-halloween-scroll-dangle {
  0%,
  100% {
    translate: 0 0;
  }

  42% {
    translate: 0 13px;
  }

  72% {
    translate: 0 -5px;
  }
}

@keyframes theme-halloween-flicker {
  0%,
  100% {
    opacity: 1;
    transform: translateY(0);
  }

  48% {
    opacity: 0.78;
    transform: translateY(4px);
  }

  62% {
    opacity: 0.94;
  }
}
