html, body {
  margin: 0;
  padding: 0;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  background-image: url("../img/web_bg.png");
  background-size: cover;
  background-position: bottom center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  min-height: 100vh;
  padding-bottom: 0;
}

/* LAYOUT */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 40px 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.branding {
  text-align: center;
}

.logo {
  margin-bottom: 20px;
}

h1 {
  font-size: 30px;
  line-height: 1.2;
  text-transform: uppercase;
}

/* MENU */
.menu {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 40px;
}

.menu-item-wrapper {
  position: relative;
}

.menu a,
.menu .menu-item {
  background: #0b6623;
  color: #ffd700;
  text-decoration: none;
  padding: 14px 40px;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  min-width: 280px;
  display: block;

  opacity: 0;
  transform: translateY(15px);
  animation: cascade 0.5s ease forwards;
}

.menu-item-wrapper:nth-child(1) .menu-item { animation-delay: 0.1s; }
.menu a:nth-child(2) { animation-delay: 0.2s; }
.menu a:nth-child(3) { animation-delay: 0.3s; }
.menu a:nth-child(4) { animation-delay: 0.4s; }
.menu a:nth-child(5) { animation-delay: 0.5s; }
.menu a:nth-child(6) { animation-delay: 0.6s; }

/* Submenu styles */
.submenu {
  display: none;
  flex-direction: column;
  gap: 2px;
  margin-top: 2px;
  margin-left: 30px;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease, max-height 0.3s ease;
}

.menu-item-wrapper.active .submenu {
  display: flex;
  opacity: 1;
  max-height: 200px;
  transform: translateY(0);
}

.menu-item .arrow {
  font-size: 12px;
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.submenu a {
  background: #0a5a1f;
  color: #ffd700;
  text-decoration: none;
  padding: 12px 40px 12px 30px;
  text-align: left;
  font-size: 16px;
  font-weight: 700;
  min-width: 250px;
  opacity: 1;
  transform: none;
  animation: none;
  transition: background 0.2s ease;
  position: relative;
}

.submenu a::before {
  content: "▸";
  position: absolute;
  left: 15px;
  color: #ffd700;
}

.submenu a:hover {
  background: #084a19;
}

@keyframes cascade {
  to { opacity: 1; transform: translateY(0); }
}

.banner-container {
    text-align: center;
    max-width: 800px;
    padding: 20px;
}

.title {
  font-family: "Roboto Slab", "Georgia", serif;
  font-weight: 700;
  font-size: 32px;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* The Tricolor Bar */
.tricolor-bar {
    height: 12px;
    width: 70%;
    margin: 15px auto;
    display: flex;
}

.blue { background-color: #002B7F; flex: 1; }
.yellow { background-color: #FCD116; flex: 1; }
.red { background-color: #CE1126; flex: 1; }

.slogan {
  font-family: "Roboto Slab", "Georgia", serif;
  font-weight: 700;
  font-style: italic;
  font-size: 24px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* VIDEO SECTION */
.video-section {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.video-container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  background: white;
  padding: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  box-sizing: border-box;
}

.video-container video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

/* CTA SECTION */
.cta-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 40px 200px;
  text-align: center;
}

.cta-title {
  font-family: "Roboto Slab", "Georgia", serif;
  font-weight: 700;
  font-size: 36px;
  color: #000;
  margin-bottom: 30px;
  text-transform: uppercase;
  line-height: 1.3;
}

.cta-text {
  font-family: "Roboto Slab", "Georgia", serif;
  font-weight: 400;
  font-size: 22px;
  color: #000;
  margin: 20px auto;
  max-width: 1000px;
  line-height: 1.4;
}

.cta-button {
  display: inline-block;
  background: #0b6623;
  color: #ffd700;
  text-decoration: none;
  padding: 20px 60px;
  font-family: "Roboto Slab", "Georgia", serif;
  font-size: 28px;
  font-weight: 700;
  text-transform: uppercase;
  margin: 40px 0;
  border-radius: 50px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.cta-footer {
  font-family: "Roboto Slab", "Georgia", serif;
  font-weight: 700;
  font-size: 24px;
  color: #000;
  margin-top: 40px;
  text-transform: uppercase;
}

/* CONTENT SECTION (for statut and program politic pages) */
.content-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 40px 200px;
}

.content-container {
  background: rgba(255, 255, 255, 0.95);
  padding: 50px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.content-container h1 {
  font-family: "Roboto Slab", "Georgia", serif;
  font-weight: 700;
  font-size: 36px;
  color: #0b6623;
  margin-bottom: 30px;
  text-align: center;
  text-transform: uppercase;
}

.content-container h2 {
  font-family: "Roboto Slab", "Georgia", serif;
  font-weight: 700;
  font-size: 28px;
  color: #0b6623;
  margin-top: 40px;
  margin-bottom: 20px;
  border-bottom: 3px solid #ffd700;
  padding-bottom: 10px;
}

.content-container h3 {
  font-family: "Roboto Slab", "Georgia", serif;
  font-weight: 700;
  font-size: 20px;
  color: #000;
  margin-top: 25px;
  margin-bottom: 15px;
}

.content-container p {
  font-family: "Roboto Slab", "Georgia", serif;
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  margin-bottom: 15px;
  text-align: justify;
}

.content-container .subtitle {
  text-align: center;
  font-size: 20px;
  color: #0b6623;
  margin-bottom: 30px;
}

.content-container .intro {
  font-size: 18px;
  background: #f5f5f5;
  padding: 20px;
  border-left: 4px solid #0b6623;
  margin-bottom: 30px;
}

.back-link {
  text-align: center;
  margin-top: 50px;
}

.back-link a {
  display: inline-block;
  background: #0b6623;
  color: #ffd700;
  text-decoration: none;
  padding: 15px 40px;
  font-family: "Roboto Slab", "Georgia", serif;
  font-size: 18px;
  font-weight: 700;
  border-radius: 50px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.back-link a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* MEMBERSHIP FORM STYLES */
.form-container {
  max-width: 900px;
  margin: 0 auto;
}

.form-intro {
  text-align: center;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 40px;
  padding: 20px;
  background: #f5f5f5;
  border-left: 4px solid #0b6623;
}

.download-section {
  text-align: center;
  margin: 40px 0;
}

.download-button {
  display: inline-block;
  background: #0b6623;
  color: #ffd700;
  text-decoration: none;
  padding: 25px 50px;
  font-family: "Roboto Slab", "Georgia", serif;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  line-height: 1.4;
  border-radius: 15px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.download-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.form-subtext {
  text-align: center;
  font-size: 16px;
  margin: 40px 0 30px;
}

.membership-form {
  max-width: 700px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  font-family: "Roboto Slab", "Georgia", serif;
  font-weight: 700;
  font-size: 14px;
  color: #000;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.form-group input {
  width: 100%;
  padding: 15px;
  font-family: "Roboto Slab", "Georgia", serif;
  font-size: 16px;
  border: 3px solid #000;
  border-radius: 10px;
  box-sizing: border-box;
  background: #fff;
}

.form-group input:focus {
  outline: none;
  border-color: #0b6623;
}

.form-submit {
  text-align: center;
  margin-top: 40px;
}

.submit-button {
  background: #0b6623;
  color: #ffd700;
  border: none;
  padding: 20px 60px;
  font-family: "Roboto Slab", "Georgia", serif;
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.submit-note {
  font-family: "Roboto Slab", "Georgia", serif;
  font-size: 12px;
  color: #666;
  margin-top: 15px;
  line-height: 1.4;
}

/* CONTACT PAGE STYLES */
.contact-container {
  max-width: 800px;
  margin: 0 auto;
}

.contact-info {
  padding: 40px 0;
}

.contact-section {
  margin-bottom: 40px;
}

.contact-section h2 {
  font-family: "Roboto Slab", "Georgia", serif;
  font-weight: 700;
  font-size: 32px;
  color: #000;
  margin-bottom: 15px;
  text-transform: uppercase;
  border-bottom: none;
}

.contact-section p {
  font-family: "Roboto Slab", "Georgia", serif;
  font-size: 24px;
  line-height: 1.6;
  margin: 10px 0;
  text-align: left;
}

.contact-section a {
  color: #000;
  text-decoration: none;
  transition: color 0.2s;
}

.contact-section a:hover {
  color: #0b6623;
}

.social-media {
  display: flex;
  gap: 30px;
  margin-top: 40px;
  align-items: center;
}

.social-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.social-icon:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.social-icon.facebook {
  background: #1877F2;
}

.social-icon.tiktok {
  background: #000;
}

/* FOOTER STYLES */
.footer {
  background: url("../img/web_bg.png") center bottom;
  background-size: cover;
  padding: 40px 20px;
  text-align: center;
  margin-top: 80px;
}

.footer-links {
  display: flex;
  justify-content: left;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  padding-left: 20px;
}

.footer-links a {
  font-family: "Roboto Slab", "Georgia", serif;
  font-size: 16px;
  font-weight: 700;
  color: #000;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s;
  color: white;
}

.footer-links a:hover {
  color: white;
}

@media (max-width: 900px) {
    body {
      background-image: url("../img/mobile_bg.png");
      background-repeat: no-repeat;
      background-position: bottom center;
      background-size: contain;
      background-color: #e5d8cf;
    }

      .container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 60px 10px 20px;
        box-sizing: border-box;
      }

      .menu {
        width: 100%;
        display: flex;
        flex-direction: column;
      }

      .menu-item-wrapper {
        width: 100%;
      }

      .menu a,
      .menu .menu-item {
        width: 100%;
        box-sizing: border-box;
      }
      
      .submenu {
        margin-left: 20px;
      }
      
      .submenu a {
        width: calc(100% - 20px);
        box-sizing: border-box;
        min-width: auto;
      }

      .tricolor {
        margin-left: auto;
        margin-right: auto;
      }

      .logo {
        width: 130px;
      }

      .title { font-size: 1.8rem; }
      .slogan { font-size: 1.4rem; }
      .tricolor-bar { width: 90%; }

      .video-section {
        width: 100%;
        padding: 40px 15px 20px;
        box-sizing: border-box;
      }

      .video-title {
        font-size: 20px;
        padding: 0 10px;
        width: 100%;
        box-sizing: border-box;
      }

      .video-container {
        width: 100%;
        padding: 10px;
        box-sizing: border-box;
      }
      
      .cta-section {
        padding: 40px 15px 120px;
      }
      
      .cta-title {
        font-size: 22px;
        padding: 0 10px;
      }
      
      .cta-text {
        font-size: 16px;
        padding: 0 10px;
      }
      
      .cta-button {
        font-size: 20px;
        padding: 16px 40px;
        margin: 30px 0;
      }
      
      .cta-footer {
        font-size: 18px;
        padding: 0 10px;
      }
      
      .content-section {
        padding: 20px 15px 120px;
      }
      
      .content-container {
        padding: 25px;
      }
      
      .content-container h1 {
        font-size: 24px;
      }
      
      .content-container h2 {
        font-size: 20px;
      }
      
      .content-container h3 {
        font-size: 18px;
      }
      
      .content-container p {
        font-size: 15px;
        text-align: left;
      }
      
      .content-container .subtitle {
        font-size: 16px;
      }
      
      .content-container .intro {
        font-size: 16px;
        padding: 15px;
      }
      
      .form-intro {
        font-size: 14px;
        padding: 15px;
      }
      
      .download-button {
        font-size: 18px;
        padding: 20px 30px;
      }
      
      .form-subtext {
        font-size: 14px;
        padding: 0 10px;
      }
      
      .form-group input {
        padding: 12px;
        font-size: 14px;
      }
      
      .submit-button {
        font-size: 18px;
        padding: 16px 40px;
      }
      
      .submit-note {
        font-size: 11px;
        padding: 0 10px;
      }
      
      .contact-section h2 {
        font-size: 24px;
      }
      
      .contact-section p {
        font-size: 18px;
      }
      
      .social-icon {
        width: 60px;
        height: 60px;
        font-size: 30px;
      }
      
      .footer {
        padding: 30px 15px;
        margin-top: 60px;
      }
      
      .footer-links {
        flex-direction: column;
        gap: 20px;
        color: white;
      }
      
      .footer-links a {
        font-size: 14px;
        color: white;
      }
    }
}