/* ==========================================================================
   bienne-biel.ch – pied de page des pages de la Bible
   (Nouveau / Ancien Testament, Neues / Altes Testament)
   Même design que le pied de page Joomla.
   Les polices sont celles du template Joomla (même domaine, déjà en cache
   pour les visiteurs qui viennent du site).
   ========================================================================== */

@font-face {
  font-family: "Fraunces";
  src: url("/media/templates/site/cassiopeia_lafoi/fonts/fraunces-variable.woff") format("woff");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("/media/templates/site/cassiopeia_lafoi/fonts/source-sans-3-variable.woff") format("woff");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   Zone footer
   -------------------------------------------------------------------------- */
.container-footer {
  background-color: #EEEBE3;
  color: #3A4250;
}

.container-footer .bb-footer-wrap {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}

/* --------------------------------------------------------------------------
   Bloc principal
   -------------------------------------------------------------------------- */
.container-footer .bb-footer {
  width: 100%;
  font-family: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: #3A4250;
}

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

.container-footer .bb-footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  padding: 56px 0 40px;
}

/* --------------------------------------------------------------------------
   Colonne « À propos »
   -------------------------------------------------------------------------- */
.container-footer .bb-footer-about {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.container-footer .bb-footer-brand {
  margin: 0;
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  color: #1B2430;
}

.container-footer .bb-footer-verse {
  margin: 8px 0 0;
  padding: 16px 0 0 20px;
  border-left: 3px solid #B8862B;
}

.container-footer .bb-footer-verse p {
  margin: 0;
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-size: 19px;
  line-height: 1.45;
  color: #1B2430;
}

.container-footer .bb-footer-verse cite {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5A6270;
}

/* --------------------------------------------------------------------------
   Colonnes de liens
   -------------------------------------------------------------------------- */
.container-footer .bb-footer-title {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7A5A1E;
}

.container-footer .bb-footer-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container-footer .bb-footer-list li {
  margin: 0;
}

.container-footer .bb-footer a {
  color: #1E4E63;
  text-decoration: none;
}

.container-footer .bb-footer a:hover,
.container-footer .bb-footer a:focus-visible {
  color: #123444;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.container-footer .bb-footer a:focus-visible {
  outline: 2px solid #1E4E63;
  outline-offset: 2px;
  border-radius: 2px;
}

.container-footer .bb-footer-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* --------------------------------------------------------------------------
   Barre du bas
   -------------------------------------------------------------------------- */
.container-footer .bb-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  gap: 8px 24px;
  padding: 20px 0 28px;
  border-top: 1px solid #D6D0C2;
  font-size: 15px;
  color: #5A6270;
}

.container-footer .bb-footer-bottom p {
  margin: 0;
}

.container-footer .bb-footer-bottom a {
  color: #1E4E63;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.container-footer .bb-footer-bottom a:hover {
  color: #123444;
}

.container-footer .bb-footer-legal a {
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Tablette
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .container-footer .bb-footer-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px 40px;
    padding: 44px 0 32px;
  }

  .container-footer .bb-footer-about {
    grid-column: 1 / -1;
  }
}

/* --------------------------------------------------------------------------
   Mobile
   -------------------------------------------------------------------------- */
@media (max-width: 600px) {
  .container-footer .bb-footer {
    font-size: 16px;
  }

  .container-footer .bb-footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 36px 0 24px;
  }

  .container-footer .bb-footer-brand {
    font-size: 24px;
  }

  .container-footer .bb-footer-verse p {
    font-size: 18px;
  }

  .container-footer .bb-footer-bottom {
    flex-direction: column;
    align-items: center;
    padding-bottom: 32px;
  }

  .container-footer .bb-footer-sep {
    display: none;
  }

  .container-footer .bb-footer-legal a,
  .container-footer .bb-footer-credit {
    display: block;
  }

  .container-footer .bb-footer-credit {
    margin-top: 4px;
  }
}

/* --------------------------------------------------------------------------
   Smartphone : contenu centré
   -------------------------------------------------------------------------- */
@media (max-width: 600px) {
  .container-footer .bb-footer-wrap {
    padding: 0 16px;
  }

  .container-footer .bb-footer {
    text-align: center;
  }

  .container-footer .bb-footer-verse {
    padding: 0;
    border-left: none;
  }

  .container-footer .bb-footer-verse::before {
    content: "";
    display: block;
    width: 48px;
    height: 3px;
    margin: 0 auto 14px;
    background-color: #B8862B;
  }
}
