/* Footer sombre – texte blanc forcé (charger ce fichier en dernier) */
#site-footer,
section.footer-style1 {
  background-color: #1a1d21 !important;
  color: #ffffff !important;
}
#site-footer *,
#site-footer a,
section.footer-style1 *,
section.footer-style1 a {
  color: #ffffff !important;
}
#site-footer a:hover,
section.footer-style1 a:hover {
  color: #e0e0e0 !important;
}
#site-footer .ud-btn.btn-thm,
section.footer-style1 .ud-btn.btn-thm {
  background-color: #5BBB7B !important;
  border-color: #5BBB7B !important;
  color: #ffffff !important;
}
#site-footer .bdrt1,
section.footer-style1 .bdrt1 {
  border-color: rgba(255, 255, 255, 0.25) !important;
}
#site-footer .footer-logo img,
section.footer-style1 .footer-logo img {
  height: 72px;
  width: auto;
}

/* Footer unifié (même structure que page d'accueil) */
/* Réinitialise héritages du thème (text-align, line-height, floats) pour un bloc lisible */
footer.site-footer,
.site-footer {
  background: #0e100f !important;
  color: rgba(255,255,255,.65);
  padding: 64px 0 0;
  clear: both;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  text-align: left;
  line-height: normal;
  font-weight: 400;
}
footer.site-footer .container,
.site-footer .container {
  box-sizing: border-box;
}
.site-footer .footer-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  align-items: start;
  width: 100%;
}
.site-footer .footer-grid > * {
  min-width: 0;
  float: none;
  text-align: left;
}
.site-footer .footer-brand img { height: 44px; margin-bottom: 20px; display: block; }
.site-footer .footer-brand p { font-size: 14px; line-height: 1.65; margin-bottom: 20px; color: rgba(255,255,255,.65); }
.site-footer .footer-heading {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: 16px;
}
.site-footer .footer-links {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.site-footer .footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,.55) !important;
  transition: color .15s;
  display: block;
  width: 100%;
  text-align: left;
  text-decoration: none;
}
.site-footer .footer-links a:hover { color: #fff !important; }
.site-footer .footer-bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  clear: both;
  text-align: center;
}
.site-footer .footer-bottom p { font-size: 13px; color: rgba(255,255,255,.3); text-align: center; margin-bottom: 0; }
@media (max-width: 1024px) {
  .site-footer .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
  }
}
@media (max-width: 768px) {
  .site-footer .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding-bottom: 32px;
  }
}

/* Bouton retour en haut (pages avec footer unifié) */
.scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: #5BBB7B;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(0,0,0,.1);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 500;
  text-decoration: none;
  border: none;
}
.scroll-top.visible { opacity: 1; pointer-events: auto; }
.scroll-top:hover { transform: translateY(-3px); }
