/* Reset général */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Fond personnalisé */
body {
  background-image: url('images/background.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

/* Sections principales */
.section {
  top: 100vh;
  left: 0;
  width: 100%;
  height: 100vh;
  padding: 50px;
  transition: opacity 0.8s ease, top 0.8s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  background-color: rgba(0, 0, 0, 0.85);
}

/* Titres */
h1 {
  margin-bottom: 20px;
}

h2 {
  margin-bottom: 20px;
  text-align: center;
  position: relative;
  top: auto;
}

/* Paragraphes généraux */
.logo {
  width: 100px; /* Ajuste selon tes préférences */
  height: auto;
  margin-bottom: 30px;
}

p {
  font-size: 1.1rem;
  max-width: 900px;
  margin-bottom: 20px;
  line-height: 1.6;
}

/* Boutons et liens généraux */
a.button, .button {
  display: inline-block;
  padding: 12px 30px;
  color: white;
  background-color: #27ae60;
  text-decoration: none;
  border-radius: 10px;
  transition: background-color 0.3s ease;
  font-size: 1rem;
  margin-top: 15px;
}

a.button:hover, .button:hover {
  background-color: #219150;
}

/* Section Acheter personnalisée */

.buy-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
  margin-top: 20px;
}

/* Répartition des tokens */
#repartition {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
}

.token-distribution {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 25px;
  max-width: 900px;
  margin-bottom: 30px;
}

.token-distribution div {
  background: rgba(39, 174, 96, 0.2);
  border: 1px solid rgba(39, 174, 96, 0.6);
  border-radius: 15px;
  padding: 20px;
  width: 160px;
  color: #fff;
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s, background 0.3s;
}

.token-distribution div:hover {
  transform: translateY(-5px);
  background: rgba(39, 174, 96, 0.4);
}

.token-distribution strong {
  display: block;
  font-size: 1.8rem;
  margin-bottom: 10px;
}

#repartition p {
  max-width: 700px;
  font-size: 1rem;
  line-height: 1.5;
  color: #ccc;
  margin-top: 10px;
}


/* ONG partenaires */
.ong {
  list-style: none;
  padding: 0;
  width: 60%;
  margin-top: 20px;
}

.ong li {
  background-color: rgba(255, 255, 255, 0.1);
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 8px;
}

/* Formulaire de contact corrigé */
#contact {
  text-align: center;
  padding: 40px 20px;
}

#contactForm {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 500px;
  margin: auto;
}

#contactForm input, #contactForm textarea {
  padding: 10px 15px;
  border-radius: 10px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1rem;
}

#contactForm textarea {
  resize: vertical;
  min-height: 120px;
}

#contactForm button {
  background: #27ae60;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s ease;
}

#contactForm button:hover {
  background: #229652;
}

#formStatus {
  color: #fff;
  margin-top: 15px;
}

.disclaimer {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.7);
    background-color: rgba(255, 255, 255, 0.05);
    padding: 20px;
    margin-top: 50px;
    border-radius: 10px;
    text-align: justify;
}

/* Footer amélioré */
footer {
  width: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  padding: 15px;
  color: #ffffff;
  font-size: 0.9rem;
  text-align: center;
}

footer a {
  color: #27ae60;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}



/* Pour les écrans desktop : scroll contrôlé */
@media (min-width: 1000px) {
  html, body {
    height: 100vh;
    overflow: hidden;
  }
  
  h1 {
    font-size: 3em;
  }
  
  h2 {
    font-size: 2em;
  }

  .section {
    position: absolute;
  }

  .section.active {
    opacity: 1;
    top: 0;
  }

  .section.previous {
    opacity: 0;
    top: -100vh;
  }

  footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    padding: 15px;
    color: #ffffff;
    font-size: 0.9rem;
    text-align: center;
  }
}

/* Pour les mobiles : scroll normal */
@media (max-width: 1000px) {
  html, body {
    overflow: auto !important;
    height: auto !important;
  }

  .section {
    height: auto !important;
    min-height: 100vh;
    background-color: transparent !important;
  }

  body {
    font-size: 36px;
  }

  /* Agrandir les titres */
  h1, h2, h3 {
    text-align: center;
  }

  h1 {
    font-size: 3em;
  }
  
  h2 {
    font-size: 2em;
  }

  /* Agrandir les boutons */
  a.button, button, .button {
    font-size: 1.2em;
    padding: 28px 48px;
  }

  /* Agrandir les champs de formulaire */
  form input[type="text"],
  form input[type="email"],
  form textarea {
    font-size: 2em;
    padding: 28px;
  }

  /* Mise en colonne de la répartition des tokens */
  .token-distribution {
    flex-direction: column;
    align-items: center;
  }

  .token-distribution > div {
    width: 80%;
    max-width: 600px;
    text-align: center;
    font-size: 1.1em;
    padding: 36px 48px;
  }

  .token-distribution > div > strong {
    font-size: 1.5em;
  }
}