/* Footer — pied de page */

.site-footer {
  background: var(--color-primary-dark);
  color: var(--color-bg);
  padding: 3.5rem 0 0;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem 2rem;
  padding-bottom: 2.5rem;
}

.site-footer__brand img {
  display: block;
  height: 3rem;
  width: auto;
  max-width: 160px;
  margin-bottom: 1rem;
  object-fit: contain;
}

.site-footer__tagline {
  margin: 0 0 1rem;
  color: var(--color-bg);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.45;
}

.site-footer__legal {
  margin: 0;
  color: color-mix(in srgb, var(--color-bg) 70%, transparent);
  font-size: 0.8125rem;
  line-height: 1.55;
}

.site-footer__heading {
  margin: 0 0 1.125rem;
  color: var(--color-bg);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.site-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__links li {
  margin-bottom: 0.625rem;
}

.site-footer__links li:last-child {
  margin-bottom: 0;
}

.site-footer__links a,
.site-footer__contact a {
  color: color-mix(in srgb, var(--color-bg) 88%, transparent);
  text-decoration: none;
  font-size: 0.9375rem;
  line-height: 1.45;
  transition: color 0.2s ease;
}

.site-footer__links a:hover,
.site-footer__contact a:hover {
  color: var(--color-accent);
}

.site-footer__contact {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__contact li {
  margin-bottom: 0.625rem;
  color: color-mix(in srgb, var(--color-bg) 88%, transparent);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.site-footer__contact li:last-child {
  margin-bottom: 0;
}

.site-footer__social {
  display: flex;
  gap: 0.75rem;
}

.site-footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--color-bg) 12%, transparent);
  color: var(--color-bg);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.site-footer__social-link:hover {
  background: var(--color-accent);
  color: var(--color-text);
  transform: translateY(-2px);
}

.site-footer__social-link svg {
  width: 1.125rem;
  height: 1.125rem;
}

.site-footer__bottom {
  border-top: 1px solid color-mix(in srgb, var(--color-bg) 18%, transparent);
  padding: 1.5rem 0 2rem;
  text-align: center;
}

.site-footer__copyright {
  margin: 0 0 0.625rem;
  color: color-mix(in srgb, var(--color-bg) 65%, transparent);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.site-footer__legal-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1rem;
}

.site-footer__legal-links a {
  color: color-mix(in srgb, var(--color-bg) 60%, transparent);
  font-size: 0.75rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer__legal-links a:hover {
  color: var(--color-accent);
}

.site-footer__legal-links span {
  color: color-mix(in srgb, var(--color-bg) 35%, transparent);
  font-size: 0.75rem;
}

/* --- Responsive footer --- */

@media (max-width: 991px) {
  .site-footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .site-footer {
    padding-top: 2.5rem;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* -------------------------------------------------------------------------- */
/* Bouton WhatsApp flottant                                                   */
/* Couleur #25D366 : exception volontaire — vert officiel de la marque        */
/* WhatsApp, reconnu universellement (hors charte Pure IPTv).                 */
/* -------------------------------------------------------------------------- */

.whatsapp-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.75rem;
  height: 3.75rem;
  min-width: 48px;
  min-height: 48px;
  border-radius: 50%;
  background: #25D366;
  color: var(--color-bg);
  text-decoration: none;
  box-shadow: 0 4px 20px color-mix(in srgb, var(--color-text) 25%, transparent);
  animation: whatsapp-pulse 2.5s ease-in-out infinite;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 28px color-mix(in srgb, var(--color-text) 30%, transparent);
  animation: none;
}

.whatsapp-float svg {
  width: 1.75rem;
  height: 1.75rem;
}

@keyframes whatsapp-pulse {
  0%,
  100% {
    box-shadow:
      0 4px 20px color-mix(in srgb, var(--color-text) 25%, transparent),
      0 0 0 0 color-mix(in srgb, #25D366 45%, transparent);
  }

  50% {
    box-shadow:
      0 4px 20px color-mix(in srgb, var(--color-text) 25%, transparent),
      0 0 0 0.75rem color-mix(in srgb, #25D366 0%, transparent);
  }
}

@media (max-width: 575px) {
  .whatsapp-float {
    right: 1rem;
    bottom: 1rem;
    width: 3.25rem;
    height: 3.25rem;
    min-width: 48px;
    min-height: 48px;
  }

  .whatsapp-float svg {
    width: 1.5rem;
    height: 1.5rem;
  }
}
