
/* Pied de page Prosper Space */
body .site-footer.space-site-footer,
body.space-home-active .site-footer.space-site-footer {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 80px 32px 24px;
  background: #fff !important;
  color: #1c1e23;
  border: 0;
  border-top: 1px solid #eceef2;
  border-radius: 0;
  box-shadow: none;
  text-align: left;
}

.space-site-footer,
.space-site-footer * {
  box-sizing: border-box;
}

.space-site-footer .space-footer-inner {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
}

.space-site-footer .space-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 1fr;
  gap: 48px;
  padding-bottom: 80px;
}

body .space-site-footer .space-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #191d26 !important;
  text-decoration: none;
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -.6px;
}

.space-site-footer .space-footer-brand img {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius:8px;
}

body .space-site-footer .space-footer-intro p {
  margin: 22px 0 0;
  color: #747780 !important;
  font-size: 15px;
  line-height: 1.8;
}

.space-site-footer .space-footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  margin: 0;
  padding: 0;
}

body .space-site-footer .space-footer-column h2 {
  margin: 8px 0 10px;
  color: #22252c !important;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .09em;
  line-height: 1.5;
}

body .space-site-footer .space-footer-column a {
  display: inline;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: #747780 !important;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  text-decoration: none;
  transition: color .15s;
}

body .space-site-footer .space-footer-column a:hover {
  color: #215be5 !important;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.space-site-footer a:focus-visible {
  outline: 2px solid #215be5;
  outline-offset: 5px;
}

body .space-site-footer .space-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px 32px;
  padding-top: 28px;
  border-top: 1px solid #e7e9ed;
  color: #777b84;
  font-size: 13px;
  line-height: 1.6;
}

body .space-site-footer .space-footer-note {
  margin: 18px 0 0;
  color: #777b84 !important;
  font-size: 11px;
  line-height: 1.6;
}

@media (max-width: 950px) {
  .space-site-footer .space-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 42px 32px;
    padding-bottom: 52px;
  }
}

@media (max-width: 560px) {
  body .site-footer.space-site-footer,
  body.space-home-active .site-footer.space-site-footer {
    padding: 48px 24px 24px;
  }

  .space-site-footer .space-footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .space-site-footer .space-footer-column {
    gap: 13px;
  }

  body .space-site-footer .space-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .space-site-footer a {
    transition: none !important;
  }
}

/* IDENTITÉ PROSPER SOCIAL */
body .space-site-footer .space-footer-company {
  display: block;
  padding-top: 30px;
}

.space-footer-signature {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

body .space-site-footer .space-footer-name {
  color: #20242c !important;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -.5px;
  text-decoration: none;
}

body .space-site-footer .space-footer-signature strong {
  color: #646a75 !important;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .12em;
}

body .space-site-footer .space-footer-legal {
  margin: 14px 0 24px;
  color: #727782 !important;
  font-size: 12px;
  line-height: 1.8;
}

.space-footer-last-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.space-footer-trust,
.space-footer-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
}

body .space-site-footer .space-footer-last-row a,
body .space-site-footer .space-footer-last-row span {
  color: #646a75 !important;
  font-size: 12px;
  line-height: 1.6;
  text-decoration: none;
}

body .space-site-footer .space-footer-last-row a:hover {
  color: #215be5 !important;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 560px) {
  .space-footer-last-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .space-footer-trust {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}

/* ===== Bas de page façon Prosper Social (style uniquement) ===== */
body .site-footer.space-site-footer,
body.space-home-active .site-footer.space-site-footer {
  padding: 64px 32px 28px;
  background: #eef3fd !important;
  border-top: 0;
}
body .space-site-footer .space-footer-grid {
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
}
body .space-site-footer .space-footer-brand { gap: 10px; font-size: 18px; font-weight: 700; letter-spacing: -.3px; }
body .space-site-footer .space-footer-brand img { width: 40px; height: 40px; border-radius: 10px; }

/* Titres : « Produit » au lieu de « PRODUIT », sans toucher au texte */
body .space-site-footer .space-footer-column h2 {
  margin: 4px 0 6px;
  color: #101828 !important;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: lowercase;
}
body .space-site-footer .space-footer-column h2::first-letter { text-transform: uppercase; }
body .space-site-footer .space-footer-column { gap: 12px; }
body .space-site-footer .space-footer-column a { color: #5b6274 !important; font-size: 15px; line-height: 1.5; }
body .space-site-footer .space-footer-column a:hover { color: #2f62ee !important; text-decoration: none; }

/* Dernière ligne sur une rangée */
body .space-site-footer .space-footer-company {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 32px;
  padding-top: 24px;
  border-top: 1px solid #d9e2f5;
}
body .space-site-footer .space-footer-signature { order: 1; gap: 10px; }
body .space-site-footer .space-footer-name { font-size: 15px; font-weight: 700; color: #101828 !important; }
body .space-site-footer .space-footer-signature strong { font-size: 11px; color: #667085 !important; }
body .space-site-footer .space-footer-last-row { order: 2; flex: 1; justify-content: center; gap: 24px; }
body .space-site-footer .space-footer-legal { order: 3; margin: 0; font-size: 13px; color: #5b6274 !important; }
body .space-site-footer .space-footer-last-row a,
body .space-site-footer .space-footer-last-row span { font-size: 13px; color: #5b6274 !important; }
body .space-site-footer .space-footer-last-row a:hover { color: #2f62ee !important; text-decoration: none; }
body .space-site-footer .space-footer-social { gap: 8px; }
body .space-site-footer .space-footer-social a {
  display: inline-flex; align-items: center; height: 32px; padding: 0 12px;
  border: 1px solid #d0d9ee; border-radius: 8px; background: #fff;
  color: #101828 !important; font-weight: 600;
}
body .space-site-footer .space-footer-social a:hover { border-color: #2f62ee; color: #2f62ee !important; }

/* Sélecteur de langue */
body .space-site-footer .slp-footer-row { max-width: 1240px; margin: 18px auto 0; display: flex; justify-content: flex-end; }
body .space-site-footer .slp > summary { padding: 6px 12px; border: 1px solid #d0d9ee; border-radius: 8px; background: #fff; }

@media (max-width: 950px) {
  body .space-site-footer .space-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 28px; }
  body .space-site-footer .space-footer-last-row { justify-content: flex-start; flex-basis: 100%; }
}
@media (max-width: 560px) {
  body .site-footer.space-site-footer,
  body.space-home-active .site-footer.space-site-footer { padding: 44px 22px 24px; }
  body .space-site-footer .space-footer-grid { grid-template-columns: 1fr; gap: 28px; }
  body .space-site-footer .space-footer-company { flex-direction: column; align-items: flex-start; }
  body .space-site-footer .slp-footer-row { justify-content: flex-start; }
}

/* ===== Bas de page — alignement en grille ===== */
body .space-site-footer .space-footer-company {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "sig social" "trust legal";
  align-items: center;
  gap: 16px 32px;
}
body .space-site-footer .space-footer-last-row { display: contents; }
body .space-site-footer .space-footer-signature { grid-area: sig; }
body .space-site-footer .space-footer-social { grid-area: social; justify-self: end; }
body .space-site-footer .space-footer-trust { grid-area: trust; justify-self: start; gap: 8px 24px; }
body .space-site-footer .space-footer-legal { grid-area: legal; justify-self: end; text-align: right; }

/* Sélecteur de langue aligné sur le bord droit du contenu */
body .space-site-footer .slp-footer-row { width: 100%; max-width: 1240px; margin: 20px auto 0; padding: 0; justify-content: flex-end; }
body .space-site-footer .slp { margin: 0 !important; }

@media (max-width: 760px) {
  body .space-site-footer .space-footer-company {
    grid-template-columns: 1fr;
    grid-template-areas: "sig" "social" "trust" "legal";
  }
  body .space-site-footer .space-footer-social,
  body .space-site-footer .space-footer-legal { justify-self: start; text-align: left; }
  body .space-site-footer .slp-footer-row { justify-content: flex-start; }
}
