/* SportAtlas.fr - Design Néo-Athlétique & Premium 2026 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary-red: #dc2626;
  --primary-dark: #991b1b;
  --deep-slate: #0b0f19;
  --mesh-dark: #0f172a;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #f8fafc;
  color: #0f172a;
  overflow-x: hidden;
}

/* Custom Scrollbar Ultra-Fin */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Glassmorphism Header & Cards */
.glass-header {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.glass-card-dark {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card-light {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

/* Mesh Gradients Néo-Athlétique */
.mesh-hero {
  background-color: #090d16;
  background-image: 
    radial-gradient(at 100% 0%, rgba(220, 38, 38, 0.25) 0px, transparent 50%),
    radial-gradient(at 0% 100%, rgba(153, 27, 27, 0.2) 0px, transparent 50%),
    radial-gradient(at 50% 50%, rgba(15, 23, 42, 0.8) 0px, transparent 100%);
}

.mesh-card-dark {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #1f1118 100%);
}

/* Micro-Interactions & Hover Lift */
.hover-lift {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
}
.hover-lift:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -8px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
}

/* Bento Stat Widget */
.bento-stat {
  transition: all 0.2s ease;
  border: 1px solid #f1f5f9;
}
.bento-stat:hover {
  border-color: #fee2e2;
  background-color: #fffafb;
}

/* Glow Athletic Accent */
.glow-red {
  box-shadow: 0 0 35px -5px rgba(220, 38, 38, 0.35);
}

.glow-subtle {
  box-shadow: 0 10px 25px -5px rgba(220, 38, 38, 0.15);
}

/* Leaflet Map Customizations */
.leaflet-container {
  font-family: inherit;
  border-radius: 1.5rem;
}
.leaflet-popup-content-wrapper {
  border-radius: 1.25rem;
  box-shadow: 0 25px 35px -10px rgba(0, 0, 0, 0.15);
  padding: 0.25rem;
  border: 1px solid #f1f5f9;
}
.leaflet-popup-content {
  margin: 0.75rem 1rem;
  line-height: 1.5;
}

/* Pulse animation for map markers */
@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(220, 38, 38, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
  }
}

.user-location-marker {
  position: relative;
}
.user-location-marker::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  animation: pulse-ring 2s infinite cubic-bezier(0.45, 0, 0.2, 1);
}

/* Styles d'impression officielle / Fiche Pratique A4 */
@media print {
  header, footer, nav, #ads-container, .adsbygoogle, .top-announcement, button, .no-print, [onclick*="print"] {
    display: none !important;
  }
  body {
    background: white !important;
    color: black !important;
    font-size: 12pt !important;
  }
  .mesh-hero {
    background: #0f172a !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  section {
    break-inside: avoid;
    box-shadow: none !important;
    border: 1px solid #e2e8f0 !important;
    margin-bottom: 1.5rem !important;
  }
  a {
    text-decoration: none !important;
    color: inherit !important;
  }
}

/* Range input styled */
input[type=range] {
  accent-color: #dc2626;
}

/* Touch manipulation */
button, select, input, a {
  touch-action: manipulation;
}

/* Effondrement automatique des encarts publicitaires non remplis (Google AdSense Unfilled) */
.ads-wrapper:has(ins.adsbygoogle[data-ad-status="unfilled"]) {
  display: none !important;
}

