/* ============================================
   FOOTER STYLES - Minimal Hernan Design
   Desktop: Horizontal layout, centered
   Mobile: Vertical accordions with smooth animation
   ============================================ */

/* Footer non-sticky - IMPORTANT: Annule tous les effets flex du parent */
.site-footer {
  position: static !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  flex: none !important;
}

/* DESKTOP LAYOUT (576px and above) */
@media (min-width: 576px) {
  .site-footer .footer__box {
    display: flex;
    flex-wrap: wrap;
    gap: 100px;
    padding: 60px 40px 40px 60px;
    max-width: 1400px;
    margin: 0 auto;
    justify-content: center;
  }
}

@media (min-width: 768px) {
  .site-footer .footer__box {
    padding: 60px 50px 50px 80px;
    gap: 120px;
  }
}

/* Category styling (header of each section) */
.site-footer .footer__category {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: #1a1a1a;
  font-weight: 500;
  text-transform: uppercase;
  position: relative;
  margin: 0;
  padding: 0;
}

/* Links container */
.site-footer .footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}

/* Individual links */
.site-footer .footer__link {
  font-size: 13px;
  letter-spacing: 0.05em;
  color: #666;
  text-decoration: none;
  position: relative;
  display: inline-block;
  line-height: 1.5;
}

/* Toggle icon (for mobile accordion) */
.site-footer .footer__category span {
  height: 8px;
  width: 8px;
  position: relative;
  display: none;
  margin-left: auto;
}

.site-footer .footer__category span::before,
.site-footer .footer__category span::after {
  content: "";
  position: absolute;
  background: #1a1a1a;
  transition: all 0.3s ease;
}

.site-footer .footer__category span::before {
  width: 8px;
  height: 1px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.site-footer .footer__category span::after {
  width: 1px;
  height: 8px;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

/* Copyright */
.site-footer .footer__copyright {
  color: #999;
  font-size: 12px;
  letter-spacing: 0.05em;
  padding: 40px 0 0 0;
  flex: 0 0 100%;
  margin-top: 20px;
  text-align: right;
}

/* ==========================================
   MOBILE LAYOUT (max-width: 575px)
   Accordions with smooth Codrops-inspired animation
   ========================================== */

@media (max-width: 575px) {
  .site-footer .footer__box {
    display: block;
    padding: 0;
    max-width: 100%;
  }

  .site-footer .footer__submenu {
    border-bottom: 1px solid #e5e5e5;
    padding: 16px 20px;
  }

  .site-footer .footer__category {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 12px;
    padding: 0;
    margin: 0;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 500;
  }

  .site-footer .footer__category span {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  /* Links hidden by default (collapsed) */
  .site-footer .footer__links {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    margin-top: 0;
    gap: 10px;
    transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                margin-top 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .site-footer .footer__links.loaded {
    max-height: 0;
  }

  /* Links visible when expanded */
  .site-footer .footer__links.expanded {
    max-height: 500px;
    opacity: 1;
    pointer-events: auto;
    margin-top: 14px;
  }

  .site-footer .footer__link {
    font-size: 11px;
    letter-spacing: 0.04em;
    margin-left: 0;
    margin-top: 0;
    padding-left: 0;
  }

  /* Icon rotation when expanded - smooth animation */
  .site-footer .footer__category span {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .site-footer .footer__category.expanded span {
    transform: rotate(45deg);
  }

  .site-footer .footer__category.expanded span::after {
    opacity: 0;
  }

  /* Copyright on mobile */
  .site-footer .footer__copyright {
    padding: 20px;
    text-align: right;
    flex: none;
    margin-top: 0;
    font-size: 10px;
  }
}

/* ==========================================
   Accessibility
   ========================================== */

@media (prefers-reduced-motion: reduce) {
  .site-footer .footer__link::before,
  .site-footer .footer__category span,
  .site-footer .footer__links {
    transition: none;
  }
}

/* High contrast mode */
@media (prefers-contrast: more) {
  .site-footer .footer__category {
    font-weight: 700;
  }

  .site-footer .footer__link {
    font-weight: 500;
  }
}
