/* ===================== 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: 1000;

  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

header a {
  text-decoration: none;
}

header .logo {
  height: 60px;
  border-radius: 8px;
}

/* ===================== 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;
  transition: color 0.3s;
}

.nav-menu a:hover {
  color: #4b6b4b;
}

/* burger hidden desktop */
.nav-toggle {
  display: none;
}

.nav-icon {
  display: none;
}

/* ===================== REGLEMENT ===================== */
.reglement-page {
  min-height: 70vh;
  display: flex;
  justify-content: center;
  align-items: center;

  padding: 40px 20px;
  text-align: center;
}

.reglement-box {
  max-width: 650px;

  background: #fff;
  padding: 40px;

  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.reglement-box h1 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.reglement-box p {
  margin-bottom: 25px;
  color: #666;
}

/* ===================== BUTTONS ===================== */
.download-btn,
.view-btn {
  display: inline-block;
  padding: 14px 22px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  margin: 10px;

  transition: 0.3s;
}

.download-btn {
  background-color: #4b6b4b;
  color: #fff;
}

.download-btn:hover {
  background-color: #6fa36f;
  transform: translateY(-2px);
}

.view-btn {
  background-color: #1c1c1c;
  color: #fff;
}

.view-btn:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

/* ===================== 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;
}

.footer-copy {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #888;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {

  .reglement-box {
    padding: 25px;
  }
}

/* ===================== MENU BURGER FIX PROPRE ===================== */
@media (max-width: 900px) {

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100dvh;

    background: #fff;

    flex-direction: column;
    justify-content: flex-start;
    align-items: center;

    gap: 2rem;
    padding-top: 6rem;

    overflow-y: auto;
    -webkit-overflow-scrolling: touch;

    transition: right 0.4s ease;

    box-shadow: -4px 0 12px rgba(0,0,0,0.1);
    z-index: 9999;
  }

  .nav-toggle:checked ~ .nav-menu {
    right: 0;
  }

  .nav-icon {
    display: block;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10000;
  }

  .nav-menu a {
    font-size: 1.2rem;
  }
}

/* ===================== FOOTER COUNTER ===================== */
.footer-counter {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #888;
}