/* Styles pour le footer */
.footer {
  background-color: #f8fafc;
  padding: 4rem 0 2rem;
  color: #4b5563;
  font-size: 0.9375rem;
  line-height: 1.625;
}

.footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-about {
  grid-column: 1 / -1;
}

@media (min-width: 768px) {
  .footer-about {
    grid-column: auto;
  }
}

.footer-logo {
  margin-bottom: 1.25rem;
}

.footer-logo img {
  max-width: 120px;
  height: auto;
}

.footer-text {
  margin-bottom: 1.5rem;
  color: #4b5563;
}

.footer-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 1.25rem;
}

.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links-list li {
  margin-bottom: 0.75rem;
}

.footer-links-list a {
  color: #4b5563;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links-list a:hover {
  color: #4f46e5;
}

.footer-bottom {
  border-top: 1px solid #e5e7eb;
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
  }
}

.footer-copyright {
  color: #6b7280;
  font-size: 0.875rem;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
}

@media (min-width: 640px) {
  .footer-legal {
    justify-content: flex-end;
  }
}

/* Styles pour les liens légaux - Règles très spécifiques pour forcer l'affichage */
footer .footer-bottom .footer-legal a.legal-link,
footer .footer-bottom .footer-legal a.privacy-link,
.footer .footer-bottom .footer-legal a.legal-link,
.footer .footer-bottom .footer-legal a.privacy-link {
  color: #4f46e5 !important;
  text-decoration: none !important;
  font-size: 0.875rem !important;
  transition: color 0.2s ease !important;
  white-space: nowrap !important;
  opacity: 1 !important;
  display: inline-block !important;
  visibility: visible !important;
  position: relative !important;
  z-index: 1 !important;
}

footer .footer-bottom .footer-legal a.legal-link:hover,
footer .footer-bottom .footer-legal a.privacy-link:hover,
.footer .footer-bottom .footer-legal a.legal-link:hover,
.footer .footer-bottom .footer-legal a.privacy-link:hover {
  color: #4338ca !important;
  text-decoration: underline !important;
  opacity: 1 !important;
}

/* Séparateur entre les liens */
.text-gray-400 {
  color: #9ca3af;
  user-select: none;
}

/* Style pour les liens actifs */
.legal-link[data-type="cgu"],
.legal-link[data-type="mentions"],
.privacy-link {
  font-weight: 500;
}

/* Style pour les liens au survol */
.legal-link:hover,
.privacy-link:hover {
  text-decoration: underline;
}

/* Style pour les liens dans le formulaire de contact */
.form-privacy-link {
  color: #4f46e5;
  text-decoration: underline;
  font-weight: 500;
}

.form-privacy-link:hover {
  color: #4338ca;
}
