/* === Footer themable (suit clair/sombre) === */
.footer-container {
  /* essaie d'abord les variables globales de l'accueil,
     sinon celles de la bibliothèque, sinon un fallback */
  background: var(--background, var(--color-surface, #fff));
  color: var(--foreground, var(--color-text-primary, #000));
  border-top: 1px solid var(--border, var(--color-border, #e5e5e5));
  padding: 40px 20px 20px;
  font-family: inherit;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--foreground, var(--color-text-primary, #000));
}

.footer-logo p {
  font-size: 0.95rem;
  color: var(--muted-foreground, var(--color-text-muted, #555));
}

.footer-links h4,
.footer-social h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--foreground, var(--color-text-primary, #000));
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin-bottom: 8px;
}

.footer-links ul li a {
  text-decoration: none;
  /* couleur de lien = texte principal (s’adapte au thème) */
  color: var(--foreground, var(--color-text-primary, #000));
  font-size: 0.95rem;
  transition: color .2s ease, opacity .2s ease;
}

.footer-links ul li a:hover {
  /* accent = brand (s’adapte) */
  color: var(--primary-background, var(--color-accent, #ff4757));
}

.footer-social .social-icons {
  display: flex;
  gap: 16px;
}

.footer-social a {
  font-size: 1.5rem;
  text-decoration: none;
  color: var(--foreground, var(--color-text-primary, #000));
  transition: transform .2s ease, color .2s ease, opacity .2s ease;
}

.footer-social a:hover {
  color: var(--primary-background, var(--color-accent, #ff4757));
  transform: scale(1.2);
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border, var(--color-border, #eee));
  font-size: 0.9rem;
  color: var(--muted-foreground, var(--color-text-muted, #555));
  transition: border-color .2s ease, color .2s ease;
}
