/* Footer — sticks to bottom via body flex */

body.page-no-footer .site-footer-group {
  display: none !important;
}

:root {
  --footer-bg: #0c2560;
  --footer-text: #e2e8f0;
  --footer-link: #93c5fd;
  --footer-bar-height: 3.5rem;
}

[data-theme="dark"] {
  --footer-bg: #0a1a3d;
  --footer-text: #cbd5e1;
  --footer-link: #93c5fd;
}

.site-footer-group {
  position: relative;
  margin-top: auto;
  flex-shrink: 0;
  overflow: visible;
}

.site-footer {
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  min-height: var(--footer-bar-height);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 2rem;
  font-size: 0.85rem;
  line-height: 1.35;
  background: var(--footer-bg, #0c2560);
  color: var(--footer-text, #e2e8f0);
}

.site-footer-build {
  margin: 0;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--footer-link, #93c5fd);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* Pieuvre (PNG transparent) ancrée au footer, défile avec la page */
.site-footer-octo {
  position: absolute;
  left: 0;
  bottom: 100%;
  z-index: 1;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  line-height: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.site-footer-group.site-footer--octo-visible .site-footer-octo,
.site-footer-octo.is-visible {
  visibility: visible;
}

.site-footer-octo img {
  display: block;
  width: clamp(14rem, 36vw, 28rem);
  height: auto;
  max-width: none;
  opacity: 0.88;
  filter: contrast(1.35);
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-touch-callout: none;
}

[data-theme="dark"] .site-footer-octo img {
  filter: brightness(2.65) contrast(1.08);
  opacity: 0.72;
}

.site-footer-octo--broken::after {
  content: "";
  display: block;
  width: 4rem;
  height: 4rem;
  background: #64748b;
  opacity: 0.35;
  border-radius: 50%;
}

.site-footer-octo--broken img {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .site-footer-octo {
    transition: none;
  }
}

@media (max-width: 768px) {
  :root {
    --footer-bar-height: 3.25rem;
  }

  .site-footer {
    padding: 0 1rem;
    font-size: 0.8rem;
  }

  .site-footer-octo img {
    width: clamp(10rem, 52vw, 18rem);
  }
}
