/* CSS corrigé */
* { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
} 

body, html { 
  height: 100%; 
  overflow-x: hidden; /* Empêche le débordement horizontal */
} 

.main-container {
  width: 100%;
  overflow: hidden; /* Contient les éléments enfants */
}

footer { 
  margin-top: auto; 
}

/* Bloc texte + image */
.ressources-container {
  max-width: 1200px;
  width: 100%;
  margin: 100px auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.ressources-text {
  flex: 1;
  min-width: 300px; /* Évite un effondrement sur mobile */
  text-align: left;
}

.ressources-text h1 {
  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;
  min-width: 300px; /* Évite un effondrement sur mobile */
  text-align: center;
}

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

/* =======================
   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 {
    margin-top: 20px;
    flex-direction: column;
    text-align: center;
  }
  
  .ressources-text {
    text-align: center;
  }
}

.guides-section {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

/* Colonne gauche */
.guides-left {
  flex: 1;
}

.guides-left h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #000;
}

/* Colonne droite */
.guides-right {
  flex: 1;
}

.guides-right p {
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
  .guides-section {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }

  .guides-left h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }

  .guides-right p {
    font-size: 0.95rem;
  }
}

.blog-section {
  padding: 40px 20px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.blog-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center; /* Centrer au lieu de space-between */
}

.blog-card {
  flex: 1 1 300px; /* Flexibilité améliorée */
  max-width: 100%;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.12);
}

.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 10px 20px;
}

.blog-card p {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.5;
  margin: 0 20px 20px 20px;
  flex-grow: 1;
}

.read-more {
  display: inline-block;
  margin: 0 20px 20px 20px;
  color: black;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s;
}

.read-more:hover {
  color: rgb(30, 29, 29);
}

.blockchain-section {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Contenu texte */
.content {
  flex: 1;
  min-width: 300px;
}

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

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

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

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

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

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

/* Image */
.image-container {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-container img {
  width: 100%;
  max-width: 400px;
  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;
  }

  .features {
    justify-content: center;
  }
}

.ressources-section {
  width: 100%;
  padding: 40px 20px;
}

.ressources-section .ressources-container {
  padding: 0;
}