/* --- RESET --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
  
    padding-top: 80px; /* Décalage égal à la hauteur du header */

} 

.hero {
  position: relative;
  background-size: cover;
  margin-top: 100px;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
 
}


    .hero-content {
      position: relative;
      z-index: 2;
      color: #000000;
      max-width: 700px;
      animation: fadeIn 1.5s ease-in-out;
    }

    .hero h1 {
      font-size: 2.8rem;
      line-height: 1.3;
      margin-bottom: 15px;
      color: #000000;
    }



    .hero p {
      font-size: 1.1rem;
      margin-bottom: 20px;
      opacity: 0.9;
    }

    .btn-group {
      display: flex;
      gap: 15px;
      justify-content: center;
      flex-wrap: wrap;
    }

    .btn-primary {
      padding: 12px 24px;
      border-radius: 6px;
      font-size: 16px;
      text-decoration: none;
      transition: all 0.3s ease;
      font-weight: 500;
    }

    .btn-primary {
      background-color: #2ded80;
      color: #ffffff;
    }

    .btn-primary:hover {
      background-color: #7bfa96;
      transform: translateY(-2px);
    }
 /* ----------------------
       RESPONSIVE DESIGN
    ------------------------ */
    @media screen and (max-width: 768px) {
      .hero h1 {
        font-size: 2.2rem;
      }

      .hero p {
        font-size: 1rem;
      }

      .btn-group {
        flex-direction: column;
        align-items: center;
      }
      
      .btn-primary {
        width: 200px;
      }
    }

/* Bloc texte + image */
.ressources-container {
  max-width: 1200px;
  margin: 80px auto; /* <-- ajoute de l’espace en haut ET en bas */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}


.ressources-text {
  flex: 1;
  text-align: left;
}

.ressources-text .category {
  font-size: 0.9rem;
  color: black;
  display: block;
  margin-bottom: 10px;
}

.ressources-text h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #111;
}

.ressources-text p {
  font-size: 1rem;
  color: #444;
  line-height: 1.6;
  margin-bottom: 20px;
}

.ressources-image {
  flex: 1;
  text-align: center;
}

.ressources-image img {
  max-width: 100%;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid #20ff76;
  color: black;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 600;
}

/* =======================
   Animations au scroll
======================= */
.hidden-left, .hidden-right {
  opacity: 0;
  transform: translateX(0);
  transition: opacity 1s ease, transform 1s ease;
}

.hidden-left {
  transform: translateX(-100px);
}

.hidden-right {
  transform: translateX(100px);
}

.show {
  opacity: 1;
  transform: translateX(0);
}

/* =======================
   Responsive
======================= */
@media (max-width: 992px) {

  .ressources-container {
    flex-direction: column;
    text-align: center;
  }
  .ressources-text {
    text-align: center;
  }
}

.blockchain-section {
    max-width: 1200px;
    margin: 10px auto;   /* marge identique aux autres sections */
    padding: 60px 20px;  /* espace interne haut/bas */
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    border-radius: 16px; /* pour matcher avec les autres */
}


/* Contenu texte */
.content {
    flex: 1;
    max-width: 1200px;
    margin-left: 1%; /* pousse le texte un peu vers la droite */
}

h1 {
    font-size: 28px;
    line-height: 1.3;
    margin-bottom: 16px;
    color: #111;
}

.description {
    font-size: 16px;
    color: #555;
    margin-bottom: 25px;
}

/* Features */
.features {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.feature {
    flex: 1;
    min-width: 200px;
}

.feature h3 {
    font-size: 18px;
    color: #111;
    margin-bottom: 6px;
}

.feature p {
    font-size: 15px;
    color: #333;
}

/* Image */
.image-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-container img {
    width: 100%;
    max-width: 700px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s ease;
}

.image-container img:hover {
    transform: scale(1.05);
}

/* Responsive Design */
@media screen and (max-width: 992px) {
    .blockchain-section {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
        gap: 30px;
    }

    .content {
        margin-left: 0; /* remet au centre sur mobile */
    }

    .features {
        justify-content: center;
    }

    .image-container img {
        width: 400px;
    }
}

@media screen and (max-width: 600px) {
    h1 {
        font-size: 22px;
    }

    .description {
        font-size: 14px;
    }

    .feature h3 {
        font-size: 16px;
    }

    .feature p {
        font-size: 13px;
    }
}