/* ============================================================================
   Page d'accueil publique (index.html) — feuille unique de la page.
   Les styles étaient répartis entre un <style> inline (chargé AVANT
   typography.css, donc écrasé par ses règles h1/h2) et ce fichier.
   Les tokens viennent de base.css : ne pas redéfinir :root ici.
   ============================================================================ */

.home-page {
  /* Hauteur du header fixe : le hero doit commencer dessous */
  --h-header-h: 91px;
  --h-faint: rgba(255, 255, 255, 0.5);
  --h-accent: linear-gradient(135deg, var(--rose), var(--rouge-passion));
  --h-rose-soft: rgba(255, 62, 181, 0.1);
  --h-rose-line: rgba(255, 62, 181, 0.22);
  --h-max: 1100px;
}

/* body est en display:flex (base.css) : width:100% explicite requis */
.home-page > section {
  width: 100%;
  position: relative;
  z-index: 1;
}

/* typography.css ajoute marges, padding et dégradé à tous les h1/h2 */
.home-page h1,
.home-page h2 {
  margin: 0;
  padding: 0;
}

.h-grad {
  background: var(--h-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------------------------------------------- En-têtes de section ---- */
.h-head {
  max-width: 680px;
  margin: 0 auto 40px;
  text-align: center;
}
.h-eyebrow {
  display: inline-block;
  color: var(--rose);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.home-page .h-title {
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--blanc);
  text-wrap: balance;
}

/* « a. » requis : buttons.css cible a.btn:link (0-2-1) */
.home-page a.h-cta {
  border-radius: 999px;
  padding: 15px 36px;
  font-size: 1rem;
  font-weight: 700;
}

/* Cartes génériques : même surface, même rayon, même survol */
.h-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  transition: border-color 0.25s ease, transform 0.25s ease, background-color 0.25s ease;
}
.h-card:hover {
  border-color: var(--h-rose-line);
  background-color: rgba(255, 255, 255, 0.055);
  transform: translateY(-3px);
}
.h-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--rose);
  background: var(--h-rose-soft);
  border: 1px solid rgba(255, 62, 181, 0.18);
}

/* ---------------------------------------------------------------- Hero --- */
.hero-member {
  padding: calc(var(--h-header-h) + clamp(48px, 8vw, 96px)) 24px clamp(56px, 8vw, 88px);
  text-align: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero-member::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, 140vw);
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(255, 62, 181, 0.14) 0%, rgba(227, 0, 73, 0.05) 40%, transparent 70%);
  pointer-events: none;
}
.hero-member-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* Titre blanc : seul le span garde le dégradé (typography.css dégradait
   tout le h1 et l'accent ne ressortait plus) */
.home-page .hero-member-title {
  background: none;
  color: var(--blanc);
  -webkit-text-fill-color: currentColor;
  font-size: clamp(2.1rem, 6vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 20px;
  text-wrap: balance;
}
.hero-member-sub {
  font-size: clamp(1rem, 2.2vw, 1.12rem);
  color: var(--gris-perle);
  line-height: 1.65;
  max-width: 500px;
  margin: 0 0 32px;
  text-wrap: pretty;
}
.home-page a.hero-member-cta {
  padding: 16px 40px;
  font-size: 1.05rem;
  margin-bottom: 28px;
}
.hero-member-badges {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--gris-perle);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
}
.hero-badge-icon { color: var(--rose); display: flex; }

/* -------------------------------------------------- Bannière créatrices -- */
.creator-cta-banner {
  padding: clamp(40px, 6vw, 56px) 24px;
  background: var(--noir);
  border-bottom: 1px solid var(--border);
}
.creator-cta-inner {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(255, 62, 181, 0.08), rgba(227, 0, 73, 0.03));
  border: 1px solid var(--h-rose-line);
  border-radius: 20px;
  padding: clamp(22px, 4vw, 30px) clamp(22px, 4vw, 36px);
}
.creator-cta-text { flex: 1 1 280px; min-width: 0; }
.creator-cta-title { font-size: 1.1rem; font-weight: 700; color: var(--blanc); margin-bottom: 6px; }
.creator-cta-sub { font-size: 0.9rem; color: var(--gris-perle); line-height: 1.5; }

/* ------------------------------------------------- Comment ça marche ---- */
.how-section {
  padding: clamp(56px, 8vw, 88px) 24px;
  background: var(--charbon);
  border-bottom: 1px solid var(--border);
}
/* Quatre cartes : 4 colonnes sur grand écran, 2×2 sur tablette, 1 sur mobile
   (auto-fit laissait une carte seule sur une deuxième ligne). */
.how-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-width: 960px) { .how-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 720px; } }
@media (max-width: 560px) { .how-steps { grid-template-columns: minmax(0, 1fr); } }
.how-step { padding: 28px 24px; text-align: center; }
.how-step-num {
  width: 40px;
  height: 40px;
  background: var(--h-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  margin: 0 auto 16px;
  color: var(--blanc);
  box-shadow: 0 6px 18px rgba(255, 62, 181, 0.3);
}
.how-step-title { font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: var(--blanc); }
.how-step-desc { font-size: 0.88rem; color: var(--gris-perle); line-height: 1.6; }

/* -------------------------------------------------- Grille de profils --- */
.creators-section {
  padding: clamp(56px, 8vw, 88px) 24px;
  border-bottom: 1px solid var(--border);
}
.creators-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

/* ── Animations d'entrée (stagger) ── */
@keyframes cardReveal {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.home-page .creator-card {
  display: block;
  overflow: hidden;
  text-decoration: none;
  color: var(--blanc);
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  /* état initial avant l'observer */
  opacity: 0;
  transform: translateY(24px);
}
.home-page .creator-card.is-visible {
  animation: cardReveal 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.home-page .creator-card.is-visible:nth-child(1) { animation-delay: 0s;    }
.home-page .creator-card.is-visible:nth-child(2) { animation-delay: 0.08s; }
.home-page .creator-card.is-visible:nth-child(3) { animation-delay: 0.16s; }
.home-page .creator-card.is-visible:nth-child(4) { animation-delay: 0.24s; }
/* Fallback no-JS : si .is-visible n'est jamais ajouté, les cards restent visibles */
@media (prefers-reduced-motion: reduce) {
  .home-page .creator-card { opacity: 1; transform: none; }
}

/* ── Hover ── */
.home-page .creator-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 62, 181, 0.45);
  box-shadow: 0 12px 40px -10px rgba(255, 62, 181, 0.3);
}
.creator-card:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; }

/* ── Photo ── */
.creator-photo {
  aspect-ratio: 3 / 4;
  width: 100%;
  object-fit: cover;
  display: block;
  background: var(--gris-charbon);
  color: transparent;
  transition: transform 0.45s ease;
}
.creator-card:hover .creator-photo { transform: scale(1.05); }
.creator-photo-wrap { overflow: hidden; border-radius: 16px 16px 0 0; }
.creator-info { padding: 12px 14px 14px; }
.creator-name {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}
.creator-name-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.creator-certified { color: var(--rose); display: flex; flex-shrink: 0; }
.creator-price { font-size: 0.8rem; color: var(--gris-perle); }
.creator-price strong { color: var(--rose); font-weight: 700; }
.creators-cta { text-align: center; margin-top: 36px; }

/* ------------------------------------------------- Plateforme premium --- */
.premium-selection {
  padding: clamp(64px, 9vw, 96px) 24px;
  background: linear-gradient(160deg, var(--noir) 0%, var(--charbon) 60%, #0e0a10 100%);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.premium-selection-inner { max-width: 900px; margin: 0 auto; }
.premium-selection-text { max-width: 680px; margin: 0 auto; }
.premium-selection-text p {
  color: var(--gris-perle);
  font-size: 1rem;
  line-height: 1.75;
  margin: 0 0 14px;
  text-wrap: pretty;
}
.premium-selection-text p:last-child { margin-bottom: 0; }
.premium-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 16px;
  margin-top: 44px;
  text-align: left;
}
.premium-pillar { padding: 24px 22px; }
.premium-pillar .h-icon { margin-bottom: 14px; }
.premium-pillar-title { display: block; color: var(--blanc); font-size: 0.95rem; font-weight: 700; margin-bottom: 6px; }
.premium-pillar-desc { color: var(--gris-perle); font-size: 0.85rem; line-height: 1.55; }

/* ------------------------------------------------------ Présentation ---- */
.presentation-section { padding: clamp(64px, 9vw, 112px) 24px; }
.presentation-section-alt { background: var(--charbon); }
.presentation-container {
  max-width: var(--h-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.home-page .presentation-text h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--blanc);
  margin-bottom: 24px;
  text-wrap: balance;
}
/* Justifié retiré : il créait des « lézardes » entre les mots, surtout
   en colonne étroite */
.presentation-text p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--gris-perle);
  margin: 0 0 18px;
  text-wrap: pretty;
}
.presentation-text p:last-child { margin-bottom: 0; }
.presentation-text strong { color: var(--blanc); font-weight: 600; }

.presentation-image {
  display: flex;
  justify-content: center;
  width: 100%;
}
/* L'overflow reste sur le cadre : le zoom au survol débordait
   auparavant sur le texte voisin */
.presentation-frame {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--h-rose-line);
  box-shadow: 0 24px 60px -20px rgba(255, 62, 181, 0.35);
  background: var(--gris-charbon);
}
.presentation-image-1 .presentation-frame { max-width: 400px; aspect-ratio: 3 / 4; }
.presentation-image-2 .presentation-frame { max-width: 520px; }
.presentation-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.presentation-image:hover video { transform: scale(1.04); }

/* Desktop : image à gauche pour la section alternée */
.presentation-section-alt .presentation-image { order: -1; }

/* -------------------------------------------------------- Communauté ---- */
.community-section {
  padding: clamp(64px, 9vw, 104px) 24px;
  text-align: center;
  border-top: 1px solid var(--border);
}
.community-container { max-width: 760px; margin: 0 auto; }
.home-page .community-container h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 24px;
  text-wrap: balance;
}
.community-container p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--gris-perle);
  margin: 0 0 16px;
  text-wrap: pretty;
}
.community-container p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------ Responsive - */
@media (max-width: 860px) {
  .presentation-container { grid-template-columns: minmax(0, 1fr); }
  /* Mobile : toujours texte puis image */
  .presentation-section-alt .presentation-image { order: 0; }
}

@media (max-width: 700px) {
  .creators-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}

@media (max-width: 560px) {
  .home-page { --h-header-h: 75px; }
  .hero-member, .creator-cta-banner, .how-section, .creators-section,
  .premium-selection, .presentation-section, .community-section {
    padding-left: 16px;
    padding-right: 16px;
  }
  .home-page a.hero-member-cta,
  .home-page a.h-cta { width: 100%; }
  .creator-cta-inner { text-align: center; justify-content: center; }
  .h-head { margin-bottom: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .h-card,
  .creator-photo,
  .presentation-frame video { transition: none; }
  .h-card:hover,
  .creator-card:hover .creator-photo,
  .presentation-image:hover video { transform: none; }
}

/* ============================================================================
   Habillage de la page des packs (plans.css) : cartes sombres unies à
   bordure blanche discrète (coins de 22px), survols neutres, sur-titres
   comme .plans-faq-eyebrow, plus de halos roses. Le rose reste aux accents
   (dégradé des titres, pastilles d'étape, icônes, prix, bouton principal).
   ============================================================================ */
.h-eyebrow { font-size: 12px; }

.h-card {
  background: rgba(22, 22, 22, 0.95);
  border-color: rgba(255, 255, 255, 0.08);
  border-radius: 22px;
}
.h-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background-color: rgba(22, 22, 22, 0.95);
}

/* Bannière « créatrice » : encart sobre au lieu du dégradé rose */
.creator-cta-inner {
  background: rgba(22, 22, 22, 0.95);
  border-color: rgba(255, 255, 255, 0.08);
  border-radius: 22px;
}
.creator-cta-sub { color: rgba(255, 255, 255, 0.6); }

.how-step-num { box-shadow: 0 4px 12px rgba(255, 62, 181, 0.3); }
.how-step-desc,
.premium-pillar-desc { color: rgba(255, 255, 255, 0.6); }

/* Cartes de créatrices : survol neutre, comme .plan-card */
.home-page .creator-card {
  background: rgba(22, 22, 22, 0.95);
  border-color: rgba(255, 255, 255, 0.08);
}
.home-page .creator-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.7);
}

/* Vidéos de présentation : cadre blanc discret, ombre neutre */
.presentation-frame {
  border-color: rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
}

.hero-badge {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}
