/* ===== VARIABLES FOOTER ===== */
.site-footer {
  --footer-bg: #045414;
  --footer-dark: #003366;
  --footer-light: #0059b3;
  --accent-yellow: #34af42;
  --text-white: #ffffff;
  --text-light: #e6f2ff;
  --border-color: rgba(255, 255, 255, 0.1);
  --transition: all 0.3s ease;
}

/* ===== STRUCTURE PRINCIPALE ===== */
.site-footer {
  background: linear-gradient(
    135deg,
    var(--footer-bg) 0%,
    var(--footer-dark) 100%
  );
  color: var(--text-white);
  position: relative;
  overflow: hidden;
}

.footer-waves {
  position: absolute;
  top: -2px;
  left: 0;
  width: 100%;
  line-height: 0;
}

.footer-waves svg {
  display: block;
  width: 100%;
  height: 50px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  position: relative;
  z-index: 2;
}

/* ===== COLONNES ===== */
.footer-column {
  display: flex;
  flex-direction: column;
}

.footer-brand {
  grid-column: 1 / -1;
  text-align: center;
  margin-bottom: 20px;
}

.footer-logo {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 15px;
  display: flex;
  justify-content: center;
}

.footer-logo span {
  color: var(--accent-yellow);
}

.footer-tagline {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
}

.footer-column h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 25px;
  color: var(--accent-yellow);
  position: relative;
  padding-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-column h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--accent-yellow);
  transition: var(--transition);
}

.footer-column:hover h3::after {
  width: 60px;
}

/* ===== LISTES DE LIENS ===== */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-light);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition);
  padding: 8px 0;
  position: relative;
}

.footer-links a i {
  width: 20px;
  text-align: center;
  font-size: 1.1rem;
}

.footer-links a::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  background: var(--accent-yellow);
  border-radius: 50%;
  opacity: 0;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent-yellow);
  transform: translateX(10px);
}

.footer-links a:hover::before {
  opacity: 1;
  left: 0;
}

/* ===== INFORMATIONS DE CONTACT ===== */
.contact-info {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-info li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  color: var(--text-light);
}

.contact-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 215, 0, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.contact-icon i {
  color: var(--accent-yellow);
  font-size: 1.1rem;
}

.contact-info li:hover .contact-icon {
  background: var(--accent-yellow);
  transform: scale(1.1);
}

.contact-info li:hover .contact-icon i {
  color: var(--footer-dark);
}

.contact-text {
  flex: 1;
}

.contact-text strong {
  display: block;
  margin-bottom: 5px;
  color: var(--text-white);
}

/* ===== RÉSEAUX SOCIAUX ===== */
.social-links {
  display: flex;
  gap: 12px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.social-link {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.social-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: var(--transition);
}

.social-link:hover::before {
  left: 100%;
}

.social-link:hover {
  background: var(--accent-yellow);
  transform: translateY(-3px);
}

.social-link i {
  color: var(--text-white);
  font-size: 1.3rem;
  transition: var(--transition);
}

.social-link:hover i {
  color: var(--footer-dark);
  transform: scale(1.1);
}

.newsletter-form {
  margin-top: 25px;
}

.newsletter-form h4 {
  color: var(--text-light);
  font-size: 1rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.newsletter-form h4 i {
  color: var(--accent-yellow);
}

.newsletter-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-white);
  margin-bottom: 12px;
  transition: var(--transition);
  font-size: 0.9rem;
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--accent-yellow);
  background: rgba(255, 255, 255, 0.1);
}

.newsletter-input::placeholder {
  color: var(--text-light);
}

.btn-newsletter {
  width: 100%;
  padding: 12px 15px;
  background: var(--accent-yellow);
  color: var(--footer-dark);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.9rem;
}

.btn-newsletter:hover {
  background: #ffed4a;
  transform: translateY(-2px);
}

/* ===== SECTION INFERIEURE ===== */
.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding: 25px 20px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.footer-bottom-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.copyright {
  color: var(--text-light);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-legal {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
}

.footer-legal a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-legal a:hover {
  color: var(--accent-yellow);
}

.back-to-top {
  background: var(--accent-yellow);
  color: var(--footer-dark);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.back-to-top::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  opacity: 0;
  transition: var(--transition);
}

.back-to-top:hover::before {
  opacity: 1;
}

.back-to-top:hover {
  transform: translateY(-3px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 60px 20px 30px;
  }

  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-legal {
    justify-content: center;
  }

  .social-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .footer-container {
    padding: 50px 15px 25px;
  }

  .footer-logo {
    font-size: 2rem;
  }

  .contact-info li {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .contact-icon {
    align-self: center;
  }
}
