/* FOOTER NIVEAU HEADER - GLASSMORPHISM FIXÉ */
.footer-container {
  position: relative;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(237, 31, 36, 0.1);
  box-shadow: 
    0 -8px 32px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  color: var(--neutral-black);
  padding: var(--spacing-xl) var(--spacing-xl);
  margin-top: var(--spacing-xxxl);
  overflow: hidden;
  opacity: 1;
  transform: translateY(0);
}

/* LAYOUT FOOTER */
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  position: relative;
  z-index: 1;
}

/* PREMIÈRE LIGNE : CONTACT ET INFORMATIONS */
.footer-top-row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-lg);
}

/* CONTENEUR NAVIGATION */
.footer-nav-container {
  width: 100%;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: var(--spacing-md);
  margin-top: var(--spacing-sm);
}

/* CONTACT GAUCHE */
.footer-contact {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
}

.footer-email {
  display: inline-flex;
  align-items: center;
  color: var(--neutral-black);
  text-decoration: none;
  font-weight: var(--weight-medium);
  font-size: var(--text-sm);
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
  z-index: 10; /* PRIORITÉ CLIC FIXÉE */
}

.footer-email::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  transition: left 0.4s ease;
  z-index: -1;
}

.footer-email:hover::before {
  left: 0;
}

.footer-email:hover {
  color: var(--neutral-white);
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 
    0 8px 24px rgba(237, 31, 36, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.footer-email i {
  margin-right: var(--spacing-sm);
  color: var(--primary-color);
  font-size: 1.1em;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.footer-email:hover i {
  color: var(--neutral-white);
}

/* RÉSEAUX SOCIAUX INLINE */
.footer-social {
  display: flex;
  gap: var(--spacing-md);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-lg);
  color: var(--neutral-medium);
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  z-index: 5; /* Z-INDEX CONTRÔLÉ */
}

.social-link::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: var(--gradient-primary);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.4s ease;
  z-index: 0;
}

.social-link:hover::before {
  width: 120%;
  height: 120%;
}

.social-link:hover {
  color: var(--neutral-white);
  border-color: var(--primary-color);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 
    0 8px 20px rgba(237, 31, 36, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.social-link i {
  position: relative;
  z-index: 1;
  font-size: var(--text-base);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.05));
}

/* TRUST DROITE - 1 LIGNE */
.footer-trust {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
}

.footer-link {
  color: var(--neutral-medium);
  text-decoration: none;
  font-size: var(--text-xs);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 
    0 1px 3px rgba(0, 0, 0, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  z-index: 5; /* Z-INDEX CONTRÔLÉ */
}

.footer-link:hover {
  color: var(--primary-color);
  background: rgba(237, 31, 36, 0.05);
  border-color: rgba(237, 31, 36, 0.15);
  transform: translateX(-3px);
  box-shadow: 
    0 2px 6px rgba(237, 31, 36, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.footer-link i {
  margin-right: var(--spacing-xs);
  font-size: 0.7rem;
  opacity: 0.7;
}

/* LIENS DE NAVIGATION */
.footer-nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--spacing-xs) var(--spacing-sm);
  margin: 0;
  padding: 0 var(--spacing-sm);
}

.footer-nav-links .footer-link {
  padding: var(--spacing-xs) var(--spacing-sm);
  font-size: var(--text-xs);
  white-space: nowrap;
  color: var(--neutral-medium);
  text-decoration: none;
  transition: all 0.3s ease;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03),
              inset 0 1px 0 rgba(255, 255, 255, 0.7);
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.footer-nav-links .footer-link:hover,
.footer-nav-links .footer-link:active,
.footer-nav-links .footer-link:focus {
  color: var(--primary-color);
  background: rgba(237, 31, 36, 0.05);
  border-color: rgba(237, 31, 36, 0.15);
  transform: translateX(-3px);
  box-shadow: 0 2px 6px rgba(237, 31, 36, 0.1),
              inset 0 1px 0 rgba(255, 255, 255, 0.8);
  outline: none;
  text-decoration: none;
}

.footer-separator {
  color: var(--neutral-light);
  opacity: 0.5;
  user-select: none;
}

/* Style spécifique pour desktop */
@media (min-width: 769px) {
  .footer-nav-links .footer-link {
    font-size: var(--text-sm);
  }
  
  .footer-nav-container {
    margin-top: var(--spacing-md);
  }
}

@media (max-width: 768px) {
  .footer-top-row {
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
  }
  
  .footer-contact, .footer-trust {
    width: 100%;
    justify-content: center;
  }
  
  .footer-nav-container {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
  }
}

.footer-trust-badges {
  display: flex;
  gap: var(--spacing-xs);
}

.trust-badge {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  color: var(--neutral-medium);
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  box-shadow: 
    0 1px 3px rgba(0, 0, 0, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.trust-badge:hover {
  background: rgba(237, 31, 36, 0.05);
  border-color: rgba(237, 31, 36, 0.15);
  color: var(--neutral-black);
  box-shadow: 
    0 2px 6px rgba(237, 31, 36, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.trust-badge i {
  color: var(--primary-color);
  margin-right: var(--spacing-xs);
  font-size: 0.6rem;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.05));
}

/* TRUST BADGE MOBILE EN HAUT */
.footer-trust-mobile {
  display: none;
}

/* RESPONSIVE MOBILE - ORDRE EXACT + SPACING UNIFORME */
@media (max-width: 768px) {
  .footer-container {
    padding: var(--spacing-xl) var(--spacing-md);
  }
  
  .footer-content {
    flex-direction: column;
    gap: 0; /* SUPPRESSION GAP AUTOMATIQUE */
    text-align: center;
    position: relative;
    z-index: 1;
    align-items: stretch; /* FORCE LARGEUR COMPLÈTE */
  }
  
  /* RESET TOUS MARGINS INLINE STYLES */
  .footer-content > * {
    margin: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
  
  /* SPACING UNIFORME MOBILE - 1rem entre chaque */
  .footer-content > *:not(:last-child) {
    margin-bottom: var(--spacing-lg) !important;
  }
  
  /* 1. GARANTIE EN HAUT FORCÉ */
  .footer-trust-mobile {
    display: block !important;
    order: 1 !important;
    width: 100%;
    text-align: center !important;
  }
  
  .footer-trust-mobile .trust-badge {
    margin: 0 auto;
    display: inline-flex;
  }
  
  /* 2. LOCALISER */
  .footer-trust {
    order: 2 !important;
    flex-direction: column;
    gap: var(--spacing-sm);
    align-items: center;
  }
  
  /* Masquer badges desktop en mobile */
  .footer-trust-badges {
    display: none;
  }
  
  /* 3. MAIL */
  .footer-contact {
    order: 3 !important;
    flex-direction: column;
    gap: var(--spacing-sm);
  }
  
  /* Fix bouton mail mobile - plus de priorité z-index */
  .footer-email {
    z-index: 20 !important;
    position: relative;
    pointer-events: auto !important;
    font-size: var(--text-sm);
    padding: var(--spacing-md) var(--spacing-lg);
  }
  
  /* 4. RÉSEAUX */
  .footer-social {
    order: 4 !important;
    justify-content: center;
    gap: var(--spacing-xl);
  }
  
  .social-link {
    width: 46px;
    height: 46px;
    z-index: 15;
    pointer-events: auto !important;
  }
  
  /* 5. MENTIONS LÉGALES EN DERNIER */
  .footer-content > div:last-child {
    order: 5 !important;
    text-align: center;
  }
  
  .footer-content > div:last-child .footer-link {
    margin: 0 auto;
    display: inline-flex;
  }
}

@media (max-width: 480px) {
  .footer-container {
    padding: var(--spacing-lg) var(--spacing-sm);
  }
  
  .footer-email {
    font-size: var(--text-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    z-index: 25 !important;
  }
  
  .trust-badge {
    font-size: 0.65rem;
    padding: var(--spacing-xs);
  }
  
  .social-link {
    width: 44px;
    height: 44px;
  }
}

/* Version améliorée */
.legal-notice-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--neutral-600);
  text-decoration: none;
  transition: color 0.3s;
}

.legal-notice-link:hover {
  color: var(--primary-color);
  text-decoration: underline;
}