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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: dark red;
  color: #111;
  line-height: 1.6;
  padding-top: 80px;
}

/* ========== VARIABLES ========== */
:root {
  --red: #e60000;
  --red-dark: #a80000;
  --black: #000;
  --gray-bg: #f3f3f3;
  --white: #fff;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  --radius: 12px;
}

/* ========== NAVBAR ========== */
.sticky-header {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--black);
  color: var(--white);
  z-index: 1000;
  box-shadow: var(--shadow);
}

.navbar {
  max-width: 1200px;
  margin: auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.7rem;
  font-weight: bold;
  color: var(--red);
  letter-spacing: 1px;
}

.logo-img {
  width: 45px;
  height: 45px;
  object-fit: contain;
}

.nav-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  transition: background 0.3s;
}

.nav-links a:hover {
  background-color: var(--red);
  color: var(--white);
}

/* ========== HERO ========== */
.hero {
  position: relative;
  height: 400px;
  overflow: hidden;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

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

.hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6);
}

.hero-content {
  position: relative;
  z-index: 1;
  background: rgba(0, 0, 0, 0.6);
  padding: 2rem 3rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.hero-content p {
  font-size: 1.2rem;
  font-weight: 300;
}

/* ========== SECTIONS GÉNÉRALES ========== */
main section {
  padding: 3rem 2rem;
  max-width: 1200px;
  margin: auto;
}

h2 {
  color: var(--red);
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

ul {
  list-style: disc;
  padding-left: 1.5rem;
}

.objectifs ul {
  line-height: 1.8;
}

/* ========== DISCIPLINES ========== */
.disciplines-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.disciplines-list div {
  flex: 1 1 45%;
  background: var(--gray-bg);
  padding: 1.5rem;
  border-left: 5px solid var(--red);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
    background-color: var(--black);
}

/* ========== NEWS ========== */
.news-item {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: flex-start;
  background: var(--gray-bg);
  background-color: var(--black);
  padding: 1rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.news-item img {
  width: 250px;
  border-radius: 8px;
  object-fit: cover;
}

/* ========== SLIDER ========== */
.slider {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 700px;
  margin: auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.slider img {
  width: 100%;
  border-radius: var(--radius);
  transition: opacity 0.3s ease;
}

.slider button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.6);
  color: var(--white);
  border: none;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 50%;
  z-index: 2;
  transition: background 0.3s;
}

.slider button:hover {
  background-color: var(--red-dark);
}

.slider .prev { left: 10px; }
.slider .next { right: 10px; }

/* ========== PARTENAIRES ========== */
.logos-partenaires {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.logos-partenaires img {
  height: 60px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.logos-partenaires img:hover {
  transform: scale(1.1);
}

.temoignage-sponsor {
  font-style: italic;
  background: var(--gray-bg);
  background-color: var(--black);
  padding: 2rem;
  border-left: 5px solid var(--red);
  border-radius: var(--radius);
  max-width: 700px;
  margin: auto;
  text-align: center;
  box-shadow: var(--shadow);
}

/* ========== REJOINDRE ========== */
.rejoindre {
  text-align: center;
  background: linear-gradient(to right, var(--black), var(--red-dark));
  color: var(--white);
  padding: 3rem 2rem;
  border-radius: var(--radius);
}

.rejoindre .btn {
  display: inline-block;
  margin-top: 1.5rem;
  background-color: var(--red);
  color: white;
  padding: 0.8rem 1.5rem;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px var(--red);
}

.rejoindre .btn:hover {
  background-color: var(--red-dark);
  box-shadow: 0 0 15px var(--red);
}

/* ========== CITATION ========== */
.citation blockquote {
  font-style: italic;
  background: var(--gray-bg);
  background-color: var(--black);
  padding: 2rem;
  border-left: 5px solid var(--red);
  border-radius: var(--radius);
  max-width: 700px;
  margin: auto;
  text-align: center;
  box-shadow: var(--shadow);
}

/* ========== FOOTER ========== */
.sticky-footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: var(--black);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  padding: 1rem 0.5rem;
  font-size: 0.9rem;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}
.sticky-footer img {
  width: 30px;
  height: auto;
  margin-right: 0.5rem;
}
/* ========== RESPONSIVE ========== */
@media screen and (max-width: 768px) {
  .navbar, .nav-links, .disciplines-list, .news-item {
    flex-direction: column;
    align-items: center;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .news-item img {
    width: 100%;
  }

  .disciplines-list div {
    flex: 1 1 100%;
  }

  .slider {
    max-width: 90%;
  }
}
/* ========== BACKGROUND GRADIENT ========== */
body {
  background: linear-gradient(to bottom, #4d0000, #B22222);
  color: var(--white);
}

/* ========== SCROLL ANIMATIONS ========== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.slide-up {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s ease;
}

.slide-up.appear {
  opacity: 1;
  transform: translateY(0);
}

.slide-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: all 1s ease;
}

.slide-left.appear {
  opacity: 1;
  transform: translateX(0);
}

.slide-right {
  opacity: 0;
  transform: translateX(40px);
  transition: all 1s ease;
}

.slide-right.appear {
  opacity: 1;
  transform: translateX(0);
}

/* Slider général */
.slider {
  position: relative;
  width: 100%;
  max-width: 900px;
  height: 500px; /* Cadre fixe pour que toutes les images aient la même taille */
  margin: 2rem auto;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Images du slider */
#slider-img {
  width: 100%;
  height: 100%; /* Remplit le cadre fixe */
  object-fit: cover; /* garde les proportions, découpe si nécessaire */
  transition: opacity 0.5s ease-in-out;
  border-radius: 15px;
}

/* Boutons */
.slider button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.5);
  border: none;
  color: white;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 50%;
  transition: background-color 0.3s;
}

.slider button:hover {
  background-color: rgba(0,0,0,0.8);
}

.slider .prev {
  left: 15px;
}

.slider .next {
  right: 15px;
}

/* Responsive */
@media (max-width: 768px) {
  .slider {
    height: 300px;
  }
  .slider button {
    font-size: 1.5rem;
    padding: 0.3rem 0.6rem;
  }
}


.menu-toggle {
  display: none;
  font-size: 2rem;
  color: var(--white);
  cursor: pointer;
}

/* Menu mobile masqué par défaut */
@media screen and (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: center;
    background-color: var(--black);
    padding: 1rem 0;
    border-top: 1px solid rgba(255,255,255,0.2);
  }

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

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-links a {
    display: block;
    padding: 1rem;
    width: 100%;
    text-decoration: none;
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .nav-links a:hover {
    background-color: var(--red);
  }

  .navbar {
    flex-wrap: nowrap;
    justify-content: space-between;
  }
}
