/* ==========================================================================
   Footer Naturabox — refonte maquette Canva (juillet 2026)
   Toutes les règles sont scopées .nb-footer + !important : theme.css (alysum)
   style agressivement a / h3 / ul et serait prioritaire sinon.
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Mulish:wght@400;700&display=swap');

.nb-footer {
  --nbf-green: #44664c;   /* titres colonnes */
  --nbf-ink: #2e3d1f;     /* texte & liens */
  --nbf-accent: #3a7653;  /* icônes */
  --nbf-font: 'Mulish', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #fff !important;
  font-family: var(--nbf-font) !important;
  padding: 70px 0 0 !important;
  margin: 0 !important;
}
.nb-footer *,
.nb-footer a {
  font-family: var(--nbf-font) !important;
  box-sizing: border-box;
}
.nb-footer img {
  background: none !important; /* alysum met un loader animé en bg des img lazy */
}
.nb-footer ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.nb-footer a {
  color: var(--nbf-ink) !important;
  text-decoration: none !important;
}
.nb-footer a:hover {
  color: var(--nbf-accent) !important;
}

/* ----- structure principale : marque + 3 colonnes ----- */
.nb-footer__main {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  gap: 60px;
}
.nb-footer__brand {
  flex: 0 0 300px;
  max-width: 300px;
}
.nb-footer__links {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding-left: 80px;
}

/* ----- bloc marque ----- */
.nb-footer__logo img {
  max-width: 245px !important;
  height: auto !important;
  display: block;
}
.nb-footer__tagline {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #283628 !important;
  margin: 10px 0 22px !important;
}
.nb-footer__desc {
  font-size: 15px !important;
  line-height: 1.5 !important;
  color: #1c1c1c !important;
  margin: 0 0 24px !important;
}
.nb-footer__contact-line {
  display: flex !important;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}
.nb-footer__ico {
  flex: 0 0 22px;
  margin-top: 2px;
}
.nb-footer__contact-txt {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}
.nb-footer__contact-txt strong {
  font-size: 15.5px !important;
  font-weight: 700 !important;
  color: var(--nbf-ink) !important;
}
.nb-footer__contact-txt small {
  font-size: 14px !important;
  color: var(--nbf-ink) !important;
}
.nb-footer__hours {
  font-size: 16px !important;
  color: var(--nbf-ink) !important;
  margin: 4px 0 24px !important;
}
.nb-footer__social {
  display: flex;
  gap: 18px;
  align-items: center;
}
.nb-footer__social a {
  display: inline-flex;
  line-height: 0;
}
.nb-footer__social a:hover {
  opacity: .85;
}

/* ----- colonnes de liens (ps_linklist) ----- */
.nb-footer__col-title {
  font-size: 16px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 2.4px !important;
  color: var(--nbf-green) !important;
  margin: 0 0 10px !important;
  padding: 0 !important;
}
.nb-footer__col-title::after {
  content: '';
  display: block;
  width: 38px;
  height: 2px;
  background: rgba(68, 102, 76, .4);
  margin-top: 10px;
}
.nb-footer__col-list li {
  margin: 0 0 16px !important;
  padding: 0 !important;
}
.nb-footer__col-list li:first-child {
  margin-top: 22px !important;
}
.nb-footer__col-list a {
  font-size: 16px !important;
  font-weight: 400 !important;
  color: var(--nbf-ink) !important;
}

/* ----- membre de réseaux engagés ----- */
.nb-footer__networks {
  max-width: 1320px;
  margin: 34px auto 0;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 34px;
  flex-wrap: wrap;
}
.nb-footer__networks-label {
  font-size: 14px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 2.1px !important;
  color: var(--nbf-ink) !important;
}
.nb-footer__networks ul {
  display: flex !important;
  align-items: center;
  gap: 44px;
  flex-wrap: wrap;
}
.nb-footer__networks img {
  height: 44px !important;
  width: auto !important;
  display: block;
}

/* ----- barre légale ----- */
.nb-footer__bottom {
  margin-top: 36px;
  padding: 26px 32px 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 44px;
  flex-wrap: wrap;
}
.nb-footer__copy {
  font-size: 13px !important;
  color: var(--nbf-ink) !important;
}
.nb-footer__legal-list {
  display: flex !important;
  align-items: center;
  gap: 44px;
  flex-wrap: wrap;
}
.nb-footer__legal-list li {
  margin: 0 !important;
  padding: 0 !important;
}
.nb-footer__legal-list a {
  font-size: 13px !important;
  color: var(--nbf-ink) !important;
}

/* ==========================================================================
   Mobile / tablette
   ========================================================================== */
@media (max-width: 991px) {
  .nb-footer {
    padding: 48px 0 0 !important;
  }
  .nb-footer__main {
    flex-direction: column;
    gap: 36px;
    padding: 0 24px;
  }
  .nb-footer__brand {
    flex: none;
    max-width: none;
  }
  .nb-footer__logo img {
    max-width: 200px !important;
  }
  .nb-footer__links {
    padding-left: 0;
  }
  .nb-footer__col-list li {
    margin-bottom: 13px !important;
  }
  .nb-footer__col-list li:first-child {
    margin-top: 18px !important;
  }
  .nb-footer__networks {
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    padding: 0 24px;
  }
  .nb-footer__networks ul {
    gap: 24px;
    justify-content: center;
  }
  .nb-footer__networks img {
    height: 36px !important;
  }
  .nb-footer__bottom {
    gap: 16px;
    padding: 22px 16px 26px;
  }
  .nb-footer__legal-list {
    gap: 16px;
  }
  .nb-footer__copy,
  .nb-footer__legal-list a {
    font-size: 12px !important;
  }
}

/* ----- tablette : les 3 colonnes de liens sur une seule ligne ----- */
@media (min-width: 768px) and (max-width: 991px) {
  .nb-footer__links {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  .nb-footer__col-title {
    font-size: 14px !important;
    letter-spacing: 1.8px !important;
  }
}

/* ----- mobile : colonnes de liens en accordéon ----- */
@media (max-width: 767px) {
  .nb-footer__links {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .nb-footer__col {
    border-bottom: 1px solid rgba(68, 102, 76, .18);
  }
  .nb-footer__col:first-child {
    border-top: 1px solid rgba(68, 102, 76, .18);
  }
  .nb-footer__col-title {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    margin: 0 !important;
    padding: 15px 2px !important;
    cursor: pointer;
  }
  .nb-footer__col-title::after {
    /* remplace le soulignement desktop par l'indicateur +/− */
    content: '+';
    width: auto;
    height: auto;
    background: none;
    margin-top: 0;
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
    color: var(--nbf-green);
  }
  .nb-footer__col.is-open .nb-footer__col-title::after {
    content: '\2212'; /* − */
  }
  .nb-footer__col-list {
    display: none;
    padding: 0 2px 12px;
  }
  .nb-footer__col.is-open .nb-footer__col-list {
    display: block;
  }
  .nb-footer__col-list li:first-child {
    margin-top: 2px !important;
  }
  .nb-footer__col-list li {
    margin-bottom: 12px !important;
  }
}
