/* Footer partagé : liens éditoriaux, contrastés et lisibles. */
.site-footer {
  background: #eee8f1;
  padding: 18px clamp(24px, 7vw, 100px) 8px;
  overflow: visible;
}
.footer-inner {
  position: relative;
  max-width: 1220px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: clamp(18px, 3vw, 38px);
}
.footer-column { min-width: 0; }
.footer-title {
  margin: 0 0 8px;
  padding: 0 0 6px;
  border-bottom: 1px solid #d1cbd3;
  color: #7a1fd1;
  font: 800 .78rem/1.25 var(--display, sans-serif);
  letter-spacing: .105em;
  text-transform: uppercase;
}
.footer-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-list a {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: #29252c;
  font: 400 .98rem/1.35 var(--display, sans-serif);
  text-decoration: none;
  text-underline-offset: 4px;
}
.footer-list a:hover { color: #7a1fd1; text-decoration: underline; }
.footer-list a:focus-visible { outline: 2px solid #7a1fd1; outline-offset: 3px; }
.footer-external-icon {
  position: relative;
  top: .11em;
  flex: 0 0 13px;
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.footer-brand { grid-column: 1 / -1; align-self: end; min-width: 0; margin-top: 18px; padding-right: 280px; }
.footer-brand > a { position: relative; display: block; width: min(100%, 230px); height: 58px; overflow: visible; margin: 0 0 6px; }
.footer-brand img { position: absolute; left: 0; bottom: 0; display: block; width: 230px; max-width: 100%; max-height: 78px; height: auto; object-fit: contain; object-position: left bottom; }
.nonofficial { margin: 0; color: #706a72; font-size: .72rem; }
.footer-art {
  position: absolute;
  right: 0;
  bottom: -20px;
  z-index: 0;
  width: min(100%, 280px);
  height: 190px;
  max-height: 190px;
  margin: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  pointer-events: none;
}
.footer-art img { width: 100%; height: 100%; max-height: 190px; object-fit: contain; object-position: right bottom; }
.footer-bottom {
  max-width: 1220px;
  margin: 10px auto 0;
  padding-top: 7px;
  border-top: 1px solid #d8d0dc;
  color: #706a72;
  font: 400 .68rem/1.4 var(--display, sans-serif);
}
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; }
  .footer-brand { grid-column: 1 / -1; grid-row: auto; }
  .footer-art { right: 0; bottom: -28px; width: min(100%, 230px); height: 165px; max-height: 165px; }
}
@media (max-width: 600px) {
  .site-footer { padding: 18px 20px 8px; }
  .footer-inner { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .footer-column { width: 100%; }
  .footer-title { margin-bottom: 6px; padding-bottom: 5px; }
  .footer-list { gap: 5px; }
  .footer-list a { font-size: 1rem; }
  .footer-brand { grid-column: 1; grid-row: auto; margin-top: 0; padding-right: 165px; }
  .footer-brand > a { width: min(100%, 160px); height: 44px; }
  .footer-brand img { width: 160px; max-height: 56px; }
  .footer-art { right: 0; bottom: -22px; width: 180px; height: 140px; max-height: 140px; }
  .footer-bottom { margin-top: 12px; }
}
