/**
 * Footer — macarteimprimee.com
 * Colonne marque + 3 colonnes de liens + barre légale (modèle Footer7, CSS vanilla).
 * Dépend des variables de main.css (:root)
 */

.site-footer {
  background: var(--footer-bg);
  color: rgba(255, 255, 255, 0.85);
  margin-top: var(--space-2xl);
  padding:
    clamp(2rem, 4vw, 3rem)
    env(safe-area-inset-right)
    calc(clamp(2rem, 4vw, 3rem) + env(safe-area-inset-bottom))
    env(safe-area-inset-left);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  transition: color var(--ease);
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #fff;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: clamp(1.75rem, 3vw, 2.5rem);
}

.site-footer__top {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 4vw, 3rem);
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 28rem;
}

.site-footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: #fff;
}

.site-footer__logo:hover,
.site-footer__logo:focus-visible {
  color: #fff;
}

.site-footer__logo-img {
  display: block;
  height: 2rem;
  width: auto;
  max-width: 10.5rem;
}

.site-footer__logo-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}

.site-footer__desc {
  margin: 0;
  max-width: 26rem;
  font-size: var(--text-sm);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.68);
}

.site-footer__desc a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.site-footer__desc a:hover,
.site-footer__desc a:focus-visible {
  color: #fff;
}

.site-footer__contact {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 1rem;
  font-size: var(--text-sm);
}

.site-footer__contact-link {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color var(--ease), color var(--ease);
}

.site-footer__contact-link:hover,
.site-footer__contact-link:focus-visible {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.45);
}

.site-footer__contact-link--reviews::before {
  content: '★';
  margin-right: 0.2rem;
  color: #fbbf24;
  font-size: 0.85em;
}

.site-footer__hint {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.02em;
}

.site-footer__social {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0.15rem 0 0;
  padding: 0;
}

.site-footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  color: rgba(255, 255, 255, 0.78);
  border-radius: var(--r);
}

.site-footer__social a:hover,
.site-footer__social a:focus-visible {
  color: var(--a);
  background: rgba(255, 255, 255, 0.08);
}

.site-footer__cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

.site-footer__col-title {
  margin: 0 0 0.85rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.site-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.site-footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.68);
}

.site-footer__links a:hover,
.site-footer__links a:focus-visible {
  color: var(--a);
}

.site-footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: var(--text-xs);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
}

.site-footer__copy {
  margin: 0;
  font-size: inherit;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer__legal {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__legal a {
  color: rgba(255, 255, 255, 0.62);
}

.site-footer__legal a:hover,
.site-footer__legal a:focus-visible {
  color: #fff;
}

@media (min-width: 640px) {
  .site-footer__cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .site-footer__legal {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.35rem 1.25rem;
  }
}

@media (min-width: 960px) {
  .site-footer__top {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: clamp(2rem, 5vw, 4.5rem);
  }

  .site-footer__brand {
    flex: 0 1 22rem;
  }

  .site-footer__cols {
    flex: 1 1 auto;
    gap: 2rem;
  }

  .site-footer__bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
