/* EventPass — nouveau hero de la landing. Tout est sous .ep-hero (aucun conflit avec les anciens CSS).
   Dépend de eventpass-tokens.css. */

.ep-hero,
.ep-hero *,
.ep-hero *::before,
.ep-hero *::after { box-sizing: border-box; }

.ep-hero {
  background: var(--ep-bg);
  color: var(--ep-ink);
  font-family: var(--ep-font);
  padding: clamp(40px, 7vw, 92px) 0 clamp(52px, 8vw, 108px);
  overflow: hidden;
}

.ep-hero__grid {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
  gap: clamp(40px, 7vw, 104px);
  align-items: center;
}

.ep-hero h1 {
  font-family: var(--ep-font);
  font-size: clamp(2.1rem, 4.6vw, 3.55rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.035em;
  color: var(--ep-ink);
  max-width: 20ch;
  margin: 0 0 var(--ep-space-5);
}

.ep-hero__lead {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ep-muted);
  max-width: 54ch;
  margin: 0 0 var(--ep-space-6);
}

.ep-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ep-space-3);
}

.ep-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 var(--ep-space-5);
  border-radius: var(--ep-radius-s);
  border: 1px solid transparent;
  font: 650 1rem/1 var(--ep-font);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, border-color .15s;
}

.ep-hero__btn--primary {
  background: var(--ep-brand);
  color: #fff;
}
.ep-hero__btn--primary:hover { background: var(--ep-brand-strong); }

.ep-hero__btn--ghost {
  background: transparent;
  color: var(--ep-ink);
  border-color: var(--ep-line);
}
.ep-hero__btn--ghost:hover { border-color: var(--ep-brand); color: var(--ep-brand); }

.ep-hero__btn:focus-visible { outline: none; box-shadow: var(--ep-focus); }

.ep-hero__offer {
  margin: var(--ep-space-5) 0 0;
  font-size: .9375rem;
  color: var(--ep-ok);
  font-weight: 650;
}

/* ---------- L'objet : le pass ---------- */

.ep-hero__object {
  position: relative;
  margin: 0;
  justify-self: center;
  width: 100%;
  max-width: 360px;
  padding-bottom: var(--ep-space-5);
}

.ep-ticket {
  transform: rotate(-2.5deg);
  filter: drop-shadow(var(--ep-shadow-l));
}

.ep-ticket__top {
  background: var(--ep-brand);
  color: #fff;
  border-radius: var(--ep-radius-l) var(--ep-radius-l) 0 0;
  padding: 30px 28px 34px;
}

html[data-ep-resolved="dark"] .ep-ticket__top { background: #315DE0; }

.ep-ticket__kind {
  display: inline-block;
  margin: 0 0 var(--ep-space-5);
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--ep-violet);
  color: #fff;
  font-size: .8125rem;
  font-weight: 700;
}
html[data-ep-resolved="dark"] .ep-ticket__kind { background: #7C3AED; color: #fff; }

.ep-ticket__title {
  margin: 0 0 var(--ep-space-2);
  font: 800 1.75rem/1.12 var(--ep-font);
  letter-spacing: -.03em;
  color: #fff;
}

.ep-ticket__meta {
  margin: 0 0 var(--ep-space-6);
  font-size: .9375rem;
  line-height: 1.5;
  color: #DCE5FF;
}

.ep-ticket__holder {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
}
.ep-ticket__holder small {
  display: block;
  font-size: .8125rem;
  font-weight: 500;
  color: #DCE5FF;
  margin-bottom: 2px;
}

/* Déchirure : deux encoches + pointillés */
.ep-ticket__tear {
  position: relative;
  height: 0;
}
.ep-ticket__tear::before,
.ep-ticket__tear::after {
  content: "";
  position: absolute;
  top: -13px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ep-bg);
}
.ep-ticket__tear::before { left: -13px; }
.ep-ticket__tear::after  { right: -13px; }
.ep-ticket__tear i {
  position: absolute;
  left: 20px;
  right: 20px;
  top: -1px;
  border-top: 2px dashed #C9D2EA;
}

.ep-ticket__stub {
  background: #fff;
  border-radius: 0 0 var(--ep-radius-l) var(--ep-radius-l);
  padding: 30px 28px 26px;
  display: flex;
  align-items: center;
  gap: var(--ep-space-5);
}

.ep-ticket__qr {
  flex: none;
  width: 118px;
  height: 118px;
  fill: #101A36;
  shape-rendering: crispEdges;
}

.ep-ticket__stub p {
  margin: 0;
  color: #101A36;
  font-size: .875rem;
  line-height: 1.45;
}
.ep-ticket__stub strong { display: block; font-size: 1rem; margin-bottom: 4px; }

/* Résultat du scan : le seul élément animé de la page */
.ep-scan {
  position: absolute;
  left: -10%;
  bottom: -9%;
  display: flex;
  align-items: center;
  gap: var(--ep-space-3);
  padding: 12px 18px 12px 14px;
  background: var(--ep-surface);
  border: 1px solid var(--ep-line);
  border-radius: var(--ep-radius-m);
  box-shadow: var(--ep-shadow-s);
}
.ep-scan__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ep-ok-soft);
  color: var(--ep-ok);
}
.ep-scan__icon svg { width: 18px; height: 18px; }
.ep-scan strong { display: block; font-size: .9375rem; color: var(--ep-ink); }
.ep-scan span { font-size: .8125rem; color: var(--ep-muted); }

.ep-hero__caption {
  margin: var(--ep-space-5) 0 0;
  text-align: right;
  font-size: .8125rem;
  color: var(--ep-muted);
}

@media (prefers-reduced-motion: no-preference) {
  .ep-ticket { animation: ep-ticket-in .7s cubic-bezier(.2, .8, .2, 1) both; }
  .ep-scan   { animation: ep-scan-in .45s cubic-bezier(.3, 1.4, .5, 1) 1.1s both; }
}
@keyframes ep-ticket-in {
  from { opacity: 0; transform: translateY(28px) rotate(-7deg); }
  to   { opacity: 1; transform: translateY(0) rotate(-2.5deg); }
}
@keyframes ep-scan-in {
  from { opacity: 0; transform: scale(.85) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* ---------- Tablette et mobile ---------- */

@media (max-width: 880px) {
  .ep-hero__grid { grid-template-columns: minmax(0, 1fr); gap: var(--ep-space-7); }
  .ep-hero h1 { max-width: 22ch; }
  .ep-hero__object { max-width: 330px; }
  .ep-scan { left: -3%; }
}

@media (max-width: 520px) {
  .ep-hero__actions { flex-direction: column; }
  .ep-hero__btn { width: 100%; }
  .ep-ticket__top { padding: 26px 22px 30px; }
  .ep-ticket__stub { padding: 26px 22px 22px; }
  .ep-ticket__qr { width: 104px; height: 104px; }
}
