/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Couleur UTBDM */
.text-green {
  color: #8dc63f;
}

/* GLOBAL */
html,
body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  background: #f5f5f5;
  color: #222;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.6;
}

/* TYPO SPORTIVE */
h1,
h2,
h3,
nav a {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 1px;
}

/* ===== MAIN ===== */
main {
  flex: 1;
  width: 100%;
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* ===== HERO (bannière) ===== */
.hero-image {
  width: 100%;
  height: 450px;
  background-image: url("images/fond-colza.webp");
  background-size: cover;
  background-position: center;
  border-radius: 20px;
  overflow: hidden;
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 2rem;
}

.hero-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.hero-content {
  z-index: 2;
  color: white;
  text-align: center;
}

.hero-content h1 {
  font-size: 5rem;
}

/* ===== QUI SOMMES-NOUS ===== */
.about {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.about-left {
  flex: 0 0 40%;
  display: flex;
  justify-content: center;
}

.about-logo {
  width: 80%;
  max-width: 420px;
}

.about-right {
  flex: 1;
}

.about-right h2 {
  font-size: 3.7rem;
  margin-bottom: 1rem;
}

.about-right p {
  font-size: 1.35rem;
  line-height: 1.85;
  margin-bottom: 1.2rem;
}

/* ===== NOS COURSES ===== */
.courses-section {
  padding: 2rem 0;
}

.courses-section h2 {
  font-size: 3.7rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.course-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.course-block {
  background: white;
  border-radius: 15px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.07);
  margin-bottom: 1.5rem;
  overflow: hidden;
  transition: 0.25s;
}

.course-block:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.course-image {
  width: 100%;
}

.course-text {
  padding: 1.5rem;
}

.course-text h3 {
  font-size: 2.1rem;
  margin-bottom: 0.3rem;
}

.course-text p {
  font-size: 1.15rem;
  line-height: 1.6;
}




/* ===== PROCHAIN ÉVÉNEMENT ===== */
.next-event {
  margin-bottom: 3rem;
}

.next-event h2 {
  font-size: 3.7rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.event-card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.07);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.event-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.event-details {
  padding: 1.5rem;
  text-align: center;
}

.event-details h3 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.event-date {
  font-size: 1.5rem;
  color: #8dc63f;
  font-weight: bold;
  margin-bottom: 1rem;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 1px;
}

@media (min-width: 768px) {
  .event-card {
    flex-direction: row;
  }

  .event-image {
    width: 50%;
    height: 400px;
  }

  .event-details {
    width: 50%;
    padding: 3rem;
    text-align: left;
  }
}

/* ===== FOOTER ===== */
footer {
  background: #111827;
  padding: 1.6rem;
  color: #9ca3af;
  text-align: center;
  font-size: 0.9rem;
  margin-top: auto;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .about {
    flex-direction: column;
    text-align: center;
  }

  .about-left {
    margin-bottom: 2rem;
  }

  .about-logo {
    max-width: 280px;
  }

  .about-right h2 {
    font-size: 2.7rem;
  }
}

@media (max-width: 600px) {
  .hero-image {
    height: 300px;
  }

  .hero-content h1 {
    font-size: 3rem;
    line-height: 1.1;
  }

  .about-right h2,
  .courses-section h2 {
    font-size: 2.4rem;
  }

  .about-right p,
  .course-text p {
    font-size: 1rem;
  }

  nav a {
    font-size: 1.15rem;
  }

  .course-text h3 {
    font-size: 1.7rem;
  }
}
@media (max-width: 600px) {
  .next-event h2 {
    font-size: 2.4rem;
  }

  .event-details h3 {
    font-size: 1.7rem;
  }
}

.event-btn {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.8rem 2rem;
  background: #8dc63f;
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-weight: bold;
  transition: transform 0.2s, background 0.2s;
}

.event-btn:hover {
  background: #222;
  transform: translateY(-2px);
}
