/* ============================================================================
   FOOTER.CSS — PIED DE PAGE
   ============================================================================
   6e fichier du CSS découpé du site (voir l'ordre complet en tête de
   base.css). Dépend des variables de base.css : à charger après lui.

   Comme pour l'en-tête (voir nav.css), le HTML du pied de page n'est pas
   dupliqué dans les 9 pages : il est généré par assets/js/partials.js.
   ========================================================================== */

.site-footer {
  background: var(--c-navy-900);
  color: rgba(255,255,255,0.75);
  padding-top: var(--sp-6);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: var(--sp-5);
  padding-bottom: var(--sp-5);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand p { color: rgba(255,255,255,0.65); margin-top: var(--sp-2); font-size: 0.92rem; }
.footer-col h4 {
  color: var(--c-white);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--sp-2);
}
.footer-col ul { display: grid; gap: 0.6rem; }
.footer-col a:hover { color: var(--c-white); }
.footer-social { display: flex; gap: 0.7rem; margin-top: var(--sp-3); }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition), border-color var(--transition);
}
.footer-social a:hover { background: var(--accent); border-color: var(--accent); }
.footer-social svg { width: 17px; height: 17px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  padding-block: var(--sp-3);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
}
.footer-bottom ul { display: flex; gap: var(--sp-3); flex-wrap: wrap; }

/* --- Bouton "retour en haut" --- */
.back-to-top {
  position: fixed;
  right: var(--sp-3);
  bottom: var(--sp-3);
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--c-navy-900);
  color: var(--c-white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--ombre-m);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity var(--transition), transform var(--transition);
  z-index: 400;
  border: none;
  cursor: pointer;
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top svg { width: 20px; height: 20px; }

/* ----------------------------------------------------------------------
   RESPONSIVE
   ---------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-4); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
