/* =========================================================================
 * Thème Fabre - Footer (newsletter, colonnes, bas de page)
 * Valeurs mesurées sur produitfermedesfabres.com (leo_koreni + appagebuilder)
 * ========================================================================= */

#footer.footer {
  overflow: hidden;
  margin: 0;
  padding: 0;
  font-size: 15px;
  line-height: 17.5px;
  color: var(--fabre-text-light);
  background: var(--fabre-dark);
}

#footer .fabre-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

#footer .row {
  --bs-gutter-x: 30px;
  --bs-gutter-y: 0;
}

/* ----- Barre newsletter (ps_emailsubscription) ----- */
.fabre-newsletter {
  background: var(--fabre-green);
}

.fabre-newsletter__box {
  display: flex;
  flex-wrap: wrap;
  min-height: 100px;
}

.fabre-newsletter__title {
  flex: 0 0 30%;
  align-self: flex-start;
  max-width: 30%;
  margin: 0;
  padding: 36px 0;
  font-size: 35px;
  font-weight: 700;
  line-height: 25px;
  color: #fff;
  text-transform: capitalize;
  border-right: 1px solid #cf9;
}

.fabre-newsletter__title span {
  font-weight: 300;
}

.fabre-newsletter__form {
  flex: 0 0 70%;
  max-width: 70%;
}

.fabre-newsletter__fields {
  position: relative;
}

.fabre-newsletter__input {
  display: block;
  width: 75%;
  height: 100px;
  padding: 6px 10px;
  font-size: 14px;
  font-weight: 300;
  line-height: 17.5px;
  color: #cf9;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  outline: 0;
}

.fabre-newsletter__input::placeholder {
  color: #cf9;
  opacity: 1;
}

.fabre-newsletter__btn {
  position: absolute;
  top: 0;
  right: 0;
  width: 25%;
  height: 100%;
  padding: 0 5px;
  font-size: 16px;
  font-weight: 300;
  line-height: 28px;
  color: #fff;
  text-transform: uppercase;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.15);
  border: 0;
  transition: background-color 0.2s;
}

.fabre-newsletter__btn:hover,
.fabre-newsletter__btn:focus-visible {
  background: rgba(255, 255, 255, 0.35);
}

.fabre-newsletter__msg,
.fabre-newsletter .block_newsletter_alert {
  margin: 0;
  padding: 10px;
  font-size: 14px;
  color: #fff;
}

.fabre-newsletter .block_newsletter_alert {
  border: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.15);
}

.fabre-newsletter__msg.is-error,
.fabre-newsletter .block_newsletter_alert.alert-danger {
  background: var(--fabre-red);
}

.fabre-newsletter__gdpr {
  padding: 0 10px 10px;
  font-size: 13px;
  color: #fff;
}

/* Captcha (linovcaptcha) : la case n'apparaît qu'au premier clic dans le formulaire, pour garder la barre d'origine */
.fabre-newsletter .linovcaptcha {
  display: none;
  margin: 0;
  padding: 0 10px 15px;
}

.fabre-newsletter__form.is-active .linovcaptcha {
  display: block;
}

/* ----- Colonnes (displayFooter) ----- */
.fabre-footer__columns {
  margin: 60px 0 20px; /* le site d'origine annule les marges négatives de la rangée : colonnes de 390/195px */
}

#footer .footer-block {
  margin: 0 0 30px;
}

#footer .footer-block__title,
#footer .linov-htmlblock__title {
  margin: 0;
  padding: 30px 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 25px;
  color: #fff;
  text-transform: capitalize;
}

#footer .footer-block__list {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

#footer .footer-block__list li {
  margin-bottom: 20px;
}

#footer .footer-block__list a,
#footer .footer-block a {
  display: inline;
  padding: 0;
  line-height: inherit;
  color: var(--fabre-text-light);
  text-decoration: none;
}

#footer .footer-block__list a:hover,
#footer .footer-block a:hover {
  color: var(--fabre-orange);
}

/* Bloc "À propos" (linovhtmlblocks) */
.fabre-footer__about .linov-htmlblock__content {
  font-size: 14px;
  line-height: 24px;
}

.fabre-footer__about .linov-htmlblock__content p {
  margin: 0 0 24px;
}

.fabre-footer__about strong {
  font-weight: 700;
  color: var(--fabre-green);
}

.fabre-footer__partner {
  display: flex;
  align-items: center;
  margin: 0 -15px;
}

.fabre-footer__about .fabre-footer__partner p {
  flex: 0 0 41.6667%;
  max-width: 41.6667%;
  margin: 0;
  padding: 0 15px;
}

.fabre-footer__partner img {
  flex: 0 0 58.3333%;
  width: 58.3333%;
  max-width: 58.3333%;
  height: auto;
  padding: 0 15px;
}

/* Bloc "Facebook" (linovhtmlblocks) */
.fabre-footer__facebook .linov-htmlblock__content {
  max-height: 250px;
  overflow: hidden;
}

.fabre-footer__facebook .linov-htmlblock__content p {
  margin: 0;
}

.fabre-footer__facebook img {
  max-width: 100%;
  height: auto;
}

/* ----- Bas de page (displayFooterAfter) ----- */
.fabre-footer__bottom {
  box-shadow: inset 0 1px #666;
}

.fabre-footer__bottom-row {
  padding: 20px 0;
  font-size: 12px;
  font-weight: 300;
  line-height: 30px;
  color: #fff;
}

.fabre-footer__copyright p {
  margin: 0;
}

.fabre-footer__copyright strong {
  font-weight: 700;
}

.fabre-footer__bottom a {
  color: #fff;
  text-decoration: none;
}

.fabre-footer__bottom a:hover {
  color: var(--fabre-orange);
}

.fabre-footer__links ul {
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: right;
}

.fabre-footer__links li {
  display: inline-block;
  margin-left: 15px;
}

/* ----- Responsive (points de rupture du site d'origine) ----- */
@media (max-width: 1024px) {
  .fabre-footer__bottom-row {
    padding-bottom: 50px;
  }
}

@media (max-width: 991px) {
  .fabre-newsletter {
    padding-bottom: 30px;
  }

  .fabre-newsletter__title,
  .fabre-newsletter__form {
    flex-basis: 100%;
    max-width: 100%;
  }

  .fabre-newsletter__title {
    text-align: center;
    border-right: 0;
  }

  .fabre-newsletter__input {
    height: 50px;
    background-color: rgba(255, 255, 255, 0.1);
  }

  /* formulaire inline-block d'origine : interligne de 5px sous le champ */
  .fabre-newsletter__fields {
    margin-bottom: 5px;
  }
}

@media (max-width: 767px) {
  .fabre-footer__columns {
    margin: 40px 0 30px;
  }

  #footer .footer-block {
    margin-bottom: 0;
  }

  #footer .footer-block__title,
  #footer .linov-htmlblock__title {
    padding: 10px 0;
    line-height: 1.5;
  }

  /* Titre hors accordéon (Facebook) : interligne d'origine conservé */
  #footer .linov-htmlblock__title:not(.footer-block__title) {
    line-height: 25px;
  }

  #footer .footer-block__title--toggle .material-icons {
    font-size: 18px;
    color: var(--fabre-text-light);
  }

  .fabre-footer__bottom-row {
    text-align: center;
  }

  .fabre-footer__links ul {
    text-align: center;
  }

  .fabre-footer__links li {
    margin: 0 7px;
  }

  .fabre-newsletter__btn .ti {
    line-height: 50px;
  }
}

@media (max-width: 425px) {
  #footer .footer-block__title,
  #footer .linov-htmlblock__title {
    font-size: 18px;
  }
}
