/* modern.css — Style harmonisé Ride Quest */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700;800;900&display=swap');

/* Police globale */
body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

/* Fond clair uniquement sur les pages normales */
body:not(.dark-page) {
  background: linear-gradient(180deg, #e8f0fe 0%, #f0f4ff 15%, #f0f4ff 100%) !important;
}

/* Header modernisé — compact + non-sticky */
header {
  background: linear-gradient(135deg, #0a0a2e 0%, #0055cc 50%, #0077FF 100%) !important;
  box-shadow: 0 4px 20px rgba(0,10,46,0.3) !important;
  padding: 0.7rem 1rem !important;
  position: relative !important;
  top: auto !important;
}

header img {
  display: none !important;
}

header h1 {
  font-size: 0.95rem !important;
  color: white !important;
  text-shadow: 0 0 15px rgba(0,198,255,0.2);
}

header h1::before {
  content: "RIDE QUEST";
  display: block;
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 1.5px;
  margin-bottom: 0.15rem;
  background: linear-gradient(90deg, #00c6ff, #ffffff, #00c6ff);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: headerShimmer 3s linear infinite;
}

@keyframes headerShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Cards glass effect */
.card {
  background: rgba(255,255,255,0.85) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(0,119,255,0.08) !important;
  box-shadow: 0 4px 16px rgba(0,10,46,0.06), 0 1px 3px rgba(0,119,255,0.08) !important;
}

/* Titres de section avec gradient */
.card-title {
  background: linear-gradient(90deg, #0055cc, #0077FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Bottom nav frosted glass */
.bottom-nav {
  background: rgba(255,255,255,0.8) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-top: 1px solid rgba(0,119,255,0.1) !important;
  box-shadow: 0 -2px 20px rgba(0,10,46,0.08) !important;
}

.bottom-nav-icon {
  background: rgba(0,119,255,0.06) !important;
  transition: all 0.3s ease !important;
}

.bottom-nav-item.active .bottom-nav-icon {
  background: linear-gradient(135deg, #0055cc, #0077FF) !important;
  box-shadow: 0 4px 15px rgba(0,119,255,0.4) !important;
}

/* Boutons primaires */
.btn-primary,
.btn.btn-primary {
  background: linear-gradient(135deg, #0055cc, #0077FF) !important;
  box-shadow: 0 4px 15px rgba(0,119,255,0.3) !important;
  transition: transform 0.2s, box-shadow 0.2s !important;
}

.btn-primary:active,
.btn.btn-primary:active {
  transform: scale(0.98) !important;
  box-shadow: 0 2px 8px rgba(0,119,255,0.2) !important;
}

/* Boutons secondaires */
.btn-secondary {
  border-color: #0055cc !important;
  color: #0055cc !important;
  background: rgba(255,255,255,0.9) !important;
  backdrop-filter: blur(5px) !important;
  transition: all 0.2s ease !important;
}

.btn-secondary:active {
  background: rgba(0,85,204,0.1) !important;
}

/* Mon rang card */
.my-rank-card {
  background: linear-gradient(135deg, #0a0a2e, #0055cc) !important;
  box-shadow: 0 4px 20px rgba(0,10,46,0.3) !important;
}

/* Podium */
.podium-spot.p1 {
  background: linear-gradient(180deg, #FFD700, #e6a800) !important;
  box-shadow: 0 4px 20px rgba(255,215,0,0.3) !important;
}

.podium-spot.p2 {
  background: linear-gradient(180deg, #C0C0C0, #999) !important;
  box-shadow: 0 4px 15px rgba(192,192,192,0.2) !important;
}

.podium-spot.p3 {
  background: linear-gradient(180deg, #CD7F32, #a0522d) !important;
  box-shadow: 0 4px 15px rgba(205,127,50,0.2) !important;
}

/* Record rows */
.record-row {
  background: rgba(248,250,255,0.9) !important;
  border: 1px solid rgba(0,119,255,0.06) !important;
}

/* Rank rows */
.rank-row {
  background: rgba(248,250,255,0.9) !important;
}

.rank-row.me {
  background: rgba(0,119,255,0.08) !important;
  border: 1px solid rgba(0,119,255,0.2) !important;
}

/* Score bars */
.rank-bar-fill {
  background: linear-gradient(90deg, #0055cc, #00c6ff) !important;
}

/* Scroll top button */
.scroll-top {
  background: linear-gradient(135deg, #0055cc, #0077FF) !important;
  box-shadow: 0 4px 15px rgba(0,119,255,0.4) !important;
}

/* Parc cards */
.parc-card {
  background: rgba(255,255,255,0.85) !important;
  backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(0,119,255,0.06) !important;
}

/* Badge items */
.badge-item.unlocked {
  border: 2px solid #0055cc !important;
  background: rgba(0,85,204,0.06) !important;
}

/* Stats header */
.stats-header {
  background: linear-gradient(135deg, #0a0a2e, #0055cc) !important;
  color: white !important;
}

.stats-header .total-count {
  color: white !important;
  text-shadow: 0 0 20px rgba(0,198,255,0.5);
}

.stats-header .total-label {
  color: rgba(255,255,255,0.85) !important;
}

/* Toggle buttons */
.toggle-btn.active {
  background: linear-gradient(135deg, #0055cc, #0077FF) !important;
  box-shadow: 0 2px 10px rgba(0,119,255,0.3) !important;
}

/* Counter card (badges) */
.counter-card {
  background: rgba(255,255,255,0.85) !important;
  backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(0,119,255,0.08) !important;
}

.counter-big {
  background: linear-gradient(90deg, #0055cc, #0077FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Filter selects */
.filter-select {
  background: rgba(255,255,255,0.9) !important;
  border: 1.5px solid rgba(0,119,255,0.15) !important;
  transition: border-color 0.3s !important;
}

.filter-select:focus {
  border-color: #0077FF !important;
  box-shadow: 0 0 10px rgba(0,119,255,0.15) !important;
}

/* Search inputs */
.search-input {
  background: rgba(255,255,255,0.9) !important;
  border: 1.5px solid rgba(0,119,255,0.12) !important;
}

.search-input:focus {
  border-color: #0077FF !important;
  box-shadow: 0 0 12px rgba(0,119,255,0.12) !important;
}

/* Completion bars */
.completion-bar {
  background: #e2e8f0 !important;
}

.completion-fill {
  background: linear-gradient(90deg, #0055cc, #00c6ff) !important;
}

/* Choice cards (finattraction) */
.choice-card.selected {
  border-color: #0055cc !important;
  background: rgba(0,85,204,0.06) !important;
}

/* Loading states */
.loading {
  color: #0055cc !important;
}
