/* =============================================
   S.A.M - San Andreas Motors | Main Stylesheet
   ============================================= */

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

:root {
  --primary:     #e8001d;
  --primary-dark:#b0001a;
  --orange:      #ff6600;
  --bg:          #0a0a0a;
  --bg2:         #111111;
  --bg3:         #1a1a1a;
  --card:        #161616;
  --border:      rgba(212,175,55,0.55);
  --text:        #ffffff;
  --text-muted:  #888888;
  --text-light:  #cccccc;
  --gold:        #ffd700;
  --silver:      #c0c0c0;
  --bronze:      #cd7f32;
  --gradient:    linear-gradient(135deg, #e8001d 0%, #ffd700 100%);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; }

h1, h2, h3, h4 {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ── HEADER / NAV ── */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10,10,10,0.97);
  border-bottom: 2px solid var(--gold);
  backdrop-filter: blur(10px);
}

.header-top {
  background: rgba(212,175,55,0.12);
  border-bottom: 1px solid rgba(212,175,55,0.35);
  padding: 4px 0;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 20px;
  height: 96px;
  gap: 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo img {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 28px;
  letter-spacing: 1px;
  color: var(--text);
}

.logo-text span {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  justify-content: center;
  flex-wrap: nowrap;
}

.nav-links a {
  padding: 6px 11px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 27px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-light);
  border-radius: 4px;
  transition: all .2s;
  position: relative;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(232,0,29,0.12);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 16px; right: 16px;
  height: 2px;
  background: var(--gradient);
  border-radius: 2px;
}

.nav-cta {
  background: var(--gradient) !important;
  color: #fff !important;
  padding: 6px 14px !important;
  border-radius: 4px !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: .3s;
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 112px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(10,10,10,0.95) 40%, rgba(10,10,10,0.5) 100%),
    linear-gradient(180deg, transparent 50%, var(--bg) 100%),
    url('images/hero-bg.jpg') center/cover no-repeat;
  background-color: var(--bg2);
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(232,0,29,0.15) 0%, transparent 60%);
}

.hero-content {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 20px;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  padding: 5px 14px;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-badge::before {
  content: '';
  width: 8px; height: 8px;
  background: #fff;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.3); }
}

.hero h1 {
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.95;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero h1 em {
  font-style: normal;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 40px;
  line-height: 1.6;
}

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

/* ── COUNTDOWN ── */
.countdown-strip {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.countdown-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.countdown-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 600;
}

.countdown-race {
  font-family: 'Rajdhani', sans-serif;
  font-size: 22px;
  font-weight: 700;
}

.countdown-timer {
  display: flex;
  gap: 16px;
  align-items: center;
}

.timer-block {
  text-align: center;
  min-width: 60px;
}

.timer-block .num {
  display: block;
  font-family: 'Rajdhani', sans-serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  color: var(--primary);
}

.timer-block .lbl {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.timer-sep {
  font-size: 28px;
  font-weight: 700;
  color: var(--border);
  margin-bottom: 12px;
}

/* ── SECTION LAYOUT ── */
section { padding: 80px 0; }

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
  gap: 16px;
  flex-wrap: wrap;
}

.section-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  text-transform: uppercase;
  line-height: 1;
}

.section-title span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-line {
  width: 60px; height: 3px;
  background: var(--gradient);
  border-radius: 2px;
  margin-top: 8px;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 3px;
  cursor: pointer;
  transition: all .2s;
  border: none;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232,0,29,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-sm {
  padding: 7px 16px;
  font-size: 13px;
}

.view-all {
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap .2s;
}

.view-all:hover { gap: 10px; }

/* ── CARDS ── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}

.card:hover {
  border-color: rgba(232,0,29,0.4);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

/* ── GRID LAYOUTS ── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

/* ── RACE CARD (calendrier) ── */
.race-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  transition: .25s;
  cursor: pointer;
}

.race-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(232,0,29,0.2);
}

.race-card.next { border-color: var(--primary); position: relative; }

.race-card.next::before {
  content: 'PROCHAIN';
  position: absolute;
  top: 12px; right: 12px;
  background: var(--primary);
  color: #fff;
  padding: 3px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  border-radius: 2px;
}

.race-card.past { opacity: .7; }

.race-header {
  background: var(--bg3);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--border);
}

.race-round {
  background: var(--gradient);
  color: #fff;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}

.race-country {
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.race-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
}

.race-body { padding: 20px; }

.race-meta { display: flex; gap: 20px; margin-bottom: 16px; flex-wrap: wrap; }

.race-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.meta-label {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.meta-value {
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
  font-weight: 600;
}

.race-circuit {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
}

/* ── STANDINGS TABLE ── */
.standings-table {
  width: 100%;
  border-collapse: collapse;
}

.standings-table th {
  padding: 12px 16px;
  text-align: left;
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg3);
  border-bottom: 2px solid var(--border);
}

.standings-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.standings-table tr:last-child td { border-bottom: none; }

.standings-table tr:hover td { background: rgba(255,255,255,0.03); }

.pos-badge {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  font-weight: 700;
  flex-shrink: 0;
}

.pos-1 { background: var(--gold); color: #000; }
.pos-2 { background: var(--silver); color: #000; }
.pos-3 { background: var(--bronze); color: #fff; }
.pos-other { background: var(--bg3); color: var(--text-muted); }

.driver-cell {
  display: flex;
  align-items: center;
  gap: 14px;
}

.driver-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg3);
  border: 2px solid var(--border);
  object-fit: cover;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
}

.driver-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 17px;
  font-weight: 700;
}

.driver-team {
  font-size: 12px;
  color: var(--text-muted);
}

.points-badge {
  font-family: 'Rajdhani', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

.pts-label {
  font-size: 11px;
  color: var(--text-muted);
}

.flag {
  font-size: 20px;
}

/* ── PILOTE CARD ── */
.pilote-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  transition: .25s;
  text-align: center;
}

.pilote-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(232,0,29,0.2);
}

.pilote-img-wrap {
  position: relative;
  background: linear-gradient(180deg, var(--bg3) 0%, var(--card) 100%);
  padding: 24px 24px 0;
  min-height: 180px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.pilote-number {
  position: absolute;
  top: 12px; right: 16px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 52px;
  font-weight: 700;
  color: rgba(255,255,255,0.08);
  line-height: 1;
}

.pilote-photo {
  width: 120px; height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Rajdhani', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--text-muted);
}

.pilote-info { padding: 20px; }

.pilote-info .flag { font-size: 18px; }

.pilote-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  margin: 6px 0 4px;
}

.pilote-team-name {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.pilote-stats {
  display: flex;
  justify-content: center;
  gap: 0;
  border-top: 1px solid var(--border);
  margin-top: 12px;
}

.pstat {
  flex: 1;
  padding: 10px 8px;
  border-right: 1px solid var(--border);
}

.pstat:last-child { border-right: none; }

.pstat-num {
  font-family: 'Rajdhani', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}

.pstat-lbl {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ── TEAM CARD ── */
.team-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 24px;
  transition: .25s;
  display: flex;
  align-items: center;
  gap: 20px;
}

.team-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.team-color-bar {
  width: 5px;
  height: 60px;
  border-radius: 3px;
  flex-shrink: 0;
}

.team-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
}

.team-drivers {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.team-pts {
  margin-left: auto;
  text-align: right;
}

.team-pts .num {
  font-family: 'Rajdhani', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
}

.team-pts .lbl {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ── STATS ── */
.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 28px;
  text-align: center;
  transition: .25s;
}

.stat-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
}

.stat-icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.stat-value {
  font-family: 'Rajdhani', sans-serif;
  font-size: 48px;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 6px;
}

/* ── TABS ── */
.tabs {
  display: flex;
  gap: 4px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 10px 22px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 4px;
  transition: all .2s;
}

.tab-btn.active {
  background: var(--gradient);
  color: #fff;
}

.tab-btn:hover:not(.active) {
  background: var(--bg3);
  color: var(--text);
}

.tab-content { display: none; }
.tab-content.active { display: block; }

/* ── RESULT PODIUM ── */
.podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
  padding: 40px 0;
}

.podium-item {
  text-align: center;
  flex: 1;
  max-width: 180px;
}

.podium-position {
  font-family: 'Rajdhani', sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.podium-1 .podium-box { height: 100px; }
.podium-2 .podium-box { height: 70px; }
.podium-3 .podium-box { height: 55px; }

.podium-box {
  border-radius: 4px 4px 0 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 10px;
}

.podium-1 .podium-box { background: linear-gradient(180deg, #ffd700 0%, #b8860b 100%); }
.podium-2 .podium-box { background: linear-gradient(180deg, #c0c0c0 0%, #808080 100%); }
.podium-3 .podium-box { background: linear-gradient(180deg, #cd7f32 0%, #8b4513 100%); }

.podium-box .num {
  font-family: 'Rajdhani', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: rgba(0,0,0,0.6);
}

.podium-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 10px;
}

.podium-pts { font-size: 13px; color: var(--text-muted); }

/* ── PAGE BANNER ── */
.page-banner {
  background: var(--bg2);
  border-bottom: 2px solid var(--primary);
  padding: 80px 0 40px;
  margin-top: 112px;
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(232,0,29,0.1) 0%, transparent 60%);
}

.page-banner .container { position: relative; }

.page-banner h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  text-transform: uppercase;
}

.page-banner h1 span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: var(--border); }

/* ── FILTER BAR ── */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.filter-select {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 36px 10px 14px;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='%23888'%3E%3Cpath d='M0 0l6 8 6-8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: border-color .2s;
}

.filter-select:focus { outline: none; border-color: var(--primary); }

/* ── SEARCH BAR ── */
.search-wrap {
  position: relative;
  flex: 1;
  max-width: 320px;
}

.search-wrap input {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 14px 10px 40px;
  border-radius: 4px;
  font-size: 14px;
  transition: border-color .2s;
}

.search-wrap input:focus { outline: none; border-color: var(--primary); }
.search-wrap input::placeholder { color: var(--text-muted); }

.search-wrap .icon {
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 16px;
}

/* ── STATS BARS ── */
.stat-bar-item {
  margin-bottom: 20px;
}

.stat-bar-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 14px;
}

.stat-bar-header .name { font-weight: 600; }
.stat-bar-header .val { color: var(--primary); font-weight: 700; }

.bar-track {
  height: 8px;
  background: var(--bg3);
  border-radius: 4px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: var(--gradient);
  border-radius: 4px;
  transition: width 1s ease;
}

/* ── CHART PLACEHOLDER ── */
.chart-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 28px;
}

.chart-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: var(--text-light);
}

/* ── ARTICLE BODY (contenu riche Quill) ── */
.article-body p                { margin-bottom: 1em; }
.article-body h2               { font-family: Rajdhani, sans-serif; font-size: 1.4em; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--gold); margin: 1.4em 0 .6em; }
.article-body h3               { font-family: Rajdhani, sans-serif; font-size: 1.15em; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--text-light); margin: 1.2em 0 .5em; }
.article-body strong, .article-body b { color: var(--text-light); font-weight: 700; }
.article-body em, .article-body i     { font-style: italic; color: #ccc; }
.article-body a                { color: var(--gold); text-decoration: underline; transition: opacity .15s; }
.article-body a:hover          { opacity: .75; }
.article-body ul               { list-style: disc; padding-left: 1.4em; margin-bottom: 1em; }
.article-body ol               { list-style: decimal; padding-left: 1.4em; margin-bottom: 1em; }
.article-body li               { margin-bottom: .35em; line-height: 1.7; }
.article-body blockquote       { border-left: 3px solid var(--gold); padding: 8px 16px; margin: 1em 0; background: rgba(212,175,55,.06); color: #bbb; font-style: italic; border-radius: 0 6px 6px 0; }
.article-body s                { opacity: .55; }
.article-body u                { text-decoration: underline; }

/* ── HOMEPAGE STANDINGS (div-based) ── */
div.standings-table {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
/* Table-based (résultats, stats) — reset */
table.standings-table {
  width: 100%;
  border-collapse: collapse;
  background: transparent;
}
.standings-header,
.standings-row {
  display: grid;
  grid-template-columns: 52px 1fr 80px minmax(80px,150px) 80px 80px;
  align-items: center;
  padding: 12px 16px;
  gap: 8px;
}
.standings-header {
  background: var(--bg3);
  border-bottom: 2px solid var(--border);
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.standings-row { border-bottom: 1px solid rgba(255,255,255,.04); }
.standings-row:last-child { border-bottom: none; }
.standings-row:hover { background: rgba(255,255,255,.025); }
.team-dot { width:10px;height:10px;border-radius:50%;display:inline-block;vertical-align:middle;margin-right:6px; }
.driver-number { font-size:12px;color:var(--text-muted); }
.points-val { font-family:'Rajdhani',sans-serif;font-size:18px;font-weight:700;color:var(--primary); }

/* ── KPI GRID (accueil) ── */
.kpi-grid { display:grid;grid-template-columns:repeat(4,1fr);gap:20px; }
.kpi-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 28px 20px;
  text-align: center;
  transition: border-color .2s, transform .2s;
}
.kpi-card:hover { border-color:var(--primary);transform:translateY(-3px); }
.kpi-card .kpi-icon { font-size:36px;margin-bottom:12px; }
.kpi-number {
  font-family: 'Rajdhani', sans-serif;
  font-size: 48px;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.kpi-label { font-size:12px;color:var(--text-muted);text-transform:uppercase;letter-spacing:1.5px;margin-top:6px; }

/* ── PODIUM GRID (accueil) ── */
.podium-grid { display:grid;grid-template-columns:repeat(3,1fr);gap:20px;max-width:620px;margin:0 auto; }
.podium-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px 16px;
  text-align: center;
  transition: .25s;
}
.podium-card:hover { transform:translateY(-3px); }
.podium-card.pos-1 { border-color:var(--gold);background:linear-gradient(135deg,rgba(212,175,55,.10) 0%,var(--card) 100%); }
.podium-card.pos-2 { border-color:rgba(192,192,192,.4); }
.podium-card.pos-3 { border-color:rgba(205,127,50,.4); }
.podium-position { font-family:'Rajdhani',sans-serif;font-size:52px;font-weight:700;line-height:1;margin-bottom:10px; }
.podium-card.pos-1 .podium-position { color:var(--gold); }
.podium-card.pos-2 .podium-position { color:var(--silver); }
.podium-card.pos-3 .podium-position { color:var(--bronze); }
.podium-avatar {
  width:60px;height:60px;border-radius:50%;background:var(--bg3);
  border:2px solid var(--border);display:inline-flex;align-items:center;
  justify-content:center;font-family:'Rajdhani',sans-serif;font-size:20px;
  font-weight:700;color:var(--text-muted);margin-bottom:10px;
}
.podium-card.pos-1 .podium-avatar { border-color:var(--gold); }
.podium-card.pos-2 .podium-avatar { border-color:var(--silver); }
.podium-card.pos-3 .podium-avatar { border-color:var(--bronze); }
.podium-name { font-family:'Rajdhani',sans-serif;font-size:17px;font-weight:700;text-transform:uppercase; }
.podium-number { font-size:12px;color:var(--text-muted);margin-top:3px; }
.podium-points { font-family:'Rajdhani',sans-serif;font-size:15px;font-weight:700;color:var(--primary);margin-top:6px; }

/* ── COUNTDOWN BLOCKS (accueil) ── */
.countdown-block { text-align:center;min-width:56px; }
.countdown-num {
  display: block;
  font-family: 'Rajdhani', sans-serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  color: var(--primary);
}
.countdown-unit { font-size:10px;letter-spacing:1.5px;text-transform:uppercase;color:var(--text-muted); }
.countdown-circuit { font-size:13px;color:var(--text-muted);margin-top:4px; }

/* ── WRAPPER SCROLL HORIZONTAL TABLEAUX ── */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 6px;
}
.table-wrap .card,
.table-wrap table { border-radius: 6px; }

/* ── FOOTER ── */
footer {
  background: var(--bg2);
  border-top: 2px solid var(--primary);
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand .logo-text { font-size: 26px; }

.footer-brand p {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 12px;
  line-height: 1.7;
  max-width: 280px;
}

.footer-col h4 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 10px;
  transition: color .2s, padding-left .2s;
}

.footer-col a:hover { color: var(--primary); padding-left: 4px; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-bottom a:hover { color: var(--primary); }

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */

/* ═══════════════════════════════════════════
   RESPONSIVE — toutes les pages
   ═══════════════════════════════════════════ */

/* ── Desktop moyen ── */
@media (max-width: 1280px) {
  .nav-links a { font-size: 22px; padding: 6px 9px; }
}

/* ── Tablette paysage ── */
@media (max-width: 1024px) {
  .nav-links a { font-size: 17px; padding: 6px 7px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  section { padding: 60px 0; }

  /* Accueil composants */
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .standings-header,
  .standings-row { grid-template-columns: 48px 1fr 80px 120px 70px 70px; padding: 10px 12px; }
}

/* ── Tablette portrait / grand mobile ── */
@media (max-width: 768px) {
  /* Bandeau header */
  .header-top {
    font-size: 10px;
    letter-spacing: 1px;
    padding: 4px 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Navigation */
  nav { height: 72px; padding: 0 16px; }
  .logo img { height: 44px; }
  .logo-text { font-size: 20px; }
  .logo-text span { font-size: 9px; letter-spacing: 1px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 98px 0 0;
    background: rgba(10,10,10,.98);
    padding: 16px;
    overflow-y: auto;
    z-index: 999;
    border-top: 1px solid var(--border);
  }
  .nav-links.open li { border-bottom: 1px solid rgba(255,255,255,.05); }
  .nav-links.open li:last-child { border-bottom: none; }
  .nav-links.open a { padding: 14px 16px; font-size: 20px; display: flex; align-items: center; }

  /* Mise en page */
  section { padding: 48px 0; }
  .page-banner { margin-top: 98px; padding: 48px 0 28px; }
  .page-banner h1 { font-size: 2.4rem; }

  /* Hero */
  .hero { padding-top: 98px; min-height: auto; }
  .hero-content { padding: 60px 20px; }
  .hero h1 { font-size: 2.8rem; }
  .hero-subtitle { font-size: 15px; max-width: 100%; }

  /* Grilles */
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }

  /* Countdown (accueil) */
  .countdown-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .countdown-timer { flex-wrap: wrap; gap: 8px; }
  .countdown-block { min-width: 50px; }
  .countdown-num { font-size: 28px; }
  /* ancien countdown (timer-block) */
  .timer-block .num { font-size: 28px; }
  .timer-block { min-width: 50px; }

  /* Tableaux — scroll horizontal */
  .table-wrap { border-radius: 0; }
  table.standings-table { font-size: 13px; }
  table.standings-table th,
  table.standings-table td { padding: 10px 10px; }
  /* Scroll sur les cartes contenant des tableaux */
  .card { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .chart-box { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Standings accueil — scroll horizontal */
  div.standings-table { overflow-x: auto; }
  .standings-header,
  .standings-row { min-width: 460px; }

  /* KPI grid */
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }

  /* Podium accueil */
  .podium-grid { gap: 12px; }
  .podium-position { font-size: 38px; }
  .podium-avatar { width: 48px; height: 48px; font-size: 16px; }

  /* Ancien podium (résultats) */
  .podium { gap: 6px; }
  .podium-item { max-width: 120px; }
  .podium-1 .podium-box { height: 80px; }
  .podium-2 .podium-box { height: 55px; }
  .podium-3 .podium-box { height: 44px; }
  .podium-name { font-size: 13px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand p { max-width: 100%; }

  /* Organigramme */
  .org-dept-children { flex-wrap: wrap; justify-content: center; }
  .org-dept-children::after { display: none; }
  .org-card { min-width: 140px; max-width: 220px; }

  /* Équipes */
  .team-card { flex-wrap: wrap; gap: 12px; }
  .team-pts { margin-left: 0; }

  /* Filtres */
  .filter-bar { flex-wrap: wrap; }
  .filter-select { flex: 1; min-width: 140px; }
  .search-wrap { max-width: 100%; }

  /* Tabs */
  .tabs { overflow-x: auto; flex-wrap: nowrap; }
  .tab-btn { white-space: nowrap; padding: 10px 14px; font-size: 13px; }
}

/* ── Mobile ── */
@media (max-width: 480px) {
  /* Bandeau masqué */
  .header-top { display: none; }

  /* Navigation */
  nav { height: 64px; }
  .logo img { height: 38px; }
  .logo-text { font-size: 18px; }
  .logo-text span { display: none; }
  .page-banner { margin-top: 64px; padding: 36px 0 22px; }
  .hero { padding-top: 64px; }
  .nav-links.open { inset: 64px 0 0; }

  /* Hero */
  .hero h1 { font-size: 2.1rem; }
  .hero-subtitle { font-size: 14px; }
  .hero-actions { flex-direction: column; }

  /* Grilles */
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }

  /* Container */
  .container { padding: 0 14px; }
  section { padding: 36px 0; }

  /* Page banner */
  .page-banner h1 { font-size: 1.9rem; }
  .section-title { font-size: 1.8rem; }

  /* Countdown */
  .countdown-timer { gap: 6px; }
  .countdown-block { min-width: 42px; }
  .countdown-num { font-size: 22px; }
  .countdown-sep { font-size: 20px; }
  /* ancien timer-block */
  .timer-block .num { font-size: 22px; }
  .timer-block { min-width: 40px; }
  .timer-sep { font-size: 20px; margin-bottom: 8px; }

  /* KPI grid — 2 col sur mobile aussi */
  .kpi-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .kpi-number { font-size: 36px; }
  .kpi-card { padding: 20px 12px; }
  .kpi-card .kpi-icon { font-size: 28px; margin-bottom: 8px; }

  /* Podium accueil en colonne */
  .podium-grid { grid-template-columns: 1fr; max-width: 280px; }
  .podium-position { font-size: 32px; }

  /* Tableaux */
  .driver-avatar { width: 32px; height: 32px; font-size: 11px; }
  .driver-name { font-size: 14px; }
  .pos-badge { width: 26px; height: 26px; font-size: 12px; }
  .flag { font-size: 16px; }
  table.standings-table th,
  table.standings-table td { padding: 8px 8px; }

  /* Footer */
  .footer-bottom { flex-direction: column; text-align: center; gap: 8px; }
  .footer-bottom > div { flex-direction: column; gap: 8px; }
}

/* ── ORGANIGRAMME ── */
.org-tree {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 20px 0 40px;
  overflow-x: auto;
}

/* Niveau */
.org-level {
  display: flex;
  justify-content: center;
  gap: 20px;
  position: relative;
  flex-wrap: wrap;
}

/* Connecteur vertical entre niveaux */
.org-connector {
  width: 2px;
  height: 40px;
  background: linear-gradient(180deg, var(--primary) 0%, var(--border) 100%);
  margin: 0 auto;
}

/* Connecteur horizontal (barre reliant les enfants) */
.org-branch {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.org-branch-group {
  display: flex;
  gap: 20px;
  position: relative;
}

.org-branch-group::before {
  content: '';
  position: absolute;
  top: -20px;
  left: calc(50% - 1px);
  width: 2px;
  height: 20px;
  background: var(--border);
}

/* Ligne horizontale reliant les frères */
.org-siblings {
  display: flex;
  gap: 0;
  align-items: flex-start;
  position: relative;
}

.org-siblings::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  height: 20px;
  width: 2px;
  background: var(--border);
}

/* Carte membre */
.org-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 24px;
  text-align: center;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  position: relative;
  min-width: 160px;
  max-width: 200px;
  cursor: default;
}

.org-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(232,0,29,0.2);
}

.org-card.level-0 {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(232,0,29,0.08) 0%, var(--card) 100%);
  min-width: 200px;
}

.org-card.level-1 {
  border-color: rgba(255,102,0,0.4);
  background: linear-gradient(135deg, rgba(255,102,0,0.06) 0%, var(--card) 100%);
}

.org-card.level-2 {
  min-width: 150px;
}

.org-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 12px;
  background: var(--bg3);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Rajdhani', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-muted);
  overflow: hidden;
  transition: border-color .2s;
}

.org-card.level-0 .org-avatar {
  width: 80px;
  height: 80px;
  border-color: var(--primary);
  font-size: 28px;
}

.org-card.level-1 .org-avatar {
  border-color: rgba(255,102,0,0.5);
}

.org-card:hover .org-avatar {
  border-color: var(--primary);
}

.org-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.org-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 4px;
  line-height: 1.2;
}

.org-card.level-0 .org-name { font-size: 18px; }

.org-role {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 4px;
}

.org-card.level-1 .org-role { color: var(--orange); }
.org-card.level-2 .org-role { color: var(--text-muted); }

.org-email {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
  word-break: break-all;
}

/* Tree CSS layout: wrapper par département */
.org-dept {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.org-dept-children {
  display: flex;
  gap: 16px;
  position: relative;
  padding-top: 40px;
}

/* Ligne verticale descendant du parent */
.org-dept-children::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 20px;
  background: var(--border);
}

/* Ligne horizontale reliant tous les enfants */
.org-dept-children::after {
  content: '';
  position: absolute;
  top: 20px;
  left: calc(100px);
  right: calc(100px);
  height: 2px;
  background: var(--border);
}

/* Ligne verticale montant vers chaque enfant */
.org-dept-child {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding-top: 20px;
}

.org-dept-child::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 20px;
  background: var(--border);
}

/* Ligne unique (seul enfant) */
.org-dept-children.single::after { display: none; }
.org-dept-children.single::before { left: 50%; }

/* ── UTILITY ── */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-32 { margin-top: 32px; }
.mb-16 { margin-bottom: 16px; }
.mb-32 { margin-bottom: 32px; }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.badge-red { background: rgba(232,0,29,0.15); color: var(--primary); border: 1px solid rgba(232,0,29,0.3); }
.badge-green { background: rgba(0,200,100,0.12); color: #00c864; border: 1px solid rgba(0,200,100,0.3); }
.badge-grey { background: var(--bg3); color: var(--text-muted); }

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}

.flag-emoji { font-size: 22px; }
