/* ============================================================
   Replay Billets - thème sombre unique, accent ambre
   Radius : conteneurs 14px, boutons 12px, pills full
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-raised: #faf9f7;
  --bg-elevated: #f1efec;
  --line: rgba(24, 23, 20, 0.1);
  --text: #1d1c1a;
  --text-dim: #6b6a64;
  --accent: #e8a33d;
  --accent-strong: #dd9526;
  --accent-deep: #9c6b12;
  --accent-ink: #1a1206;
  --radius: 14px;
  --radius-btn: 12px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Outfit", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 68px;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.95rem;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.95rem;
  color: var(--text-dim);
}

.header-nav a { transition: color 0.25s var(--ease); }
.header-nav a:hover { color: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: var(--radius-btn);
  transition: transform 0.2s var(--ease), background 0.25s var(--ease);
  white-space: nowrap;
}

.btn:active { transform: translateY(1px) scale(0.98); }

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover { background: var(--accent-strong); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: rgba(24, 23, 20, 0.3); }

.btn-sm { padding: 10px 18px; font-size: 0.92rem; }

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 88px;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent-deep);
  line-height: 1.1;
  padding-bottom: 4px;
}

.hero p {
  color: var(--text-dim);
  font-size: 1.12rem;
  max-width: 44ch;
  margin-bottom: 32px;
}

.hero-actions { display: flex; gap: 14px; }

.hero-visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: 0 22px 60px rgba(40, 35, 20, 0.18);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Sections ---------- */
section { padding: 72px 0; }

.section-head {
  margin-bottom: 40px;
  max-width: 60ch;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 10px;
}

.section-head p { color: var(--text-dim); }

/* ---------- Grille concerts ---------- */
.concert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.concert-card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

.concert-card:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 163, 61, 0.6);
  box-shadow: 0 14px 36px rgba(40, 35, 20, 0.1);
}

.concert-card .cover {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.concert-card .cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.concert-card:hover .cover img { transform: scale(1.04); }

.concert-card .body {
  padding: 20px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.concert-card h3 {
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.concert-card .meta {
  color: var(--text-dim);
  font-size: 0.92rem;
}

.concert-card .foot {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.price { font-size: 1.3rem; font-weight: 700; }
.price small {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-dim);
}

.tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-deep);
  background: rgba(232, 163, 61, 0.16);
  border-radius: 999px;
  padding: 3px 12px;
  margin-bottom: 4px;
}

/* ---------- Comment ça marche ---------- */
.steps {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.steps-visual {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.steps-visual img { width: 100%; height: 100%; object-fit: cover; }

.step-list { display: flex; flex-direction: column; }

.step {
  display: flex;
  gap: 20px;
  padding: 24px 0;
}

.step + .step { border-top: 1px solid var(--line); }

.step-num {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-btn);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--accent-deep);
}

.step h3 { font-size: 1.15rem; margin-bottom: 4px; }
.step p { color: var(--text-dim); font-size: 0.98rem; }

/* ---------- Bandeau paiement sécurisé ---------- */
.trust-strip {
  background: var(--bg-raised);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 44px 0;
}

.trust-strip .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.trust-strip p {
  font-weight: 600;
  font-size: 1.05rem;
}

.trust-strip p span { color: var(--text-dim); font-weight: 400; display: block; font-size: 0.9rem; }

.pay-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.pay-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  padding: 9px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dim);
}

.pay-chip img { height: 18px; width: auto; }

/* ---------- Footer ---------- */
.site-footer {
  padding: 44px 0;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}

.photo-credits {
  display: block;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: rgba(107, 106, 100, 0.85);
  line-height: 1.8;
}

.photo-credits a {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.photo-credits a:hover { color: var(--text); }

/* ---------- Page paiement ---------- */
.checkout {
  padding: 56px 0 88px;
}

.checkout .container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: start;
}

.checkout-title { margin-bottom: 32px; }
.checkout-title h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.checkout-title p { color: var(--text-dim); }

.panel {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.panel + .panel { margin-top: 22px; }

.panel h2 { font-size: 1.2rem; margin-bottom: 18px; }

.order-item {
  display: flex;
  gap: 18px;
  align-items: center;
}

.order-item img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: var(--radius-btn);
  flex-shrink: 0;
}

.order-item h3 { font-size: 1.15rem; }
.order-item .meta { color: var(--text-dim); font-size: 0.92rem; }

.qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  margin-top: 18px;
  border-top: 1px solid var(--line);
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}

.qty-controls button {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-btn);
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), transform 0.15s var(--ease);
}

.qty-controls button:hover { border-color: rgba(24, 23, 20, 0.3); }
.qty-controls button:active { transform: scale(0.95); }
.qty-controls button:disabled { opacity: 0.35; cursor: default; }

.qty-value { font-weight: 700; font-size: 1.1rem; min-width: 24px; text-align: center; }

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.total-row .label { color: var(--text-dim); }
.total-row .amount { font-size: 1.7rem; font-weight: 700; }

.methods-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.method {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  padding: 13px 16px;
  font-size: 0.95rem;
  font-weight: 600;
}

.method img { height: 22px; width: auto; }

.method .cb-badge {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: var(--text);
  color: var(--bg);
  border-radius: 5px;
  padding: 3px 6px;
}

.pay-cta {
  width: 100%;
  font-size: 1.1rem;
  padding: 17px 26px;
  margin-top: 22px;
}

.secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--text-dim);
  font-size: 0.88rem;
}

.secure-note svg { flex-shrink: 0; }

.checkout-empty {
  text-align: center;
  padding: 80px 24px;
}

.checkout-empty h2 { font-size: 1.6rem; margin-bottom: 10px; }
.checkout-empty p { color: var(--text-dim); margin-bottom: 28px; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-dim);
  font-size: 0.95rem;
  margin-bottom: 24px;
  transition: color 0.2s var(--ease);
}
.back-link:hover { color: var(--text); }

/* ---------- Reveal au scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  }
  .reveal.visible { opacity: 1; transform: none; }
}

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .concert-grid { grid-template-columns: repeat(2, 1fr); }
  .checkout .container { grid-template-columns: 1fr; }
  .hero .container,
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { aspect-ratio: 16 / 10; order: -1; }
  .steps-visual { aspect-ratio: 16 / 10; }
  .header-nav .nav-link { display: none; }
}

@media (max-width: 620px) {
  .concert-grid { grid-template-columns: 1fr; }
  .methods-grid { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 64px; }
  section { padding: 56px 0; }
  .hero-actions { flex-direction: column; align-items: stretch; }
}
