/* ── Hero ────────────────────────────────────────── */
.hero {
  position: relative;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 88px 0 72px;
  text-align: center;
}
.hero-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--primary-tint);
  border: 1px solid var(--primary-border);
  color: var(--primary-dark); font-size: .8rem; font-weight: 500;
  padding: .3rem .8rem; border-radius: var(--radius-pill);
  margin-bottom: 1.75rem;
}
.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.1rem;
  line-height: 1.1;
  letter-spacing: -.03em;
}
.hero-title .accent { color: var(--primary); }
.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}
.hero-search-bar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: .6rem;
  width: 100%; max-width: 720px;
  box-shadow: var(--shadow-md);
}
.hero-search-fields { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.hero-select, .hero-input { flex: 1; min-width: 140px; }
/* Les champs date ont une largeur intrinsèque sur WebKit/mobile qui déborde du flex :
   on force la boîte à se contraindre au conteneur. */
.hero-input[type="date"] { -webkit-appearance: none; appearance: none; min-width: 0; max-width: 100%; }
.hero-search-btn { flex-shrink: 0; }
@media (max-width: 640px) {
  .hero { padding: 56px 0 48px; }
  .hero-search-fields { flex-direction: column; align-items: stretch; }
  .hero-select, .hero-input, .hero-search-btn { width: 100%; min-width: 0; }
}

/* ── How it works ────────────────────────────────── */
.how-it-works { padding: 80px 0; background: var(--white); }
.section-title {
  text-align: center; font-size: 1.9rem; font-weight: 700;
  letter-spacing: -.02em; color: var(--text-primary);
  margin-bottom: 3rem;
}
.section-subtitle { text-align: center; color: var(--text-secondary); margin: .5rem auto 2.5rem; max-width: 520px; }
.how-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 768px) { .how-steps { grid-template-columns: 1fr; gap: 1rem; } }
.how-step {
  text-align: left; padding: 1.75rem;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--border);
  transition: border-color .15s ease;
}
.how-step:hover { border-color: var(--border-dark); }
.how-step-icon {
  width: 40px; height: 40px; border-radius: var(--radius-md);
  background: var(--primary-tint); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem;
}
.how-step h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: .4rem; color: var(--text-primary); }
.how-step p { color: var(--text-secondary); font-size: .92rem; line-height: 1.6; }

/* ── Sports section ──────────────────────────────── */
.sports-section { padding: 64px 0; background: var(--surface); border-top: 1px solid var(--border); }
.sports-badges-grid { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.sport-badge-link { text-decoration: none; }
.sport-badge-link .badge { font-size: .85rem; padding: .4rem .9rem; transition: border-color .15s ease; }

/* ── Stats ───────────────────────────────────────── */
.stats-section { padding: 72px 0; background: var(--white); border-top: 1px solid var(--border); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; text-align: center; }
@media (max-width: 640px) { .stats-grid { grid-template-columns: 1fr; gap: 2.5rem; } }
.stat-number { font-size: 2.5rem; font-weight: 700; color: var(--text-primary); letter-spacing: -.02em; line-height: 1; }
.stat-label { font-size: .92rem; color: var(--text-secondary); margin-top: .5rem; }

/* ── CTA ─────────────────────────────────────────── */
.cta-section { background: var(--surface); padding: 72px 0; border-top: 1px solid var(--border); }
.cta-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 768px) { .cta-inner { grid-template-columns: 1fr; } }
.cta-block {
  text-align: center; padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--border);
}
.cta-block h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: .5rem; color: var(--text-primary); }
.cta-block p { color: var(--text-secondary); margin-bottom: 1.5rem; font-size: .95rem; line-height: 1.6; }
.cta-divider { display: none; }

/* ═══════════════════════════════════════════════════════════
   Rafraîchissement « clean marketplace » (inspiration épurée)
   Surcharge volontairement placée en fin de fichier.
   ═══════════════════════════════════════════════════════════ */

/* Plus d'air, respiration verticale régulière */
.hero { padding: 120px 0 100px; }
.hero-title { font-size: clamp(2.4rem, 5.5vw, 3.9rem); letter-spacing: -.035em; line-height: 1.05; }
.hero-subtitle { font-size: 1.15rem; color: var(--text-secondary); max-width: 560px; margin-left: auto; margin-right: auto; line-height: 1.6; }
.hero-badge { margin-bottom: 2rem; letter-spacing: .01em; }

/* Barre de recherche du hero : plus douce, plus aérée */
.hero-search-bar {
  margin-top: 2.5rem; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg); padding: .5rem;
}

/* Rythme des sections : généreux et régulier */
.how-it-works { padding: 96px 0; }
.sports-section { padding: 96px 0; }
.section-title { font-size: 2.1rem; letter-spacing: -.025em; margin-bottom: .75rem; }

/* La section "Comment ça marche" prend l'accent secondaire (fond très léger) */
.how-it-works { background: var(--bg-alt); }

/* Onglets persona : plus doux, plus "pill" */
.hiw-tab { padding: .65rem 1.4rem; font-weight: 500; }
.hiw-tab-on { box-shadow: var(--shadow-sm); }

/* Numéros d'étape : cercle plein vert discret, plus marqué */
.hiw-num {
  background: var(--primary); border-color: var(--primary); color: #fff;
}

/* Boutons plus généreux (touch-friendly, style marketplace) */
.btn-lg { padding: .85rem 1.75rem; font-size: 1rem; border-radius: var(--radius-md); }

/* Cartes sport : plus légères */
.sport-card { border-radius: var(--radius-lg); transition: transform .12s, box-shadow .12s; }
.sport-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

@media (max-width: 640px) {
  .hero { padding: 72px 0 56px; }
  .how-it-works, .sports-section { padding: 64px 0; }
}

/* ═══════════════════════════════════════════════════════════
   Hero façon marketplace : carte de recherche flottante + social proof
   ═══════════════════════════════════════════════════════════ */

/* Fond chaud très léger (comme Loutou), pas blanc pur — donne la douceur */
.hero {
  background: linear-gradient(180deg, #F7F6F3 0%, #FFFFFF 100%);
  border-bottom: none;
}
.hero-inner { max-width: 620px; }

/* Carte de recherche : blanche, très arrondie, ombre douce */
.search-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 12px 40px rgba(17,24,39,.08);
  padding: .5rem;
  margin-top: 2.5rem;
  text-align: left;
}

.search-field {
  display: flex; align-items: center; gap: .9rem;
  padding: .85rem 1rem; border-radius: 16px;
  transition: background .12s;
}
.search-field:hover { background: var(--surface); }
.search-field-icon {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; flex-shrink: 0;
  background: var(--surface); border-radius: 12px; color: var(--text-secondary);
}
.search-field-body { flex: 1; display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.search-field-body label {
  font-size: .7rem; font-weight: 700; letter-spacing: .06em;
  color: var(--text-primary); text-transform: uppercase;
}
.search-field-input {
  border: none; background: transparent; padding: 0; margin: 0;
  font-size: 1rem; color: var(--text-primary); width: 100%;
  outline: none; box-shadow: none; -webkit-appearance: none; appearance: none;
}
.search-field-input::placeholder { color: var(--text-muted); }
select.search-field-input { cursor: pointer; }

.search-divider { height: 1px; background: var(--border); margin: 0 1rem; }

.search-btn {
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  width: 100%; margin-top: .5rem;
  background: var(--primary); color: #fff; border: none;
  padding: 1.1rem; border-radius: 16px;
  font-size: 1.05rem; font-weight: 600; cursor: pointer;
  transition: background .12s;
}
.search-btn:hover { background: var(--primary-hover); }

.search-seeall {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .9rem; color: var(--text-secondary); font-size: .92rem;
  text-decoration: none;
}
.search-seeall:hover { color: var(--primary); }

/* Bande de confiance : avatars empilés + étoiles */
.social-proof {
  display: flex; align-items: center; justify-content: center; gap: .9rem;
  margin-top: 2rem;
}
.social-proof-avatars { display: flex; }
.sp-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid #fff; margin-left: -12px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 600; font-size: .95rem;
}
.sp-avatar:first-child { margin-left: 0; }
.social-proof-text { text-align: left; }
.social-proof-stars { color: #F5A623; font-size: .95rem; letter-spacing: .05em; line-height: 1; }
.social-proof-text span { font-size: .9rem; color: var(--text-secondary); }

/* ── Correctifs "Comment ça marche" : chevauchement titre + texte onglet actif ── */
.how-it-works .section-title {
  line-height: 1.15;
  margin-bottom: .5rem;
}
.how-it-works .section-subtitle {
  margin-top: 0;
  margin-bottom: 2.25rem;
}

/* Le texte de l'onglet actif doit rester blanc et lisible dans TOUS les états */
.hiw-tab-on,
.hiw-tab-on:hover,
.hiw-tab-on:focus,
.hiw-tab-on:active {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #fff !important;
}
.hiw-tab { line-height: 1.2; }

/* ── Section "Rejoignez RefereeNow" : 3 cartes d'inscription par rôle ── */
.join-section { padding: 96px 0; }
.join-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem; max-width: 1000px; margin: 0 auto;
}
.join-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
  transition: border-color .12s, box-shadow .12s;
}
.join-card:hover { border-color: var(--primary-border); box-shadow: var(--shadow-md); }
.join-icon {
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 16px;
  background: var(--primary-tint); color: var(--primary); margin-bottom: .4rem;
}
.join-card h3 { font-size: 1.15rem; margin: 0; }
.join-card p { font-size: .9rem; color: var(--text-secondary); line-height: 1.5; margin: 0 0 .75rem; flex: 1; }
.join-card .btn-full { width: 100%; }

@media (max-width: 640px) { .join-section { padding: 56px 0; } }

/* ── Bande de confiance (remplace les faux chiffres) ── */
.trust-section { padding: 64px 0; background: var(--surface); }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.5rem; max-width: 1000px; margin: 0 auto; }
.trust-item { display: flex; flex-direction: column; align-items: center; gap: .6rem; text-align: center; }
.trust-icon { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; background: var(--primary-tint); color: var(--primary); }
.trust-label { font-weight: 600; font-size: 1rem; color: var(--text-primary); }
@media (max-width: 640px) { .trust-section { padding: 48px 0; } .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; } }
