/* ========= BASE ========= */

body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.landing-body {
  background-color: #f5f5f7;
  color: #0f172a;
}

/* Conteneur global de la page */
.home {
  max-width: 1120px;
  margin: 0 auto;
  padding: 120px 16px 80px;
}

/* Boutons réutilisables */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  color: #fff;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(124, 58, 237, 0.45);
}

.btn-secondary {
  background: #ffffff;
  color: #7c3aed;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.btn-secondary:hover {
  background: #fdf4ff;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.15);
}

/* ========= HERO ========= */

.hero {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* grand cadre gris avec les cartes + la carte centrale violette */
.hero-frame {
  position: relative;
  background: linear-gradient(to bottom, #f9fafb, #f3f4f6);
  border-radius: 32px;
  padding: 60px 16px;
  overflow: hidden;
}

/* carte centrale */
.hero-main-card {
  max-width: 560px;
  margin: 0 auto;
  background: linear-gradient(135deg, #e9d5ff 0%, #d8b4fe 20%, #c084fc 60%, #a855f7 100%);
  border-radius: 32px;
  padding: 48px 32px 44px;
  text-align: center;
  box-shadow: 0 32px 64px rgba(124, 58, 237, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.3) inset;
  backdrop-filter: blur(20px);
}

.hero-tagline {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 500;
  color: #1f2937;
  line-height: 1.4;
}

.hero-title {
  margin: 0 0 32px;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.1;
  color: #111827;
  letter-spacing: -0.02em;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* cartes produits flottantes autour du cadre */
.hero-floating {
  position: absolute;
  width: 120px;
  height: 120px;
  background-color: #ffffff;
  border-radius: 24px;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* images appliquées par classe */
.hero-img-1 {
  background-image: url('/img/img1.png');
}

.hero-img-2 {
  background-image: url('/img/img2.png');
}

.hero-img-3 {
  background-image: url('/img/img3.png');
}

.hero-img-4 {
  background-image: url('/img/img4.png');
}

.feature-icon,
.store-badge img {
  opacity: 1 !important;
  visibility: visible !important;
}

/* positions approx comme sur la maquette */
.hero-floating--tl {
  top: 24px;
  left: 32px;
}

.hero-floating--tr {
  top: 24px;
  right: 32px;
}

.hero-floating--bl {
  bottom: 24px;
  left: 60px;
}

.hero-floating--br {
  bottom: 24px;
  right: 60px;
}

/* ========= FEATURES sous le hero ========= */

.hero-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.feature-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 28px 24px 32px;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.feature-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
}

.feature-card h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  color: #111827;
  line-height: 1.3;
}

.feature-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #4b5563;
}

/* ========= SECTION "Who is FlipIQ for?" ========= */

.audience {
  margin-top: 96px;
}

.audience-inner {
  border-radius: 48px;
  padding: 64px 48px 56px;
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 25%, #5b21b6 60%, #4c1d95 85%, #3730a3 100%);
  color: #f9fafb;
  text-align: center;
  box-shadow: 0 32px 64px rgba(88, 28, 135, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  position: relative;
  overflow: hidden;
}

.audience-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 20%, rgba(233, 213, 255, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(168, 85, 247, 0.2) 0%, transparent 50%);
  pointer-events: none;
}

.audience-title {
  margin: 0 0 48px;
  font-size: 32px;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 0;
  position: relative;
  z-index: 1;
}

.audience-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 28px 24px 32px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.15) inset;
  text-align: left;
  transition: transform 0.2s ease, background 0.2s ease;
}

.audience-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.audience-card h3 {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.3;
}

.audience-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

/* ========= CTA BAS DE PAGE ========= */

.bottom-cta {
  margin-top: 96px;
  text-align: center;
}

.bottom-cta-eyebrow {
  margin: 0 0 8px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #7c3aed;
  font-weight: 600;
}

.bottom-cta-title {
  margin: 0 0 32px;
  font-size: 32px;
  font-weight: 600;
  color: #111827;
}

.bottom-cta-stores {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.store-badge {
  display: block;
  transition: transform 0.2s ease;
}

.store-badge:hover {
  transform: scale(1.05);
}

.store-badge img {
  height: 48px;
  display: block;
}

.bottom-cta-or {
  margin: 16px 0 20px;
  font-size: 14px;
  color: #6b7280;
  font-weight: 500;
}

.bottom-cta-btn {
  margin-top: 0;
}

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

@media (max-width: 900px) {
  .hero-floating {
    width: 100px;
    height: 100px;
  }

  .hero-floating--tl,
  .hero-floating--tr {
    top: 16px;
  }

  .hero-floating--bl,
  .hero-floating--br {
    bottom: 16px;
  }

  .hero-floating--tl,
  .hero-floating--bl {
    left: 20px;
  }

  .hero-floating--tr,
  .hero-floating--br {
    right: 20px;
  }

  .audience-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .audience-inner {
    padding: 48px 32px 40px;
  }

  .hero-title {
    font-size: 40px;
  }
}

@media (max-width: 720px) {
  .home {
    padding-top: 96px;
  }

  .hero {
    gap: 32px;
  }

  .hero-features {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .audience {
    margin-top: 64px;
  }

  .audience-inner {
    padding: 40px 24px 32px;
    border-radius: 32px;
  }

  .audience-title {
    font-size: 28px;
    margin-bottom: 32px;
  }

  .audience-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hero-main-card {
    padding: 40px 28px 36px;
  }

  .hero-title {
    font-size: 36px;
    margin-bottom: 28px;
  }

  .hero-tagline {
    font-size: 16px;
  }

  .hero-cta {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .bottom-cta {
    margin-top: 64px;
  }

  .bottom-cta-title {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .hero-floating {
    display: none;
  }

  .hero-frame {
    padding: 32px 16px;
    border-radius: 24px;
  }

  .hero-main-card {
    padding: 32px 20px 28px;
    border-radius: 24px;
    box-shadow: 0 24px 48px rgba(124, 58, 237, 0.25);
  }

  .hero-title {
    font-size: 32px;
  }

  .audience-inner {
    padding: 32px 20px 28px;
    border-radius: 24px;
  }

  .audience-title {
    font-size: 24px;
  }

  .audience-card {
    padding: 24px 20px 28px;
  }

  .feature-card {
    padding: 24px 20px 28px;
  }

  .store-badge img {
    height: 40px;
  }

  .bottom-cta-title {
    font-size: 24px;
  }
}
