/* ==========================================================================
   Éditions ATP — Thème Enfant Footer CSS
   (Pleine Largeur Horizontale 100vw Sans Espace Blanc & Héritage Elementor Pro)
   ========================================================================== */

:root {
  --atp-ft-bg-dark: #0a0a0a;
  --atp-ft-yellow-accent: var(--atp-yellow, var(--e-global-color-accent, #f59e0b));
  --atp-ft-yellow-bright: var(--e-global-color-accent, #fbbf24);
  --atp-ft-pink-accent: #e11d48;
  --atp-ft-text-main: #e5e5e5;
  --atp-ft-text-muted: #a3a3a3;
  --atp-ft-input-bg: #ffffff;
}

/* Empêcher tout défilement horizontal parasite sans casser position: sticky */
html, body {
  overflow-x: clip;
}

/* Couverture 100% Pleine Largeur Horizontale Propre (Sans 100vw destructeur) */
footer.site-footer,
.site-footer {
  width: 100% !important;
  max-width: 100% !important;
  position: relative !important;
  left: 0 !important;
  right: auto !important;
  transform: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  background-color: var(--atp-ft-bg-dark) !important;
  color: var(--atp-ft-text-main) !important;
  padding: 60px 24px 30px 24px !important;
  overflow: hidden !important;
  border-top: 2px solid var(--atp-ft-yellow-accent) !important;
  font-family: var(--e-global-typography-primary-font-family, var(--e-global-typography-text-font-family, inherit)) !important;
  clear: both !important;
  box-sizing: border-box !important;
}

.site-footer *,
.site-footer a,
.site-footer p,
.site-footer span,
.site-footer button,
.site-footer input,
.site-footer h1,
.site-footer h2,
.site-footer h3,
.site-footer h4,
.site-footer li {
  font-family: var(--e-global-typography-primary-font-family, var(--e-global-typography-text-font-family, inherit)) !important;
  box-sizing: border-box;
}

.footer-wrapper {
  max-width: var(--atp-container-max-width, 1150px);
  margin: 0 auto;
  width: 100%;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.3fr 1.2fr;
  gap: 40px;
  padding-bottom: 50px;
}

/* COLUMN 1: BRAND & NEWSLETTER */
.brand-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.brand-logo-custom img,
.site-footer .custom-logo {
  max-height: 52px;
  width: auto;
  display: block;
}

.brand-logo-badge {
  width: 52px;
  height: 52px;
  background-color: var(--atp-ft-yellow-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.brand-logo-badge i {
  font-size: 24px;
  color: #000000;
}

.newsletter-desc {
  color: #f3f4f6;
  font-size: 0.95rem;
  line-height: 1.5;
  font-weight: 400;
  max-width: 380px;
  margin: 0;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.input-wrapper {
  position: relative;
  max-width: 380px;
  width: 100%;
  display: flex;
  align-items: center;
}

.email-input {
  width: 100%;
  padding: 12px 140px 12px 16px;
  border-radius: var(--atp-radius, 8px);
  border: 1px solid #333333;
  background-color: var(--atp-ft-input-bg);
  color: #111827;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.email-input::placeholder {
  color: #6b7280;
}

.email-input:focus {
  border-color: var(--atp-ft-yellow-accent);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.3);
}

.terms-notice {
  font-size: 0.76rem;
  color: var(--atp-ft-text-muted);
  line-height: 1.45;
  max-width: 380px;
  margin: 0;
}

.terms-notice a {
  color: var(--atp-ft-yellow-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
  transition: color 0.2s;
}

.terms-notice a:hover {
  color: var(--atp-ft-yellow-bright);
}

.btn-submit {
  position: absolute;
  right: 4px;
  top: 4px;
  bottom: 4px;
  background-color: var(--atp-ft-yellow-accent);
  color: #000000;
  font-weight: 600 ;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 0 16px;
  border-radius: calc(var(--atp-radius, 8px) - 2px);
  border: 1.5px solid #000000;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.btn-submit:hover {
  background-color: var(--atp-ft-yellow-bright);
  transform: translateY(-1px);
}

.btn-submit:active {
  transform: translateY(0);
}

.col-title {
  color: var(--atp-ft-yellow-accent);
  font-size: 0.95rem;
  font-weight: 600 ;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 22px;
  margin-top: 0;
}

.link-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.link-item a,
.link-list a {
  color: #e5e7eb;
  text-decoration: none;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s ease, transform 0.2s ease;
}

.link-item a::before,
.link-list a::before {
  content: "›";
  font-family: inherit !important;
  font-weight: 600 ;
  color: var(--atp-ft-yellow-accent);
  font-size: 1.1rem;
  line-height: 1;
  margin-right: 8px;
  transition: transform 0.2s ease;
  display: inline-block;
}

.link-item a i,
.link-list a i {
  display: none;
}

.link-item a:hover,
.link-list a:hover {
  color: var(--atp-ft-yellow-bright);
  transform: translateX(3px);
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #e5e7eb;
  font-size: 0.9rem;
}

.contact-item a {
  color: #e5e7eb;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-item a:hover {
  color: var(--atp-ft-yellow-bright);
}

.contact-item i {
  color: var(--atp-ft-yellow-accent);
  font-size: 1rem;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

.social-buttons {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.social-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.85rem;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.social-icon.facebook {
  background-color: #3b5998;
}

.social-icon.linkedin {
  background-color: #0077b5;
}

.social-icon:hover {
  opacity: 0.85;
  transform: scale(1.05);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
}

.copyright-text {
  font-size: 0.85rem;
  color: #ffffff;
  white-space: nowrap;
}

.copyright-text .brand-highlight {
  color: var(--atp-ft-yellow-accent);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.copyright-text a.brand-highlight:hover {
  color: var(--atp-ft-yellow-bright);
  text-decoration: underline;
}

.legal-text {
  font-size: 0.75rem;
  color: #d1d5db; /* WCAG AA 4.5:1 compliant contrast on dark background */
  line-height: 1.5;
  max-width: 650px;
  text-align: justify;
  margin: 0;
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .legal-text {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .site-footer {
    padding: 40px 16px 24px 16px !important;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .newsletter-desc, 
  .input-wrapper, 
  .terms-notice {
    max-width: 100%;
  }
}
