/**
 * Footer Component
 *
 * @package Annecy_Unik_Lodges
 */

/* Footer */
.site-footer {
  background-color: var(--color-primary);
  padding-top: 75px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 61px;
}

/* Header du footer */
.footer__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 35px;
  text-align: center;
}

.footer__logo {
  width: 180px;
  height: auto;
}

.footer__logo img {
  width: 100%;
  height: auto;
}

.footer__description {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 300;
  color: var(--color-white);
  max-width: 512px;
  line-height: 1.6;
  margin: 0;
}

.footer__contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  color: var(--color-white);
  line-height: 30px;
}

.footer__contact-separator {
  display: inline-flex;
  align-items: center;
  opacity: 0.5;
}

.footer__contact-separator svg {
  fill: var(--color-white);
}

.footer__contact-item {
  color: var(--color-white);
}

.footer__contact a {
  color: var(--color-white);
  text-decoration: none;
  transition: color var(--transition-base);
}

.footer__contact a:hover {
  color: var(--color-secondary);
}

/* Navigation du footer */
.footer__nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.footer__column {
  display: flex;
  flex-direction: column;
  gap: 35px;
}

.footer__column-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 400;
  font-style: italic;
  color: var(--color-secondary);
  margin: 0;
}

.footer__column-content {
  display: flex;
  gap: 24px;
}

.footer__links-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__links-label {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--color-secondary);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__links li a {
  min-height: auto;
  display: inline-block;
}

.footer__links li {
  margin: 0;
  padding: 0;
}

.footer__link,
.footer__links a {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  color: var(--color-white);
  text-decoration: none;
  transition: color var(--transition-base), transform var(--transition-base);
  display: inline-block;
}

.footer__link:hover,
.footer__links a:hover {
  color: var(--color-secondary);
  transform: translateX(5px);
}

/* Bottom */
.footer__bottom {
  padding-top: 20px;
  padding-bottom: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer__copyright {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--color-white);
  margin: 0;
}

.footer__copyright a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: opacity var(--transition-base);
}

.footer__copyright a:hover {
  opacity: 0.7;
}

.footer__bottom-right {
  display: flex;
  align-items: center;
  gap: 25px;
}

.footer__legal {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-white);
  margin: 0;
}

.footer__legal a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: opacity var(--transition-base);
}

.footer__legal a:hover {
  opacity: 0.7;
}

.footer__legal-separator {
  margin: 0 8px;
  opacity: 0.5;
}

/* Social links */
.footer__social {
  display: flex;
  gap: 15px;
}

.footer__social-link {
  width: 45px;
  height: 45px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition-base),
    transform var(--transition-base);
}

.footer__social-link:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
}

.footer__social-link svg {
  width: 18px;
  height: 18px;
  fill: var(--color-white);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
  .footer__nav {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__column {
    text-align: center;
  }

  .footer__column:last-child {
    grid-column: span 2;
  }

  .footer__column-content {
    justify-content: center;
  }

  .footer__links-group {
    align-items: center;
  }

  .footer__links {
    align-items: center;
  }

  .footer__link:hover,
  .footer__links a:hover {
    transform: none;
  }
}

@media (max-width: 768px) {
  .site-footer {
    gap: 40px;
    padding-top: 50px;
  }

  .footer__nav {
    grid-template-columns: 1fr;
  }

  .footer__column:last-child {
    grid-column: span 1;
  }

  .footer__column-content {
    flex-direction: column;
    gap: 20px;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer__bottom-right {
    flex-direction: column;
    gap: 15px;
  }

  .footer__contact {
    flex-direction: column;
    gap: 5px;
  }

  .footer__contact-separator {
    display: none;
  }
}
