/* ==========================================
   FOOTER.CSS - BubbleWeb
   Footer dark mode harmonisé
   ========================================== */

/* ===== FOOTER ===== */
.site-footer {
  position: relative;
  background: var(--color-bg-light);
  color: var(--color-text);
  padding: var(--space-2xl) 0 0;
  margin-top: 0;
  overflow: hidden;
}

/* Gradient accent top */
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-bubble);
}

/* Glow effect background */
.site-footer::after {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* ===== FOOTER GRID ===== */
.footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: var(--space-2xl);
  padding-bottom: var(--space-xl);
}

/* ===== FOOTER COLUMNS ===== */
.footer-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

/* ===== FOOTER BRAND ===== */
.footer-brand h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-bubble);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-xs);
}

.footer-brand p {
  color: var(--color-text-light);
  font-size: var(--font-size-base);
  line-height: 1.7;
  margin: 0;
  max-width: 320px;
}

/* ===== FOOTER LINKS ===== */
.footer-links h4 {
  font-family: var(--font-display);
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-xs);
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-links li {
  margin: 0;
}

.footer-links a {
  color: var(--color-text-light);
  text-decoration: none;
  font-size: var(--font-size-base);
  font-weight: 500;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  position: relative;
  padding-left: 0;
}

/* Animated indicator */
.footer-links a::before {
  content: '';
  position: absolute;
  left: -14px;
  width: 0;
  height: 2px;
  background: var(--gradient-bubble);
  border-radius: 1px;
  transition: width var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-primary);
  padding-left: 14px;
}

.footer-links a:hover::before {
  width: 8px;
}

/* ===== FOOTER CONTACT ===== */
.footer-contact h4 {
  font-family: var(--font-display);
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-xs);
}

.footer-contact > p {
  color: var(--color-text-light);
  font-size: var(--font-size-base);
  line-height: 1.6;
  margin: 0 0 var(--space-sm);
}

/* CTA Button */
.footer-contact .btn {
  align-self: flex-start;
  padding: 0.75rem 1.5rem;
  font-size: var(--font-size-sm);
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.footer-contact .btn-secondary {
  background: transparent;
  color: var(--color-text);
  border: 2px solid var(--color-border);
}

.footer-contact .btn-secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgba(34, 211, 238, 0.05);
}

/* Legal link */
.footer-legal {
  margin-top: var(--space-md);
}

.footer-legal a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: var(--font-size-sm);
  transition: color var(--transition-fast);
}

.footer-legal a:hover {
  color: var(--color-primary);
}

/* ===== FOOTER BOTTOM ===== */
.footer-bottom {
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid var(--color-border-light);
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) 0;
}

.footer-bottom span {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
}

.footer-signature {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }
  
  .footer-brand {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .site-footer {
    padding: var(--space-xl) 0 0;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    text-align: center;
  }
  
  .footer-brand {
    grid-column: span 1;
    align-items: center;
  }
  
  .footer-brand p {
    text-align: center;
    max-width: 100%;
  }
  
  .footer-links,
  .footer-contact {
    align-items: center;
  }
  
  .footer-links ul {
    align-items: center;
  }
  
  /* No indicator on mobile */
  .footer-links a::before {
    display: none;
  }
  
  .footer-links a:hover {
    padding-left: 0;
  }
  
  .footer-contact .btn {
    align-self: center;
  }
  
  .footer-legal {
    text-align: center;
  }
  
  .footer-bottom-inner {
    flex-direction: column;
    gap: var(--space-xs);
    text-align: center;
  }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  .footer-links a,
  .footer-links a::before,
  .footer-contact .btn,
  .footer-legal a {
    transition: none;
  }
}