/* --- Site footer ------------------------------------------------------ */
/* One footer for every page (SiteFooter.astro). Black, closing the page
   after the contact block; yellow only on column headings and hovers. */

.site-footer {
  background-color: var(--color-black, #000);
  color: var(--color-white, #fff);
  font-family: "Inter", sans-serif;
  width: 100%;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-inner {
  margin: 0 auto;
  max-width: 1200px;
  padding: 72px 40px 32px;
}

.footer-main {
  display: grid;
  gap: 48px;
  grid-template-columns: 1.2fr 1fr 1.7fr 0.8fr;
}

/* Signature: logo, mission, the one call to action */

.footer-logo {
  display: block;
  filter: invert(1);
  height: auto;
  width: 180px;
}

.footer-mission {
  color: var(--color-gray-400, #a3a3a3);
  font-size: 15px;
  line-height: 1.5;
  margin: 20px 0 0;
  max-width: 300px;
}

.site-footer .footer-contact {
  align-items: center;
  background-color: var(--color-white, #fff);
  border-radius: 58px;
  color: var(--color-black, #000);
  display: inline-flex;
  font-size: 16px;
  font-weight: 600;
  margin-top: 28px;
  padding: 12px 22px;
}

.site-footer .footer-contact:hover {
  background-color: var(--color-accent, #f9cf01);
}

/* Link columns */

.footer-col h3 {
  color: var(--color-accent, #f9cf01);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.4;
  margin: 0 0 20px;
  text-transform: uppercase;
}

.footer-col ul {
  display: grid;
  gap: 12px;
}

.footer-col a {
  color: #e5e5e5;
  font-size: 15px;
  line-height: 1.4;
}

.footer-col a:hover {
  color: var(--color-white, #fff);
  text-decoration: underline;
  text-decoration-color: var(--color-accent, #f9cf01);
  text-underline-offset: 4px;
}

.footer-ext::after {
  color: var(--color-gray-500, #737373);
  content: " ↗";
}

/* Formations: two columns of four, filled top to bottom */
.footer-col--formations ul {
  column-gap: 32px;
  grid-auto-flow: column;
  grid-template-columns: auto auto;
  grid-template-rows: repeat(4, auto);
  justify-content: start;
}

/* Bottom bar: legal, participants' login, certification */

.footer-bottom {
  align-items: center;
  border-top: 1px solid var(--color-gray-800, #262626);
  color: var(--color-gray-500, #737373);
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  gap: 24px;
  justify-content: space-between;
  margin-top: 64px;
  padding-top: 24px;
}

.footer-legal {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.footer-legal a:hover {
  color: var(--color-white, #fff);
}

.footer-qualiopi {
  background-color: var(--color-white, #fff);
  border-radius: 8px;
  display: flex;
  padding: 6px 10px;
}

.footer-qualiopi img {
  display: block;
  height: 34px;
  width: auto;
}

/* Tablet 810–1199px */
@media (max-width: 1199px) {
  /* Formations take the width their names need; the other two share the rest */
  .footer-main {
    gap: 40px 32px;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 0.8fr);
  }

  .footer-col--formations ul {
    column-gap: 24px;
    white-space: nowrap;
  }

  .footer-signature {
    align-items: flex-end;
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    grid-column: 1 / -1;
    justify-content: space-between;
  }

  .site-footer .footer-contact {
    margin-top: 0;
  }
}

/* Mobile <810px */
@media (max-width: 809px) {
  .footer-inner {
    padding: 56px 24px 28px;
  }

  .footer-main {
    gap: 40px 24px;
    grid-template-columns: 1fr;
  }

  .footer-signature {
    display: block;
  }

  .site-footer .footer-contact {
    margin-top: 28px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}
