/* ==========================================================================
   ON VOUGA — home.css (page Accueil uniquement)
   ========================================================================== */

/* ---------- Hero ---------- */
.hero{
  position: relative;
  background: radial-gradient(ellipse at 30% 0%, #131c3d 0%, var(--navy-950) 55%);
  overflow: hidden;
  padding: 64px 0 0;
}
.hero-glow{
  position: absolute;
  inset: 0;
  background:
    radial-gradient(400px 400px at 78% 20%, rgba(47,111,237,.35), transparent 70%),
    radial-gradient(320px 320px at 92% 60%, rgba(111,217,60,.18), transparent 70%);
  pointer-events: none;
}
.hero-inner{
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding-bottom: 60px;
}
.badge-pill{
  display: inline-block;
  background: rgba(111,217,60,.14);
  color: var(--green-500);
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 22px;
  border: 1px solid rgba(111,217,60,.3);
}
.hero-copy h1{
  color: var(--white);
  font-size: clamp(32px, 4.6vw, 52px);
  font-weight: 800;
  letter-spacing: -.5px;
}
.hero-copy .text-green{ color: var(--green-500); }
.hero-lead{
  color: rgba(255,255,255,.62);
  font-size: 16px;
  max-width: 460px;
  margin-top: 18px;
  line-height: 1.65;
}
.hero-cta{ display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-pay{
  margin-top: 42px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  color: rgba(255,255,255,.45);
  font-size: 13px;
}
.pay-icons{ display: flex; align-items: center; gap: 8px; }
.pay-chip{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.75);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
}
.pay-flag{
  width: 24px; height: 16px; border-radius: 3px;
  background: linear-gradient(180deg, #009e60 0%, #009e60 33%, #fcd116 33%, #fcd116 66%, #3a75c4 66%);
}

/* Hero illustration */
.hero-art{
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ticket-stack{
  position: absolute;
  top: 0; right: 6%;
  display: flex;
  gap: -10px;
}
.ticket-card{
  width: 78px; height: 190px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 2px;
  color: rgba(0,0,0,.75);
  box-shadow: var(--shadow-pop);
  transform-origin: bottom center;
}
.ticket-card.t1{ background: var(--green-500); transform: rotate(-14deg) translate(-46px, 30px); z-index: 1; }
.ticket-card.t2{ background: var(--yellow-500); transform: rotate(-2deg) translate(0, 6px); z-index: 2; }
.ticket-card.t3{ background: var(--blue-500); color: #fff; transform: rotate(12deg) translate(46px, 30px); z-index: 1; }

.hero-wordmark{
  position: relative;
  z-index: 3;
  margin-top: 140px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.wm-on, .wm-vouga{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 64px;
  line-height: .95;
  letter-spacing: -1px;
}
.wm-on{ color: var(--green-500); }
.wm-vouga{ color: var(--blue-500); }
.wm-tag{
  margin-top: 14px;
  background: var(--blue-500);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .4px;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  transform: skewX(-6deg);
}

/* ---------- Search bar ---------- */
/* Le bloc est sorti du .hero et remonté par une marge négative, pour être
   à cheval : moitié sur le fond sombre du hero, moitié sur la section claire
   qui suit (voir markup : .search-bar-wrap est un frère de .hero). */
.search-bar-wrap{
  position: relative;
  z-index: 5;
  margin-top: -38px;
  margin-bottom: 20px;
}
.search-bar{
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
  padding: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
/* .search-field est défini une seule fois dans common.css (partagé avec
   la barre de filtres de la page Événements). */
.search-submit{ flex-shrink: 0; padding: 14px 30px; }

@media (max-width: 900px){
  .hero-inner{ grid-template-columns: 1fr; padding-bottom: 44px; }
  .hero-art{ min-height: 320px; order: -1; }
  .wm-on, .wm-vouga{ font-size: 44px; }
  .hero-wordmark{ margin-top: 90px; }
  .search-bar-wrap{ margin-top: -32px; }
  .search-field + .search-field{ border-left: none; }
}
@media (max-width: 640px){
  .search-bar{ flex-direction: column; }
  .search-bar-wrap{ margin-top: -24px; }
}

/* ---------- Features ---------- */
.features{
  background: var(--white);
  padding: 56px 0 48px;
}
.features-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature-item{
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.feature-icon{
  flex-shrink: 0;
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--tint) 14%, white);
  color: var(--tint);
}
.feature-item h3{ font-size: 15.5px; margin-bottom: 4px; }
.feature-item p{ font-size: 13.5px; color: var(--ink-soft); line-height: 1.5; }

@media (max-width: 900px){ .features-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .features-grid{ grid-template-columns: 1fr; } }

/* ---------- Événements populaires ---------- */
.popular{ padding: 48px 0 80px; background: var(--white); }
.event-track-wrap{ position: relative; }
.event-track{
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.event-track::-webkit-scrollbar{ display: none; }
.event-card{ scroll-snap-align: start; }
.event-media{
  position: relative;
  display: block;
  aspect-ratio: 4/5;
  border-radius: var(--radius-md);
  background-color: #0b0e1a;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .25s ease, box-shadow .25s ease;
}
.event-card:hover .event-media{ transform: translateY(-6px); box-shadow: var(--shadow-pop); }
.event-tag{
  position: absolute; top: 12px; left: 12px;
  background: var(--tag);
  color: #08110a;
  font-size: 11px; font-weight: 700;
  padding: 5px 10px; border-radius: var(--radius-pill);
  text-transform: uppercase; letter-spacing: .3px;
}
.event-date{
  position: absolute; top: 12px; right: 12px;
  background: rgba(255,255,255,.94);
  color: var(--ink);
  border-radius: 10px;
  padding: 6px 10px;
  text-align: center;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.1;
  text-transform: uppercase;
}
.event-date strong{ display: block; font-size: 16px; font-family: var(--font-display); }
.fav-btn{
  position: absolute; bottom: 12px; right: 12px;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.92);
  border: none;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-soft);
  transition: color .18s ease, transform .18s ease;
}
.fav-btn:hover{ transform: scale(1.08); }
.fav-btn.is-active{ color: var(--pink-500); }
.fav-btn.is-active svg{ fill: currentColor; }
.event-info{ padding: 14px 2px 0; }
.event-info h3{ font-size: 15.5px; margin-bottom: 4px; }
.event-loc{ font-size: 13px; color: var(--ink-soft); margin-bottom: 6px; }
.event-price{ font-size: 14px; font-weight: 700; color: var(--green-600); }

.track-nav{
  position: absolute;
  top: 38%; right: -18px;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--grey-200);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
  transition: background .18s ease, color .18s ease;
}
.track-nav:hover{ background: var(--green-500); color: var(--navy-950); border-color: transparent; }
@media (max-width: 700px){ .track-nav{ display: none; } }

/* ---------- Comment ça marche ---------- */
.how-it-works{ background: var(--grey-100); padding: 76px 0; }
.how-it-works h2.center{ text-align: center; margin-bottom: 46px; }
.steps{
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}
.step{
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 26px 18px;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.step-icon{
  width: 52px; height: 52px; margin: 0 auto 14px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--tint) 16%, white);
  color: var(--tint);
}
.step h3{ font-size: 15.5px; margin-bottom: 6px; }
.step p{ font-size: 13px; color: var(--ink-soft); line-height: 1.5; }
.step-connector{
  width: 26px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--grey-300) 0 6px, transparent 6px 12px);
}
@media (max-width: 900px){
  .steps{ grid-template-columns: 1fr 1fr; }
  .step-connector{ display: none; }
}
@media (max-width: 560px){ .steps{ grid-template-columns: 1fr; } }

/* ---------- Confiance / App ---------- */
.trust{ background: var(--navy-950); color: var(--white); padding: 76px 0; }
.trust-grid{
  display: grid;
  grid-template-columns: 1.1fr 1fr auto;
  gap: 40px;
  align-items: center;
}
.trust-stats h2{ color: var(--white); font-size: clamp(22px, 3vw, 28px); margin-bottom: 30px; }
.stats-row{ display: flex; gap: 34px; flex-wrap: wrap; }
.stat{ display: flex; flex-direction: column; gap: 4px; }
.stat-num, .stat-static{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 30px;
}
.stat:nth-child(1) .stat-num{ color: var(--yellow-500); }
.stat:nth-child(2) .stat-num{ color: var(--green-500); }
.stat:nth-child(3) .stat-num{ color: var(--pink-500); }
.stat:nth-child(4) .stat-static{ color: var(--blue-500); }
.stat-label{ font-size: 13px; color: rgba(255,255,255,.55); }

.trust-app h3{ color: var(--white); font-size: 19px; margin-bottom: 6px; }
.trust-app p{ color: rgba(255,255,255,.55); font-size: 14px; margin-bottom: 18px; }
.store-badges{ display: flex; flex-direction: column; gap: 10px; }
.store-badge{
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  padding: 9px 16px;
  color: var(--white);
  font-size: 11px;
  transition: background .18s ease, transform .18s ease;
}
.store-badge strong{ display: block; font-size: 14px; font-family: var(--font-display); }
.store-badge:hover{ background: rgba(255,255,255,.14); transform: translateY(-2px); }

.phone-mock{
  width: 150px; height: 300px;
  border-radius: 30px;
  background: linear-gradient(160deg, #1a234f, #05070f);
  border: 6px solid #1a234f;
  box-shadow: var(--shadow-pop);
  display: flex; align-items: center; justify-content: center;
}
.phone-screen{ display: flex; flex-direction: column; align-items: center; }
.wm-on.sm, .wm-vouga.sm{ font-size: 22px; }

@media (max-width: 980px){
  .trust-grid{ grid-template-columns: 1fr 1fr; }
  .trust-phone{ display: none; }
}
@media (max-width: 640px){
  .trust-grid{ grid-template-columns: 1fr; }
  .stats-row{ gap: 24px; }
}
