/* ============================================
   FOOTER — Archiprogramme
   ============================================ */

.ap-footer-ref {
  background-color: var(--ap-signal, #EA6928);
  color: #ffffff;
  width: 100%;
  padding: clamp(16px, 2vw, 24px) clamp(24px, 5vw, 72px) 0;
  box-sizing: border-box;
  overflow: hidden;
}

.ap-footer-ref__inner {
  display: grid;
  grid-template-columns: 45% minmax(0, 1fr);
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
}

.ap-footer-ref__logo-col {
  padding-top: 0;
}

.ap-footer-ref__logo-col img {
  width: 260px;
  height: auto;
  display: block;
  filter: brightness(0) invert(1);
}

.ap-footer-ref__agencies {
  display: flex;
  flex-direction: row;
  gap: 40px;
  margin-top: clamp(60px, 6.5vw, 82px);
  min-width: 0;
}

.ap-footer-ref__agency {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-width: 0;
  overflow-wrap: break-word;
}

.ap-footer-ref__agency-name {
  font-family: 'Epilogue', sans-serif !important;
  font-size: clamp(18px, 2.5vw, 24px) !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  color: #ffffff !important;
  margin: 0 !important;
  padding: 0 !important;
  text-transform: none !important;
}

.ap-footer-ref__agency p {
  font-family: 'DM Sans', sans-serif !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 24px !important;
  color: #ffffff !important;
  margin: 0 !important;
  overflow-wrap: anywhere;
}

.ap-footer-ref__spacer {
  grid-column: 1 / -1;
}

.ap-footer-ref__bottom {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 36px 0 28px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.ap-footer-ref__bottom a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.2s;
}

.ap-footer-ref__bottom a:hover {
  color: #ffffff;
}

@media (max-width: 768px) {
  .ap-footer-ref__inner {
    grid-template-columns: 1fr;
  }

  .ap-footer-ref__agencies {
    flex-direction: column;
    gap: 48px;
    margin-top: 56px;
  }

  .ap-footer-ref__agency {
    gap: 16px;
  }

  .ap-footer-ref__spacer {
    min-height: 0;
  }

  .ap-footer-ref__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-bottom: 32px;
  }
}
