/* ==========================================================================
   Bastide 1820 — Footer global
   Compatible ancien footer + nouveau footer
   ========================================================================== */

/* --------------------------------------------------------------------------
   Base footer
   -------------------------------------------------------------------------- */

body .b1820-site-footer,
body footer.b1820-site-footer {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #f3eee4 !important;
  background: #10271c !important;
  clear: both;
}

body .b1820-site-footer *,
body .b1820-site-footer *::before,
body .b1820-site-footer *::after {
  box-sizing: border-box;
}

body .b1820-site-footer a {
  color: inherit !important;
  text-decoration: none !important;
}

body .b1820-site-footer img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* --------------------------------------------------------------------------
   Structure
   -------------------------------------------------------------------------- */

body .b1820-footer-main {
  display: grid;
  grid-template-columns: minmax(250px, .72fr) minmax(0, 1.28fr);
  gap: 8vw;
  align-items: start;
  padding: 78px 4.5vw 54px;
  color: #f3eee4;
  background: #10271c;
}

body .b1820-footer-statement {
  display: grid;
  align-content: start;
  justify-items: start;
}

body .b1820-footer-brand {
  display: inline-flex;
  width: 178px;
  max-width: 100%;
  opacity: 1;
}

body .b1820-footer-brand img {
  display: block;
  width: 100%;
  height: auto;
}

/* --------------------------------------------------------------------------
   CTA gauche
   -------------------------------------------------------------------------- */

body .b1820-footer-cta {
  display: grid;
  gap: 17px;
  max-width: 310px;
  margin-top: 42px;
}

body .b1820-footer-cta-kicker {
  margin: 0;
  color: #e1b28e !important;
  font-family: var(--b1820-sans, "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .18em;
  line-height: 1.5;
  text-transform: uppercase;
}

body .b1820-footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 0;
}

body .b1820-footer-actions a {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: #f3eee4 !important;
  font-family: var(--b1820-sans, "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .16em;
  line-height: 1.5;
  text-transform: uppercase;
  opacity: .78;
  transition: opacity .2s ease, color .2s ease;
}

body .b1820-footer-actions a + a {
  margin-left: 18px;
  padding-left: 18px;
}

body .b1820-footer-actions a + a::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 1px;
  height: 12px;
  background: rgba(255, 255, 255, .22);
  transform: translateY(-50%);
}

body .b1820-footer-actions a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 1px;
  background: rgba(225, 178, 142, .72);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}

body .b1820-footer-actions a:hover {
  color: #e1b28e !important;
  opacity: 1;
}

body .b1820-footer-actions a:hover::after {
  transform: scaleX(1);
}

/* --------------------------------------------------------------------------
   Colonnes
   -------------------------------------------------------------------------- */

body .b1820-footer-columns {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 42px;
  align-items: start;
  padding-top: 4px;
}

body .b1820-footer-col {
  padding-top: 10px;
}

body .b1820-footer-title {
  margin: 0 0 24px;
  color: #e1b28e !important;
  font-family: var(--b1820-sans, "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .18em;
  line-height: 1.5;
  text-transform: uppercase;
}

body .b1820-footer-col a {
  display: block;
  width: max-content;
  margin: 0 0 15px;
  color: #f3eee4 !important;
  font-family: var(--b1820-sans, "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif);
  font-size: 10px;
  letter-spacing: .13em;
  line-height: 1.5;
  text-transform: uppercase;
  opacity: .78;
  transition: opacity .2s ease, transform .2s ease;
}

body .b1820-footer-col a:hover {
  opacity: 1;
  transform: translateX(4px);
}

body .b1820-footer-col p:not(.b1820-footer-title) {
  margin: 0;
  color: rgba(255, 255, 255, .64) !important;
  font-family: var(--b1820-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif);
  font-size: 15px;
  line-height: 1.75;
}

body .b1820-footer-phone {
  margin-top: 18px !important;
  color: #f3eee4 !important;
  font-size: 12px !important;
  letter-spacing: .08em !important;
  opacity: .9 !important;
}
.b1820-footer-phone{
  margin-bottom: 0 !important;
}

/* --------------------------------------------------------------------------
   Bottom
   -------------------------------------------------------------------------- */

body .b1820-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 25px 4.5vw 30px;
  color: rgba(255, 255, 255, .52) !important;
  background: #10271c;
  border-top: 1px solid rgba(255, 255, 255, .13);
  font-family: var(--b1820-sans, "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif);
  font-size: 8px;
  letter-spacing: .14em;
  line-height: 1.5;
  text-transform: uppercase;
}

body .b1820-footer-bottom p {
  margin: 0;
}

body .b1820-footer-bottom div {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

body .b1820-footer-bottom a {
  color: inherit !important;
  text-decoration: none !important;
}

body .b1820-footer-bottom a:hover {
  color: #f3eee4 !important;
}

/* --------------------------------------------------------------------------
   Sécurité : ancien footer manuel éventuel
   -------------------------------------------------------------------------- */

body footer.site-footer:not(.b1820-site-footer) {
  color: #f3eee4;
  background: #10271c;
}

/* CTA Instagram */
.b1820-footer-social {
    width: 100%;
    justify-content: center;
}

.b1820-footer-instagram {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.b1820-footer-instagram svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.b1820-footer-instagram{
  visibility: hidden;
}

/* --------------------------------------------------------------------------
   Tablette
   -------------------------------------------------------------------------- */

@media (max-width: 980px) {
  body .b1820-footer-main {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  body .b1820-footer-columns {
    grid-template-columns: 1fr 1fr;
  }
}

/* --------------------------------------------------------------------------
   Mobile
   -------------------------------------------------------------------------- */

@media (max-width: 640px) {
  body .b1820-footer-main {
    padding: 64px 24px 42px;
  }

  body .b1820-footer-brand {
    width: 158px;
  }

  body .b1820-footer-cta {
    margin-top: 30px;
  }

  body .b1820-footer-actions {
    display: flex;
    flex-wrap: wrap;
  }

  body .b1820-footer-columns {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  body .b1820-footer-bottom {
    display: grid;
    padding: 24px;
  }

  body .b1820-footer-bottom div {
    gap: 14px 22px;
  }
}

@media (max-width: 768px) {
  .b1820-site-footer {
    text-align: center;
  }

  .b1820-footer-main,
  .b1820-footer-statement,
  .b1820-footer-cta,
  .b1820-footer-columns,
  .b1820-footer-col,
  .b1820-footer-bottom {
    text-align: center;
  }

  .b1820-footer-brand,
  .b1820-footer-actions,
  .b1820-footer-col a,
  .b1820-footer-bottom div {
    justify-content: center;
  }

  .b1820-footer-columns {
    justify-items: center;
  }

  .b1820-footer-col {
    align-items: center;
  }

  .b1820-footer-bottom {
    justify-content: center;
  }

  .b1820-footer-col {
  display: flex;
  flex-direction: column;
  }
  body .b1820-footer-statement{
    align-content: center;
    justify-content: center;
  }
  
    .b1820-footer-brand {
    margin-left: auto;
    margin-right: auto;
  }

}

