/* JELANI.CI V0.8.1 – correction ciblée du bas de page (5 liens légaux) */
.site-footer .footer-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  justify-items: start;
  gap: 17px;
}
.site-footer .footer-bottom > span {
  display: block;
}
.site-footer .footer-bottom .legal-links {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  justify-items: start;
  gap: 2px;
  width: 100%;
  min-width: 0;
}
.site-footer .footer-bottom .legal-links > a,
.site-footer .footer-bottom .legal-links > button {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 38px;
  padding: 7px 0;
  margin: 0;
  white-space: normal;
  line-height: 1.45;
  font-size: 11px;
  font-family: inherit;
  font-weight: 400;
  text-align: left;
  color: #b9c4dc;
}
.site-footer .footer-bottom .legal-links > button {
  cursor: pointer;
  border: 0;
  border-radius: 0;
  background: transparent;
  appearance: none;
}
.site-footer .footer-bottom .legal-links > a:hover,
.site-footer .footer-bottom .legal-links > button:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.site-footer .footer-bottom .legal-links > a:focus-visible,
.site-footer .footer-bottom .legal-links > button:focus-visible {
  outline: 2px solid #80a9ff;
  outline-offset: 4px;
}
/* Écrans intermédiaires : copyright et langue en haut, liens sur une ligne centrée. */
@media (min-width: 700px) and (max-width: 1099px) {
  .site-footer .footer-bottom {
    grid-template-columns: minmax(0, 1fr) max-content;
    gap: 10px 18px;
    align-items: center;
  }
  .site-footer .footer-bottom > span { grid-row: 1; grid-column: 1; }
  .site-footer .footer-bottom > .language-placeholder { grid-row: 1; grid-column: 2; justify-self: end; }
  .site-footer .footer-bottom .legal-links {
    grid-row: 2;
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4px 18px;
  }
  .site-footer .footer-bottom .legal-links > a,
  .site-footer .footer-bottom .legal-links > button {
    white-space: nowrap;
  }
}
/* Grands écrans : copyright | 5 liens alignés | langue. */
@media (min-width: 1100px) {
  .site-footer .footer-bottom {
    grid-template-columns: max-content minmax(0, 1fr) max-content;
    column-gap: 18px;
    align-items: center;
  }
  .site-footer .footer-bottom .legal-links {
    display: flex;
    width: auto;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: clamp(10px, 1.05vw, 17px);
    min-width: 0;
  }
  .site-footer .footer-bottom .legal-links > a,
  .site-footer .footer-bottom .legal-links > button {
    white-space: nowrap;
    font-size: 9px;
    min-height: 36px;
  }
  .site-footer .footer-bottom > .language-placeholder {
    justify-self: end;
    white-space: nowrap;
  }
}
/* Mobile : cinq liens sur une colonne, alignés à gauche et faciles à toucher. */
@media (max-width: 699px) {
  .site-footer .footer-bottom { gap: 14px; }
  .site-footer .footer-bottom > span { font-size: 11px; }
  .site-footer .footer-bottom .legal-links > a,
  .site-footer .footer-bottom .legal-links > button {
    font-size: 12px;
    min-height: 42px;
  }
  .site-footer .footer-bottom > .language-placeholder {
    justify-self: start;
    margin-top: 4px;
  }
}
