/* Responsive & Alignment Safety for Multilingual TimFocus */
:root {
  --tf-font: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

body, p, span, a, h1, h2, h3, h4, h5, h6, .u-text, .u-nav-link {
  font-family: var(--tf-font) !important;
}

/* Ensure containers grow when text wraps */
.u-text {
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
}

/* Footer Language switcher layout - Always visible & aligned */
.u-language.u-language-1 {
  display: inline-flex !important;
  align-items: center !important;
  vertical-align: middle !important;
  gap: 12px !important;
}

.u-language-dropdown {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 10px !important;
}

.u-language-url {
  display: inline-flex !important;
  align-items: center !important;
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.u-language-url:hover {
  opacity: 1 !important;
  transform: scale(1.1);
}


/* ==========================================================================
   TIMFOCUS 2026 - ARCHITECTURE FOOTER HAUT DE GAMME & 100% RESPONSIVE
   ========================================================================== */
.tf-footer {
  background: #0f172a !important;
  color: #e2e8f0 !important;
  padding: 3.5rem 0 2.25rem !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  position: relative !important;
  width: 100% !important;
  overflow: hidden !important;
  font-family: 'Ubuntu', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

.tf-footer-container {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 1.5rem !important;
  display: grid !important;
  grid-template-columns: 1.15fr 1.2fr 1.15fr !important;
  gap: 2.5rem !important;
  align-items: start !important;
}

.tf-footer-col {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.85rem !important;
}

/* Colonne 1 : À propos */
.tf-footer-about {
  text-align: left !important;
}

.tf-footer-heading {
  font-size: 1.2rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  margin: 0 0 0.4rem 0 !important;
  letter-spacing: -0.01em !important;
}

.tf-footer-desc {
  font-size: 0.88rem !important;
  line-height: 1.65 !important;
  color: #94a3b8 !important;
  margin: 0 !important;
  max-width: 340px !important;
}

.tf-footer-lang {
  margin-top: 1rem !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.4rem !important;
}

.tf-footer-lang-label {
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  color: #64748b !important;
}

.tf-footer-lang-flags {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}

.tf-lang-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  padding: 5px 10px !important;
  border-radius: 8px !important;
  color: #cbd5e1 !important;
  text-decoration: none !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  transition: all 0.2s ease !important;
}

.tf-lang-btn:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: #38bdf8 !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
}

.tf-lang-btn.active {
  background: rgba(2, 132, 199, 0.25) !important;
  border-color: #38bdf8 !important;
  color: #38bdf8 !important;
}

/* Colonne 2 : Centre Marque */
.tf-footer-brand {
  align-items: center !important;
  text-align: center !important;
}

.tf-footer-quicklinks {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin-bottom: 0.25rem !important;
}

.tf-footer-pill {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: #f1f5f9 !important;
  text-decoration: none !important;
  padding: 6px 16px !important;
  border-radius: 9999px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  transition: all 0.2s ease !important;
}

.tf-footer-pill:hover {
  background: #1d5b94 !important;
  border-color: #38bdf8 !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
}

.tf-footer-logo {
  width: 120px !important;
  height: auto !important;
  max-height: 70px !important;
  object-fit: contain !important;
  margin: 0.4rem auto !important;
  display: block !important;
  filter: drop-shadow(0 4px 12px rgba(2, 132, 199, 0.28)) !important;
  transition: transform 0.2s ease !important;
}

.tf-footer-logo:hover {
  transform: scale(1.05) !important;
}

.tf-footer-copy {
  font-size: 0.82rem !important;
  color: #94a3b8 !important;
  margin: 0 !important;
}

.tf-footer-legal {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 0.75rem !important;
  color: #64748b !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
}

.tf-footer-legal a {
  color: #64748b !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}

.tf-footer-legal a:hover {
  color: #38bdf8 !important;
  text-decoration: underline !important;
}

.tf-legal-sep {
  color: #475569 !important;
}

/* Colonne 3 : Contact & Réseaux */
.tf-footer-contact {
  align-items: flex-end !important;
  text-align: right !important;
}

.tf-footer-contact-details {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.4rem !important;
  align-items: flex-end !important;
}

.tf-contact-item {
  font-size: 0.88rem !important;
  color: #94a3b8 !important;
  margin: 0 !important;
}

.tf-contact-link {
  color: #f1f5f9 !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  transition: color 0.2s ease !important;
}

.tf-contact-link:hover {
  color: #38bdf8 !important;
}

.tf-footer-socials {
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin-top: 0.65rem !important;
}

.tf-social-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 42px !important;
  height: 42px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2) !important;
}

.tf-social-icon:hover {
  background: #1d5b94 !important;
  border-color: #38bdf8 !important;
  transform: translateY(-3px) scale(1.08) !important;
}

.tf-social-icon img {
  width: 20px !important;
  height: 20px !important;
  object-fit: contain !important;
}

/* ==========================================================================
   VERSION MOBILE (< 991px)
   ========================================================================== */
@media (max-width: 991px) {
  .tf-footer {
    padding: 3rem 0 2.25rem !important;
  }

  .tf-footer-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 2.25rem !important;
    padding: 0 1.25rem !important;
  }

  .tf-footer-brand {
    order: 1 !important;
    width: 100% !important;
  }

  .tf-footer-contact {
    order: 2 !important;
    width: 100% !important;
    align-items: center !important;
    text-align: center !important;
  }

  .tf-footer-contact-details {
    align-items: center !important;
  }

  .tf-footer-socials {
    justify-content: center !important;
    margin-top: 0.5rem !important;
  }

  .tf-social-icon {
    width: 46px !important;
    height: 46px !important;
  }

  .tf-footer-about {
    order: 3 !important;
    width: 100% !important;
    align-items: center !important;
    text-align: center !important;
  }

  .tf-footer-desc {
    max-width: 100% !important;
    text-align: center !important;
  }

  .tf-footer-lang {
    align-items: center !important;
    margin-top: 0.75rem !important;
  }

  .tf-footer-lang-flags {
    justify-content: center !important;
  }

  .tf-footer-legal {
    margin-top: 0.5rem !important;
  }
}

