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

.footer {
  width: 100%;
  background: #27289D;
}

.footer__container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ---- Top : logo + colonnes ---- */
.footer__top {
  padding: 60px 0 48px;
}

.footer__top .footer__container {
  display: grid;
  grid-template-columns: 220px 1fr 1fr 1fr;
  gap: 48px;
  align-items: flex-start;
}

/* Brand */
.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 50px;
}

.footer__logo {
  width: 123.798px;
  height: 183.484px;
  aspect-ratio: 56/83;
  object-fit: contain;
}

.footer__brand-name {
  color: #F5FAFF;
  font-family: 'Avenir', 'Avenir Next', sans-serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 36px;
  margin: 0;
}

/* Colonnes */
.footer__col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__col-title {
  color: #F5FAFF;
  font-family: 'Avenir', 'Avenir Next', sans-serif;
  font-size: 20px;
  font-weight: 900;
  line-height: normal;
  margin: 0;
}

.footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__link {
  color: #F5FAFF;
  font-family: 'Avenir', 'Avenir Next', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.footer__link:hover { opacity: 0.7; }

/* ---- Bottom : newsletter + contact + social ---- */
.footer__bottom {
  padding: 40px 0;
}

.footer__bottom .footer__container {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 80px;
  align-items: flex-start;
}

/* Newsletter */
.footer__newsletter {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer__newsletter-text {
  color: #F5FAFF;
  font-family: 'Avenir', 'Avenir Next', sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: normal;
  margin: 0;
}

.footer__newsletter-form {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer__input {
  width: 380px;
  height: 49px;
  border-radius: 8px;
  border: 1px solid #F5FAFF;
  background: transparent;
  color: #F5FAFF;
  font-family: 'Avenir', 'Avenir Next', sans-serif;
  font-size: 16px;
  padding: 0 16px;
  outline: none;
  box-sizing: border-box;
}

.footer__input::placeholder { color: rgba(245, 250, 255, 0.6); }

.footer__btn-subscribe {
  display: inline-flex;
  padding: 12px 24px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  background: #0086F5;
  border: none;
  color: #F5FAFF;
  font-family: 'Avenir', 'Avenir Next', sans-serif;
  font-size: 16px;
  font-weight: 400;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.footer__btn-subscribe:hover { opacity: 0.85; }

/* Contact */
.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-shrink: 0;
}

.footer__contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer__contact-link {
  color: #F5FAFF;
  font-family: 'Avenir', 'Avenir Next', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.footer__contact-link:hover { opacity: 0.7; }

/* Social */
.footer__social {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-shrink: 0;
}

.footer__social-icons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer__social-link {
  display: flex;
  width: 32px;
  height: 32px;
  justify-content: center;
  align-items: center;
  aspect-ratio: 1/1;
  transition: opacity 0.2s ease, transform 0.15s ease;
}

.footer__social-link:hover {
  opacity: 0.8;
  transform: scale(1.1);
}

.footer__social-img {
  width: 65px;
  height: 65px;
  object-fit: contain;
}

/* ---- Barre finale ---- */
.footer__bar {
  border-top: 1px solid rgba(245, 250, 255, 0.2);
  padding: 24px 0;
}

.footer__bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.footer__copy {
  color: #F5FAFF;
  font-family: 'Avenir', 'Avenir Next', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
  margin: 0;
}

.footer__legal {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer__legal-link {
  color: #F5FAFF;
  font-family: 'Avenir', 'Avenir Next', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.footer__legal-link:hover { opacity: 0.7; }

.footer__legal-sep {
  color: #F5FAFF;
  font-size: 14px;
  opacity: 0.5;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 1024px) {
  .footer__container { padding: 0 24px; }
  .footer__top .footer__container { grid-template-columns: 180px 1fr 1fr; }
  .footer__top .footer__container .footer__col:last-child { grid-column: 2; }
  .footer__bottom .footer__container { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer__input { width: 100%; }
}

@media (max-width: 768px) {
  .footer__container { padding: 0 16px; }

  .footer__top .footer__container {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__logo { width: 80px; height: auto; }
  .footer__brand-name { font-size: 24px; }

  .footer__bottom .footer__container {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__newsletter-form { flex-direction: column; align-items: flex-start; }
  .footer__input { width: 100%; }
  .footer__btn-subscribe { width: 100%; }

  .footer__bar-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer__legal { flex-wrap: wrap; }
}

.footer__contact-icon {
  color: #F5FAFF;
  font-size: 18px;
  flex-shrink: 0;
}