/* ============================================================
   LE CHIEN ET LA FAMILLE — styles.css
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Merriweather:wght@700;900&display=swap');

/* ---------- Variables ---------- */
:root {
  --primary: #0077B6;
  --primary-dark: #005a8e;
  --primary-light: #90E0EF;
  --primary-xlight: #CAF0F8;
  --accent: #F77F00;
  --text: #1a1a2e;
  --text-muted: #6b7280;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --border: #e5e7eb;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0,119,182,0.08);
  --shadow-lg: 0 12px 40px rgba(0,119,182,0.15);
  --transition: 0.25s ease;
  --font: 'Inter', sans-serif;
  --font-heading: 'Merriweather', serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.2; }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2.1rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
p { font-size: 1rem; color: var(--text-muted); line-height: 1.8; }

/* ---------- Layout ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-weight: 600; font-size: 0.95rem;
  cursor: pointer; border: none;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--primary); color: #fff;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,119,182,0.3); }
.btn-outline {
  background: transparent; color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.btn-accent {
  background: var(--accent); color: #fff;
}
.btn-accent:hover { background: #e06d00; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(247,127,0,0.3); }
.btn-lg { padding: 1rem 2.25rem; font-size: 1.05rem; }

/* ---------- Navigation ---------- */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.navbar-logo {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem; color: var(--primary);
}
.navbar-logo svg { width: 32px; height: 32px; }
.navbar-nav {
  display: flex; align-items: center; gap: 2rem;
}
.navbar-nav a {
  font-weight: 500; font-size: 0.9rem; color: var(--text);
  transition: color var(--transition);
  position: relative;
}
.navbar-nav a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--primary);
  transition: width var(--transition);
}
.navbar-nav a:hover { color: var(--primary); }
.navbar-nav a:hover::after { width: 100%; }
.navbar-cta { margin-left: 1rem; }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: all var(--transition); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('https://images.pexels.com/photos/17186345/pexels-photo-17186345.jpeg?auto=compress&cs=tinysrgb&fit=crop&h=900&w=1600');
  background-size: cover; background-position: center;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(0,40,80,0.85) 0%, rgba(0,119,182,0.6) 60%, rgba(0,40,80,0.3) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 680px; color: #fff;
  padding: 4rem 0;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(255,255,255,0.15); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50px; padding: 0.4rem 1rem;
  font-size: 0.85rem; font-weight: 600; color: #fff;
  margin-bottom: 1.5rem;
}
.hero h1 { color: #fff; margin-bottom: 1.2rem; }
.hero h1 span { color: var(--primary-light); }
.hero-desc { font-size: 1.1rem; color: rgba(255,255,255,0.85); margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 2.5rem; margin-top: 3rem;
  flex-wrap: wrap;
}
.hero-stat { color: #fff; }
.hero-stat strong { display: block; font-size: 1.8rem; font-weight: 800; }
.hero-stat span { font-size: 0.85rem; color: rgba(255,255,255,0.75); }

/* ---------- Search Bar ---------- */
.search-section {
  background: var(--primary);
  padding: 2rem 0;
}
.search-wrapper {
  display: flex; gap: 0.75rem; align-items: center;
}
.search-input-wrap {
  flex: 1; position: relative;
}
.search-input-wrap svg {
  position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); width: 20px; height: 20px;
}
#raceSearch {
  width: 100%; padding: 0.9rem 1rem 0.9rem 3rem;
  border: 2px solid transparent; border-radius: 50px;
  font-size: 1rem; font-family: var(--font);
  outline: none; transition: all var(--transition);
  background: #fff;
}
#raceSearch:focus { border-color: var(--primary-light); box-shadow: 0 0 0 4px rgba(144,224,239,0.3); }
#raceSearch::placeholder { color: var(--text-muted); }

/* ---------- Stats Band ---------- */
.stats-band {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 3rem 0;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
  text-align: center;
}
.stat-item strong { display: block; font-size: 2.2rem; font-weight: 800; color: #fff; }
.stat-item span { font-size: 0.9rem; color: rgba(255,255,255,0.75); }

/* ---------- Races Grid ---------- */
.races-section { padding: 4rem 0; }
.races-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 2.5rem; flex-wrap: gap;
  gap: 1rem;
}
.races-count {
  font-size: 0.9rem; color: var(--text-muted);
  background: var(--bg-alt); padding: 0.4rem 1rem;
  border-radius: 50px;
}
.alphabet-filter {
  display: flex; flex-wrap: wrap; gap: 0.3rem;
  margin-bottom: 2rem;
}
.alpha-btn {
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--border); border-radius: 6px;
  background: #fff; cursor: pointer; font-size: 0.8rem; font-weight: 600;
  transition: all var(--transition); color: var(--text);
}
.alpha-btn:hover, .alpha-btn.active {
  background: var(--primary); color: #fff; border-color: var(--primary);
}
.races-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}
.race-card {
  background: #fff; border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all var(--transition);
  box-shadow: var(--shadow);
  cursor: pointer;
}
.race-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}
.race-card-img {
  height: 190px;
  background: linear-gradient(135deg, var(--primary-xlight), var(--primary-light));
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.race-card-img img.race-dog-img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
  position: absolute; top: 0; left: 0;
}
.race-card:hover .race-card-img img { transform: scale(1.07); }

/* Placeholder pendant le chargement de l'image */
.dog-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--primary-xlight) 0%, var(--primary-light) 100%);
  position: relative;
  overflow: hidden;
}
/* Shimmer animation */
.dog-placeholder::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.4) 50%, transparent 100%);
  animation: shimmer 1.5s infinite;
  transform: translateX(-100%);
}
@keyframes shimmer {
  to { transform: translateX(100%); }
}
.dog-placeholder svg {
  opacity: 0.5;
  position: relative; z-index: 1;
}

.race-card-img .dog-icon {
  font-size: 4rem; opacity: 0.6;
}
.race-card-badge {
  position: absolute; top: 0.75rem; right: 0.75rem;
  background: var(--primary); color: #fff;
  font-size: 0.7rem; font-weight: 700; padding: 0.25rem 0.6rem;
  border-radius: 50px; letter-spacing: 0.5px;
  z-index: 2;
}
.race-card-body { padding: 1.25rem; }
.race-card-name { font-weight: 700; font-size: 1rem; color: var(--text); margin-bottom: 0.4rem; font-family: var(--font); }
.race-card-tagline { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 1rem; }
.race-card-link {
  display: flex; align-items: center; gap: 0.4rem;
  color: var(--primary); font-size: 0.85rem; font-weight: 600;
  transition: gap var(--transition);
}
.race-card-link:hover { gap: 0.7rem; }
.no-results {
  text-align: center; padding: 3rem; color: var(--text-muted);
  display: none; grid-column: 1/-1;
}
.load-more-wrap { text-align: center; margin-top: 2.5rem; }

/* ---------- Features Section ---------- */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
}
.feature-card {
  background: #fff; border-radius: var(--radius-lg);
  padding: 2rem; border: 1px solid var(--border);
  transition: all var(--transition);
  box-shadow: var(--shadow);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary-light); }
.feature-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--primary-xlight);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); margin-bottom: 1.25rem;
}
.feature-card h3 { color: var(--text); margin-bottom: 0.6rem; font-family: var(--font); font-size: 1.05rem; }

/* ---------- How it Works ---------- */
.steps-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute; top: 32px; left: 15%; right: 15%;
  height: 2px; background: var(--primary-light);
  z-index: 0;
}
.step {
  text-align: center; position: relative; z-index: 1;
}
.step-num {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--primary); color: #fff;
  font-size: 1.4rem; font-weight: 800; font-family: var(--font-heading);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: 0 4px 16px rgba(0,119,182,0.35);
}
.step h3 { color: var(--text); margin-bottom: 0.6rem; font-family: var(--font); font-size: 1rem; }

/* ---------- Vet Section (split) ---------- */
.split-section {
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem;
  align-items: center;
}
.split-section.reverse { direction: rtl; }
.split-section.reverse > * { direction: ltr; }
.split-img {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 420px;
}
.split-img img { width: 100%; height: 100%; object-fit: cover; }
.split-content .section-label {
  display: inline-block;
  color: var(--primary); font-weight: 700; font-size: 0.85rem;
  letter-spacing: 1px; text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.split-content h2 { margin-bottom: 1rem; }
.split-content p { margin-bottom: 1.5rem; }
.check-list { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.75rem; }
.check-list li {
  display: flex; align-items: flex-start; gap: 0.75rem;
  font-size: 0.95rem; color: var(--text);
}
.check-list li svg { color: var(--primary); flex-shrink: 0; margin-top: 2px; }

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  border-radius: var(--radius-lg); padding: 4rem 3rem;
  text-align: center; color: #fff;
}
.cta-banner h2 { color: #fff; margin-bottom: 1rem; }
.cta-banner p { color: rgba(255,255,255,0.8); margin-bottom: 2rem; max-width: 540px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { background: var(--primary-xlight); transform: translateY(-2px); }

/* ---------- Race Page ---------- */
.race-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 4rem 0 2rem;
  color: #fff;
}
.breadcrumb {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.85rem; color: rgba(255,255,255,0.7);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: rgba(255,255,255,0.7); transition: color var(--transition); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb-sep { opacity: 0.5; }
.race-hero-grid {
  display: grid; grid-template-columns: 1fr 420px; gap: 3rem;
  align-items: start;
}
.race-hero-content h1 { color: #fff; margin-bottom: 0.75rem; }
.race-hero-content .race-subtitle { color: rgba(255,255,255,0.8); font-size: 1.1rem; margin-bottom: 1.5rem; }
.race-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.race-tag {
  background: rgba(255,255,255,0.15); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff; font-size: 0.8rem; font-weight: 600;
  padding: 0.35rem 0.85rem; border-radius: 50px;
}
.race-quick-stats {
  display: flex; gap: 1.5rem; flex-wrap: wrap;
}
.race-quick-stat { color: #fff; text-align: center; }
.race-quick-stat strong { display: block; font-size: 1.3rem; font-weight: 800; }
.race-quick-stat span { font-size: 0.75rem; color: rgba(255,255,255,0.7); }
.race-hero-img {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  height: 340px;
}
.race-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.race-hero-img-placeholder {
  height: 340px; border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 6rem;
}

/* Race Content */
.race-content-grid {
  display: grid; grid-template-columns: 1fr 360px; gap: 3rem;
  align-items: start; padding: 4rem 0;
}
.race-main-content { }
.race-sidebar { }
.content-card {
  background: #fff; border-radius: var(--radius-lg);
  border: 1px solid var(--border); padding: 2rem;
  box-shadow: var(--shadow); margin-bottom: 1.5rem;
}
.content-card h2 { font-size: 1.25rem; color: var(--text); margin-bottom: 1.25rem; font-family: var(--font); display: flex; align-items: center; gap: 0.6rem; }
.content-card h2 svg { color: var(--primary); }
.content-card p { margin-bottom: 0.75rem; }
.content-card p:last-child { margin-bottom: 0; }
.health-list { display: flex; flex-direction: column; gap: 0.75rem; }
.health-item {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 0.75rem; border-radius: 8px;
  background: var(--bg-alt); border-left: 3px solid var(--primary);
}
.health-item-icon { font-size: 1.1rem; }
.health-item-text strong { display: block; font-size: 0.9rem; color: var(--text); margin-bottom: 0.2rem; }
.health-item-text span { font-size: 0.82rem; color: var(--text-muted); }

/* Price Card */
.price-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-lg); padding: 2rem;
  color: #fff; margin-bottom: 1.5rem; text-align: center;
}
.price-card h3 { color: #fff; margin-bottom: 0.5rem; font-family: var(--font); }
.price-range {
  font-size: 2.5rem; font-weight: 800; margin: 0.75rem 0;
}
.price-range sub, .price-range sup { font-size: 1rem; font-weight: 600; }
.price-note { font-size: 0.8rem; color: rgba(255,255,255,0.7); margin-bottom: 1.5rem; }
.price-card .btn-white { width: 100%; justify-content: center; }

/* Dog API Widget */
.api-widget {
  background: #fff; border-radius: var(--radius-lg);
  border: 1px solid var(--border); padding: 1.5rem;
  box-shadow: var(--shadow); margin-bottom: 1.5rem;
}
.api-widget h3 { font-size: 1rem; color: var(--text); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; font-family: var(--font); font-weight: 700; }
.api-photo {
  border-radius: 10px; overflow: hidden;
  height: 220px; margin-bottom: 1rem;
  background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center;
}
.api-photo img { width: 100%; height: 100%; object-fit: cover; }
.api-loader { color: var(--text-muted); font-size: 0.9rem; text-align: center; }
.api-stats-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem;
}
.api-stat-item {
  background: var(--bg-alt); border-radius: 8px;
  padding: 0.75rem; text-align: center;
}
.api-stat-item strong { display: block; font-size: 0.85rem; color: var(--primary); font-weight: 700; }
.api-stat-item span { font-size: 0.75rem; color: var(--text-muted); }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-question {
  width: 100%; text-align: left; padding: 1.1rem 1.25rem;
  background: #fff; border: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 600; font-size: 0.95rem; color: var(--text);
  transition: background var(--transition);
}
.faq-question:hover { background: var(--bg-alt); }
.faq-question.active { background: var(--primary-xlight); color: var(--primary); }
.faq-question svg { transition: transform var(--transition); flex-shrink: 0; }
.faq-question.active svg { transform: rotate(180deg); }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  background: #fff;
}
.faq-answer.open { max-height: 300px; }
.faq-answer p { padding: 0 1.25rem 1.1rem; font-size: 0.9rem; }

/* Insurance Comparison */
.comparison-table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.comparison-table th { background: var(--primary); color: #fff; padding: 0.85rem 1rem; text-align: left; font-size: 0.85rem; }
.comparison-table th:first-child { border-radius: 8px 0 0 0; }
.comparison-table th:last-child { border-radius: 0 8px 0 0; }
.comparison-table td { padding: 0.85rem 1rem; font-size: 0.85rem; border-bottom: 1px solid var(--border); }
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:nth-child(even) td { background: var(--bg-alt); }
.check-yes { color: #22c55e; font-weight: 700; }
.check-no { color: #ef4444; }
.check-partial { color: var(--accent); }

/* Related Races */
.related-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
.related-card {
  background: var(--bg-alt); border-radius: var(--radius);
  padding: 1rem; border: 1px solid var(--border);
  transition: all var(--transition);
  display: block;
}
.related-card:hover { background: var(--primary-xlight); border-color: var(--primary-light); transform: translateY(-2px); }
.related-card strong { display: block; font-size: 0.9rem; color: var(--text); margin-bottom: 0.3rem; font-family: var(--font); }
.related-card span { font-size: 0.78rem; color: var(--primary); font-weight: 600; }

/* ---------- Section Label ---------- */
.section-label {
  display: inline-block;
  color: var(--primary); font-weight: 700; font-size: 0.82rem;
  letter-spacing: 1.5px; text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.section-title { margin-bottom: 0.75rem; }
.section-intro { max-width: 600px; margin-bottom: 3rem; }
.text-center { text-align: center; }
.text-center .section-intro { margin-left: auto; margin-right: auto; }

/* ---------- Footer ---------- */
.footer {
  background: var(--text); color: rgba(255,255,255,0.7);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand { }
.footer-logo {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-heading); font-weight: 700; font-size: 1rem;
  color: #fff; margin-bottom: 1rem;
}
.footer-brand p { font-size: 0.875rem; line-height: 1.7; max-width: 280px; }
.footer-col h4 { color: #fff; font-size: 0.9rem; font-weight: 700; margin-bottom: 1.2rem; font-family: var(--font); }
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col ul a { font-size: 0.875rem; transition: color var(--transition); }
.footer-col ul a:hover { color: var(--primary-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
}
.footer-bottom p { font-size: 0.8rem; }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { font-size: 0.8rem; transition: color var(--transition); }
.footer-legal a:hover { color: var(--primary-light); }

/* ---------- Scroll Reveal ---------- */
.reveal-on-scroll {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-on-scroll.revealed { opacity: 1; transform: translateY(0); }

/* ---------- Pagination ---------- */
.pagination {
  display: flex; justify-content: center; align-items: center;
  gap: 0.4rem; margin-top: 2.5rem;
}
.page-btn {
  width: 40px; height: 40px; border-radius: 8px;
  border: 1px solid var(--border); background: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 0.9rem; font-weight: 600;
  transition: all var(--transition);
}
.page-btn:hover, .page-btn.active {
  background: var(--primary); color: #fff; border-color: var(--primary);
}
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ---------- 404 ---------- */
.error-page {
  min-height: 60vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 4rem 0;
}
.error-page h1 { font-size: 6rem; color: var(--primary); margin-bottom: 0.5rem; }
.error-page h2 { margin-bottom: 1rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .race-content-grid { grid-template-columns: 1fr; }
  .race-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
}

@media (max-width: 768px) {
  .navbar-nav { display: none; }
  .hamburger { display: block; }
  .hero-stats { gap: 1.5rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .steps-grid::before { display: none; }
  .split-section { grid-template-columns: 1fr; }
  .split-section.reverse { direction: ltr; }
  .race-hero-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .races-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .race-sidebar { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-actions { flex-direction: column; }
  .races-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
}