/* Reset et base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Orbitron', sans-serif;
  background-color: #000;
  color: #fff;
  line-height: 1.6;
}

.section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: auto;
}

h2 {
  font-size: 2rem;
  color: #e50914;
  text-align: center;
  margin-bottom: 2rem;
}

h3 {
  color: #fff;
  margin: 1rem 0;
}

small {
  color: #aaa;
  font-weight: normal;
}

/* Logo plein écran parfaitement centré et adaptable */
#logo-screen {
  display: flex;
  justify-content: center;
  align-items: center;
  height: calc(100vh - 80px); /* écran moins la hauteur du menu */
}

.logo-fullscreen {
  max-width: 100%;
  max-height: 100%;
  height: auto;
  width: auto;
  object-fit: contain;
  animation: fadeIn 2s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Présentation */
.riders {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.rider span {
  color: #e50914;
  font-weight: bold;
}

/* Suppression ancienne galerie */
.gallery { display: unset !important; flex-direction: unset !important; gap: unset !important; align-items: unset !important; }

/* Galerie en grille */
.grid-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.grid-gallery img {
  width: 100%;
  height: 100%;
  border: 3px solid #e50914;
  border-radius: 12px;
  object-fit: cover;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid-gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(229, 9, 20, 0.5);
}

/* Objectifs 2026 */
.objectifs-container {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.objectif-card {
  background: #111;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4);
  max-width: 350px;
  flex: 1 1 300px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.objectif-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(229, 9, 20, 0.6);
}

.objectif-card h3 span {
  color: #e50914;
}

/* Section Instagram */
#instagram-feed {
  background-color: #111;
  padding: 4rem 2rem;
  text-align: center;
}

#instagram-feed h2 {
  color: #e50914;
  margin-bottom: 1rem;
}

#instagram-feed p {
  color: #ccc;
  margin-bottom: 2rem;
}

/* Empêcher le CSS global du site d'affecter Juicer */
.juicer-wrapper, 
.juicer-wrapper * {
  all: revert; /* remet les styles par défaut du navigateur ou du widget */
}

/* Remerciements / Sponsors */
.sponsors {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 4rem 2rem;
  background: #000;
}

.sponsors img {
  max-width: 450px;
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s;
  filter: none !important;
}

.sponsors img:hover {
  transform: scale(1.05);
}

footer {
  text-align: center;
  padding: 1rem;
  background: #111;
  color: #666;
  font-size: 0.9rem;
}

/* Navigation mobile */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #000;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 999;
}

nav .logo {
  max-height: 80px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle span {
  height: 3px;
  width: 25px;
  background: #fff;
  margin-bottom: 5px;
  border-radius: 2px;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

@media (max-width: 768px) {
  .riders {
    flex-direction: column;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: #111;
    padding: 1rem;
  }

  .nav-links.active {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .sponsors img {
    max-width: 90%;
  }
}

/* Animation fade-in */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
