.tc-site-footer {
  margin-top: clamp(3rem, 7vw, 6rem);
  border-top: 1px solid var(--tc-shell-header-border);
  background: var(--tc-shell-footer-background);
  color: var(--tc-shell-footer-foreground);
}

.tc-site-footer__grid {
  display: grid;
  grid-template-columns: minmax(230px, 0.8fr) minmax(0, 2fr);
  gap: clamp(2rem, 6vw, 5rem);
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.tc-site-footer__brand > a {
  display: flex;
  width: 160px;
  height: 52px;
  align-items: center;
  padding: 0.55rem 0.7rem;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: var(--tc-color-surface);
  box-shadow: var(--tc-shadow-small);
}

.tc-site-footer__brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tc-site-footer__brand p {
  max-width: 34ch;
}

.tc-site-footer__nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.tc-site-footer__nav h2 {
  margin-bottom: 0.8rem;
  color: var(--tc-shell-footer-heading);
  font-family: var(--tc-font-interface);
  font-size: var(--tc-type-small);
  letter-spacing: 0.04em;
}

.tc-site-footer__nav ul {
  display: grid;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.tc-site-footer__nav a {
  color: inherit;
  font-size: var(--tc-type-small);
  text-decoration: none;
}

.tc-site-footer__nav a:hover {
  color: var(--tc-shell-footer-heading);
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.tc-site-footer__legal {
  border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent);
}

.tc-site-footer__legal .tc-shell-container {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.tc-site-footer__legal-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1.25rem;
}

.tc-site-footer__legal a {
  color: inherit;
  text-decoration: none;
  font-size: var(--tc-type-small);
}

.tc-site-footer__legal a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.tc-site-footer__legal button {
  font-size: var(--tc-type-small);
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
}

@media (max-width: 820px) {
  .tc-site-footer__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) and (min-width: 821px) {
  .tc-site-footer__nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  /* Téléphone : deux colonnes compactes plutôt qu'une longue liste. */
  .tc-site-footer__nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem 1rem;
  }

  .tc-site-footer__legal .tc-shell-container {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 1rem;
  }
}
