/* Pied de page — pages publiques (landing, blog, légales) */

.site-footer {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-top: auto;
  padding: 2rem 1rem 1.75rem;
  padding-bottom: calc(1.75rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(8, 8, 16, 0.4) 0%, rgba(6, 6, 12, 0.85) 100%);
  overflow-x: hidden;
}

.landing .site-footer {
  border-top-color: rgba(255, 255, 255, 0.06);
}

.site-footer__inner {
  max-width: 42rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.35rem;
  width: 100%;
  padding: 0 0.25rem;
  box-sizing: border-box;
}

.public-page .site-footer__inner,
.legal-page .site-footer__inner {
  max-width: 48rem;
}

.public-page--blog .site-footer__inner {
  max-width: 68rem;
}

.site-footer__brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  text-decoration: none;
  flex-shrink: 0;
}

.site-footer__logo,
.site-footer__brand img {
  display: block;
  width: auto;
  max-width: 7rem;
  max-height: 1.85rem;
  height: auto;
  object-fit: contain;
}

.landing .site-footer__brand .predix-brand-wrap .predix-brand-img--light,
.legal-page .site-footer__brand .predix-brand-wrap .predix-brand-img--light {
  display: none !important;
}

.landing .site-footer__brand .predix-brand-wrap .predix-brand-img--dark,
.legal-page .site-footer__brand .predix-brand-wrap .predix-brand-img--dark {
  display: block !important;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 0.75rem;
  width: 100%;
  max-width: 22rem;
  margin: 0;
  padding: 0;
}

.site-footer__col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  min-width: 0;
}

.site-footer__col--legal {
  grid-column: 1 / -1;
  align-items: center;
  text-align: center;
  padding-top: 0.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.site-footer__label {
  margin: 0 0 0.15rem;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

.site-footer__col a {
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  line-height: 1.35;
  padding: 0.1rem 0;
  max-width: 100%;
  word-break: break-word;
}

.site-footer__col a:hover,
.site-footer__col a:focus-visible {
  color: #fff;
}

.site-footer__fine {
  margin: 0;
  max-width: 20rem;
  font-size: 0.7rem;
  line-height: 1.5;
  text-align: center;
  color: rgba(255, 255, 255, 0.28);
}

@media (min-width: 480px) {
  .site-footer {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .site-footer__grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 36rem;
    gap: 1rem 1.25rem;
  }

  .site-footer__col--legal {
    grid-column: auto;
    align-items: flex-start;
    text-align: left;
    padding-top: 0;
    border-top: 0;
  }

  .site-footer__fine {
    max-width: 32rem;
    font-size: 0.75rem;
  }
}

@media (min-width: 768px) {
  .site-footer {
    padding-top: 2.5rem;
    padding-bottom: calc(2.25rem + env(safe-area-inset-bottom, 0px));
  }

  .site-footer__inner {
    gap: 1.75rem;
  }

  .site-footer__grid {
    max-width: 40rem;
  }
}

html.light .site-footer {
  border-top-color: rgba(15, 15, 35, 0.1);
  background: linear-gradient(180deg, rgba(244, 244, 248, 0.5), #f0f0f5);
}

html.light .site-footer__col a {
  color: hsl(240 12% 38%);
}

html.light .site-footer__col a:hover {
  color: hsl(240 30% 11%);
}

html.light .site-footer__fine {
  color: hsl(240 10% 50%);
}

html.light .site-footer__label {
  color: hsl(240 10% 55%);
}
