/* =====================================================
   MOVAWAY — FOOTER
   ===================================================== */

/* ============ FOOTER ============ */
footer.site-footer {
  background-color: var(--ink);
  background-image: url("../img/bg-footer-2.svg");
  background-repeat: no-repeat;
  background-position: right bottom;
  color: rgba(255,255,255,0.65);
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.3fr;
  gap: 40px;
  margin-bottom: 50px;
  position: relative;
}
/* Titres de colonnes footer : rendus en <span class="footer-col-title"> (pas
   un titre sémantique h4, pour ne pas polluer la structure Hn de la page) mais
   avec le même style visuel. display:block car un span est inline par défaut. */
footer h4,
footer .footer-col-title {
  display: block;
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
  text-transform: none;
}
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { margin-bottom: 12px; }
/* Style des liens de menu footer : s'applique au menu WordPress (wp_nav_menu,
   <ul class="menu">) comme au fallback codé en dur, dans les colonnes .footer-col. */
footer .footer-col ul a {
  color: rgba(255,255,255,0.7);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color .2s ease;
}
footer .footer-col ul a:hover { color: var(--primary); }

/* 4e colonne : brand + socials + contact */
.footer-brand {
  border-left: 1px solid #fff;
  padding-left: 10px;
}
.footer-brand .footer-logo {
  display: block;
  margin-bottom: 22px;
}
.footer-brand .footer-logo img {
  height: 42px;
  width: auto;
  display: block;
}
.socials {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 24px;
}
.socials a {
  display: inline-block;
  line-height: 0;
  overflow: visible;
}
.socials a img,
img.iconsocial {
  height: 45px;
  width: auto;
  display: block;
  filter: var(--filter-light);
  transform: scale(1);
  transition: transform 0.65s cubic-bezier(0.05, 0.2, 0.1, 1);
}
.socials a:hover img { transform: scale(1.12); }

.footer-contact { display: flex; flex-direction: column; gap: 8px; }
.footer-contact a,
.footer-contact .mvw-obf {
  color: rgba(255,255,255,0.7);
  font-size: 15px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  width: fit-content;
  transition: color .2s ease;
}
.footer-contact a:hover,
.footer-contact .mvw-obf:hover { color: var(--primary); }

/* Liens obfusqués (PR sculpting) : rendus en <span>, se comportent comme des liens. */
.mvw-obf { cursor: pointer; }
.mvw-obf:focus-visible { outline: 2px solid var(--primary, #297CFF); outline-offset: 2px; border-radius: 4px; }

/* Bas de footer : bouton + trust badge + crédits */
.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  padding-top: 0;
  border-top: 0;
}
.footer-bottom .btn-primary {
  padding: 14px 30px;
  font-size: 15px;
}
.footer-trust {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
}
.footer-trust strong { font-weight: 800; }
.footer-trust .stars {
  display: inline-flex;
  gap: 3px;
  align-items: center;
}
.footer-trust .stars img { display: block; }
.footer-trust a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-credits {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
}

/* ============ FOOTER SIMPLE (landing pages + recommandation) ============ */
/* Variante allégée : logo + liens légaux + copyright, sans colonnes de menu. */
.site-footer--simple { padding: 40px 0; }
.footer-simple-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 32px;
}
.footer-simple-inner .footer-logo img { height: 30px; width: auto; display: block; }
.footer-simple-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}
.footer-simple-legal a {
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color .2s ease;
}
.footer-simple-legal a:hover { color: var(--primary); }
.footer-simple-credits {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
}
@media (max-width: 760px) {
  .footer-simple-inner { flex-direction: column; align-items: flex-start; }
}

/* ============ Footer responsive ============ */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  /* En 2 cols la brand passe en bas-droite ou bas-gauche : la bordure verticale
     n'a plus de sens visuel cohérent. On la retire. */
  .footer-brand { border-left: 0; padding-left: 0; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
}

