/* ============================================
   FOOTER NUTRAGILE - PrestaShop 1.7.8
   ============================================ */

#footer {
  padding-top: 0 !important;
}

#footer > .container {
  max-width: 100% !important;
  border-bottom: 1px solid var(--nutragile-light-cream) !important;
}

#footer > .container .col-sm-12:first-child {
  float: none !important;
}

/* ---- Réassurance ---- */
.blockreassurance {
  padding-top: 16px !important;
  max-width: 1536px !important;
  margin: 0 auto !important;
}

.blockreassurance .block-icon,
.blockreassurance .block-icon img,
.blockreassurance .block-icon svg {
  height: 20px !important;
}

.blockreassurance .block-title {
  font-family: var(--nutragile-font-link);
  font-weight: 300;
  font-size: 15px;
  color: var(--nutragile-text-dark);
  margin-top: 16px;
}

/* ============================================
   FOOTER PRINCIPAL
   ============================================ */

.footer-container.nt-footer {
  background: var(--nutragile-white) !important;
  padding: 0 !important;
  position: relative;
  overflow: hidden;
  border: none !important;
}

.footer-container.nt-footer .container {
  max-width: 1536px !important;
  border: none !important;
  padding: 0 32px !important;
}

/* ---- Logo + texte ---- */
.nt-footer__brand {
  max-width: 1280px;
  padding-top: 8px;
}

.nt-footer__logo {
  max-height: 124px;
  width: auto;
  display: block;
  margin-bottom: 16px;
}

.nt-footer__logo-link {
  display: inline-block;
}

.nt-footer__tagline {
  font-family: var(--nutragile-font-link);
  font-weight: 500;
  font-size: 15px;
  color: var(--nutragile-link-dark);
  margin: 0 0 8px;
  line-height: 1.4;
  z-index: 1;
  position: relative;
}

.nt-footer__desc {
  font-family: var(--nutragile-font-link);
  font-weight: 300;
  font-size: 14px;
  color: var(--nutragile-link-dark);
  line-height: 23px;
  margin: 0;
  z-index: 1;
  position: relative;
}

/* ---- Colonnes de liens (ps_linklist) ---- */

/* Row parent — reset Bootstrap */
.footer-container.nt-footer .row.nt-footer__columns {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

/* Le bloc .links prend toute la largeur */
#footer .nt-footer__columns > .links {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* La row interne = grille 4 colonnes */
#footer .nt-footer__columns .links > .row {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 32px !important;
  margin: 0 !important;
  padding: 24px 0 32px !important;
}

/* Chaque wrapper prend sa colonne */
#footer .nt-footer__columns .links > .row > .wrapper {
  width: 100% !important;
  max-width: 100% !important;
  flex: unset !important;
  padding: 0 !important;
  margin: 0 !important;
  z-index: 1;
}

/* Titre de colonne */
#footer .nt-footer__columns .wrapper .h3,
#footer .nt-footer__columns .wrapper p.h3 {
  font-family: var(--nutragile-font-link) !important;
  font-weight: 500 !important;
  font-size: 15px !important;
  color: var(--nutragile-link-dark) !important;
  margin: 0 0 12px !important;
  padding: 0 !important;
  line-height: 1.3 !important;
  text-transform: none !important;
  border: none !important;
}

/* Masquer le toggle mobile sur desktop */
#footer .nt-footer__columns .title.hidden-md-up {
  display: none !important;
}

/* Liste de liens — forcer visible sur desktop */
#footer .nt-footer__columns .wrapper ul.collapse {
  display: block !important;
  height: auto !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

#footer .nt-footer__columns .wrapper ul li {
  margin-bottom: 8px !important;
  padding: 0 !important;
}

#footer .nt-footer__columns .wrapper ul li a {
  font-family: var(--nutragile-font-link) !important;
  font-weight: 300 !important;
  font-size: 14px !important;
  color: var(--nutragile-link-dark) !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
  padding: 0 !important;
}

#footer .nt-footer__columns .wrapper ul li a:hover {
  color: var(--nutragile-green-bright) !important;
}

/* ---- Paiements (dans le footer blanc, bas droite) ---- */
.nt-footer__payments-bar {
  display: flex;
  justify-content: flex-end;
  padding: 8px 0 24px;
  z-index: 1;
  position: relative;
}

.nt-footer__payments {
  display: flex;
  align-items: center;
  gap: 6.4px;
}

.nt-footer__payments img {
  height: 24px;
  width: auto;
  display: block;
}

/* ---- Copyright (fond crème) ---- */
.nt-footer__bottom {
  background: var(--nutragile-light-cream) !important;
  padding: 16px 0 !important;
  border: none !important;
  position: relative;
  z-index: 1;
}

.nt-footer__bottom .container {
  background: transparent !important;
}

.nt-footer__copyright {
  font-family: var(--nutragile-font-link);
  font-weight: 300;
  font-size: 13px;
  color: var(--nutragile-link-dark);
  margin: 0;
  text-align: center;
}

/* ---- Libellule décorative ---- */
.nt-footer__deco {
  position: absolute;
  bottom: 40px;
  right: 152px;
  width: 440px;
  height: 440px;
  background-color: var(--nutragile-light-cream);
  -webkit-mask: url(../img/libellule.svg) no-repeat center / contain;
  mask: url(../img/libellule.svg) no-repeat center / contain;
  pointer-events: none;
  z-index: 0;
}

/* ---- Hooks masqués ---- */
.nt-footer__hidden-hooks {
  position: absolute;
  overflow: hidden;
  width: 0.8px;
  height: 0.8px;
  clip: rect(0, 0, 0, 0);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 992px) {
  #footer .nt-footer__columns .links > .row {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 24px !important;
  }

  .nt-footer__deco {
    width: 144px;
    height: 144px;
    right: 16px;
    bottom: 48px;
  }
}

@media (max-width: 600px) {
  .nt-footer__brand {
    padding-top: 24px;
  }

  #footer .nt-footer__columns .links > .row {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }

  #footer .nt-footer__columns .wrapper .h3.hidden-sm-down {
    display: none !important;
  }

  #footer .nt-footer__columns .title.hidden-md-up {
    display: block !important;
  }

  #footer .nt-footer__columns .wrapper ul.collapse {
    display: none !important;
  }

  #footer .nt-footer__columns .wrapper ul.collapse.in,
  #footer .nt-footer__columns .wrapper ul.collapse.show {
    display: block !important;
  }

  .nt-footer__payments-bar {
    justify-content: center;
  }

  .nt-footer__copyright {
    text-align: center;
  }

  .nt-footer__deco {
    display: none;
  }
}
