/* =====================
   Reset & Base
===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}
body {
  font-family: 'Montserrat', sans-serif;
  color: #333;
  background: #eef2e6;
  overflow-x: hidden;
}
a {
  text-decoration: none;
  color: inherit;
}

/* =====================
   Navbar
===================== */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 50px;
  background: rgba(34, 49, 0, 0.85);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
  transition: 0.4s;
  backdrop-filter: blur(6px);
}
nav.scrolled {
  background: rgba(34, 49, 0, 0.95);
}
nav .logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  font-family: 'Lora', serif;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
}
nav ul li a {
  color: #fff;
  font-weight: 600;
  padding: 5px 0;
  position: relative;
}
nav ul li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: #ffcc00;
  transition: 0.3s;
}
nav ul li a:hover::after {
  width: 100%;
}

/* =====================
   Hero
===================== */
header {
  position: relative;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
              url('fond-header.png') no-repeat center/cover;
  overflow: hidden;
}
.hero-content {
  z-index: 2;
  color: #fff;
}
.hero-content h1 {
  font-size: 3rem;
  font-family: 'Lora', serif;
  margin-bottom: 20px;
}
.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 30px;
}
.hero-content .btn {
  background: #ffcc00;
  color: #223300;
  padding: 15px 35px;
  border-radius: 50px;
  font-weight: 700;
  transition: 0.3s;
}
.hero-content .btn:hover {
  transform: scale(1.05);
}

/* =====================
   Clouds & Fields
===================== */
.cloud {
  position: absolute;
  width: 200px;
  opacity: 0.7;
  animation: moveClouds linear infinite;
}
.cloud:nth-child(1) { top: 10%; animation-duration: 70s; }
.cloud:nth-child(2) { top: 15%; animation-duration: 80s; }
.cloud:nth-child(3) { top: 25%; animation-duration: 100s; }
.cloud:nth-child(4) { top: 5%;  animation-duration: 90s; }
@keyframes moveClouds { 0% { left: -250px; } 100% { left: 100%; } }

.field {
  position: absolute;
  bottom: 0;
  width: 200%;
  height: 200px;
  background: linear-gradient(#4d7c0f, #9bc53d);
  animation: moveFields 30s linear infinite;
  z-index: -1;
}
@keyframes moveFields { 0%, 100% { left: 0; } 50% { left: -50px; } }

.vehicle-container {
  position: absolute;
  bottom: 20px;
  width: 100%;
  height: 200px;
  overflow: hidden;
}
.vehicle {
  position: absolute;
  bottom: 0;
  width: 120px;
  animation: driveVehicle linear infinite;
}
.vehicle.tractor { animation-duration: 20s; }
.vehicle.harvester { animation-duration: 25s; }
@keyframes driveVehicle { 0% { left: -150px; } 100% { left: 100%; } }

/* =====================
   Sections
===================== */
section {
  padding: 80px 20px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease;
}
section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =====================
   Features
===================== */
.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  text-align: center;
}
.feature {
  flex: 1 1 280px;
  background: #fff;
  padding: 30px;
  border-radius: 25px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  transition: 0.3s;
}
.feature:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}
.feature h2 {
  margin-bottom: 15px;
  color: #336600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.feature img { width: 50px; height: 50px; }

/* =====================
   Community
===================== */
.community {
  padding: 80px 20px;
  text-align: center;
}
.community h2 {
  font-size: 2.8rem;
  margin-bottom: 25px;
  color: #223300;
}
.community p {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 50px;
  color: #555;
}
.community-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}
.card {
  flex: 1 1 320px;
  background: #fff;
  border-radius: 25px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  padding: 30px 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
}
.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}
.card h3 {
  font-size: 1.6rem;
  color: #336600;
  margin-bottom: 15px;
}
.card p { font-size: 1rem; color: #555; margin-bottom: 20px; }
.card ul { list-style: none; padding-left: 15px; margin-bottom: 20px; }
.card ul li { margin-bottom: 10px; font-size: 0.95rem; }
.card .btn {
  display: inline-block;
  padding: 10px 25px;
  border-radius: 25px;
  background: #28a745;
  color: #fff;
  font-weight: 600;
  transition: 0.3s;
}
.card .btn:hover { background: #218838; }

/* Wrapper pour rendre l'iframe responsive */
.discord-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 105%; /* ratio approximatif 350/370 */
  height: 0;
  margin-bottom: 15px;
}
.discord-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}


/* =====================
   Recruitment
===================== */
.recruitment-block {
  padding: 80px 20px;
  text-align: center;
  background: #fff;
  border-radius: 25px;
  margin: 50px auto;
  max-width: 1200px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}
.recruitment-block h1 { font-size: 2.8rem; color: #223300; margin-bottom: 20px; font-family:'Lora', serif; }
.recruitment-block p { font-size: 1.1rem; max-width: 900px; margin: 0 auto 30px; color: #555; line-height: 1.6; }
.recruitment-block h2 { font-size: 2rem; color: #336600; margin: 40px 0 20px; }
.recruitment-block .cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
}
.recruitment-block .cards .card {
  flex: 1 1 280px;
  background: #f9f9f9;
  border-radius: 25px;
  padding: 25px 20px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
}
.recruitment-block .cards .card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}
.recruitment-block .cards .card h3 {
  font-size: 1.4rem;
  color: #336600;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.recruitment-block .cards .card ul li { font-size: 0.95rem; margin-bottom: 10px; }
.recruitment-block .btn {
  display: inline-block;
  margin-top: 30px;
  padding: 15px 35px;
  background: #28a745;
  color: #fff;
  font-weight: 600;
  border-radius: 50px;
  transition: 0.3s;
}
.recruitment-block .btn:hover { background: #218838; transform: scale(1.05); }

/* =====================
   Contact & Footer
===================== */
#contact {
  text-align: center;
  padding: 60px 20px;
}
#contact h2 { font-size: 2.5rem; margin-bottom: 20px; color: #336600; }
#contact p { margin-bottom: 15px; }
#contact a { color: #228B22; font-weight: 600; }

footer {
  text-align: center;
  padding: 30px;
  background: #223300;
  color: #fff;
  border-top: 5px solid #ffcc00;
}

/* =====================
   Animations
===================== */
@keyframes fadeInDown { 0% { opacity: 0; transform: translateY(-20px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { 0% { opacity: 0; transform: translateY(20px); } 100% { opacity: 1; transform: translateY(0); } }

/* =====================
   Responsive
===================== */
@media(max-width: 1024px) {
  header h1 { font-size: 2.5rem; }
  .hero-content p { font-size: 1.1rem; }
}

@media(max-width: 768px) {
  nav { flex-direction: column; padding: 15px 20px; }
  nav ul { flex-direction: column; margin-top: 10px; gap: 8px; }
  header h1 { font-size: 2.2rem; }
  .hero-content p { font-size: 1rem; }
  .features, .community-cards, .recruitment-block .cards { flex-direction: column; align-items: center; gap: 20px; }
  .feature, .card, .recruitment-block .cards .card { width: 90%; flex: none; }
  .recruitment-block h1 { font-size: 2.2rem; }
  .recruitment-block h2 { font-size: 1.6rem; }
}

@media(max-width: 480px) {
  header h1 { font-size: 1.8rem; }
  .hero-content p { font-size: 0.95rem; }
  .recruitment-block p, .community p { font-size: 1rem; }
  nav .logo { font-size: 1.5rem; }
}
