/* ============================================
   CANICROSS DE BENFELD - CSS (V2 ERGONOMIQUE)
   ============================================ */

/* ============================================
   RESET & BASE
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #1f2937;
  background-color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ============================================
   PROGRESS BAR
   ============================================ */
.scroll-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: transparent;
  z-index: 200;
}

.scroll-progress-bar {
  height: 100%;
  background: linear-gradient(to right, #f97316, #38b6ff);
  width: 0%;
  transition: width 0.1s ease;
  box-shadow: 0 0 10px rgba(56, 182, 255, 0.5);
}

/* ============================================
   ANIMATIONS & REVEALS
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0px);
  }
}

@keyframes scroll {
  0% {
    opacity: 0;
    transform: translateY(0);
  }

  10% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateY(15px);
  }
}

@keyframes arrows {
  0% {
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

@keyframes pulse-soft {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.21, 0.6, 0.35, 1),
    transform 0.8s cubic-bezier(0.21, 0.6, 0.35, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered Delay Utilities */
.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* ============================================
   HERO SECTION WITH SLIDER
   ============================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
  z-index: 1;
}

/* Branding Block (Top Left) */
.hero-branding {
  position: absolute;
  top: 40px;
  left: 40px;
  background-color: #f97316;
  padding: 2rem 2.5rem;
  z-index: 10;
  max-width: 280px;
  animation: slideInLeft 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.hero-branding h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  line-height: 1.1;
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}

.hero-branding p {
  font-size: 0.95rem;
  color: white;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.5px;
}

/* Main Hero Content (Centered) */
.hero-content {
  position: absolute;
  bottom: 260px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 10;
  width: 100%;
  max-width: 900px;
  padding: 0 2rem;
}

.hero-title {
  font-size: 4.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
  line-height: 1.1;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.hero-title span {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px) rotateX(-90deg);
  transition: all 0.5s cubic-bezier(0.21, 0.6, 0.35, 1);
}

.hero-title span.active {
  opacity: 1;
  transform: translateY(0) rotateX(0deg);
}

.hero-subtitle {
  font-size: 1.6rem;
  color: white;
  font-weight: 600;
  background-color: #003264;
  display: inline-block;
  padding: 0.6rem 2.5rem;
  border-radius: 4px;
  animation: fadeInUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.8s both;
}

.hero-date {
  display: block;
  font-size: 2.2rem;
  color: #f97316;
  font-weight: 800;
  margin-top: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1.2s both;
}

/* ============================================
   COUNTDOWN TIMER
   ============================================ */
.hero-countdown {
  margin-top: 2rem;
  animation: fadeInUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1.5s both;
}

.countdown-label {
  color: white;
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.countdown-timer {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.time-box {
  background: rgba(0, 50, 100, 0.8);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 1rem;
  min-width: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.time-box:hover {
  transform: translateY(-5px);
  border-color: #f97316;
}

.time-box span:first-child {
  font-size: 2.5rem;
  font-weight: 800;
  color: #f97316;
  line-height: 1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.time-label {
  font-size: 0.85rem;
  color: white;
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 5px;
  letter-spacing: 1px;
}

@media (max-width: 640px) {
  .countdown-timer {
    gap: 0.5rem;
  }
  .time-box {
    min-width: 65px;
    padding: 0.6rem;
  }
  .time-box span:first-child {
    font-size: 1.5rem;
  }
  .time-label {
    font-size: 0.7rem;
  }
}

/* Scroll Down Indicator */
.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.scroll-down:hover {
  opacity: 1;
}

.mouse {
  width: 25px;
  height: 40px;
  border: 2px solid white;
  border-radius: 20px;
  display: flex;
  justify-content: center;
  padding-top: 5px;
}

.wheel {
  width: 4px;
  height: 8px;
  background: white;
  border-radius: 2px;
  animation: scroll 2s infinite;
}

.m_scroll_arrows {
  display: block;
  width: 10px;
  height: 10px;
  border-right: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(45deg);
  margin: -5px 0;
  animation: arrows 2s infinite;
}

.unu {
  animation-delay: 0.2s;
}

.doi {
  animation-delay: 0.4s;
}

.trei {
  animation-delay: 0.6s;
}

/* Logo Organiseurs (Bottom Right) */
.hero-logos {
  position: absolute;
  bottom: 200px;
  right: 60px;
  z-index: 10;
  display: flex;
  gap: 20px;
  animation: fadeInScale 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.7s both;
}

.hero-logo {
  width: 160px;
  height: 160px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  padding: 15px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: float 6s ease-in-out infinite;
}

.hero-logo:nth-child(2) {
  animation-delay: 0.5s;
}

.hero-logo.sprint-canin {
  background: #8bc34a;
}

.hero-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Slider Controls */
.slider-controls {
  position: absolute;
  bottom: 120px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 1rem;
}

.slider-btn {
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f97316;
  font-weight: bold;
}

.slider-btn:hover {
  background: #f97316;
  color: white;
  transform: scale(1.1);
}

.slider-dots {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 0.8rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active,
.dot:hover {
  background: #f97316;
  transform: scale(1.3);
}

/* ============================================
   NAVIGATION
   ============================================ */
.main-nav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 0;
}

.nav-link {
  color: #f97316;
  text-decoration: none;
  padding: 0.8rem 2.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
  display: inline-block;
}

.nav-link:hover,
.nav-link.active {
  background-color: #f97316;
  color: white;
  border-bottom-color: #003264;
  transform: translateY(-2px);
}

/* ============================================
   ANNOUNCEMENT SECTION
   ============================================ */
.announcement {
  padding: 3rem 0;
  background: linear-gradient(to bottom, #f9fafb, #ffffff);
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1.5rem;
}

.date-info {
  font-size: 1.5rem;
  color: #003264;
  font-weight: 600;
  margin-bottom: 1rem;
}

.registration-info {
  font-size: 1.2rem;
  color: #6b7280;
  margin-bottom: 2.5rem;
}

.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, #38b6ff, #003264);
  color: white;
  text-decoration: none;
  padding: 1.2rem 3rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(56, 182, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cta-button:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 30px rgba(56, 182, 255, 0.4);
}

.cta-button.disabled {
  background: #e2e8f0;
  color: #94a3b8;
  cursor: not-allowed;
  box-shadow: none;
  pointer-events: none;
}

.cta-button.disabled:hover {
  transform: none;
  box-shadow: none;
}

.cta-button.secondary:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 30px rgba(249, 115, 22, 0.4);
}

.cta-button.secondary {
  background: linear-gradient(135deg, #f97316, #fb923c);
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
}

.cta-button.secondary:hover {
  box-shadow: 0 6px 25px rgba(249, 115, 22, 0.5);
}

.ffslc-info {
  margin-top: 2.5rem;
  font-size: 1.05rem;
  color: #374151;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   INTRODUCTION SECTION
   ============================================ */
.intro-section {
  padding: 4rem 0;
  background-color: #ffffff;
  text-align: center;
}

.intro-content {
  max-width: 800px;
  margin: 0 auto;
}

.intro-image-container {
  margin-bottom: 2.5rem;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  position: relative;
}

.intro-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.intro-image-container:hover .intro-image {
  transform: scale(1.03);
}

.intro-logo-overlay {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 90px;
  height: 90px;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  z-index: 10;
  transition: transform 0.3s ease;
}

.intro-image-container:hover .intro-logo-overlay {
  transform: scale(1.1);
}

.intro-logo-overlay img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.intro-content p {
  font-size: 1.15rem;
  color: #4b5563;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.intro-content p strong {
  color: #1f2937;
  font-weight: 700;
}

.highlight-text {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(56, 182, 255, 0.1));
  padding: 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  color: #1f2937 !important;
  border-left: 4px solid #f97316;
  margin-top: 2.5rem;
}

/* ============================================
   EVENTS SECTION
   ============================================ */
.events {
  padding: 5rem 0;
  background: white;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.event-card {
  background: white;
  border: 3px solid #e5e7eb;
  border-radius: 16px;
  padding: 2.5rem;
  transition: all 0.3s ease;
  text-align: center;
}

.event-card:hover {
  border-color: #38b6ff;
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(56, 182, 255, 0.2);
}

.event-card.large {
  background: linear-gradient(135deg, rgba(56, 182, 255, 0.05), rgba(249, 115, 22, 0.05));
}

.event-image {
  width: 100%;
  height: 220px;
  margin-bottom: 1.5rem;
  border-radius: 12px;
  overflow: hidden;
}

.event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.event-card:hover .event-image img {
  transform: scale(1.05);
}

.event-card h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.event-distance {
  font-size: 1.3rem;
  color: #f97316;
  font-weight: 700;
  margin-bottom: 1rem;
  display: inline-block;
}

.event-card:hover .event-distance {
  animation: pulse-soft 1s infinite;
}

.event-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.event-tag {
  background: #f1f5f9;
  color: #475569;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid #e2e8f0;
}

.event-card p {
  color: #6b7280;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Map Section */
.map-section {
  margin: 4rem 0;
  text-align: center;
}

.map-section .section-title {
  margin-bottom: 0.5rem;
}

.map-section .section-subtitle {
  margin-bottom: 2.5rem;
  color: #6b7280;
}

.map-container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
  background: white;
}

.map-container iframe {
  display: block;
}

@media (max-width: 768px) {
  .map-container iframe {
    height: 400px;
  }
}


@keyframes blob {
  0% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(30px, -50px) scale(1.1);
  }

  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }

  100% {
    transform: translate(0, 0) scale(1);
  }
}

/* ============================================
   PRACTICAL INFO
   ============================================ */
.practical-info {
  padding: 5rem 0;
  background: #f9fafb;
  position: relative;
  overflow: hidden;
}

.practical-info::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: rgba(56, 182, 255, 0.1);
  border-radius: 50%;
  filter: blur(80px);
  animation: blob 10s infinite alternate;
  z-index: 0;
}

.practical-info::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: rgba(249, 115, 22, 0.08);
  border-radius: 50%;
  filter: blur(80px);
  animation: blob 15s infinite alternate-reverse;
  z-index: 0;
}

.practical-info .container {
  position: relative;
  z-index: 1;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.info-card {
  background: white;
  border-left: 4px solid #38b6ff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.info-card:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 20px rgba(56, 182, 255, 0.15);
}

.info-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.info-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.info-card p {
  color: #6b7280;
  font-size: 1.05rem;
}

/* ============================================
   RESULTS SECTION
   ============================================ */
.results {
  padding: 5rem 0;
  background: white;
}

.results-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.tab-btn {
  padding: 0.8rem 2rem;
  border: 2px solid #e5e7eb;
  background: white;
  color: #6b7280;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-btn:hover {
  border-color: #38b6ff;
  color: #38b6ff;
}

.tab-btn.active {
  background: #38b6ff;
  border-color: #38b6ff;
  color: white;
  box-shadow: 0 4px 15px rgba(56, 182, 255, 0.3);
}

.results-container {
  display: none;
  animation: fadeIn 0.5s ease;
}

.results-container.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.results-intro {
  text-align: center;
  font-size: 1.2rem;
  color: #6b7280;
  margin-bottom: 3rem;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-top: 2rem;
}

.result-category {
  background: linear-gradient(to bottom, #f9fafb, white);
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.result-category:hover {
  border-color: #f97316;
  box-shadow: 0 8px 25px rgba(249, 115, 22, 0.15);
}

.result-category h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid #38b6ff;
}

.podium {
  list-style: none;
  counter-reset: item;
}

.podium li {
  padding: 0.8rem 1rem;
  margin-bottom: 0.5rem;
  background: white;
  border-radius: 8px;
  border-left: 3px solid #e5e7eb;
  font-size: 1.05rem;
  color: #374151;
  transition: all 0.3s ease;
}

.podium li:hover {
  background: #f9fafb;
  border-left-color: #38b6ff;
  transform: translateX(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.podium li:nth-child(1):hover {
  box-shadow: 0 4px 20px rgba(251, 191, 36, 0.3);
  background: linear-gradient(to right, rgba(251, 191, 36, 0.05), white);
}

.podium li:nth-child(1) {
  border-left-color: #fbbf24;
}

.podium li:nth-child(2) {
  border-left-color: #9ca3af;
}

.podium li:nth-child(3) {
  border-left-color: #fb923c;
}

.medal {
  margin-right: 0.5rem;
  font-size: 1.2rem;
}

.results-link {
  text-align: center;
  margin-top: 3rem;
}

/* ============================================
   PARTNERS SECTION
   ============================================ */
.partners {
  padding: 5rem 0;
  background: #f9fafb;
  text-align: center;
}

.partners-text {
  font-size: 1.2rem;
  color: #6b7280;
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.partner-logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.partner-logo {
  width: 250px;
  height: auto;
  filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.1));
  transition: transform 0.3s ease;
}

.partner-logo:hover {
  transform: scale(1.05);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: linear-gradient(135deg, #003264, #38b6ff);
  color: white;
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.footer-section h4 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-section p {
  font-size: 1rem;
  line-height: 1.8;
  opacity: 0.95;
}

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

.footer-section ul li {
  margin-bottom: 0.7rem;
}

.footer-section a {
  color: white;
  text-decoration: none;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.footer-section a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.95rem;
  opacity: 0.9;
}

/* ============================================
   PAGE HEADERS (INTERNAL PAGES)
   ============================================ */
.page-header {
  height: 30vh;
  min-height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  margin-bottom: 0;
}

.page-header .container {
  z-index: 2;
}

.page-header h1 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

@media (min-width: 768px) {
  .page-header h1 {
    font-size: 3rem;
  }
}

.page-header p {
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.9;
}

@media (min-width: 768px) {
  .page-header p {
    font-size: 1.3rem;
  }
}

/* ============================================
   PREVIEW SECTIONS (HOME PAGE)
   ============================================ */
.preview-section {
  padding: 3rem 0;
}

.bg-light {
  background-color: #f9fafb;
}

.section-subtitle {
  text-align: center;
  margin-top: -1rem;
  margin-bottom: 3rem;
  color: #6b7280;
  font-size: 1.1rem;
}

.view-more {
  text-align: center;
  margin-top: 3.5rem;
}

.text-link {
  color: #f97316;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  display: inline-block;
}

.text-link:hover {
  transform: translateX(10px);
  color: #fb923c;
}

.cta-group {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.results-preview-box {
  background: white;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  justify-content: space-around;
  gap: 2rem;
  flex-wrap: wrap;
}

.result-winner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1 1 250px;
}

.result-winner .medal {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.result-winner strong {
  font-size: 1.5rem;
  color: #1f2937;
}

.result-winner span {
  color: #6b7280;
}

/* ============================================
   INTERNAL PAGE COMPONENTS
   ============================================ */
.events-page, .info-section, .results-page, .contact-page {
  padding: 6rem 0;
}

/* Rules Section */
.rules-section {
  margin-top: 6rem;
  padding-top: 4rem;
  border-top: 2px solid #e5e7eb;
}

.rules-section h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2rem;
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}

.rule-item {
  background: #f9fafb;
  padding: 2rem;
  border-radius: 12px;
  border-top: 4px solid #f97316;
}

.rule-item h4 {
  margin-bottom: 0.8rem;
  color: #1f2937;
  font-size: 1.2rem;
}

/* Registration Box */
.registration-box {
  background: linear-gradient(135deg, #003264, #38b6ff);
  color: white;
  padding: 4rem;
  border-radius: 24px;
  text-align: center;
  margin: 5rem 0;
}

.registration-box h2 {
  margin-bottom: 1.5rem;
  font-size: 2.5rem;
}

.registration-box p {
  margin-bottom: 2.5rem;
  font-size: 1.2rem;
  opacity: 0.9;
}

.registration-box .cta-button {
  background: white;
  color: #003264;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.registration-box .cta-button:hover {
  background: #f9fafb;
  color: #f97316;
}

.warning-text {
  margin-top: 2rem !important;
  font-weight: 600;
  color: #ffedd5 !important;
}

/* Schedule */
.schedule {
  max-width: 800px;
  margin: 0 auto;
}

.schedule h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.schedule-day {
  color: #003264;
  font-size: 1.4rem;
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #38b6ff;
  display: inline-block;
}

.schedule-list {
  list-style: none;
}

.schedule-list li {
  padding: 1.2rem 0;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
}

.schedule-list li strong {
  color: #f97316;
  min-width: 120px;
}

/* Contact Page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}

.contact-methods {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-method {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.contact-method .icon {
  width: 60px;
  height: 60px;
  background: #eff6ff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.8rem;
}

.contact-method h4 {
  margin-bottom: 0.2rem;
}

.contact-method a {
  color: #38b6ff;
  text-decoration: none;
  font-weight: 600;
}

.contact-form-container {
  background: white;
  padding: 3.5rem;
  border-radius: 20px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
}

.contact-form {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 600;
  color: #374151;
}

.form-group input, .form-group select, .form-group textarea {
  padding: 1.1rem;
  border: 2px solid #f3f4f6;
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: #38b6ff;
  background-color: #f0f7ff;
}

.small-link {
  font-size: 0.9rem;
  color: #38b6ff;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  margin-top: 0.5rem;
}

.social-links {
  margin-top: 2rem;
}

.facebook-link {
  display: inline-block;
  background: #1877F2;
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.3s ease;
}

.facebook-link:hover {
  opacity: 0.9;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 968px) {
  .hero-title {
    font-size: 3rem;
  }

  .hero-subtitle {
    font-size: 1.4rem;
  }

  .hero-branding {
    top: 20px;
    left: 20px;
    padding: 1.5rem 2rem;
  }

  .hero-branding h1 {
    font-size: 2rem;
  }

  .hero-logo {
    width: 140px;
    height: 140px;
    right: 30px;
  }

  .nav-container {
    flex-wrap: wrap;
  }

  .nav-link {
    padding: 1rem 1.5rem;
    font-size: 0.9rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .events-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero {
    height: 100vh; /* Restore full height for index banner */
  }

  .hero-branding {
    top: 15px;
    left: 15px;
    padding: 0.8rem 1.2rem;
    max-width: 160px;
  }

  .hero-branding h1 {
    font-size: 1.2rem;
  }

  .hero-branding p {
    font-size: 0.65rem;
  }

  .hero-content {
    bottom: auto;
    top: 45%;
    transform: translate(-50%, -50%);
    width: 95%;
    padding: 0 1rem;
  }

  .hero-title {
    font-size: 2rem;
    margin-bottom: 0.8rem;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    padding: 0.4rem 1rem;
    margin-bottom: 1rem;
    width: 100%;
    border-radius: 4px;
    line-height: 1.3;
  }

  .hero-date {
    font-size: 1.4rem;
    margin-top: 0.5rem;
    letter-spacing: 1px;
  }

  .hero-logos {
    bottom: 80px;
    right: 50%;
    transform: translateX(50%);
    gap: 15px;
  }

  .hero-logo {
    width: 80px;
    height: 80px;
    padding: 8px;
  }

  .slider-controls {
    bottom: 20px;
    width: 100%;
    justify-content: space-between;
    padding: 0 20px;
  }

  .slider-btn {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
    background: rgba(255, 255, 255, 0.7);
  }

  .slider-dots {
    bottom: 25px;
  }

  .dot {
    width: 8px;
    height: 8px;
  }

  .scroll-down {
    display: none; /* Trop de fouillis sur petit écran */
  }

  .nav-container {
    flex-direction: row;
    overflow-x: auto;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
  }

  .nav-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
  }

  .nav-link {
    width: auto;
    white-space: nowrap;
    padding: 0.8rem 1rem;
    font-size: 0.7rem;
    border-bottom: 2px solid transparent;
  }

  .nav-link.active {
    border-bottom: 2px solid #003264;
  }

  .container {
    padding: 0 1rem;
  }

  .announcement,
  .preview-section,
  .events,
  .practical-info,
  .results,
  .partners,
  .info-section {
    padding: 1.5rem 0;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .events-grid,
  .info-grid,
  .results-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-form-container {
    padding: 2rem 1.5rem;
  }

  .page-header {
    height: 25vh;
    min-height: 160px;
  }

  /* Reduce space between menu and content on secondary pages */
  .events-page, .info-section, .results-page, .contact-page {
    padding: 1rem 0;
  }
}