/* =========================================================
 * HOME FOOTER - CSS COMPLET ET CORRIGÉ
 * ========================================================= */

/* Conteneur principal - Positionnement */
.site-footer {
  position: relative;
  margin-top: 24px;
  /* On définit des variables de secours au cas où le global manque */
  --local-accent: var(--accent, #FF6233);
  --local-text: var(--text, #333);
  --local-bg: var(--surface-footer, #f8f9fa);
  --local-border: var(--border, #e5e7eb);
}

/* Bloc visuel principal */
.pepite-footer {
  background: var(--local-bg);
  color: var(--local-text);
  border-top: 1px solid var(--local-border);
  padding-block: clamp(1.5rem, 3vw, 2rem);
  overflow-x: hidden; /* Sécurité anti-scroll */
}

/* Wrapper pour centrer le contenu */
.site-footer .footer-wrap {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

/* --- 1. Navigation (Tags/Badges) --- */
.site-footer .footer-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--local-border);
}

.site-footer .footer-nav a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .8rem;
  border-radius: 99px;
  text-decoration: none;
  color: var(--muted, #666);
  background: var(--surface, #fff);
  border: 1px solid var(--local-border);
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.site-footer .footer-nav a:hover {
  transform: translateY(-2px);
  color: var(--local-accent);
  border-color: currentColor;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* --- 2. Bloc Secondaire (Identité + Socials) --- */
.site-footer .footer-secondary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

/* Identité (Gauche) */
.site-footer .footer-identity {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-footer .mascotte-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--local-border);
}

.site-footer .footer-identity-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.site-footer .footer-title {
  font-weight: bold;
  color: var(--local-accent);
}
.site-footer .footer-subtitle {
  font-size: 0.85em;
  opacity: 0.8;
}

/* --- 3. Réseaux Sociaux (Le Correctif) --- */
.site-footer .footer-socials {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Style de base du rond */
.site-footer .footer-socials a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;

  /* Couleurs par défaut */
  background-color: var(--surface, #fff);
  border: 1px solid var(--local-border);
  color: var(--local-text);

  text-decoration: none;
  transition: all 0.2s ease-in-out;
  z-index: 1;
}

/* --- LE FIX EST ICI : HOVER --- */
/* On utilise !important pour forcer le blanc sur l'orange */
.site-footer .footer-socials a:hover {
  transform: translateY(-2px) scale(1.05);
  background-color: var(--local-accent) !important;
  border-color: var(--local-accent) !important;
  color: #ffffff !important; /* Texte/Icone BLANC forcé */
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* On cible aussi l'icône spécifiquement pour être sûr */
.site-footer .footer-socials a:hover i,
.site-footer .footer-socials a:hover svg {
  color: #ffffff !important;
  fill: #ffffff !important;
}

/* --- 4. Bas de page (Copyright) --- */
.site-footer .footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  font-size: 0.9rem;
  color: var(--muted, #888);
}

/* --- Utilitaires --- */
/* Screen Reader Only (Caché visuellement mais lu par les assistants) */
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .site-footer .footer-secondary {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .site-footer .footer-identity {
    flex-direction: column;
  }

  /* Sur mobile, on centre aussi les réseaux */
  .site-footer .footer-socials {
    justify-content: center;
  }
}
