body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #b5dec2;
  color: #333;
  font-size: 1.5rem;
}

#hero {
  min-width: 300px;
}

header {
  background-color: #2e7d32;
  color: white;
  padding: 2rem 1rem;
  text-align: center;
}

header h1 {
  font-size: 2.5rem;
}
header p {
  font-size: 1.2rem;
}
nav {
  display: flex;
  justify-content: center;
  background-color: #1b5e20;
}

nav a {
  color: white;
  text-decoration: none;
  margin: 0 1rem;
  padding: 1rem;
  display: inline-block;
}
nav a:hover {
  background-color: #388e3c;
}

/* liens dans les blocs */
.cta {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.75rem 1.5rem;
  background-color: #388e3c;
  color: white;
  text-decoration: none;
  border-radius: 5px;
}

footer {
  background-color: #1b5e20;
  color: white;
  text-align: center;
  padding: 1.5rem 1rem;
}


.boxe, .tete{
  padding: 1rem 1rem;
  text-align: center;
  margin: 1rem;
  background-color: #fff;
  border: 2px solid #2e7d32;
  border-radius: 15px;
  box-shadow: 0 4px 16px rgba(46,125,50,0.08);
  flex: 1;
  
}

#fondateurs, #jeu, #offre {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 2rem 0;
}

.tete a {
  color: #2e7d32;
  text-decoration: none;
}




/* Popup modal styles */
.modal-bienvenue {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  
  justify-content: flex-end; /* Align to right */
  align-items: flex-start; /* Align to top */
  
}

.modal-bienvenue.active {
      display: flex;
    }
    .modal-content-bienvenue {
      
      border-radius: 15px 0 0 15px;
      padding: 1.5rem;
      position: relative;
      max-width: 400px;
      max-height: 90vh;
      margin-top: 30px;
      margin-right: 0;
      display: flex;
      flex-direction: column;
      align-items: center;
      
    }
    .modal-bienvenue.active .modal-content-bienvenue {
      transform: translateX(0);
      opacity: 1;
    }
    .modal-content-bienvenue img {
      max-width: 100%;
      max-height: 70vh;
      border-radius: 10px;
    }
    .close-bienvenue {
      position: absolute;
      top: 10px;
      right: 20px;
      font-size: 2rem;
      color: #2e7d32;
      background: none;
      border: none;
      cursor: pointer;
      font-weight: bold;
    }


@media screen and (min-width: 801px) and (max-width: 1000px) {
  body {
  font-size:x-large;
  }
}


@media screen and (max-width: 800px) {
  body {
    font-size: 16px;
  }
  header h1 {
    font-size: 1.2rem;
  }
  nav {
    flex-direction: column;
  }
  nav a {
    padding: 0.75rem;
    margin: 0.2rem 0;
  }
 
  .modal-content-bienvenue {
    max-width: 95vw;
    padding: 1rem;
  }
}

@media screen and (max-width: 400px) {
  #hero {
    min-width: none;
  }
}