.site-footer {
  background-color: var(--dark-color);
  color: var(--light-color);
  padding: 3rem 0 0.5rem;
  margin-top: 4rem;
  width: 100%;
  position: relative;
  overflow: visible;
}

.site-footer .container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
  overflow: visible;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(250px, 1fr));
  gap: 0rem;
  margin-bottom: 1rem;
  justify-content: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  padding-bottom: 10px; /* Espace supplémentaire pour l'animation */
}

.footer-section:first-child {
  justify-self: flex-start;
}

.footer-section:last-child {
  justify-self: flex-end;
  position: relative;
}

.footer-section h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section a {
  color: var(--light-color);
  text-decoration: none;
  transition: color 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-section a:hover {
  color: var(--primary-color);
}

.contact-icon {
  width: 18px;
  height: 18px;
  fill: var(--primary-color);
  margin-right: 8px;
  vertical-align: middle;
}

.social-links {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
  position: relative;
  z-index: 1;
}

.social-link {
  text-decoration: none;
  display: block;
  border-radius: 50%;
  overflow: visible;
  padding: 5px;
  margin: -5px;
  position: relative;
  z-index: 2;
}

.social-circle {
  width: 36px;
  height: 36px;
  background-color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  position: relative;
  z-index: 1;
}

.social-icon {
  width: 18px;
  height: 18px;
  fill: var(--dark-color);
  transition: fill 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Effet de survol sur ordinateur */
.social-link:hover .social-circle {
  background-color: var(--primary-color);
  transform: translateY(-3px);
  border: 2px solid var(--primary-color);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.social-link:hover .social-icon {
  fill: #fff;
}

/* Effet au toucher sur appareils tactiles */
.social-link:active .social-circle {
  background-color: var(--primary-color);
  transform: translateY(-3px);
  border: 2px solid var(--primary-color);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.social-link:active .social-icon {
  fill: #fff;
}

/* Amélioration de l'effet sur mobile */
.social-link:hover .social-circle,
.social-link:active .social-circle {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
  border: 2px solid var(--primary-color);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom small {
  font-size: 0.85rem;
  opacity: 0.8;
}

.footer-legal a {
  color: var(--light-color);
  text-decoration: none;
  transition: color 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-legal a:hover {
  color: var(--primary-color);
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    max-width: 400px;
    gap: 3rem;
    width: 100%;
  }

  .footer-section {
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-section:last-child {
    justify-self: center;
    width: 100%;
  }

  .footer-section h3 {
    width: 100%;
    text-align: center;
  }

  .social-links {
    justify-content: center;
    width: 100%;
    gap: 2rem;
    padding: 0.5rem 0;
    margin-bottom: 0.5rem;
  }

  /* Style spécifique pour mobile */
  .social-circle {
    width: 48px;
    height: 48px;
    border: 2px solid transparent;
  }

  .social-link {
    padding: 8px;
    margin: -8px;
  }

  .social-icon {
    width: 24px;
    height: 24px;
  }

  /* Effet amélioré pour mobile */
  .social-link:hover .social-circle,
  .social-link:active .social-circle {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
    border: 2px solid var(--primary-color);
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}
