 /* Related articles */
.related-articles {
    background: #f1f1f1;
    padding: 20px;
    margin-top: 20px;
    border-top: 1px solid #ccc;
    border-radius: 8px;
    display: block !important;

    flex-wrap: wrap;
    align-items: center;}
    .articles-grid {
      display: flex !important;
      flex-wrap: wrap !important;
      gap: 20px !important;
      margin-top: 20px !important;
    }
    
    .article-card {
      flex: 1 !important;
      min-width: 300px !important;
      border-radius: var(--border-radius) !important;
      overflow: hidden !important;
      box-shadow: var(--box-shadow) !important;
      background-color: white !important;
      transition: var(--transition) !important;
    }
    
    .article-card:hover {
      transform: translateY(-10px);
      box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    }
    
    .article-image {
      height: 200px;
      overflow: hidden;
    }
    
    .article-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: var(--transition);
    }
    
    .article-card:hover .article-image img {
      transform: scale(1.1);
    }
    
    .article-content {
      padding: 20px !important;
    }
    
    .article-content h3 {
      margin-top: 0;
      color: var(--primary-color);
    }
.slide-content {
    position: relative;
    z-index: 1;
    color: white;
    padding: 50px 0 !important;
    padding-top: 20% !important;
    padding-left: 4% !important;
    padding-bottom: 1% !important;
}

.slide-content h1 {
    font-size: clamp(2.5rem, 6vw, 2rem) !important; /* Force la taille sur le hero */
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);}
.kbd {
            background: rgb(151 17 226 / 13%);
            padding: 0.3rem 0.8rem;
            border-radius: 8px;
            border: 1px solid rgba(255, 255, 255, 0.3);
            backdrop-filter: blur(10px);
        }
 @media (max-width: 768px) {
  .articles-grid {
    flex-direction: column;
    gap: 15px !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  .article-card {
    min-width: auto !important;
    width: 100% !important;
  }

  body {
    overflow-x: hidden; /* évite le scroll horizontal */
  }
}