/* ═══════════════════════════════════════════════════════════════
   HOPPI FOOTER — Composant réutilisable
   Palette : charcoal #28536B, air #7EA8BE, peach #F7E3AF,
             pink #EEB1D5, latte #FFF5E1
   ═══════════════════════════════════════════════════════════════ */

.h-footer {
  --h-charcoal: #28536b;
  --h-ink-soft: #425568;
  --h-pink: #eeb1d5;
  --h-peach: #f7e3af;
  --h-latte: #fff5e1;
  --h-rule: rgba(255, 255, 255, 0.12);

  background: var(--h-charcoal);
  color: white;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  padding: 64px 24px 32px;
  margin-top: 24px;
  border-radius: 24px 24px 0 0;
}
.h-footer * { box-sizing: border-box; }

.h-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px 32px;
  align-items: start;
}

/* ─────────── Brand column ─────────── */
.h-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.h-footer-logo {
  display: inline-block;
  width: fit-content;
  transition: transform 0.35s cubic-bezier(.22, 1, .36, 1);
  transform-origin: center left;
}
.h-footer-logo:hover { transform: scale(1.04) rotate(-3deg); }
.h-footer .h-footer-logo img { width: 140px; height: auto; display: block; max-width: 140px; }
.h-footer-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
  max-width: 360px;
}

.h-footer-apps {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.h-footer-app-badge {
  display: inline-flex;
  transition: transform 0.35s cubic-bezier(.22, 1, .36, 1);
  transform-origin: center;
}
.h-footer-app-badge:hover { transform: scale(1.06) rotate(-3deg); }
.h-footer-app-badge:active { transform: scale(0.94); transition-duration: 0.15s; }
.h-footer .h-footer-app-badge img {
  width: auto;
  height: 40px;
  max-width: none;
  display: block;
  border-radius: 8px;
}
.h-footer .h-footer-app-badge:first-child img { width: 120px; }
.h-footer .h-footer-app-badge:last-child img { width: 135px; }

/* ─────────── Nav columns ─────────── */
.h-footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.h-footer-title {
  margin: 0 0 8px 0;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.h-footer-link {
  color: white;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 4px 0;
  width: fit-content;
  transition: color 0.2s ease, transform 0.2s ease;
}
.h-footer-link:hover {
  color: var(--h-pink);
  transform: translateX(3px);
}

/* ─────────── Supporters ─────────── */
.h-footer-support {
  grid-column: 1 / -1;
  border-top: 1px solid var(--h-rule);
  padding-top: 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.h-footer-support-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 600;
}
.h-footer-support-logos {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.h-footer-support-logos a {
  display: inline-flex;
  align-items: center;
  transition: transform 0.3s cubic-bezier(.22, 1, .36, 1), opacity 0.2s;
  opacity: 0.85;
}
.h-footer-support-logos a:hover { opacity: 1; transform: translateY(-2px); }
.h-footer .h-footer-support-logos img {
  height: 28px;
  width: auto;
  max-width: none;
  display: block;
  border-radius: 6px;
}
.h-footer .h-footer-support-logos a:nth-child(1) img { height: 32px; width: auto; }

/* ─────────── Bottom bar ─────────── */
.h-footer-bottom {
  grid-column: 1 / -1;
  border-top: 1px solid var(--h-rule);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.h-footer-social {
  display: flex;
  gap: 8px;
}
.h-footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  transition: background 0.2s, color 0.2s, transform 0.25s cubic-bezier(.22, 1, .36, 1);
}
.h-footer-social a:hover {
  background: var(--h-pink);
  color: var(--h-charcoal);
  transform: translateY(-2px);
}
.h-footer-social svg { width: 18px; height: 18px; display: block; }

.h-footer-legal {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}
.h-footer-legal a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.2s;
}
.h-footer-legal a:hover { color: white; text-decoration: underline; }

/* ─────────── Responsive ─────────── */
@media (max-width: 900px) {
  .h-footer-inner { grid-template-columns: 1fr 1fr; }
  .h-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .h-footer {
    padding: 48px 20px 24px;
    border-radius: 20px 20px 0 0;
  }
  .h-footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .h-footer-desc { max-width: none; }
  .h-footer-support { flex-direction: column; align-items: flex-start; gap: 16px; }
  .h-footer-bottom { flex-direction: column; align-items: flex-start; gap: 16px; }
  .h-footer-legal { flex-direction: column; align-items: flex-start; gap: 8px; }
}
