/* Page détail événement — Run and Bike Québec */

.event-detail-hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 55%, #3b82f6 100%);
  color: #fff;
  padding: 48px 0 56px;
  margin: -24px 0 0;
  position: relative;
  overflow: hidden;
}

.event-detail-hero.has-cover {
  background: #0f172a center/cover no-repeat;
}

.event-detail-hero.has-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(15, 23, 42, 0.92) 0%, rgba(37, 99, 235, 0.75) 100%);
}

.event-detail-hero .container {
  position: relative;
  z-index: 1;
}

.event-detail-hero .back-link {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 28px;
}

.event-detail-hero .back-link:hover {
  color: #fff;
}

.event-detail-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 10px;
}

.event-detail-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 900;
  line-height: 1.15;
  margin: 0 0 20px;
  color: #fff;
}

.event-detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.event-detail-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.event-detail-badge--open {
  background: rgba(34, 197, 94, 0.25);
  border-color: rgba(134, 239, 172, 0.5);
}

.event-detail-badge--closed {
  background: rgba(255, 255, 255, 0.1);
}

.event-detail-meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  font-size: 15px;
}

.event-detail-meta-pills span {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.event-detail-meta-pills strong {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.75;
  font-weight: 700;
}

.event-detail-body {
  padding: 40px 0 64px;
}

.event-detail-grid {
  display: grid;
  gap: 32px;
}

@media (min-width: 992px) {
  .event-detail-grid {
    grid-template-columns: 1fr 320px;
    align-items: start;
  }
}

.event-detail-section {
  margin-bottom: 40px;
}

.event-detail-section h2 {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 8px;
  color: #0f172a;
}

.event-detail-section .section-lead {
  color: #64748b;
  margin: 0 0 20px;
  font-size: 15px;
}

.event-distance-grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 600px) {
  .event-distance-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.event-distance-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.event-distance-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.1);
}

.event-distance-card.is-full {
  opacity: 0.65;
}

.event-distance-card h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
}

.event-distance-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #2563eb;
  background: #eff6ff;
  padding: 4px 10px;
  border-radius: 6px;
}

.event-distance-price {
  font-size: 1.5rem;
  font-weight: 900;
  color: #2563eb;
}

.event-distance-price.is-free {
  color: #059669;
}

.event-distance-desc {
  font-size: 14px;
  color: #64748b;
  line-height: 1.5;
  flex: 1;
}

.event-distance-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.event-distance-spots {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}

.event-distance-spots.low {
  color: #b45309;
}

.event-distance-spots.full {
  color: #b91c1c;
}

.event-shop-grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 600px) {
  .event-shop-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .event-shop-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.event-shop-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px;
}

.event-shop-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 800;
}

.event-shop-price {
  font-weight: 800;
  color: #2563eb;
  margin-bottom: 8px;
}

.event-shop-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.event-shop-size {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  color: #475569;
}

.event-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
}

.event-steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 20px 48px;
  font-size: 15px;
  color: #334155;
  line-height: 1.5;
}

.event-steps li:last-child {
  padding-bottom: 0;
}

.event-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.event-steps li strong {
  display: block;
  color: #0f172a;
  margin-bottom: 2px;
}

.event-sidebar-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
  position: sticky;
  top: 72px;
}

.event-sidebar-card h3 {
  margin: 0 0 12px;
  font-size: 1.15rem;
  font-weight: 800;
}

.event-sidebar-price-range {
  font-size: 1.35rem;
  font-weight: 900;
  color: #2563eb;
  margin-bottom: 16px;
}

.event-sidebar-card .btn {
  width: 100%;
  margin-bottom: 10px;
}

.event-sidebar-note {
  font-size: 13px;
  color: #64748b;
  margin: 12px 0 0;
  line-height: 1.5;
}

.event-sidebar-links {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
  font-size: 14px;
}

.event-sidebar-links a {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.event-faq-hint {
  background: #eff6ff;
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 14px;
  color: #1e40af;
  line-height: 1.55;
}

.event-faq-hint a {
  font-weight: 700;
}
