/* Pied de page commun à l’accueil et aux pages HTML autonomes. */
body { padding-bottom: 52px !important; }

body > footer,
.page-footer {
  position: fixed !important;
  z-index: 40;
  inset: auto 0 0;
  width: 100%;
  height: 52px;
  min-height: 52px;
  box-sizing: border-box;
  padding: 8px max(22px, 4vw) !important;
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center;
  justify-content: flex-start;
  gap: 22px;
  overflow: hidden;
  background: #071f24 !important;
  color: #cce5df !important;
  box-shadow: 0 -5px 18px rgba(5, 27, 31, .12);
}

body > footer img { display: none; }
body > footer p { flex: 0 0 auto; margin: 0; font-size: 12px; }
body > footer div {
  min-width: 0;
  display: flex;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 18px;
  margin: 0;
  overflow-x: auto;
  font-size: 13px;
  white-space: nowrap;
}
body > footer small { flex: 0 0 auto; grid-column: auto; color: #8fb3aa; font-size: 10px; white-space: nowrap; }

.page-footer span:first-child { margin-right: auto; font-size: 12px; }
.page-footer a { flex: 0 0 auto; color: inherit; font-size: 13px; text-decoration: none; }

@media (max-width: 1100px) {
  body { padding-bottom: 48px !important; }
  body > footer,
  .page-footer { height: 48px; min-height: 48px; padding: 7px 16px !important; gap: 12px; }
  body > footer p,
  body > footer small,
  .page-footer span:first-child { display: none; }
  body > footer div { justify-content: flex-start; gap: 12px; font-size: 11px; }
  .page-footer { justify-content: center; overflow-x: auto; }
  .page-footer a { font-size: 11px; }
}

@media (max-width: 760px) {
  body > footer div { justify-content: flex-start; }
}
