/* ===================== RESET ===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #f9f9f9;
  color: #1c1c1c;
  line-height: 1.6;
}

/* ===================== HEADER ===================== */
header {
  background-color: #fff;
  padding: 1rem 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);

  position: sticky;
  top: 0;
  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

header a {
  text-decoration: none;
}

header .logo {
  height: 60px;
  width: auto;
  border-radius: 8px;
}

header h1 {
  flex: 1;
  text-align: center;
  font-size: 1.8rem;
  margin: 0;
}

/* ===================== NAV ===================== */
.nav {
  position: relative;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  list-style: none;
}

.nav-menu a {
  text-decoration: none;
  color: #1c1c1c;
  font-weight: 500;
  padding: 0.3rem 0.5rem;
  transition: color 0.3s;
}

.nav-menu a:hover {
  color: #4b6b4b;
}

/* BURGER */
.nav-toggle {
  display: none;
}

.nav-icon {
  display: none;
}

/* ===================== BOUTON HELLO ASSO ===================== */
.inscriptionhello {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1rem 0 3rem 0;
}

.hello-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.btn-primary2 {
  background-color: #4b6b4b;
  color: #fff;
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: 0.3s;
  display: inline-block;
}

.btn-primary2:hover {
  background-color: #6fa36f;
  transform: scale(1.05);
}

.btn-primary2:visited {
  color: #fff;
}

/* ===================== PAGE INSCRIPTION ===================== */
.inscription-page {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 3rem;

  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 1rem;
}

.inscription-content {
  flex: 1 1 450px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  padding: 2rem;
  text-align: left;
}

.inscription-content h1 {
  text-align: center;
  margin-bottom: 2rem;
}

.inscription-content h2 {
  color: #4b6b4b;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.inscription-content p,
.inscription-content ul {
  margin-bottom: 1rem;
}

.inscription-content ul {
  padding-left: 1.5rem;
}

/* highlight */
.inscription-highlight {
  background-color: #e0f0df;
  padding: 1rem;
  border-radius: 8px;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* ===================== DOWNLOAD ===================== */
.download {
  background-color: #f9f9f9;
  text-align: center;
  padding: 4rem 2rem;
}

.download-reglement-content h1 {
  font-size: 2.4rem;
  margin-bottom: 1rem;
}

.download-reglement-content p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: auto;
  margin-bottom: 2rem;
}

.btn-primary {
  background-color: #4b6b4b;
  color: #fff;
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: 0.3s;
  display: inline-block;
}

.btn-primary:hover {
  background-color: #6fa36f;
  transform: scale(1.05);
}

/* ===================== CAROUSEL ===================== */
.inscription-right {
  flex: 1 1 450px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel-wrapper {
  width: 100%;
  max-width: 500px;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.carousel-track img {
  width: 100%;
  flex-shrink: 0;
  object-fit: cover;
  display: block;
}

/* boutons carousel */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-size: 1.5rem;
  border-radius: 50%;
  z-index: 10;
}

.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

/* ===================== FOOTER ===================== */
.footer {
  background-color: #fff;
  padding: 3rem 1rem;
  text-align: center;
  border-top: 1px solid #eee;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.footer-nav a {
  text-decoration: none;
  color: #1c1c1c;
}

.footer-nav a:hover {
  color: #4b6b4b;
}

.footer-social a {
  margin: 0 0.5rem;
  font-size: 1.5rem;
  color: #1c1c1c;
}

.footer-social a:hover {
  color: #4b6b4b;
}

.support-button {
  display: inline-block;
  margin: 1rem 0;
  background-color: #4b6b4b;
  color: #fff;
  padding: 0.8rem 1.6rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}

.support-button:hover {
  background-color: #6fa36f;
  transform: scale(1.05);
}

.footer-copy {
  font-size: 0.9rem;
  color: #888;
}

.footer-counter {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #888;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {

  .inscription-page {
    flex-direction: column;
    align-items: center;
  }

  .inscription-right {
    order: -1;
  }

  .carousel-wrapper {
    max-width: 100%;
  }

  .inscription-content {
    padding: 1.5rem;
  }

  .download-reglement-content h1 {
    font-size: 1.8rem;
  }
}

/* ===================== MENU BURGER CLEAN ===================== */
@media (max-width: 900px) {

  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 70%;
    height: 100vh;
    background: #fff;

    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 2rem;

    padding-top: 4rem;

    transform: translateX(100%);
    transition: transform 0.4s ease;

    box-shadow: -4px 0 12px rgba(0,0,0,0.1);
    z-index: 10000;

    overflow-y: auto;
  }

  .nav-toggle:checked ~ .nav-menu {
    transform: translateX(0);
  }

  .nav-icon {
    display: block;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10001;
  }

  .nav-toggle {
    display: none;
  }

  .nav-menu a {
    font-size: 1.2rem;
  }
}