/* Ported verbatim from src/components/Footer.astro (Astro version) */
.site-footer {
  margin-top: var(--space-16);
}

/* ── Newsletter card ───────────────────────────────────────── */
.footer-newsletter-wrap {
  background: var(--color-bg);
  padding-bottom: 0;
}
.footer-newsletter {
  background: #1e293b;
  border-radius: var(--radius-md);
  padding: var(--space-8) var(--space-10);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  flex-wrap: wrap;
  box-shadow: var(--shadow-md);
}

.newsletter-intro {
  flex: 1 1 340px;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  color: #fff;
}
.newsletter-title {
  font-family: var(--font-title);
  font-size: var(--text-3xl);
  font-weight: var(--fw-extrabold);
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.newsletter-desc {
  font-size: var(--text-base);
  opacity: .75;
  line-height: 1.5;
}

.newsletter-feedback {
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  margin-bottom: var(--space-2);
  color: #fff;
}

.newsletter-form {
  flex: 1.5;
  min-width: 300px;
  display: flex;
  gap: var(--space-4);
  align-items: center;
}
.newsletter-input-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.newsletter-label {
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.65);
}
.newsletter-input-wrap input {
  width: 100%;
  height: 48px;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-base);
  outline: none;
  color: var(--color-text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.newsletter-input-wrap input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(224, 0, 26, 0.12);
}
.newsletter-btn {
  flex-shrink: 0;
  height: 48px;
  align-self: flex-end;
  padding: 0 var(--space-8);
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-title);
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  cursor: pointer;
  transition: background .2s ease, box-shadow .2s ease;
  box-shadow: var(--shadow-sm);
}
.newsletter-btn:hover {
  background: var(--color-primary-dark);
  box-shadow: 0 4px 12px rgba(224, 0, 26, 0.2);
}

/* ── Footer body — premium dark design ─────────────────────── */
.footer-body {
  background: var(--color-footer-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: var(--space-16) 0 0;
  margin-top: var(--space-8);
  color: rgba(255,255,255,.75);
}

.footer-grid {
  display: grid;
  grid-template-columns: 200px 2fr 1.5fr auto;
  gap: var(--space-10) var(--space-12);
  align-items: start;
  padding-bottom: var(--space-16);
}

/* Logo */
.footer-logo-wrap {
  opacity: 0.8;
}
.footer-logo-img { width: 140px; height: auto; object-fit: contain; filter: brightness(10); }

/* Nav colonne */
.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2) var(--space-6);
}
.footer-nav-link {
  font-size: var(--text-sm);
  color: rgba(255,255,255,.7);
  transition: color .2s;
  line-height: 1.8;
}
.footer-nav-link:hover { color: #fff; }

/* App pill */
.footer-app-pill {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-6);
  transition: background .2s ease, border-color .2s ease;
  text-decoration: none;
}
.footer-app-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}
.footer-app-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  object-fit: contain;
  flex-shrink: 0;
}
.footer-app-label {
  font-family: var(--font-title);
  font-size: var(--text-base);
  font-weight: var(--fw-bold);
  color: #fff;
  white-space: nowrap;
}
.footer-app-badges {
  width: 60px; height: 26px;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 0.8;
}

/* Réseaux sociaux */
.footer-socials {
  display: flex;
  gap: var(--space-3);
  align-items: center;
}
.social-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
  color: rgba(255, 255, 255, 0.8);
}
.social-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.social-btn:hover {
  background: var(--color-primary);
  border-color: transparent;
  color: #fff;
}

/* Footer bottom */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.05);
  padding: var(--space-6) 0 var(--space-8);
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  color: rgba(255,255,255,.55);
  font-size: var(--text-xs);
}
.footer-bottom a { color: rgba(255,255,255,.55); transition: color .2s; }
.footer-bottom a:hover { color: rgba(255,255,255,.9); }
.footer-logout-btn {
  background: none; border: none; padding: 0; font: inherit; cursor: pointer;
  color: rgba(255,255,255,.55); transition: color .2s;
}
.footer-logout-btn:hover { color: rgba(255,255,255,.9); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
  .footer-app-pill { grid-column: 1 / -1; justify-content: center; }
  .footer-socials { grid-column: 1 / -1; justify-content: center; }
}

@media (max-width: 767px) {
  .footer-newsletter { padding: var(--space-6) var(--space-4); flex-direction: column; gap: var(--space-4); }
  .newsletter-intro { width: 100%; text-align: center; }
  .newsletter-title { font-size: var(--text-2xl); }
  .newsletter-desc { font-size: var(--text-sm); }
  .newsletter-form { flex-direction: column; gap: var(--space-3); width: 100%; }
  .newsletter-input-wrap { width: 100%; }
  .newsletter-label { text-align: left; }
  .newsletter-input-wrap input { font-size: var(--text-sm); height: 44px; }
  .newsletter-btn { height: 44px; font-size: var(--text-sm); width: 100%; align-self: stretch; }
  .footer-body { border-radius: var(--radius-lg) var(--radius-lg) 0 0; padding: var(--space-10) 0 0; margin-top: var(--space-5); }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-6); text-align: center; }
  .footer-logo-wrap { display: flex; justify-content: center; }
  .footer-logo-img { width: 110px; }
  .footer-nav { grid-template-columns: 1fr; gap: var(--space-1); }
  .footer-app-pill { padding: var(--space-3); gap: var(--space-2); border-radius: var(--radius-md); }
  .footer-app-icon { width: 36px; height: 36px; }
  .footer-app-label { font-size: var(--text-sm); }
  .footer-app-badges { width: 50px; height: 22px; }
  .footer-socials { justify-content: center; }
  .footer-bottom .container { flex-direction: column; text-align: center; }
}
