/* Footer global */
.footer {
  width: 100%;
  background: linear-gradient(to left, #b91c1c, #fee2e2, #ffffff);
  color: #000;
  padding: 2rem 0;
  position: relative;
  z-index: 50;
}

/* Conteneur principal */
.footer-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

/* Responsive */
@media (min-width: 768px) {
  .footer-container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* Branding */
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .footer-brand {
    align-items: flex-start;
  }
}

.footer-logo {
  height: 5rem;
  cursor: pointer;
}

.footer-slogan {
  font-weight: bold;
  font-size: 1rem;
}

/* Copyright */
.footer-copyright {
  margin-top: 1.5rem;
  text-align: center;
  font-weight: bold;
  font-size: 1rem;
}


/* Social icons */
.social-icons {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

.social-link {
  font-size: 1.4rem;
  color: #000;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.social-link:hover {
  transform: translateY(-3px);
  opacity: 0.7;
}

/* Pages links */
.footer-pages {
  display: grid;
  gap: 0.5rem 1.5rem;
  width: 100%;
  justify-content: center;
}

.footer-link {
  color: #000;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.footer-link:hover {
  opacity: 0.7;
}

/* ===== Desktop Layout Adjustment ===== */
@media (min-width: 768px) {
  .footer-container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  /* LEFT */
  .footer-brand {
    flex: 1;
    align-items: flex-start;
    text-align: left;
  }

  /* CENTER */
  .social-icons {
    flex: 1;
    display: flex;
    justify-content: center;
  }

  /* RIGHT */
  .footer-pages {
    flex: 1;
    grid-template-columns: repeat(3, auto);
    justify-content: end;
    text-align: right;
  }
}


/* ===== Mobile: keep centered ===== */

/* Mobile → 2 per row */
@media (max-width: 767px) {
  .footer-pages {
    grid-template-columns: repeat(2, auto);
    text-align: center;
  }
}
