/* Styles pour le footer modernisé */

.footer {
  background: #182254;
  color: #ffffff;
  padding: 0;
  margin-top: 60px;
}

.footer-top {
  padding: 50px 0 0px;
  position: relative;
  overflow: hidden;
}

/* Effet de vague décorative en haut du footer */
.footer-top:before {
  content: "";
  position: absolute;
  top: -15px;
  left: 0;
  right: 0;
  height: 20px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 100"><path fill="%231d2d5d" d="M0,40 C320,100 420,0 640,40 C860,80 980,0 1200,20 C1320,30 1380,80 1440,60 L1440,100 L0,100 Z"></path></svg>') no-repeat;
  background-size: cover;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 30px;
}

/* Logo et texte d'introduction */
.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo-img {
  height: 80px;
  width: auto;
  max-width: 285px;
  filter: brightness(0) invert(1);
}

.footer-logo p {
  font-size: 14px;
  line-height: 1.5;
  margin-top: 15px;
  opacity: 0.9;
  max-width: 280px;
}

/* Colonnes de liens */
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.footer-links-column h4 {
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-links-column h4:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background-color: #4e5bc4;
  border-radius: 2px;
}

.footer-item-title {
  color: #ffffff;
  font-size: 16px;
}

.footer-item-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  color: #ffffff;
}

.footer-item-list li {
  padding-bottom: 10px;
}

.footer-item-list li a {
  color: #6ff78c;
}

.footer-links-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links-column ul li {
  margin-bottom: 10px;
}

.footer-links-column ul li a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
}

.footer-links-column ul li a:hover {
  color: #ffffff;
  transform: translateX(5px);
}

.footer-links-column ul li a:hover:before {
  content: '›';
  position: absolute;
  left: -12px;
  color: #4e5bc4;
}

/* Section réseaux sociaux */
.footer-social {
  text-align: center;
}

.footer-social h4 {
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
  display: inline-block;
}

.footer-social h4:after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 40px;
  height: 3px;
  background-color: #4e5bc4;
  border-radius: 2px;
}

.social-icons {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 18px;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background-color: #4e5bc4;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Partie basse du footer avec copyright */
.footer-bottom {
  padding: 20px 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

/* Médias queries pour responsive */
@media (max-width: 991px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
  
  .footer-logo {
    grid-column: 1 / -1;
    margin-bottom: 30px;
    align-items: center;
    text-align: center;
  }
  
  .footer-logo p {
    max-width: 100%;
  }
  
  .footer-social {
    text-align: left;
  }
  
  .footer-social h4:after {
    left: 0;
    transform: none;
  }
  
  .social-icons {
    flex-direction: row;
    justify-content: flex-start;
  }
}

@media (max-width: 767px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-links {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .social-icons {
    justify-content: center;
  }
  
  .footer-social {
    text-align: center;
  }
  
  .footer-social h4:after {
    left: 50%;
    transform: translateX(-50%);
  }
}

/* Effet de survol pour tous les liens */
.footer a {
  position: relative;
  text-decoration: none;
}

/* Animation lors du chargement de la page */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer-links-column, .footer-logo, .footer-social {
  animation: fadeInUp 0.6s ease forwards;
}

.footer-links-column:nth-child(2) {
  animation-delay: 0.1s;
}

.footer-links-column:nth-child(3) {
  animation-delay: 0.2s;
}

.footer-social {
  animation-delay: 0.3s;
}
