/* Rugbyzer - Styles partagés */
:root {
  --bg: #0a0a0f;
  --bg-2: #131318;
  --card: #18181f;
  --card-2: #1f1f28;
  --border: #2a2a35;
  --text: #fafafa;
  --muted: #8a8a99;
  --primary: #ff5e1f;
  --primary-hover: #ff7c45;
  --green: #16a34a;
  --gold: #fbbf24;
  --red: #dc2626;
  --blue: #0ea5e9;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 60px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 60px rgba(255,94,31,0.15);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* === BACKGROUND PATTERN === */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 15% 15%, rgba(255,94,31,0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(22,163,74,0.06) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(251,191,36,0.03) 0%, transparent 60%);
  z-index: -1;
  pointer-events: none;
}

/* === LAYOUT === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
}

@media (max-width: 768px) {
  .section { padding: 60px 0; }
}

/* === NAV === */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  background: rgba(10,10,15,0.7);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}
.logo-ball {
  width: 42px; height: 42px;
  filter: drop-shadow(0 6px 14px rgba(120, 60, 20, 0.4));
  flex-shrink: 0;
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: var(--text); }

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), #ff7c45);
  color: #fff;
  box-shadow: 0 8px 20px rgba(255,94,31,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(255,94,31,0.5); }
.btn-ghost {
  background: rgba(255,255,255,0.05);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); }
.btn-lg { padding: 16px 32px; font-size: 16px; }

/* === HERO === */
.hero {
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(135deg, rgba(10,10,15,0.92) 0%, rgba(10,10,15,0.78) 50%, rgba(10,10,15,0.95) 100%),
    url('https://images.unsplash.com/photo-1512299286776-c18be8ed6a1a?fm=jpg&q=80&w=2400&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,94,31,0.18) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(22,163,74,0.15) 0%, transparent 50%);
  z-index: 0;
  pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; }

/* Background image sections */
.bg-image-section {
  position: relative;
}
.bg-image-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  z-index: 0;
}
.bg-image-section > * { position: relative; z-index: 1; }
.bg-stadium::before {
  background-image: url('https://images.unsplash.com/photo-1747200582045-ac3830336aaa?fm=jpg&q=80&w=2400&auto=format&fit=crop');
}
.bg-players::before {
  background-image: url('https://images.unsplash.com/photo-1574602904316-f84f62477265?fm=jpg&q=80&w=2400&auto=format&fit=crop');
}
.bg-action::before {
  background-image: url('https://images.unsplash.com/photo-1495329356033-eb76e0af9fd9?fm=jpg&q=80&w=2400&auto=format&fit=crop');
}
.bg-pitch::before {
  background-image: url('https://images.unsplash.com/photo-1767190937750-d6aaf8ea99d0?fm=jpg&q=80&w=2400&auto=format&fit=crop');
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255,94,31,0.1);
  border: 1px solid rgba(255,94,31,0.3);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin-bottom: 24px;
}
.hero h1 .accent {
  background: linear-gradient(135deg, var(--primary), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  font-size: 19px;
  color: var(--muted);
  margin-bottom: 32px;
  max-width: 540px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.precision-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(22,163,74,0.12);
  border: 1px solid rgba(22,163,74,0.3);
  font-size: 14px;
}
.precision-pill strong { color: var(--green); font-weight: 700; }

/* === PHONE MOCKUP === */
.phone-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}
.phone {
  width: 320px;
  height: 640px;
  background: linear-gradient(180deg, #1a1a22, #0d0d12);
  border-radius: 44px;
  border: 8px solid #222;
  box-shadow: var(--shadow), 0 0 80px rgba(255,94,31,0.2);
  padding: 16px;
  position: relative;
  overflow: hidden;
}
.phone::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 120px; height: 26px;
  background: #000;
  border-radius: 0 0 16px 16px;
}
.phone-screen {
  width: 100%; height: 100%;
  background: linear-gradient(180deg, #14141a, #0a0a0f);
  border-radius: 32px;
  padding: 40px 20px 20px;
  overflow: hidden;
}
.phone-match-card {
  background: var(--card-2);
  border-radius: 14px;
  padding: 16px;
  border: 1px solid var(--border);
}
.phone-comp { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 10px; }
.phone-teams { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.phone-team { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; }
.team-flag {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800; font-size: 14px;
  color: #fff;
}
.phone-team .team-name { font-size: 12px; font-weight: 600; }
.phone-vs { font-size: 13px; color: var(--muted); font-weight: 700; }
.phone-score { text-align: center; font-size: 32px; font-weight: 800; margin: 14px 0; letter-spacing: -0.02em; }
.phone-score .home { color: var(--primary); }
.phone-score .sep { color: var(--muted); margin: 0 8px; font-size: 24px; }
.phone-prob-bar {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px;
  margin: 14px 0; align-items: center;
}
.prob-segment {
  height: 8px; border-radius: 4px; background: var(--border); overflow: hidden; position: relative;
}
.prob-fill { height: 100%; border-radius: 4px; }
.prob-text { font-size: 11px; font-weight: 700; color: var(--muted); }

.phone-stats { display: grid; gap: 10px; margin-top: 14px; }
.phone-stat { display: flex; justify-content: space-between; font-size: 11px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.phone-stat:last-child { border-bottom: none; }
.phone-stat span:first-child { color: var(--muted); }
.phone-stat span:last-child { font-weight: 700; }

.phone-badge {
  margin-top: 14px;
  background: linear-gradient(135deg, rgba(255,94,31,0.15), rgba(251,191,36,0.1));
  border: 1px solid rgba(255,94,31,0.3);
  padding: 10px;
  border-radius: 10px;
  font-size: 11px;
  color: var(--primary);
  font-weight: 600;
  text-align: center;
}

.floating-ball {
  position: absolute;
  width: 100px;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.5));
}
.ball-top { top: -20px; right: -10px; animation: float 4s ease-in-out infinite; }
.ball-bottom { bottom: -30px; left: -30px; animation: float 5s ease-in-out infinite reverse; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

/* Hero phone wrap : un cadre plus élégant */
.phone-wrap { position: relative; }
.phone {
  background: linear-gradient(180deg, #1f1f2a, #0d0d12);
}

/* === STATS BAR === */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 40px;
  background: linear-gradient(135deg, var(--card), var(--card-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 40px 0;
}
@media (max-width: 700px) { .stats-bar { grid-template-columns: repeat(2, 1fr); padding: 24px; } }
.stat-item { text-align: center; }
.stat-value {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--primary), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* === SECTION HEADERS === */
.section-header { text-align: center; max-width: 700px; margin: 0 auto 60px; }
.section-header h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 16px;
}
.section-header p { color: var(--muted); font-size: 18px; }

/* === FEATURES === */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .features-grid { grid-template-columns: 1fr; } }

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all .3s ease;
  position: relative;
  overflow: hidden;
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--primary); }
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0;
  transition: opacity .3s;
}
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,94,31,0.2), rgba(251,191,36,0.1));
  display: grid; place-items: center;
  font-size: 28px;
  margin-bottom: 20px;
}
.feature-card h3 { font-size: 20px; margin-bottom: 10px; letter-spacing: -0.01em; }
.feature-card p { color: var(--muted); font-size: 15px; line-height: 1.6; }

/* === COMPETITIONS === */
.comp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.comp-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: var(--radius-sm);
  text-align: center;
  transition: all .2s;
}
.comp-card:hover { transform: translateY(-2px); border-color: var(--primary); background: var(--card-2); }
.comp-card .flag { font-size: 36px; margin-bottom: 10px; }
.comp-card h4 { font-size: 16px; margin-bottom: 4px; }
.comp-card .meta { font-size: 12px; color: var(--muted); }

/* === TESTIMONIALS === */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .testimonial-grid { grid-template-columns: 1fr; } }
.testimonial {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: var(--radius-sm);
}
.testimonial-text { color: var(--text); font-size: 15px; margin-bottom: 16px; line-height: 1.6; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--gold));
  display: grid; place-items: center;
  font-weight: 800; color: #000;
  font-size: 14px;
}
.author-info .name { font-weight: 600; font-size: 14px; }
.author-info .role { color: var(--muted); font-size: 12px; }
.stars { color: var(--gold); margin-bottom: 10px; font-size: 13px; }

/* === FAQ === */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq-question {
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 16px;
  user-select: none;
  transition: background .2s;
}
.faq-question:hover { background: var(--card-2); }
.faq-question::after { content: '+'; font-size: 24px; color: var(--muted); transition: transfo