.footer {
  background: #fff;
  padding: 50px 100px 20px;
  position: relative;
  font-family: var(--avenir-font-family);
  color: #39434C;
}

.footer-container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 40px;
  align-items: flex-start;
}

.footer-logo h2 {
  font-size: 42px;
  font-weight: 800;
  color: #000;
}

.footer-contact p {
  margin-bottom: 8px;
  font-size: 14px;
}

.footer-contact a {
  color: #1D4394;
  text-decoration: none;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
}

.footer-nav ul li {
  margin-bottom: 8px;
}

.footer-nav a {
  text-decoration: none;
  font-size: 14px;
  color: #39434C;
  transition: color 0.3s;
}

.footer-nav a:hover {
  color: var(--vert);
}

.footer-social a {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  color: #39434C;
  text-decoration: none;
}

.footer-social a i {
  margin-right: 8px;
  color: var(--jaune);
}

.footer-social a:hover {
  color: var(--vert);
}

/* Bouton retour en haut */
.back-to-top {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  background: #0081FE;
  color: #fff;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.back-to-top:hover {
  background: #018D36;
}

html {
  scroll-behavior: smooth;
}

/* Copyright */
.footer-bottom {
  text-align: center;
  margin-top: 30px;
  font-size: 13px;
  color: #777;
}

.footer-logo {
  text-align: center;
  margin-bottom: 20px;
}

.footer-logo img {
  max-width: 180px;
  height: auto;
  display: inline-block;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.footer-logo img:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

/* ✅ Responsive */

/* Grands écrans (jusqu’à 1200px, laptops) */
@media (max-width: 1200px) {
  .footer {
    padding: 50px 60px 20px;
  }
  .footer-container {
    gap: 30px;
  }
  .footer-logo img {
    max-width: 160px;
  }
}

/* Tablettes (jusqu’à 992px) */
@media (max-width: 992px) {
  .footer {
    padding: 40px 40px 20px;
  }
  .footer-container {
    grid-template-columns: 1fr 1fr; /* 2 colonnes */
    gap: 30px;
  }
  .footer-contact p,
  .footer-nav a,
  .footer-social a {
    font-size: 14px;
  }
}

/* Mobiles (jusqu’à 768px) */
@media (max-width: 768px) {
  .footer {
    padding: 40px 20px 20px;
  }
  .footer-container {
    grid-template-columns: 1fr; /* 1 seule colonne */
    text-align: center;
    gap: 30px;
  }
  .back-to-top {
    position: static;
    margin: 20px auto 0;
  }
}

/* Très petits écrans (jusqu’à 480px) */
@media (max-width: 480px) {
  .footer-logo img {
    max-width: 140px;
  }
  .footer-contact p,
  .footer-nav a,
  .footer-social a {
    font-size: 13px;
  }
  .back-to-top {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }
}
