:root {
    --green-dark: #355E3B;
    --green-darkdark: #003300;      
    --green-light: #6DA34D;
    --yellow-light: #FFEEAC;
    --text-dark: #1A310B;
  }
  
  
  
  body {
    margin: 0;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background: #f9f9f9;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #FCF2E4;
  }
  
  /* === NAV PRINCIPAL === */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--green-dark);
  z-index: 1000;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  padding: 10px 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

nav ul {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

nav li {
  position: relative;
  list-style: none;
}

nav > ul > li > a {
  color: white;
  text-decoration: none;
  padding: 15px 20px;
  display: inline-block; /* Garde le menu principal en ligne */
  transition: background 0.3s, transform 0.2s, color 0.2s;
}

nav > ul > li > a:hover {
  background: #233F27;
}

nav > ul > li.current-menu-item > a,
nav > ul > li.current_page_item > a {
  background: var(--yellow-light);
  color: var(--green-dark);
  border-radius: 4px;
}

/* === SOUS-MENU === */
nav li ul.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--green-dark);
  display: none;
  flex-direction: column;
  min-width: 200px;
  padding: 0;
  margin: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

nav li:hover > ul.sub-menu {
  display: flex;
}

nav li ul.sub-menu li {
  width: 100%;
}

nav li ul.sub-menu li a {
  color: white;
  text-decoration: none;
  padding: 12px 20px;
  display: block; /* Sous-menu = bloc vertical */
  width: 100%;
  box-sizing: border-box;
  transition: background 0.3s, color 0.2s;
}

nav li ul.sub-menu li a:hover {
  background: #233F27;
  color: white;
}

nav li ul.sub-menu li.current-menu-item > a,
nav li ul.sub-menu li.current_page_item > a {
  background: var(--yellow-light);
  color: var(--green-dark);
}

/* NAV Desktop : inchangé */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--green-dark);
  z-index: 1000;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  padding: 10px 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.site-nav ul {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav li {
  position: relative;
}

.site-nav > ul > li > a {
  color: white;
  text-decoration: none;
  padding: 15px 20px;
  display: inline-block;
}

.site-nav > ul > li > a:hover {
  background: #233F27;
}

.site-nav li.current-menu-item > a,
.site-nav li.current_page_item > a {
  background: var(--yellow-light);
  color: var(--green-dark);
  border-radius: 4px;
}

/* Sous-menu : inchangé */
.site-nav li ul.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--green-dark);
  display: none;
  flex-direction: column;
  min-width: 200px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.site-nav li:hover > ul.sub-menu {
  display: flex;
}

.site-nav li ul.sub-menu li a {
  display: block;
  padding: 12px 20px;
  color: white;
}

.site-nav li ul.sub-menu li a:hover {
  background: #233F27;
}

/* === Burger Button === */
#menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 2em;
  margin-right: auto;
  margin-left: 20px;
  cursor: pointer;
}

/* === Mobile === */
@media (max-width: 768px) {
  .site-nav {
    flex-direction: column;
    align-items: flex-start;
  }

  #menu-toggle {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    width: 100%;
    display: none; /* Masqué par défaut sur mobile */
  }

  .site-nav ul.open {
    display: flex; /* Affiché quand actif */
  }

  .site-nav > ul > li > a {
    width: 100%;
    padding: 15px 20px;
    display: block;
  }

  .site-nav li ul.sub-menu {
    position: static;
    box-shadow: none;
    background: var(--green-dark);
    display: none;
  }

  .site-nav li.open > ul.sub-menu {
    display: block;
  }
}


  
  /* HEADER */
  header {
      position: relative;
      height: 100vh;
      overflow: hidden;
      color: white;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: 0 20px; /* Ajout de padding pour les petits écrans */
    }
  
    .video-background {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      overflow: hidden;
      z-index: 1;
    }
  
    .video-background video {
      width: 100%;
      height: 100%;
      object-fit: cover; /* Assure que la vidéo recouvre toute la zone */
    }
  
    /* Overlay avec opacité */
    .video-overlay {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.4);  /* Couleur noire avec opacité 40% */
      z-index: 2;  /* Assure que l'overlay est au-dessus de la vidéo */
    }
  
    /* Contenu du header */
    .header-content {
      position: relative;
      z-index: 3; /* S'assure que le texte est au-dessus de l'overlay */
      max-width: 90%; /* Limite la largeur du contenu pour ne pas être trop large sur grands écrans */
    }
  
    .header-content img {
      width : 380px;
      margin-bottom: 50px;
      transition: transform 0.3s ease;
      max-width: 100%; /* Assure que l'image ne dépasse pas la largeur de son conteneur */
    }
  
    .header-content img:hover {
      transform: scale(1.03) rotate(0deg); /* Correction de la rotation à 0 pour éviter des rotations inutiles */
    }
  
    header h1 {
      margin: 0;
      font-size: 2.8em;
      text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    }
  
    header p {
      margin: 5px 0;
      font-size: 1.2em;
      text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
      color: white;
    }
  
    header .stats {
      font-weight: bold;
      margin-top: 10px;
      font-size: 1.1em;
      text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    }

    .animation-section {
      margin: 80px 0; /* ou plus selon ta maquette */
    }
    
    .tracteur-wrapper {
      position: relative;
      height: 200px; /* hauteur de la ligne de tracteur */
      overflow: hidden;
    }

    #tracteur {
      position: fixed;
      bottom: 0;
      left: -200px;     /* départ hors écran */
      width: 150px;
      z-index: 999;     /* au-dessus du contenu */
      pointer-events: none; /* pour éviter les clics involontaires */
    }
    
    

    .inner-page-header {
      position: relative;
      background-image: url('../img/inner-header.jpg');
      background-size: cover;
      background-position: center;
      background-attachment: fixed; /* effet fixe */
      height: 300px; /* hauteur réduite */
      display: flex;
      align-items: center;
      justify-content: center;
    }
    
    .inner-page-header .header-overlay {
      background-color: rgba(0, 0, 0, 0.5); /* overlay sombre si besoin */
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    
    .inner-page-header .header-content {
      text-align: center;
      color: #fff;
    }
    
    .inner-page-header h1 {
      font-size: 2.5rem;
      margin: 0;
    }

    
  /* Style du bouton d'inscription à la newsletter */
  .newsletter-signup {
    margin-top: 20px; /* Espacement entre les éléments */
  }
  
  .newsletter-signup button {
    padding: 10px 20px;
    background-color: #355E3B; /* Vert foncé */
    border: white 2px solid;
    color: white;
    border-radius: 4px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s;
  }
  
  .newsletter-signup button:hover {
    background-color: #2c4d2f; /* Couleur plus foncée au survol */
  }
  
  @media (max-width: 768px) {
    header h1 {
      font-size: 2em;
    }
    .wheat-image {
      height: 600px; 
      margin: 20px 0; 
    }
  
  }
  
  .container {
    flex: 1;
    max-width: 1000px;
    margin: 20px auto;
    padding: 0 20px;
  }
  
  h2 {
    color: var(--green-dark);
  }
  
  
  /* Section évènements PRO */
  
  .events-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
  }
  
  .event-card {
    background: #ffffff;
    border-left: 8px solid var(--green-dark);
    border-radius: 8px;
    padding: 20px 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  }
  
  .event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-left-color: var(--green-light);
  }
  
  .event-card h3 {
    margin: 0 0 10px;
    color: var(--green-dark);
    font-size: 1.4em;
  }
  
  .event-card .date {
    font-weight: bold;
    color: var(--green-light);
    margin: 0 0 10px;
  }
  
  .event-card p {
    margin: 0;
  }
  
  @media (max-width: 600px) {
    .event-card {
      padding: 20px;
    }
  }
  
  
  .section {
    padding: 40px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  
  .section.visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* Image de blé allongé entre les sections */
  .wheat-image {
    width: 100%;
    height: 60px; /* Ajustez la hauteur selon vos préférences */
    background-position: center;
    background-size: contain; /* Ajuste l'image pour qu'elle soit contenue dans la zone */
    background-repeat: no-repeat;
    margin: 40px 0; /* Espace entre les sections */
  }
  
  /* Processus */
  .process {
    text-align: center;
  }
  
  .stats-section {
    text-align: center;
    background: none;
    border-radius: 8px;
  }
  
  .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    margin-top: 30px;
  }
  
  .stat-item {
    background: #ffffff;
    border-radius: 8px;
    padding: 30px 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  }
  
  .stat-number {
    font-size: 2em;
    font-weight: bold;
    color: var(--green-dark);
  }
  
  .stat-label {
    margin-top: 10px;
    font-size: 1em;
    color: var(--text-dark);
  }
  
  .adoptants-section {
      background-color: #fff;
      padding: 40px 20px;
      text-align: center;
      margin-bottom: 40px;
      border-radius: 8px;
      box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
    }
  
    .adoptants-content {
      max-width: 800px;
      margin: 0 auto;
    }
  
    .adoptants-image {
      width: 400px;
      height: auto;
      border-radius: 8px;
      margin-bottom: 20px;
    }
  
    h2 {
      color: var(--green-dark);
      font-size: 2em;
      margin: 20px 0;
      font-weight: bold;
    }
  
    p {
      color: #333;
      font-size: 1.1em;
      line-height: 1.6;
    }
  
    /* Responsive Design */
    @media (max-width: 768px) {
      .adoptants-content {
        padding: 0 15px;
      }
  
      h2 {
        font-size: 1.8em;
      }
  
      p {
        font-size: 1em;
      }
      .adoptants-image {
      width: 85%;
  
      }
    }
  
  
  .timeline {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-top: 40px;
    position: relative;
  }
  
  .timeline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 5%;
    right: 5%;
    height: 4px;
    background: var(--green-dark);
    z-index: 1;
  }
  
  .timeline-step {
    background: #ffffff;
    border-radius: 8px;
    padding: 30px 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    position: relative;
    flex: 1 1 250px;
    z-index: 2;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .timeline-step:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  }
  
  .icon-circle {
    width: 60px;
    height: 60px;
    background: var(--green-dark);
    color: var(--yellow-light);
    font-size: 1.8em;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 15px auto;
    transition: transform 0.3s ease;
  }
  
  .timeline-step:hover .icon-circle {
    transform: rotate(10deg) scale(1.1);
  }
  
  .timeline-step h3 {
    color: var(--green-dark);
    margin-top: 10px;
  }
  
  .timeline-step p {
    margin: 10px 0 0 0;
  }
  
  
  
  
  @media (max-width: 900px) {
    .timeline {
      flex-direction: column;
      align-items: center;
    }
  
    .timeline::before {
      top: 0;
      left: 50%;
      height: 100%;
      width: 4px;
    }
  
    .timeline-step {
      text-align: center;
      margin: 20px 0;
    }
  }
  
  .tractor-image {
    width: auto; /* Laisser la largeur automatique pour garder le ratio */
    height: 220px; /* Hauteur de l'image fixée à 150px */
    background-image: url('../img/tracteur.png'); /* Chemin vers l'image */
    background-size: contain; /* Assure que l'image garde son ratio sans déformation */
    background-repeat: no-repeat;
    background-position: left bottom; /* Positionne l'image en bas à gauche */
    margin-top: 40px; /* Espace entre le contenu précédent et l'image */
    margin-bottom:5px; /* Espace entre l'image et le footer */
  }
  
  /* Adaptation de l'image pour les écrans mobiles */
  @media (max-width: 768px) {
    .tractor-image {
      width: auto; /* Garde le ratio de l'image intact */
      height: 150px; /* Hauteur fixe pour l'image */
      background-position: center bottom; /* Centre l'image horizontalement */
      margin-top: 20px; /* Moins d'espace au-dessus sur mobile */
      margin-bottom: 5px; /* Moins d'espace en dessous sur mobile */
    }
  }
  
  footer {
    background: var(--green-darkdark);
    color: white;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 30px 20px;
  }
  
  .footer-logo {
    flex: 1 1 200px;
    margin-bottom: 20px;
  }
  
  .footer-logo img {
    height: 180px;
  }
  
  .footer-links,
  .footer-contact,
  .footer-social {
    flex: 1 1 200px;
    margin-bottom: 20px;
  }
  
  .footer-links a,
  .footer-contact p,
  .footer-social a {
    display: block;
    color: white;
    text-decoration: none;
    margin: 5px 0;
    font-size: 0.95em;
  }
  
  .footer-links a:hover,
  .footer-social a:hover {
    text-decoration: underline;
  }

  .footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .footer-links li {
    margin: 5px 0;
  }
  
  .footer-links a {
    color: white;
    text-decoration: none;
  }
  
  .footer-links a:hover {
    text-decoration: underline;
  }
  
  
  .footer-social {
    text-align: right;
  }
  
  .footer-social a {
    display: inline-block;
    margin-right: 10px;
  }
  
  .footer-bottom {
    width: 100%;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 15px;
    font-size: 0.85em;
  }
  
  @media (max-width: 768px) {
    footer {
      flex-direction: column;
      text-align: center;
    }
  
    .footer-social {
      text-align: center;
    }
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  @keyframes fadeZoom {
    to {
      opacity: 1;
      transform: scale(1);
    }
  }
  
  @keyframes fadeUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }