/* ==========================================================
   REIZH-UP / APFN — FOOTER
   Reproduction du footer WordPress
   ========================================================== */

#footer {
  margin: 0;
  padding: 0;
  background: transparent;
}

#footer .footer-container {
  margin: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.apfn-footer {
  color: #30394c;
  background: #eef0f7;
  font-family: "Work Sans", Arial, sans-serif;
}

.apfn-footer__main {
  width: 100%;
  padding: 72px 0 32px;
}

.apfn-footer__container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding-right: 30px;
  padding-left: 30px;
}

/* ==========================================================
   GRILLE PRINCIPALE
   ========================================================== */

.apfn-footer__grid {
  display: grid;
  grid-template-columns:
    minmax(220px, 0.9fr)
    minmax(220px, 0.8fr)
    minmax(420px, 1.6fr);
  gap: 70px;
  align-items: start;
}

.apfn-footer__section {
  min-width: 0;
}

.apfn-footer__title {
  margin: 0 0 30px;
  color: #30394c;
  font-family: "Work Sans", Arial, sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  text-transform: none;
}

.apfn-footer__content {
  color: #5d6470;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.7;
}

.apfn-footer__content p {
  margin: 0 0 30px;
}

.apfn-footer__content p:last-child {
  margin-bottom: 0;
}

.apfn-footer__content strong {
  color: #30394c;
  font-weight: 700;
}

.apfn-footer__content a {
  color: #5d6470;
  text-decoration: none;
  transition: color 0.2s ease;
}

.apfn-footer__content a:hover,
.apfn-footer__content a:focus {
  color: #5d9ee8;
  text-decoration: none;
}

/* ==========================================================
   CARTE
   ========================================================== */

.apfn-footer__map {
  min-width: 0;
  height: 315px;
  overflow: hidden;
  background: #dfe3ec;
}

.apfn-footer__map-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==========================================================
   LIGNE INFÉRIEURE
   ========================================================== */

.apfn-footer__bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 28px;
  align-items: center;
  margin-top: 42px;
  padding-top: 28px;
  color: #6a7180;
  font-size: 14px;
  line-height: 1.5;
}

.apfn-footer__copyright,
.apfn-footer__credit {
  margin: 0;
}

.apfn-footer__credit {
  justify-self: end;
  text-align: right;
}

.apfn-footer__credit a {
  color: #395ca3;
  font-weight: 600;
  text-decoration: none;
}

.apfn-footer__credit a:hover,
.apfn-footer__credit a:focus {
  color: #5d9ee8;
}

/* ==========================================================
   LINKEDIN
   ========================================================== */

.apfn-footer__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: #395ca3;
  background: transparent;
  text-decoration: none;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.apfn-footer__social svg {
  display: block;
  width: 25px;
  height: 25px;
  fill: currentColor;
}

.apfn-footer__social:hover,
.apfn-footer__social:focus {
  color: #5d9ee8;
  transform: translateY(-2px);
}

/* ==========================================================
   TABLETTE
   ========================================================== */

@media (max-width: 991px) {
  .apfn-footer__main {
    padding-top: 56px;
  }

  .apfn-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }

  .apfn-footer__map {
    grid-column: 1 / -1;
    height: 340px;
  }
}

/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 767px) {
  .apfn-footer__main {
    padding: 48px 0 26px;
  }

  .apfn-footer__container {
    padding-right: 20px;
    padding-left: 20px;
  }

  .apfn-footer__grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .apfn-footer__title {
    margin-bottom: 20px;
    font-size: 22px;
  }

  .apfn-footer__content {
    font-size: 16px;
  }

  .apfn-footer__map {
    grid-column: auto;
    height: 280px;
  }

  .apfn-footer__bottom {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
    margin-top: 38px;
    padding-top: 24px;
  }

  .apfn-footer__credit {
    justify-self: auto;
    text-align: left;
  }

  .apfn-footer__social {
    order: 3;
  }
}