/* Footer public pilote par Directus, utilise aussi par les pages legacy BaseLayout. */
.footer {
  background: var(--black, #080F0E);
  padding: 80px 0 40px;
  border-top: 1px solid var(--border-dark, rgba(255,255,255,.1));
  color: #fff;
}

.footer .container {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 56px;
}

.footer__logo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer__logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
  display: block;
}

.footer__desc {
  max-width: 320px;
  margin: 0 0 24px;
  color: rgba(255,255,255,.64);
  font-size: 14px;
  line-height: 1.75;
}

.footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.social-link {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.74);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Josefin Sans", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s, border-color .2s, color .2s;
}

a.social-link:hover {
  background: #4CCCB8;
  border-color: #4CCCB8;
  color: #080F0E;
}

span.social-link {
  cursor: default;
}

.social-link__icon {
  width: 18px;
  height: 18px;
  display: block;
}

.footer__qualiopi {
  width: min(920px, 100%);
  margin: 0 auto 44px;
  padding: 24px 32px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.footer__qualiopi-img {
  height: 108px;
  width: auto;
  flex: 0 0 auto;
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  background: #fff;
}

.footer__qualiopi-content {
  max-width: 620px;
  text-align: left;
}

.footer__qualiopi-title,
.footer__col-title {
  color: #4CCCB8;
  font-family: "Josefin Sans", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.footer__qualiopi-title {
  margin-bottom: 8px;
}

.footer__qualiopi-text {
  margin: 0;
  color: rgba(255,255,255,.64);
  font-size: 12px;
  line-height: 1.65;
  white-space: pre-line;
}

.footer__col-title {
  margin-bottom: 20px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__links li {
  margin: 0;
  padding: 0;
}

.footer__links--contact {
  align-items: stretch;
  gap: 12px;
}

.footer__links--contact li {
  width: 100%;
}

.footer__link,
.footer__links a,
.footer__links span {
  color: rgba(255,255,255,.74);
  font-size: 14px;
  line-height: 1.45;
  text-decoration: none;
}

.footer__link,
.footer__links a {
  transition: color .2s, background .2s, border-color .2s, transform .2s, box-shadow .2s;
}

.footer__link:hover,
.footer__links a:hover {
  color: #fff;
}

html[data-theme] body[data-screen-label] .footer__links a.footer__link--button,
html[data-theme] body[data-screen-label] .footer__links span.footer__link--button,
.footer__links a.footer__link--button,
.footer__links span.footer__link--button,
.footer__link--button {
  display: inline-flex;
  width: fit-content;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-pill, 999px);
  padding: 10px 18px;
  font-family: "Josefin Sans", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.1;
  text-transform: uppercase;
}

html[data-theme] body[data-screen-label] .footer__links a.footer__link--button:hover,
.footer__links a.footer__link--button:hover,
a.footer__link--button:hover {
  transform: translateY(-2px);
}

.footer__contact-button {
  gap: 8px;
}

html[data-theme] body[data-screen-label] .footer__links--contact a.footer__link--button,
html[data-theme] body[data-screen-label] .footer__links--contact span.footer__link--button,
.footer__links.footer__links--contact a.footer__link--button,
.footer__links.footer__links--contact span.footer__link--button,
.footer__links--contact .footer__link--button {
  width: 100%;
  height: 42px;
  box-sizing: border-box;
  padding: 11px 18px;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  text-align: center;
}

.footer__contact-icon {
  flex: 0 0 auto;
}

.footer__obfuscated-email {
  display: inline-flex;
  align-items: baseline;
}

.footer__obfuscated-email span::before {
  content: attr(data-char);
}

html[data-theme] body[data-screen-label] .footer__links a.footer__link--button-teal,
html[data-theme] body[data-screen-label] .footer__links span.footer__link--button-teal,
.footer__links a.footer__link--button-teal,
.footer__links span.footer__link--button-teal,
.footer__links .footer__link--button-teal {
  background: #4CCCB8;
  color: #080F0E;
}

html[data-theme] body[data-screen-label] .footer__links a.footer__link--button-teal:hover,
.footer__links a.footer__link--button-teal:hover {
  color: #080F0E;
  box-shadow: 0 8px 28px rgba(76,204,184,.28);
}

html[data-theme] body[data-screen-label] .footer__links a.footer__link--button-amber,
html[data-theme] body[data-screen-label] .footer__links span.footer__link--button-amber,
.footer__links a.footer__link--button-amber,
.footer__links span.footer__link--button-amber,
.footer__links .footer__link--button-amber {
  background: #FDA100;
  color: #fff;
}

html[data-theme] body[data-screen-label] .footer__links a.footer__link--button-amber:hover,
.footer__links a.footer__link--button-amber:hover {
  color: #fff;
  box-shadow: 0 8px 28px rgba(253,161,0,.3);
}

html[data-theme] body[data-screen-label] .footer__links a.footer__link--button-ghost,
html[data-theme] body[data-screen-label] .footer__links span.footer__link--button-ghost,
.footer__links a.footer__link--button-ghost,
.footer__links span.footer__link--button-ghost,
.footer__links .footer__link--button-ghost {
  border: 1px solid rgba(255,255,255,.2);
  background: transparent;
  color: #fff;
}

html[data-theme] body[data-screen-label] .footer__links a.footer__link--button-ghost:hover,
.footer__links a.footer__link--button-ghost:hover {
  border-color: rgba(255,255,255,.36);
  background: rgba(255,255,255,.08);
  color: #fff;
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer__bottom-text,
.footer__bottom-links a,
.footer__bottom-links span {
  color: rgba(255,255,255,.56);
  font-size: 13px;
}

.footer__bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.footer__bottom-links a {
  text-decoration: none;
  transition: color .2s;
}

.footer__bottom-links a:hover {
  color: #fff;
}

@media (max-width: 768px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 480px) {
  .footer .container {
    width: min(100% - 32px, 1280px);
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }

  .footer__qualiopi {
    padding: 22px;
    flex-direction: column;
    text-align: center;
  }

  .footer__qualiopi-content {
    text-align: center;
  }

  .footer__qualiopi-img {
    height: 82px;
  }

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