/* ==========================================
   FOOTER.CSS - KarimBuilds
   Styles pour le footer sur toutes les pages
   ========================================== */

/* ===== FOOTER ===== */
.site-footer {
  position: relative;
  background: #0f172a;
  color: white;
  padding: var(--space-2xl) 0 var(--space-md);
  margin-top: 0;
  overflow: hidden;
}

/* Accent gradient en haut */
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #2b7fd9 0%, #5b4fb8 50%, #1dd3c7 100%);
}

/* Effet de fond subtil */
.site-footer::after {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(43, 127, 217, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.site-footer .container {
  position: relative;
  z-index: 1;
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-xl);
}

/* Footer Brand */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: fit-content;
  padding: 0.5rem;
  margin-left: -0.5rem;
  border-radius: var(--radius-md);
}

.footer-logo img {
  width: 56px;
  height: 56px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 4px 12px rgba(43, 127, 217, 0.3));
}

.footer-logo span {
  font-size: 1.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, #2b7fd9 0%, #5b4fb8 50%, #1dd3c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.footer-logo:hover {
  background: rgba(43, 127, 217, 0.05);
}

.footer-logo:hover img {
  transform: scale(1.1) rotate(-5deg);
}

.footer-description {
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--font-size-base);
  line-height: 1.7;
  margin: 0;
  max-width: 320px;
  font-weight: 500;
}

/* Footer Navigation & Contact */
.footer-nav,
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.footer-nav h4,
.footer-contact h4 {
  font-size: var(--font-size-lg);
  font-weight: 800;
  margin-bottom: 0;
  color: white;
  letter-spacing: -0.01em;
}

.footer-nav ul,
.footer-contact ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.footer-nav li,
.footer-contact li {
  margin: 0;
}

.footer-nav a,
.footer-contact a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: var(--font-size-base);
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}

.footer-nav a::before,
.footer-contact a::before {
  content: '';
  position: absolute;
  left: -12px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #2b7fd9, #1dd3c7);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-nav a:hover,
.footer-contact a:hover {
  color: white;
  padding-left: 12px;
}

.footer-nav a:hover::before,
.footer-contact a:hover::before {
  width: 6px;
}

.footer-contact li:not(:has(a)) {
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--font-size-base);
  font-weight: 500;
}

/* Footer Bottom */
.footer-bottom {
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.4);
  font-size: var(--font-size-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer-container {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: var(--space-xl);
  }
}

@media (max-width: 768px) {
  .site-footer {
    padding: var(--space-xl) 0 var(--space-md);
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    text-align: center;
  }
  
  .footer-brand {
    align-items: center;
  }
  
  .footer-logo {
    margin: 0 auto;
  }
  
  .footer-description {
    text-align: center;
    max-width: 100%;
  }
  
  .footer-nav,
  .footer-contact {
    align-items: center;
  }
  
  .footer-nav h4,
  .footer-contact h4 {
    font-size: var(--font-size-base);
  }
  
  .footer-nav a::before,
  .footer-contact a::before {
    display: none;
  }
  
  .footer-nav a:hover,
  .footer-contact a:hover {
    padding-left: 0;
    transform: translateY(-2px);
  }
}