/* Quanta — footer global */

.q-footer {
  --q-footer-blue: #1565c0;
  --q-footer-deep: #0d47a1;
  --q-footer-sky: #1e88e5;
  position: relative;
  color: rgba(255, 255, 255, 0.92);
  background:
    linear-gradient(145deg, #0d47a1 0%, #1565c0 42%, #1a4fa0 72%, #243a9e 100%);
  font-family: var(--q-font);
  overflow: hidden;
}

.q-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 10% 20%, rgba(66, 165, 245, 0.28) 0%, transparent 55%),
    radial-gradient(ellipse 50% 50% at 90% 80%, rgba(100, 120, 255, 0.18) 0%, transparent 50%);
  pointer-events: none;
}

.q-footer,
.q-footer h3,
.q-footer p,
.q-footer a,
.q-footer li {
  font-family: var(--q-font) !important;
}

.q-footer__inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 4.5rem) 1.5rem 1.5rem;
}

.q-footer__grid {
  display: grid;
  gap: 2.25rem;
}

@media (min-width: 640px) and (max-width: 1099.98px) {
  .q-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 2.5rem;
  }

  .q-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1100px) {
  .q-footer__grid {
    grid-template-columns: 1.4fr 0.8fr 1fr 1.1fr;
    gap: 2rem;
  }
}

.q-footer__logo {
  display: inline-block;
  margin-bottom: 1rem;
}

.q-footer__logo img {
  display: block;
  height: 64px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  background: transparent !important;
}

.q-footer__tagline {
  margin: 0 0 1.25rem;
  max-width: 32ch;
  font-size: 1.05rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
}

.q-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.q-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  color: #fff !important;
  text-decoration: none;
  font-size: 1rem;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.q-footer__social a:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
  transform: translateY(-2px);
}

.q-footer__title {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff !important;
}

.q-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.q-footer__links li {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.88);
}

.q-footer__links a {
  color: rgba(255, 255, 255, 0.88) !important;
  text-decoration: none;
  transition: color 0.2s ease;
}

.q-footer__links a:hover {
  color: #fff !important;
}

.q-footer__contact li {
  max-width: 28ch;
}

.q-footer__bottom {
  margin-top: 2.75rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  text-align: center;
}

.q-footer__bottom p {
  margin: 0;
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.78);
}

.q-footer__bottom a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.q-footer__bottom a:hover,
.q-footer__bottom a:focus-visible {
  color: #bbdefb;
}

.q-footer__top {
  display: none;
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 99;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 999px;
  background: #1565c0;
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(13, 71, 161, 0.35);
  transition: background 0.2s ease, transform 0.2s ease;
}

.q-footer__top:hover {
  background: #0d47a1;
  transform: translateY(-2px);
}

/* Neutraliser l’ancien style footer du template sur nos pages */
.q-footer.w3l-footer-29-main,
.w3l-footer-29-main.q-footer {
  background: linear-gradient(145deg, #0d47a1 0%, #1565c0 42%, #1a4fa0 72%, #243a9e 100%) !important;
}
