/* Pied de page commun : liens lisibles et même composition sur chaque page. */
body > .site-footer {
  padding: 40px var(--page-gutter, 32px) 20px;
  border-top: 1px solid var(--border-color, #343b45);
  background: #0d1014;
  color: var(--text-muted, #b6b8bf);
  font-size: .875rem;
  line-height: 1.65;
}

.site-footer .footer-shell {
  width: min(100%, var(--content-width, 1280px));
  margin-inline: auto;
}

.site-footer :is(.footer-main, .footer-brand, .footer-column, .footer-newsletter-copy, .footer-bottom) {
  min-width: 0;
}

.site-footer .footer-newsletter {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  margin: 0;
  padding: 26px 28px;
  border: 1px solid var(--border-color, #343b45);
  border-radius: var(--radius-card, 16px);
  background: var(--surface, #1a1e25);
}

.site-footer .footer-newsletter-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--accent-color, #ffad7d);
}

.site-footer .footer-eyebrow {
  margin: 0 0 5px;
  color: var(--accent-color, #ffad7d);
  font: .6875rem/1.5 var(--font-note, monospace);
  letter-spacing: .07em;
  text-transform: uppercase;
}

.site-footer .footer-newsletter h2 {
  margin: 0 0 6px;
  padding: 0;
  border: 0;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.02em;
}

.site-footer .footer-newsletter-copy > p:last-child {
  margin: 0;
  max-width: 60ch;
  font-size: .875rem;
}

.site-footer .footer-newsletter-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  min-height: 48px;
  padding: 11px 18px;
  border: 1px solid var(--accent-color, #ffad7d);
  border-radius: var(--radius-control, 10px);
  background: var(--accent-color, #ffad7d);
  color: #21180f;
  font-size: .875rem;
  font-weight: 650;
  line-height: 1.5;
  text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease;
}

.site-footer .footer-newsletter-link:hover {
  border-color: #ffbe98;
  background: #ffbe98;
  color: #21180f;
}

.site-footer .footer-newsletter-link > span {
  font-size: 1.125rem;
  line-height: 1;
}

.site-footer .footer-main {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.1fr 1fr;
  align-items: start;
  gap: 32px;
  padding-block: 36px 28px;
}

.site-footer .footer-logo {
  display: inline-flex;
  align-items: center;
  min-height: 64px;
  max-width: 100%;
  margin-bottom: 14px;
  text-decoration: none;
}

.site-footer .footer-logo img {
  display: block;
  width: 220px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 900 / 260;
  border-radius: 0;
}

.site-footer .footer-brand > p {
  margin: 0 0 12px;
  max-width: 34ch;
  font-size: .875rem;
  line-height: 1.75;
}

.site-footer .footer-main :is(ul, li),
.site-footer .footer-legal,
.site-footer .footer-legal li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer .footer-column h2 {
  margin: 12px 0 12px;
  padding: 0;
  border: 0;
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -.01em;
}

.site-footer .footer-column a {
  display: flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 44px;
  padding-block: 9px;
  color: var(--text-muted, #b6b8bf);
  font-size: .875rem;
  line-height: 1.6;
  text-decoration: none;
  transition: color .18s ease;
}

.site-footer .footer-socials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 14px;
}

.site-footer .footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding-block: 9px;
  color: var(--sapphire, #d6e4ec);
  font-size: .8125rem;
  line-height: 1.6;
  text-decoration: none;
}

.site-footer .footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color, #343b45);
}

.site-footer .footer-copyright {
  margin: 0;
  padding-block: 12px;
  font-size: .8125rem;
  line-height: 1.6;
}

.site-footer .footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 20px;
}

.site-footer .footer-legal a,
.site-footer .footer-preferences .privacy-settings {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 0;
  border: 0;
  background: transparent;
  color: var(--text-muted, #b6b8bf);
  font-size: .8125rem;
  line-height: 1.6;
  text-decoration: none;
  cursor: pointer;
}

.site-footer .footer-preferences:empty {
  display: none;
}

.site-footer :is(.footer-column a, .footer-socials a, .footer-legal a, .footer-preferences .privacy-settings):hover {
  color: var(--accent-color, #ffad7d);
  text-decoration: underline;
  text-underline-offset: .25em;
}

.site-footer :is(a, button):focus-visible {
  outline: 3px solid var(--clr-focus-ring, #ffbb95);
  outline-offset: 4px;
  border-radius: 3px;
}

@media (max-width: 960px) {
  .site-footer .footer-main {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px 32px;
  }

  .site-footer .footer-brand {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    align-items: center;
    gap: 4px 28px;
  }

  .site-footer .footer-logo,
  .site-footer .footer-brand > p {
    margin: 0;
  }

  .site-footer .footer-brand > p {
    max-width: 50ch;
  }

  .site-footer .footer-brand > nav {
    grid-column: 1 / -1;
  }

  .site-footer .footer-newsletter {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 16px;
    padding: 24px;
  }

  .site-footer .footer-newsletter-icon {
    width: 40px;
    height: 40px;
  }

  .site-footer .footer-newsletter-link {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 640px) {
  body > .site-footer {
    padding: 28px var(--page-gutter, 16px) 20px;
  }

  .site-footer .footer-newsletter {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding: 22px;
  }

  .site-footer .footer-newsletter-icon {
    display: none;
  }

  .site-footer .footer-newsletter-link {
    grid-column: 1;
    justify-self: stretch;
    justify-content: space-between;
  }

  .site-footer .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 24px;
    padding-block: 28px 24px;
  }

  .site-footer .footer-brand {
    display: block;
  }

  .site-footer .footer-logo {
    margin-bottom: 12px;
  }

  .site-footer .footer-brand > p {
    max-width: 42ch;
    margin-bottom: 8px;
  }

  .site-footer .footer-column h2 {
    margin-top: 0;
    margin-bottom: 8px;
  }

  .site-footer .footer-column:last-child {
    grid-column: 1 / -1;
  }

  .site-footer .footer-column:last-child ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
  }

  .site-footer .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
    padding-top: 12px;
  }

  .site-footer .footer-copyright {
    padding-block: 10px 4px;
  }

  .site-footer .footer-legal {
    column-gap: 18px;
  }
}

@media (max-width: 380px) {
  body > .site-footer {
    padding-inline: var(--page-gutter, 16px);
  }

  .site-footer .footer-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .site-footer .footer-newsletter {
    padding: 20px;
  }

  .site-footer .footer-column ul,
  .site-footer .footer-column:last-child ul {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-footer :is(a, button) {
    transition: none;
  }
}

@media (forced-colors: active) {
  body > .site-footer,
  .site-footer :is(.footer-newsletter, .footer-bottom) {
    border-color: CanvasText;
    background: Canvas;
    color: CanvasText;
  }

  .site-footer a,
  .site-footer .footer-preferences .privacy-settings {
    color: LinkText;
  }

  .site-footer .footer-newsletter-link {
    border-color: ButtonText;
    background: ButtonFace;
    color: ButtonText;
  }
}

@media print {
  body > .site-footer {
    padding: 16px 0 0;
    border-top: 1px solid #bbb;
    background: white;
    color: #333;
  }

  .site-footer :is(.footer-newsletter, .footer-main, .footer-bottom > nav, .footer-preferences) {
    display: none;
  }

  .site-footer .footer-bottom {
    display: block;
    padding: 0;
    border: 0;
  }
}
