/* Ne pas modifier le positionnement du lien : le translateY(-50%) desktop appartient à la mise en page. */
/* Les dimensions inline !important sont normalisées par l’installateur, après le correctif mobile existant. */
/* Crédit Wikijeff — La Cuisine de Jean-Philippe — W blanc animé */
.footer-bottom .wikijeff-credit.wj-white-credit {
  --wikijeff-duration: 640ms;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 6px;
  gap: 0;
  box-sizing: border-box;
  overflow: visible;
  opacity: 1;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.footer-bottom .wikijeff-credit.wj-white-credit:is(:link, :visited, :hover, :focus-visible) {
  opacity: 1;
  text-decoration: none;
}

.footer-bottom .wikijeff-credit.wj-white-credit:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
  border-radius: 2px;
}

.footer-bottom .wikijeff-credit.wj-white-credit > svg {
  display: block;
  flex: 0 0 auto;
  width: 32px !important;
  height: 32px !important;
  overflow: visible;
  pointer-events: none;
}

.footer-bottom .wikijeff-credit.wj-white-credit > svg > rect {
  display: none !important;
  animation: none !important;
}

.footer-bottom .wikijeff-credit.wj-white-credit > svg > path {
  fill: #fff;
  transform-box: fill-box;
  transform-origin: 50% 50%;
  transform: translateY(0) rotate(0deg);
}

@media (prefers-reduced-motion: no-preference) {
  .footer-bottom .wikijeff-credit.wj-white-credit.wj-white-w-running > svg > path,
  html:not([data-wj-white-ready]) .footer-bottom .wikijeff-credit.wj-white-credit:focus-visible > svg > path {
    animation: wikijeff-cuisine-w-motion var(--wikijeff-duration) ease-in-out both;
  }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  html:not([data-wj-white-ready]) .footer-bottom .wikijeff-credit.wj-white-credit:hover > svg > path {
    animation: wikijeff-cuisine-w-motion var(--wikijeff-duration) ease-in-out both;
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer-bottom .wikijeff-credit.wj-white-credit > svg > path {
    animation: none !important;
    transform: none !important;
  }
}

@keyframes wikijeff-cuisine-w-motion {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  38% { transform: translateY(-25%) rotate(-10deg); }
  68% { transform: translateY(2%) rotate(3deg); }
}

/* Aucun pictogramme externe ajouté au crédit. */
.footer-bottom .wikijeff-credit.wj-white-credit::before,
.footer-bottom .wikijeff-credit.wj-white-credit::after {
  content: none !important;
  display: none !important;
}

/* Fond sous-page mobile : le papier visible conserve ses couleurs existantes. */
@media (max-width: 767px) {
  html,
  body {
    background-color: #536745 !important;
  }

  body {
    --wj-cuisine-paper: #f6f3ec;
    background-image: linear-gradient(var(--wj-cuisine-paper), var(--wj-cuisine-paper)) !important;
    background-repeat: no-repeat !important;
    background-size: 100% 100% !important;
  }

  body:has(> main.ebook-page) {
    --wj-cuisine-paper: #fff;
  }
}
