/* ============================================================================
   MTB Club Site - Global Styles
   ============================================================================ */

:root {
  /* Brand colors */
  --brand-blue: #df4e00;
  --brand-red: #007e06;
  
  /* Neutral palette */
  --neutral-dark: #212529;
  --neutral-light: #f8f9fa;
  --neutral-border: #dee2e6;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 4rem;
  
  /* Typography */
  --font-family-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-size-base: 1rem;
  --font-size-sm: 0.875rem;
  --font-size-lg: 1.125rem;
  --line-height-base: 1.6;
}

/* ============================================================================
   Reset and Base Styles
   ============================================================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--neutral-dark);
  background-color: white;
}

/* ============================================================================
   Typography
   ============================================================================ */

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: var(--spacing-md);
  color: var(--brand-blue);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  color: var(--brand-blue);
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1.125rem;
}

p {
  margin-bottom: var(--spacing-md);
}

a {
  color: var(--brand-blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--brand-red);
  text-decoration: none;
}


/* Boutons : laisser Bootstrap gérer */
.btn {
  color: inherit;
}

/* ============================================================================
   Navbar Customisation (complément Bootstrap)
   ============================================================================ */

.nav-link {
  position: relative;
  font-weight: 500;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--brand-blue);
  transition: width 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  text-decoration: none !important;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.navbar-brand {
  color: var(--brand-blue) !important;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.navbar-brand:hover {
  color: var(--brand-red) !important;
}

.navbar {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* ============================================================================
   Footer
   ============================================================================ */

footer {
  background-color: var(--neutral-dark);
  color: #adb5bd;
  padding: var(--spacing-xxl) 0;
  margin-top: var(--spacing-xxl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--brand-blue);
  margin-bottom: var(--spacing-md);
}

.footer-section h4 {
  color: white;
  font-size: 1rem;
  margin-bottom: var(--spacing-md);
}

.footer-section ul {
  list-style: none;
  padding-left: 0;
}

.footer-section li {
  margin-bottom: var(--spacing-sm);
}

.footer-section a {
  color: #adb5bd;
}

.footer-section a:hover {
  color: var(--brand-blue);
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--spacing-lg);
  margin-top: var(--spacing-lg);
  text-align: center;
  font-size: var(--font-size-sm);
}

/* ============================================================================
   Hero Image Section
   ============================================================================ */

.hero-image {
  width: 100%;
  background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image-placeholder {
  color: #6c757d;
  font-size: 1rem;
  text-align: center;
}

@media (max-width: 768px) {
  .hero-image {
    height: 250px;
  }
}

/* ============================================================================
   Sections and Content
   ============================================================================ */

section {
  padding: var(--spacing-xxl) var(--spacing-lg);
}

.container-custom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-xxl);
  position: relative;
  padding-bottom: var(--spacing-lg);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-blue) 0%, var(--brand-red) 100%);
}

/* ============================================================================
   Cards and Components
   ============================================================================ */

.card {
  border: 1px solid var(--neutral-border);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.card-image {
  width: 100%;
  height: 200px;
  background-color: #e9ecef;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: var(--spacing-lg);
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-md);
  color: var(--neutral-dark);
}

.card-text {
  color: #6c757d;
  font-size: 0.95rem;
  margin-bottom: var(--spacing-md);
}

/* ============================================================================
   Buttons
   ============================================================================ */

.btn {
  transition: all 0.2s ease;
}

.btn-primary {
  background-color: var(--brand-blue);
  border-color: var(--brand-blue);
  color: white;
}

.btn-primary:hover {
  background-color: var(--brand-red);
  border-color: var(--brand-red);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
  background-color: var(--brand-red);
  border-color: var(--brand-red);
  color: white;
}

.btn-secondary:hover {
  background-color: var(--brand-blue);
  border-color: var(--brand-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

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

.btn-outline:hover {
  background-color: var(--brand-blue);
  color: white;
  text-decoration: none;
}
/* ============================================================================
   Section Featured (Inscriptions, etc.)
   ============================================================================ */

.section-featured {
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-red) 100%);
  color: white;
  padding: 3rem 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.section-featured h2 {
  color: white;
  margin-bottom: 1.5rem;
  text-align: center;
}

.section-featured h4 {
  color: white;
  font-weight: 600;
  margin-bottom: 1rem;
}

.section-featured p {
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 1rem;
}

.section-featured .info-box {
  background: rgba(255, 255, 255, 0.15);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.section-featured a {
  color: white;
  text-decoration: none;
  font-weight: 600;
}

/* ============================================================================
   Accessibility
   ============================================================================ */

a:focus,
button:focus,
.nav-link:focus {
  outline: 2px solid var(--brand-blue);
  outline-offset: 2px;
}

/* ============================================================================
   Responsive Design
   ============================================================================ */

@media (max-width: 576px) {
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  section {
    padding: var(--spacing-lg) var(--spacing-sm);
  }
}

@media (max-width: 768px) {
  :root {
    --spacing-xxl: 2.5rem;
  }
  
  section {
    padding: var(--spacing-lg) var(--spacing-md);
  }
}