<style>
    .wpdm-packages-container { width: 100%; }
    .wpdm-packages-row { display: flex; flex-wrap: wrap; margin: -10px; }
    .wpdm-package-col { width: 33%; padding: 10px; box-sizing: border-box; } /* Ajout de box-sizing */
    .wpdm-package { border-radius: 5px; transition: transform 0.3s ease, box-shadow 0.3s ease; }
    .wpdm-pagination { margin-top: 30px; text-align: center; }
    .wpdm-pagination .page-numbers { display: inline-block; padding: 8px 14px; margin: 0 3px; border-radius: 4px; background: #f5f5f5; color: #333; text-decoration: none; transition: all 0.3s ease; }
    .wpdm-pagination .page-numbers.current { background: #9bc69f; color: white; }
    .wpdm-pagination .page-numbers:hover { background: #e0e0e0; }
    @media (max-width: 768px) {
        .wpdm-package-col { width: 100%; }
    }



/* dev_custom/custom-styles.css */
.wpdm-custom-tag {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    background-color: #f5f5f5;
    color: #222;
    border-radius: 9999px;
    font-size: 1.4rem;
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
}

.wpdm-custom-tag:hover {
    background-color: #e0f0e5;
    color: #a9807b;
}

.c21-pdf-card {
    position: relative;
    width: 100%;
    max-width: 580px;
    height: 600px;
    background: #fff;
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
  }
  
  .c21-pdf-image-wrapper {
    position: relative;
    width: 100%;
    border-radius: 0.7rem;
    overflow: visible;
    margin-bottom: 1.2rem;
    object-fit: cover;
    z-index: 1;
  }
  
  .c21-pdf-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    transition: transform 0.5s ease;
  }
  
  .c21-pdf-card:hover .c21-pdf-image-wrapper img {
    transform: scale(1.05);
  }
  
  .c21-pdf-content {
    flex-grow: 1;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
  }
  
  .c21-pdf-title {
    font-weight: 700;
    color: #333;
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
    line-height: 1.3;
  }
  
  .c21-pdf-description {
    font-weight: 400;
    color: #666;
    font-size: 1.25rem;
    line-height: 1.4;
    margin: 0;
  }
  
  .c21-pdf-tags {
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    position: relative;
    z-index: 1;
  }
  
  .c21-pdf-tags a {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    background-color: #f5f5f5;
    color: #222;
    border-radius: 9999px;
    font-size: 1.4rem;
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
    pointer-events: none; /* Désactive les interactions */
  }
  
  .c21-pdf-tags a:hover {
    background-color: #e0f0e5;
    color: #7ba97f;
  }
  
  .c21-pdf-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
    position: relative;
    z-index: 1;
  }
  
  .c21-pdf-buttons a,
  .c21-pdf-preview-button,
  .c21-pdf-visionner-button {
    flex: 1;
    border-radius: 0.7rem;
    border: none;
    padding: 0.7rem 0;
    background: #9bc69f;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 1.6rem;
    transition: all 0.2s ease;
    letter-spacing: 0.5px;
    text-align: center;
    text-decoration: none;
    display: block;
  }
  
  /* ===== Styles spécifiques au modèle custom-c21-webinaire-grid ===== */
  #c21-webinaire-pdf-card {
    height: 600px;
  }
  
  #c21-webinaire-pdf-image-wrapper {
    height: 160px;
    background: linear-gradient(rgba(155, 198, 159, 0), rgba(155, 198, 159, 0.6));
  }
  
  /* ===== Styles spécifiques au modèle custom-c21-best ===== */
  #c21-best-pdf-card {
    height: 600px;
  }
  
  #c21-best-pdf-image-wrapper {
    height: 260px;
  }
  
  #c21-best-pdf-description-container {
    position: relative;
    max-height: 31.8em; /* 4 lignes × 1.4 line-height */
    overflow: hidden;
    margin-bottom: 0.5rem;
    text-align: justify;
    margin-top: 0.5rem;
  }
  
  #c21-best-pdf-description {
    font-weight: 400;
    color: #666;
    font-size: 6.5rem;
    line-height: 1.4;
    margin: 0;
    text-align: justify;
  }
  
  /* Pseudo-élément pour ajouter les points de suspension */
  #c21-best-pdf-description-container::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    background: white;
    padding-left: 4px;
    font-weight: 400;
    color: #666;
    text-align: justify;
  }
  
  /* Effet de dégradé pour une transition plus douce */
  #c21-best-pdf-description-container::before {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 70%;
    height: 1.4em;
    background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,1) 80%);
    pointer-events: none;
  }
  
  .c21-pdf-download-preview-buttons {
    display: flex;
    gap: 0.5rem;
    width: 100%;
    font-size:1.6rem;
    
  }
  
  
  .c21-pdf-download-preview-buttons a {
    font-size:1.6rem;
  }
  
  #c21-best-pdf-preview-button {
    display: grid;
    place-content: center;
    width: 80px;
    border-radius: 0.7rem;
    border: none;
    padding: 0.7rem 0;
    background: #9bc69f;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 1.6rem;
    transition: all 0.2s ease;
    letter-spacing: 0.5px;
  }
  






</style>