/**
 * Page d'accueil marketplace. Tokens de styles.css. La vitrine d'exemple
 * (Léa) utilise des photos floutées ; les vrais créateurs viennent de home.js.
 */
.home-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 20px 64px;
}
.home-hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, var(--accent-glow, color-mix(in srgb, var(--accent) 25%, transparent)), transparent 65%);
  pointer-events: none;
}
.home-hero-inner {
  position: relative;
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 56px;
  align-items: center;
}
.home-hero h1 {
  margin: 14px 0 16px;
  font-size: clamp(2.2rem, 4.6vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.home-hero-desc { font-size: 1.125rem; line-height: 1.6; color: var(--text-secondary); max-width: 560px; margin: 0; }
.home-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.home-trust { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 22px 0 0; padding: 0; list-style: none; color: var(--text-muted); font-size: 0.9rem; }
.home-trust li::before { content: "✓"; color: var(--status-success, #00E676); margin-right: 6px; font-weight: 700; }

/* Vitrine d'exemple : en-tête de profil (OnlyFans / Fansly / MYM) + grille PPV.
   Le prix est une pastille, pas un bouton. Les photos restent le sujet. */
.home-mock {
  justify-self: center;
  width: 100%;
  max-width: 380px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg-card);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.home-mock-cover { position: relative; height: 132px; background: var(--bg-secondary); }
.home-mock-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.home-mock-award {
  position: absolute; top: 12px; left: 12px; z-index: 1;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(9, 9, 11, 0.62); color: #fff;
  font-size: 0.75rem; font-weight: 700;
  backdrop-filter: blur(8px);
}
.home-mock-award::before {
  content: ""; width: 13px; height: 13px; flex: none; margin-top: -1px;
  background: linear-gradient(180deg, #ffe58f 0%, #f6b93b 55%, #d98f12 100%);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3.2 8.6 7.6 12 12 5.4l4.4 6.6 4.4-3.4-1.9 9.4H5.1z'/%3E%3Cpath d='M5.1 19.4h13.8v2.1H5.1z'/%3E%3Ccircle cx='3' cy='7.4' r='1.7'/%3E%3Ccircle cx='12' cy='3.9' r='1.7'/%3E%3Ccircle cx='21' cy='7.4' r='1.7'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3.2 8.6 7.6 12 12 5.4l4.4 6.6 4.4-3.4-1.9 9.4H5.1z'/%3E%3Cpath d='M5.1 19.4h13.8v2.1H5.1z'/%3E%3Ccircle cx='3' cy='7.4' r='1.7'/%3E%3Ccircle cx='12' cy='3.9' r='1.7'/%3E%3Ccircle cx='21' cy='7.4' r='1.7'/%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 0 3px rgba(246, 185, 59, 0.55));
}
.home-mock-head {
  position: relative; z-index: 1;
  display: flex; align-items: flex-end; gap: 12px;
  padding: 0 16px; margin-top: -28px;
}
.home-mock-avatar {
  width: 76px; height: 76px; border-radius: 50%;
  border: 3px solid var(--bg-card);
  background: var(--bg-secondary);
  overflow: hidden; flex: none;
}
.home-mock-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.home-mock-who { min-width: 0; padding-bottom: 8px; }
.home-mock-who strong { display: block; color: var(--text-primary); font-size: 1.0625rem; line-height: 1.15; letter-spacing: -0.02em; }
.home-mock-who span { display: block; color: var(--text-muted); font-size: 0.8125rem; line-height: 1.25; }
.home-mock-place { margin: 10px 16px 0; color: var(--text-secondary); font-size: 0.8125rem; }
.home-mock-stats {
  display: flex; gap: 18px;
  margin: 12px 16px 0; padding: 0;
  list-style: none;
  color: var(--text-muted); font-size: 0.75rem;
}
.home-mock-stats b { display: block; color: var(--text-primary); font-size: 0.9375rem; letter-spacing: -0.02em; }
.home-mock-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 14px; }
.home-mock-tile {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-secondary);
}
.home-mock-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.04); }
.home-mock-tile::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 38%;
  background: linear-gradient(transparent, rgba(9, 9, 11, 0.55));
  pointer-events: none;
}
.home-mock-kind {
  position: absolute; top: 8px; left: 8px; z-index: 1;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 7px; border-radius: 999px;
  background: rgba(9, 9, 11, 0.55);
  color: #fff; font-size: 0.6875rem; font-weight: 700;
  backdrop-filter: blur(8px);
}
.home-mock-tile[data-kind="video"] .home-mock-kind::before,
.home-mock-tile[data-kind="audio"] .home-mock-kind::before {
  content: "";
  width: 10px; height: 10px;
  background: #fff;
}
.home-mock-tile[data-kind="video"] .home-mock-kind::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.home-mock-tile[data-kind="audio"] .home-mock-kind::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3a3 3 0 0 0-3 3v6a3 3 0 0 0 6 0V6a3 3 0 0 0-3-3zm-6 9h2a4 4 0 0 0 8 0h2a6 6 0 0 1-5 5.91V21h3v2H8v-2h3v-3.09A6 6 0 0 1 6 12z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3a3 3 0 0 0-3 3v6a3 3 0 0 0 6 0V6a3 3 0 0 0-3-3zm-6 9h2a4 4 0 0 0 8 0h2a6 6 0 0 1-5 5.91V21h3v2H8v-2h3v-3.09A6 6 0 0 1 6 12z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.home-mock-tile .cp-tile-lock {
  z-index: 1; width: 34px; height: 34px;
  inset: auto; top: 50%; left: 50%; margin: 0;
  transform: translate(-50%, -62%);
}
.home-mock-price {
  position: absolute; left: 8px; bottom: 8px; z-index: 1;
  padding: 3px 8px; border-radius: 999px;
  background: rgba(9, 9, 11, 0.62);
  color: #fff; font-size: 0.75rem; font-weight: 700;
  backdrop-filter: blur(8px);
}
.home-mock-actions { display: grid; gap: 8px; padding: 0 14px 16px; }
.home-mock-actions .btn { width: 100%; justify-content: center; }
.home-mock-note {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin: 2px 0 0; color: var(--text-muted); font-size: 0.75rem;
}
.home-mock-18 {
  padding: 1px 5px; border: 1px solid currentColor; border-radius: 4px;
  font-size: 0.625rem; font-weight: 700; line-height: 1.4; letter-spacing: 0.02em;
}

/* Sections */
.home-section { padding: 72px 20px; }
.home-section-alt { background: var(--bg-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.home-wrap { max-width: 1160px; margin: 0 auto; }
.home-head { text-align: center; max-width: 680px; margin: 0 auto 40px; }
.home-head h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); margin: 12px 0 10px; letter-spacing: -0.01em; }
.home-head p { color: var(--text-secondary); margin: 0; line-height: 1.6; }

.home-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.home-step {
  position: relative;
  padding: 28px 24px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 16px);
  background: var(--bg-primary);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.home-step:hover { transform: translateY(-2px); border-color: var(--accent); }
.home-step::before {
  counter-increment: step;
  content: counter(step);
  display: grid; place-items: center;
  width: 36px; height: 36px; margin-bottom: 16px;
  border-radius: 50%;
  background: var(--accent-glow, color-mix(in srgb, var(--accent) 18%, transparent));
  color: var(--accent);
  font-weight: 700;
}
.home-step h3 { margin: 0 0 8px; font-size: 1.125rem; }
.home-step p { margin: 0; color: var(--text-secondary); line-height: 1.55; }

.home-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.home-feature {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 16px);
  background: var(--bg-primary);
}
.home-feature h3 { margin: 0 0 8px; font-size: 1.0625rem; }
.home-feature p { margin: 0; color: var(--text-secondary); line-height: 1.55; }
.home-center { text-align: center; margin-top: 32px; }

@media (max-width: 900px) {
  .home-hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .home-hero { padding-top: 48px; }
  .home-steps, .home-features { grid-template-columns: 1fr; }
  .home-section { padding: 56px 16px; }
}

/* Petits écrans : proportions de téléphone (l'accueil gardait les tailles d'ordinateur et paraissait « zoomé »),
   la carte « Créatrice du mois » arrive plus tôt. */
@media (max-width: 560px) {
  .home-hero { padding: 28px 16px 40px; }
  .home-hero-inner { gap: 28px; }
  .home-hero .section-badge { margin-bottom: 0; padding: 6px 12px; font-size: 0.8125rem; }
  .home-hero h1 { margin: 12px 0; font-size: 1.95rem; line-height: 1.1; }
  .home-hero-desc { font-size: 1rem; line-height: 1.5; }
  .home-actions { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 22px; }
  .home-actions .btn-lg { width: 100%; padding: 13px 20px; font-size: 0.9375rem; text-align: center; }
  .home-trust { gap: 6px 14px; margin-top: 16px; font-size: 0.8125rem; }
}
