/* ============================================================
   FOOTER
============================================================ */

.site-footer {
  background: var(--green-deepest);
  border-top: 1px solid var(--border-on-green-soft);
  padding: var(--space-16) var(--section-x) var(--space-8);
}

.site-footer__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-10);
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.site-footer__leaf {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.site-footer__wordmark {
  font-family: var(--font-brand);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-on-green-strong);
}

.site-footer__tagline {
  color: var(--text-on-green-mid);
  font-size: var(--text-sm);
  max-width: 26em;
  line-height: 1.6;
}

.site-footer__col-title {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-bright);
  margin-bottom: var(--space-4);
}

.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.site-footer__links a {
  position: relative;
  display: inline-block;
  width: fit-content;
  font-size: var(--text-sm);
  color: var(--text-on-green-mid);
  transition: color var(--duration-base) var(--ease-in-out);
}

.site-footer__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-base) var(--ease-standard);
}

.site-footer__links a:hover { color: var(--text-on-green-strong); }
.site-footer__links a:hover::after { transform: scaleX(1); }

.site-footer__bottom {
  max-width: var(--container-max);
  margin: var(--space-12) auto 0;
  padding-top: var(--space-6);
  border-top: 1px solid var(--border-on-green-soft);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.site-footer__copyright {
  font-size: var(--text-xs);
  color: var(--text-on-green-soft);
  text-align: center;
}

.site-footer__credit-sep {
  margin: 0 var(--space-1);
  opacity: 0.6;
}

.site-footer__credit-link {
  color: var(--text-on-green-mid);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--border-on-green);
  transition: color var(--duration-base) var(--ease-in-out),
              text-decoration-color var(--duration-base) var(--ease-in-out);
}

.site-footer__credit-link:hover {
  color: var(--green-bright);
  text-decoration-color: var(--green-bright);
}

/* ------------------------------------------------------------
   Tablette (≤ 800px) : la marque passe en pleine largeur,
   les deux colonnes de liens restent côte à côte
------------------------------------------------------------ */
@media (max-width: 800px) {
  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8) var(--space-6);
  }
  .site-footer__inner > div:first-child { grid-column: 1 / -1; }
}

/* ------------------------------------------------------------
   Mobile (≤ 480px) : tout s'empile, bas de footer centré
------------------------------------------------------------ */
@media (max-width: 480px) {
  .site-footer__inner { grid-template-columns: 1fr; gap: var(--space-8); }
  .site-footer__bottom { flex-direction: column; text-align: center; }
}
