/* ================================================= */
/* ===== VIRALPICS — FOOTER ====================== */
/* ===== Fond blanc + reveal "avance vers nous" == */
/* ================================================= */

.footer {
  --reveal: 0;                 /* 0 = loin derrière, 1 = en place (piloté par footer.js) */
  position: relative;
  z-index: 15;                 /* SOUS la FAQ (z-index 20) : la FAQ passe par-dessus */
  margin-top: -44px;           /* la FAQ recouvre légèrement le haut du footer */
  padding: 84px 24px 40px;

  /* Panneau blanc */
  border-radius: 44px 44px 0 0;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom: none;
  box-shadow: 0 -24px 60px rgba(0, 0, 0, 0.08);
  overflow: hidden;

  /* le footer "avance vers nous" : part plus petit et plus bas, puis se met en place */
  transform:
    scale(calc(0.9 + var(--reveal) * 0.1))
    translateY(calc((1 - var(--reveal)) * 48px));
  opacity: calc(0.4 + var(--reveal) * 0.6);
  transform-origin: center bottom;
  transition: transform 0.15s linear, opacity 0.15s linear;
  will-change: transform, opacity;
}

/* ============================== */
/* ===== CONTENU ================= */
/* ============================== */
.footer__inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
}

/* LOGO CENTRÉ */
.footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink, #14101f);
  font-weight: 700;
  font-size: 1.35rem;
}

.footer__logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
}

.footer__logo span {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  color: #14101f;
}

.footer__logo span b {
  font-weight: 800;
  color: #14101f;
}

/* "Pics" en dégradé bleu/violet */
.footer__logo span em {
  font-style: normal;
  font-weight: 800;
  background: linear-gradient(95deg, #ff0b9e 4%, #c22bd4 48%, #7e69ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* TITRE CTA (noir) */
.footer__cta-title {
  margin: 6px 0 4px;
  font-family: 'League Spartan', sans-serif;
  font-weight: 900;
  font-size: clamp(1.9rem, 5vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #14101f;
  text-transform: none;
}

/* "aujourd'hui" en dégradé bleu/violet */
.footer__grad {
  background: linear-gradient(95deg, #ff0b9e 4%, #c22bd4 48%, #7e69ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* BOUTON LIQUID GLASS (dégradé ViralPics) */
.footer__cta-btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 34px;
  border-radius: 999px;
  font-family: 'League Spartan', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(95deg, #ff0b9e 0%, #c22bd4 50%, #7e69ff 100%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    0 10px 34px rgba(126, 105, 255, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: transform 0.25s ease, box-shadow 0.3s ease;
}

.footer__cta-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0) 46%);
  pointer-events: none;
}

.footer__cta-btn i { position: relative; transition: transform 0.25s ease; }

.footer__cta-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 16px 44px rgba(126, 105, 255, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.footer__cta-btn:hover i { transform: translateX(4px); }

/* RÉSEAUX */
.footer__socials {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 8px;
}

.footer__socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #14101f;
  font-size: 1.2rem;
  text-decoration: none;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.footer__socials a:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #ff0b9e, #7e69ff);
  border-color: transparent;
  color: #fff;
}

/* MENTIONS LÉGALES (noir/gris) */
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
}

.footer__legal a {
  font-size: 0.85rem;
  color: rgba(20, 16, 31, 0.6);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__legal a:hover {
  color: #14101f;
  text-decoration: underline;
}

.footer__sep {
  color: rgba(20, 16, 31, 0.25);
  font-size: 0.85rem;
}

/* COPYRIGHT */
.footer__copyright {
  margin: 10px 0 0;
  font-size: 0.8rem;
  color: rgba(20, 16, 31, 0.5);
}

/* ============================== */
/* ===== RESPONSIVE ============== */
/* ============================== */
@media (max-width: 768px) {
  .footer {
    margin-top: -32px;
    border-radius: 32px 32px 0 0;
    padding: 64px 18px 34px;
  }

  .footer__inner { gap: 18px; }

  .footer__legal { gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .footer {
    transform: none;
    opacity: 1;
    transition: none;
  }
}