/* Scroll horizontal desktop / tablette */
.dashboard-cards-horizontal {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 8px 16px;
    scroll-snap-type: x mandatory;
  }
  
  .recent-card {
    flex: 0 0 auto;
    width: 140px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.2s;
    scroll-snap-align: start;
  }
  
  /* ======= RESPONSIVE MOBILE ======= */
  @media (max-width: 768px) {
    .dashboard-cards-horizontal {
      display: grid !important;                  /* grid au lieu de flex */
      gap: 12px;
      overflow-x: visible !important;            /* plus de scroll horizontal */
      padding: 8px 0;
      scroll-snap-type: none !important;         /* désactive snap */
    }
  
    .recent-card {
      width: 100% !important;                    /* prend toute la largeur de sa cellule */
      scroll-snap-align: none !important;        /* pas de snap */
    }

    .recent-image img {
      height: 100%!important;
    }
  }
  
  .recent-card:hover {
    transform: translateY(-4px);
  }
  
  .recent-image img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
  }
  
  .recent-title h4 {
    font-size: 14px;
    margin: 8px;
    line-height: 1.2;
    color: #333;
  }
  
  /* Section catégorie */
  .dashboard-category-section {
    background: #f9f9f9;
    padding: 16px;
    margin-bottom: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  }
  
  .dashboard-category-header h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: #222;
    border-left: 4px solid #0073aa;
    padding-left: 8px;
  }
  
  .dashboard-category-footer {
    margin-top: 8px;
    text-align: right;
  }
  .dashboard-category-footer a {
    font-size: 13px;
    color: #0073aa;
    text-decoration: none;
  }
  .dashboard-category-footer a:hover {
    text-decoration: underline;
  }