/* ============================================
   FOOTER CSS — AVDA
   Pied de page complet avec icônes
   Logo corrigé — fond transparent
   Dernière mise à jour : Juillet 2026
   ============================================ */

/* ==========================================
   FOOTER — Structure principale
   ========================================== */
.footer {
  background-color: #13441E;
  color: rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
}

/* Motif décoratif subtil */
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(223, 162, 26, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(223, 162, 26, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.01) 0%, transparent 70%);
  pointer-events: none;
}

/* ==========================================
   FOOTER — Top (Grille principale)
   ========================================== */
.footer-top {
  position: relative;
  z-index: 1;
  padding: var(--spacing-4xl) 0 var(--spacing-3xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr 1.3fr;
  gap: var(--spacing-3xl);
}

/* ==========================================
   COLONNE 1 — Logo + Description
   ========================================== */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

/* ✅ LOGO CORRIGÉ — Plus de box blanche */
.footer-logo {
  display: block;
  height: 50px;
  width: auto;
  max-width: 160px;
  filter: brightness(0) invert(1);
  opacity: 0.95;
  transition: opacity var(--transition-fast);
  /* ✅ Suppression de tout fond parasite */
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  object-fit: contain;
}

.footer-logo:hover {
  opacity: 1;
}

/* ✅ S'assurer que l'image elle-même n'a pas de fond */
.footer-brand img {
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.footer-description {
  font-size: var(--fs-body-sm);
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.6);
  max-width: 340px;
}

/* Réseaux sociaux */
.footer-social {
  display: flex;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-sm);
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.75);
  border-radius: var(--radius-full);
  font-size: 1rem;
  transition: all var(--transition-fast);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.footer-social a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-fast);
  border-radius: var(--radius-full);
}

.footer-social a:hover {
  color: var(--text-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(223, 162, 26, 0.35);
}

.footer-social a:hover::before {
  opacity: 1;
}

.footer-social a i {
  position: relative;
  z-index: 1;
}

/* ==========================================
   COLONNES 2, 3, 4 — Titres avec icônes
   ========================================== */
.footer-title {
  font-size: 1.05rem;
  font-weight: var(--fw-semibold);
  color: var(--text-white);
  margin-bottom: var(--spacing-lg);
  position: relative;
  padding-bottom: var(--spacing-sm);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.footer-title i {
  color: var(--brand-primary);
  font-size: 0.95rem;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
}

/* ==========================================
   LIENS DU FOOTER — Avec icônes
   ========================================== */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.footer-links li a {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: var(--fs-body-sm);
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: all var(--transition-fast);
  padding: 3px 0;
  position: relative;
}

.footer-links li a i {
  font-size: 0.75rem;
  color: var(--brand-primary);
  transition: all var(--transition-fast);
  width: 16px;
  text-align: center;
}

.footer-links li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--brand-primary);
  transition: width var(--transition-normal);
}

.footer-links li a:hover {
  color: var(--text-white);
  padding-left: 6px;
}

.footer-links li a:hover::after {
  width: 100%;
}

.footer-links li a:hover i {
  color: var(--text-white);
  transform: scale(1.2);
}

/* ==========================================
   COLONNE 4 — Contact avec icônes
   ========================================== */
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
  font-size: var(--fs-body-sm);
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  transition: all var(--transition-fast);
}

.footer-contact li i {
  font-size: 1rem;
  color: var(--brand-primary);
  margin-top: 3px;
  flex-shrink: 0;
  width: 18px;
  text-align: center;
  transition: all var(--transition-fast);
}

.footer-contact li:hover i {
  color: var(--text-white);
  transform: scale(1.15);
}

.footer-contact li a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-contact li a:hover {
  color: var(--brand-primary);
}

/* ==========================================
   FOOTER — Newsletter
   ========================================== */
.footer-newsletter {
  margin-top: var(--spacing-xl);
}

.footer-newsletter .newsletter-text {
  font-size: var(--fs-body-sm);
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: var(--spacing-md);
}

.footer-newsletter-form {
  display: flex;
  gap: var(--spacing-sm);
  max-width: 420px;
}

.footer-newsletter-form input {
  flex: 1;
  padding: 0.7rem 1rem;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  color: var(--text-white);
  font-size: var(--fs-body-sm);
  outline: none;
  transition: all var(--transition-fast);
  font-family: var(--font-primary);
}

.footer-newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.footer-newsletter-form input:focus {
  border-color: var(--brand-primary);
  background-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 3px rgba(223, 162, 26, 0.1);
}

.footer-newsletter-form button {
  padding: 0.7rem 1.5rem;
  background-color: var(--brand-primary);
  color: var(--text-dark);
  border: none;
  border-radius: var(--radius-sm);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-body-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-family: var(--font-primary);
}

.footer-newsletter-form button i {
  font-size: 0.9rem;
}

.footer-newsletter-form button:hover {
  background-color: #C58C10;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(223, 162, 26, 0.35);
}

.footer-newsletter-message {
  font-size: var(--fs-small);
  margin-top: var(--spacing-sm);
  min-height: 20px;
}

.footer-newsletter-message.success {
  color: var(--brand-primary);
}

.footer-newsletter-message.error {
  color: #F87171;
}

/* ==========================================
   FOOTER — Bottom (Barre légale)
   ========================================== */
.footer-bottom {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: var(--spacing-lg) 0;
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.footer-copyright {
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.45);
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.footer-copyright i {
  color: var(--brand-primary);
  font-size: 0.7rem;
}

.footer-copyright strong {
  color: rgba(255, 255, 255, 0.7);
  font-weight: var(--fw-medium);
}

.footer-legal {
  display: flex;
  gap: var(--spacing-lg);
  flex-wrap: wrap;
}

.footer-legal a {
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color var(--transition-fast);
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.footer-legal a i {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.3);
  transition: color var(--transition-fast);
}

.footer-legal a:hover {
  color: var(--brand-primary);
}

.footer-legal a:hover i {
  color: var(--brand-primary);
}

/* ==========================================
   FOOTER — Responsive
   ========================================== */

/* Tablette */
@media (max-width: 1023px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-2xl);
  }

  .footer-top {
    padding: var(--spacing-3xl) 0 var(--spacing-2xl);
  }
}

/* Mobile */
@media (max-width: 767px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-2xl);
  }

  .footer-top {
    padding: var(--spacing-2xl) 0 var(--spacing-xl);
  }

  .footer-description {
    max-width: 100%;
  }

  .footer-bottom .container {
    flex-direction: column;
    text-align: center;
  }

  .footer-copyright {
    justify-content: center;
  }

  .footer-legal {
    justify-content: center;
  }

  .footer-newsletter-form {
    flex-direction: column;
  }

  .footer-newsletter-form button {
    justify-content: center;
  }

  .footer-logo {
    height: 40px;
  }
}

/* Très petit écran */
@media (max-width: 375px) {
  .footer-social a {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

  .footer-legal {
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
  }
}