.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background: white;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  
  .header-content {
    .page-title {
      display: flex;
      align-items: center;
      gap: 12px;
      margin: 0 0 8px 0;
      font-size: 28px;
      font-weight: 500;
      color: #2c3e50;
      
      mat-icon {
        font-size: 32px;
        width: 32px;
        height: 32px;
        color: #3498db;
      }
    }
    
    .page-description {
      margin: 0;
      color: #6c757d;
      font-size: 16px;
    }
  }
  
  .badges-container {
    display: flex;
    gap: 16px;
    
    .badge-card {
      display: flex;
      align-items: center;
      gap: 16px;
      padding: 20px;
      background: #ffffff;
      border: none;
      border-radius: 12px;
      min-width: 160px;
      transition: all 0.2s ease;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
      cursor: pointer;
      
      &:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
      }
      
      // Couleurs selon l'ordre d'apparition (comme la maquette)
      &:nth-child(1) .badge-icon {
        background: #3B82F6; // Bleu
      }
      
      &:nth-child(2) .badge-icon {
        background: #10B981; // Vert
      }
      
      &:nth-child(3) .badge-icon {
        background: #F59E0B; // Orange
      }
      
      &:nth-child(n+4) .badge-icon {
        background: #8B5CF6; // Violet pour les suivants
      }
      
      .badge-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        border-radius: 12px;
        color: #ffffff;
        flex-shrink: 0;
        
        mat-icon {
          font-size: 24px;
          width: 24px;
          height: 24px;
        }
      }
      
      .badge-content {
        .badge-value {
          font-size: 24px;
          font-weight: 600;
          line-height: 1;
          display: flex;
          align-items: center;
          min-height: 24px;
          color: #1F2937;
        }
        
        .badge-title {
          font-size: 14px;
          color: #6B7280;
          font-weight: 500;
          margin-top: 4px;
        }
      }
    }
  }
}

// Responsive design
@media (max-width: 1200px) {
  .page-header {
    flex-direction: column;
    gap: 20px;
    
    .badges-container {
      align-self: stretch;
      
      .badge-card {
        flex: 1;
        min-width: auto;
      }
    }
  }
}

@media (max-width: 768px) {
  .page-header {
    padding: 16px;
    
    .header-content .page-title {
      font-size: 24px;
      
      mat-icon {
        font-size: 28px;
        width: 28px;
        height: 28px;
      }
    }
    
    .badges-container {
      flex-wrap: wrap;
      
      .badge-card {
        min-width: calc(50% - 8px);
        
        .badge-content .badge-value {
          font-size: 20px;
        }
      }
    }
  }
}

