/* ================================================================== */
/*                     CBD SHOP FRANCE – CUSTOM FOOTER                */
/*               Pixel-perfect d'après le modèle WordPress            */
/* ================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&display=swap');

/* ---- Reset & Root ---- */
.cbd-footer {
  background-color: #004437;
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
  font-family: "Neufile Grotesk Variable", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #ffffff;
}

.cbd-footer *,
.cbd-footer *::before,
.cbd-footer *::after {
  box-sizing: border-box;
}

.cbd-footer__inner {
  max-width: 1390px;
  width: 100%;
  margin: 0 auto;
}

/* ---- Hide default PrestaShop footer elements ---- */
#footer {
  background-color: #004437 !important;
  margin: 0 !important;
  padding: 0 !important;
}

#footer > .container:first-child,
#footer .footer-container {
  display: none !important;
}

#footer .container {
  max-width: none;
  padding: 0;
  width: 100%;
}

#footer .row {
  margin: 0;
  padding: 0;
}

/* ================================================================== */
/*             ROW 1 – Newsletter | Magasin | Badges                  */
/*             flex row, 3 colonnes, space-between                    */
/* ================================================================== */
.cbd-footer__top {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: nowrap;
  column-gap: 29px;
  row-gap: 20px;
  padding-top: 129px;
  padding-bottom: 67px;
  border-bottom: 1px solid rgba(244, 244, 244, 0.1);
}

/* ---- Col Newsletter (50%) ---- */
.cbd-footer__col-newsletter {
  max-width: 50%;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.cbd-footer__title-yellow {
  color: #ffd516;
  font-weight: 700;
  font-size: 19px;
  line-height: 22px;
  letter-spacing: 0;
  margin: 0;
}

.cbd-footer__newsletter-subtitle {
  color: #ffffff;
  font-weight: 700;
  font-size: 17px;
  line-height: 27px;
  margin: 0;
  padding-bottom: 34px;
  text-align: left;
}

.cbd-footer__newsletter-form-wrap {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 5px;
  width: 100%;
}

.cbd-footer__newsletter-input {
  width: 60%;
  min-width: 0;
  padding: 19px 16px 19px 23px;
  border: 0;
  border-radius: 10px;
  background-color: #f4f4f4;
  color: #333;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.25s ease;
}

.cbd-footer__newsletter-input::placeholder {
  color: #656565;
  font-size: 14px;
}

.cbd-footer__newsletter-input:focus {
  outline: none;
}

.cbd-footer__newsletter-input:hover {
  border: 1px solid #ffd516;
}

.cbd-footer__newsletter-btn {
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: #ffd516;
  color: #004437;
  font-size: 15px;
  font-weight: 700;
  font-family: "Space Grotesk", "Neufile Grotesk Variable", sans-serif;
  cursor: pointer;
  line-height: 1;
  text-align: center;
  height: 55px;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.cbd-footer__newsletter-btn:hover {
  background: transparent;
  color: #ffd516;
  border-color: #ffd516;
}

/* ---- Col Magasin (auto) ---- */
.cbd-footer__col-store {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 17px;
}

.cbd-footer__col-store .cbd-footer__title-yellow {
  padding-bottom: 12px;
}

.cbd-footer__phone-btn {
  display: flex;
  align-items: center;
  gap: 19px;
  padding: 2px 25px;
  border: 1px solid rgba(250, 250, 250, 0.59);
  border-radius: 10px;
  text-decoration: none;
  transition: border-color 0.25s ease;
}

.cbd-footer__phone-btn:hover {
  border-color: rgba(250, 250, 250, 0.9);
}

.cbd-footer__phone-btn img {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.cbd-footer__phone-btn span {
  color: #ffd516;
  font-weight: 700;
  font-size: 16px;
  line-height: 48px;
  text-decoration: none;
  white-space: nowrap;
}

/* ---- Col Badges (33% / auto) ---- */
.cbd-footer__col-badges {
  max-width: 33%;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.cbd-footer__badge-paiement {
  width: 220px;
  height: auto;
  display: block;
}

.cbd-footer__badge-colissimo {
  width: 186px;
  height: auto;
  display: block;
}

/* ================================================================== */
/*             ROW 2 – Liens en grille 5 colonnes                     */
/* ================================================================== */
.cbd-footer__links {
  display: grid;
  grid-template-columns: minmax(1px, 1fr) minmax(1px, 1fr) minmax(1px, 1fr) minmax(1px, 1fr) minmax(1px, 1fr);
  column-gap: 29px;
  row-gap: 20px;
  padding-top: 62px;
  padding-bottom: 106px;
  align-items: start;
}

/* ---- Headings colonnes ---- */
.cbd-footer__links-heading {
  color: #ffffff;
  font-weight: 700;
  font-size: 19px;
  line-height: 22px;
  margin: 0 0 20px;
}

/* ---- Listes de liens ---- */
.cbd-footer__links-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.cbd-footer__links-col ul li {
  margin: 0;
  padding: 0;
}

.cbd-footer__links-col ul li a {
  color: #99b4af;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.9em;
  text-decoration: none;
  transition: color 0.2s ease;
}

.cbd-footer__links-col ul li a:hover {
  color: #ffffff;
}

/* ---- Col 5 : Contact (aligné à droite) ---- */
.cbd-footer__links-col--contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
}

.cbd-footer__contact-badge {
  width: 81px;
  height: 82px;
  display: block;
}

.cbd-footer__contact-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 17px;
  padding-top: 32px;
}

.cbd-footer__contact-email {
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
  line-height: 21px;
  text-decoration: none;
  text-align: right;
  transition: color 0.2s ease;
}

.cbd-footer__contact-email:hover {
  color: #ffd516;
}

.cbd-footer__contact-hours {
  color: #99b4af;
  font-size: 14px;
  line-height: 19px;
  margin: 0;
  text-align: right;
}

.cbd-footer__social {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  padding-top: 8px;
}

.cbd-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.cbd-footer__social a:hover {
  opacity: 0.75;
}

.cbd-footer__social a img {
  width: 25px;
  height: 25px;
  display: block;
}

/* ================================================================== */
/*                      ROW 3 – Copyright                             */
/* ================================================================== */
.cbd-footer__bottom {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  column-gap: 29px;
  row-gap: 20px;
  padding-bottom: 42px;
}

.cbd-footer__copyright {
  color: #99b4af;
  font-size: 14px;
  line-height: 26px;
  margin: 0;
  white-space: nowrap;
}

.cbd-footer__legal {
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  line-height: 26px;
  margin: 0;
  text-align: right;
  white-space: nowrap;
}

.cbd-footer__legal a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.cbd-footer__legal a:hover {
  color: #ffd516;
}

/* ================================================================== */
/*                       RESPONSIVE – TABLET (≤1024px)                */
/* ================================================================== */
@media screen and (max-width: 1024px) {
  .cbd-footer__top {
    flex-wrap: wrap;
    padding-top: 60px;
    padding-bottom: 50px;
    gap: 30px;
  }

  .cbd-footer__col-newsletter {
    max-width: 100%;
    order: 1;
  }

  .cbd-footer__newsletter-form-wrap {
    flex-direction: column;
    gap: 0;
  }

  .cbd-footer__newsletter-input {
    width: 80%;
  }

  .cbd-footer__col-store {
    order: 2;
  }

  .cbd-footer__col-badges {
    max-width: 100%;
    flex-direction: row;
    justify-content: flex-start;
    gap: 20px;
    order: 3;
  }

  .cbd-footer__links {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px 20px;
    padding: 50px 0 60px;
  }

  .cbd-footer__links-col--contact {
    grid-column: span 3;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
  }

  .cbd-footer__contact-block {
    align-items: flex-start;
    padding-top: 0;
  }

  .cbd-footer__contact-hours {
    text-align: left;
  }

  .cbd-footer__bottom {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    gap: 8px;
  }

  .cbd-footer__copyright,
  .cbd-footer__legal {
    white-space: normal;
    text-align: center;
  }
}

/* ================================================================== */
/*                       RESPONSIVE – MOBILE (≤767px)                 */
/* ================================================================== */
@media screen and (max-width: 767px) {
  .cbd-footer {
    padding: 0 15px;
  }

  .cbd-footer__top {
    flex-direction: column;
    padding-top: 40px;
    padding-bottom: 40px;
    gap: 30px;
  }

  .cbd-footer__col-newsletter {
    max-width: 100%;
  }

  .cbd-footer__newsletter-subtitle {
    font-size: 15px;
    line-height: 24px;
  }

  .cbd-footer__newsletter-form-wrap {
    flex-direction: column;
    gap: 0;
  }

  .cbd-footer__newsletter-input {
    width: 80%;
  }

  .cbd-footer__col-badges {
    max-width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
  }

  .cbd-footer__badge-paiement {
    width: 160px;
  }

  .cbd-footer__badge-colissimo {
    width: 140px;
  }

  .cbd-footer__links {
    grid-template-columns: 1fr 1fr;
    gap: 30px 15px;
    padding: 40px 0 50px;
  }

  .cbd-footer__links-col--contact {
    grid-column: span 2;
    align-items: flex-start;
  }

  .cbd-footer__contact-block {
    align-items: flex-start;
    padding-top: 0;
  }

  .cbd-footer__contact-hours {
    text-align: left;
  }

  .cbd-footer__social {
    justify-content: flex-start;
  }

  .cbd-footer__links-heading {
    font-size: 16px;
    line-height: 20px;
  }

  .cbd-footer__links-col ul li a {
    font-size: 13px;
  }

  .cbd-footer__bottom {
    flex-direction: column;
    gap: 6px;
    padding-bottom: 30px;
  }

  .cbd-footer__copyright,
  .cbd-footer__legal {
    font-size: 12px;
    line-height: 20px;
    white-space: normal;
    text-align: center;
  }
}
