/* ============================================
   FOOTER GLOBAL - Style unifié pour TOUTES les pages
   Design amélioré et élégant - Fond noir/gris foncé avec effets visuels
   AutoBF - 2025-01-10
   ============================================ */

/* Style de base du footer - S'applique sur TOUTES les pages */
footer,
footer[class],
footer[class*="footer"],
body footer,
html footer,
#root footer,
main footer,
[role="contentinfo"],
[class*="footer"][role],
[class*="Footer"],
[id*="footer"],
[data-footer] {
  background: linear-gradient(to bottom, rgb(17, 24, 39), rgb(15, 23, 42)) !important;
  /* bg-gray-900 vers slate-900 - identique à la navbar */
  color: #ffffff !important;
  margin-top: 4rem !important;
  padding: 4rem 1.5rem !important;
  box-shadow: 
    0 -4px 20px rgba(0, 0, 0, 0.3),
    0 -2px 8px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
  border-top: 2px solid rgba(249, 115, 22, 0.3) !important;
  /* Bordure orange subtile pour correspondre à la navbar */
  position: relative !important;
  z-index: 100 !important;
  overflow: hidden !important;
}

/* Effet de brillance subtil en haut du footer (ligne orange) */
footer::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 2px !important;
  background: linear-gradient(to right, 
    transparent 0%,
    rgba(249, 115, 22, 0.4) 20%,
    rgba(249, 115, 22, 0.6) 50%,
    rgba(249, 115, 22, 0.4) 80%,
    transparent 100%
  ) !important;
  z-index: 1 !important;
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.3) !important;
}

/* Effet de lumière subtil en arrière-plan */
footer::after {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 200px !important;
  height: 200px !important;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.1) 0%, transparent 70%) !important;
  opacity: 0.5 !important;
  z-index: 0 !important;
  pointer-events: none !important;
}

/* Conteneur principal du footer */
footer > div,
footer > section,
footer .container {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 1.5rem !important;
  position: relative !important;
  z-index: 2 !important;
}

/* Grille du footer */
footer .grid,
footer [class*="grid"] {
  gap: 3rem !important;
  margin-bottom: 2rem !important;
}

/* Titres de sections du footer */
footer h3,
footer h2,
footer h4,
footer [class*="font-semibold"] {
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 1.125rem !important;
  margin-bottom: 1.5rem !important;
  letter-spacing: 0.025em !important;
  position: relative !important;
  padding-bottom: 0.5rem !important;
}

/* Ligne de décoration sous les titres */
footer h3::after,
footer h2::after,
footer h4::after {
  content: '' !important;
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 40px !important;
  height: 2px !important;
  background: linear-gradient(to right, #f97316, transparent) !important;
  border-radius: 2px !important;
}

/* Liens du footer - Style moderne */
footer a,
footer [role="link"],
footer a[href] {
  color: rgba(255, 255, 255, 0.75) !important;
  text-decoration: none !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  display: inline-block !important;
  position: relative !important;
  font-weight: 400 !important;
}

footer a::before {
  content: '' !important;
  position: absolute !important;
  bottom: -2px !important;
  left: 0 !important;
  width: 0 !important;
  height: 1px !important;
  background: #f97316 !important;
  transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

footer a:hover,
footer [role="link"]:hover,
footer a[href]:hover {
  color: #f97316 !important;
  transform: translateX(3px) !important;
}

footer a:hover::before {
  width: 100% !important;
}

/* Listes dans le footer */
footer ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

footer ul li {
  margin-bottom: 0.875rem !important;
  padding-left: 0 !important;
  line-height: 1.6 !important;
}

/* Paragraphes dans le footer */
footer p {
  color: rgba(255, 255, 255, 0.7) !important;
  line-height: 1.7 !important;
  margin-bottom: 1rem !important;
}

/* Logo dans le footer */
footer img,
footer img[alt*="Logo"],
footer img[alt*="logo"],
footer img[src*="logo"] {
  border-radius: 0.5rem !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  filter: brightness(1) !important;
}

footer a:hover img,
footer [class*="flex"]:hover img {
  transform: scale(1.08) translateY(-2px) !important;
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.4) !important;
  filter: brightness(1.1) !important;
}

/* Texte avec gradient dans le footer (ex: autobf.biz) */
footer span[class*="gradient"],
footer span[class*="bg-gradient"],
footer [class*="bg-clip-text"],
footer [class*="text-transparent"] {
  background: linear-gradient(to right, #10b981, #f97316, #ef4444) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
}

/* Icônes sociales dans le footer */
footer svg,
footer [class*="icon"],
footer a svg,
footer i {
  color: rgba(255, 255, 255, 0.75) !important;
  fill: rgba(255, 255, 255, 0.75) !important;
  stroke: rgba(255, 255, 255, 0.75) !important;
  width: 1.25rem !important;
  height: 1.25rem !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2)) !important;
}

footer a:hover svg,
footer a:hover [class*="icon"],
footer [class*="hover"]:hover svg {
  color: #f97316 !important;
  fill: #f97316 !important;
  stroke: #f97316 !important;
  transform: scale(1.2) translateY(-3px) rotate(5deg) !important;
  filter: drop-shadow(0 4px 8px rgba(249, 115, 22, 0.5)) !important;
}

/* Espacement entre les icônes sociales */
footer [class*="flex"][class*="space-x"] a,
footer [class*="flex"]:has(svg) a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 2.5rem !important;
  height: 2.5rem !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.05) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

footer [class*="flex"][class*="space-x"] a:hover,
footer [class*="flex"]:has(svg) a:hover {
  background: rgba(249, 115, 22, 0.15) !important;
  border-color: rgba(249, 115, 22, 0.4) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3) !important;
}

/* Section contact dans le footer */
footer [class*="flex"][class*="items-start"],
footer [class*="flex"][class*="items-center"] {
  gap: 0.75rem !important;
}

footer [class*="text-gray-400"],
footer [class*="text-gray-500"] {
  color: rgba(255, 255, 255, 0.7) !important;
  transition: color 0.25s ease !important;
  line-height: 1.6 !important;
}

footer a:hover [class*="text-gray-400"],
footer a:hover [class*="text-gray-500"] {
  color: #f97316 !important;
}

/* Section copyright en bas du footer */
footer > div > div:last-child,
footer .border-t,
footer [class*="border-t"] {
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding-top: 2rem !important;
  margin-top: 3rem !important;
  color: rgba(255, 255, 255, 0.6) !important;
}

footer .border-t a,
footer [class*="border-t"] a {
  color: rgba(255, 255, 255, 0.6) !important;
  font-size: 0.875rem !important;
}

footer .border-t a:hover,
footer [class*="border-t"] a:hover {
  color: #f97316 !important;
}

/* Texte de copyright */
footer p[class*="text-gray"],
footer p[class*="text-sm"],
footer > div:last-child p {
  color: rgba(255, 255, 255, 0.6) !important;
  font-size: 0.875rem !important;
  margin: 0 !important;
}

/* Forcer le texte blanc dans le footer */
body footer *:not(a):not([role="link"]),
html footer *:not(a):not([role="link"]),
#root footer *:not(a):not([role="link"]),
main footer *:not(a):not([role="link"]),
footer *:not(a):not([role="link"]) {
  color: #ffffff !important;
}

/* Supprimer tous les fonds clairs dans le footer */
footer [class*="bg-white"],
footer [class*="bg-gray-50"],
footer [class*="bg-gray-100"] {
  background: transparent !important;
}

/* Forcer le fond noir/gris foncé original sur le footer */
footer.bg-gray-900,
footer.bg-gray-800,
footer.bg-gray-700,
footer.bg-black,
footer[class*="bg-gray"],
footer[class*="bg-slate"],
footer[class*="bg-zinc"],
footer[class*="bg-black"] {
  background: linear-gradient(to bottom, rgb(17, 24, 39), rgb(15, 23, 42)) !important;
  color: #ffffff !important;
}

/* Responsive - meilleur espacement sur mobile */
@media (max-width: 768px) {
  footer {
    padding: 3rem 1rem !important;
  }
  
  footer .grid,
  footer [class*="grid"] {
    gap: 2rem !important;
  }
  
  footer h3::after {
    width: 30px !important;
  }
}
