/* ============================================================
   MIECOLO — Footer
   ============================================================ */

.footer {
  background-color: var(--color-gray-900);
  color: var(--color-white);
  padding: var(--space-4xl) 0 0;
}

/* ── Top section (colonnes) ────────────────────────────────── */
.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: var(--space-2xl);
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-lg);
  padding-bottom: var(--space-4xl);
}

/* ── Colonne marque ────────────────────────────────────────── */
.footer__brand img {
  height: 36px;
  width: auto;
  margin-bottom: var(--space-md);
}

.footer__brand p {
  color: var(--color-white);
  font-size: var(--text-paragraph);
  line-height: var(--leading-relaxed);
  max-width: 280px;
}

/* ── Colonnes liens ────────────────────────────────────────── */
.footer__heading {
  font-family: var(--font-heading);
  font-size: var(--text-paragraph);
  font-weight: 600;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-jaune);
  display: inline-block;
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__links a {
  color: var(--color-white);
  font-size: var(--text-paragraph);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__links a:hover {
  color: var(--color-jaune);
}

/* ── Newsletter ────────────────────────────────────────────── */
.footer__newsletter p {
  color: var(--color-white);
  font-size: var(--text-paragraph);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-md);
}

.footer__newsletter-form {
  display: flex;
  gap: var(--space-sm);
}

.footer__newsletter-form {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 6px;
  display: flex;
  align-items: center;
  gap: 0;
}

.footer__newsletter-input {
  flex: 1;
  padding: 12px var(--space-md);
  font-family: var(--font-body);
  font-size: var(--text-paragraph);
  color: var(--color-noir);
  background-color: transparent;
  border: none;
  outline: none;
}

.footer__newsletter-input::placeholder {
  color: var(--color-gray-500);
}

.footer__newsletter-btn {
  padding: 12px var(--space-xl);
  font-family: var(--font-body);
  font-size: var(--text-paragraph);
  font-weight: 600;
  color: var(--color-white);
  background-color: var(--color-jaune);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color 0.2s ease;
  white-space: nowrap;
}

.footer__newsletter-btn:hover {
  background-color: var(--color-bleu-fonce);
  box-shadow: var(--shadow-03);
}

/* ── Divider ───────────────────────────────────────────────── */
.footer__divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ── Bottom bar ────────────────────────────────────────────── */
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin-inline: auto;
  padding: var(--space-lg);
  gap: var(--space-lg);
}

.footer__copyright {
  color: var(--color-gray-400);
  font-size: var(--text-h5);
}

.footer__legal {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
}

.footer__legal a {
  color: var(--color-gray-400);
  font-size: var(--text-h5);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__legal a:hover {
  color: var(--color-white);
}

.footer__socials {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.1);
  transition: background-color 0.2s ease;
}

.footer__social-link:hover {
  background-color: var(--color-jaune);
}

.footer__social-link svg {
  width: 18px;
  height: 18px;
  color: var(--color-white);
  fill: var(--color-white);
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 992px) {
  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }
}

@media (max-width: 576px) {
  .footer__top {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
    gap: var(--space-md);
  }

  .footer__legal {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm) var(--space-md);
  }

  .footer__socials {
    justify-content: center;
  }

  .footer__newsletter-form {
    flex-direction: column;
  }
}
